DESIGN AND REALIZATION OF G CODE INTERPRETER FOR CNC SYSTEM

The function, structure and procedure of G code interpreter for computer numerical control (CNC) system is analyzed in details. And the data structure for program and for blocks in program is put forward based on the characters of microcomputer based NC. Then the interpreting process is realized by recursion. Finally, an example is made to test the validity of the program.