101BExtended instructions
8.2 String and character
S7-1200 Programmable controller
254
System Manual, 11/2011, A5E02486680-05
Table 8- 51 Data types for the parameters
Parameter and type
Data type
Description
IN
IN
String
Input string
OUT
OUT
Int, DInt, Real, LReal
Number of valid characters of IN string
Table 8- 52 ENO status
ENO
Condition
OUT
1
No invalid string condition
Valid string length
Current length of IN exceeds maximum length of IN
Maximum length of IN does not fit within allocated memory range
0
Maximum length of IN is 255 (illegal length)
Current length is set to 0
8.2.4.2
CONCAT
Table 8- 53 Concatenate strings instruction
LAD / FBD
SCL
Description
out := CONCAT(in1, in2);
CONCAT (concatenate strings) joins string parameters IN1 and
IN2 to form one string provided at OUT. After concatenation,
String IN1 is the left part and String IN2 is the right part of the
combined string.
Table 8- 54 Data types for the parameters
Parameter and type
Data type
Description
IN1
IN
String
Input string 1
IN2
IN
String
Input string 2
OUT
OUT
String
Combined string (string 1 + string 2)
Table 8- 55 ENO status
ENO
Condition
OUT
1
No errors detected
Valid characters
Resulting string after concatenation is larger than maximum length of OUT
string
Resulting string characters are
copied until the maximum length
of the OUT is reached
Current length of IN1 exceeds maximum length of IN1, current length of
IN2 exceeds maximum length of IN2, or current length of OUT exceeds
maximum length of OUT (invalid string)
0
Maximum length of IN1, IN2 or OUT does not fit within allocated memory
range
Current length is set to 0