Skip to main content
Log in

A smoothing method of continuous line-segment path in CNC machining based on real-time transformation of interpolation points

  • ORIGINAL ARTICLE
  • Published:
The International Journal of Advanced Manufacturing Technology Aims and scope Submit manuscript

Abstract

The G-code for CNC machining of free-form surfaces is usually composed of continuous line segments. The sudden change of velocity direction at the corner of adjacent line segments will cause the vibration of the machine tool, eventually affecting the machining quality. Therefore, this paper proposes a novel smoothing method for line segments based on the real-time transformation of interpolation points (SSTI). Firstly, this method generates a smoothing interval on the line-segment path, which centered on the current original interpolation point. Secondly, a smoothed interpolation point corresponding with the current interpolation point is obtained, by a transformation according to the line-segment path in the smoothing interval. Finally, to ensure the machining accuracy, the smoothing error of the smoothed interpolation point is checked and controlled. Compared with conventional smoothing methods, the SSTI method has no special requirements on the original line-segment path, such as the length of line segments, the angle of corners, and the quantity of endpoints. Simulation and experimental results show that the SSTI method proposed in this paper has good adaptability to different types of line-segment paths, and the smooth optimization can be achieved under the premise of ensuring machining accuracy. The proposed method offers an effective trajectory-optimization strategy for the CNC machining of continuous line-segment path.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12

Similar content being viewed by others

Data availability

The data and material used in this paper are available from the corresponding author on reasonable request.

References

  1. Choi Y-K, Banerjee A (2007) Tool path generation and tolerance analysis for free-form surfaces. Int J Mach Tools Manuf 47:689–696. https://doi.org/10.1016/j.ijmachtools.2006.04.014

    Article  Google Scholar 

  2. Dong JC, Wang TY, Li B, Ding YY (2014) Smooth feedrate planning for continuous short line tool path with contour error constraint. Int J Mach Tools Manuf 76:1–12. https://doi.org/10.1016/j.ijmachtools.2013.09.009

    Article  Google Scholar 

  3. Shahzadeh A, Khosravi A, Robinette T, Nahavandi S (2018) Smooth path planning using biclothoid fillets for high speed CNC machines. Int J Mach Tools Manuf 132:36–49. https://doi.org/10.1016/j.ijmachtools.2018.04.003

    Article  Google Scholar 

  4. Chen ZJ, Zhao DB, Li KQ (2014) An adaptive look-ahead interpolation algorithm of micro line with smooth velocity. Mach Des Manuf Eng 43:41–44. https://doi.org/10.3969/j.issn.2095-509X.2014.03.011

    Article  Google Scholar 

  5. Lv Q, Zhang H, Yang KM, Ye PQ (2008) Study on the method of increasing turing velocity during CNC continuous machining. Technol Test:79–83. https://doi.org/10.3969/j.issn.1005-2402.2008.07.029

  6. Zhao H, Zhu LM, Ding H (2013) A real-time look-ahead interpolation methodology with curvature-continuous B-spline transition scheme for CNC machining of short line segments. Int J Mach Tools Manuf 65:88–98. https://doi.org/10.1016/j.ijmachtools.2012.10.005

    Article  Google Scholar 

  7. Jiang Y, Han J, Xia L, Lu L, Tian XQ, Liu HJ (2020) A decoupled five-axis local smoothing interpolation method to achieve continuous acceleration of tool axis. Int J Adv Manuf Technol 111:449–470. https://doi.org/10.1007/s00170-020-05936-0

    Article  Google Scholar 

  8. Zhang Y, Ye PQ, Zhang H, Zhao MY (2018) A local and analytical curvature-smooth method with jerk-continuous feedrate scheduling along linear toolpath. Int J Precis Eng Manuf 19:1529–1538. https://doi.org/10.1007/s12541-018-0180-2

    Article  Google Scholar 

  9. Zhang XH, Yu D, Yang DS, Hu Y, Han WY (2010) Corner curve transition interpolation algorithm for high speed machining of micro-line segment. J Mech Eng 46:183–191

    Article  Google Scholar 

  10. Wu WJ, Li H, Han WY, Guo A (2017) Arc smooth compression interpolation algorithm for high-quality machining. Comput Integr Manuf Syst 23:2700–2707. https://doi.org/10.13196/j.cims.2017.12.016

    Article  Google Scholar 

  11. Yeh SS, Su HC (2008) Implementation of online NURBS curve fitting process on CNC machines. Int J Adv Manuf Technol 40:531–540. https://doi.org/10.1007/s00170-007-1361-9

    Article  Google Scholar 

  12. Sun SJ, Yu D, Lin H, Lang YS, Li BB (2018) Command point correction and smooth tool path generation method in CNC system. J Chin Comput Syst 39:2114–2118

    Google Scholar 

  13. Yau HT, Wang JB (2007) Fast Bezier interpolator with real-time lookahead function for high-accuracy machining. Int J Mach Tools Manuf 47:1518–1529. https://doi.org/10.1016/j.ijmachtools.2006.11.010

    Article  Google Scholar 

  14. Lin KY, Ueng WD, Lai JY (2008) CNC codes conversion from linear and circular paths to NURBS curves. Int J Adv Manuf Technol 39:760–773. https://doi.org/10.1007/s00170-007-1271-x

    Article  Google Scholar 

  15. Wang JB, Yau HT (2008)Real-time NURBS interpolator: application to short linear segments. Int J Adv Manuf Technol 41:1169–1185. https://doi.org/10.1007/s00170-008-1564-8

    Article  Google Scholar 

  16. Tsai MS, Nien HW, Yau HT (2009) Development of a real-time look-ahead interpolation methodology with spline-fitting technique for high-speed machining. Int J Adv Manuf Technol 47:621–638. https://doi.org/10.1007/s00170-009-2220-7

    Article  Google Scholar 

  17. Wang TY, Zhang YB, Dong JC, Ke RJ, Ding YY (2019) NURBS interpolator with adaptive smooth feedrate scheduling and minimal feedrate fluctuation. Int J Precis Eng Manuf 21:273–290. https://doi.org/10.1007/s12541-019-00288-6

    Article  Google Scholar 

  18. Ji S, Hu TL, Huang ZG, Zhang CR (2020) A NURBS curve interpolator with small feedrate fluctuation based on arc length prediction and correction. Int J Adv Manuf Technol 111:2095–2104. https://doi.org/10.1007/s00170-020-06258-x

    Article  Google Scholar 

  19. Guo P, Wu YJ, Yang G, Shen ZB, Zhang HR, Zhang P, Lou F, Li HB (2021) A feedrate planning method for the NURBS curve in CNC machining based on the critical constraint curve. Appl Sci-Basel 11:4959–4975. https://doi.org/10.3390/app11114959

    Article  Google Scholar 

  20. Dyn N, Floater MS, Hormann K (2009)Four-point curve subdivision based on iterated chordal and centripetal parameterizations. Comput Aided Geom Des 26:279–286. https://doi.org/10.1016/j.cagd.2008.09.006

    Article  MathSciNet  MATH  Google Scholar 

  21. Zhang XH, Yu D, Hong HT, Sun WT, Zhang FY (2011) Research on smooth compression interpolation algorithm in CNC machining. J Mech Eng 47:156–162,169

    Article  Google Scholar 

  22. Lee CH, Yan CY, Ou DJ, He SS (2015) A chord error conforming tool path B-spline fitting method for NC machining based on energy minimization and LSPIA. J Comput Des Eng 2:218–232. https://doi.org/10.1016/j.jcde.2015.06.002

    Article  Google Scholar 

  23. Guo P (2020) The G-code of a composited free-form surface. https://github.com/guodepeng/cnc_git/blob/master/WAVE_R2_copy.NC. Accessed on 5 Jan 2020

  24. Guo JX, Zhang K, Zhang Q, Gao XS (2013) Efficient time-optimal feedrate planning under dynamic constraints for a high-order CNC servo system. Comput Aided Des 45:1538–1546. https://doi.org/10.1016/j.cad.2013.07.002

    Article  Google Scholar 

  25. Zhang Y, Ye PQ, Zhao MY, Zhang H (2019) Dynamic feedrate optimization for parametric toolpath with data-based tracking error prediction. Mech Syst Signal Process 120:221–233. https://doi.org/10.1016/j.ymssp.2018.10.028

    Article  Google Scholar 

Download references

Funding

This research was sponsored by the National Natural Science Foundation of China (No.51275462) and Science and Technology Innovation 2025 Major Project of Ningbo (No.2018B10069).

Author information

Authors and Affiliations

Authors

Contributions

Peng Guo and Yijie Wu designed the algorithm and wrote the original draft. Zhebin Shen and Fei Lou coded the algorithm and edited the manuscript. Haorong Zhang and Peng Zhang performed the simulation and experiment. All authors discussed the results and revised the manuscript.

Corresponding author

Correspondence to Yijie Wu.

Ethics declarations

Code availability

Not applicable.

Ethics approval

Not applicable.

Consent to participate

Not applicable.

Consent for publication

Not applicable.

Conflict of interest

The authors declare no competing interests.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Guo, P., Wu, Y., Shen, Z. et al. A smoothing method of continuous line-segment path in CNC machining based on real-time transformation of interpolation points. Int J Adv Manuf Technol 118, 4043–4054 (2022). https://doi.org/10.1007/s00170-021-07663-6

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00170-021-07663-6

Keywords

Navigation