AutomationView Documentation

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

Sequence Visual Editor

  1. Select an action on a step or transition and hold Alt (or right-click -> Edit Qualifier & Instruction).
  2. Select Conversions -> INT_TO_STRING and choose the P qualifier.
  3. Fill in the target STRING variable and the source INT operand (IN).

Action count_text with the P qualifier and the INT_TO_STRING instruction reading part_count
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")

See Also