Program instructions
7.15 String
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
321
Error conditions with ENO = 0
• 0006H Indirect address
• 0091H Operand out of range
None
VB, LB, *VD, *LD, *AC, Constant string
Example: Concatenate string, copy string, and string length Instructions
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.
LD I0.0
SCAT "WORLD", VB0
SCPY VB0, VB100
SLEN VB100, AC0