Font Size: a A A

Design And Realize An Integrated Platform For Developing And Debugging G Code Program

Posted on:2010-07-19Degree:MasterType:Thesis
Country:ChinaCandidate:Z Y ZhaoFull Text:PDF
GTID:2131330338984932Subject:Digital material forming
Abstract/Summary:PDF Full Text Request
In conventional Computer Numerical Controlled (CNC) machining, G-code is indispensable as the CNC programming language. CNC simulation system has always been one of the research focuses in manufacturing development. Machining simulation in G-code could not only reduce the errors which might occur in CNC programming, but could also help the CNC programmers understand the overall machining process, thus enhance programming efficiency and reduce overall costs.Nowadays, domestic compiling and simulation software for G-code have obtained a rapid development. However, there still exist some common deficiencies, such as low compiling efficiency, poor recognition of complex grammar structure, absence of interactive debugging function, etc. To improve these deficiencies, an integrated development and debugging platform for G-code was designed and realized in this paper, which focuses on offering an environment similar to Microsoft Visual Studio. The platform offers convenient G-code text editing, precise machining route planning, perfect graphics-text interaction, and rich machining simulation mode options, to CNC programmers.In the design process, a set of data structures (Word Pair) was designed based on G-code minimum functional words, according to G-code unique letter-number grammar structure. Besides, a conception of"Micro-operation"was broached based on the Word Pair, for lexical analysis and syntax analysis in complex subroutine call. In addition, via the subsidiary variables in above structures which store corresponding row-column information of G-code texts, advanced interactive functions like machining route to source code mapping, and step debugging can be realized.The integrated development and debugging platform for G-code designed in this paper has already been applied in actual projects, and obtained favorable results. The system has offered great convenience for CNC programmers, with its rich route-graphics interaction and machining simulation function.
Keywords/Search Tags:G code, CNC simulation, Open GL, Compiler
PDF Full Text Request
Related items