EasyManua.ls Logo

Siemens Simatic S7 Series

Siemens Simatic S7 Series
726 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...
Program instructions
7.15 String
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
321
Error conditions with ENO = 0
SM bits affected
0006H Indirect address
0091H Operand out of range
None
Inputs/Outputs
Data types
Operands
IN
STRING
VB, LB, *VD, *LD, *AC, Constant string
OUT
STRING
VB, LB, *VD, *LD, *AC
Example: Concatenate string, copy string, and string length Instructions
LAD
STL
1. Append the string "WORLD" to the
string at VB0.
2. Copy the string at VB0 to a new string
at VB100.
3. Get the length of the string that starts
at VB100.
Network 1
LD I0.0
SCAT "WORLD", VB0
SCPY VB0, VB100
SLEN VB100, AC0

Table of Contents

Other manuals for Siemens Simatic S7 Series

Related product manuals