Font Size: a A A

The Design And Implementation Of NC Code Interpreter Based On Network Engraving Machine

Posted on:2014-02-27Degree:MasterType:Thesis
Country:ChinaCandidate:D X LiuFull Text:PDF
GTID:2231330395487242Subject:Mechanical Manufacturing and Automation
Abstract/Summary:PDF Full Text Request
With the rapid development of modern manufacturing, the traditional NC machine tools (the mode of stand alone system) has not been fitted for the needs of industrial production. In recent years, the rapid growth of computer technology and network technology, NC machine tools will be gradually developed in the fields of network. Based on this idea, the object about the network NC engraving machine will be researched by this paper. At the same time, the engraving machine NC code interpreter will be designed and achieved in the material object.According to the characteristic of CNC system, the NC code interpreter which corresponds to the motion control card installed in the CNC system, has been intensively studied, as the starting point in the open CNC system.And then, the NC code interpreter has been developed. Firstly, the components about the interpreter were analyzed, from hardware and software. The set of scheme to realize the interpreter is put forward. Subsequently, from the structure of NC code and the format, the errors of NC code were analyzed. And the fundamentals of Compiling was researched. According to the grammar of NC code, the whole structure of NC code interpreter about engraving machine was designed. Then, the GRETA regular expression library was intensively analyzed. And the application of the GRETA regular expression library in NC code interpreter should be studied. According to the fundamentals of Compiling, this technology was speedy applied in the analysis process of NC program code. The analysis process is divided into morphology examination, Syntax and semantic examination, code generation and code processing. Finally, applying Windows XP system as the development platform, the NC code interpreter would be designed in details, using VC++6.0as the compiler tool.The NC code interpreter designed in this paper, can read and recognise the state of the ASCII NC code, obtain accurate trajectory information, key point information and other information. At the same time, the development of the interpreter follow the software engineering idea, the logical procedure structure. The interpreter has transplantable characteristic and extensibility.
Keywords/Search Tags:NC, NC Code interpreter, Regular expression, motion controller
PDF Full Text Request
Related items