String Concatenate (CONCAT)

The CONCAT instruction adds ASCII characters to the end of a string.
The CONCAT instruction combines the characters in Source A with the characters in Source B and places the result in the Destination.
The characters from Source A are first, followed by the characters from Source B.
Unless Source A and the Destination are the same tag, Source A remains unchanged.
Available Languages
Ladder Diagram
Ladder Diagram_String Concatenate (CONCAT)_v1
FactoryTalk Design Studio
DSL - Ladder Diagram
CONCAT(SourceA,SourceB,Dest);
Operands
There are data conversion rules for mixed data types within an instruction. See Data Conversion.
Ladder Diagram
Operand
Type
Format
Description
Notes
Source A
ANY_STRING
tag
Tag that contains the initial characters
String types are:
  • Default STRING data type with maximum 82 length of characters for the string.
  • Any new string type you created with configurable length of characters for the string.
Source B
ANY_STRING
tag
Tag that contains the end characters
Destination
ANY_STRING
tag
Tag to store the result
Affects Math Status Flags
No
Major/Minor Faults
A minor fault will occur if:
Fault Type
Fault Code
The LEN value of the string tag is greater than the DATA size of the string tag.
4
51
The sum length of Source A and Source B is greater than the DATA size of the string tag.
4
51
See Index through arrays for array-indexing faults.
Execution
Ladder Diagram
Condition
Action Taken
Prescan
N/A
Rung-condition-in is false
N/A
Rung-condition-in is true
The instruction executes.
Postscan
N/A
Concat String flow chart
CONCAT_Flow Chart 1
CONCAT String Flow Chart 2
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.