A SERVICE OF

logo

8. Function Commands
XCH, XCHP
- 214 -
{ XCH, XCHP ... 16-bit data exchange
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
D1
{ { { { { {
{
{ { { { { { {
{
D2
{ { { { { { {
{
4
Exchange command
XCH
XCHP
XCH
D1 D2
XCHP
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
011100 0110 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, XCHP are as shown below.
Exchange conmand OFF
XCH
ON
Executed per scan
Executed per scan
XCHP