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.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.