3. Instruction Set

API

240~

246

Mnemonic

Operands

Function

 

 

 

 

 

D

OR

 

 

Parallel Type Comparison

 

 

 

 

 

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

OR: 5 steps

S1

 

 

 

 

*

*

*

*

*

*

*

 

*

 

*

 

*

 

*

DOR: 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

Explanations:

1.This instruction compares the content in S1 and S2. Take API240 (OR =) for example, if the result is “=”, the continuity of the instruction is enabled. If the result is “≠”, 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

 

240

OR

DOR

S1S2

S1S2

241

OR

DOR

S1S2

S1S2

242

OR

DOR

S1S2

S1S2

244

OR<>

DOR<>

S1S2

S1S2

245

OR<=

DOR<=

S1S2

S1S2

246

OR>=

DOR>=

S1S2

S1S2

3.When the MSB (16-bit instruction: b15, 32-bit instruction: b31) of S1 and S2 is 1, the comparison value will be viewed as a negative value in comparison..

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 when the content in 32-bit register D100 (D101) ≥ K100,000.

X2 M30

M60

DOR>= D100 K100000

3 - 4 7 3

Page 589
Image 589
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Or※, Parallel Type Comparison