DVP- ES2/ EX2/ SS2/ SA2/ SX2/ SE&TP O pe r a t i on Ma nua l - Pr ogr am m i ng3- 134available for DHSZ instruction. If comparators are used repeatedly, the syntax error will bedetected on the instruction behind. For DVP-SE, if DHSZ instruction uses hardware comparators, two hardware comparatorsare used. DHSCS instruction and DHSCR instruction can not use the same hardwarecomparators.Program Example 1: (Applying Hardware High Speed Counter)1. When D is specified as Y0, then Y0~Y2 will be occupied automatically.2. When DHSZ is executed, the instruction compares the current value in C246 with theupper/lower bound (1500/2000) of the comparison zone, and Y0~Y2 will be ON according to thecomparison result.M1000DCNT C246 K20000DHSZ K1500 K2000 C246Y0Y0Y1Y2When current value of C246 < K1500, Y0=OnWhen K1500 < current value of C246 < K2000, Y1=OnWhen current value of C246 > K2000, Y2=OnProgram Example 2: (Applying DHSZ instruction for performing ramp down operation)1. C251 is AB-phase high speed counter. When X10 = ON, DHSZ compare the present value withK2000. Present value≦K2000, Y10 = ON.2. When X10 = OFF, Y10~Y12 are reset.X10RST C251ZRST Y10 Y12M1000DCNT C251 K10000X10DHSZ K2000 K2400 C251 Y10