185
X20 is the signal input point for activation.
The DHSZ will generate the outputs only when the external
pulses are entering to the C251. For that reason, when
X20 = “OFF” → “ON” (the initial active signal of the left
program), it must to activate the motor operation
(let Y0 = “ON”). Afterwards, the move will produce the
pulses to the Software High Speed Counter, so the
instruction can perform the corresponding comparison
and use the results to drive the outputs Y0~Y2
immediately.
K9000
ZRST Y0 Y2
DHSZ K2000 K2200 C251 Y0
C251
M9000
X20
M0
X20
X20
RST C251
PLS
M0
SET
Y0
The speed curve of
variable speed device
Present value of C251
Software High Speed Counter
2000
2200
Use the HSZ instruction to perform high speed, low speed and stop control
C251 is an A/B phase high speed counter, X0 is an
A-phase pulse input, and X1 is a B-phase pulse input.
Initial active
Activate Input X20
High-speed Forward Y0
Low-speed Forward Y1
Stop Y2