beautypg.com

Delta DVP-ES2 User Manual

Page 585

background image

3 . I n s t r u c t i o n S e t

3 - 4 6 9

API Mnemonic Operands

Function

218~

220

D AND#

Serial Type Logic Operation

Controllers

ES2/EX2 SS2 SA2

SE

SX2

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

* *

*

*

*

*

*

*

*

*

*

AND#: 5 steps

DAND#: 9 steps

PULSE 16-bit 32-bit

ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2

Operands:

S

1

: Source device 1 S

2

: Source device 2

Explanation:

1.

This instruction conducts logic operation between the content in S

1

and S

2

. If the result is not

“0”, the continuity of the instruction is enabled. If the result is “0”, the continuity of the

instruction is disabled.

2. 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

3. Operation:

& : Logic “AND” operation, | : Logic “OR” operation, ^ : Logic “XOR” operation

4.

When 32-bit counters (C200 ~ C254) are used in this instruction, make sure to adopt 32-bit

instruction (DAND#). If 16-bit instruction (AND#) is adopted, a “program error” will occur and

the ERROR indicator on the MPU panel will flash

Program Example:

1.

When X0 = ON, and the result of logical AND operation between C0 and C10

≠ 0, Y20 = ON

2.

When X1 = OFF, and the result of logical OR operation between D10 and D0

≠ 0, Y21 = ON

and latched

AND

C0

C10

AND

D10

D0

SET

&

|

Y21

Y20

X0

X1

This manual is related to the following products: