Font Size: a A A

Design And Implementation Of The Nc Code Compiler

Posted on:2008-03-25Degree:MasterType:Thesis
Country:ChinaCandidate:S T RenFull Text:PDF
GTID:2191360212478838Subject:Mechanical and electrical engineering
Abstract/Summary:PDF Full Text Request
In the process of NC producing, for complex workpiece, how to ensure the correctness of NC progresses has became a prominent issue. Meanwhile, NC system is impossible to directly carry out NC code, need that the code translation module changes it into the data information that computer is easy to handle. For this, this dissertation develops a general concept of NC Code Compiler, based on studies the technical structure of general NC Code Compier. At last, due to the need for research, the second half design a complex environment quadruped robot's mechanical system.First, this dissertation investigates the development and application of NC code compiler. Besides, it also analyses and discusses its actuality and problems in home and abroad. Based on the characters of that, this article provides the actual situation and problems in this field, the object oriented design method of general compiler is summarized.Second, form the structure and format of NC code, analysises normal Lexical and Syntactic errors of NC program. Then studies compiler techniques, in view of the characteristics of NC code, describes a grammar of the NC code, and designs the overall structure of the NC Code Compiler.Third, studies the uses of GRETA regular expression in NC Code Compiler process. Having introduced the compiler technology into the process of NC code analysis, the process of NC Code Compile is divided into three stages: Lexical Analysis, Syntactic Analysis and NC code translation process. This system uses Windows System as development platform, C++ language as software development tool, designs and implements those modules specifically.At last, the paper designs a complex environment quadruped robot. Introduces freedom istribution of robot, studies legs and foot structure and balance.and designs the structure of robot foot, the work includes: designes joint-driven and leg, leg drive, thigh and side-sway device driver.The NC Code Compiler in this dissertation can check NC code rapidly and accurately, can read and recognize the ASCII-status NC programmers, and translate information of NC program into the cutter path coordinates and relevant data.
Keywords/Search Tags:Code Compile, Numerical Control, NC Code, Regular Expressions
PDF Full Text Request
Related items