Open CNC system is a modular architecture, its greatest feature is the openness, portability and interoperability. Several types of PC-based open-CNC system, NC-based embedded PC is the focus of research and development, the most common form is "PC + motion controller." Such open-CNC system PC, the information processing capacity and the ability to control motion control card combination together with high reliability, strong function, good performance, simple operation, short development cycle, low cost, wide used in manufacturing automation and control areas. In this paper, the type of open architecture CNC system G code compiler design and C as a function of tool radius compensation.This paper researches on G-code compiler in "PC + Motion Controller" type of open CNC system, using compiler theory, software engineering thinking and Delphi7 software, Design and Implementation of a G code compiler module program. G code groups used the idea to construct an intermediate code format, for subsequent simulation module, knives fill module provides a concise and accurate data.In summary, this paper "PC + motion controller" type of open design of the G code CNC system modules and C compiler tool radius compensation function modules, the economy has on the general-purpose CNC machine tool G code to identify and improve the C tool compensation function, and provides open source code level for the secondary development of staff, consistent with the open numerical control system to achieve the design requirements. |