Font Size: a A A

Research And Development Of The Generic Code Compiling System For CNC

Posted on:2015-07-15Degree:MasterType:Thesis
Country:ChinaCandidate:S C ZhangFull Text:PDF
GTID:2181330467484208Subject:Mechanical and electrical engineering
Abstract/Summary:PDF Full Text Request
The generic code compiling system plays an important role in CNC, thefinal purpose of the system is to report errors in the NC code, create the correct toolpath file, extract the tool motion information, the control information and the auxiliaryinformation from NC code, then converts them into the specific format data which canbe identified by control system of CNC machine. The generic code compiling systemin this paper is designed for the standard G code, and is an important part of thespecial gear CNC system and the high performance intelligent CNC system which isbased on PMAC+industrial control computer developed by the CIMS Institute ofHefei University of Technology. The main contents of this paper are the following5points:⑴The system introduces the computer compiling technology into the processingprocedure of NC code. The compilation process is divided into the process of thepretreatment, the lexical analysis, the grammatical analysis, the tool radiuscompensation and the code-switching according to the theory of NC machining.⑵Through the research of the standard G code and the computer compilingprinciple, puts forward the function demand, the design philosophy and the overallsystem architecture of the generic code compiling system. The system uses a modulardesign concept. It is divided into different functional modules. For example, thepreprocessing module, the lexical analysis module, the grammatical analysis module,the tool compensation module, the compiling module, the program managementmodule, the tool management module and the parameter setting module, etc. Differentfunctional modules achieve different functions.⑶This paper introduces the realization of each functional module, and adetailed analysis of some key techniques, such as the extraction of the codeinformation, the visit of code information in the Buffer,theadvanced search recognition method,the error processing system and the symbol tablemanagement.⑷This paper focuses on the function of tool radius compensation, analysesthe principle, common methods and implementation process of tool radiuscompensation in detail. This paper builds the mathematical model of tool radiuscompensation, puts forward the concrete algorithm of cutting tool radiuscompensation, and analyses the over cutting judgment of the tool radius compensation.⑸The system is designed by the standard C language. Using theobject-oriented programming technology and using MFC module of Visual C++asthe development tool in the Windows operating system. The function module test andthe system test are performed on the special gear CNC system and the highperformance intelligent CNC system which is based on PMAC+industrial controlcomputer. Test results show that, the system meets the basic design requirements, suchas NC code error detection, tool radius compensation, code conversion, programmanagement, tool management and parameter settings and other functions.
Keywords/Search Tags:CNC, Lexical analysis, Grammatical analysis, Compile, Tool radiusCompensation
PDF Full Text Request
Related items