基于G代码的五轴数控机床轮廓误差计算
Calculation of Contour Error in Five-Axis CNC Machine Based on G-Code
摘要: 动态误差是影响五轴数控机床加工精度的重要因素,尤其在高速、高精度加工时最为明显。进行动态误差的补偿研究需要建立一个精准的模型,现有的轮廓误差计算模型难以适用于不同类型机床。针对以上缺点,文章提出了基于G代码的五轴数控机床动态误差建模研究,以S型试件G代码为例,首先进行数控机床数据采集,采集理想位置和实际位置,将G代码按照采集理想位置进行抽样使两者数量一样。G代码抽样值与采集的实际位置、采集的理想位置和采集的实际位置分别进行轮廓误差的计算,作为仿真与实际进行对比。结果显示提出的基于G代码抽样的轮廓误差计算方法有很好的精度,仿真与实际误差值很接近,刀尖误差都在0.02 mm以内,刀轴误差都在0.001 rad以内。这表明了文章提出的轮廓误差估计方法的有效性,为后续基于G代码的五轴数控机床动态误差的控制提供了参考价值。
Abstract: Dynamic error is an important factor affecting the machining accuracy of five-axis CNC machine tools, especially in high-speed and high-precision machining. An accurate model shall be established for dynamic error compensation research, and the existing contour error calculation model is difficult to apply to different types of machine tools. Aiming at the above shortcomings, this paper puts forward the research on dynamic error modeling of a five-axis CNC machine tool based on G code. Taking the G code of the S-type test piece as an example, firstly, the data of the CNC machine tool is collected, the ideal position and the actual position are collected, and the G code is sampled according to the ideal position to make the two numbers the same. The G code sampling value and the actual position acquired, the ideal position acquired, and the actual position acquired are respectively calculated for contour error, which is compared with the actual simulation. The results show that the contour error calculation method based on G code sampling has good accuracy, the simulation error value is very close to the actual error value, the tool point error is within 0.02 mm, the tool axis error is within 0.001 rad, the results verify the effectiveness of the contour error estimation method proposed in this paper, and provide reference value for the follow-up control of dynamic error of five-axis CNC machine tool based on G code.
文章引用:于泽乾, 陈光胜. 基于G代码的五轴数控机床轮廓误差计算[J]. 建模与仿真, 2025, 14(5): 516-537. https://doi.org/10.12677/mos.2025.145411

参考文献

[1] 于旭波. 开创高端数控机床产业高质量发展新局面[J]. 智慧中国, 2024, 7(4): 17-19.
[2] 吕盾, 李润泽, 刘辉, 等. 数控机床高速高加速进给下的跟随误差控制策略[J]. 西安交通大学学报, 2018, 52(12): 25-31.
[3] 李亨. 五轴数控机床进给系统动态误差影响因素分析[J]. 中国机械, 2023, 9(9): 83-86.
[4] 张靖, 丁杰雄, 李晴朗, 等. 基于最小区域原则的五轴机床轮廓误差估计算法[J]. 组合机床与自动化加工技术, 2021(11): 5-9.
[5] 廖平. 基于遗传算法和分割逼近法精确计算复杂曲面轮廓度误差[J]. 机械工程学报, 2010, 46(10): 1-7.
[6] 于志献. 五轴数控机床轮廓误差计算和预测方法[J]. 机电工程, 2024, 41(10): 1723-1733.
[7] 吕盾, 刘青, 刘沛, 等. 五轴机床加工零件轮廓误差预测方法[J]. 西安交通大学学报, 2020, 54(2): 9-15.
[8] 庄丙远, 赵国勇, 翟静涛, 等. 双转台五轴联动数控机床轮廓误差控制方法[J]. 组合机床与自动化加工技术, 2016(6): 103-105.
[9] Yang, M., Yang, J. and Ding, H. (2018) A High Accuracy On-Line Estimation Algorithm of Five-Axis Contouring Errors Based on Three-Point Arc Approximation. International Journal of Machine Tools and Manufacture, 130, 73-84. [Google Scholar] [CrossRef
[10] 高兴, 佟浩, 周雷, 等. 基于G代码修改的数控机床几何误差补偿方法[J]. 制造技术与机床, 2015(1): 57-62.
[11] 聂娜. 基于G代码修改的数控机床运动误差修正方法[J]. 机械管理开发, 2023, 38(10): 17-18.
[12] Piegl, L.A. and Tiller, W. (1997) The NURBS Book. 2nd Edition, DBLP.
[13] 彭海涛, 闫光荣, 雷毅, 等. 数控加工G代码程序的仿真检查[J]. 航空制造技术, 2001(3): 56-59.
[14] 漆昌桂. 基于LSTM神经网络的数控系统轮廓误差预测与补偿[D]: [硕士学位论文]. 哈尔滨: 哈尔滨工业大学, 2021.
[15] 李帅杰. 基于GA-BP神经网络的五轴机床动态误差建模与控制[D]: [硕士学位论文]. 上海: 上海理工大学, 2024.