Insert - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

Table 8- 61
ENO status
ENO
Condition
1
No errors detected
0
P is greater than current length of IN
Resulting string after characters are deleted is larger than maximum length
of OUT string
L is less than 0, or P is less than or equal 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
8.2.4.5

INSERT

Table 8- 62
Insert substring instruction
LAD / FBD
SCL
out := INSERT(in1, in2, p);
Table 8- 63
Data types for the parameters
Parameter and type
IN1
IN
IN2
IN
P
IN
OUT
OUT
Table 8- 64
ENO status
ENO
Condition
1
No errors detected
0
P is greater than length of IN1
P is less than 0
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
Data type
Description
String
Input string 1
String
Input string 2
Int
Last character position in string IN1 before the insertion point for
string IN2
The first character of string IN1 is position number 1.
String
Result string
Description
Inserts string IN2 into string IN1. Insertion begins after the
character at position P.
OUT
Valid characters
IN2 is concatenated with IN1
immediately following the last IN1
character
Current length is set to 0
101BExtended instructions
8.2 String and character
OUT
Valid characters
IN is copied to OUT with no
characters deleted
Resulting string characters are
copied until the maximum length
of OUT is reached
Current length is set to 0
257

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents