6 BASIC INSTRUCTIONS
6.7 Data Transfer Instructions
517
6
Exchanging 32-bit binary data
DXCH(P)
These instructions exchange the 32-bit binary data specified.
■Execution condition
■Description, range, data type
■Applicable devices
• These instruction exchange the 32-bit binary data between the device ranges specified by (d1) and (d2).
Ladder ST
ENO:=DXCH(EN,d1,d2);
ENO:=DXCHP(EN,d1,d2);
FBD/LD
Instruction Execution condition
DXCH
DXCHP
Operand Description Range Data type Data type (label)
(d1) Start device where the exchange target data is stored 32-bit signed binary ANY32
(d2) Start device where the exchange target data is stored 32-bit signed binary ANY32
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(d1)
(d2)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
b31 b16 b15 b0
b31 b16 b15 b0
b31 b16 b15 b0
b31 b16 b15 b0
(d2)+1
(d1)+1
111 11111110000
111
0000000
1111
111 1111111
0000
111 00000001111
(d1)
(d1)+1 (d1)
(d2)
(d2)+1 (d2)