Cyber-Physical System to Improve Machining Process Performance

Machining process is set-up in the machines at different levels of maturity. While in large batch manufacturing, a long time is spent in process design and optimization, and in small batch production, the process design time is limited, and the designed process is far to be optimized. In any case, the possibility to control and optimize the process at machine level is very important to increase the productivity. The concept of cyber-physical systems (CPS) is introduced in this paper to increase machine tool performance and process productivity. Several CPS-based features developed in Twin-Control are presented.

Twin-Control aims to overcome these effects by the application of CPSs based on model-based control techniques. CPSs are defined as smart devices that interact with the machine (through sensors and actuators) to increase its performance [4]. In this case, different developments of Twin-Control project in modelling are embedded in the monitoring hardware or the control of the machines to affect its performance.
After this introduction, Chaps. 2-7 present the different CPS-based control strategies in Twin-Control. Finally, the conclusions are presented.

Process Monitoring
Process monitoring using ARTIS hardware can be split into two different applications. First, process monitoring by learning. Second, process monitoring by simulation.
Learning-based process monitoring is a key feature of ARTIS process monitoring systems. The process monitoring is based on process signals of the machine control. Furthermore, the process monitoring could be based on additional sensor signals (e.g. vibration and force). Genior Modular is the main module of ARTIS hardware. In this module, the interface to the machine control as well as the HMI is provided. The process monitoring algorithm and the determination of the limits and parameters are calculated on the Genior Modular device, as well. For the user, the QNX-based Genior Modular provides an intuitive HMI to configurate the process monitoring task. The system determines all limits and parameters automatically. Additional input keys provide the possibility of making certain adjustments. In detail view display mode, these input keys are immediately visible. In multi-view display mode, it is necessary to first select one of the windows in order to make the keys visible. The user has the possibility to manually adjust the limit, being less or more sensitive to process changes.
For the learning process, some reference processes must be executed in advance. The system calculates automatically how many learn steps must be performed. Apart from that, a manual adjustment of the learning process repetitions is possible.
Once the learning is complete, the process monitoring can be started. Figure 12.1 shows a visualization software GEM-Visu. Next, the most important indicators of this visualization are listed.
• Line graphics: -Green curve: learned signal curve -Grey curve: signal curves of the last 10 processes are displayed -Blue curve: current signal curve -Red curve (1): lower breakage limit -Red curve (2): upper breakage limit • Bar graphics: -Red line (3): missing limit (indicates that a tool is not installed) The alarm reaction could be configured by the user. So, the system could send just a warning or fully stop the machine.
Process monitoring by learning is suitable for large batch manufacturing, where stable conditions are present for the learning stage and the process monitoring strategy can be applied for a long time. However, for small to medium batch size sectors, like aerospace, this approach is not useful.
For this case, Twin-Control proposes a simulation-based process monitoring. As a first step, process models are run in a PC which is connected, via CAP-Logger, to the control of the Starrag EcoSpeed located in the AMRC installations. The CAP-Logger is a small client program that connects to the GEM-CNC server via TCP and stores the requested data in CSV format. The GEM-CNC server is a service running on Siemens Solution Line HMIs. It forwards the TCP requests to the Siemens CAP-API, and it sends the response back to the CAP-Logger via TCP.
Measured axis positions and spindle speed are used as input of the models which provide spindle torque estimations. These estimations can be compared to spindle torque measurements that are also done by the ARTIS equipment ( Fig. 12.2). This strategy could be used to implement a simulation-based process monitoring. For that, process models need to be integrated into the ARTIS hardware and run in parallel to the real process ( Fig. 12.3). Simulation results will provide the nominal conditions instantaneously, equivalent to the learned reference values used in the learning-based process monitoring, and could be used to fix the thresholds for a simulation-based process monitoring approach.

MT Operating Condition Adaptation for Life Increase
The knowledge of machine tool condition is very useful for maintenance activity planning. Early detection of (possible) problems in the machine tool allows more efficient maintenance actions, maximizing machine uptime.
Early detection of future anomalous situations with the machine tool avoids undesirable machine tool breakage, and consequent unforeseen production stops.
Two approaches, both based on feedback generated by models implemented by TEKNIKER in KASEM, are defined towards this end. Both models, although using different approaches, can identify or estimate that the machine tool is going to have a problem. Thanks to this feedback, ARTIS hardware can adapt, normally smooth, working conditions of the machine tool to extend machine tool life and wait for the next planned maintenance action.
The first approach is the integration of end-of-life models developed in Twin-Control project in the monitoring architecture. This feature provides the chance to A second approach is based on the results coming from the machine tool characterization tests that consist in a series of quick tests that allow a good characterization of machine tool condition. The indicators calculated from these tests are compared to the ones obtained in nominal conditions and, in case deviations occur, anomalous condition of the machine is determined. Again, even if this procedure can be implemented at local or cloud level, KASEM has been chosen as platform in Twin-Control project.
As in the case of a problematic RUL value, when any indicator of the MT characterization test gets over the defined threshold, KASEM generates a warning towards the planning of a maintenance action.
Apart from this warning at maintenance management level, Twin-Control can automatically adapt machine tool performance to its condition. According to the next planned maintenance stop and the RUL value, ARTIS Genior device system can smoothen machining conditions (reduce feed rate and/or spindle speed) to avoid component breakage. The ARTIS GEM-CNC server, installed in the machine control, receives the commands from the ARTIS GEM-OA (Genior Modular with Open Architecture) to change the current value of R-parameters that define cutting conditions (feed rate and/or spindle speed).
As an alternative to the automatic modification of machining conditions, since manufacturers do not want to decrease productivity automatically, a warning showed by the ARTIS HMI or the ARTIS telegram remote control will suggest the operator with some new cutting conditions.

Energy Monitoring System on Component Level
A cost-effective approach to monitor the energy consumption at component level has been developed by using a Kalman filter and the information of the component's switching states, which has been explained in greater detail in Sect. 3.3.
The ARTIS OPR device records the required switching states of the different components (via OPC UA) and the power consumption of the drive (via internal signal monitoring). Additionally, the total power consumption of the machine is acquired by an ARTIS true power module. The energy disaggregation algorithm, which is based on the Kalman filter, is embedded in the ARTIS OPR.
An EMAG VLC100Y turning machine, located at the ETA Research Factory of the Technische Universität Darmstadt, has been used to implement and validate this development. The disaggregated power consumption at component level can be visualized locally on the HMI of the machine using ARTIS GEM-Visu (Fig. 12.4) or transferred to a higher-level platform, like SCADA or MES. This ensures immediate feedback on energy demand.
Even if an exact power disaggregation of industrial components is difficult, the algorithm offers a cost-effective and simple possibility to estimate the energy demand on component level. Since existing data acquisition and analysis architecture was

Telegram Remote Control
Currently, there is no possibility to interact with the monitoring hardware from outside, so that a physical connection to the machine is needed. By using an open-source chat software for the GEM devices, a PC or a smart device could be connected to these devices from everywhere in the world.
With this approach, it is possible to get information about the status of each connected device (e.g. serial number, number of alerts, IP address) without a physical connection to it. Furthermore, it is also possible to interact with the GEM device ( Fig. 12.5). Based on the configuration of the telegram adapter, monitoring configurations could be adapted via smart devices or PCs.
The telegram adapter could be installed in the GEM device or the OPR. Also, it is possible to install the telegram adapter at a plant server or PC, which has a network connection to the monitoring hardware. For connecting the monitoring hardware with a chat group, in the telegram adapter, just the IP address of the target GEM device must be configured.
For Twin-Control, a chat group was implemented, in which the GEM devices of the ARTIS, MASA and TEKNIKER use cases are involved.

Adaptive Feed Rate Control
In complex machining processes, chip flow varies according to the deep of cut, tool geometry and the programmed spindle speed. To guarantee maximum productivity, it is interesting to keep continuous chip flow control. To do that, feed rate must be adapted according to monitored spindle consumption to achieve desired variables.
Adaptive control (AC) is an option for ARTIS Genior Modular systems. This option controls the programmed feed rate of a cutting cycle to maintain a constant load on the tool during the entire cutting cycle (Fig. 12.6). This way, feed rate will be increased when the cutting power, e.g. spindle acceleration, is low (good tool condition and less chip removal). The software algorithms automatically slow down feed force if tool condition (wear) or material quality (e.g. texture, hardness) changes. This function is active during the process monitoring. To provide this feature, ARTIS Genior Modular uses the real-time connection to the machine control. By overwriting, e.g. R-parameters in the machine control, the feed rate of a cutting cycle is optimized.
Adaptive feed rate control has been implemented in the GEPRO 502 machine of MASA. This way, when the spindle is underworking, the feed rate is increased; when the spindle is overworking, the feed rate is reduced. The objective is to maximize Fig. 12.5 Screenshots of the telegram adapter feature: a ask_gem chat within telegram app; b example of the contents of the chat productivity by keeping the material removal rate high during all the process. To test this, a scalloped sample part has been used.

CNC Simulation and Collision Avoidance System (CAS)
During real machining operations, process visibility is often limited due to small safety windows or high coolant flow. Apart from that, due to undefined position of additional equipment (fixture, toolholder, workpiece, etc.) in the machine tool working volume, collisions are common. Both issues are very critical from the operator's point of view. To overcome these problems, the availability of a virtual representation of the machine tool, replicating the movements that the real machine is executing, can be very useful. Material removal simulation is performed within ModuleWorks libraries, for which the proper simulation environment must be established first. The simulation models require the following parameters: the initial geometry of the stock material, geometric definition of the cutting tools, machine tool kinematics and a sequence of the commanded machine axis moves. Once the virtual machining set-up being initial- ized, ModuleWorks simulation can retrieve input signals to change and add cutting tools, execute new cutting tool moves. During the simulation steps, the internal data structure representing the shape of in-process stock material has been continuously updating to reflect the changes made by cutting tools. For each simulated move, the output is a set of results showing the status of the tool-workpiece interaction during the move (whether material has been cut, a collision between machine tool element or cutting tool and stock material has been detected, etc.) Optionally, a tessellated (triangulated) 3D surface of the simulated workpiece can be computed for further visualization and analysis. The analysis is supported due to applying of different colorization options (coloured by tool indices, feed or another measured data). The simulation libraries are designed to be integrated on the level of the HMI or CNC unit (as shown in Fig. 12.7) to retrieve actual positions of the machine tool axes for exact computation of the relative positions of the tools and workpiece in the simulation environment. Such an approach reduces integration efforts to visualize the results and provides both verification and clash detection during different processes maintain time responsiveness. Since ModuleWorks libraries use the tri-dexel model for material shape representation, that is capable of staying memory and time consistent over machining time, this approach leads to efficient computation with a low response time that satisfies real-time conditions for machining applications.
ModuleWorks CAS takes the real axis positions, machine geometries and workpiece position and uses the same motion data as the real servos to provide a fully integrated and visually realistic simulation of the machine kinematics, tools, jaws, clamps and fixtures as well as the material removal process. The real-time collision avoidance is based on the look-ahead functionality provided by CNCs. The lookahead is a method for trajectory planning, for which a CNC precomputes several future moves. If ModuleWorks simulation runs on the "future" moves, a message of a reported collision may be passed to the machine control before the actual collision occurs. The communication can basically be maintained through a variety of standard APIs and protocols (Focas, EtherCAT, Profinet, etc.). Collision detection and avoidance are available in both auto and jog modes using this look-ahead motion data. CAS implementation is based on the access to OPC/UA interface of the machine tool to retrieve different data via the interface along with internal processing of the geometries of the in-process stock and set-up components, as shown in Fig. 12.8.
The new functionality foresees collisions that may happen in the future. In addition to in-time simulation, simultaneous computation threads consider machine tool positions at some time upfront. The predicted position is examined towards potential collisions and may signal to halt the machine, and colliding machine tool elements are highlighted in red in Fig. 12.9. CAS integration has been proved to be an efficient solution to withstand collision risk with different operational modes in machining critical components. Huron, a leading French manufacturer of very high-performance 5-axis machining centres for continuous machining of complex parts, has integrated CAS into Huron's high-performance product lines, including KX 50 L, a high-performance double column machining centre, and K3X 8 FIVE, a machine from the range of very highperformance 5-axis bridge-type machining centres.

Conclusions
This document presents an overview of the model-based control strategies developed in Twin-Control project and applied using the CPS approach. Part of the modelling activities carried out in Twin-Control project has been implemented at workshop level. This way, virtual representation of the machine is linked to the real representation and can modify its performance to improve productivity (adaptive control), increase machine uptime (collision avoidance system), optimize tool life (process monitoring), improve maintenance actions (automatic machining condition smoothening) and even to improve the communication with operators (telegram adapter). Most of the applications are based on a standard monitoring equipment, like ARTIS devices used in Twin-Control project, and hence, high costs are avoided. The different features have been validated at both laboratory and industrial level.
Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.
The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.