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
366 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 9- 60 ENO status
ENO
Condition
OUT
1
No errors detected
Valid characters
0 P is greater than current length of IN IN is copied to OUT with no char-
acters deleted
Resulting string after characters are deleted is larger than maximum length
of OUT string
Resulting string characters are
copied until the maximum length
of OUT is reached
L is less than 0, or P is less than or equal to 0
Current length is set to 0
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
9.2.4.6
INSERT (Insert characters in a character string)
Table 9- 61 Insert substring instruction
LAD / FBD
SCL
Description
out := INSERT(in1, in2, p);
Inserts string IN2 into string IN1. Insertion begins after the char-
acter at position P.
Table 9- 62 Data types for the parameters
Parameter and type
Data type
Description
IN1
IN
String, WString
Input string 1
IN2
IN
String, WString
Input string 2
P IN Int Last character position in string IN1 before the insertion point for
string IN2
The first character of string IN1 is position number 1.
OUT
OUT
String, WString
Result string

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals