Font Size: a A A

Design And Implementation Of G Code Interpreter For Embedded CNC System Based On QT

Posted on:2019-02-04Degree:MasterType:Thesis
Country:ChinaCandidate:S ZhaoFull Text:PDF
GTID:2381330548486981Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the rapid development of China's manufacturing industry,the market demands more and more technical products and the number of products is increasing.As far as CNC is concerned,the rapid expansion of large,medium and small enterprises and the demand for the development of the times which make the demand of CNC machine tools increased and the higher the requirements for the performance of CNC machine tools.In recent years,China has also given strong support for CNC,encouraged the upgrading of CNC products,realized the NC demonstration of typical industrial equipment,improved the level of CNC machining,improved the competitiveness in the international competition,and occupied a place in the future development.As an indispensable technology in numerical control machine tools,numerical control technology must develop the level and capability of numerical control manufacturing.G code interpreter is a necessary part of the numerical control system.This topic was therefore proposed.This article first introduced the source of the G code interpreter project,and then introduced the independent research and development of Shanke CNC system,including the hardware structure and software structure of Shanke CNC system.Next based on this platform,the G code interpreter is designed and developed.According to the characteristics of G code,the different numerical control codes are classified and planned,and the specific interpretation process of G code is designed,including lexical analysis,grammatical semantic analysis and error analysis.Different function codes call different function functions to achieve different functions.The next step is to develop a G code interpreter simulation system in the Qt R&D platform and wince real-time operating system.Finally,the G code interpreter is simulated on the PC machine and verified by NC machining.On Windows 7 system,the G code interpreter which is designed in this paper is used to simulate and implement the G code by means of Qt creator as the compiling tool and real-time WinCE operating system.The interpreter examines and analyzes the text files input in the txt format line by line,extracts the valid information,and realizes the simulation and achieves good results.At the same time,the interpreter designed in this article utilizes Qt creator,a powerful R&D platform with portability and image processing capabilities.The designed interpreter can run on differentplatforms,achieve cross-platform,and save a lot of work which increased practicality.
Keywords/Search Tags:CNC system, G code, interpreter, Qt
PDF Full Text Request
Related items