Справочник Пользователя для Mitsubishi Electronics QCPU

Скачать
Страница из 1204
6-124
XCH(P),DXCH(P)
6.4.9  
16-bit and 32-bit data exchanges (XCH(P),DXCH(P))
XCH(P),DXCH(P)
Function
XCH
(1) Conducts 16-bit data exchange between 
 and 
.
DXCH
(1) Conducts 32-bit data exchange between 
+1, 
 and 
+1, 
.
: Head number of the devices where the data to be exchanged is stored (BIN 16/32 bits)
Setting 
Data
Internal Devices 
R, ZR
J
\
U
\G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
Basic
Process
High
performance
Redundant Universal
Command
Command
P
D1
D2
D1
D2
XCH, DXCH
XCHP, DXCHP
indicates an instruction symbol of XCH, DXCH.
D1
D2
D1
D2
D1
D2
b7
b0
b15
b8
Before execution
After execution
0 0 0 0 0 1 1 1
0 0
0
0
1
1
1
0
1 1 1 1 0 0 0 0
0 0
0
0
1
1
1
1
0 0 0 0 0 1 1 1
0 0
0
0
1
1
1
0
1 1 1 1 0 0 0 0
0 0
0
0
1
1
1
1
D1
D2
b7
b0
b15
b8
b7
b0
b15
b8
b7
b0
b15
b8
D1
D2
D1
D1
D2
D2
Before execution
After execution
+1
b15
b0
+1
b31
b16
+1
+1
1 1 1
1 1 1 1
1 1
1
0
0
0
0
1 1 1
0 0 0 0
0 0
0
1
1
1
1
1 1 1
1 1 1 1
1 1
1
0
0
0
0
1 1 1
0 0 0 0
0 0
0
1
1
1
1
D1
D2
D1
b15
b0
b31
b16
b15
b0
b31
b16
b15
b0
b31
b16
D1
D1
D2
D2
D2