Program instructions
7.12 Move
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
341
Example: Swap instructions
LAD
STL
Network 1
LD I2.1
SWAP VW50
Hexadecimal data values
D6
C3
Data addresses
VB50
VB51
If I2.1 = 1, then execute SWAP to exchange the byte data in a data word
Hexadecimal data values
C3
D6
Data addresses
VB50
VB51
7.12.4
Move byte immediate (read and write)
LAD / FBD
STL
Description
BIR IN, OUT
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.
BIW IN, OUT
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.
Non-fatal errors with ENO = 0
SM bits affected
•
0006H Indirect address
•
Unable to access expansion mod-
ule
None
Input / output
Data type
Operand
IN (BIR)
BYTE
IB, *VD, *LD, *AC
IN (BIW)
BYTE
B, QB, VB, MB, SMB, SB, LB, AC, *VD, *LD, *AC, Constant
OUT (BIR)
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *LD, *AC
OUT (BIW)
BYTE
QB, *VD, *LD, *AC