机构地区: 汕头大学工学院智能制造技术教育部重点实验室
出 处: 《组合机床与自动化加工技术》 2006年第6期6-10,13,共6页
摘 要: 数控自动编程是生成数控代码的一种有效方法。文章论述了一种基于AutoCAD软件平台的轮廓中含非圆曲线的零件的数控加工代码自动生成的方法。利用VB作为二次开发工具,对AutoCAD软件进行二次开发。该模块首先识别零件轮廓中的直线、圆弧和非圆部分,然后对非圆部分应用近似双圆弧插补算法进行圆弧逼近,最终实现了轮廓中含非圆曲线零件的几何识别、插补拟合及数控加工代码的自动生成,并给出了最大插补误差。对文中所述实例,当取点半径为3mm时,其最大插补误差小于0.001mm。 Auto-programming is the efficiency method to produce NC code. The paper introduces a method of auto-programming, which is based on AutoCAD platform. VB is used as secondary development tool of the AutoCAD and a module is developed. First the module recognizes the lines, the arcs and the aspheric curves in the profile of the part, then applies with approximate double circular arc interpolated method to the aspheric curves, lastly carries out the geometry recognition and interpolation of the aspheric curve, also it produces NC code automatically, and it gives the maximal error after interpolation. The results show that the maximal error is less than 0.001 mm when the R is 3mm.
领 域: [自动化与计算机技术] [自动化与计算机技术]