CNC system updated continuously with the rapid development of electronic technology, computer technology and automatic control technology. Open CNC system has become the mainstream in the development of numerical control system. In the future, CNC system will make for high speed, high precision, intellectualization and network information.The thesis introduces the developmental status of open NC system inland and overseas, and the development of compiling technology in NC system. In accordance with the character of the open NC system, experimental platform for numerical control, which includes mechanical module, decoding module and interpolation module is designed. Its purpose is to compose one open, expandable and inexpensive open style numerical control platform, then we may carry on the re-development based on this system platform, the expansion numerical control system existing function. The major work is summarized as follows:Firstly, the whole structure plan of NC platform is drown up in this paper. The overall arrangement, the moving mode and the design of the parts are analyzed. 3D model of every part of the platform is set up using Solidworks project software, and the entire machine assembly body model is established and the interference check is made. It is analyzed the stress of the key components.Secondly, the paper analyzes requirement of decode modular, then designs the overall structure of it, and illustrates sub-module of it. In addition to this, this paper introduces relevant knowledge of NC code and compiler principles and development environment.Thirdly, the paper demonstrates realization of decode modular. Because NC systems are different, NC codes are different, then this paper designs function word list which can be modified and expanded, and openness and commonality of different NC system codes are realized. Then it studies the uses of GRETA regular expression and uses it in Lexical and Syntactic Analysis. Lexical and Syntactic Analysis are rapidly and correctly. The coding process accomplishes Lexical Analysis, Syntactic Analysis and processing information storage to interpolation modular. The NC Code Interpreter in this thesis can check NC code rapidly and accurately, can read and recognize the ASCII-status NC programmers, and translate information of NC program into the cutter path coordinates and relevant data.Finally, the paper studies interpolation modular which is executing module of NC code. It illustrates realization of linear interpolation and circular interpolation.The paper has presented and partly completed the design of experimental platform for numerical control. It has provided the good foundation for the future work. Overall, this platform has some practical value. |