1 Introduction

In the modern manufacturing industry, the five-axis CNC machine tools are increasingly used in the precision machining of complex surfaces for their high productivity and flexibility [1, 2]. Thus, the improvement of machining accuracy has attracted much attention. However, many factors affect the of the machining accuracy of the machine tools, such as geometric errors, thermal errors, cutting-force induced errors, and tool wear errors. In these errors, the geometric errors, which are caused by inaccuracies built-in components and assembly errors, form one of the biggest sources of inaccuracy [3]. Compensating geometric errors is an important means of improving machining accuracy. Among many geometric errors, each one has different effects on machining accuracy. Thus, a practical sensitivity analysis of geometric errors is an important way to compensate errors. In the past few years, many scholars have conducted in-depth research on geometric error compensation to search an effective analysis method to improve the machining accuracy. Bryan reported the use of magnetic ball bars for measuring linear axis motion errors. Since then, various groups have applied this method to measure geometric errors of machines [4]. Tsutsumi et al. proposed an algorithm to identify eight specific geometric errors for a five-axis machine tool using the ball bar [5]. Ibaraki et al. presented an efficient calibration method to identify location errors and position-dependent geometric errors for a five-axis machine tool using R-test [6]. In order to improve the accuracy of the integrated geometric errors of the machine tool, Fu et al. proposed a novel error model based on D-H method [7]. In recent years, multi-body system method has been widely used in geometric error modeling of machine tools [8,9,10]. The MBS method has the characteristics of good universality, clear physical definition, and convenient calculation. Compared with the D-H method, the homogeneous transmission matrix (HTM) is applied in the MBS method to represent the coordinate transformation between each rigid body. Considering the nonlinearity and uncertainty of error, data fitting is suitable for error modeling based on measurement data [11,12,13]. In this paper, the MBS and the HTM are adopted for the geometric error modeling.

On the basis of these theories made by predecessors, the position error model of five-axis machine tools can be mapped. However, it is difficult to deal with these error parameters to acquire the sensitive error parameters due to the high nonlinearity of the position error. Zhang et al. applied the MDRM method into the GSA of machine tools to identify the key geometric errors [14]. In order to better analyze the motion accuracy and error design of machine tools, Tang et al. proposed a comprehensive sensitivity analysis method for 3-DOF parallel machine based on the probability model [15]. Huang et al. conducted error design based on the interval analysis method and pointed out that over estimate of errors on boundary was brought by this method [16]. Xing et al. proposed a method of machine tool accuracy monitoring based on position errors, vector similarity measurement, and exponential weighted moving average control char [17]. Li et al. proposed a sensitivity analyses for the five-axis machine tool volume error conducted by defining the new sensitivity indices [18]. As can be observed in the abovementioned studies, Sobol, Morris, and single error derivation methods have been widely used in many applications. Among these methods, how to choose a simple method to identify the vital error parameters that affect the machining accuracy is the key to solve the error compensation and precision design. However, these GSA requires a large amount of calculation and computer simulations, which will take a lot of time in this analysis process.

Therefore, in order to find out essential geometric errors for machine tools efficiently, an accurate and quick sensitivity analysis method is urgently needed to identify the vital geometric errors. This paper proposes a general sensitivity analysis to calculate the error sensitivity index which is an important reflection of the error affecting the position error of machine tools. Then, the each sensitivity index of geometric errors is calculated and the vital geometric errors are identified. Finally, the machining accuracy of the machine tool is improved significantly by compensating the vital geometric errors.

The structure of this paper is arranged as follows. In section 2, the position error model of five-axis machine tool is obtained based on MBS theory. In section 3, the error sensitivity analysis based on truncated Fourier expansion is established. In section 4, the experiments are conducted and the results show that the global sensitivity method is effective and feasible. In section 5, the paper is summarized.

2 Position error model

2.1 Description of geometric errors

Geometric errors come from assembly errors and manufacturing errors of machine parts which are reflected on each axis of straightness errors, angular errors, and squareness errors. There are 21 geometric error parameters for three translational axis, including 18 position-dependent geometric error (PDGE) parameters and 3 position-dependent geometric error (PIGE) parameters. Taking the X-axis as an example shown in Fig. 1, it has 6 degrees of freedom in space. Thus, when it moves, it will generate PDGE parameters (σx(x), σy(x), σz(x), εx(x), εy(x), εz(x)) as shown in Fig. 1. Among them, σx(x), σy(x), σz(x) represent the straightness errors along the X-axis in the X, Y and Z directions respectively and εx(x), εy(x)εz(x)represent the angle error around the X, Y and Z directions, respectively. Since the five-axis machine possesses five motion axis, there are 30 PDGE parameters in total. In addition, because of the assembly relationship between each axis of the machine tool, there are 7 PIGE parameters (Sxy, Sxz, Syz, Sxb, Sxc, Syc, Szb). As illustrated in Fig. 2, the PIGE parameter Sxy represents squareness error between X-axis and Y-axis, and Sxzrepresents squareness error between X-axis and Z-axis. Thus, the five-axis machine tool has 37 geometric errors in total as shown in Table 1.

Fig. 1
figure 1

Position-dependent geometric error on the X-axis

Fig. 2
figure 2

Position-independent geometric error

Table 1 Geometric error parameter

2.2 Structure of the five-axis machine tool

The structure of five-axis machine tool is usually divided into three types, such as RTTTR, TTTRR, and RRTTT respectively. The letter T represents the translational axis and the letter R represents the rotary axis. This paper takes a planer milling machine as an example as shown in Fig. 3; this structure of five-axis machine tool is TTTRR, which consists of a workpiece (0), X-axis (1), Y-axis (2), Z-axis (3), C-axis (4), and B-axis (5). The stroke of the translational axis is expressed as X × Y × Z = 5000 × 2000 × 500 mm. The stroke of the B-axis is [− 30°, 30°] and the stroke of the C-axis is [− 180°, 180°].

Fig. 3
figure 3

Five-axis machine tool schematic diagram

Compared to a three-axis machine tool, the geometric errors caused by the two rotation axis of a five-axis machine tool should be taken into consideration when modeling the position error of five-axis machine tool.

2.3 Position error model

The position error of tool points is caused by the deviation between the actual tool position and the ideal tool position. In order to describe the motion relationship between adjacent bodies clearly, the machine tool topology needs to be established according to MBS. As shown in Fig. 4, the motion of each adjacent body of the machine tool can be expressed by error parameter matrix according to HTM. Thus, it is necessary to calculate the tool’s actual point and ideal point. Because of the manufacturing and assembly errors of each part of the machine tool, it will generate the corresponding geometric error in the position and movement of each axis. Thus, the ideal motion matrix and actual motion matrix of the machine tool are respectively expressed as

$$ {\left[{T}_{\mathrm{ij}}\right]}_i={\left[{T}_{\mathrm{ij}}\right]}_{\mathrm{p}}{\left[{T}_{\mathrm{ij}}\right]}_s $$
(1)
$$ {\left[{T}_{\mathrm{ij}}\right]}_{\mathrm{a}}={\left[{T}_{\mathrm{ij}}\right]}_{\mathrm{p}}{\left[{T}_{\mathrm{ij}}\right]}_{\mathrm{p}\mathrm{e}}{\left[{T}_{\mathrm{ij}}\right]}_s{\left[{T}_{\mathrm{ij}}\right]}_{se} $$
(2)
Fig. 4
figure 4

Topological structure of machine tool

Where[Tij]a, [Tij]p, [Tij]iand[Tij]s represent the actual motion transformation matrix, position error transformation matrix, ideal motion transformation matrix, and motion error transformation matrix between two adjacent bodies i and j, respectively.

Thus, the actual and ideal position equations of the tool can be obtained in the workpiece system, according to the MBS and HTM. The formula for each adjacent body is shown in Appendix 1 Tables 4 and 5. Assuming that the initial position of tool [rt] = (0, 0, −L, 1)T is known, the actual position (Pa) and ideal position (Pi) of the tool can be expressed as Eqs. ((3) , (4)), respectively.

$$ {P}_{\mathrm{a}}={\left[{T}_{01}\right]}_{\mathrm{a}}{\left[{T}_{12}\right]}_{\mathrm{a}}{\left[{T}_{23}\right]}_{\mathrm{a}}{\left[{T}_{34}\right]}_{\mathrm{a}}{\left[{T}_{45}\right]}_{\mathrm{a}}\left[{r}_t\right] $$
(3)
$$ {P}_{\mathrm{i}}={\left[{T}_{01}\right]}_{\mathrm{i}}{\left[{T}_{12}\right]}_{\mathrm{i}}{\left[{T}_{23}\right]}_{\mathrm{i}}{\left[{T}_{34}\right]}_{\mathrm{i}}{\left[{T}_{45}\right]}_{\mathrm{i}}\left[{r}_t\right] $$
(4)

Where L represents the length of tool and the matrix [Tij](i=1,2..6,j=2,3…7) represents the position transformation relationship between two adjacent bodies. [Tij]aand [Tij]i represent the product of the matrices movement of the cutting tool the actual and ideal positions relations of two adjacent bodies respectively.

Based on the topological structure of the five-axis machine tool, it is obvious that in the process of calculation of the actual movement of the cutting tool. Thus, the position error (Pe = (Pex, Pexy, Pez, 0)) of the machine tool can be expressed as

$$ {P}_{\mathrm{e}}={P}_{\mathrm{a}}-{P}_{\mathrm{i}} $$
(5)

3 Global sensitivity index model

The sensitivity analysis of position error in cutting point with regard to each error component can be made, which will be helpful in the precision design of a machine tool according to the position error model in the above section. Thus, sensitivity coefficients are introduced to express the degree which error parameters have greater affect in the given workspace. However, the position error Pe contains many error parameters and the coupling of error parameters. In order to fully consider the contribution of each geometric error parameter on the total error, an error sensitivity analysis model is mapped where the error parameters can be regarded as the input and the position error Pe can be regarded as the output. In this paper, the proposed method provides a new way of computing and reduce the number of calculation. The specific steps are as follows: Fourier series expansion is used to characterize the geometrical error parameters, which transforms the global sensitivity analysis results into the solution of Fourier amplitude. Finally, the geometric error parameters of machine tool are solved by the position error model and the amplitude is determined.

3.1 Global sensitivity model based on truncated Fourier

As shown in Table 1, there are 37 geometric error parameters which contain 30 position-dependent geometric errors and 7 position-independent geometric errors in a five-axis machine tool. According to Ref. [12], the position-independent geometric errors generated by assembly are considered a constant value. Therefore, the following analysis is based on the position-independent geometric errors compensated. Pek (k=x,y,z) is set to be the integrated error function f(t) and ti represents independent variable for all geometric errors.

$$ {P}_{\mathrm{ek}}=\mathrm{f}\left(\mathrm{t}\right)=\mathrm{f}\left({\mathrm{x}}_1,{\mathrm{x}}_2,{\mathrm{x}}_3\dots {\mathrm{x}}_{30}\right) $$
(6)
$$ {\mathrm{t}}_{\mathrm{i}}\in \left\{{\sigma}_x(X),{\sigma}_y(X),{\sigma}_z(X),{\varepsilon}_x(X)\dots {\varepsilon}_z(C)\right\} $$
(7)

According to Ref.[16], the position errors are not only random and continuous but also related to the position of motion. These position-dependent geometric errors fulfill Dirichlet boundary conditions; hence, the position-dependent geometric errors can be represented by a series of Fourier. The geometric errors function can be expressed as

$$ f(t)=\sum \limits_{\mathrm{j}=\mathrm{1.3.5}..}^N{A}_{\mathrm{j}}\sin \left(\frac{2\pi \mathrm{t}}{\lambda_{\mathrm{j}}}\right) $$
(8)

Therefore, the coefficient Aj can be expressed as

$$ {A}_{\mathrm{j}}=\frac{2}{N+1}\sum \limits_{\mathrm{i}=1}^{N_{\mathrm{t}}}\mathrm{f}\left({\mathrm{t}}_{\mathrm{i}}\right)\sin \left(\frac{2\pi {\mathrm{t}}_{\mathrm{i}}}{\lambda_{\mathrm{j}}}\right) $$
(9)

Where t represents independent variable of geometric error parameter and λjrepresents the wavelength of the error parameter. In (0,2π), there is an uniform interval Nt ( Nt = Mλmin + 1) that M is usually selected as 4 and λmin is the smallest wavelength in {λj}. Each wavelength λ in {λj} is linearly independent. So, there is a set of integers {rj} that makes the members of set {λj} linearly independent.

$$ \left\{\begin{array}{c}\sum \limits_{\mathrm{i}=1}^{30}{\mathrm{r}}_{\mathrm{j}}{\lambda}_{\mathrm{j}}\ne 0\\ {}\mathrm{j}\in B=\left[1,2,3,\dots {N}_{\mathrm{t}}\right]\\ {}{\mathrm{t}}_{\mathrm{k}}=\frac{2\mathrm{k}-{N}_{\mathrm{t}}-1}{2{N}_{\mathrm{t}}},\mathrm{k}\in \mathrm{D}=\left[1,2,3,\dots {N}_{\mathrm{t}}\right]\\ {}F=B-\left\{\frac{N_{\mathrm{t}}+1}{2}\right\}\end{array}\right. $$
(10)

The Fourier frequency spectrum curve is defined as τ

$$ \tau ={A}_j^2 $$
(11)

The variance of the model caused by the change of the parameter input can be expressed as the spectrum curve of the parameter.

$$ {V}_{\mathrm{i}}=\sum \tau {\lambda}_{\mathrm{j}}={\sum}_{\mathrm{n}=1}^M{A}_{\mathrm{j}=\mathrm{n}}^2 $$
(12)

The variance of the output of the sensitivity analysis model caused by each input error parameter can be expressed as

$$ V=\sum \limits_{{\mathrm{t}}_1=1}^{30}{V}_{{\mathrm{t}}_1}+\sum \limits_{{\mathrm{t}}_1\doteq {\mathrm{t}}_2}^{30}{V}_{{\mathrm{t}}_1{\mathrm{t}}_2}+\cdots +\sum {V}_{{\mathrm{t}}_1{\mathrm{t}}_2\dots {\mathrm{t}}_{30}}=\sum \limits_F\tau =\sum \limits_{j=1}^{\frac{N_t+1}{2}}{\tau}_j $$
(13)

Where t1, t2 and t30 represent each of the different error parameters in the set {t}.

In order to describe the contribution of error parameters on position error more clearly and quantitatively, each geometric error parameter is normalized (the unit of straightness errors and angle errors are 1 um and 1 urad, respectively). The contribution of each error parameter on the machining error is expressed by the first-order sensitivity index (Si)

$$ {S}_{\mathrm{i}}=\frac{V_{\mathrm{i}}}{V} $$
(14)

The sensitivity index is the ratio of the variance of the sensitivity model output changed by the input error parameter to the variance of the errors, which is regarded as the local sensitivity index. By calculating the sensitivity index for each error, the first-order sensitivity index is more intuitive to express the influence of the transformation of input parameters on the output error. The first-order sensitivity index Sm simply reflects the contribution of single geometric error item on output while it cannot truly reflect the output of the coupling effect of parameter i and other error parameters. Thus, the global sensitivity (Sti) index is introduced.

$$ S{\mathrm{t}}_{\mathrm{i}}=\frac{\sum_{\mathrm{j}=\mathrm{M}\lambda \min}^{N_{\mathrm{t}}}{A}_{\mathrm{j}}^2}{\sum_{\mathrm{j}=1}^{N_{\mathrm{t}}}{A}_{\mathrm{j}}^2} $$
(15)

The variance Sti can be simply viewed as Si plus all interaction terms of i can express the total influence of error parameter i on the output. Moreover, in order to observe the sensitivity results more intuitively. the global sensitivity index normalization is defined as

$$ \overline{S{t}_{\mathrm{i}}}=\frac{1}{N}\sum \limits_1^NS{\mathrm{t}}_{\mathrm{i}} $$
(16)

where \( \overline{S_{\mathrm{i}}} \) represents the average global sensitivity index of the ith error parameter in the m direction which reflects the total contribution of the single error term (Vi) and coupling error term (Vij) to total error term(V). In addition, it is apparent that the sensitivity index is used to evaluate the contribution of geometric error parameters to position error which has no unit.

Since the sensitivity has been confirmed, there is still one problem that needs to be addressed. It is inevitable to determine the Fourier amplitude of the error parameter to solve the sensitivity coefficient. According to Eq. (8), the geometric error parameters are expressed by truncated Fourier series, and the least square method can be used to determine the Fourier coefficient. For the five-axis machine tool, there are 30 position-dependent geometric errors. The truncated Fourier coefficients of 30 geometric error parameters are represented by using the row vectors A1, A2, …, A30. The parameters in vector A are expressed in Eq. (19).

$$ A=\left[{A}_1,{A}_2,\dots, {A}_{30}\right] $$
(17)

Taking C-axis as an example, the PDGEs are represented by the following.

$$ {A}_i=\left[{A}_{i1},{A}_{i2},{A}_{i3},{A}_{i4},{A}_{i5},{A}_{i6}\right] $$
(18)
$$ \left\{\begin{array}{c}{\partial}_{\mathrm{x}}(c)=\sum \limits_{i=1}^n{A}_{i1}\sin \left(\frac{\theta }{2i-1}\right)\\ {}{\partial}_{\mathrm{y}}(c)=\sum \limits_{i=1}^n{A}_{i2}\sin \left(\frac{\theta }{2i-1}\right)\\ {}{\partial}_{\mathrm{z}}(c)=\sum \limits_{i=1}^n{A}_{i3}\sin \left(\frac{\theta }{2i-1}\right)\\ {}{\xi}_{\mathrm{x}}(c)=\sum \limits_{i=1}^n{A}_{i4}\sin \left(\frac{\theta }{2i-1}\right)\\ {}{\xi}_{\mathrm{y}}(c)=\sum \limits_{i=1}^n{A}_{i5}\sin \left(\frac{\theta }{2i-1}\right)\\ {}{\xi}_{\mathrm{z}}(c)=\sum \limits_{i=1}^n{A}_{i6}\sin \left(\frac{\theta }{2i-1}\right)\end{array}\right. $$
(19)

Where j(j = 1, 2, ⋯6) is the coefficient of the truncated Fourier polynomials describing the PDGE. n denotes the orders of the polynomials, which are determined by examining the residual errors. (i.e., θk= 0).

By transforming Eq. (19), the following equation can be obtained.

$$ {A}^T\theta =B $$
(20)
$$ \mathrm{Where}\kern0.5em A={\left[\begin{array}{cccccc}{A}_{11}& {A}_{21}& {A}_{31}& {A}_{41}& {A}_{51}& {A}_{61}\\ {}{A}_{12}& {A}_{22}& {A}_{32}& {A}_{42}& {A}_{52}& {A}_{62}\\ {}..& ..& ..& ..& ..& ..\\ {}{A}_{1i}& {A}_{2i}& {A}_{3i}& {A}_{4i}& {A}_{5i}& {A}_{6i}\\ {}{A}_{1n}& {A}_{2n}& {A}_{3n}& {A}_{4n}& {A}_{5n}& {A}_{6n}\end{array}\right]}_{n\times 6} $$
(21)
$$ \theta ={\left[\begin{array}{c}\sin {\theta}_1\\ {}\sin \frac{\theta_1}{3}\\ {}\sin \frac{\theta_1}{5}\\ {}\dots \\ {}\sin \frac{\theta_1}{2n+1}\end{array}\kern0.5em \begin{array}{c}\sin {\theta}_2\\ {}\sin \frac{\theta_2}{3}\\ {}\sin \frac{\theta_2}{5}\\ {}\dots \\ {}\sin \frac{\theta_2}{2n+1}\end{array}\kern0.5em \begin{array}{c}\dots \\ {}\dots \\ {}\dots \\ {}\dots \\ {}\dots \end{array}\kern0.5em \begin{array}{c}\sin {\theta}_{\mathrm{j}}\\ {}\sin \frac{\theta_{\mathrm{j}}}{3}\\ {}\sin \frac{\theta_{\mathrm{j}}}{5}\\ {}\dots \\ {}\sin \frac{\theta_{\mathrm{j}}}{2n+1}\end{array}\kern0.5em \begin{array}{c}\sin {\theta}_{\mathrm{k}}\\ {}\sin \frac{\theta_{\mathrm{k}}}{3}\\ {}\sin \frac{\theta_{\mathrm{k}}}{5}\\ {}\dots \\ {}\sin \frac{\theta_{\mathrm{k}}}{2n+1}\end{array}\right]}_{n\times k} $$
(22)
$$ B={\left[\begin{array}{ccccc}{\sigma}_{\mathrm{x}}\left({\theta}_1\right)& {\sigma}_{\mathrm{x}}\left({\theta}_2\right)& \dots & {\sigma}_{\mathrm{x}}\left({\theta}_j\right)& {\sigma}_{\mathrm{x}}\left({\theta}_k\right)\\ {}{\sigma}_{\mathrm{y}}\left({\theta}_1\right)& {\sigma}_{\mathrm{y}}\left({\theta}_2\right)& \dots & {\sigma}_{\mathrm{y}}\left({\theta}_j\right)& {\sigma}_{\mathrm{y}}\left({\theta}_k\right)\\ {}{\sigma}_{\mathrm{z}}\left({\theta}_1\right)& {\sigma}_{\mathrm{z}}\left({\theta}_2\right)& \dots & {\sigma}_{\mathrm{z}}\left({\theta}_j\right)& {\sigma}_{\mathrm{z}}\left({\theta}_k\right)\\ {}{\xi}_x\left({\theta}_1\right)& {\xi}_x\left({\theta}_2\right)& \dots & {\xi}_x\left({\theta}_j\right)& {\xi}_x\left({\theta}_k\right)\\ {}{\xi}_y\left({\theta}_1\right)& {\xi}_{\mathrm{y}}\left({\theta}_2\right)& \dots & {\xi}_y\left({\theta}_j\right)& {\xi}_y\left({\theta}_k\right)\\ {}{\xi}_z\left({\theta}_1\right)& {\xi}_z\left({\theta}_2\right)& \dots & {\xi}_z\left({\theta}_j\right)& {\xi}_z\left({\theta}_k\right)\end{array}\right]}_{6\times k} $$
(23)

Thus, the truncated Fourier amplitude of the geometric error parameters can be obtained as

$$ A={\left(\theta {\theta}^T\right)}^{-1}\theta {B}^T $$
(24)

Based on the proposed global sensitivity method, the global sensitivity index of each error parameter item can be fully calculated. Then, these sensitivity indexes are sequenced from large to small to find the error parameters that significantly impact the position error of machine tool. Finally, these important geometric errors will be the focus of geometric error compensation and precision design. For example, suppose each global sensitivity index of error parameters has been calculated by the proposed method. In that case, it can always be found the error parameter with the maximum error sensitivity index comparing the sensitivity index of the remaining error parameters with the maximum error parameter, respectively. Suppose the sensitivity index of an error parameter item is less than one tenth of the maximum error parameter. In that case, it means that the error parameter has little influence on the position error, which can be ignored. If the sensitivity index of an error parameter term is greater than one tenth of the maximum error parameter, it means that the error parameter is regarded as an important error parameter.

4 Simulation and experiment

According to ISO 230 – 6 [19], the tool moves along each body diagonal of the workspace, and the diagonal displacement will be affected by each geometric error. Therefore, eight symmetrical points and one individual center point are selected on the diagonal of two individuals for position error measurement. In the whole motion range of the motion axes, the average position error of the tool at nine points can be simulated, which approximately reflects the influence of geometric error on the whole workspace. Thus, it can be seen from Figs. 5, 6, 7 that the simulation results based on the proposed method. In addition, the histogram comparison is more intuitive, and the vital geometric errors corresponding to larger banded areas are identified. The parameters with more sensitive error in the X direction are sorted in order εy(y), εy(x), σx(x), σx(z), σx(y), σx(C), σx(B), εz(x), εy(z). The parameters sensitive to geometric errors in the Y direction are arranged from high to low as follows εx(y), εx(x), σy(z), σy(x), σy(y), σy(B), σy(C), εx(z), and the vital geometric error parameters that affect the position error of machine tool in the Z direction are σz(z), εz(x), σz(y), σz(B), εx(x), εy(x), εy(y). According to the sensitivity results, the unidirectional error is significantly affected by εy(y)the straightness error in general. For example, the sensitive straightness error parameters in the Z direction areσz(C) and σz(z) . Moreover, the most sensitive error parameters in the X and Y directions are the angle error such as εy(y), εy(x), εx(y), εx(x), respectively. In addition, these more sensitive geometric error parameters in all directions are vital geometric error parameters that affect the machining accuracy of the machine tool. From the sensitivity analysis results, the angle error parameters have a great influence on the position error of the machine tool. At the same time, the straightness error parameters and angle error parameters related to the translational axis have a significant effect on the position error of the machine tool, which may be because the translational axis is at the top of the machine tool motion chain.

Fig. 5
figure 5

Global sensitivity index in the X direction

Fig. 6
figure 6

Global sensitivity index in the Y direction

Fig. 7
figure 7

Global sensitivity index in the Z direction

The machining error of machine tool is affected by many factors. Reducing the position error of machine tool is an effective means to improve the machining accuracy. Thus, in order to verify the validity of the proposed method, error compensation experiments are performed to compensate the vital geometric errors. The experiment is divided into two steps. The first step is that the S-shaped specimen is machined in the five-axis gantry machine. After that, the coordinate measuring machine is used to detect machining accuracy of the S-shaped specimen. The second step: After the obtained vital geometric error parameter items are compensated, the S-shaped specimen is conducted to machined in this improved machine tool. Then, the validity of the sensitivity method was proved by comparing the machining accuracy of two S-shaped specimens. The purpose of the second experiment is aimed to prove that the vital geometric error parameters obtained by the proposed sensitivity analysis method play important roles in the improvement of machine tool machining accuracy. In Section 2, the workspace of the five-axis machine tool has been introduced. As displayed in Fig. 8, the S-shaped specimen of which upper and lower directrix is a continuous b-spline curve fitting by using the second derivative is used to test the machining accuracy of five-axis machine tools. The S-shaped specimen’s length, width, height, and thickness are 250 mm, 175 mm, 40 mm, and 3 mm, respectively. However, as the machining track of S-shaped specimen is a surface, according to Ref. [20], it introduces Frenet frame to represent surface machining error more accurately by deviations of tangential direction, normal direction, and binormal direction instead of X, Y, and Z directions. The processing scene of S-shaped specimen is shown in Fig. 9. Therefore, the normal direction of error increment is considered as an important indicator to verify the machining accuracy. Moreover, in order to avoid the theoretical error caused by the distortion angle of the S-shaped specimen, the region H is selected as the processing region. In addition, since there are numerous cutting tool positions in the machining process, 10 sampling points are selected to reflect the cutting tool positions in Table 2 effectively. According to a Latin hypercube sampling technique in each data acquisition point, for each position of the geometric error, each point 700 data were acquired. In Section 3 (0.1 μm for the position errors and 0.1 μrad for the angular errors), the global sensitivity index for each geometric error can be calculated by Eq. (20).

Fig. 8
figure 8

Schematic diagram of S-shaped specimen

Fig. 9
figure 9

S-shaped specimen in processing scene

Table 2 Tool point parameter on region H

The linear interpolation method was used to compensate the vital geometric error parameters to observe the machining accuracy after compensation. The geometric errors of the translation axis are identified by the laser interferometer, and the geometric errors of the rotation axis are identified by double ball bar. The identification results of geometric errors are illustrated in Appendix 2. The compensated values of vital geometric errors are generated by the postprocessor to generate NC code to modify the tool position. This paper makes use of the position error compensation function module provided by the commercial numerical control system (FANUC), where an external compensator is added based on the original numerical control system. The compensation principle is as follows.

The position error space is divided into several cuboid grids, and the number of nodes in X, Y, and Z directions is denoted as Mx, My, and Mz, respectively. Considering the storage problem, the grid nodes should be selected appropriately. When the machine tool moves to any point P in the workspace, a cuboid element can always be found with the point P located inside or on the boundary. The cuboid vertices and their seats are marked Pj=(xj,yj,zj) (j=8). As illustrated in Fig. 10, it can be seen that linear interpolation of any point in a unit. In order to explain clearly, the X-direction deviation is taken as the compensation object, where Δpx represents the value of the linear interpolation compensation method.

$$ \varDelta {p}_x=\sum \limits_{j=i}^8{c}_j\varDelta {p}_{xj} $$
(25)
$$ \left\{\begin{array}{c}{c}_1=\left(1-{k}_x\right)\left(1-{k}_y\right)\left(1-{k}_z\right),{c}_2={k}_x\left(1-{k}_y\right)\left(1-{k}_z\right),{c}_3={k}_x{k}_y\left(1-{k}_z\right)\\ {}{c}_4=\left(1-{k}_x\right){k}_y\left(1-{k}_z\right),{c}_5=\left(1-{k}_x\right)\left(1-{k}_y\right){k}_z,{c}_6={k}_x\left(1-{k}_y\right){k}_z\\ {}{c}_7={k}_x{k}_y{k}_z,{c}_8=\left(1-{k}_x\right){k}_y{k}_z\end{array}\right. $$
(26)
Fig. 10
figure 10

Linear interpolation compensation value model

In the formula above, kx, ky and kz represent normalized internal fraction ratios of point P in the X, Y and Z directions, respectively. The values of ki are distributed between 0 and 1, which can be obtained by interpolation arithmetic.

$$ {k}_x=\frac{\left|x-{x}_1\right|}{\left|{x}_2-{x}_1\right|},{k}_y=\frac{\left|y-{y}_1\right|}{\left|{y}_4-{y}_1\right|},{k}_z=\frac{\left|z-{z}_1\right|}{\left|{z}_5-{z}_1\right|} $$
(27)

Since the Y and Z direction compensation methods are the same, there is no need to repeat them here. The corresponding compensation values of all mesh nodes are uploaded to the numerical control system to compensate for the position error.

After compensating for the vital geometric error of machine tool, another S-shaped specimen was processed. Then, it was tested by a coordinate measuring machine. The results of two S-shaped specimens processed are illustrated in Fig. 11, where the surface quality before compensation is significantly worse than that after compensation. Moreover, the results show that the machining error is significantly reduced. As illustrated in Table 3, the machining error values of processed point 1 and 3 before compensation are measured as 0.583 mm and 0.624 mm, respectively. When the five-axis machine tool has been compensated by the linear interpolation compensation, the machining error value of S-shaped specimen in processed point 1 was reduced by 0.129 mm, which improved the machining accuracy by 22.1%. Similarly, when the machining error value of machining point 3 was obtained, the machining error was reduced by 0.122 compared with the first one, which improved the machining accuracy by 22.1%. It means that the machining accuracy of the machine tool has been significantly improved by compensating the vital geometric error parameters. In addition, the sensitivity indexes of the geometric error are calculated by the proposed sensitivity method. It can be seen from Fig. 12, Fig. 13, and Fig. 14 that the second sensitivity analysis has made a noticeable difference compared with the first one. The sensitivity indexes of vital geometric error parameters have been reduced significantly, which are still the vital geometric error parameters that affect the machining accuracy of the machine tool compared with other error parameters. The compensation result indicates that reducing the vital geometric errors has obvious benefits to improve the machining accuracy. However, the sensitivity indexes of geometric error parameters εx(x), εz(x), σx(B), σz(B), εy(C) have increased, which may be caused by geometric error parameters coupling results. In summary, the influence of vital geometric error parameters on the machining accuracy of the machine tool is reduced by linear interpolation compensation. Thus, it can be reasonably concluded that the proposed sensitivity analysis method is accurate and feasible.

Fig. 11
figure 11

The results of two S-shaped specimens

Table 3 Machining error value of S-shaped specimen
Fig. 12
figure 12

Global sensitivity index in the X direction

Fig. 13
figure 13

Global sensitivity index in the Y direction

Fig. 14
figure 14

Global sensitivity index in the Z direction

5 Conclusion

In this paper, the proposed method is first used to establish the position error model of the five-axis planer milling machine tool and then to deduce the sensitivity analysis model for five-axis machine tool. Moreover, the vital geometric errors of the machine tool are identified, which provides an important theoretical basis for the design of machine tool. Finally, the machining accuracy of machine tool has been significantly improved by compensating the vital geometric errors.

Above all, the following areas need to be studied in the future.

  1. (1)

    In this paper, the geometric error modeling and machining precision solving methods of machine tools are studied without considering cutting force and thermal error. Therefore, factors such as cutting force and cutting heat error can be considered in the study of machining accuracy in the future

  2. (2)

    The geometric error item may be sensitive to some points and insensitive to some processing points. Therefore, how to calculate the interval sensitivity of geometric error terms has important practical significance for further research.