| With the rapid development of modern science and technology, the worseningenvironmental pollution, energy waste is growing. These have had a negative effect onhuman survival and development. People put forward higher requirements on theirown lives, work environment. Since President Jintao Hu put forward the scientificconcept of development, we are in terms of sustainable development has been someimprovement and improve, but efforts need to be strengthened and improved. Therapid development in technology the21st century, science and technology workersraised an important issue to us again: how to make green technology, how to carry outenergy conservation effectively, how to machining more effectively and faster.Conducting research work, we carry out in these areas to improve and innovation isparticularly important.CNC technology has gone through several generations of development, from thelogic CNC stage to today’s computer numerical control stage, the CNC technologyevery advance machinery manufacturing marks a qualitative leap. Some developedcountries in Europe CNC machine tools has been fully replaced the original handmachine tools, CNC machine tools in China is still very low, forcing us to take on thetechnological development of CNC machine tools in an important position. There arestill a large number of ordinary hand tools in factories, companies and schools. How totransform ordinary machine tools to CNC, and how to deal with old-fashioned generalmachine tools is our question that is worth considering. If the ordinary machine will becompletely abandoned, it will cause unnecessary waste, and they in industrialproduction in the manufacture of high-efficient and less CNC machine tools. It Willresult in unnecessary waste if completely abandoned general machine tools, whiletheir efficiency is very low compared to the CNC machine tool manufacturing in the industrial production. All ordinary machining processing level by the workers to decidethe level of precision of the workpieces. Such as manual operation is inevitablypowerless if the machining of complex precision components.Based on the above points into account, NC to transform and re-use ordinaryLathes. Therefore, the reference to the CNC system, through8051MCU drive thestepper motor to control the size of its speed and rotation angle, and control ordinaryLathes movement to be processed, particularly machining irregular surface such ascams, turbo and so on. On the software side, the micro-controller is programmed byusing C language, instead of the previous G code or assembly language, which makesthe design more abundant, simple and easy to understand and master. Using the Cprogramming language makes it easier for us to understand the program, andassembly language programming is more complicated to understand. There areseveral CA6140ordinary Lathes in my place of work, usually for teaching purposes.Because of not batch processing, and in order to save money, I use them forexperiments and testing on this paper. Transform these ordinary Lathes, but alsoprovide convenient conditions for the design. Thereby the machining accuracy isimproved, but also the transformation of the ordinary Lathes provides the necessaryfoundation and convenience for future teaching.G, M code is used as a conventional CNC programming language.CNCprogramming language is not a language for computer control, but for be created tooperation directly machined parts. And it exists some limitations. Since CNC machineoperators who are familiar with the C language and grasp it increase graduallynow,and control chips such as MCU and ARM those are programmed by the Clanguage have become increasingly common. Using the C programming language toreplace the traditional CNC programming language is necessary, and will be popular.The paper focuses on the driver of stepper motor by single-chip, the programmingof the movement controlling of Lathes how to process Cam by stepper motor. Clanguage is used as CNC programming language, and the correspondingprogramming method is designed and discussed. The thesis research are as follows:(1) hardware selection and circuit design of the entire system;(2) Machining cam;(3) Stepper motor driver tool for processing cam;(4) improvement of the machiningaccuracy;(5) to design CNC lathe programming method;(6) to use the new CNCprogramming method to achieve the cam machining and to give its code of theimplementation. |