AutomationView Documentation

CONCAT (Concatenate Strings)

Joins two string operands (IN1 followed by IN2) and writes the resulting string to the target STRING variable.


Description

CONCAT appends src2 (IN2) to the end of src1 (IN1) and stores the result in the target variable. Use it to build batch codes, HMI status messages, or multi-step command strings.


Syntax

Sequence Visual Editor

  1. Select an action on a step or transition and hold Alt (or right-click -> Edit Qualifier & Instruction).
  2. Select Strings -> CONCAT and choose the P qualifier.
  3. Fill in the target STRING variable, IN1, and IN2 operand chips.

Action label_text with the P qualifier and the CONCAT instruction joining "LOT-" and lot_text
String literals are typed between double quotes.

Python

from automation_machine import ActionQualifier, ActionInstruction

step.add_action("batch_label", "Build batch label", qualifier=ActionQualifier.P, instruction=ActionInstruction.CONCAT, src1='"LOT-"', src2="batch_code")

See Also