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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

API Mnemonic Operands Function<br />

111 D EZCP P<br />

Type<br />

Floating point zone<br />

compare<br />

Controllers<br />

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

SE<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 />

S * * *<br />

D * * *<br />

DEZCP, DEZCPP: 17<br />

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 : Lower bound of zone comparison S 2 : Upper bound of zone comparison S: Comparison<br />

value D: Comparison result, 3 consecutive devices<br />

Explanations:<br />

1. The data of S is compared to the data range of S 1 ~ S 2 and the result (>, =, S 2 , the instruction takes S 1 as the<br />

1 st comparison value and performs normal comparison similar to ECMP instruction.<br />

Program Example:<br />

1. If the specified device is M10, M10~M12 will automatically be used.<br />

2. When X0 = ON, one of M10~M12 will be ON. When X0 = OFF, DEZCP instruction is not<br />

executed, M10~M12 will retain their previous state before X0 = OFF.<br />

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

X0<br />

M10<br />

M11<br />

M12<br />

DEZCP D0 D10 D20<br />

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

M11 = ON when (D1,D0)<br />

M10<br />

< (D21,D20) < (D11,D10)<br />

M12 = ON when (D21,<br />

D20)>(D11,D10)<br />

3-296

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

Saved successfully!

Ooh no, something went wrong!