E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-62
API Mnemonic
Operands
Function
17
D XCH P
D1, D2
Data Exchange
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX
KnY
KnM KnS T
C D E
F
D
1
*
*
*
*
*
*
*
*
D
2
*
*
*
*
*
*
*
*
XCH, XCHP: 5 steps
DXCH, DXCHP: 9 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P
32 16 P 32 16 P
Operands:
D
1
: First exchange device
D
2
: Second exchange device
Description:
1.
Exchange the contents of
D
1
and
D
2
.
2.
This instruction is best used as a pulse execution (XCHP) to avoid assigning the same values
back and forth.
3. If
operand
D1
and
D2
use index register F, only a 16-bit value is available.
Program Example:
When X0=OFF
→
ON, the contents of D20 and D40 are exchanged.
X0
D40
XCHP
D20
Before
execution
After
execution
120
120
40
40
D20
D40
D20
D40
Points to note:
1. When
D
1
and
D
2
are the same, and M1303=ON, the upper and lower 16-bits will be exchanged.
ELC-PB, ELCB-PB does not support this.
2.
When X0=ON and M1303=ON, the upper and lower 16-bit contents of D100, D101 will
exchange.
X0
M1303
9
20
20
9
D100L
D100H
8
40
40
8
D101L
D101H
D100L
D100H
D101L
D101H
DXCHP
D100
D100
Before
execution
After
execution
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...