Siemens SIMATIC S7-200 System Manual page 199

Programmable controller
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'
After executing the program
VB0
11
'H'
'E'
'L'
VB100
11
'H'
'E'
'L'
AC0
11
Network 1
LD
SCAT
STRCPY VB0, VB100
STRLEN VB100, AC0
VB6
'L'
'O'
' '
'L'
'O'
' '
'W'
'O'
'L'
'O'
' '
'W'
'O'
S7-200 Instruction Set
//1. Append the string at "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
I0.0
"WORLD", VB0
VB11
'R'
'L'
'D'
VB111
'R'
'L'
'D'
Chapter 6
185

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents