Research on Angle-Adaptive Look-Ahead Compensation Method for Five-Degree-of-Freedom Additive Manufacturing Based on Sech Attenuation Curve
Abstract
1. Introduction
2. Angle-Adaptive Look-Ahead Compensation Algorithm
2.1. Reason Analysis
2.1.1. Geometric Overlap Analysis
2.1.2. Analysis of the Accumulation Effect
2.2. Algorithm Model
2.2.1. Compensation Strategy
- The cutting end is gentle: During the initial stage of compensation extrusion, maintain a high extrusion rate and achieve a smooth transition.
- The end is steep: When approaching the geometric overlapping vertex, the extrusion rate needs to sharply decrease to counteract the double filling effect caused by geometric overlap and the delay in motor rotation.
- Angle adaptation: The compensation distance is dynamically adjusted according to the angle α.
2.2.2. Angle-Adaptive Forward Compensation Algorithm
- Geometric compensation distance: By using , the farthest physical boundary of the overlapping area along the angle bisector direction is mapped out. Compared with the simple linear look-ahead, this term can ensure that the look-ahead range automatically extends with the expansion of the overlap area when turning at an acute angle.
- Response delay compensation: Considering the dynamic response delay of the extrusion system, the final look-ahead limit distance adds an additional compensation amount of line width W to the diagonal length. Additionally, for the case, the algorithm adopts a fixed double-line-width compensation to ensure the robustness of the algorithm under different angle topologies.
2.3. Extrusion Control Based on the Sech Function
2.3.1. Construction of the Sech Attenuation Factor Model
2.3.2. Dynamic Control of Extrusion Rate
3. Control System and Slicing Software
3.1. Five-Axis Control System
3.1.1. Control System Design
3.1.2. Five-Axis Kinematic Modeling
3.1.3. PLC Control Program Development
3.2. Development of Five-Axis Slicing Software
3.2.1. Slicing Software Development Process
3.2.2. Five-Axis Kinematics
3.3. Algorithm Implementation
3.3.1. Sharp Corner Detection
- Vectorized angle extraction
- 2.
- Sharp Angle Detection
- 3.
- Feature parameter G-code encapsulation
3.3.2. Analysis and Control of PLC Feature Parameters
4. Experiment
4.1. Experimental Equipment
4.2. Manufacturing Parameter Settings
4.3. Printing Experiments and Analysis
- Vertex A forms a 90° right angle simulating the most common regular geometric feature. At this angle, the direction of the path undergoes a significant change, but it does not reach an extremely sharp degree, which is used to verify the smooth transition stability of the algorithm under standard conditions.
- Vertex B is a 5° extremely acute angle simulating the extreme sharpness of thin-walled features or blade-like edges. Here, the printing nozzle needs to perform an almost 180° reverse return movement, and the two paths are extremely close, making it prone to severe “over-extrusion” or “collapse” due to heat accumulation and excessive extrusion. This is a key point for testing the ultimate performance of the forward-looking algorithm.
- Vertex C is an acute angle of 85°: It lies between a right angle and an extremely acute angle, simulating the characteristics of a typical acute angle (greater than 45°), and is used to verify the generality and robustness of the algorithm within the intermediate angle range.

- Experimental Group ①: Applied the angle-adaptive forward compensation algorithm proposed in this paper, which can adjust the speed in real time according to the path angle;
- Control Group ②: Utilized the traditional print speed control strategy without any dynamic flow compensation.
5. Conclusions
- (1)
- An angle-adaptive compensation strategy based on the Sech curve attenuation was proposed and verified. For complex features such as extremely acute angles, a mapping model between the path angle and the adaptive look-ahead distance was established, enabling smooth decoupling control of the corner speed and extrusion flow rate.
- (2)
- A 3D-printing five-axis control system based on Beckhoff TwinCAT architecture was constructed. The look-ahead algorithm was calculated at the PLC layer and synchronized interpolation was performed at the NC layer using the TwinCAT 2 real-time kernel.
- (3)
- An integrated software package for five-axis slicing and path planning was developed. A slicing software that integrates model processing, path planning, G-code generation, and post-processing has been independently developed. This software solves the problem that traditional software cannot generate dedicated five-axis G-code containing R/M extended parameters. At the same time, the post-processing module of the software integrates a dynamic offset correction function. Users can configure it in real time according to the structural parameters, such as the turntable center offset of different five-axis equipment, so that the NC code generated by this software can quickly adapt to different specifications of five-axis linkage manufacturing platforms.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Ngo, T.D.; Kashani, A.; Imbalzano, G.; Nguyen, K.T.Q.; Hui, D. Additive Manufacturing (3D Printing): A Review of Materials, Methods, Applications and Challenges. Compos. Part B 2018, 143, 172–196. [Google Scholar] [CrossRef]
- Wang, Y.Q.; Shen, J.X.; Wu, H.Q. Application and Research Status of 3D Printing Materials. J. Aeronaut. Mater. 2016, 36, 89–98. [Google Scholar]
- Jandyal, A.; Chaturvedi, I.; Wazir, I.; Raina, A.; Ul Haq, M.I. 3D Printing—A Review of Processes, Materials and Applications in Industry 4.0. Sustain. Oper. Comput. 2022, 3, 33–42. [Google Scholar] [CrossRef]
- Upare, P.; Kalatkar, A.; Shelke, R. Review on Study of Design Optimization for Additive Manufacturing of Various Mechanical/Machine Components. IOP Conf. Ser. Mater. Sci. Eng. 2022, 1259, 012039. [Google Scholar] [CrossRef]
- Popescu, D.; Gheorghe Amza, C.; Marinescu, R.; Cristiana Iacob, M.; Luminiţa Căruţaşu, N. Investigations on Factors Affecting 3D-Printed Holes Dimensional Accuracy and Repeatability. Appl. Sci. 2022, 13, 41. [Google Scholar] [CrossRef]
- Wang, P.; Zou, B.; Xiao, H.; Ding, S.; Huang, C. Effects of Printing Parameters of Fused Deposition Modeling on Mechanical Properties, Surface Quality, and Microstructure of PEEK. J. Mater. Process. Technol. 2019, 271, 62–74. [Google Scholar] [CrossRef]
- Ouazzani, K.; El Jai, M.; Akhrif, I.; Radouani, M.; El Fahime, B. An Experimental Study of FDM Parameter Effects on ABS Surface Quality: Roughness Analysis. Int. J. Adv. Manuf. Technol. 2023, 127, 151–178. [Google Scholar] [CrossRef]
- Chen, G.G.; Wang, D.S.; Hua, W.J.; Wu, W.B.; Zhou, W.Y.; Jin, Y.F.; Zheng, W.X. Simulating and Predicting the Part Warping in Fused Deposition Modeling by Thermal–Structural Coupling Analysis. 3D Print. Addit. Manuf. 2023, 10, 70–82. [Google Scholar] [CrossRef]
- Ding, S.L.; Zou, B.; Wang, P.; Ding, H.J. Effects of Nozzle Temperature and Building Orientation on Mechanical Properties and Microstructure of PEEK and PEI Printed by 3D-FDM. Polym. Test. 2019, 78, 105948. [Google Scholar] [CrossRef]
- Yu, X.J.; Wu, L.S.; Zhao, K.; Dong, A.H.; Yao, J.; Liu, S.M. The influence of 3D printing filament temperature on the cross-sectional morphology and mechanical properties of PLA. China Plast. Ind. 2021, 49, 67–71+159. [Google Scholar]
- Tran, N.H.; Phan, N.D.M. Analyzing the Impact of Process Parameters on Surface Roughness and Mechanical Properties in FDM 3D Printing Using Machine Learning. Int. J. Interact. Des. Manuf. 2025, 19, 8709–8728. [Google Scholar] [CrossRef]
- Dou, Y.B.; Luo, J.; Qi, L.H.; Lian, H.C. A Vertex-Arc Path Planning Method for Metal Droplet-Based 3D Printing of Thin-Walled Parts with Sharp Corners. J. Mater. Process. Technol. 2023, 312, 117852. [Google Scholar] [CrossRef]
- Liu, J.; Kang, Y.Z.; Ma, C.Y.; Wang, Y.S. Research on a Fiber Corner Compensation Algorithm in a 3D Printing Layer of Continuous Fiber-Reinforced Composite Materials. Appl. Sci. 2022, 12, 6687. [Google Scholar] [CrossRef]
- Quan, Z.Z.; Liu, C.; Li, J.J.; Qin, X.H.; Yu, J.Y. Fiber Bundle Deposition Model and Variable Speed Printing Strategy for In-Situ Impregnation 3D Printing of Continuous Fiber Reinforced Thermoplastic Composites. Compos. Sci. Technol. 2024, 255, 110723. [Google Scholar] [CrossRef]
- Comminal, R.; Serdeczny, M.P.; Pedersen, D.B.; Spangenberg, J. Motion Planning and Numerical Simulation of Material Deposition at Corners in Extrusion Additive Manufacturing. Addit. Manuf. 2019, 29, 100753. [Google Scholar] [CrossRef]
- Vidakis, N.; David, C.; Petousis, M.; Sagris, D.; Mountakis, N. Optimization of Key Quality Indicators in Material Extrusion 3D Printing of Acrylonitrile Butadiene Styrene: The Impact of Critical Process Control Parameters on the Surface Roughness, Dimensional Accuracy, and Porosity. Mater. Today Commun. 2023, 34, 105171. [Google Scholar] [CrossRef]
- Sun, J.F.; Chen, M.T.; Zhao, H.; Zheng, W.X.; Zhou, W.Y. Optimizing Process Parameters of Fused Deposition Molding for 3D Printing Customized Control of Polyetheretherketone Scaffolds. J. Thermoplast. Compos. Mater. 2024, 37, 2391–2408. [Google Scholar] [CrossRef]
- Wu, T.; Tang, Y.R.; Fei, D.D.; Li, Y.B.; He, W.Y. Researches on Temperature Control Strategy of SMHS-Type 3D Printing Based on Variable Universe Fuzzy Control. J. Adv. Comput. Intell. 2017, 21, 166–171. [Google Scholar] [CrossRef]
- Vidakis, N.; David, C.; Petousis, M.; Sagris, D.; Mountakis, N.; Moutsopoulou, A. The Effect of Six Key Process Control Parameters on the Surface Roughness, Dimensional Accuracy, and Porosity in Material Extrusion 3D Printing of Polylactic Acid: Prediction Models and Optimization Supported by Robust Design Analysis. Adv. Ind. Manuf. Eng. 2022, 5, 100104. [Google Scholar] [CrossRef]
- Wang, X.Q.; Liu, X.; Xu, Y.L.; Cao, J.F.; Zhang, H.Y.; Zhang, H.J. A General Adaptive Layer Height Continuous Path Planning Algorithm for Concrete 3D Printing of Complex Porous Structures Based on Multi-Objective Optimization and Reinforcement Learning. Structures 2025, 80, 109926. [Google Scholar] [CrossRef]
- Qin, Q.; Huang, J.G.; Yao, J. A Real-Time Adaptive Look-Ahead Speed Control Algorithm for FDM-Based Additive Manufacturing Technology with Hbot Kinematic System. Rapid Prototyp. J. 2019, 25, 1095–1107. [Google Scholar] [CrossRef]
- Acierno, D.; Patti, A. Fused Deposition Modelling (FDM) of Thermoplastic-Based Filaments: Process and Rheological Properties—An Overview. Materials 2023, 16, 7664. [Google Scholar] [CrossRef]
- De Rosa, S.; Tammaro, D.; D’Avino, G. Experimental and Numerical Investigation of the Die Swell in 3D Printing Processes. Micromachines 2023, 14, 329. [Google Scholar] [CrossRef] [PubMed]












| Parameter Category | Parameter Name | Set Value/Description | Organization |
|---|---|---|---|
| Basic process | Nozzle diameter | 0.4 | mm |
| Layer height | 0.2 | mm | |
| Line width | 0.42 | mm | |
| Printing speed | 30 | mm/s | |
| Temperature | Spray head temperature | 210 | °C |
| Heating bed temperature | 60 | °C |
| Symbol | Parameter Name | Set Value/Description | Organization |
|---|---|---|---|
| Look-ahead compensation distance | Adaptive computing | mm | |
| Sharp corner detection threshold | 160 | Degree | |
| Minimum extrusion ratio | 0.1 | — | |
| k | Sech shape factor | 4.0 | — |
| Corner Angle | Group | Position 1 | Position 2 | Position 3 | Average Bulging |
|---|---|---|---|---|---|
| 5 | Experimental Group ① | 0.006 | 0.004 | 0.003 | 0.004 |
| Control Group ② | 0.079 | 0.07 | 0.071 | 0.073 | |
| 85 | Experimental Group ① | 0.005 | 0.006 | 0.004 | 0.005 |
| Control Group ② | 0.056 | 0.067 | 0.061 | 0.061 | |
| 90 | Experimental Group ① | 0.001 | 0.003 | 0.004 | 0.003 |
| Control Group ② | 0.068 | 0.07 | 0.055 | 0.064 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Han, X.; Li, W.; Chen, S.; Liu, X.; Cui, L. Research on Angle-Adaptive Look-Ahead Compensation Method for Five-Degree-of-Freedom Additive Manufacturing Based on Sech Attenuation Curve. Micromachines 2026, 17, 423. https://doi.org/10.3390/mi17040423
Han X, Li W, Chen S, Liu X, Cui L. Research on Angle-Adaptive Look-Ahead Compensation Method for Five-Degree-of-Freedom Additive Manufacturing Based on Sech Attenuation Curve. Micromachines. 2026; 17(4):423. https://doi.org/10.3390/mi17040423
Chicago/Turabian StyleHan, Xingguo, Wenquan Li, Shizheng Chen, Xuan Liu, and Lixiu Cui. 2026. "Research on Angle-Adaptive Look-Ahead Compensation Method for Five-Degree-of-Freedom Additive Manufacturing Based on Sech Attenuation Curve" Micromachines 17, no. 4: 423. https://doi.org/10.3390/mi17040423
APA StyleHan, X., Li, W., Chen, S., Liu, X., & Cui, L. (2026). Research on Angle-Adaptive Look-Ahead Compensation Method for Five-Degree-of-Freedom Additive Manufacturing Based on Sech Attenuation Curve. Micromachines, 17(4), 423. https://doi.org/10.3390/mi17040423
