Example: Swap instructions
LAD
Hexadecimal data values
Data addresses
If I2.1 = 1, then execute SWAP to exchange the byte data in a data word
Hexadecimal data values
Data addresses
7.12.4
Move byte immediate (read and write)
LAD / FBD
STL
BIR IN, OUT
BIW IN, OUT
Non-fatal errors with ENO = 0
0006H Indirect address
•
Unable to access expansion mod-
•
ule
Input / output
Data type
IN (BIR)
BYTE
IN (BIW)
BYTE
OUT (BIR)
BYTE
OUT (BIW)
BYTE
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
STL
Network 1
LD I2.1
SWAP VW50
Description
The Move Byte Immediate Read instruction reads the state of physical input IN
and writes the result to the memory address OUT, but the process image register
is not updated.
The Move Byte Immediate Write instruction reads the data from the memory
address IN and writes to physical output OUT, and the corresponding process
image location.
SM bits affected
None
Operand
IB, *VD, *LD, *AC
B, QB, VB, MB, SMB, SB, LB, AC, *VD, *LD, *AC, Constant
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *LD, *AC
QB, *VD, *LD, *AC
D6
VB50
C3
VB50
Program instructions
7.12 Move
C3
VB51
D6
VB51
299