| The requirement for various kinds of CNC machine tools in modern processing industry is increasing and more various. AS the core technology of CNC machine tools, NC system is regarded more and more important.2024 End Milling Machine can only do single speed straight line processing due to its structure limits. In order to achieve straight line processing, arc processing, H shape processing and other mixed processing of these kinds of graphics, it is necessary to use special motion control system. It is very important to use the motion control system to improve the performance of End Milling Machine.In this article, a powerful chip which is named PIC16F877 was chosen as the major controller. The kind of Servo drive is semi-closed loop. MS-110ST-M05030AZ-21P and MS-80ST-M02430AZ-20P7 AC servo motors were chosen. And further more, this article chose DS2-21P5 and DS2-20P7 as the servo driver.The hardware of the control system whose core is the MCU consists of the power module, control panel, monitor, the I/O ports of the MCU,etc. In this system, the I/O ports output voltage pulse, and the signal can drive the servo motor through servo driver. In this way, it can control the feed of the tool in vertical plane, so the machine can produce products with ideal shape.The software of motion control system consists of the programs of control panel, monitor, linear interpolation, arc interpolation and tool compensation. In this system, the control panel and monitor are the most important equipments for Man-machine dialogue. The control of feed and processing intervention is inputted through the control panel, and displayed by the monitor; the program of interpolation is achieved by the gradually approaching way which is on the basic of recursion. The program adopts the way that the program calculates the direction of the next step after previous step. After one step of the tool, the program will know the tool's next step, until reach the end of processing.The development, compilation and debug of the software were done in MPLAB IDE under Windows operating system. This article developed an assembly program, and also debugged the program with the help of MPLAB IDE. After that, the program was been written into the MCU of PIC series by using MPLAB-ICD. The results shows that the designed numerical control system can achieve straight line processing, arc processing, H shape processing and other mixed processing of these kinds of graphics. |