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
_v1.png/_jcr_content/renditions/original)
FactoryTalk Design Studio
 DSL - Ladder DiagramCONCAT(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: 
 | 
| 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.html 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


Provide Feedback