Font Size: a A A

Design And Development Of General Interpreter Program For CNC System Base On Automation Theroy

Posted on:2010-01-05Degree:MasterType:Thesis
Country:ChinaCandidate:S ChengFull Text:PDF
GTID:2231330392951664Subject:Control Engineering
Abstract/Summary:PDF Full Text Request
Lathe is the master of equipment manufacturing industry, which is alsothe engine of equipment manufacturing industry. With the development ofscientific technology and manufacturing technology, higher automatednumerical control machine occupy more important position inmanufacturing industry. In order to enhance the flexibility and adaptabilityof numerical control (NC) System, it move in the direction towards openarchitecture which is the brain of numerical control machine. Interpreterprogram witch is the essential part of NC System indicate the type ofmachine and operating power, and it is the necessary part to show openarchitecture. A major goal of this paper is to design and development ofgeneral interpreter program for CNC system base on automation theory tomeet the need of real project of development.First of all, this paper describes the definition of NC program languageand the requirement of interpreter program. By analyzing NC programlanguage, it is separated into general instructions and macro instructions.They belong to regular language and context-free language separately.According to the feature of two languages above and the requirement of realoperation, FSM-Ragel high speed scan mode and LALR-GOLD completelyscan mode are raised to parse and interpreter NC instructions. FSM-Ragelhigh speed scan mode is a rather fast way to scan which base on direct-jumpdefinite state machine by Ragel FSM Generate tool. LALR-GOLD completely scan mode is a scan way to interpreter macro instructions basedon LALR(1) parsing method in bottom-up parsing methods by GOLDParser interpreter generator auxiliary tool. At the same time, this paperalso tells the realization principle of these interpreter modes. EspeciallyFSM-Ragel high speed scan mode makes the process of scanning generalinstruction extremely efficient.Secondly, this paper introduces the realization principle of CompoundFixed Cycle of Lathe which belongs to general instruction. Compound FixedCycle codes are NC codes which can simplify programming and raiseoperating efficiency. They are as same as other NC program codes whichneed an interpreter scanning and analyzing to drive the NC machineautomatically. It is much difficult to develop for complex information ofCompound Fixed Cycle command in a single line and using interpretivemode as a whole. An efficient interpreter method to analyze CompoundFixed Cycle instruction of Lathe is putted forward in this paper which iscalled Interrupt-Caching interpreter mode, it’s realization algorithm andflow diagram are given explain the principle.This general interpreter program for CNC system based on automatatheory designed in this paper has integrated into CNC system of our ownresearch, and it has been verified in practical application. It runs goodactually and got so much favorable comment from the Customers. The gapbetween China and advanced countries in terms of CNC system has beennarrowed.
Keywords/Search Tags:automata, interpreter, FSM-Ragel high speed scan mode, LALR-GOLD completely scan mode, Interrupt-Caching interpreter mode
PDF Full Text Request
Related items