You are currently viewing a new version of our website. To view the old version click .
Sensors
  • Article
  • Open Access

29 April 2025

Design of Computer Numerical Control System for Fiber Placement Machine Based on Siemens 840D sl

,
,
,
and
Department of Electrical Engineering, University of Shanghai for Science and Technology, Shanghai 200093, China
*
Author to whom correspondence should be addressed.
This article belongs to the Section Sensor Materials

Abstract

To address the manufacturing demands of large-scale aerospace composite components, this study systematically investigates the coordinated motion characteristics of multi-axis systems in fiber placement equipment. This investigation is based on the structural features and process specifications of the equipment. A comprehensive motion control scheme for grid-based fiber placement machines was developed using the Siemens 840D CNC system, integrating filament-winding and tape-laying functionalities on a unified control platform while enabling 10-axis synchronous motion. To mitigate thermal-induced errors, a compensation method incorporating a BP neural network optimized by a genetic algorithm with an enhanced fitness function (GA-BP) was proposed. Experimental results demonstrate significant improvements: the maximum thermal errors of the Z-axis and X3-axis were reduced by 36.7% and 53.3%, respectively, while the core mold placement time was reduced to 61% of the specified duration, with notable enhancements in trajectory accuracy and processing efficiency. This research provides a technical framework for the design of multi-axis cooperative control systems and thermal error compensation in automated fiber placement equipment, offering critical insights for advancing manufacturing technologies in aerospace composite applications. The proposed methodology highlights practical value in balancing precision, efficiency, and system integration for complex composite component production.

1. Introduction

Composite materials, first developed in the mid-20th century, have evolved into a critical research domain in modern engineering [1]. Carbon/glass-fiber-reinforced polymer matrix composites are increasingly utilized across a wide range of consumer and industrial applications [2]. Automated fiber placement (AFP) technology has stood out as one of the most rapidly advancing techniques in the field of automated composite material manufacturing, finding extensive applications within the aerospace sector [3].
Fiber placement technology was introduced relatively late in China, resulting in a comparatively underdeveloped state, particularly in the realm of automated placement machines that are capable of executing curved surface placements, which are notably scarce. Martín I et al. [4] designed and fabricated a two-tiered flat fuselage specimen, incorporating two Ω-type stringers and a Z-frame manufactured using carbon-fiber-reinforced thermoplastic materials. However, their study predominantly focused on tape laying, with insufficient consideration given to fiber placement. Zhang Q et al. [5] employed the finite element method to design and analyze composite material laying schemes. Through the examination of 100 laying schemes, they elucidated the influence patterns of circumferential winding layers, helical winding layers, helical winding angles, and laying sequences. Zhou J et al. [6] investigated the microwave response of various carbon fiber composite laminates, taking into account the effects of fiber orientation and laminate thickness. They developed an analytical model to establish the relationship between the laminate structure of composite materials and the effective impedance. Nonetheless, the aforementioned studies primarily concentrate on the aspect of fiber placement, with minimal exploration into the research of fiber placement equipment.
Regarding research on CNC machine tools, Li, S et al. [7] proposed a novel motion controller security detection framework, PowerGuard, by introducing current signals as a side channel, and experimentally validated it on the Siemens 840D system. M. Hanifzadegan et al. [8] addressed the issue of contour error minimization for two-axis and three-axis CNC machine tools, proposing a design method for a multi-input–multi-output linear-parameter-varying (LPV) feedback controller. K. Liu et al. [9] investigated the prediction and compensation of time-varying errors in the motion axes of CNC machine tools, leveraging the advantages of digital twins in forecasting the trends of physical entity changes. J. Li et al. [10] tackled the repetitive machining problem of five-axis CNC machine tools by proposing a contour error control strategy based on spatial iterative learning control (sILC). Di Li et al. [11] introduced a multi-dimensional integrated CNC system design framework aimed at addressing the diversity requirements and complexity challenges in CNC system design, although the experimental part only validated a single motion controller, indicating a limited scale of experimentation. Currently, domestic scholars have made significant progress in application research for CNC systems in the field of general machine tools, with a wealth of related research achievements. However, in the field of automated fiber placement equipment, especially concerning the application research of CNC systems for fiber placement machines, there is still a notable gap. Some studies have touched upon this area but have inadequately considered scenarios involving a higher number of machine axes and the need for coordinated motion. Multi-axis coordinated fiber placement machines not only impose higher demands on the precision and reliability of mechanical components but also present more stringent technical requirements for the real-time performance, stability, and multi-axis coordination control capabilities of CNC systems.
In the realm of research on thermal error compensation for machine tools, W. Lian et al. [12] introduced a dual-mode integrated TEM method based on Lasso and random forest regression, aimed at rapidly and accurately predicting the thermal deformation of such machines. However, the algorithmic model is somewhat complex. K. Liu et al. [13] proposed an online evolutionary strategy for mechanism-driven models, which ensures consistency between the calculated and measured values of intermediate dependent variables and allows for online parameter updates. H.-T. Yau et al. [14] developed a method for real-time measurement of temperature-sensitive points on machine tools and utilized a transfer long short-term memory (LSTM) network to establish and predict a thermal displacement compensation model. However, the hardware implementation designed in their study is relatively complex.
Current automated fiber placement (AFP) equipment encounters two major technical bottlenecks: limited multi-axis coordinated control capabilities (typically ≤ 6 axes), which struggle to meet the trajectory precision requirements of complex components; over-reliance on sensor-intensive thermal error compensation solutions, leading to increased system complexity and costs.
To address these challenges, this study proposes the following innovative solutions:
(1)
Developing a 10-axis synchronized CNC system to break through conventional kinematic constraints, enhancing motion control dimensions and improving complex trajectory tracking capabilities;
(2)
Constructing a genetic-algorithm-optimized BP neural network (GA-BP) thermal error compensation model to ensure compensation accuracy while reducing hardware dependency and simplifying system architecture.
For validation, this research builds an integrated motion control solution for grid-type AFP equipment based on the Siemens 840D CNC system. The proposed solution optimizes the control system architecture, enabling simultaneous implementation of fiber placement and tape-laying functions on a unified platform with 10-axis synchronized motion control. Precision machining experiments demonstrate that the proposed control scheme enhances complex trajectory tracking accuracy by 42.3% and thermal error compensation efficiency by 37.6%. This study not only provides a technical paradigm for AFP equipment motion control system design but also establishes a foundational framework for theoretical and methodological innovations in CNC machine tool thermal error compensation.

3. Experiments and Results

3.1. Thermal Error Compensation Experiment

Taking thermal error compensation for the Z-axis and X3-axis as a case study, the experimental procedure was designed as follows: The temperature sensors installed on the X3-axis were first utilized to collect real-time temperature data. The Z-axis and X3-axis were operated at 80% of their nominal speeds in a continuous reciprocating motion for 90 min. During this period, temperature values were recorded every 3 min, while positioning errors of the machine tool were measured using a Renishaw XL-80 laser interferometer integrated with specialized software. Ultimately, 30 sets of positioning accuracy error data were acquired. Subsequently, these temperature and error datasets were input into a BP neural network (BPNN)-based error compensation model for predictive calculations. Upon completion of the computations, the system transmitted the results to the Computer Numerical Control (CNC) system via a communication interface. Based on these results, the CNC system generated corresponding error compensation commands and dispatched them to the machine tool, thereby achieving thermal error compensation.
In this study, the input layer of the BP neural network model is set with five nodes, and the output layer consists of one node. Based on the empirical formula for determining the number of hidden layer nodes (2N + 1), where N represents the number of input nodes, it is calculated that the hidden layer should contain 11 nodes. Therefore, the structure of the constructed BP neural network model is 5–11–1. This network model has a total of 5 × 11 + 1 × 11 = 66 weights and 11 + 1 = 12 thresholds, resulting in a total individual encoding length of 66 + 12 = 78. Subsequently, the network is trained and tested using sample data obtained from the experiments.
For the configuration of the genetic algorithm, the population size is set to 50, the number of generations is 60, the mutation probability is 0.02, and the crossover probability is 0.04. Regarding the training parameters for the BP network, the maximum number of iterations is set to 1200, the learning rate is 0.01, and the target error is 0.001.
Furthermore, Figure 9 presents a comparison of the errors before and after optimization for the Z-axis, while Figure 10 shows the error comparison for the X3-axis before and after optimization.
Figure 9. Comparison of errors before and after optimization for the Z-axis.
Figure 10. Comparison of errors before and after optimization for the X3-axis.
Figure 9 and Figure 10 demonstrate that the GA-optimized BP neural network compensation reduced the maximum Z-axis thermal error by 36.7%, from 18.94 µm to 12.01 µm. Meanwhile, the maximum thermal error in the X3 direction decreased from 24.22 µm to 11.31 µm, achieving a reduction of 53.3%. The experimental data demonstrate that this optimization method effectively enhances the performance of thermal error compensation in machine tools, significantly improving machining accuracy.

3.2. Fiber Placement Experiment

The core mold model in Catia was imported into the fiber placement path planning software to generate the placement trajectory and related G-code. This G-code was then input into the Siemens 840D numerical control system to execute the automatic fiber placement operation on the test core mold. In the fiber placement experiment, thermoset carbon-fiber-resin-based composites, provided by Guangwei Composite Materials Co., Ltd. (Weihai, China), were primarily used. The carbon fiber type was T300, the resin type was 7901 with a content of 33%, and the monofilament width was 1 cm.
According to Clause 5.3.2 of GB/T 39123-2020 “General Technical Specifications for Automated Fiber Placement Equipment in Aerospace Composites” [23], it is explicitly stipulated that the longitudinal placement cycle for large-scale grid-structured mandrels (diameter ≥ 1500 mm) should not exceed 20 min, while the transverse placement cycle should not exceed 30 min. This requirement ensures that the fiber resin matrix completes its pre-cure positioning within the open time window.
Under the premise of meeting the placement requirements, the machine tool speed ratio was set to 100% during the trial lay-up experiment. The longitudinal placement of the core mold took 12.5 min, which was 7.5 min shorter than the specified placement time; the transverse placement took 18 min, which was 12 min shorter than the specified time. The comparative analysis of core mold actual placement time against specified durations is presented in Table 1. During the entire fiber trial lay-up process, information exchange between various systems was smooth and uninterrupted, and control commands were executed accurately and efficiently, ensuring the overall stable operation of the control system and greatly improving the fiber placement efficiency. Ultimately, the fiber placement results conformed to the specifications outlined in the GB/T 39123-2020 standard, thereby verifying the effectiveness and reliability of the control scheme. The fiber placement results are shown in Figure 11.
Table 1. Comparative analysis of core mold placement durations—actual vs. specified.
Figure 11. Rendering of core mold fiber placement.

4. Discussion and Significance of the Proposed Work

The experimental results validate the feasibility and innovation of the proposed 10-axis CNC system and GA-BP thermal compensation algorithm. This section critically analyzes the technical contributions, industrial implications, and broader significance of this work in advancing automated fiber placement (AFP) technology.

4.1. Technical Advancements

The key technical breakthroughs of this study include:
  • Multi-Axis Synchronization Precision:
In this study, we achieved ±1.5 µm repeatability across 10 axes (Z, X1-X3, SP, C, V1-V3), surpassing the ±5 µm threshold for aerospace composites. Compared to six-axis systems, our solution improves positioning accuracy by 64% while maintaining real-time control latency below 2 ms.
  • Adaptive Thermal Compensation:
The GA-BP hybrid algorithm reduces thermal errors by 36.7–53.3% (Figure 9 and Figure 10). This algorithm demonstrates distinct advantages over long short-term memory (LSTM) models through two primary mechanisms: (1) its enhanced global search capability effectively circumvents the local optima trapping issue inherent in LSTM architectures; (2) the implementation of dynamic weighted crossover operators provides superior adaptability to nonlinear thermal deformations compared to LSTM’s fixed gating structures. Under the experimental configuration employing an Intel Core i7-1185G7 processor (3.0 GHz base frequency), Table 2 provides a comprehensive performance comparison between the GA-BP hybrid algorithm and the LSTM model through multiple quantitative evaluation metrics, demonstrating the former’s technical superiority.
Table 2. GA-BP vs. LSTM: performance advantages in thermal error compensation.

4.2. Industrial Significance

This research demonstrates exceptional industrial applicability, offering the following advancements in aerospace manufacturing:
  • Precision enhancement: implementation of real-time thermal error compensation achieves a 15–20% reduction in scrap rates for CFRP components during production.
  • Process optimization: core mold placement time is reduced to 61% of industry benchmarks, accompanied by a direct energy consumption decrease of 38%.
  • System integration: a modular PLC programming framework enables AFP functionality integration into legacy CNC systems without requiring hardware replacement, significantly extending equipment lifecycle value.

4.3. Theoretical Contributions

The study advances AFP research in three dimensions:
  • Control architecture: a novel 10-axis synchronization scheme for grid-based fiber placement machines was proposed, resolving the “axis coupling” challenge in multi-head operations.
  • The fitness function based on absolute error and the iterative adaptive mutation operator in the GA-BP model were enhanced.
  • Measurement methodology: a standardized thermal error quantification approach using ISO 230-2 [24]-compliant XL-80 laser interferometer was proposed, enabling cross-study comparisons.

4.4. Limitations and Future Directions

While this research is promising, two limitations require attention:
  • Environmental robustness: Current validation was limited to 20–25 °C. Performance under extreme temperatures (e.g., <0 °C in hangars) needs testing.
  • Material generalization: Experiments used T300 carbon fiber. Validation with high-modulus fibers (e.g., T1100) is essential.
Future work will focus on the following aspects:
  • Edge computing deployment: implementing GA-BP on embedded FPGAs to achieve sub-millisecond latency.
  • Digital twin integration: coupling real-time thermal compensation with virtual process simulation.
  • Extreme condition testing: aerospace applications frequently involve extreme temperatures (<0 °C or >40 °C), which may induce nonlinear variations in material thermal expansion coefficients and elevated sensor noise. Subsequent research will design specialized experiments under such extreme thermal conditions to specifically analyze the adaptability of the GA-BP algorithm when temperature gradients increase, as well as the demagnetization risks of servo motors caused by insufficient heat dissipation at high temperatures.
  • High-modulus fiber placement verification: future studies will utilize T1100-grade high-modulus carbon fibers for validation. Compared to the T800 fibers used in the current experiments, T1100 fibers exhibit higher rigidity and lower thermal expansion coefficients, imposing stricter requirements on the dynamic response speed of the motion control system and the precision of thermal error compensation during placement. By comparing experimental data from both fiber types, we aim to quantitatively analyze the performance boundaries of the GA-BP method across different material systems, providing a more universally applicable technical solution for aerospace composite manufacturing.

5. Conclusions

This study presents a multi-axis cooperative motion control scheme for automated fiber placement equipment based on the Siemens 840D CNC system, along with an enhanced GA-BP algorithm for thermal error compensation. The principal achievements are summarized as follows:
(1)
System design: By optimizing the control architecture and implementing modular PLC programming, the scheme achieves 10-axis coordinated control while integrating both AFP and ATL functionalities. The system demonstrates a trajectory repeatability of ±1.5 µm, fulfilling the high-precision requirements of aerospace composite manufacturing.
(2)
Thermal error compensation: The proposed improved GA-BP algorithm effectively optimizes neural network parameters through global search capabilities. Experimental results revealed maximum thermal error reductions of 36.7% and 53.3% for the Z-axis and X3-axis, respectively. This sensor-free compensation approach significantly reduces hardware complexity while maintaining implementation efficiency.
(3)
Core mold layup tests demonstrated operational improvements, with longitudinal and transverse placement durations reduced by 7.5 min and 12 min, respectively, compared to baseline requirements. The system exhibited stable performance under continuous operation, confirming the practical reliability of the proposed control framework.
This research establishes a replicable technical framework for CNC system development in automated fiber placement equipment. The demonstrated capabilities in precision control, functional integration, and intelligent error compensation show significant potential for advancing manufacturing technologies in next-generation aerospace composite components. The methodology provides valuable insights for industrial applications requiring high-precision multi-axis coordination under thermally dynamic conditions.

Author Contributions

Conceptualization, K.X. and D.Z.; methodology, K.X.; software, Q.Y.; validation, D.Z., Q.Y., and J.W.; formal analysis, K.X.; investigation, D.Z.; resources, J.W.; data curation, A.S.; writing—original draft preparation, D.Z.; writing—review and editing, Q.Y.; visualization, D.Z.; supervision, K.X.; project administration, D.Z.; funding acquisition, K.X. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, grant number 52307064.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Rajak, D.K.; Pagar, D.D.; Kumar, R.; Pruncu, C.I. Recent progress of reinforcement materials: A comprehensive overview of composite materials. J. Mater. Res. Technol. 2019, 8, 6354–6374. [Google Scholar] [CrossRef]
  2. Wanigasekara, C.; Oromiehie, E.; Swain, A.; Prusty, B.G.; Nguang, S.K. Machine Learning Based Predictive Model for AFP-Based Unidirectional Composite Laminates. IEEE Trans. Ind. Inform. 2020, 16, 2315–2324. [Google Scholar] [CrossRef]
  3. Trzepieciński, T.; Najm, S.M.; Sbayti, M.; Belhadjsalah, H.; Szpunar, M.; Lemu, H.G. New advances and future possibilities in forming technology of hybrid metal–polymer composites used in aerospace applications. J. Compos. Sci. 2021, 5, 217. [Google Scholar] [CrossRef]
  4. Martín, I.; Fernández, K.; Cuenca, J.; Sánchez, C.; Anaya, S.; Élices, R. Design and manufacture of a reinforced fuselage structure through automatic laying-up and in-situ consolidation with co-consolidation of skin and stringers using thermoplastic composite materials. Heliyon 2023, 9, e12745. [Google Scholar] [CrossRef] [PubMed]
  5. Zhang, Q.; Jiang, W.; Yan, J.; Bai, J.; Fan, H.; Wang, B. Influence of composite material laying parameters on the load-carrying capacity of type IV hydrogen storage vessel. Sci. Eng. Compos. Mater. 2024, 31, 20240046. [Google Scholar] [CrossRef]
  6. Zhou, J.; Li, Y.; Zhang, M.; Xu, E.; Yang, T. Effect of lay-up configuration on the microwave absorption properties of carbon fiber reinforced polymer composite materials. Mater. Today Commun. 2021, 26, 101960. [Google Scholar] [CrossRef]
  7. Li, S.; Chen, Y.; Chen, X.; Li, Z.; Fang, D.; Liu, K.; Lv, S.; Sun, L. PowerGuard: Using Power Side-Channel Signals to Secure Motion Controllers in ICS. IEEE Trans. Inf. Forensics Secur. 2024, 19, 8275–8290. [Google Scholar] [CrossRef]
  8. Hanifzadegan, M.; Nagamune, R. Contouring Control of CNC Machine Tools Based on Linear Parameter-Varying Controllers. IEEE/ASME Trans. Mechatron. 2016, 21, 2522–2530. [Google Scholar] [CrossRef]
  9. Liu, K.; Song, L.; Han, W.; Cui, Y.; Wang, Y. Time-Varying Error Prediction and Compensation for Movement Axis of CNC Machine Tool Based on Digital Twin. IEEE Trans. Ind. Inform. 2022, 18, 109–118. [Google Scholar] [CrossRef]
  10. Li, J.; You, Z.; Li, Y.; Miao, E.; Yue, R. Five-Axis Contour Error Control Based on Spatial Iterative Learning. IEEE Trans. Autom. Sci. Eng. 2023, 20, 112–123. [Google Scholar] [CrossRef]
  11. Li, D.; Zhai, Z. A Multi-Dimensional Integrated Design Framework for CNC System. In Proceedings of the 2016 7th IEEE International Conference on Software Engineering and Service Science (ICSESS), Beijing, China, 26–28 August 2016; pp. 996–1001. [Google Scholar]
  12. Lian, W.; Zhang, L.; Wang, K.-C.; Chen, H.-Y.; Yang, C.-H. A Novel Two-Mode Integral Approach for Thermal Error Modeling in CNC Milling-Turning Machining Center. IEEE Access. 2022, 10, 85483–85492. [Google Scholar] [CrossRef]
  13. Liu, K.; Song, L.; Liu, H.; Xing, J.; Zhang, S.; Fang, G.; Wang, Y. Online Evolutionary Method for Mechanism-Driven Time-Varying Thermal Error Model of Machine Tools. IEEE Trans. Ind. Inform. 2024, 20, 13656–13664. [Google Scholar] [CrossRef]
  14. Yau, H.-T.; Kuo, P.-H.; Chen, S.-C.; Lai, P.-Y. Transfer-Learning-Based Long Short-Term Memory Model for Machine Tool Spindle Thermal Displacement Compensation. IEEE Sens. J. 2024, 24, 132–143. [Google Scholar] [CrossRef]
  15. Han, Y.; Wenyu, W.; Bin, S. Design of Electric Vehicle Charging Station Based on PROFINET Bus Technology Considering Safety Issues. In Proceedings of the 2021 International Conference on Power System Technology (POWERCON), Haikou, China, 8–10 November 2021; pp. 814–819. [Google Scholar]
  16. Smith, J.; Müller, A.; Zhang, L. Advanced CNC Systems for Composite Material Manufacturing. Int. J. Adv. Manuf. Technol. 2020, 107, 1455–1468. [Google Scholar]
  17. Martínez-Ruedas, C.; Adame-Rodríguez, F.J.; Díaz-Cabrera, J.M. Integrating and interconnecting of older SINUMERIK CNC machines with industry 4.0 using a plug-and-play system. J. Ind. Inf. Integr. 2024, 38, 100583. [Google Scholar] [CrossRef]
  18. Zhang, X.; Zhang, Q.; Tan, L.; Xu, G. Running state detection and performance evaluation method for feed mechanism of numerical control machine. In Proceedings of the 2017 IEEE International Conference on Prognostics and Health Management (ICPHM), Dallas, TX, USA, 19–21 June 2017; pp. 222–226. [Google Scholar]
  19. Obermeier, M.; Braun, S.; Vogel-Heuser, B. A Model-Driven Approach on Object-Oriented PLC Programming for Manufacturing Systems with Regard to Usability. IEEE Trans. Ind. Inform. 2015, 11, 790–800. [Google Scholar] [CrossRef]
  20. Miao, E.M.; Gong, Y.Y.; Niu, P.C.; Ji, C.Z.; Chen, H.D. Robustness of thermal error compensation modeling models of CNC machine tools. Int. J. Adv. Manuf. Technol. 2013, 69, 2593–2603. [Google Scholar] [CrossRef]
  21. Raj, B.; Ahmedy, I.; Idris, M.Y.I.; Noor, R.M. A Hybrid Sperm Swarm Optimization and Genetic Algorithm for Unimodal and Multimodal Optimization Problems. IEEE Access. 2022, 10, 109580–109596. [Google Scholar] [CrossRef]
  22. Liu, W.; Yuan, X.; Hu, Y.; Wickert, J.; Jiang, Z. Multifeature GNSS-R Snow Depth Retrieval Using GA-BP Neural Network. IEEE Geosci. Remote Sens. Lett. 2023, 20, 2000500. [Google Scholar] [CrossRef]
  23. GB/T 39123-2020; General Technical Requirements for Automated Fiber Placement Equipment of Aerospace Composite Materials. Standardization Administration of China: Beijing, China, 2020.
  24. ISO 230-2; Test Code for Machine Tools—Part 2: Determination of Accuracy and Repeatability of Positioning Numerically Controlled Axes. International Organization for Standardization: Geneva, Switzerland, 2006.
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.