摘要
以数控车削加工为研究对象,开发了数控加工图形仿真系统。首先建立了适合车削加工几何特征的数据结构,利用LEX语言读取数控代码获得刀位轨迹及其与毛坯相交数据文件;然后以VC++6.0和OpenGL为平台,采用参数化建模方法构建加工对象的三维几何模型;最后,读取仿真数据驱动仿真过程实现。该系统实现了NC程序的快速准确验证,且避免了繁琐的布尔集合运算,使得图形生成速度与质量均得到较好的保证。
The graphical simulation system of NC turning is developed in this paper. First, the data-structure which suitable to the NC turning geometrical feature is established, cutting tool path and the data file of intersection operation is generated by analyzing the NC code using LEX language; then, in the platform of Microsoft Visual C + + and using OpenGL, the 3D geometrical model of machining feature is established by the parametric modeling method; and the simulation process is realized by reading the simulation data finally. The system can verify the NC program rapidly and accurately, and avoid the complicated Boolean arithmetic, so the speed and quality of the simulation can be guaranteed.
出处
《组合机床与自动化加工技术》
北大核心
2009年第3期68-71,共4页
Modular Machine Tool & Automatic Manufacturing Technique
基金
辽宁省博士启动基金(20081082)
辽宁省教育厅项目(2005J22JH027)资助