EasyManua.ls Logo

Delta VP3000 Series - Page 385

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 Platform VP3000
376
API Instruction code Operand Function
232–238 D
AND
S
1
, S
2
Contact type comparison 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
, take API 232 (AND=) as an example, if the result is
“equal to”, the continuity of the instruction is enabled; if the result is “not equal to”, 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
232 AND= DAND=
S
1
= S
2
S
1
S
2
233 AND> DAND>
S
1
> S
2
S
1
S
2
234 AND< DAND<
S
1
< S
2
S
1
S
2
236 AND<> DAND<>
S
1
S
2
S
1
= S
2
237 AND<= DAND<=
S
1
S
2
S
1
> S
2
238 AND>= DAND>=
S
1
S
2
S
1
< S
2
Example
When X0 = ON, and the current value of C10 = K200, then Y10 = ON
When X1 =OFF, and D0 K-10, then Y11 = ON and hold.
When X2 = ON, the 32-bit register D0 (D11) is less than 678,493 or M3 = ON, then M50 = ON.
AND=
K200 C10
DAND>
K678493 D10
M3
Y10
AND<>
K-10 D0
SET Y11
M50
X2
X1
X0

Table of Contents

Related product manuals