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

API

Mnemonic

Operands

Function

Controllers

232~

D

AND

 

 

 

 

 

Serial Type Comparison

 

 

ES2/EX2 SS2 SA2 SX2

 

 

 

 

 

 

 

 

SE

 

238

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

 

 

 

 

 

 

 

 

 

 

 

 

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

Explanations:

1.This instruction compares the content in S1 and S2. Take API232 (AND =) 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.AND(: =, >, <, <>, ≤, ≥) instruction is used for serial connection with contacts.

API No.

16 -bit

32 -bit

Continuity

Discontinuity

instruction

instruction

condition

condition

 

232

AND

DAND

S1S2

S1S2

233

AND

DAND

S1S2

S1S2

234

AND

DAND

S1S2

S1S2

236

AND<>

DAND<>

S1S2

S1S2

237

AND<=

DAND<=

S1S2

S1S2

238

AND>=

DAND>=

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 (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 content in C10 = K200, Y20 = ON

2.When X1 = OFF and the content in D0 ≠ K-10, Y21= ON and latched.

 

X0

K200

C10

 

Y20

 

 

 

 

 

 

 

 

AND=

 

 

 

 

 

 

 

 

 

X1

K-10

D0

 

SET

Y21

 

 

 

 

AND<>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3 - 472

Page 588
Image 588
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Dand =, Dand >, Dand <