In the intelligent packaging system of medicine, the use of high-speed granule counting station. The workstation system requires very little load, but very high speed. However, the algorithm of stepping drive control system is optimized at high speed by combining the PSP PMC007 system. With the close-loop control system, the stepper motor can not overshoot and overshoot at high speed. This ensures the accuracy of the particle counting system.