|
With the rapid development of manufacturing technology , the increasingly widespread application of CNC machine tools , CNC operator increasing the number and level of technology , the traditional CNC training methods takes a lot of manpower and material resources , and There is a potential danger . CNC training of computer simulation technology , can effectively reduce and avoid these shortcomings , has good prospects for development . In this paper, the research status at home and abroad in the NC machining simulation , and analysis of the pros and cons of the method in the geometric simulation code translation , taking into account realistic strong advantage of virtual reality technology has determined based on virtual reality technology CNC training simulation system research and development program . The paper focuses on the dynamic reconstruction of the NC program compiled milling process surfaces . On the basis of in -depth understanding and analysis of the existing simulation algorithm , combined with the milling characteristics by reducing the dimension of thinking based on the rough discrete line algorithm reduces the computational complexity , improve the efficiency of surface redraw . The paper, based on virtual reality software Virtools 3D modeling software , through its SDK to use VC net for the second development , research and development of a CNC milling training system , the main achievement of the following features : First , the analysis of the characteristics of the NC program and characterized by using the C language compiler , error detection and translation of the NC program . Secondly , and in-depth research of the algorithm based on discrete lines , improve the implementation details of the algorithm , and by the corresponding C language the Virtools function module , combined with the Virtools specific module script design , preparation of material removal and surface reconstruction For dynamic algorithms scripts achieve the rough dynamic reconstruction in the milling process . Again , using the Virtools own module and custom module to realize motion simulation of CNC milling machine , and through the Virtools specific collision mechanism , combined with the characteristic of the model , the collision detection process . Finally, the Windows-based message response mechanism , the main function modules through the MFC together and simulate the operation of the machine control panel , played a good immersion effect .
|