节点文献
基于OpenGL的数控车削仿真系统的研究
Study on NC Turning Simulative System Based on OpenGL
【作者】 程萍;
【导师】 邬再新;
【作者基本信息】 兰州理工大学 , 机械制造及其自动化, 2007, 硕士
【摘要】 在数控机床加工过程中,为了避免因机床走刀错误而造成数控设备损坏的危险,提高数控加工效率,缩短产品的生产周期,降低开发成本,减少废品率,在NC程序输入机床正式加工前必须首先进行程序校验。随着计算机仿真技术、CAD/CAM等几门学科的发展,利用数控仿真技术对数控加工过程进行图形仿真,实现在计算机上对NC代码的验证,可以节约大量的时间以及人力、物力,获得较好的经济效益。本文以Visual C++6.0为软件的开发平台,采用了面向对象的方法对数控车削加工仿真系统进行了总体分析和设计,提出了模块化的设计思想,即把数控车床的仿真过程分成各个功能相对比较独立的子模块,并单独完成各个子模块的设计,最后把各个子模块连接起来组成一个完整的数控车削仿真系统。根据这种思想,本文探讨了加工环境的建模方法、数控程序译码过程、插补计算方法、刀具库的定义以及工件成形原理和过程等方面的内容。此外,本文还采用了OpenGL技术,利用它提供的强大的三维图形编程功能,结合面向对象的建模方法,建立了加工仿真环境,并在环境中加入了消隐、光照、纹理以及反走样处理等,使数控车削仿真的加工环境更有真实感。在加工仿真过程中,还利用了OpenGL的双缓存技术,加速了图形的显示,避免了画面的闪烁,使加工过程动画更具连续性,工件的加工成形过程更具实时性。本系统界面友好,使用方便,具有可移植性和扩充性,符合数控加工的最新发展方向。
【Abstract】 In order to avoid the situation that NC equipments are damaged because of machining tool route errors, improve NC machining efficiency, shorten production cycles, reduce development costs, reduce the reject rate in the course of NC machining process, it is essential to examine the exactness and rationality of NC procedure before processing formally. With the development of several subjects such as computer simulation technology, CAD/CAM and so on, it is possible to use NC simulation technology to simulate NC machining process in graphics and make NC code verification can be finished in the computer. This can save a lot of time, manpower and material resources, thus it can acquire better economic efficiency.Visual C++ 6.0 is made as a software development platform and the object-oriented method is used to analyse and design NC machining simulation system overall in this dissertation. On the basis of these, a modular design method is proposed, which makes the NC lathe simulation process divided into various functional relatively independent sub-modules,and complete each sub-module design separately, finally, link up each sub-module to form a complete system for NC machining simulation. According to such method, the paper describes the processing environment modeling method, NC program decoding process, interpolation method, tool for the definition, the forming principle and process of the workpiece etc.In addition, the paper also uses the OpenGL technology. By dint of the powerful 3D graphics programming functions provided by the OpenGL and the object-oriented modeling method, a process simulation environment can be set up. Then the environment is added hidden, light, anti-aliasing and texture handling, which can make NC lathe machining simulation environment more realistic. In the process of machining simulation, the double buffer technique is used to accelerate graphics display, avoid the scintillation screen, animate processing more continuity and make the workpiece machining process of forming more real-time.This system has the characteristics that are friendly interface, simple manipulation, good portability and expansion, it accord with the NC technique’s latest development direction.
【Key words】 NC Simulation; OpenGL; Decoding; Modeling; Interpolation; Display of Graphics;
- 【网络出版投稿人】 兰州理工大学 【网络出版年期】2007年 02期
- 【分类号】TG519.1;TP391.9
- 【被引频次】25
- 【下载频次】603