With the rapid development of our economy and society, the requiremnt of theCNC(Computer Numerical Control) system is more critical. The CNC system is notonly very powerful, but also economical and practical. Because open CNC system hasthe advantage of modularity, portability, and ease of secondary development, OpenCNC system has became a hot technique of research and development.CNC motion control module is the core of the system subsystem, whoesperformance is directly related to the quality of NC machining and the life time of theCNC machine. In this paper, a method of CNC motion control method is studied. wechoose a xml platform-independent language, xml, to store G code files. This paper isbased on the research and implementation of Open CNC motion scheduling method, wemainly focused on solving such following problems:1. The design and implementation of a fast memory buffer allocation and releasealgorithm based on the memory pool. Because the memory is very frequently allocatedand released, the memory fragment problem is advoided. This paper proposed a methodof fast memory allocation and release based on the buffer pool to reduce the occurrenceof the fragment.2. The study and design of two stage interpolator based on ring buffer. In order toimprove the flexibility of the system, a method based on ring buffer of two stageinterpolator is proposed.To avoid the side effect of load balance of process schedule, weconfigure the process schedule system.3. Optimize the trajectory generation technology, mainly for NURBS splinebasis functions and the calculation process of arbitrary order derivative. The arbitraryorder derivative of NURBS curves are expressed as the matrix chain multiplication.The optimal calculation process of the matrix chain multiplication is existing and thematrix multiplication is cache friendly. |