Application of PH curve in CNC look-ahead function
-
摘要: 为解决数控系统进行微小直线段平稳加工的问题,提出了一种拟合方法.综合了误差限制下的微小直线段长度、拐角、直线段相交点单调性等判定条件,将连续的微小直线段分割成若干区域.使用非线性最小二乘法将每一个区域内的点拟合成PH曲线,并通过模拟退火方法调整切矢量来控制拟合误差.根据区域的连接情况,将切矢量分为单向和双向两种调节方法.在模拟退火算法中,将微小直线段的斜率作为切矢量的初始值,利用细分直线的方法逐点计算弓高误差,并将此误差作为目标函数来快速进行切矢量的调整.结果表明,对微小直线段进行区域划分可以提高拟合效率.在控制弓高误差的情况下,此方法可以形成具有良好精度的光滑曲线,可以获得平稳的速度轨迹.Abstract: A new method was developed to smooth the micro-line while machining in computer numerical control systems. Four rules including angle between transfer vectors with speed limitation, length and angle between the micro-lines with accuracy limitation and the monotonicity of the point were proposed to divide segments into some areas. Nonlinear least squares method was introduced to fit the lines into PH curves. Simulated annealing algorithm was used to adjust the tangent vector for getting better accuracy. The model of adjustment included both unidirectional and bidirectional adjustments by the situation of the point between the areas. Straight slope was considered as the initial value of the tangent vector in the simulated annealing algorithm. Chord error was computed by segmenting the micro-line, the error was the objective function to determine the adjustment of the vector. The results illustrate the dividing rules improve the fitting efficiency. Smooth curves with high accuracy were obtained to get better velocity profile.
-
Key words:
- computer numerical control system /
- curve fitting /
- errors /
- Pythagorean-hodograph curve
-
[1]Yeh Syhshiuh, Su Shinchun.Design of NURBS curve fitting process on CNC machines[C] Proceedings of the 2007 American Control Conference.Piscataway,NJ:IEEE Press,2007:3612-3617 [2]Yau Hongtzong, Wang Junbin.Fast Bezier interpolator with real time lookahead function for high accuracy machining[J]. International Journal of Machine Tools & Manufacture,2007,47(10):1518-1529 [3]Tsai Yifeng.Real time CNC interpolators for precision machining of complex shapes with Pythagorean hodograph curves[D].Michigan:Department of Mechanical Engineering,University of Michigan,2000 [4]叶佩青,赵慎良.微小直线段的连续插补控制算法研究[J].中国机械工程,2004,15(15):1354-1356 Ye Peiqing,Zhao Shenliang.Study on control algorithm for micro line continuous interpolation[J].China Mechanical Engineering,2004,15(15):1354-1356(in Chinese) [5]王宇晗,肖凌剑,曾水生,等.小线段高速加工速度衔接数学模型[J].上海交通大学学报,2004,38(6):901-904 Wang Yuhan, Xiao Lingjian, Zeng Shuisheng, et al. An optimal feedrate model and solution for highspeed machining of small line blocks with lookahead[J]. Journal of Shanghai Jiaotong University,2004,38(6):901-904(in Chinese) [6]徐志明,冯正进,汪永生,等.连续微小路径段的高速自适应前瞻插补算法[J].制造技术与机床,2003(12):20-23 Xu Zhiming, Feng Zhengjin,Wang Yongsheng, et al. Highspeed adaptative lookahead interpolation algorithm for continuous micro path sections[J]. Manufacturing Technology and Machine Tool,2003(12):20-23(in Chinese) [7]许海峰,王宇晗,李宇昊,等.小线段高速加工的速度模型研究和实现[J].机械工程师,2005(4):9-13 Xu Haifeng,Wang Yuhan,Li Yuhao,et al. Research on feedrate model of lookahead and solution algorithm for highspeed machining of small line segments[J]. Mechanical Engineer,2005(4):9-13(in Chinese) [8]游有鹏,王珉,朱剑英.NURBS 曲线高速高精度加工的插补控制[J].计算机辅助设计与图形学学报,2001,13(10):943-947 You Youpeng,Wang Min,Zhu Jianying.An interpolator for NURBS curve machining with highspeed and high accuracy[J]. Journal of Computeraided Design & Computer Graphics,2001,13(10):943-947(in Chinese) [9]刘国龙,王文仲.G1连续三次PH曲线光顺判定[J].指挥技术学院学报,2002,11(2):90-94 Liu Guolong,Wang Wenzhong. Smoothness of G1 PH interpolating cubic[J].Journal of Institute of Command and Technology,2002,11(2):90-94(in Chinese)
点击查看大图
计量
- 文章访问数: 3486
- HTML全文浏览量: 180
- PDF下载量: 1281
- 被引次数: 0