Based on the previous research on the production line automation, this paper carries out further research and further design and development on the basis of the original production line automation equipment. In this paper, the overall design of the automatic production line is carried out, and the various systems in the automatic production line are optimized, and the backward instruments are eliminated, and then some more advanced and convenient instruments are applied. Then, the hardware and software of the automatic production line are studied respectively, and the human-computer interaction module and real-time main control circuit module are re developed, and the electric shaft is applied to the automatic production line. Finally, the fuzzy PID controller of the stepping motor is designed. The experiment shows that the fuzzy PID control scheme is better than the traditional PID control scheme. After the rationalization of the system, the quality robustness of proactive planning is improved obviously. Then, the temperature of motorized spindle was tested.