Program instructions
7.12 Move
Example: Block Move instruction
LAD
Source data values
Source data addresses
If I2.1 = 1, then execute BLKMOV_B to move source data values to destination addresses
Destination data values
Destination data addresses
7.12.3
Swap bytes
LAD / FBD
STL
SWAP IN
Non-fatal errors with ENO = 0
0006H Indirect address
•
Input / output
Data type
IN
WORD
340
Move (copy) data in source four byte
address sequence (VB20 to VB23) to
destination four byte address se-
quence (VB100 to VB103).
30
VB20
30
VB100
Description
The Swap Bytes instruction exchanges the most significant byte with the least signifi-
cant byte of the word IN.
SM bits affected
None
Operand
IW, QW, VW, MW, SMW, SW, T, C, LW, AC, *VD, *LD, *AC
STL
Network 1
LD I2.1
BMB VB20, VB100, 4
31
32
VB21
VB22
31
32
VB101
VB102
System Manual, V2.3, 07/2017, A5E03822230-AF
33
VB23
33
VB103
S7-200 SMART