DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming available for DHSZ instruction. If comparators are used repeatedly, the syntax error will be detected on the instruction behind. For DVP-SE, if DHSZ instruction uses hardware comparators, two hardware comparators are used. DHSCS instruction and DHSCR instruction can not use the same hardware comparators. 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 the upper/lower bound (1500/2000) of the comparison zone, and Y0~Y2 will be ON according to the comparison result.
M1000 Program 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 with K2000. Present value K2000, Y10 = ON. ≦ 2. When X10 = OFF, Y10~Y12 are reset. X10 M1000 X10 3-136 DCNT C246 K20000 DHSZ K1500 K2000 C246 Y0 RST C251 ZRST Y10 Y12 DCNT C251 K10000 DHSZ K2000 K2400 C251 Y10