EasyManua.ls Logo

Siemens SIMATIC S7-1200

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Extended instructions
9.2 String and character
S7-1200 Programmable controller
362 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 9- 48 Data types for the parameters
Parameter and type
Data type
Description
IN
IN
String, WString
Input string
OUT OUT DInt Maximum number of characters allowed for IN
string
9.2.4.2
LEN (Determine the length of a character string)
Table 9- 49 Length instruction
LAD / FBD
SCL
Description
out := LEN(in);
LEN (length) provides the current length of the string IN at output OUT. An
empty string has a length of zero.
Table 9- 50 Data types for the parameters
Parameter and type
Data type
Description
IN
IN
String, WString
Input string
OUT
OUT
Int, DInt, Real, LReal
Number of valid characters of IN string
Table 9- 51 ENO status
ENO
Condition
OUT
1
No invalid string condition
Valid string length
0
Current length of IN exceeds maximum length of IN
Current length is set to 0
Maximum length of IN does not fit within allocated memory range
Maximum length of IN is 255 (illegal length)

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals