API
SWAP
147
D
P
Bit device
X
Y
M
K
S
Notes on operand usage: none
S
When using 16-bit command, the upper 8-bit and lower 8-bit exchange.
When using 32-bit command, the contents of upper 8-bit and lower 8-bit of the 2
registers exchange.
This command usually uses pulse execution type (SWAPP, DSWAPP)
Word device
H
KnX KnY KnM
T
*
*
*
*
: The device that going to exchange its up/down 8 bits.
Chapter 16 PLC Function ApplicationsC2000
Exchange the up/down 8 bits
16-bit command (3 STEP)
SWAP
Continuous
C
D
execution type
*
*
32-bit command (5 STEP)
DSWAP
Continuous
execution type
Flag signal: none
16-99
SWAPP Pulse execution
type
DSWAPP Pulse execution
type