Parses a decimal string (STRING) and writes the resulting 16-bit integer to the target INT variable.
STRING_TO_INT converts the numeric characters in src (IN) into an INT value. Combine it with MID to parse numeric parameters embedded inside command or barcode strings (for example, extracting slot number "2" from "ODCU1DOUC2").
INT variable and the source STRING operand (IN).from automation_machine import ActionQualifier, ActionInstruction
step.add_action("target_slot", "Parse slot index from string", qualifier=ActionQualifier.P, instruction=ActionInstruction.STRING_TO_INT, src="slot_char")
INT variableActionQualifier.P (Pulse)ActionInstruction.STRING_TO_INTIN) — Source STRING variable or literal