5.13 XCH (Data Exchange)
5.13 XCH (Data Exchange)
■
Ladder diagram
■
Available operation units (●: Available)
Operatio
bit
n unit
i
■
List of operands
Operand
Description
D1
Device address of exchanged data 1
D2
Device address of exchanged data 2
■
Available devices (●: Available)
Operan
d
W
W
X
Y
D1
●
●
D2
●
●
(Note 1)
Cannot be specified when the operation unit is 16-bit integer (SS, US).
(Note 2)
Index register (I0 to IE)
■
Outline of operation
● This instruction exchanges the data of the device address specified by [D1] and the device
address specified by [D2] according to the operation unit [i].
[D1] ⇔ [D2]
5-30
US
●
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
●
●
●
●
●
●
●
●
SS
UL
●
●
32-Bit
device:
(Note 1)
TS
TE
U
W
WI
C
C
M
O
S
E
●
●
●
●
●
●
●
●
SL
SF
●
●
Real
Integer
numbe
r
IX
(N
K
H
SF
U
ote
2)
●
●
WUME-FP7CPUPGR-12
DF
●
St
rin
g
Index
modifie
r
D
" "
F
●
●