Siemens Simatic S7-200 System Manual page 258

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

Advertisement

Instruction Set
Swap Bytes
L
A
EN
D
IN
S
T
SWAP
L
212
214
Move and Swap Examples
I2.1
VB50
AC0
Figure 10-23
10-70
The Swap Bytes instruction exchanges the most significant
byte with the least significant byte of the word (IN).
SWAP
Operands:
IN
215
216
LAD
MOV_B
EN
IN
OUT AC0
SWAP
EN
IN
Application
Move
VB50
C3
move
C3
AC0
Example of Move and Swap Instructions for LAD and STL
IN:
VW, T, C, IW, QW, MW, SMW, AC,
*VD, *AC, SW
STL
LD
I2.1
MOVB
VB50, AC0
SWAP
AC0
Swap
AC0
D6 C3
swap
C3 D6
AC0
S7-200 Programmable Controller System Manual
C79000-G7076-C230-02

Advertisement

Table of Contents
loading

Table of Contents