115
3. Suitable soft component
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD;
DM includes DM, DHM; DS includes DS, DHS.
<16 bits instruction>
The contents of the two destination devices D1 and D2 are swapped,
When X0 is ON, the instruction will be executed in every scanning period. Falling or rising
pulse is recommended to activate the instruction.
<32 bits instruction >
32 bits instruction [DXCH] swaps the dword value D10, D11 and D20, D21.
XCH
D10
D11
X0
D1·
D2·
DXCH
D10
D20
X0
D1·
D2·
Operand
System
Constant Module
D
*
FD
TD
*
CD
*
DX
DY
DM
*
DS
*
K /H
ID
QD
D1
●
●
●
●
●
●
D2
●
●
●
●
●
●
Word
Description
Before (D10) =100 → After (D10) =101
(D11) =101 (D11) =100
Before ( D10) =100
→ after (D10) =200
(D11) =1 (D11D10) =65636
(D11) =10 (D11D10) =655460
(D20) =200
(D20) =100
(D21) =10 (D21D20) =655460
(D21) =1
(D21D20) =65636