XCH, XCHP ... 16-bit data exchange
Bit device
X
Y M
L
F
B SB T SM V T
D1
D2
XCH
XCHP
Function
The D1 and D2 16-bit data are exchanged.
Before execution
After execution
Execution conditions
The execution conditions for the XCH, XCHP are as shown below.
Exchange conmand OFF
XCH
XCHP
8. Function Commands
XCH, XCHP
Usable device
Word device
C D R W SW Z SD K
Exchange command
XCH
XCHP D1 D2
D1
16-bit
0 1 1 1 0 0 0 1 1 0 0
1
0
1
0 0 0
0
1
1 1
0 0
1
1
0
1
0
ON
Executed per scan
- 214 -
Get other manuals https://www.bkmanuals.com
Con-
Pointer
stant
H
P
Setting data
D1 D2
D1
No. of device where
data to be exchanged
is stored.
D2
D2
16-bit
0
1
0 0 0
0
1
1 1
0 0
1
0
0 1 1 1 0 0 0 1 1 0 0
Executed per scan
Digit
No. of
desig-
Index
steps
nation
4
1
1
0
1
0
1
0
1
0
1
0
1