![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452248.webp)
3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-79
API Mnemonic
Operands
Function
28
DXOR P
S
1
, S
2
, D
Exclusive XOR 32-bit
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C D E
F
S
1
*
*
*
*
*
*
*
*
*
*
S
2
*
*
*
*
*
*
*
*
*
*
D
*
*
*
*
*
*
*
DXOR, DXORP: 13
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:
S
1
: First data source
S
2
: Second data source
D
: Operation result
Description:
1.
Logical Double word XOR operation.
2.
A logical XOR operation is performed on the bit patterns of the contents of the two source
addresses (
S
2
and
S
1
). The result of the logical DXOR is stored in the destination device (
D
)
3. If
operands
S
1
,
S
2
,
D
use index F, only a 16-bit instruction is available.
4.
For 16-bit operation please refer to the WXOR instruction.
Program Example:
When X1 = ON, the 32-bit data source = (D11, D10) and (D21, D20) are analyzed and the
operation result of the logical DXOR = is stored in (D41, D40).
X1
DXOR
D10
D20
D40
b31
Before
execution
After
execution
D11 D10
DXOR
b
D21 D20
D41 D40
1
1
1
1
0
0
0
b15
1
1
1
1
1
1
0
0
0 0
0
0
1
1
1
1
1
1
1
1 1
1
1 1
1
b0
1
1
1
1
1
1
0
0
0
0
1
1
1
1
1
1
0
0
0
1
0
0
0
1
0
1
1
0
0
1
0
0
0
0
0
1
0
0
0
1
0
1
1
0
0
1
0
0
1
1
1
1
0
0
0
0 0
1
1 1
1
1 1
1
Содержание 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...