Chapter 16 PLC Function ApplicationsC2000-HS
16-99
API
SWAP
Exchange the up/down 8 bits
147
D P
Bit device Word device
16-bit command (3 STEP)
SWAP Continuous
execution type
SWAPP Pulse execution
type
32-bit command (5 STEP)
DSWAP Continuous
execution type
DSWAPP Pulse execution
type
Flag signal: none
X Y M K H KnX KnY KnM T C D
S
* * * * * *
Notes on operand usage: none
S
: The device that going to exchange its up/down 8 bits.
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)