String Concatenate (Concat); Relay Ladder; Structured Text - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Chapter 18
ASCII String Instructions (CONCAT, DELETE, FIND, INSERT, MID)
String Concatenate
(CONCAT)
CONCAT
String Concatenate
Source A
Source B
Dest
Operand
Type
Source A
String
Source B
String
Destination
String
CONCAT(SourceA,SourceB,
Dest);
Description:
Arithmetic Status Flags:
Fault Conditions:
Type
Code
Cause
4
51
The LEN value of the string tag is greater
than the DATA size of the string tag.
610
The CONCAT instruction adds ASCII characters to the end of a string.
Operands:

Relay Ladder

?
??
?
??
?
??
Format
Tag
Tag
Tag

Structured Text

The operands are the same as those for the relay ladder CONCAT instruction.
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.
Not affected
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Enter
Tag that contains the initial
characters
Tag that contains the end
characters
Tag to store the result
Recovery Method
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.
Notes
String data types are:
·default STRING data type.
·any new string data type that you create.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents