EasyManua.ls Logo

Delta VP3000 Series - Page 326

Delta VP3000 Series
714 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 7 Second Development PlatformVP3000
317
API Instruction code Operand Function
28 D
WXOR /
DXOR
P S
1
, S
2
, D
Logical operation with XOR operator
(16-bit) /
logical operation with XOR operator
(32-bit)
Type
Operand
Bit devices Word devices
16-bit instruction (7 step)
WXOR
C
ontinuous
execution
type
WXORP
Pulse
execution
type
32-bit instruction (13 steps)
DXOR
Continuous
execution
type
DXORP
Pulse
execution
type
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
1
S
2
D
Caution for using operand: none
Description
S
1
source data device 1
S
2
source data device 2
D: operation result
This instruction conducts logical XOR operation of S
1
and S
2
and stores the result in D.
If the bits in S
1
and S
2
are the same, the corresponding bit of the operation result in D will be
“0”;
if the bits in S
1
and S
2
are different, the corresponding bit of the operation result in D will be “1”.
Example
When X0 = ON,16-bit D0 and D2 perform XWOR, logical XOR operation, and the result will be
stored in D4.
When X1 = ON, 32-bit (D11, D10) and (D21, D20) perform XDOR, logical XOR operation, and
the result will be stored in (D41, D40).

Table of Contents

Related product manuals