With the development of the times and the progress of science and technology, the level of industrial automation is also developing rapidly. Electronic equipment has been gradually introduced into industrial production. People also gradually improve the requirements of industrial automation. The traditional industrial control software has not kept up with the requirements of the development of modern industrial society. Many control equipment and process control devices are widely used in the industrial field, among which the CNC machining technology which uses the movement of lead screw to control the movement of machine tool is more and more popular. The problem that determines the function and control accuracy of CNC machine tools has become a key topic in the industry. The movement of lead screw plays a very important role in the development of CNC machine tools.