Designing Deviation Discrimination Algorithm for Interpolation Based on dsPIC
-
摘要: 针对传统逐点比较法插补效率和精度不高、进给脉冲分布不均匀的不足,提出了偏差判别法,以偏差的形式构建了新的判别函数,根据新的判别函数确定进给方向。同时以Microship公司的dsPIC30F5015数字信号控制器为硬件控制核心,设计了的硬件插补系统。借助于MPLAB-IDE软件开发环境,利用C语言设计了传统逐点比较法与偏差判别法的算法程序。利用MATLAB对所设计的插补器插补仿真结果表明:与传统逐点比较法比较,偏差判别法提高插补效率30%以上;插补精度提高50%以上;控制器进给脉冲分布更均匀。Abstract: The traditional point-by-point comparison algorithm has the shortcomings that its interpolation efficiency and accuracy are not high and that the feed pulse distribution is uneven. Therefore we establish the deviation discrimination algorithm through building a new deviation discrimination function to determine the direction of feeding. At the same time, we use the dsPIC30F5015 digital signal controller as the hardware control core and then design the hardware system. With the help of the MPLAB-IDE software development environment, we use the C language to design the traditional point-by-point comparison algorithm. The results on interpolation simulation with MATLAB show that: compared with the traditional point-by-point comparison algorithm, the deviation discrimination algorithm improves the interpolation efficiency by more than 30%; the interpolation accuracy by more than 50%; the feed pulse produced by dsPIC is much more uniform.
-
Key words:
- computer software /
- controllers /
- efficiency
-
[1] 孟俊焕,孙如军,孙莉.经济型数控机床改造的优化方案研究[J].机床与液压,2005,(7):200-201 Meng J H, Sun R J, Sun L. Optimization scheme research on the transformation of economical nc machine tool[J]. Machine Tool & Hydraulics, 2005,(7):200-201 (in Chinese) [2] 吴祖育,秦鹏飞.数控机床[M].上海:上海科学技术出版社,2000 Wu Z Y, Qin P F. CNC machine tools[M]. Shanghai: Shanghai Science and Technology Press, 2000 (in Chinese) [3] De Santiago-Perez J J, Osornio-Rios R A, Romero-Troncoso R J, et al. FPGA-based hardware CNC interpolator of bezier, splines, B-splines and NURBS curves for industrial applications[J]. Computers & Industrial Engineering, 2013,66(4):925-932 [4] Microchip. dsPIC30F5015/5016 Data Sheet high-performance, 16-bit digital signal controllers[S]. Microchip Technology Inc, 2008 [5] 李恩林.插补原理[M].北京:机械工业出版社,1984 Li E L. Interpolation theory[M]. Beijing: Mechanical Industry Press,1984 (in Chinese) [6] Yang M M, Hong W P. Three-dimensional reference pulse linear and circular interpolators for CNC systems[J]. International Journal of Production Research, 2002,40(2):425-439 [7] 叶伯生.计算机数控系统原理、编程与操作[M].武汉:华中理工大学出版社,1999 Ye B S. Computer numerical control system principle, layout and operation[M]. Wuhan:Huazhong University of Science and Technology Press,1999 (in Chinese) [8] 范希营,郭永环.数控系统差值比较法圆弧插补算法的研究[J].机械科学与技术,2011,30(5):789-792 Fan X Y, Guo Y H. A difference comparison method for circular interpolation in computer numerical control(CNC) systems[J]. Mechanical Science and Technology for Aerospace Engineering, 2011,30(5):789-792 (in Chinese) [9] 赵庆志,席港港.基于基础坐标概念的逐点比较法圆弧插补原理及其应用[J].制造业自动化,2012,34(11):69-72 Zhao Q Z, Xi G G. The improvement for the exist problems of the typical comparison algorithm with dot by dot of circular[J]. Manufacturing Automation, 2012,34(11):69-72 (in Chinese) [10] 高有行.对逐点比较法的改进算法[J].西安电子科技大学学报,1998,25(3):299-303 Gao Y H. An improved algorithm for the generation of straight lines[J]. Jouranl of Xidian University, 1998,25(3):299-303 (in Chinese) [11] 李恩林.最小偏差插补原理[J].机械设计与制造,1980,(1):19-26 Li E L. Interpolation principle of minmum deviation[J]. Machinery Design & Manufacture, 1980,(1):19-26 (in Chinese) [12] 齐从谦.半步偏差法插补的原理[J].机床,1983,(7):25-28 Qi C Q. Principle of half-step deviation interpolating[J]. Machine Tool, 1983,(7):25-28 (in Chinese) [13] Dorndorf U, Kiridena V S B, Ferreira P M. Optimal budgeting of quasistatic machine tool errors[J]. Jorunal of Engineering for Industry, 1994,116(1):42-53 [14] Tsai H F, Jiang Z H, Lin Y. Interpolated timing recovery using raised cosine pulse[J]. International Journal of Electrical Engineering, 2005,12(4):391-398 [15] 游有鹏.改进最小偏差法——一种高精度快速插补算法[J].机械工业自动化,1995,17(1):32-34 You Y P. Improved minimum deviation method-a high precision and fast interpolation algorithm[J]. Manufacturing Automation, 1995,17(1):32-34 (in Chinese) [16] 董为民,高贯斌,孙东明,等.插补算法的误差及实时性研究[J].机械制造与自动化,2006,35(6):18-20 Dong W M, Gao G B, Sun D M, et al. Study on the errors and real-time of interpolation methods[J]. Machine Building & Automation, 2006,35(6):18-20 (in Chinese)
点击查看大图
计量
- 文章访问数: 134
- HTML全文浏览量: 21
- PDF下载量: 9
- 被引次数: 0