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-78
API Mnemonic
Operands
Function
28
WXOR P
S
1
, S
2
, D
Exclusive XOR 16-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
*
*
*
*
*
*
*
*
WXOR, WXORP: 7 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.
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 XOR is stored in the destination device (
D
)
2.
For 32-bit operation please refer to the DXOR instruction.
Program Example:
When X0 = ON, the 16-bit data source D0 and D2 are analyzed and the operation result of the
logical WXOR is stored in D4.
0
0
1
1
1
1
1
1
0 0 0
0
0
0
1
1
1
1
0
0
0
0
1
1
0
WOR
b15
b00
0
0
0
0
0
0
1
1
0
1
1 1
0
1
1
1 0
0 1 1 1 1
0
WXOR
Before
execution
After
execution
D0
D2
D4
X0
D0
D2
D4
Содержание 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...