XCH ... 16-bit data exchange
Bit device
X
Y
M
L SM F
D1
D2
XCH
Function
The D1 and D2 16-bit data are exchanged.
Before execution
After execution
Execution conditions
The execution conditions for the XCH command are as shown below.
Exchange conmand OFF
XCH
Usable device
Word device
T
C
D
R
Z
Conversion command
XCH
D1
16-bit
0 1 1 1 0 0 0 1 1 0 0
1
0 0 0
0
1
1 1
0 0
1
1
0
ON
Executed per scan
- 118 -
Con-
Pointer
Level
stant
K
H
P
N
Setting data
D1
D1 D2
D2
0
1
0
1
0 0 0
0
1
1 1
1
0
1
0
0 1 1 1 0 0 0 1 1 0 0
Executed per scan
XCH
Digit
No. of
desig-
steps Index
nation
4
No. of device where
data to be exchanged
is stored.
D2
16-bit
0 0
1
1
0
1
0
1
0
1
0
1
0
1