Len (Determine The Length Of A Character String) Instruction; Concat (Combine Character Strings) Instruction - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

8.2.4.2

LEN (Determine the length of a character string) instruction

Table 8- 49
Length instruction
LAD / FBD
SCL
out := LEN(in);
Table 8- 50
Data types for the parameters
Parameter and type
IN
IN
OUT
OUT
Table 8- 51
ENO status
ENO
Condition
1
No invalid string condition
0
Current length of IN exceeds maximum length of IN
Maximum length of IN does not fit within allocated memory range
Maximum length of IN is 255 (illegal length)
8.2.4.3

CONCAT (Combine character strings) instruction

Table 8- 52
Concatenate strings instruction
LAD / FBD
SCL
out := CONCAT(in1, in2);
Table 8- 53
Data types for the parameters
Parameter and type
IN1
IN
IN2
IN
OUT
OUT
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Description
LEN (length) provides the current length of the string IN at output OUT. An
empty string has a length of zero.
Data type
String
Int, DInt, Real, LReal
Description
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.
Data type
Description
String
Input string 1
String
Input string 2
String
Combined string (string 1 + string 2)
Description
Input string
Number of valid characters of IN string
Extended instructions
8.2 String and character
OUT
Valid string length
Current length is set to 0
307

Advertisement

Table of Contents
loading

Table of Contents