Font Size: a A A

Research And Implementation Of Embedded NC Interpolation Controller Based On STM32

Posted on:2017-04-11Degree:MasterType:Thesis
Country:ChinaCandidate:Z XiaoFull Text:PDF
GTID:2311330503960570Subject:Mechanical and electrical engineering
Abstract/Summary:PDF Full Text Request
With the development of numerical control equipment and its derivatives, more and more manufacturing industries such as models manufacturing, mold manufacture and sculpture manufacture, favor lightweight NC forming equipment.Compared with the traditional numerical control machine tool,this kind of lightweight NC system have advantages of low cost and simple hardware structure,whose G code decoding and interpolation execution only rely on the software.The research of embedded NC interpolation controller has important significance for the development of lightweight NC equipment.Firstly,this paper starts with the demand analysis of embedded NC interpolation controller,planning and designing the overall design framework.The NC software layer of the framework consists of decoding module and interpolation module.OS and hardware layers are embodied in the design of the embedded platform.The hardware environment of embedded platform and the tasks of the operating system are designed.Next,in this paper,the software layer of NC interpolation controller is specific researched and designed,which contains decoding module and interpolation module. The intermediate variables of decoding module are packed into structure data,easy to expand support for more instructions. Through point by point comparison method to realize the 2d plane line and arc interpolation,and a kind of curve interpolation algorithm under the polar coordinate was studied.The new curve interpolation algorithm increases kinds of linear model,and avoids the complicated issues of across quadrants and direction determination in circular arc interpolation processing.Then,the whole hardware and software framework based on the STM32 is designed.Through transplanting UCOS system,it improves extensibility,and through transplanting FATFS,it strengthens management capabilities of the interpolation controller for G code file. After decoding and interpolation modules integrated into the embedded platform,the function of system is verified by experiment.Finally, the paper designs and realizes upper machine.PC upper machine performs parameters display and preview or edit of G code.Through the custom communication protocol,the G code file is transmitted to the SD card of lower machine.PC upper machine also have the function that online real-time decoding and execution.In applications,the embedded NC interpolation controller can decode and execute the G code in embedded System or PC.What is more,running state can be displayed on the STM32 and PC at the same time.The interpolation controller is of good extensibility, of simple structure and easy to maintain,so it has application prospect in small numerical control equipment.
Keywords/Search Tags:Numerical Control, G code, STM32, Decode, Interpolation Algorithm
PDF Full Text Request
Related items