EasyManua.ls Logo

Siemens SIMATIC S7-200 - Swap Bytes; Move and Swap Examples; Example of Move and Swap Instructions for Simatic LAD, STL, and FBD

Siemens SIMATIC S7-200
606 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...
SIMATIC Instructions
9-105
S7-200 Programmable Controller System Manual
A5E00066097-02
Swap Bytes
The Swap Bytes instruction exchanges the most
significant byte with the least significant byte of the word
(IN).
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address)
Inputs/Outputs Operands Data Types
IN VW, IW, QW, MW, SW, SMW, LW, T, C, AC, *VD, *AC, *LD WORD
Move and Swap Examples
LAD STL
LD I2.1
MOVB VB50, AC0
SWAP AC0
I2.1
MOV_B
EN
OUT AC0VB50 IN
SWAP
EN
AC0 IN
Application
AC0
AC0
swap
C3 D6
C3VB50
AC0
move
C3
D6 C3
Move Swap
FBD
ENO
ENO
MOV_B
EN
OUT AC0VB50 IN
ENO
SWAP
EN
AC0 IN
ENOI2.1
Figure 9-30 Example of Move and Swap Instructions for SIMATIC LAD, STL, and FBD
L
A
D
S
T
L
SWAP IN
SWAP
EN
IN
F
B
D
ENO
222 224
✓✓
221 226

Table of Contents

Other manuals for Siemens SIMATIC S7-200

Related product manuals