Font Size: a A A

Investigation And Simulation Implementation Of The CNC Engraving System Based On DSP

Posted on:2008-05-07Degree:MasterType:Thesis
Country:ChinaCandidate:Z P WangFull Text:PDF
GTID:2121360212975972Subject:Control theory and control engineering
Abstract/Summary:PDF Full Text Request
The CNC engraving system has wide application prospective in both industry manufacture and people's daily life. This paper presents a systemic analysis and summarization on current situation of CNC technology and engraving technology, discusses the application characteristics, composing modules and functions of the CNC engraving system. The main contributions of this thesis are as follows:1. Study the traditional execution way of NC code, propose an advanced compile–based execution way which is more efficient. In this paper, we customize the target instruction set, define the lexical and syntax rules for G code program according to the computer compile theory, make use of the Lex&Yacc tools to generate analyse code, build up the compiler within VC++ environment, use the compiler to complete translation from G code to target code, execute the target code directly in the end.2. Study the traditional way of data transportation in the CNC system, choose USB interface as data channel between master and slave machine, use the HPI interface of DSP chip to realize fast storage of mass data within slave machine. In the master machine, develop a Windows dirver based on WDM framework to handle USB data transportation. In the slave machine, use EZ-USB chip to realize USB protocal and handle USB data transportation, and then combine GPIF interface of EZ-USB chip and HPI interface of DSP chip to realize fast storage of mass data.3. Aim at the insufficiency in 3D interpolation and the complexity in quadrant transition process of tranditional DDA interpolation algorithm, propose a fast DDA interpolation algorithm based on vector. Because of the inherent advantage in angle and direction calculation of vector, this algorithm realizes any 3D arc or line interpolation with high efficiency and a smooth process on quadrant transition, and requires less computer resource then before.4. Build up a simulation system for the CNC engraver, develop a code decipher on the target instruction set which is responsible for executing the target code generated by compiler, develop a virtual engraver based on OpenGL technology to simulate characteristics and functions of the engraver entity.
Keywords/Search Tags:CNC Engraving, G Code Compiler, DSP, DDA
PDF Full Text Request
Related items