APP下载

基于宏程序的复杂椭圆凸台零件的数控编程加工

2021-11-07丁艳

内燃机与配件 2021年21期

丁艳

摘要:采用用户宏程序加工二维非圆曲线轮廓,并结合数控系统提供的坐标平移、子程序等编程指令可以减少繁琐的数值计算和简化编程,以复杂椭圆曲线轮廓的数控铣削加工为例,分析研究公式曲线的编程思路和自变量的确定,在FANUC系统中编写其加工程序,并利用斯沃数控仿真软件校验程序。

Abstract: It can reduce the tedious numerical calculation and simplify the programming by using the user macro program to process the two-dimensional non-circular curve outline and combining with the coordinate translation, subroutine and other programming instructions provided by the CNC system. Taking the NC milling of complex elliptic curve as an example, the programming idea of formula curve and the determination of independent variables are analyzed and studied. The machining program is written in FANUC system and verified by SSCNC simulation software.

关键词:宏程序;非圆曲线轮廓;FANUC系统;数控仿真

Key words: macro program;noncircular curve profile;FANUC system;numerical control simulation

中图分类号:TH16;TG659                               文獻标识码:A                                  文章编号:1674-957X(2021)21-0119-02

0  引言

在数控编程中通常会遇到非圆公式曲线轮廓的编程加工,而FANUC数控系统并没有提供现成的指令来编写此类零件的加工程序,因此在手工编程中,需要利用系统提供的宏程序指令,采用拟合的思路来完成,即在公式曲线上选取若干个节点,再将这些节点用直线或者圆弧两两首尾相连,用若干段直线或圆弧去拟合逼近公式曲线轮廓。常用的拟合逼近方法有等间距直线法、等弦长直线法、等误差直线法和圆弧逼近法[1]。在手工编程中,一般采用等间距直线逼近法。

1  宏程序功能

宏程序为手工编写公式曲线轮廓的加工程序提供可能,并使程序更加简洁、通用性更强。作为数控编程指令的重要补充,宏程序具备计算机高级语言的特点,应用灵活、简练易懂,可以完成一般编程指令不能完成的功能,并实现参数化编程。同时,FANUC数控系统还提供了坐标系平移、旋转、子程序等简化编程的指令,在编制各种复杂的零件加工程序时,使用简化编程的指令可以减少复杂的数值计算[2]。……

登录APP查看全文