610 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 18 ASCII String Instructions (CONCAT, DELETE, FIND, INSERT, MID)
String Concatenate
(CONCAT)
The CONCAT instruction adds ASCII characters to the end of a string.
Operands:
Relay Ladder
Structured Text
The operands are the same as those for the relay ladder CONCAT instruction.
Description: 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.
Arithmetic Status Flags: Not affected
Fault Conditions:
String Concatenate
Source A ?
??
Source B ?
??
Dest ?
??
CONCAT
Operand Type Format Enter Notes
Source A String Tag Tag that contains the initial
characters
String data types are:
·default STRING data type.
·any new string data type that you create.
Source B String Tag Tag that contains the end
characters
Destination String Tag Tag to store the result
CONCAT(SourceA,SourceB,
Dest);
Type Code Cause Recovery Method
4 51 The LEN value of the string tag is greater
than the DATA size of the string tag.
1. Check that no instruction is writing to the LEN member of the string tag.
2. In the LEN value, enter the number of characters that the string contains.