DVP-ES2/SX2/SS2/SA2/SX2/SE Operation Manual – Programming

API

Mnemonic

Operands

Function

Controllers

221~

D

OR#

 

 

 

 

 

Parallel Type Logic Operation

 

ES2/EX2 SS2

SA2 SX2

 

 

 

 

 

 

 

SE

 

223

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Type

Bit Devices

 

 

 

 

Word devices

 

 

 

 

Program Steps

 

OP

 

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F

OR#: 5 steps

 

 

S1

 

 

 

 

 

*

*

*

*

*

*

*

*

*

*

*

DOR#: 9 steps

 

 

S2

 

 

 

 

 

* *

*

*

*

*

* * * * *

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

16-bit

 

32-bit

 

 

 

 

 

 

 

 

 

 

 

 

SA2

 

 

 

 

SA2

SA2

 

 

 

 

 

 

 

 

 

ES2/EX2 SS2

SE

SX2 ES2/EX2 SS2

SE SX2 ES2/EX2 SS2 SE

SX2

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.OR# (#: &, , ^) instruction is used for parallel connection with contacts.

 

 

 

 

 

 

 

API No.

16 -bit

32 -bit

Continuity

Discontinuity

instruction

instruction

 

condition

 

condition

 

 

 

221

OR&

DOR&

S1

& S2≠0

S1

& S20

222

OR

DOR

S1

S2≠0

S1

S20

223

OR^

DOR^

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 (DOR#). If 16-bit instruction (OR#) is adopted, a “program error” will occur and the ERROR indicator on the MPU panel will flash

Program Example:

M60 will be ON either when both X2 and M30 are “ON”, or 1: the result of logical OR operation

between D10 and D20 ≠ 0, or 2: the result of logical XOR operation between CD100 and D200 ≠ 0.

X2 M30

OR

D10

D20

M60

OR ^ D100 D200

3 - 470

Page 586
Image 586
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Or#, Operands S1 Source device S2 Source device Explanation, 222