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
System Manual, V4.2, 09/2016, A5E02486680-AK
365
Table 9- 57 ENO status
ENO
Condition
OUT
1
No errors detected
Valid characters
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 (String data type) or 0 or
65534 (WString data type)
Current length is set to 0
Substring length (L) to be copied is larger than maximum length of OUT
string.
Characters are copied until the
maximum length of OUT is
reached
MID only: L or P is less than or equal to 0 Current length is set 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)
Current length is set to 0
Maximum length of IN1, IN2 or OUT does not fit within allocated memory
range
Maximum length of IN1, IN2 or OUT is illegal length: 0 or 255 (String data
type) or 0 or 65534 (WString data type)
9.2.4.5
DELETE (Delete characters in a character string)
Table 9- 58 Delete substring instruction
LAD / FBD
SCL
Description
out := DELETE(in, L, p);
Deletes L characters from string IN. Character deletion starts at
character position P (inclusive), and the remaining substring is
provided at parameter OUT.
If L is equal to zero, then the input string is returned in OUT.
If the sum of L and P is greater than the length of the input
string, then the string is deleted to the end.
Table 9- 59 Data types for the parameters
Parameter and type
Data type
Description
IN
IN
String, WString
Input string
L
IN
Int
Number of characters to be deleted
P IN Int Position of the first character to be deleted: The first character of
the IN string is position number 1
OUT
OUT
String, WString
Output string

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals