1. Introduction
In recent years, manufacturing systems are becoming more and more complex, increasing the demand for modeling and simulation tools. For this purpose, the concept of Digital-Twin (DT) has been extensively studied in Industry 4.0, becoming the focus of global, digital transformation of manufacturing [
1]. A DT consists of three main building blocks: (i) the physical system; (ii) the virtual system; and (iii) the data and information that interconnect and integrate the two systems. The development of the Digital-Model (DM) is the first step toward the development of a DT, which can be defined as the virtual representation of the real objects, when there is no automatic exchange of data between the digital and physical systems. Such models must incorporate the physical properties, geometries, behaviors, and constraints of the physical assets [
2]. During this work, the Digital-Model of a machining robot has been developed for the evaluation and optimization of the process without the need of physical testing, enabling easy process adaptation during the process planning stage, without additional costs.
Machining is still a new application for robots, and, until now, their industrial adaptation is restricted to tasks with low cutting force requirements (e.g., drilling and polishing). However, their use for more challenging tasks, such as milling, is driven by the multiple advantages they present over conventional CNC machines. Specifically, robots offer larger working spaces at lower cost, providing an excellent base for cost-efficient machining, while flexibility is also added to the manufacturing system from the industrial robots’ incorporation, since they can execute different tasks with minor adjustments. Finally, due to their flexible kinematics, robots are capable of moving in tight areas and machine parts with complex geometries, without the need of any special techniques or fixtures [
3,
4]. Along with the introduction of robots to machining, the use of robots for hybrid manufacturing has also emerged. Hybrid manufacturing presents a high potential of surpassing conventional manufacturing technologies, being able to reduce production times, achieve the desirable geometric accuracy and surface characteristics, create multiple material parts, and repair damaged parts [
5]. The use of robots for hybrid manufacturing is a much more flexible alternative compared to hybrid machine tools, reducing the challenges and complexities regarding equipment integration; as a result, it is highly pursued [
6].
On the other hand, robots have an inherent problem with structural stiffness, sourcing from their design as open, serial kinematic chains, supported by rotational joints. The compromised static and dynamic stiffness of the robot components compared to machine tools leads to insufficient rigidity, which in turn impacts the accuracy of the process. Additionally, the low natural frequencies of the robot structure due to the serially linked kinematics increase the risk for the chatter effect to arise, leading to unacceptable surface quality of the machined part [
7]. Therefore, research on dynamic simulation methods that enables toolpath planning and process parameters optimization, to compensate the generated positional error from arm deflections during the process, in addition to real-time process monitoring, is crucial. However, a simulation tool must be linked with the CAM system in an interoperable way, to enable the process optimization during the process planning stage and to have benefits for real industrial scenarios [
3,
4].
Extensive efforts to establish complete robotic stiffness modeling methods for high-precision processes such as milling are demanded, considering the compromised posture-dependent stiffness of industrial robots. For machining processes, robot deflections are a function of the magnitude and frequency of the generated cutting forces. Several different modeling methods can be found in the literature for the robot dynamics modeling (e.g., finite elements analysis, virtual joint method, matrix structural analysis), each of them with their own advantages and limitations, while optimal method selection for every occasion can be seen as a balance between the demanded accuracy and the computational cost [
4,
8]. Except robot stiffness, models predicting the robot dynamic behavior are crucial for milling operations, where high cutting forces are applied in a periodic manner, leading to oscillations or even chatter and consequent machining errors. Research on robot machining stability and generation of the stability lobe diagrams has been performed mainly using experimental modal analysis (EMA) and finite elements analysis (FEA) [
9]. In conclusion, knowledge of the robot stiffness and dynamic behavior is a key requirement for the optimization of the process during the process planning stage, and for the development of offline positional error compensation algorithms, induced from robot compliance.
To increase the accuracy of robotic-based machining systems and, subsequently, their industrial adoption, various optimization strategies have been proposed in the literature. Several researchers attempted to extend the conventional CAD–CAM process planning chain with simulations and optimization strategies, to achieve deflection-dependent toolpath planning, or even develop error compensation algorithms able to calculate the compensated robot trajectory [
10,
11]. Based on the advantage of industrial robots to have one redundant degree of freedom (DOF), even when performing five-axis machining, significant efforts have been made to improve process accuracy through the optimization of the robot posture. This redundancy provides an opportunity to optimize the robot posture for a given cutter location (CL) and, subsequently, for the whole toolpath, without demanding modifications of the toolpath itself [
12,
13]. Workpiece placement optimization algorithms can be considered as an extension to this category of optimization strategies, attempting to minimize the vibrations and deflections of the robot during the process by optimizing the robot configuration for a given task through the workpiece placement position and orientation [
14,
15,
16]. Finally, both offline and online feed-rate scheduling methods have been studied in an effort to regulate the maximum generated cutting forces to a constant allowable value, ensuring high enough material removal rate while avoiding excessive deformations and vibrations of the robot [
17,
18].
To this end, this work presents the development of a DM for a robot performing machining operations, using the Multi-Body Simulation (MBS) method to simulate its dynamic behavior throughout the process and the development of two different optimization strategies, to increase the process accuracy by making modifications during the process planning stage.
The paper is organized as follows. First, a review of the related works regarding robot dynamics modeling for machining operations is presented. Next, the methodology followed for the development of the simulation model and the optimization algorithms is analyzed. Moreover, two simulated experiments and their results are presented to demonstrate the model and algorithms’ usability and capabilities. The experimental validation of the model that has been performed is presented afterwards. Finally, the conclusions from this work and the potential for future work are outlined.
2. Literature Review
Since robot dynamics are of utmost importance for high-precision processes such as milling, there has been a wide range of publications in the literature that investigate the influence of robots’ compromised structural stiffness and the mode shapes with low natural frequencies to the final process accuracy. Cordes et al. [
19] investigated the process stability limits, concluding that for high-speed-machining operations the pose-dependent modes of the tool-spindle system are the main source of instability, while the pose-dependent modes of the robot structure are causing the chatter at lower cutting speeds. Li et al. [
20] investigated the relation between the effect of mode coupling chatter and the surface quality of the workpiece, finding that better results were obtained in cases where the feed motion of the cutting tool is along
y-axis. Finally, they mentioned that proper workpiece placement can prevent chatter in robotic machining operations. Wu et al. [
21] investigated the dynamic characteristics of a milling robots, using the R
2-based compliance identification criterion, identifying joints as the compliance source of the milling robot, and subsequently characterized the robot mode shapes from the joint deformations. Finally, they identified the existence of weak excitation direction at the Tool Center Point (TCP). Mohammani and Ahmadi [
22] studied regenerative chatter when machining with robots that exhibit structural nonlinearities, using a two DOF vibratory system to model robot dynamics at the TCP, including cubic stiffness and damping terms to account for the robot’s structural nonlinearities. Swan et al. [
23] investigated the effect of low and high-frequency vibration modes in robotic milling, concluding that their parallel presence will lead to large surface accuracy error, but it is independent to the spindle speed. Tunc and Gonul [
24] investigated the stability of robot milling operations, concluding that the vibration response of industrial robots under quasi-static motion conditions differs from that of static conditions, which in turn affects the stability limits at low-frequency chatter conditions. Finally, Busch et al. [
25] attempted to quantify the uncertainties imported to the natural frequencies’ prediction from the joint parameters used in the machining robot model.
To overcome the challenges and complexities introduced from robot posture-dependent dynamic behavior, several methods have been proposed in the literature. Huynh et al. [
26] proposed a method to fit the elastic damping parameters of a MBS model used for a machining robot with flexible joints, using a genetic algorithm which was fed with data from Frequency Response Functions (FRFs) produced through impact testing. Chen et al. [
9] proposed a method that uses several measured FRFs and the inverse distance weight method, to predict the posture-dependent FRFs of a machining robot and generate the correspondent stability lobe diagrams. Chen and Ahmadi [
27] proposed the combination of multibody dynamics and Gaussian Process Regression, to model the posture-dependent FRFs of machining robots, concluding that this approach presents more advantages compared to purely physics-based or data-driven methods. Wang et al. [
28] proposed the use of a random forest based multimode prediction method to obtain the posture-dependent modal properties within the whole robot working space. Based on that, a multiple DOF dynamic equation was constructed and solved to predict the stability limits within the whole working area. Karim et al. [
29] performed an extensive EMA for the measurement of robot dynamic behavior by performing experiments in the entire working space of the robot with different poses. Mejri et al. [
30] also performed EMA to generate the stability lobe diagrams, observing that process stability is affected from the robot posture, the cutting tool orientation, and the feed direction. Xu et al. [
31] presented a stiffness modeling method for robots, considering both joint and link compliances, in addition to the link weights and the gravity compensator. The model was later used for the calculation of deflections throughout the robot workspace, making it possible to estimate the contribution of external forces, link weights, and gravity compensator to the total deflections. Chen et al. [
32] proposed an interactive coupling algorithm that integrated the robot dynamic model and cutting force model to predict the vibrations in robotic milling and assist the stability lobe generation process. For the robot dynamic model, only joint flexibility has been considered, and the rigid-flexible coupling dynamic model can be regarded as a superposition of rigid and flexible systems. Liao et al. [
33] proposed a model that takes into account both the robot positioning error and the deformation error, introduced by the limited robot stiffness, for the prediction of the surface machining profile error. Additionally, a hierarchical error compensation algorithm that integrates offline and online approaches is introduced. Tepper et al. [
34] developed the compliance model for an industrial robot considering the gear’s stiffness parameters. For the aforementioned parameters’ calculation, optimal design of experiments for variance–minimal Bayesian inference has been used. Celikag et al. [
35] developed the compliance model of a machining robot based on the virtual joint method, modeling the joints as virtual springs while the links are considered to be rigid. The developed model has been used later for the robot posture optimization in 5-DOF milling operations, in an effort to increase the robot stiffness and to achieve error compensation and enhanced machining stability. Finally, Doukas et al. [
36] developed the finite elements (FE) model of the robot and used it to create its deflections map over its working space, to be used during the process planning stage.
However, most of the developed models for robotic machining are not connected with the process planning stage or with the CAM system, preventing their adaptation to real industrial cases and exploration of their full capabilities [
37]. For this purpose, this work aims to develop a complete Digital-Model for a machining robot, linked directly with the CAM to enable easy process assessment and adaptations or even optimizations.
4. Optimization Strategies
4.1. Workpiece Placement Optimization
The position of the machining workpiece relative to the robot has a significant impact on the robot configuration and the generated cutting forces during the process. Therefore, a task-dependent workpiece placement optimization tool is of utmost importance for robotic machining operations. Taking into consideration the posture-dependent dynamic behavior of the robot, and the one redundant DOF even when performing five-axis machining, optimal placement of the workpiece can be seen as an excellent optimization opportunity. A tool able to calculate the optimal position and orientation of the machining part in two stages with respect both to the robot dynamics and the workpiece geometry has been developed, attempting to maximize the robot stiffness along the cutting toolpath.
Identifying the stiffness values and how they fluctuate over the working space is essential for maximizing the robot’s stiffness along a trajectory. For this purpose, the stiffness maps of the robot for a cube above the rotary table have been created, using the developed Digital-Model. A series of static simulations in the aforementioned area have been performed in order to calculate the robot stiffnesses along , , and directions. To achieve that, static simulations have been executed using the developed multi-body model to estimate all three axial deflection values in points every in the previously mentioned cube and, subsequently, the axial stiffnesses.
The vector of the load applied in Newtons to the robot end-effector in all cases was
, with respect to the robot base coordinate frame (
Figure 9). The robot stiffness values along
,
, and
directions for every point can now be defined as follows:
where
,
, and
are the robot deflections to the correspondent axis from the initial position during the static simulations. Some of the generated stiffness maps are presented in
Figure 10 below, while it is noted that all the coordinate values are measured from the robot base system, and all the simulations have been performed for robot poses that the cutting tool axis is aligned with the robot
axis. It is evident that with the approach followed for the stiffness map generation, the kinematic redundancy of the robot is not taken into account. As such, this tool is not suitable for robot pose optimization applications, but only for selection of the optimal workpiece placement position when machining parts with the aforementioned configuration.
Based on the generated stiffness maps and the part geometrical features, the user can first define and then clamp the workpiece at the stiffer regions before the actual process execution. The goal of this algorithm is to assist the user in the selection of the workpiece placement position and not to define a single optimal position, providing him with the whole background information about the stiffer positions of the robot and giving him the flexibility to consider during the placement selection process and other parameters except robot stiffness (e.g., available working space and ease of stock part clamping).
From the above stiffness maps it is becoming clear that the stiffness values along the robot
x-axis are much greater compared to the
y-axis. As a result, the orientation of the workpiece can be tuned, so that the highest machining loads are aligned with the
x-axis of the robot. Due to the increased stiffness in the
x-axis, less machining error and increased part quality is expected. Based on that, an integrated MATLAB script has been developed to estimate the workpiece optimal orientation, using the toolpath points of a finishing process, and attempting to align in an efficient way the robot
axis with the contour error vector. Specifically, the normal vectors along the given toolpath, the angles between those vectors and robot
axis, and the mean value of the angles are calculated. Then, the rotation of the machined part starting from the
axis and moving counterclockwise is calculated from the following equation in degrees:
In the next section, an optimization strategy for one for most influential process parameters is presented, in an attempt to further increase the accuracy of robotic machining applications.
4.2. Feed-Rate Scheduling
As already discussed, industrial robots are seldom used by industry for machining applications, mainly due to their compromised stiffness when compared with conventional CNC machines. Feed-rate scheduling algorithms applied in robotic machining operations attempt to calculate a proper upper limit for the feed rate, to eliminate excessive contour error values outside the demanded part tolerance, due to deformation and vibration of the robot structure, while maintaining a high enough material removal rate [
17].
An offline feed-rate scheduling method based on a set of precalculated cutting tool deviations along a milling toolpath has been developed using Matlab environment. The algorithm calculates an optimized feed-rate profile for the process, in order to fulfill the user-predefined tolerance requirements, while not sacrificing process productivity. This work is backed up by the Altintas model [
48], according to which by lowering the feed rate and lower generated cutting forces can be achieved, due to their linear relationship, which is visible from Equation (14). Lower cutting forces lead to smaller cutting tool positional errors, due to robot limited stiffness. The developed algorithm first performs a two-stage clustering procedure to the toolpath points based on their calculated position deflections and their Cartesian position, to generate regions along the toolpath with similar deflection values, whose feed-rate values must subsequently be modified in a similar way. For points with positional error greater than a user-defined upper limit, the feed rate will be decreased, while for points with error values below a desired lower limit, the feed rate will be increased, in order to enable higher productivity when the accuracy of the part is not that critical. The flowchart of the feed-rate scheduling algorithm is presented in detail in
Figure 11 below.
A linear relationship between the cutting forces and the feed rate has been assumed for the calculation of the adjusted feed-rate values, since this approach has been proved to return reasonable results for the new feed-rate values, without introducing any additional complexities [
49]. The calculation formula used for the calculation of the new feed rate is:
where
is the maximum force applied along the
y-axis between the points of every cluster and
is a user-selected value based on the demanded tolerance and robot stiffness maps for the
axis and
the initial selected feed-rate value. It is evident that this algorithm aims to reduce the cutting forces at points with big loads along the robot
axis, due to the compromised robot stiffness at this direction. The above equation is being used only for the points whose feed rate needs to be decreased, while the feed rate of all points with deflections lower than the lower limit is increasing by
from the initial value that the user has selected for the feed rate.
It is noted that the algorithm has been proven to efficiently reduce the number of points with unacceptable deflection values; however, it is not able to eliminate them. This lies in the fact that the contribution of the feed rate to the generated cutting forces values is limited, while other parameters (axial depth of cut, radial engagement) are also important to the overall cutting force value. Significantly wrong selection of these parameters cannot be compensated by only tweaking the feed rate.
6. Experimental Validation
After having completed the development of the machining robot DM, it is essential to verify that the model’s outputs closely match actual experimental data and the optimization algorithms can improve the parts’ accuracy in real machining scenarios. Experimental validation of the model is necessary to ensure its accuracy and reliability by comparing the model outputs with real-world data and should be performed before the adoption of the model by any potential industrial users. To achieve this, a significant number of side milling experiments were conducted for various sets of process parameters, with different cutting directions and robot configurations, to collect a comprehensive dataset for the dynamic behavior of the robot during milling operations. The side milling experiments were always machining passes in a straight line. Each experiment number corresponds to a single machining pass performed with the process parameters described in
Table 5. The selection of different cutting parameters (and thus different induced cutting forces) examines the linearity of the physical system, in response to the load variation. The DM, implemented in Simulink, is inherently linear due to the use of the linear spring damper systems for the joints and the method of generating the stiffness and damping matrices of the members. Additionally, the inclusion of experiments with various cutting directions and robot configurations aims to verify the model’s ability to successfully predict the pose-dependent stiffness of the robot arm throughout the working space.
The material used in all experiments was Aluminum 7075-T651, while the cutting tool was a R390-016A16-11L indexable end mill from Sandvik Coromant (Sandviken, Sweden) with R390-11 T3 04E-NL H13A inserts from the same manufacturer. In order to evaluate the dependence of the robot dynamic behavior with the robot configuration, experiments were carried with four different configurations:
Robot Configuration 1: Movement of the robot along the robot axis (angle )
Robot Configuration 2: Movement of the robot along the robot axis (angle )
Robot Configuration 3: Movement the robot along the axis (angle )
Robot Configuration 4: Move the robot along the robot axis with the table rotated −30° (angle )
The aforementioned robot configurations are presented in
Figure 18, while the cutting parameters for each of the 23 total milling experiments can be found in
Table 5. All process parameters values (feed per tooth, cutting speed, axial and radial depths of cut) were selected based on the working parameters window provided by the cutting tool manufacturer. There was no specific design of experiments methodology (e.g., factorial, Taguchi) selected for the identification of process parameter combinations, as the point of these experimental tests was just to compare the results against the simulation and not do any further statistical analysis afterwards.
It is noted that in addition to the process parameters mentioned in the table above, for all the experiments the feed per tooth was and the spindle speed .
At the end of every experiment, the dimensions of the machined workpiece were measured to the perpendicular direction of the feed (
M1) and to the axial direction of the cutting tool (
M2). Those measurements were used later for comparison with the positional error predicted by the DM. The results of the comparison are presented in
Table 6 below.
It is evident that, with certain exceptions, the error predictions of the DM have small deviations from the measured values. It is noted that during experiments and the effect of chatter was present during the machining process; therefore, the robot was in a resonant state. The linear approach of the Multi-Body simulation adopted for the development of this DM is not able to simulate this situation with sufficient accuracy. The non-linearity of the robot vibrations when chatter takes place is something that is not yet accounted for in the proposed approach.
In order to further extend the validation of the developed model, the machining of a standardized part has been simulated and the optimization algorithms have been applied afterwards to validate their added value to real machining scenarios. The part that has been selected follows the NAS979 standard [
50] and is widely known as Circle-Diamond-Square (
Figure 19), due to its distinctive geometry. The aforementioned part has been selected since it is a standardized specimen for evaluating the accuracy of CNC machine tools.
A first test part has been machined using an arbitrary placement position, and its dimensions have been measured. Afterwards, the optimization algorithms were applied and a part has been manufactured again, to prove the part accuracy improvement after their application.
Figure 20 presents the setup of the machining experiments before and after the application of the optimization algorithms.
After the machining of the Circle-Diamond-Square parts with both the initial and the optimized setup, their dimensions per feature were measured (
Figure 21) for comparison with the DM calculated accuracy results. It is noted that both parts have been manufactured with the same process parameters, except the feed rate which for the part after the optimizations was variable, according to the correspondent algorithm output.
For the results comparison, the mean values of the DM calculated robot deviations in the machining plane per feature (circle, diamond, square) have been used. The simulation results are summarized in
Table 7 below.
It is evident that after the application of the optimization algorithms, the manufactured part accuracy has been improved both in the simulations as well as in the actual machining experiments. The two manufactured Circle-Diamond-Square parts are presented in
Figure 22 below.