INT_TO_STRING (Integer to String)
Converts a 16-bit integer (INT) into a STRING representation and stores it in the target variable.
Description
INT_TO_STRING formats the integer value in src (IN) as a decimal string (for example, 42 -> "42") and writes it to the target STRING variable. Combine it with CONCAT to build dynamic HMI messages or part serial codes.
Syntax
- variable_name: Target
STRINGvariable - qualifier: Typically
ActionQualifier.P(Pulse) - instruction:
ActionInstruction.INT_TO_STRING - src (
IN): SourceINTvariable or literal
Sequence Visual Editor
- Select an action on a step or transition and hold Alt (or right-click -> Edit Qualifier & Instruction).
- Select Conversions -> INT_TO_STRING and choose the P qualifier.
- Fill in the target
STRINGvariable and the sourceINToperand (IN).

The STRING action variable receives the formatted number.
Python
from automation_machine import ActionQualifier, ActionInstruction
step.add_action("count_text", "Format part count as string", qualifier=ActionQualifier.P, instruction=ActionInstruction.INT_TO_STRING, src="part_count")