Siemens S7-1200 System Manual page 309

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

Advertisement

Table 8- 56
Data types for the parameters
Parameter and type
IN
IN
L
IN
P
IN
OUT
OUT
Table 8- 57
ENO status
ENO
Condition
1
No errors detected
0
L or P is less than or equal to 0
P is greater than maximum length of IN
Current length of IN exceeds maximum length of IN, or current length
of OUT exceeds maximum length of OUT
Maximum length of IN or OUT does not fit within allocated memory
Maximum length of IN or OUT is 0 or 255
Substring length (L) to be copied is larger than maximum length of OUT
string.
MID only: L or P is less than or equal to 0
MID only: P is greater than maximum length of IN
Current length of IN1 exceeds maximum length of IN1, or current length of
IN2 exceeds maximum length of IN2 (invalid string)
Maximum length of IN1, IN2 or OUT does not fit within allocated memory
range
Maximum length of IN1, IN2 or OUT is 0 or 255 (illegal length)
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Data type
Description
String
Input string
Int
Length of the substring to be created:
Int
MID only: Position of first substring character to be copied
P= 1, for the initial character position of the IN string
String
Output string
LEFT uses the left-most characters number of characters in the
string
RIGHT uses the right-most number of characters in the string
MID uses the number of characters starting at position P within
the string
Extended instructions
8.2 String and character
OUT
Valid characters
Current length is set to 0
Characters are copied until the
maximum length of OUT is
reached
Current length is set to 0
Current length is set to 0
309

Advertisement

Table of Contents
loading

Table of Contents