Title :
A design of general compiler for NC code in embedded NC system
Author_Institution :
Jinshan Coll., Fujian Agric. & Forestry Univ., Fuzhou, China
Abstract :
How to ensure the correctness of NC code interpretation in the process of NC machining has become a significant issue. In allusion to the demand for high precision and high efficiency of the NC code compiler from the NC system, based on the top-down analysis method of operator precedence grammar, a novel design of general NC code complier in embedded system is presented. The general part of the compiling system includes: the lexical analysis, syntactic analysis, the generating of middle code and errors checking. Based on different motion controllers, the machine languages are different, and the object code would be different too. So, how to enhance the versatility of the compiler also is an urgent issue. To address this problem, this paper develops a general concept of NC code compiling system, based on studying the technical structure of general NC code compiler, and the portability of compiling module will be the key factor. The compiler is ported to the NC system based on ARM and PCL6045 motion controller, and tested on the two-axis NC engraving machine.
Keywords :
embedded systems; machining; motion control; numerical control; ARM; NC code interpretation; NC machining; PCL6045 motion controller; embedded NC system; general NC code complier; lexical analysis; machine languages; operator precedence grammar; syntactic analysis; top-down analysis method; two-axis NC engraving machine; Computer numerical control; Conferences; Grammar; Hardware; Machining; Syntactics; NC code; compiler; compiling; embedded NC system;
Conference_Titel :
Industrial Electronics and Applications (ICIEA), 2014 IEEE 9th Conference on
Conference_Location :
Hangzhou
Print_ISBN :
978-1-4799-4316-6
DOI :
10.1109/ICIEA.2014.6931409