Font Size: a A A

Research On General G Code Compiler In Virtual Numeric Controling Producing

Posted on:2006-08-18Degree:MasterType:Thesis
Country:ChinaCandidate:X G WangFull Text:PDF
GTID:2121360155963396Subject:Mechanical Manufacturing and Automation
Abstract/Summary:PDF Full Text Request
This paper researches on the technical structure of General G Code Compiler and discusses the enforceable tactics of its application in CNC manufacturing System. In the light of compiler substance, a rapid and general compiler for G code is developed and solved. Some key technologies are investigated as follows.General G Code Compiler is mainly constructed with Lexical Analysis, Syntactic Analysis and Virtual NC code Generation, which includes some documents such as G code Keywords List and Manufacturing Information Storage List. This paper adopts GRETA formula expressions library researched and developed in Microsoft research lab as strong match and analysis tool, which based on lexical and syntactic analysis.It works out a kind of G code compiler module with rapid match, high precision, better versatility and compatibility.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 Virtual NC code Generation. Compilation of different NC system codes is realized.2. Deep analysis to NC procedure structure is carried on and the common error types in NC procedure are enumerated out. Using the functions of regular expressions template library GRETA to analyse and process NC code, lexical and syntactic analysis are proved rapidly and correctly.3. Introducing the Object Orient technology to NC code compile, the Object Orient Design Method of General Compiler is summarized. Using this method, the same compiler applied on different language form is realized efficiently, the maintainability and expandability of the system are improved.4. Based on software engineering, the compiler system of procedure structure is rational, the user interface is friendly, and the system has high reliability and practicability.
Keywords/Search Tags:Code compile, NC system, Regular expressions, G code
PDF Full Text Request
Related items