EasyManua.ls Logo

Delta VP3000 Series - Page 382

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
373
API Instruction code Operand Function
218–220 D AND#
S
1
, S
2
Contact type logical operation AND#
Type
Operand
Bit devices Word devices
16-bit instruction (5 steps)
AND#
Continuous
execution
type
- -
32-bit instruction (9 steps)
DAND#
Continuous
execution
type
- -
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
1
S
2
Caution for using operand: : & | ^
See the specification of each model for the scope of device’s usage.
Description
S
1
: source device 1
S
2
: source device 2
This instruction is to compare S
1
and S
2
, if the result 0, the continuity of the instruction is
enabled; if the result = 0, the continuity of the instruction is disabled.
AND# (#: &, |, ^) instruction is used for serial connection with contacts
API No.
16-bit
instruction
32-bit
instruction
Continuity condition Discontinuity condition
218 AND& DAND&
S
1
&
S
2
0
S
1
&
S
2
0
219 AND| DAND|
S
1
|
S
2
0
S
1
|
S
2
0
220 AND^ DAND^
S
1
^
S
2
0
S
1
^
S
2
0
&: logical operation with AND operator
|: Logical operation with OR operator
^: Logical operation with XOR operator
Example
When X0 =ON, and C1 and C10 perform “AND” logical operation with the result is not 0, then
Y10 = ON
When X1 = OFF, and D10 and D0 perform “OR” logical operation with the result is not 0, then
Y11 = ON and hold.
When X2 = ON, and 32-bit registers D200 (D201) and D100 (D101) perform “XOR” logical
operation with the result is not 0 or M3 = ON, then M50 = ON.
M3
DAND
D200 D100
M50
AND
C0 C10
AND
D10 D0
SET
&
^
I
Y11
Y10
X0
X1
X2

Table of Contents

Related product manuals