3. Instruction Set
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
RST C251
ZRST Y10 Y12
M1000
DCNT C251 K10000
X10
DHSZ K2000 K2400 C251 Y10
Timing diagram
2000
2400
Speed variable
transmission device
0
X10
Y10
Y11
Y12
High speed
Low speed
Stop
Present value
of C251
0