1 Introduction

The demand for precision measurements is increasing rapidly with advances in science and technology. As machining processes become more sophisticated, more efficient multiaxis machine tools with greater accuracy are required [1, 2]. The linear stage is a key and indispensable component of multiaxis machine tools, regardless of their function or configuration. Because the linear stage is used primarily to move the workpiece or tool according to the machine configuration, its accuracy directly affects the final product [3,4,5,6,7].

As a result of deviations in the manufacturing and assembly of the components of linear stages, positioning (δy) and five other geometric errors (horizontal straightness δx, vertical straightness δz, pitch εx, roll εy, and yaw εz) are created [8,9,10,11,12]. Geometric errors are crucial causes of inaccurate positioning in multiaxis machining, and numerous studies have investigated the measurement of and compensation for such geometric errors [13]. Among these geometric errors, positioning error has a large influence on the precision and defect-free rate of manufacturing. To improve the accuracy of multiaxis machine tools, a method of measuring six-degree-of-freedom (6DOF) geometric errors is necessary.

Interferometry is an accurate method of noncontact measurement for multiaxis machine tools, and laser interferometry has been widely used to measure the geometric errors of linear stages because of its high resolution and long-range measurement capacity. However, laser interferometry can be used to measure only a single geometric error at a time, limiting its measurement efficiency and accuracy. This complex procedure requires individual procedures and optical accessories to resolve each geometric error and may require several hours, or even days, to measure the geometric errors of a multiaxis machine tool. Measurement interrupts the production process [14] and is thus costly [15, 16]. In addition, the crosstalk among error components creates additional complexity [17] because it can considerably influence measurement accuracy [18,19,20].

To enhance the efficiency and accuracy of measurement, multi-DOF (MDOF) errors must be clarified simultaneously. Various methods for measuring MDOF geometric errors have been proposed. Based on different metrologies, such measurement systems can be classified into those utilizing only interferometry [21, 22] or those utilizing geometrical optics combined with interferometry [23,24,25,26,27,28,29]. Furutani et al. presented a 6DOF geometric error measurement system using a Michelson interferometer for linear stages [21]. However, if all errors are measured through interferometry, calculation becomes more complex. Therefore, scholars such as Feng et al. have proposed measuring 6DOF geometric error through simultaneous interferometry and geometric optics [26].

Although the geometric optic measurement method has measurement range and resolution limitations, it can provide simpler and cheaper measurements. Therefore, an increasing number of scholars are focusing on this method. For example, Zheng et al. proposed a system for measuring 21 geometric motion errors for three linear stages [27], and Huang et al. proposed an embedded sensor system for measuring five-DOF geometric errors [28]. Liu et al. presented a system for measuring 6DOF errors for translation stages; the system involves adjusting the direction of the laser beam to ensure that the spot is always on the sensing area of the position-sensitive detector (PSD) of a long linear stage [29]. However, the accuracy of measurement systems based on geometrical optics can be influenced by systematic errors, such as those relating to the installation and manufacturing of the stage components [29, 30]. Accordingly, to improve measurement accuracy, we developed a long-range 6DOF error measurement system based on geometrical optics and method of compensating for systematic errors.

2 System configuration

The proposed measurement system consists of a moving module and two fixed modules, as presented in Fig. 1. Fixed modules 1 and 2 are installed outside the linear stage, and the moving module is installed on the stage. Fixed module 1 comprises a red laser source (632 nm), beam splitter (BS1), polarizing beam splitter (PBS), mirror, quarter-wave plate, and two PSDs (PSD1 and PSD3). Fixed module 2 consists of a PSD (PSD2) and an additional linear stage that can drag PSD2 to track the light spot so that the laser is always projected onto PSD2. The moving module includes a beam splitter (BS2), corner cube, and mirror (mirror1). When the measured linear stage moves, the laser beam is adjusted on the basis of the 6DOF geometric errors and geometric optics, and the function of the moving module is to reflect the beam adjusted by the 6DOF geometric errors onto the PSDs.

Fig. 1
figure 1

Proposed measurement system

3 Measurement principle

The proposed measurement system includes three light paths, P1 (Fig. 2), P2, and P3. The laser transmits the PBS because it is P polarized, and the transmitted beam then passes through the BS2 on the moving module after the quarter-wave plate and becomes S polarized light, which is subsequently reflected from the PBS to PSD1. The system is sensitive only to pitch and yaw errors because of the layout of the geometrical optics.

Fig. 2
figure 2

Light path P1 with pitch or yaw error

The light path P2 is the key to the long-range measurement of positioning error (Fig. 3). P2 uses a simple triangulation method based on geometric optics [31]. The laser is first reflected by mirror1 and received by PSD2, which is installed on the additional linear stage, which uses PSD2 to track the laser spot.

Fig. 3
figure 3

Measurement principle of long-range positioning error

As illustrated in Fig. 3a and b, when the measured linear stage moves forward a distance D, the light path changes from the light subpath S1 to S2, causing the laser spot to move from the start to the end position; PSD2 then captures the position data of each start and end point to calculate the positioning error through subtraction. In S2, the laser beam is near the left-hand limit of PSD2; therefore, the additional linear stage (under PSD2) is moved by a displacement d, moving the relative position of the laser spot to the right-hand limit of PSD2 (Fig. 3c), which is then ready for the next displacement. Thus, when the additional linear stage moves forward d, the PSD2 sensing area is extended to achieve long-range measurement. However, the additional linear stage featuring PSD2 also possesses 6DOF geometric errors, which are discussed in Sect. 5.

In the light path P3 (Fig. 4), the laser beam passes through the BS and the corner cube. Because of the corner cube’s unique structure, it can double the ability of the system to detect the horizontal and vertical straightness errors.

Fig. 4
figure 4

Light path P3 with horizontal straightness error or vertical straightness error

4 Optical simulation and mathematical modeling

4.1 Optical simulation

Numerical simulations in Zemax optical simulation software were used to confirm the feasibility of the proposed measurement system (Fig. 5). Figure 6 provides the PSD value changes resulting from the positioning, horizontal straightness, vertical straightness, pitch, yaw, and roll error, demonstrating that every type of error could be captured by the PSDs; thus, all the errors can be calculated using further proposed mathematical models. In the optical simulation, the moving module employs its center as the center of rotation; thus, the 6DOF geometric errors occur at this point.

Fig. 5
figure 5

Optical model of the proposed measurement system

Fig. 6
figure 6

Variation of the reading of three PSDs with (a) positioning, (b) horizontal straightness, (c) vertical straightness, (d) pitch, (e) yaw, and (f) roll errors, respectively

4.2 Derivation of the mathematical model

A mathematical model of the proposed measurement system was constructed using a homogenous transformation matrix (HTM) and a skew-ray tracing method to calculate the data of the three PSDs [32]. The HTM is used to define the boundaries of each optical component relative to the frame of reference to determine the relationships between the 6DOF geometric errors and the position of the light spot on the PSDs. Using flat boundary surface algorithms in the skew-ray tracing method, we constructed the transformation matrix RAi, which represents the transfer matrix of the coordinate system of each optical component i from the reference coordinate system R:

$${{}^{R}A}_{i}=\left[\begin{array}{cccc}{I}_{ix}& {J}_{ix}& {K}_{ix}& {t}_{ix}\\ {I}_{iy}& {J}_{iy}& {K}_{iy}& {t}_{iy}\\ {I}_{iz}& {J}_{iz}& {K}_{iz}& {t}_{iz}\\ 0& 0& 0& 1\end{array}\right]$$
(1)

The incident points on the boundary of the optical component must be calculated sequentially (Fig. 7). For every light path, the laser beam must first be defined as a vector after transmission to next optical component (Table 1), and the direction of the beam changes according to the geometrical optics. The new direction and incident point are then used to determine the following incident point Pi and direction \({\mathrm{l}}_{i}\):

Fig. 7
figure 7

Schematic diagram of skew-ray tracing

Table 1 Coordinate transformation matrix parameters
$${}^{g}{\overline{R} }_{i}={\left[\begin{array}{cc}{}^{g}{\overline{P} }_{i}& {}^{g}{\overline{\mathrm{l}} }_{i}\end{array}\right]}^{T}={\left[\begin{array}{cccccc}{P}_{ix}& {P}_{iy}& {P}_{iz}& {\mathrm{l}}_{ix}& {\mathrm{l}}_{iy}& {\mathrm{l}}_{iz}\end{array}\right]}^{T}$$
(2)

This method is used to generate the coordinate information for all the optical components in Fig. 1 and a mathematical model of each optical path, including for both the linear stage to be measured and the additional linear stage. Therefore, the displacements D and d are also calculated in the proposed mathematical model.

Overall, the 6DOF geometric errors created by the measured linear stage change the light paths slightly, and the PSDs detect such changes. Such changes can be input to the proposed mathematical model, the results of which are presented as six linear and independent equations:

$${X}_{PSD1}={F}_{X1}\left({\delta }_{x},{\delta }_{y},{\delta }_{z},{\varepsilon }_{x},{\varepsilon }_{y},{\varepsilon }_{z}\right),$$
(3)
$${Y}_{PSD1}={F}_{Y1}\left({\delta }_{x},{\delta }_{y},{\delta }_{z},{\varepsilon }_{x},{\varepsilon }_{y},{\varepsilon }_{z}\right),$$
(4)
$${X}_{PSD2}={F}_{X2}\left({\delta }_{x},{\delta }_{y},{\delta }_{z},{\varepsilon }_{x},{\varepsilon }_{y},{\varepsilon }_{z}\right),$$
(5)
$${Y}_{PSD2}={F}_{Y2}\left({\delta }_{x},{\delta }_{y},{\delta }_{z},{\varepsilon }_{x},{\varepsilon }_{y},{\varepsilon }_{z}\right),$$
(6)
$${X}_{PSD3}={F}_{X3}\left({\delta }_{x},{\delta }_{y},{\delta }_{z},{\varepsilon }_{x},{\varepsilon }_{y},{\varepsilon }_{z}\right),$$
(7)
$${Y}_{PSD3}={F}_{Y3}\left({\delta }_{x},{\delta }_{y},{\delta }_{z},{\varepsilon }_{x},{\varepsilon }_{y},{\varepsilon }_{z}\right).$$
(8)

After simplification, Eqs. (3)–(8) can be rewritten as

$${\mathrm{Error}}_{\mathrm{N}\times 6}={\mathrm{PSD}}_{\mathrm{N}\times 6}\times {\left[{\left({\beta }_{6\times 6}\right)}^{-1}\right]}^{\mathrm{T}}.$$
(9)

Equations (3)-(9) describe the relationships between the positions of the light spots on the PSDs and each 6DOF geometric errors, where N represents the number of experiments; XPSD1, YPSD1, XPSD2, YPSD2, XPSD3, and YPSD3 are the coordinate values for PSD1, PSD2, and PSD3 in the X- and Y-directions, respectively; and β6×6 denotes the decoupling matrix of the proposed measurement system. From Eq. (9), the horizontal straightness error in the X-direction (δx), positioning error in the Y-direction (δy), vertical straightness error in the Z-direction (δz), pitch error about the X-axis (ɛx), roll error about the Y-axis (ɛy), and yaw error (ɛz) can be determined using the decoupling matrix β6×6. Because of the linear relationship between the PSD readings and 6DOF geometric errors, the function between them can be easily obtained through curve fitting (Fig. 8). After each function relating the PSDs and 6DOF geometric errors is obtained, the superposition principle can be used to obtain a first degree equation (Eqs. (10)–(15)), and the coefficient of β6×6 can be determined:

Fig. 8
figure 8

Curve fitting of PSD1Y and pitch error

$${\mathrm{X}}_{\mathrm{PSD}1}=\left(\mathrm{A}1\right)*\varepsilon \mathrm{x}+\left(\mathrm{A}2\right)*\varepsilon \mathrm{y}+\left(\mathrm{A}3\right)*\varepsilon \mathrm{z}+\left(\mathrm{A}4\right)*\delta \mathrm{x}+\left(\mathrm{A}5\right)*\delta \mathrm{y}+\left(\mathrm{A}6\right)*\delta \mathrm{z},$$
(10)
$${\mathrm{Y}}_{\mathrm{PSD}1}=\left(\mathrm{B}1\right)*\varepsilon \mathrm{x}+\left(\mathrm{B}2\right)*\varepsilon \mathrm{y}+\left(\mathrm{B}3\right)*\varepsilon \mathrm{z}+\left(\mathrm{B}4\right)*\delta \mathrm{x}+\left(\mathrm{B}5\right)*\delta \mathrm{y}+\left(\mathrm{B}6\right)*\delta \mathrm{z},$$
(11)
$${\mathrm{X}}_{\mathrm{PSD}2}=\left(\mathrm{C}1\right)*\varepsilon \mathrm{x}+\left(\mathrm{C}2\right)*\varepsilon \mathrm{y}+\left(\mathrm{C}3\right)*\varepsilon \mathrm{z}+\left(\mathrm{C}4\right)*\delta \mathrm{x}+\left(\mathrm{C}5\right)*\delta \mathrm{y}+\left(\mathrm{C}6\right)*\delta \mathrm{z},$$
(12)
$${\mathrm{Y}}_{\mathrm{PSD}2}=\left(\mathrm{D}1\right)*\varepsilon \mathrm{x}+\left(\mathrm{D}2\right)*\varepsilon \mathrm{y}+\left(\mathrm{D}3\right)*\varepsilon \mathrm{z}+\left(\mathrm{D}4\right)*\delta \mathrm{x}+\left(\mathrm{D}5\right)*\delta \mathrm{y}+\left(\mathrm{D}6\right)*\delta \mathrm{z},$$
(13)
$${\mathrm{X}}_{\mathrm{PSD}3}=\left(\mathrm{E}1\right)*\varepsilon \mathrm{x}+\left(\mathrm{E}2\right)*\varepsilon \mathrm{y}+\left(\mathrm{E}3\right)*\varepsilon \mathrm{z}+\left(\mathrm{E}4\right)*\delta \mathrm{x}+\left(\mathrm{E}5\right)*\delta \mathrm{y}+\left(\mathrm{E}6\right)*\delta \mathrm{z},$$
(14)
$${\mathrm{Y}}_{\mathrm{PSD}3}=\left(\mathrm{F}1\right)*\varepsilon \mathrm{x}+\left(\mathrm{F}2\right)*\varepsilon \mathrm{y}+\left(\mathrm{F}3\right)*\varepsilon \mathrm{z}+\left(\mathrm{F}4\right)*\delta \mathrm{x}+\left(\mathrm{F}5\right)*\delta \mathrm{y}+\left(\mathrm{F}6\right)*\delta \mathrm{z}.$$
(15)

5 Error analysis of additional linear stage

As mentioned previously, the 6DOF geometric errors of the additional linear stage may influence the readings of PSD2 (Fig. 9). The position, horizontal straightness, vertical straightness, and roll errors do not affect the PSD2 readings; although the pitch and yaw errors may affect the accuracy of the system, they are sufficiently small to be ignored because the proposed measurement approach involves subtracting the initial position of the additional stage from its end position, resulting in minimal geometric errors for a displacement d of 4 mm. Given that, their influence to the measurement accuracy of the proposed measurement system is ignored.

Fig. 9
figure 9

Influence of (a) positioning errors, (b) horizontal straightness, (c) vertical straightness, (d) pitch, (e) yaw, and (f) roll in extra linear stage, respectively, on PSD2

6 Compensating for systematic error

The proposed measurement system may incur additional uncertainties, such as installation and manufacturing errors. The optical simulation results may therefore differ from those of actual situations. A precise Newport XP50-MECA (six-axis Stewart platform, Fig. 10) was used to generate accurate 6DOF motion to simulate the 6DOF geometric errors of a linear stage. Although the Newport XP50-MECA includes 6DOF error in its movement, its specifications indicate that its bidirectional repeatability in the X-, Y-, and Z-directions of ± 0.60, ± 0.60, ± 0.30 µm, respectively, and bidirectional repeatability (Θ) about the x-, y-, and z-axes of ± 0.30, ± 0.30, and ± 0.60 mdeg, respectively, which are considerably smaller than the geometric errors of a machine tool’s linear stage [33]. Consequently, the Newport XP50-MECA is an ideal mobile platform. The ideal errors of the Stewart platform are then used to decouple the matrix β6×6 using the least-squares method of ErrorN×6 and PSDN×6. We tested the accuracy of the decoupling matrix β6×6 by decoupling the 6DOF geometric errors of the Stewart platform. Because the Stewart platform is a precise mobile platform, when it is moving, the measured 6DOF geometric errors are approximately zero. The simulated and the experimental decoupling matrices are compared in Fig. 11. The results indicate that the experimental decoupling matrix is more accurate than the simulated matrix because the 6DOF geometric errors of the Stewart platform are closer to zero.

Fig. 10
figure 10

6DOF motion of Newport HXP50-MECA

Fig. 11
figure 11

The comparison of two decouple matrices, (a) positioning, (b) horizontal straightness, (c) vertical straightness, (d) pitch, (e) yaw, and (f) roll errors, respectively

7 Experimental verification

The feasibility of the proposed measurement system was demonstrated through testing of a laboratory-built prototype (Fig. 12), which was used to simultaneously measure the 6DOF geometric errors of a milling machine’s linear stage (LC-1 1/2, First, Taichung, Taiwan; Fig. 13). A Renishaw XL-80 interferometer and a DL-S3 electronic level (for measuring the roll error) were used to measure the 6DOF geometric errors of the linear stage and test the accuracy of the proposed measurement system.

Fig. 12
figure 12

Photograph of laboratory-built prototype

Fig. 13
figure 13

Proposed prototype installed in milling machine

Figure 14 presents a series of measurement results obtained by the proposed measurement system or Renishaw XL-80 interferometer and electronic level, showing five repeated measurements (200 mm) at each position. For the measured linear stage, the repeatability for the positioning, X-straightness, Z-straightness, pitch, yaw, and roll errors were 52.5 μm, 44 μm, 32.3 μm, 18.5 arcsec, 5.86 arcsec, and 3.91 arcsec, respectively.

Fig. 14
figure 14

Measurement results for variation of geometric error with position (a) positioning, (b) horizontal straightness, (c) vertical straightness, (d) pitch, (e) yaw, and (f) roll error, respectively

The proposed measurement system has poorer accuracy than the commercial instruments, but their trends are similar because the measurement accuracy of the proposed measurement system is influenced not only by laser beam fluctuations but also by PSD sensitivity, misalignments, aberrations, and Abbe errors [14, 34]. For instance, laser beam instability and stray light in the environment could influence the measurement results during experiments. The timing fluctuations of the laser source introduce noise, further degrading the measurement accuracy. However, methods can be used to measure and compensate for such fluctuations in beam geometry [23], and a color filter can be used to control the light projecting onto the PSDs and thereby reduce the influence of stray light from the environment. Overcoming these limitations thus can improve the accuracy of the proposed measurement system in the future.

8 Conclusion

The proposed measurement system is designed for long-range measurement of the 6DOF geometric errors of a linear stage through geometrical optics; the system successfully overcomes the challenges of using geometrical optics for such measurement. The system is inexpensive and has a simple structure. In addition, a method of compensating for systematic errors is proposed. Compared with a Renishaw XL-80 interferometer, the proposed measurement system is less expensive and less time-consuming to use; moreover, it can measure 6DOF geometric errors simultaneously. The performance of the proposed measurement system was demonstrated with a laboratory-built prototype, and the repeatability for positioning, X-direction straightness, Z-direction straightness, pitch, yaw, and roll errors were 52.5 μm, 44 μm, 32.3 μm, 18.5 arcsec, 5.86 arcsec, and 3.91 arcsec, respectively.