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.

3. Instruction Set<br />

DHSZ instruction. Also, when DHSCS uses I070 or I080, comparators B3 and B4 are no<br />

longer available for DHSZ instruction. If comparators are used repeatedly, the syntax<br />

error will be detected on the instruction behind.<br />

‣ For <strong>DVP</strong>-SE, if DHSZ instruction uses hardware comparators, two hardware<br />

comparators are used. DHSCS instruction and DHSCR instruction can not use the same<br />

hardware comparators.<br />

Program Example 1: (Applying Hardware High Speed Counter)<br />

6. When D is specified as Y0, then Y0~Y2 will be occupied automatically.<br />

7. When DHSZ is executed, the instruction compares the current value in C246 with the<br />

upper/lower bound (1500/2000) of the comparison zone, and Y0~Y2 will be ON according to<br />

the comparison result.<br />

M1000<br />

DCNT C246 K20000<br />

Y0<br />

Y1<br />

Y2<br />

DHSZ K1500 K2000 C246 Y0<br />

When current value of C246 < K1500, Y0=On<br />

When K1500 < current value of C246 < K2000, Y1=On<br />

When current value of C246 > K2000, Y2=On<br />

Program Example 2: (Applying DHSZ instruction for performing ramp down operation)<br />

8. C251 is AB-phase high speed counter. When X10 = ON, DHSZ compare the present value<br />

with K2000. Present value≦<br />

K2000, Y10 = ON.<br />

9. When X10 = OFF, Y10~Y12 are reset.<br />

X10<br />

RST C251<br />

M1000<br />

X10<br />

ZRST Y10 Y12<br />

DCNT C251 K10000<br />

DHSZ K2000 K2400 C251 Y10<br />

3-133

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

Saved successfully!

Ooh no, something went wrong!