A compiler-compiler concept is used in this study to develop a CNC compiler system for machine tool. The standard GM-code and user defined Macro language can be compiled by the developed compiler system. The above two kinds of languages are called GMacro language in this study. The using of OP-Code which generated from GMacro language can improve the usability of GMacro language for supporting different motion control command.
Several experiments are performed using the developed compiler system to verify the correctness of GMarco language compiling. Both of the MATLAB simulation method and practical machining test are used to evaluate the correctness of the developed compiler system. The study provides the essential technology for developing a CNC machine tool compiling system.