Converts a 32-bit integer (DINT) into a STRING representation and stores it in the target variable.
DINT_TO_STRING formats the 32-bit integer value in src (IN) as a decimal string and writes it to the target STRING variable. Use it for large production totals, encoder positions, or batch identifiers.
STRING variable and the source DINT operand (IN).from automation_machine import ActionQualifier, ActionInstruction
step.add_action("total_text", "Format lifetime counter", qualifier=ActionQualifier.P, instruction=ActionInstruction.DINT_TO_STRING, src="lifetime_parts")
STRING variableActionQualifier.P (Pulse)ActionInstruction.DINT_TO_STRINGIN) — Source DINT variable or literal