Font Size: a A A

Research And Realizing Of User's Macro Program For Open CNC System

Posted on:2008-01-18Degree:MasterType:Thesis
Country:ChinaCandidate:X L WangFull Text:PDF
GTID:2121360245996658Subject:Mechanical Manufacturing and Automation
Abstract/Summary:PDF Full Text Request
Using macro function may enhance efficiency of programming to a higher lever and enrich function of NC systems. At present, macro function already have become one of functions that mid and top grade NC systems absolutely need. Because the open architecture CNC system is the latest trend in numerical control technology and next generation NC systems, it should have macro function. This project aims at continuing the research of our lab, enriching the macro functions of the tri-axis open CNC milling machine.On the base of analyse macro instruction system of high market occupancy NC system, this paper advanced own macro instruction system. This system references macro instruction system of FANUC and HUAZHONG, it have compatible and openness.The interpreter is individual module in NC system, the input to it is NC code file and the output of it is data stream that cutter radius compensation and interpolation may identify. In this process, the interpreter should accomplish the following tasks: pretreatment, data-identify, syntax analysis, translate and error handling. This paper analyze and research these key technology of interpreter. Functions of interpreter are arranged in levels , thus it is convenience to enrich and modify. So the interpreter have portability and expandability, and satisfy requirement of open CNC system.Because macro program usually contains some special programming instructions, such as variable, arithmetic, repetition and transfer, and its structure is complex, it's quite a little difficult to decode the macro program rapidly and accurately. This paper analyze and research decoding method to macro program ,and then design decoding programme to macro by using object-oriented program language VC++.Macro is widely used in NC machining. This paper analyze two representative examinationis and design their numerical control machining code, then three work pieces have been machined by using the tri-axis open CNC milling machine. So the function of the macro is validated.
Keywords/Search Tags:open CNC system, NC program, macro, decode
PDF Full Text Request
Related items