Font Size: a A A

The Development Of Nc Program Interpreter Of Siemens802D NC Traning System

Posted on:2012-02-12Degree:MasterType:Thesis
Country:ChinaCandidate:C L LiuFull Text:PDF
GTID:2211330362450752Subject:Mechanical Manufacturing and Automation
Abstract/Summary:PDF Full Text Request
As the great advantages of virtual NC simulation technology's application in the area of NC code Inspection and NC Training, NC simulation technology received more attention. NC code Interpreter is an important part of virtual NC simulation system, and shall be responsible for the interpretation of NC program and extracting the information needed for simulation. We have to develop a new interpreter for another NC system, because of the numbers of NC systems and every one has its own programming rules. General NC simulation system will integrate multiple NC systems, and interpreter development needs knowledge of compiler principle, it makes the progress of the development heavy and complicated. To solve this problem, the NC program interpreter is moving the direction of openness and common development.In the realization of the commonality of NC interpreter, many methods were proposed, but only rule-based method can give a real sense of commonality. However, due to the lack of a complete description method of NC program rules, the rule-based method has been extremely limited. So the most urgent thing is developing a description method that can describe the programming rules of most NC systems, and the way how to use it to interpret NC programs.In this paper, a rule-based NC program interpreter used in virtual Siemens 802D NC Training system is developed, and enable it expansibility and compatibility to make it easy to expand the interpreter to interpret the other NC system's programs. First, this paper analyzed the structural characteristics of lexical and syntax of NC programming, and summarized the differences of different NC systems. They provide dependence for developing a method to describe NC programming rules. Then borrow ideas from the ways to describe High-level programming language programming rules in compiler principle, and proposed a method adapt to describe NC programming language's lexical, syntax rules and some special rules owned by NC programming languages.To make the interpreter expansibility and compatibility, interpreter was divided into two parts, interpreter front-end (parser) and interpreter back-end (virtual machine). The front-end parser NC programs depend on the described rules in the rule library, and realized the expansibility; the back-end separate the parser from the virtual machine environment to realized the compatibility.In order to test the interpreter, running environment for interpreter was established, from some demos we test the interpreter's ability to interpreter Siemens 802D's programs and modifies the rule library to make the interpreter adapt to interpret FANUC Series 0i Mate-TC programs, and shows the interpreter's expansibility.
Keywords/Search Tags:NC interpreter, Virtual NC training, Virtual machine, Expansibility, Compatibility
PDF Full Text Request
Related items