17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>SX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> – Programming<br />

API Mnemonic Operands Function<br />

205 CMPT P Compare table<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong><br />

SE<br />

Type<br />

Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F<br />

S 1 * * *<br />

S 2 * * *<br />

n * * *<br />

D * * * * * *<br />

CMPT: 9 steps<br />

CMPTP: 9 steps<br />

PULSE 16-bit 32-bit<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE SE SE <strong>SX2</strong><br />

Operands:<br />

S 1 : Source device 1 S 2 : Source device 2 n: Data length (n = 1~16) D: Destination device<br />

Explanations:<br />

1. S 1 and S 2 can be T/C/D devices, for C devices only 16-bit devices are applicable (C0~C199).<br />

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

3. The value in the low 8 bits of n indicates the data length. For the 16-bit instruction, n is<br />

between 1 and 16. For the 32-bit instruction, n is between 1 and 32. If n is less than 1, it is<br />

count as 1. If n is larger than the maximum value, it is count as the maximum value.<br />

4. The 16-bit data is written into D. If the data length is less than 16 bits, the bit which does not<br />

have a corresponding value is 0. For example, if n is K8, bit0~7 have corresponding values,<br />

and bit8~15 are 0.<br />

5. The 32-bit instruction supports <strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong> version 3.0 and above, <strong>DVP</strong>-<strong>SS2</strong> version 2.8<br />

and above, <strong>DVP</strong>-<strong>SA2</strong> version 2.6 and above, <strong>DVP</strong>-<strong>SX2</strong> version 2.4 and above, and <strong>DVP</strong>-SE.<br />

6. The value in the high 8 bits of n indicates the comparison condition. The relation between the<br />

comparison conditions and the values are shown in the following table.<br />

Value K0 K1 K2 K3 K4<br />

Comparison<br />

condition<br />

S 1 = S 2 S 1 < S 2 S 1 S 2 S 1 >= S 2<br />

7. The example of setting n: If n used in the 16-bit instruction is H0108, eight pieces of data are<br />

compared with eight pieces of data in terms of “larger than”. If n used in the 32-bit instruction is<br />

H00000320, 32 pieces of data are compared with 32 pieces of data in terms of “less than”.<br />

8. If the setting value of the comparison condition exceeds the range, or the firmware version<br />

does not support the comparison condition, the default comparion condition “equal to” is<br />

executed. <strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong> version 3.0and above, <strong>DVP</strong>-<strong>SS2</strong> version 2.8 and above, <strong>DVP</strong>-<strong>SA2</strong><br />

version 2.6 and above, <strong>DVP</strong>-<strong>SX2</strong> version 2.4 and above, and <strong>DVP</strong>-SE support the setting of<br />

the comparison condition.<br />

3-460

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!