Measures the character length of an input string (IN) and writes the count to the target INT variable.
LEN returns the number of characters in src (IN). It is commonly paired with MID to iterate through multi-operation command strings character by character (1..{len}).
INT variable and the source STRING operand (IN).from automation_machine import ActionQualifier, ActionInstruction
step.add_action("{len}", "Get command length", qualifier=ActionQualifier.P, instruction=ActionInstruction.LEN, src="{cmd}")
INT variable receiving the character countActionQualifier.P (Pulse) or attached to a transitionActionInstruction.LENIN) — Source STRING variable or literal