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

API

205

Mnemonic

Operands

Function

Controllers

CMPT

P

Compare table

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

CMPT: 9 steps

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

*

*

 

 

 

CMPTP: 9 steps

 

 

S2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

*

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n

 

 

 

 

 

 

*

*

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

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: Source device 1

 

S2: Source device 2

n: Data length (n = 1~16)

D: Destination device

Explanations:

1.S1 and S2 can be T/C/D devices, for C devices only 16-bit devices are applicable (C0~C199).

2.The value in the high 16 bits of n used in the 32-bit instruction is an invalid value.

3.The value in the low 8 bits of n indicates the data length. For the 16-bit instruction, n is between 1 and 16. For the 32-bit instruction, n is between 1 and 32. If n is less than 1, it is count as 1. If n is larger than the maximum value, it is count as the maximum value.

4.The 16-bit data is written into D. If the data length is less than 16 bits, the bit which does not have a corresponding value is 0. For example, if n is K8, bit0~7 have corresponding values, and bit8~15 are 0.

5.The 32-bit instruction supports DVP-ES2/EX2 version 3.0 and above, DVP-SS2 version 2.8 and above, DVP-SA2 version 2.6 and above, DVP-SX2 version 2.4 and above, and DVP-SE.

6.The value in the high 8 bits of n indicates the comparison condition. The relation between the comparison conditions and the values are shown in the following table.

Value

K0

K1

K2

K3

K4

 

 

 

 

 

 

Comparison

S1 = S2

S1 < S2

S1 <= S2

S1 > S2

S1 >= S2

condition

 

 

 

 

 

 

 

 

 

 

 

7.The example of setting n: If n used in the 16-bit instruction is H0108, eight pieces of data are compared with eight pieces of data in terms of “larger than”. If n used in the 32-bit instruction is H00000320, 32 pieces of data are compared with 32 pieces of data in terms of “less than”.

8.If the setting value of the comparison condition exceeds the range, or the firmware version does not support the comparison condition, the default comparion condition “equal to” is executed. DVP-ES2/EX2 version 3.0and above, DVP-SS2 version 2.8 and above, DVP-SA2 version 2.6 and above, DVP-SX2 version 2.4 and above, and DVP-SE support the setting of the comparison condition.

3 - 460

Page 576
Image 576
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Api, Cmpt