Siemens Simatic S7-200 System Manual page 197

Hide thumbs Also See for Simatic S7-200:
Table of Contents

Advertisement

Example: Concatenate String, Copy String, and String Length Instructions
Before executing the program
VB0
6
'H'
'E'
'L'
'L'
After executing the program
VB0
11
'H'
'E'
'L'
'L'
VB100
11
'H'
'E'
'L'
'L'
AC0
11
Network 1
//1. Append the string at VB20
//
//2. Copy the string at VB0
//
//3. Get the length of the string
//
LD
I0.0
SCAT
VB20, VB0
STRCPY VB0, VB100
STRLEN VB100, AC0
VB6
VB20
'O'
' '
5
'W'
'O'
' '
'W'
'O'
'R'
'O'
' '
'W'
'O'
'R'
S7-200 Instruction Set
to the string at VB0
to a new string at VB100
that starts at VB100
VB25
'O'
'R'
'L'
'D'
VB11
'L'
'D'
VB111
'L'
'D'
Chapter 6
6
185

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents