308
6 BASIC INSTRUCTIONS
6.6 Data Transfer Instructions
Exchanging 32-bit data
DXCH(P)
These instructions exchange 32-bit binary data of (d1) and (d2).
■Descriptions, ranges, and data types
■Applicable devices
These instructions exchange 32-bit binary data of (d1), (d1)+1 and (d2), (d2)+1
There is no operation error.
Ladder diagram Structured text
ENO:=DXCH(EN,d1,d2);
ENO:=DXCHP(EN,d1,d2);
Operand Description Range Data type Data type (label)
(d1) Head device for storing the data to be exchanged 32-bit signed binary ANY32
(d2) Head device for storing the data to be exchanged 32-bit signed binary ANY32
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(d1)
(d2)
······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)