Font Size: a A A

Study On General NC Code Compiler

Posted on:2003-11-13Degree:MasterType:Thesis
Country:ChinaCandidate:S F ZhangFull Text:PDF
GTID:2121360065963878Subject:Mechanical Manufacturing and Automation
Abstract/Summary:PDF Full Text Request
This paper studies the technical structure of General NC Code Compiler and the enforceable tactics of its application in various NC systems. In the light of compiler substance,a practical compiler system for NC code is developed and solved. Key technologies are investigated as follows:1. Having introduced the compile technology into the process of NC code analysis,the process of NC code compile is divided into three stages:Lexical Analysis,Syntactic Analysis and NC Code Conversion. Based on JB 3208-83 and JB 3832-85,and through establishing the relationship among different NC system in terms of same functional instruction,NC Code conversion between NC systems is realized.2. By thorough analyzing the structure of NC code,the normal errors type of the NC program is summarized and the cause of each kind of errors is distinguished clearly. Applying the Normal Grammar Method and LALR(1) Method in NC code's Lexical & Syntactic Analysis,and using specificcompile tools------ LEX & YACC to develop the NC compiler module,thecompleteness and veracity of Lexical & Syntactic Analysis is ensured successfully.3. In order to increase the applied field of the system,the module of System Customization is developed. By the tree type data process model of "manage gradually through stage" which is presented in this paper,the complex degree of data processing is simplified;furthermore,the reliability of system is guaranteed. For the sake of avoiding system's dependency to the database system,the Database Technology is introduced to process the complicated data of this system,DAO is applied to manipulate the database engine,the efficiency and veracity of the data operation is increased,and expandability and generality of the system is ensured.4. By introducing the Object Oriented Technology into NC codecompile,the Object Oriented Design Method of General Compiler is summarized. Using this method,the same compiler applying in different language form is realized efficiently,the maintainability and expandability of the system is improved.5. In system developing,owing to following the thought of Software Engineering,the procedure structure is rational,the user interface is friendly,and the system has high reliability and practicability.
Keywords/Search Tags:NC System, Customization, Code Compile, LEX & YACC
PDF Full Text Request
Related items