EasyManua.ls Logo

Delta VP3000 Series - Page 324

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
315
API Instruction code Operand Function
26 D
WAND /
DAND
P S
1
, S
2
, D
Logical operation with AND operator
(16-bit) /
logical operation with AND operator
(32-bit)
Type
Operand
Bit devices Word devices
16-bit instruction (7 steps)
WAND
Continuous
execution
type
WANDP
Pulse
execution
type
32-bit instruction (13 steps)
DAND
Continuous
execution
type
DANDP
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 AND operation of S
1
and S
2
and stores the result in D.
The corresponding bit of the operation result in D will be “0” if any of the bits in S1 or S2 is “0”.
Example
When X0 = ON,16-bit D0 and D2 perform WAND, logical AND operation, and the result will be
stored in D4.
When X1 = ON, 32-bit (D11, D10) and (D21, D20) perform DAND, logical AND operation, and
the result will be stored in (D41, D40).

Table of Contents

Related product manuals