1 Introduction

Laser interferometry has been used extensively in the precision inspection field such as error measurement and instrument calibration [1,2,3,4,5,6]. Dual-frequency laser interferometers are a major type of laser interferometry application, which are widely used in error measurement and compensation of multi-axis machine tools and coordinate measuring machines [7,8,9]. In order to reduce the Abbe error between the optical path and the measured motion axis during the setup process of the laser interferometer system, as well as the cosine error caused by the multi-degree of freedom motion of the measured axis during measurement [10], the optical path of the laser interferometer should therefore be calibrated and adjusted accordingly. However, the optical path calibration and adjustment of the laser interferometer is time-consuming and require experienced operators [11,12,13].

At present, several adjustment methods are available for optical calibration process. Chen introduced a triangle adjustment method to measure the positioning errors of a machine tool by replacing the magnetic base with a gauge block frame and a pentagonal prism to reduce the measurement error [14]. Zhang et al. developed a laser interferometer automatic aiming system for the spatial error measurement of CNC machine tools. They also proposed a direct measurement to obtain the entire spatial positioning error of CNC machine tools through a pair of light beams [15]. Wei set up an outline of a detailed operation process of the adjustment method using a laser interferometer [16]. In order to quickly and accurately adjust the laser direction, Liu et al. analyzed the causes of laser beam eccentricity and designed a control unit to adjust the translation and rotation motion of the interferometer to achieve the laser interferometer beam collimation [17]. Shi proposed a fast and accurate adjustment method of a laser interferometer according to a proportional method [18]. On the basis of fully analyzing the principle of the optical path adjustment, Wu et al. designed and manufactured a specific platform for the vertical axis and used it in practice for the purpose of calibration [19]. Gong et al. established a mathematical model of the optical path of the laser interferometer in the spatial coordinate system, and compensated for the efficiency loss caused by the operator’s lack of experience by analyzing the influence of different regulators on the optical path [20].

The idea of the current calibration processes is to repeatedly adjust the laser interferometer components after rough adjustment on the machine tool, resulting in low efficiency and time-consuming process. No quantitative indication can be given for the adjustment, thus the adjusting process is highly dependent upon the experience of the operator, which makes the adjustment not accurate enough for testing. Therefore, this article is aiming at a guideline for operators with less operation skill to adjust the optical path within shorter period but better accuracy. In this paper, the quantitative adjustment amount of the laser interferometer components can be obtained with the homogeneous transformation matrix (HTM) modeling the laser beam. A Renishaw XL-80 laser interferometer is used to calibrate the X-, Y-, and Z-axes of two Hanchuan XK714D CNC milling machines for validation purposes.

The remainder of this paper is organized as follows. Section 2 introduces the laser interferometer measuring system. Section 3 gives the optical path error model using the HTMs. In the fourth section, the experiment process is described and the errors of each component are obtained. The fifth part presents the optical path adjustment according to the errors obtained in Section 4. The last section gives the conclusions.

2 Laser interferometer system

2.1 Equipment

The laser interferometer system includes two light targets, a beam splitter, two linear mirrors, an interference mirror group (made up by a linear mirror with a beam splitter), an XL-80 laser transmitter, a universal tripod, a Renishaw XL-80 environmental compensation unit, a temperature sensor, and an air temperature sensor, as shown in Figs. 1 and 2.

Fig. 1
figure 1

Optical mirrors

Fig. 2
figure 2

The Renishaw XL-80 measuring equipment

2.2 Principle of the laser interferometer measurement

The laser emitted from the laser transmitter is dispersed into two coherent beams after passing through the beam splitter, namely, the two reflected lights of different paths. When the optical path of the X- , Y-, and Z-axes are detected, one reflected light will be reflected back to the receiving end of the laser transmitter by the linear mirror, and the other reflected light will be reflected back to the receiving end of the laser transmitter by the fixed linear mirror. The measure beam and reference beam (orange light in Figs. 3 and 4) are superimposed on the interference mirror group, and the two beams are finally detected and compared in the detector at the laser receiver [21, 22], as shown in Figs. 3 and 4.

Fig. 3
figure 3

The principle of detecting the X- and Y-axes

Fig. 4
figure 4

The principle of detecting the Z-axis

3 Optical path error model

3.1 Optical path error modeling of the X- and Y-axis detection

The light beam from the laser transmitter reaches the beam splitter coordinate system O1-X1Y1Z1 along the Y-axis relative to the laser transmitter coordinate system O0-X0Y0Z0; the beam transmitted from the beam splitter reaches the coordinate system O2-X2Y2Z2 of the linear mirror, as shown in Fig. 5. The major component errors affecting the laser beam are shown in Fig. 6 and Table 1. The following mathematical model is established for the detection system.

Fig. 5
figure 5

Schematic view of the X- and Y-axis coordinate assignment

Fig. 6
figure 6

Component errors of the X- and Y-axes. a Laser transmitter coordinate system. b Beam splitter coordinate system. c Linear mirror coordinate system

Table 1 Main component errors affecting the X- and Y-axis optical path

where the superscript represents the optical path of the Y-axis; the subscript represents the error direction; the translation error is represented by δ; the angle error is represented by ε; and the letter in the parentheses represents the component that contains the error. The laser transmitter is represented by l, the beam splitter is represented by s, and the linear mirror is represented by r.

  1. 1)

    The laser transmitter point is set as the coordinate origin. Therefore, the laser transmitter is ideally an identity matrix:

$$ {I}_l={I}_4 $$
(1)

The errors affecting the laser transmitter are mainly caused by the translations along the X- and Z-axes and rotations around the X- and Z-axes. Hence,

(2)

where \( {\Delta \mathrm{T}}_{{{}{}^{\mathrm{Y}}\updelta}_{\mathrm{x}}\left(\mathrm{l}\right)} \) is the error transformation matrix of the translation error \( {}{}^{\mathrm{Y}}{\updelta}_{\mathrm{x}}\left(\mathrm{l}\right) \) of the laser transmitter in the X-axis direction.

(3)

where \( {\Delta \mathrm{T}}_{{{}{}^{\mathrm{Y}}\updelta}_{\mathrm{z}}\left(\mathrm{l}\right)} \) is the error transformation matrix of the translation error \( {}{}^{\mathrm{Y}}{\updelta}_{\mathrm{z}}\left(\mathrm{l}\right) \) of the laser transmitter in the Z-axis direction.

$$ {\Delta T}_{{{}{}^Y\varepsilon}_x(l)}=\left[\begin{array}{cccc}1& 0& 0& 0\\ {}0& \cos {{}{}^Y\varepsilon}_x(l)& -\sin {{}{}^Y\varepsilon}_x(l)& 0\\ {}0& \sin {{}{}^Y\varepsilon}_x(l)& \cos {{}{}^Y\varepsilon}_x(l)& 0\\ {}0& 0& 0& 1\end{array}\right] $$
(4)

where \( {\Delta \mathrm{T}}_{{{}{}^{\mathrm{Y}}\upvarepsilon}_{\mathrm{x}}\left(\mathrm{l}\right)} \) is the error transformation matrix of the pitch angle \( {{}{}^{\mathrm{Y}}\upvarepsilon}_{\mathrm{x}}\left(\mathrm{l}\right) \) of the laser transmitter around the X-axis.

(5)

where \( {\Delta \mathrm{T}}_{{}{}^{\mathrm{Y}}{\upvarepsilon}_{\mathrm{z}}\left(\mathrm{l}\right)} \) is the error transformation matrix of the yaw angle \( {}{}^{\mathrm{Y}}{\upvarepsilon}_{\mathrm{z}}\left(\mathrm{l}\right) \) of the laser transmitter around the Z-axis.

Based on Eqs. 15, the comprehensive error transformation matrix of the laser transmitter point is given as follows:

(6)
  1. 2)

    When the laser beam reaches the beam splitter coordinate system O1-X1Y1Z1, the ideal matrix is

$$ {I}_{s1}=\left[\begin{array}{c}\begin{array}{c}1\\ {}0\end{array}\\ {}\begin{array}{c}0\\ {}0\end{array}\end{array}\kern0.5em \begin{array}{c}\begin{array}{c}0\\ {}1\end{array}\\ {}\begin{array}{c}0\\ {}0\end{array}\end{array}\kern0.5em \begin{array}{cc}\begin{array}{c}\begin{array}{c}0\\ {}0\end{array}\\ {}\begin{array}{c}1\\ {}0\end{array}\end{array}& \begin{array}{c}\begin{array}{c}0\\ {}{Y}_s\end{array}\\ {}\begin{array}{c}0\\ {}1\end{array}\end{array}\end{array}\right] $$
(7)

The errors affecting the beam splitter are mainly caused by the translation along the X-axis of the beam splitter and rotation around the Z-axis. Hence,

(8)

where \( {\Delta \mathrm{T}}_{{}{}^{\mathrm{Y}}{\updelta}_{\mathrm{x}}\left(\mathrm{s}\right)} \) is the error transformation matrix of the translation error \( {}{}^{\mathrm{Y}}{\updelta}_{\mathrm{x}}\left(\mathrm{s}\right) \) of the beam splitter in the X-axis direction.

(9)

where \( {\Delta \mathrm{T}}_{{}{}^{\mathrm{Y}}{\upvarepsilon}_{\mathrm{z}}\left(\mathrm{s}\right)} \) is the error transformation matrix of the yaw angle \( {}{}^{\mathrm{Y}}{\upvarepsilon}_{\mathrm{z}}\left(\mathrm{s}\right) \) of the beam splitter around the Z-axis.

Therefore, the comprehensive error transformation matrix of the beam splitter is given as follows:

(10)
  1. 3)

    When the laser beam reaches the coordinate system O2-X2Y2Z2 of the linear mirror, the ideal matrix is

$$ {I}_{r1}=\left[\begin{array}{cc}\begin{array}{c}\begin{array}{c}1\\ {}0\end{array}\\ {}\begin{array}{c}0\\ {}0\end{array}\end{array}& \begin{array}{c}\begin{array}{c}0\\ {}1\end{array}\\ {}\begin{array}{c}0\\ {}0\end{array}\end{array}\end{array}\kern0.5em \begin{array}{cc}\begin{array}{c}\begin{array}{c}0\\ {}0\end{array}\\ {}\begin{array}{c}1\\ {}0\end{array}\end{array}& \begin{array}{c}\begin{array}{c}0\\ {}{Y}_r\end{array}\\ {}\begin{array}{c}0\\ {}1\end{array}\end{array}\end{array}\right] $$
(11)

The errors affecting the linear mirror are mainly caused by the translation along the Z-axis of the linear mirror and rotation around the X-axis. Hence,

(12)

where \( {\Delta \mathrm{T}}_{{}{}^{\mathrm{Y}}{\updelta}_{\mathrm{z}}\left(\mathrm{r}\right)} \) is the error transformation matrix of the translation error \( {}{}^{\mathrm{Y}}{\updelta}_{\mathrm{z}}\left(\mathrm{r}\right) \) of the linear mirror in the X-axis direction.

(13)

where \( {\Delta \mathrm{T}}_{{}{}^{\mathrm{Y}}{\upvarepsilon}_{\mathrm{x}}\left(\mathrm{r}\right)} \) is the error transformation matrix of the pitch angle \( {}{}^{\mathrm{Y}}{\upvarepsilon}_{\mathrm{x}}\left(\mathrm{r}\right) \) of the linear mirror around the X-axis.

Therefore, the comprehensive error transformation matrix of the linear mirror is given as follows:

(14)
  1. 4)

    The coordinates of the light spot at the beam splitter are given as follows:

(15)

where T = [0 0 0 1]T.

  1. 5)

    The coordinates of the light spot at the linear mirror are given as follows:

(16)

Since the coordinates of M1 and M2 are the same in the X- and Z-axis directions. In the Y-axis direction, there is a k1 time relationship between the coordinates of M1 and M2, where k1 represents a value not equal to 1, that is, the values of M1 and M2 in the Y-axis direction are different. According to Eqs. 15 and 16, the relationship between M1 and M2 can be obtained as follows:

$$ \left\{\begin{array}{c}{M}_1\left(1,1\right)={M}_2\left(1,1\right)\\ {}{M}_1\left(2,1\right)={k}_1{M}_2\left(2,1\right)\\ {}{M}_1\left(3,1\right)={M}_2\left(3,1\right)\end{array}\right. $$
(17)

3.2 Optical path error modeling of the Z-axis detection

The laser beam reaches the beam splitter (coordinate system O1-X1Y1Z1) along the Y-axis, then passing through the beam splitter and reaching the linear mirror (coordinate system O2-X2Y2Z2), as shown in Fig. 7. The major component errors affecting the laser beam are shown in Fig. 8 and Table 2. The following mathematical model is established for the detection system.

Fig. 7
figure 7

Schematic view of the Z-axis coordinate assignment

Fig. 8
figure 8

Component errors of the Z-axis. a Laser transmitter coordinate system. b Beam splitter coordinate system. c Linear mirror coordinate system

Table 2 Main component errors affecting the Z-axis optical path

where the superscript represents the optical path of the Z-axis; the subscript represents the error direction; the translation error is represented by δ; the angle error is represented by ε; and the letter in parentheses represents the component that contain the error. The laser transmitter is represented by l, the beam splitter is represented by s, and the linear mirror is represented by r.

  1. 1)

    The laser transmitter point is set as the coordinate origin. Therefore, the laser transmitter is ideally an identity matrix:

$$ {I}_l={I}_4 $$
(18)

The errors affecting the laser transmitter are mainly caused by the translations along the X- and Z-axes and rotations around the X- and Z-axes. Hence,

$$ {\Delta T}_{{{}{}^Z\delta}_x(l)}=\left[\begin{array}{cccc}1& 0& 0& {{}{}^Z\delta}_x(l)\\ {}0& 1& 0& 0\\ {}0& 0& 1& 0\\ {}0& 0& 0& 1\end{array}\right] $$
(19)

where \( {\Delta T}_{{{}{}^Z\delta}_x(l)} \) is the error transformation matrix of the translation error \( {{}{}^Z\delta}_x(l) \) of the laser transmitter in the X-axis direction.

$$ {\Delta T}_{{{}{}^Z\delta}_z(l)}=\left[\begin{array}{cccc}1& 0& 0& 0\\ {}0& 1& 0& 0\\ {}0& 0& 1& {{}{}^Z\delta}_z(l)\\ {}0& 0& 0& 1\end{array}\right] $$
(20)

where \( {\Delta T}_{{{}{}^Z\delta}_z(l)} \) is the error transformation matrix of the translation error \( {{}{}^Z\delta}_z(l) \) of the laser transmitter in the Z-axis direction.

$$ {\Delta T}_{{{}{}^Z\varepsilon}_x(l)}=\left[\begin{array}{cccc}1& 0& 0& 0\\ {}0& \cos {{}{}^Z\varepsilon}_x(l)& -\sin {{}{}^Z\varepsilon}_x(l)& 0\\ {}0& \sin {{}{}^Z\varepsilon}_x(l)\Big)& \cos {{}{}^Z\varepsilon}_x(l)& 0\\ {}0& 0& 0& 1\end{array}\right] $$
(21)

where \( {\Delta T}_{{{}{}^Z\varepsilon}_x(l)} \) is the error transformation matrix of the pitch angle \( {{}{}^Z\varepsilon}_x(l) \) of the laser transmitter around the X-axis.

(22)

where \( {\Delta T}_{{}{}^Z{\varepsilon}_z(l)} \) is the error transformation matrix of the yaw angle \( {}{}^Z{\varepsilon}_z(l) \) of the laser transmitter around the Z-axis.

Based on Eqs. 1822, the comprehensive error transformation matrix of the laser transmitter point is given as follows:

(23)
  1. 2)

    When the laser beam reaches the beam splitter coordinate system O1-X1Y1Z1, the ideal matrix is

$$ {I}_{s2}=\left[\begin{array}{cc}\begin{array}{c}\begin{array}{c}1\\ {}0\end{array}\\ {}\begin{array}{c}0\\ {}0\end{array}\end{array}& \begin{array}{c}\begin{array}{c}0\\ {}1\end{array}\\ {}\begin{array}{c}0\\ {}0\end{array}\end{array}\end{array}\kern0.5em \begin{array}{cc}\begin{array}{c}\begin{array}{c}0\\ {}0\end{array}\\ {}\begin{array}{c}1\\ {}0\end{array}\end{array}& \begin{array}{c}\begin{array}{c}0\\ {}{Z}_s\end{array}\\ {}\begin{array}{c}0\\ {}1\end{array}\end{array}\end{array}\right] $$
(24)

The errors affecting the beam splitter are mainly caused by the translation along the X- and Y-axes of the beam splitter and rotation around the Z-axis. Hence,

(25)

where \( {\Delta \mathrm{T}}_{{}{}^{\mathrm{Z}}{\updelta}_{\mathrm{x}}\left(\mathrm{s}\right)} \) is the error transformation matrix of the translation error \( {}{}^{\mathrm{Z}}{\updelta}_{\mathrm{x}}\left(\mathrm{s}\right) \) of the beam splitter in the X-axis direction.

$$ {\Delta T}_{{{}{}^Z\delta}_y(s)}=\left[\begin{array}{cccc}1& 0& 0& 0\\ {}0& 1& 0& {{}{}^Z\delta}_y(s)\\ {}0& 0& 1& 0\\ {}0& 0& 0& 1\end{array}\right] $$
(26)

where \( {\Delta \mathrm{T}}_{{{}{}^{\mathrm{Z}}\updelta}_{\mathrm{y}}\left(\mathrm{s}\right)} \) is the error transformation matrix of the translation error \( {{}{}^{\mathrm{Z}}\updelta}_{\mathrm{y}}\left(\mathrm{s}\right) \) of the beam splitter in the Y-axis direction.

(27)

where \( {\Delta \mathrm{T}}_{{}{}^{\mathrm{Z}}{\upvarepsilon}_{\mathrm{z}}\left(\mathrm{s}\right)} \) is the error transformation matrix of the yaw angle \( {}{}^{\mathrm{Z}}{\upvarepsilon}_{\mathrm{z}}\left(\mathrm{s}\right) \) of the beam splitter around the Z-axis.

Therefore, the comprehensive error transformation matrix of the beam splitter is given as follows:

$$ {E}_{s2}={\Delta T}_{{{}{}^Z\delta}_x(s)}{\Delta T}_{{{}{}^Z\delta}_y(s)}\Delta {T}_{{{}{}^Z\varepsilon}_z(s)}{I}_{s2}=\left[\begin{array}{cc}\begin{array}{c}\cos {{}{}^Z\varepsilon}_z(s)\\ {}\ \sin {{}{}^Z\varepsilon}_z(s)\end{array}& \begin{array}{c}-\sin {{}{}^Z\varepsilon}_z(s)\\ {}\cos {{}{}^Z\varepsilon}_z(s)\end{array}\\ {}\begin{array}{c}0\\ {}0\end{array}& \begin{array}{c}0\\ {}0\end{array}\end{array}\kern0.5em \begin{array}{cc}0& {{}{}^Z\delta}_x(s)-{Z}_s\sin {{}{}^Z\varepsilon}_z(s)\\ {}\begin{array}{c}0\\ {}\begin{array}{c}1\\ {}0\end{array}\end{array}& \begin{array}{c}{{}{}^Z\delta}_y(s)+{Z}_s\cos {{}{}^Z\varepsilon}_z(s)\\ {}\begin{array}{c}0\\ {}1\end{array}\end{array}\end{array}\right] $$
(28)
  1. 3)

    When the laser beam reaches the coordinate system O2-X2Y2Z2 of the linear mirror, the ideal matrix is

$$ {I}_{r2}=\left[\begin{array}{cccc}1& 0& 0& 0\\ {}0& 1& 0& 0\\ {}0& 0& 1& {Z}_r\ \\ {}0& 0& 0& 1\end{array}\right] $$
(29)

The error affecting the linear mirror is mainly caused by the rotation around the X-axis. Hence,

(30)

where \( {\Delta \mathrm{T}}_{{}{}^{\mathrm{Z}}{\upvarepsilon}_{\mathrm{x}}\left(\mathrm{r}\right)} \) is the error transformation matrix of the pitch angle \( {}{}^{\mathrm{Z}}{\upvarepsilon}_{\mathrm{x}}\left(\mathrm{r}\right) \) of the linear mirror around the X-axis.

Therefore, the comprehensive error transformation matrix of the linear mirror is given as follows:

$$ {E}_{r2}={\Delta T}_{{{}{}^Z\varepsilon}_x(r)}{I}_{r2}=\left[\begin{array}{cc}\begin{array}{cc}1& 0\\ {}0& \cos {{}{}^Z\varepsilon}_x(r)\end{array}& \begin{array}{cc}0&\ 0\\ {}-\sin {{}{}^Z\varepsilon}_x(r)& -{Z}_r\sin {{}{}^Z\varepsilon}_x(r)\end{array}\\ {}\begin{array}{cc}0& \sin {{}{}^Z\varepsilon}_x(r)\\ {}0& 0\end{array}& \begin{array}{cc}\cos {{}{}^Z\varepsilon}_x(r)& \kern0.5em {Z}_r\cos {{}{}^Z\varepsilon}_x(r)\\ {}0& \kern0.75em 1\end{array}\end{array}\right] $$
(31)
  1. 4)

    The coordinates of the light spot at the beam splitter are given as follows:

$$ {\displaystyle \begin{array}{c}{N}_1={E}_{l2}{E}_{s2}T\\ {}=\left[\begin{array}{c}\begin{array}{c}{{}{}^Z\delta}_x(l)+\cos {{}{}^Z\varepsilon}_z(l)\left({{}{}^Z\delta}_x(s)-{Z}_s\sin {{}{}^Z\varepsilon}_z(s)\right)-\sin {{}{}^Z\varepsilon}_z(l)\left({{}{}^Z\delta}_y(s)+{{}{}^Z\delta}_y(s)\cos {{}{}^Z\varepsilon}_z(s)\right)\\ {}\cos {{}{}^Z\varepsilon}_x(l)\cos {{}{}^Z\varepsilon}_z(l)\left({{}{}^Z\delta}_y(s)+{Z}_s\cos {{}{}^Z\varepsilon}_z(s)\right)+\cos {{}{}^Z\varepsilon}_x(l)\sin {{}{}^Z\varepsilon}_z(l)\left({{}{}^Z\delta}_x(s)-{Z}_s\sin {{}{}^Z\varepsilon}_z(s)\right)\end{array}\\ {}\begin{array}{c}\begin{array}{c}\ \\ {}{{}{}^Z\delta}_z(l)+\cos {{}{}^Z\varepsilon}_z(l)\sin {{}{}^Z\varepsilon}_x(l)\left({{}{}^Z\delta}_y(s)+{Z}_s\cos {{}{}^Z\varepsilon}_z(s)\right)+\sin {{}{}^Z\varepsilon}_x(l)\sin {{}{}^Z\varepsilon}_z(l)\left({{}{}^Z\delta}_x(s)-{Z}_s\sin {{}{}^Z\varepsilon}_z(s)\right)\end{array}\\ {}1\end{array}\end{array}\right]\end{array}} $$
(32)

where T = [0 0 0 1]T.

  1. 5)

    The coordinates of the light spot at the linear mirror are given as follows:

$$ {\displaystyle \begin{array}{c}{N}_2={E}_{l2}{E}_{s2}{E}_{r2}T\\ {}=\left[\begin{array}{c}\begin{array}{c}\begin{array}{c}{{}{}^Z\delta}_x(l)+\cos {{}{}^Z\varepsilon}_z(l)\left({{}{}^Z\delta}_x(s)-{Z}_s\sin {{}{}^Z\varepsilon}_z(s)\right)-\sin {{}{}^Z\varepsilon}_z(l)\left({{}{}^Z\delta}_y(s)+{Z}_s\cos {{}{}^Z\varepsilon}_z(s)\right){{}{}^Z\varepsilon}_z(l)\\ {}+{{}{}^Z\varepsilon}_z(s)\sin {{}{}^Z\varepsilon}_x(r)\left(\ \cos {{}{}^Z\varepsilon}_z(l)\sin {{}{}^Z\varepsilon}_z(s)+\sin {{}{}^Z\varepsilon}_z(l)\cos {{}{}^Z\varepsilon}_z(s)\right)\end{array}\\ {}\begin{array}{c}\cos {{}{}^Z\varepsilon}_x(l)\cos {{}{}^Z\varepsilon}_z(l)\left({{}{}^Z\delta}_y(s)+{Z}_s\cos {{}{}^Z\varepsilon}_z(s)\right)-{Z}_r\sin {{}{}^Z\varepsilon}_x(l)\cos {{}{}^Z\varepsilon}_x(r)+\cos {{}{}^Z\varepsilon}_x(l)\sin {{}{}^Z\varepsilon}_z(l)\Big({{}{}^Z\delta}_x(s)\\ {}-{Z}_s\sin {{}{}^Z\varepsilon}_z(s)\Big)-{Z}_r\sin {{}{}^Z\varepsilon}_x(r)\left(\cos {{}{}^Z\varepsilon}_x(l)\cos {{}{}^Z\varepsilon}_z(l)\cos {{}{}^Z\varepsilon}_z(s)-\cos {{}{}^Z\varepsilon}_x(l)\sin {{}{}^Z\varepsilon}_z(l)\sin {{}{}^Z\varepsilon}_z(s)\right)\end{array}\end{array}\\ {}\begin{array}{c}\begin{array}{c}\begin{array}{c}{{}{}^Z\delta}_z(l)+{Z}_r\cos {{}{}^Z\varepsilon}_x(l)\cos {{}{}^Z\varepsilon}_x(r)+\cos {{}{}^Z\varepsilon}_z(l)\sin {{}{}^Z\varepsilon}_x(l)\left({{}{}^Z\delta}_y(s)+{Z}_s\cos {{}{}^Z\varepsilon}_z(s)\right)\\ {}+\sin {{}{}^Z\varepsilon}_x(l)\sin {{}{}^Z\varepsilon}_z(l)\left({{}{}^Z\delta}_x(s)-{Z}_s\sin {{}{}^Z\varepsilon}_z(s)\right)\end{array}\\ {}-{Z}_r\sin {{}{}^Z\varepsilon}_x(r)\left(\cos {{}{}^Z\varepsilon}_z(l)\sin {{}{}^Z\varepsilon}_x(l)\cos {{}{}^Z\varepsilon}_z(s)-\sin {{}{}^Z\varepsilon}_x(l)\sin {{}{}^Z\varepsilon}_z(l)\sin {{}{}^Z\varepsilon}_z(s)\right)\end{array}\\ {}1\end{array}\end{array}\right]\end{array}} $$
(33)

Since the coordinates of N1 and N2 are the same in the X- and Y-axis directions. In the Z-axis direction, there is a k2 time relationship between the coordinates of N1 and N2, where k2 represents a value not equal to 1, that is, the values of N1 and N2 in the Z-axis direction are different. According to Eqs. 32 and 33, the relationship between N1 and N2 can be obtained as follows:

$$ \left\{\begin{array}{c}{N}_1\left(1,1\right)={N}_2\left(1,1\right)\\ {}{N}_1\left(2,1\right)={N}_2\left(2,1\right)\\ {}{N}_1\left(3,1\right)={k}_2{N}_2\left(3,1\right)\end{array}\right. $$
(34)

4 Experiment

4.1 Measurement of component errors of the horizontal axes

The test bed employed in this paper is a three-axis CNC machine tool manufactured by HanChuan Co., Ltd and the laser interferometer is a Renishaw XL-80. The Renishaw XL-80 laser transmitter is placed on a tripod. The height is adjusted to an appropriate level to the machine bed of the machine tool. The laser interferometer is directly connected to the computer through a USB interface control card. The interferometer mirror consisting of a beam splitter and a linear mirror is connected to magnetic bases and mounted on the machine table. The other linear mirror is connected to a magnetic base and mounted on spindle housing of the machine tool. The XL-80 environmental compensation unit is attached to the surface of the machine tool table in order to minimize the influence of temperature and air pressure variation. The light targets are mounted on the beam splitter and the linear mirror, where the white spot facing upward, as shown in Fig. 9.

Fig. 9
figure 9

Construction of the Y-axis laser interferometer system

When the Y-axis is moving, the beam splitter point gradually moves from the center to the third quadrant (from S1 to S2). This implies that the laser beam is actually located in the first quadrant, as shown in Fig. 10. Therefore, the optical path is deviated from its ideal position, and the deviation is to the upper and right side.

Fig. 10
figure 10

Schematic diagram of the Y-axis detection optical path

First, the Y-axis slide is driven until the beam splitter and the linear mirror are aligned. Then, the Y-axis slide is continuously driven so that the laser beam passes through the center of the beam splitter light target. The distance Ys between the laser transmitter point S0 and the beam splitter point S1, and the distance Yr between the beam splitter point S1 and the linear mirror point S3 are obtained.

Furthermore, the Y-axis slide moves until the beam splitter point S2 is located at the quarter point of the beam splitter light target, which is denoted as S2′. The distance Y1 (from S1 to S2′) is obtained, as shown in Fig. 11. The pitch angle \( {}{}^{\mathrm{Y}}{\upvarepsilon}_{\mathrm{x}}\left(\mathrm{l}\right) \) of the laser transmitter can be calculated based on the moving distance Y1 and the light target radius r. Finally, the translation error \( {}{}^{\mathrm{Y}}{\updelta}_{\mathrm{z}}\left(\mathrm{l}\right) \) at the laser transmitter and the translation error \( {}{}^{\mathrm{Y}}{\updelta}_{\mathrm{z}}\left(\mathrm{r}\right) \) at the linear mirror can be obtained as follows.

(35)
Fig. 11
figure 11

Laser pitch angle of the Y-axis

Subsequently, the Y-axis slide moves until the beam splitter point S2 is located at the quarter point of the beam splitter light target, which is denoted as S2″. The distance Y2 (from S1 to the S2″) is obtained, as shown in Fig. 12. The yaw angle \( {}{}^Y{\varepsilon}_z(l) \) of the laser transmitter can be calculated based on the moving distance Y2 and the light target radius r. The translation error \( {}{}^Y{\delta}_x(l) \) of the laser transmitter and the translation error \( {}{}^Y{\delta}_x(s) \) of the beam splitter can be obtained as follows.

(36)
Fig. 12
figure 12

Laser yaw angle of the Y-axis

Through the above method, the six unknown variables in the model can be obtained. According to Eq. 17, the yaw angle \( {}{}^{\mathrm{Y}}{\upvarepsilon}_{\mathrm{z}}\left(\mathrm{s}\right) \) caused by the rotation of the beam splitter around the Z-axis and the pitch angle \( {}{}^{\mathrm{Y}}{\upvarepsilon}_{\mathrm{x}}\left(\mathrm{r}\right) \) caused by the rotation of the linear mirror around the X-axis can be directly calculated.

4.2 Measurement of component errors of the vertical axis

The installation method of the Z-axis experiment is almost the same as that of the Y-axis experiment, apart from the setup of the beam splitter. The interferometer mirror consisting of a beam splitter and a linear mirror is connected to magnetic bases and mounted on the machine table. The other linear mirror is connected to a magnetic base and mounted on spindle housing of the machine tool. The light targets are mounted on the beam splitter and the linear mirror, where the white spot facing downward of the beam splitter and the white spot facing upward of the linear mirror respectively, as shown in Fig. 13.

Fig. 13
figure 13

Construction of the Z-axis laser interferometer system

When the Z-axis is moving, the linear mirror point gradually moves from the center to the second quadrant (from P2 to P3). This implies that the laser beam is actually located in the first quadrant, as shown in Fig. 14. Therefore, the optical path is deviated from its ideal position, and the deviation is to the upper and right sides.

Fig. 14
figure 14

Schematic diagram of the Z-axis detection optical path

First, the X- and Y-axis slides are driven until the beam splitter and the linear mirror are aligned. Then, the Z-axis slide is continuously driven so that the laser beam passes through the center of the linear mirror light target. The distance Zs between the laser transmitter point P0 and the beam splitter point P1, and the distance Zr between the beam splitter point P1 and the linear mirror point P2 is obtained.

Furthermore, the Z-axis slide moves until the linear mirror point P3 is located at the quarter point of the linear mirror light target, which is denoted as P3′. The distance Z1 (from P2 to P3′) is obtained, as shown in Fig. 15. The pitch angle \( {{}{}^Z\varepsilon}_x(l) \) of the laser transmitter can be calculated based on the moving distance Z1 and the light target radius r. Finally, the translation error \( {{}{}^Z\delta}_z(l) \) at the laser transmitter and the translation error \( {{}{}^Z\delta}_y(s) \) at the beam splitter can be as follows:

$$ \left\{\begin{array}{c}\tan \left({{}{}^Z\varepsilon}_x(l)\right)=\frac{r}{Z_1}\\ {}{Z}_s=\frac{{{}{}^Z\delta}_z(l)}{\tan \left({{}{}^Z\varepsilon}_x(l)\right)}\\ {}{\mathrm{Z}}_r=\frac{{{}{}^Z\delta}_y(s)}{\tan \left({{}{}^Z\varepsilon}_x(l)\right)}\end{array}\right. $$
(37)
Fig. 15
figure 15

Laser pitch angle of the Z-axis

Subsequently, the Z-axis slide moves until the linear mirror point P3 is located at the quarter point of the beam splitter light target, which is denoted as P3″. The distance Z2 (from P2 to P3″) is obtained, as shown in Fig. 16. The yaw angle \( {{}{}^Z\varepsilon}_z(l) \) of the laser transmitter can be calculated based on the moving distance Z2 and the light target radius r. The translation error \( {{}{}^Z\delta}_x(l) \) at the laser transmitter and the translation error \( {{}{}^Z\delta}_x(s) \) at the beam splitter can be obtained as follows:

$$ \left\{\begin{array}{c}\tan \left({{}{}^Z\varepsilon}_z(l)\right)=\frac{r}{Z_2}\\ {}{Z}_s=\frac{{{}{}^Z\delta}_x(l)}{\tan \left({{}{}^Z\varepsilon}_z(l)\right)}\\ {}{\mathrm{Z}}_r=\frac{{{}{}^Z\delta}_x(s)}{\tan \left({{}{}^Z\varepsilon}_z(l)\right)}\end{array}\right. $$
(38)
Fig. 16
figure 16

Laser yaw angle of the Z-axis

Through the above method, the six unknown variables in the model can be obtained. According to Eq. 34, the yaw angle \( {{}{}^Z\varepsilon}_z(s) \) caused by the rotation of the beam splitter around the Z-axis and the yaw angle \( {{}{}^Z\varepsilon}_x(r) \) caused by the rotation of the linear mirror around the X-axis can be directly calculated.

In this paper, MATLAB is used to solve the eight deviations of the laser transmitter, the beam splitter, and the linear mirror. The program flow diagram is shown in Fig. 17. The component errors that mainly affect the optical path are shown in Fig. 18 and Table 3.

Fig. 17
figure 17

Program flow diagram

Fig. 18
figure 18

Component errors of the machine tool affecting the Y- and Z-axis optical path

Table 3 Major factors affecting the component errors of the optical path of the Y- and Z-axes

5 Adjustment method

5.1 Adjustment method for detecting the horizontal axes optical path

  1. 1)

    Adjustment of the upper optical path to the center.

Figure 19 depicts the adjustment process of the upper optical path of the Y-axis to the center. First, the laser transmitter pitch angle knob is adjusted according to the laser pitch angle \( {}{}^Y{\varepsilon}_x(l) \) to cancel it, as shown in Fig. 19b. Then, according to the deviation \( {}{}^Y{\delta}_z(l) \), the laser transmitter is moved downward so that the beam splitter point S1 is at the center of the beam splitter light target. Finally, according to the deviation \( {}{}^Y{\delta}_z(r) \), the linear mirror is moved upward so that the linear mirror point S3 is at the center of the linear mirror light target, as shown in Fig. 19c. It should be noted that when the laser transmitter point S0 is located below its ideal position, the adjustment steps are all the same expect that the adjustment direction is opposite.

Fig. 19
figure 19

Adjustment of the upper optical path of the Y-axis. a Initial optical path. b Adjustment of the pitch angle error. c Adjustment of the translation errors

  1. 2)

    Adjustment of the right side optical path to the center.

Figure 20 depicts the adjustment process of the right side optical path of the Y-axis to the center. First, the laser transmitter yaw angle knob is adjusted according to the laser yaw angle \( {{}{}^Y\varepsilon}_z(l) \) to cancel it, as shown in Fig. 20b. Then, the laser transmitter is moved left based on the deviation \( {}{}^Y{\delta}_x(l) \) and the beam splitter is moved left based on the deviation \( {}{}^Y{\delta}_x(s) \), respectively. Finally, the beam splitter point S1 and the linear mirror point S3 are at the center of the light target, as shown in Fig. 20c. It should be noted that when the laser transmitter S0 is located on the left side of its ideal position, the adjustment steps are all the same except that the adjustment direction is opposite.

Fig. 20
figure 20

Adjustment of the right side optical path of the Y-axis. a Initial optical path. b Adjustment of the yaw angle error. c Adjust of the translation errors

5.2 Adjustment method for detecting the vertical axis optical path

  1. 1.

    Adjustment of the upper optical path to the center.

Figure 21 depicts the adjustment process of the upper optical path of the Z-axis to the center. First, the laser transmitter pitch angle knob is adjusted according to the laser pitch angle \( {{}{}^Z\varepsilon}_x(l) \) to cancel it, as shown in Fig. 21b. Then, according to the deviation \( {{}{}^Z\delta}_z(l) \), the laser transmitter is moved downward so that the beam splitter point P1 is at the center of the beam splitter light target. Finally, according to the deviation \( {{}{}^Z\delta}_y(s) \), the beam splitter is moved forward so that the linear mirror point P2 is at the center of the linear mirror light target, as shown in Fig. 21c. It should be noted that when the laser transmitter point P0 is located below its ideal position, the adjustment steps are all the same expect that the adjustment direction is opposite.

Fig. 21
figure 21

Adjustment of the upper optical path of the Z-axis. a Initial optical path. b Adjustment of the pitch angle error. c Adjustment of the translation errors

  1. 2.

    Adjustment of the right side optical path to the center.

Figure 22 depicts the adjustment process of the right side optical path of the Z-axis to the center. First, the laser transmitter yaw angle knob is adjusted according to the laser yaw angle \( {{}{}^Z\varepsilon}_z(l) \) to cancel it, as shown in Fig. 22b. Then, the laser transmitter is moved left based on the deviation \( {{}{}^Z\delta}_x(l) \) and the beam splitter is moved left based on the direction \( {{}{}^Z\delta}_x(s) \), respectively. Finally, the beam splitter point P1 and the linear mirror point P2 are at the center of the light target, as shown in Fig. 22c. It should be noted that when the laser transmitter P0 is located on the left side of its ideal position, the adjustment steps are all the same expect that the adjustment direction is opposite.

Fig. 22
figure 22

Adjustment of the right side optical path of the Z-axis. a Initial optical path. b Adjustment of the yaw angle error. c Adjustment of the translation errors

6 Conclusions

A novel optical path calibration process of the linear axis of a three-axis machine tool using a Renishaw XL-80 laser interferometer is proposed in this paper. The homogeneous coordinate transformation error model of the measured axis is established. Using the established error model, only the initial distance from the laser transmitter to the beam splitter and the initial distance from the beam splitter to the linear mirror are required to accurately calibrate the laser beam. The relationship between the fixed distance from the center of the light target to the quarter point on the edge of the light target as well as the movement distance of the measured axis are obtained. Eight deviations of the optical path affected by the laser transmitter, the beam splitter, and the linear mirror are solved. Calibrations based on the deviations can be achieved by adjusting the positions and orientations of the laser interferometer components, leading to a rapid and accurate calibration method for measuring the optical paths.