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