Abstract
With the rapid development of Computerized Numerical Control (CNC) systems, traditional industrial communication protocols fail to meet the requirements for high real-time performance and reliability. To address these challenges, an open five-axis CNC system is designed and implemented based on the gLink-II bus protocol. This system features a layered architecture that integrates the Windows operating system with a Real-Time Operating System (RTOS) kernel, along with a multithreaded data interaction structure based on a circular buffer to enhance real-time data transmission performance and improve system responsiveness. In the direct linear interpolation control for five-axis machining, an acceleration and deceleration planning method is introduced, taking into account the kinematic constraints of the rotary axes. This method optimizes velocity and acceleration control. The experimental results show that the system achieves a maximum response error of less than 0.2 milliseconds and an interpolation period of less than 0.5 milliseconds in five-axis coordinated control. The system is capable of efficiently performing data processing and task scheduling, ensuring the stability of the CNC machining process.