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

API

111

Mnemonic

Operands

Function

Controllers

D

EZCP

P

Floating point zone

ES2/EX2

SS2

SA2 SX2

compare

 

 

SE

 

 

 

 

 

Type

Bit Devices

 

 

 

 

Word devices

 

 

 

 

 

 

 

Program Steps

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP

X

Y

M

S

K

H

KnX

KnY

KnM

KnS

T

C

D

E

 

F

 

DEZCP, DEZCPP: 17

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

steps

 

S1

 

 

 

 

*

*

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

S2

 

 

 

 

*

*

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

 

 

S

 

 

 

 

*

*

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

 

 

D

 

*

*

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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: Lower bound of zone comparison S2: Upper bound of zone comparison

 

S: Comparison

value D: Comparison result, 3 consecutive devices

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Explanations:

1.The data of S is compared to the data range of S1 ~ S2 and the result (, , ) is indicated by three bit devices in D.

2.If the source operand S1 or S2 is specified as constant K or H, the integer value will automatically be converted to binary floating point for comparison.

3.Operand S1 should be smaller than operand S2. When S1 > S2, the instruction takes S1 as the 1st comparison value and performs normal comparison similar to ECMP instruction.

Program Example:

1.If the specified device is M10, M10~M12 will automatically be used.

2.When X0 = ON, one of M10~M12 will be ON. When X0 = OFF, DEZCP instruction is not executed, M10~M12 will retain their previous state before X0 = OFF.

3.RST or ZRST instruction is required if users need to reset the comparison result.

X0

DEZCP D0 D10 D20 M10

M10

M11

M10 = ON when (D1,D0)>(D21,D20)

M11 = ON when (D1,D0) < (D21,D20) < (D11,D10)

M12

M12 = ON when (D21,D20)>(D11,D10)

3 - 296

Page 412
Image 412
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Ezcp, DEZCP, Dezcpp