Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual And#, Serial Type Logic Operation, Dand, 219, 220

Models: DVP-ES2/EX2/SS2/SA2/SX2/SE

1 702
Download 702 pages 56.54 Kb
Page 585
Image 585

3. Instruction Set

API

218~

220

Mnemonic

Operands

Function

 

 

 

 

 

D

AND#

 

 

Serial Type Logic Operation

 

 

 

 

 

Controllers

ES2/EX2 SS2 SA2 SX2

SE

Type

Bit Devices

 

 

 

 

Word devices

 

 

 

 

 

 

 

Program Steps

OP

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F

AND#: 5 steps

S1

 

 

 

 

*

*

*

*

*

*

*

 

*

 

*

 

*

 

*

DAND#: 9 steps

S2

 

 

 

 

* *

*

*

*

*

*

*

*

*

*

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

 

 

 

 

16-bit

 

32-bit

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

SE

SE

SE

Operands:

S1: Source device 1 S2: Source device 2

Explanation:

1.This instruction conducts logic operation between the content in S1 and S2. 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

32 -bit

Continuity

Discontinuity

instruction

instruction

 

condition

 

condition

 

 

 

218

AND&

DAND&

S1

& S2≠0

S1

& S20

219

AND

DAND

S1

S2≠0

S1

S20

220

AND^

DAND^

S1

^ S2≠0

S1

^ S20

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

 

X0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND &

C0

C10

 

Y20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X1

 

 

 

 

 

 

 

 

 

AND

D10

D0

 

SET

Y21

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3 - 4 6 9

Page 585
Image 585
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual And#, Serial Type Logic Operation, Dand, 219, 220