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