1 Introduction

Improving the accuracy of computer numerical control (CNC) machine tools has been a long-standing issue in the field of mechanical manufacturing and precision engineering. One of the effective methods of improving the accuracy is error compensation [1, 2]. Jung et al. reduced the geometric motion errors (GMEs) by 90%, 78%, and 92% by compensating for the X-, Y-, and Z-axes, respectively [3]. However, two key challenges exist in the error compensation of CNC machine tools: measuring all the GMEs accurately and establishing an accurate error compensation model [4, 5].

For a three-axis CNC machine tool, 21 GMEs need to be measured [6]. A five-axis CNC machine tool has 42 GMEs [7, 8], 21 of which come from its three linear axes. Figure 1 and Table 1 present a CNC machine tool with three linear axes and 21 GMEs, respectively. As the error compensation models for the three linear axes of machine tools have been well established [6, 9, 10], it is vital to be able to quickly and accurately measure all the 21 GMEs in the error compensation of CNC machine tools.

Fig. 1
figure 1

Three-axis CNC machine tool with six GMEs on the X-axis

Table 1 The 21 GMEs of a three-axis CNC machine tool

To measure the GMEs of linear axes of CNC machine tools, researchers have carried out long-term extensive studies using many different and available measurement methods. These methods can be classified into two categories: direct and indirect [11]. Indirect measurement methods require multi-axis motion of the machine under testing, including an artifact test [12, 13], an R test [14, 15], a ball bar test [16,17,18], and a tracking interferometer [19,20,21]. Conventionally, these methods have advantages such as high measurement efficiency and simple measurement configuration. However, they require a complex error-decoupling model to identify each individual error, making it difficult to measure errors in real time and perform online error compensation [11, 22]. Therefore, direct measurement methods have attracted more attention, as they have high measurement accuracy and can perform online error compensation. A typical direct measurement method is laser interferometry. However, efficiency is a critical issue for interferometry. It normally takes several hours or even days to measure all the errors successively for the three linear axes using a laser interferometer [7, 23, 24]. During the long measurement time, the measurement environment may change significantly. It is therefore difficult to ensure the stability and repeatability of the measurement results, and the overall accuracy is reduced. To improve the measurement efficiency, methods for simultaneously measuring six GMEs of a single linear axis of machine tools have been widely studied. Ni et al. proposed a method based on the combination of laser interferometry and laser collimation for simultaneously measuring multiple GMEs [25, 26]. Similar methods were introduced by Liu et al. [27, 28]. Wang et al. presented a method based on laser collimation for a miniaturized machine tool [29]. Gao et al. proposed a measurement system using a surface encoder [30, 31]. Fan et al. built a 5D/6D measurement system consisting of several sets of laser Doppler measuring instruments and semiconductor lasers [32, 33]. A method using a diffraction grating was proposed by Kim et al. [34] and Liu et al. [35]. A diffraction laser encoder was used by Lee et al. [36]. A commercial 5D/6D measurement instrument was developed by API [37]. Renishaw recently introduced a laser 6D simultaneous measurement system [38]. Additionally, multi-axis laser interferometer systems were introduced by JEANer Meßtechnik GmbH, and Zygo to realize multiple-GME simultaneous measurement of two or three linear axes [39, 40]. However, these direct measurement methods and instruments cannot measure the 21 total GMEs of three-axis CNC machine tools or the three linear axes of five-axis tools.

We proposed a series of direct methods for simultaneously measuring six GMEs of a single linear axis and developed the corresponding systems [41,42,43,44]. These methods have been proven to be effective and accurate. Based on these, in this paper, a special beam-steering unit and target unit were invented and developed, and the 21 GMEs of the three linear axes of CNC machine tools can be directly obtained with only one-step installation and three-step automatic measurements for the first time. The beam-steering unit was controlled to perform 90° rotation of the measuring beam with high accuracy, and the target unit can be sensitive to 18 GMEs of the three linear axes. The corresponding system was then developed. The system is simple and convenient to operate. Compared with a laser interferometer, which is a single-parameter measurement instrument, the proposed system can measure the 21 GMEs of a three-axis CNC machine tool with only one-step installation. Without accuracy loss, the measurement efficiency is approximately 45 times higher than that of a laser interferometer, thus providing a new method for quick and accurate measurements of the GMEs and error compensation of CNC machine tools. The rest of this paper is organized as follows: the proposed method and system are described in Sect. 2, the results of experiments performed to verify the performance of the proposed system are presented in Sect. 3, and the conclusions are given in Sect. 4.

2 Measurement system configuration and measurement principles

2.1 System configuration

Figure 2 schematically shows the system configuration for measuring the 21 GMEs. The system consists of a fiber-coupled laser unit, a sensor head, a target unit, and a beam-steering unit. The target unit, which was invented to be sensitive to 18 GMEs of the three linear axes, mainly comprises three mutually perpendicular six-error sensing components that are each sensitive to six GMEs of the X-, Y-, and Z-axes, respectively. Every six-error sensing component includes two cube corner retroreflectors, one of which is coated with a beam-splitting film on the half-aperture. The main component of the beam-steering unit is a penta-prism. By bringing the penta-prism into the optical path and rotating it by 90°, we can accurately make the laser beam parallel to the Y- and Z-axes, respectively.

Fig. 2
figure 2

System configuration for measuring 21 GEMs

Figure 3 shows the optical configuration for simultaneously measuring six GMEs of a single linear axis of a machine tool. The two cube corner retroreflectors (RR2 and RR3) and the beam-splitting film (BS4) comprise a six-error sensing component. The two orthogonal linearly polarized lights, which are produced by a dual-frequency laser source, are coupled into a polarization-maintaining fiber (PMF) through a gradient-index lens. The use of the PMF can provide two benefits. The first is to eliminate the influence of the heat generated by the laser source on the measurement accuracy, and the second is to reduce the volume of the sensor head.

Fig. 3
figure 3

Optical configuration for simultaneously measuring six GMEs of a single linear axis

The two orthogonal linearly polarized lights from the PMF are transmitted to the sensor head and collimated by a collimator, and then split into two parts by a beam splitter (BS1). The reflected beam arrives at the detector (D1) through the polarizer (P1) and is used as the reference signal for the position error measurement. The transmitted beam is split into two parts by a polarizing beam splitter (PBS1). The transmitted p-polarized beam from PBS1 is reflected twice by the penta-prism in the beam-steering unit and is controlled to be parallel with the Y-axis direction. It is then reflected by the cube corner retroreflector (RR2) in the six-error sensing component and used for measuring the position error and straightness. The beam transmitted through the beam splitter (BS3) is the measurement beam for the position error measurement. The beam, which is reflected by BS3 and M1, is received by the quadrant detector (QD1) and used to measure the straightness errors.

The s-polarized beam reflected by PBS1 is split into two parts by the beam splitter (BS2). The beam that transmits through BS2 is reflected by the cube corner retroreflector (RR1) and is used as the reference beam for measuring the position error. The measurement and reference beams pass through the polarizer (P2) and interfere; the interference signal is received by the detector (D2). The position error can be obtained by processing the signals of D1 and D2. The beam reflected by BS2 is used to measure the straightness, pitch, and yaw. The beam reflected by the beam-splitting film (BS4) in the six-error sensing component is focused on the position-sensitive detector (PSD) by the lens and used to measure the pitch and yaw. The beam that transmits through BS4 is reflected by the cube corner retroreflector (RR3) and detected by the quadrant detector (QD2) to measure the straightness errors. The roll can be obtained from the results of QD1 and QD2.

As shown in Fig. 3, the two half-wave plates (HWP1 and HWP2) are used to avoid polarization mixing in the PMF and PBS1, respectively. The half-wave plate (HWP3), the polarizing beam splitter (PBS2), and the quarter-wave plate (QWP) are used to change the polarization direction of the light reflected from BS4 to ensure that the beam is totally reflected by PBS2.

Theoretically, the six GMEs of the Y-axis can be obtained as follows [43]:

$$ {\displaystyle \begin{array}{l}{\delta}_{Y(Y)}=\frac{\lambda \varDelta \phi}{4 n\pi}-{L}^{\prime}\\ {}{\delta}_{X(Y)}=\frac{\varDelta {Y}_{QD I}}{2}\\ {}{\delta}_{Z(Y)}=\frac{\varDelta {Z}_{QD I}}{2}\\ {}\begin{array}{c}{\varepsilon}_{X(Y)}=\frac{\varDelta {Z}_{PSD}}{2f}\\ {}{\varepsilon}_{Z(Y)}=\frac{\varDelta {Y}_{PSD}}{2f}\\ {}{\varepsilon}_{Y(Y)}=\frac{\varDelta {Z}_{QD2}-\varDelta {Z}_{QD I}}{2h}\end{array}\end{array}} $$
(1)

Here, λ is the wavelength of the laser beam; Δϕ is the phase difference between the reference and measuring beams; L′ is the nominal displacement of the driven linear guide; ΔYQD1 and ΔZQD1 are the reading changes of QD1 in the Y- and Z-axis directions, respectively; ΔZQD2 is the reading change of QD2 in the Z-axis direction; ΔYPSD and ΔZPSD are the reading changes of PSD in the Y- and Z-axis directions, respectively; f is the focal length of the lens; and h is the distance between the two retroreflectors in the six-error sensing component.

2.2 Method for measuring 21 GMEs of three linear axes

Based on the method for simultaneously measuring six GMEs of a single linear axis of a machine tool, as shown in Fig. 3, the 21 GMEs of three linear axes of a machine tool can be measured by one-step installation and three-step measurements [45]. As shown in Fig. 4, the sensor head and the beam-steering unit are both fixed on the clamping workpiece part of the CNC machine tool, and the target unit is fixed on the clamping tool part. The X-, Y-, and Z-axes of the CNC machine tool are adjusted to the initial measuring position to meet the requirements of ISO230-1 or other relevant measurement standards. First, the penta-prism in the beam-steering unit is moved out of the optical path, as shown in Fig. 4a, and the measuring beam can be adjusted to be parallel to the X-axis. The measurement can be conducted point-by-point, and the six GMEs of all the measuring points on the X-axis are obtained. The penta-prism is then automatically moved into the optical path using an electro-control translation stage, as shown in Fig. 4b. A measuring beam parallel to the Y-axis is obtained, and the six GMEs of all the measuring points on the Y-axis can be obtained in a similar way. The electro-control turntable automatically rotates the penta-prism by 90°, as shown in Fig. 4c; thus, the measuring beam is parallel to the Z-axis, and the six GMEs of all the measuring points on the Z-axis are determined. Based on the straightness error of every measuring point on the X-, Y-, and Z-axes, three fitting axes are obtained. The angular error of the penta-prism can be measured in advance, and the squareness errors of each pair on the three axes can be calculated based on these fitting lines and the angular error of the penta-prism. In total, 21 GMEs of the three linear axes of machine tools can be measured.

Fig. 4
figure 4

Schematic diagram for measuring 21 GMEs of TXYZ. a six GMEs of X-axis measurement, b six GMEs of Y-axis measurement, and c six GMEs of Z-axis measurement

There are four configurations for the three linear axes of machine tools: TXYZ, XTYZ, XYTZ, and XYZT. The machine tool shown in Fig. 4 is a TXYZ type. In this type of machine tool, there is only one typical measurement mode for measuring the three linear axes, which is that the target unit moves along the linear axis under testing, and the sensor head and beam-steering unit are kept stationary. To measure the 21 GMEs of the other three configurations, there are two other measurement modes. In the first, the sensor head moves along the linear axis under testing, and the target unit and beam-steering unit are kept stationary. In the second, the sensor head and beam-steering unit move along the linear axis under testing, and the target unit is kept stationary. The proposed method can be applied to the measurement for all four configurations by establishing different measurement models. Because of the limited length of this paper, no detailed description is given.

As described above, the proposed measurement method is capable of directly measuring the 21 total GMEs of three linear axes of CNC machine tools with only one-step installation. Compared with the existing direct measurement methods and instruments, especially with a typical laser interferometer, the proposed measurement method has three obvious advantages. The first is that the proposed measurement method can measure all 21 GMEs of the three linear axes, whereas a laser interferometer can only measure 18 as it cannot measure the roll. The second is that the measuring efficiency of the proposed measurement method is very high. The 21 GMEs of the three linear axes can be quickly measured by one-step installation and three-step automatic measurements. For a laser interferometer, which is a single-parameter measurement instrument, different optical components need to be installed for each error measurement, and the measurement system needs to be re-adjusted, making the measurement process very time-consuming. The third is that the overall measurement accuracy of the proposed measurement method is high. It can obtain the 21 GMEs of the three linear axes within 10 min, and any change in the measurement environment has little effect on the measurement accuracy, ensuring a higher overall measurement accuracy. For a laser interferometer, although the measurement accuracy is very high, the measurement period is very long, and thus changes in the measurement environment will reduce the overall measurement accuracy. In addition, the measurement error introduced by the multiple installation steps and adjustments will also reduce the overall measurement accuracy of the laser interferometer.

3 Experimental results and analysis

A corresponding measurement system was developed. The detectors consist of two QDs (S4349, Hamamatsu) and a PSD (DL16–7-PCBA3, First Sensor). A commercial heterodyne interferometer (LH2000, Leice Technology, accuracy 0.4 ppm), which can measure at a speed up to 2 m/s, was integrated into the system, and the two orthogonal linearly polarized lasers generated by the LH2000 were coupled into a PMF (PMJ-633, OZ Optics) to provide the laser source of the measurement system. Thus, the influence of the heat generated by the laser source on the measurement accuracy can be eliminated. In addition, the volume of the sensor head can be reduced.

A target unit, which can be sensitive to 18 GMEs of the three linear axes, was invented and designed. As shown in Fig. 5, to improve the manufacturing accuracy of the target unit, six cube corner retroreflectors (PS975, Thorlabs, accuracy 3 arcsec), three of which were coated with a beam-splitting film on the half-aperture, were bonded to the three surfaces of a metal base (aluminum). The base was machined with high precision and the squareness error of the two adjacent bonding surfaces is less than 10 arcsec. The developed target unit is small, lightweight, and has no electronic connections, which are convenient for in situ measurements.

Fig. 5
figure 5

Target unit

A translation stage (ANT130L-110, Aerotech, accuracy 300 nm), a turntable (ANT95R-360, Aerotech, accuracy 3 arcsec), and a penta-prism formed the beam-steering unit, wherein the translation stage and turntable were employed to drive the penta-prism in high-precision linear and rotary motions, respectively. As it is the key component in the beam steering unit, the machining accuracy of the penta-prism is critical to the measurement accuracy of the proposed measurement system, especially for the squareness error measurement. Thus, the penta-prism should have high precision. In addition, the maximum distance between the four measuring beams shown in Fig. 3 is designed to be 42 mm and the diameter of the measuring beam is 5 mm. Thus, the clear aperture of the penta-prism should be greater than 47 mm. In this case, the conventional penta-prism is generally heavy and low-accuracy. Thus, to solve these problems, a hollow penta-prism, utilized to rotate the measuring beam by 90°, was designed. As shown in Fig. 6, two reflecting mirrors, coated with reflecting film on the reflecting surface, were bonded to an optical base (N-BK7), and the angle between the two mirrors was precisely controlled at 45°. The developed hollow penta-prism has a high precision of 10 arcsec with a clear aperture of 55 mm, and a light weight of 1.5 kg, which allows it to be fixed on the high-precision turntable ANT95R-360 with a low load.

Fig. 6
figure 6

Hollow penta-prism

A series of experiments were carried out to verify the performance of the proposed system.

3.1 Stability experiments

In the developed system, the QD and PSD have good linearity in the ranges of ± 200 and ± 600 μm, respectively. Therefore, the measurement range of the straightness errors is ± 100 μm. As the focal length of the lens is 300 mm, the measurement range of the pitch and yaw is ± 200 arcsec according to Eq. (1). The distance between the two retroreflectors in the six-error sensing component is 30 mm; thus, the measurement range of the roll is approximately ± 680 arcsec according to Eq. (1). For the position error measurement, the measurement range mainly depends on the collimation characteristic of the laser beam and is not less than 2.5 m.

The stability experiment was conducted in 30 min under laboratory conditions, and the variation range of the air temperature was about ± 0.2 °C. The target unit was 200 mm away from the sensor head. The position error was obtained from the interferometer. The detector reading was received via Bluetooth, and the other five GMEs could then be obtained according to Eq. (1). Figure 7 shows the stability results. The standard deviations (SDs) of the position error, horizontal straightness, and vertical straightness were 6.3, 13.2, and 60.3 nm, respectively, and the SDs of the yaw, pitch, and roll were 0.09, 0.12, and 0.37 arcsec, respectively. These results show that the proposed system has good stability.

Fig. 7
figure 7

Results of stability experiments for six GME measurements

3.2 Repeatability and comparison experiments

As shown in Fig. 8a, the 21 GMEs of a three-axis CNC machine tool with XYTZ configuration were measured. Owing to the XYTZ configuration of the machine tool, the motion modes of the three linear axes with respect to the spindle were determined. To measure the 21 GMEs of the three linear axes using the proposed measurement system with one-step installation, the sensor head and beam-steering unit were both fixed on the clamping workpiece part of the machine tool, and the target unit was fixed on the clamping tool part. Thus, there are three measurement modes as mentioned in Sect. 2.2. For the measurement of the six GMEs on the X-axis, the sensor head moves along with the X-axis while the target unit is stationary, as shown in Fig. 8b. For the measurement on the Y-axis, as shown in Fig. 8c, the sensor head and beam-steering unit move along with the Y-axis and the target unit is stationary. For the measurement on the Z-axis, as shown in Fig. 8d, the target unit moves along with the Z-axis, and the sensor head and beam-steering unit are stationary. A commercial laser interferometer (XL80, Renishaw, linear resolution 1 nm, angular resolution 0.01 arcsec) was used for comparison. It is important to note that the roll cannot be measured by the XL80 interferometer, and an electronic level (WLII, Qianshao, accuracy 0.2 arcsec) was used for roll comparison; however, it cannot be used for the Z-axis measurement.

Fig. 8
figure 8

Images of the machine tool and experimental setup. a XYTZ machine tool. b Measurement of six GMEs of the X-axis. c Measurement of six GMEs of the Y-axis. d Measurement of six GMEs of the Z-axis

Five repeated measurements were conducted using the proposed system, and the commercial instruments were then used to measure all the errors successively, except for the roll about the Z-axis and the two squareness errors associated with the Y-axis. Figure 9 shows the results of the comparison experiments, in which the value of each measurement position is the average of five measurements. Table 2 summarizes the results of the repeatability and comparison experiments. Additionally, the measurement times required for the proposed system and commercial instruments were recorded. In the following section, a detailed discussion about the measurement time is presented.

Fig. 9
figure 9figure 9

Results of comparison experiments. Comparison results of a position error, b horizontal straightness, c vertical straightness, d yaw, e pitch, and f roll of X-axis; comparison results of g position error, h horizontal straightness, i vertical straightness, j yaw, k pitch, and l roll of Y-axis; comparison results of m position error, n horizontal straightness, o vertical straightness, p yaw, and q pitch of Z-axis; comparison result of r squareness error between X- and Z-axes

Table 2 Repeatability error (RE) and maximum comparison deviation (MCD) of the proposed system (PS) and commercial instruments (CIs)

The proposed system and commercial instruments exhibit similar repeatability errors except for the roll, as presented in Table 2. The repeatability error is half the maximum difference between the maximum and minimum of five experiments at each measuring point. Taking the measurement of yaw on the X-, Y-, and Z-axes as examples, the repeatability errors of the proposed system are ± 0.20, ± 0.30, and ± 0.31 arcsec, respectively, and those of the Renishaw interferometer are ± 0.22, ± 0.15, and ± 0.10 arcsec, respectively. The primary reason for the higher repeatability error in the roll measurement of the proposed system is the influence of the vertical straightness measurement. The measurement repeatability of the vertical straightness is ± 0.1 μm, and the repeatability of the roll is approximated to ± 0.67 arcsec in theory, according to Eq. (1).

As shown in Fig. 7 and Table 2, the results of the proposed system are consistent with those obtained using the commercial instruments. For example, for the measurement of vertical straightness on the X-, Y-, and Z-axes, the values of the maximum comparison deviation, which is the maximum deviation between the proposed system and the commercial instrument, are 0.39, 0.16, and 0.65 μm, respectively. The main reason for the comparison deviation is that the error-sensitive units of the two systems cannot be placed in the same position, thus failing to measure the same point on the linear guide. In addition, the manufacturing and installation errors of the optical elements and the error crosstalk also contribute to the comparison deviation; they are very complex and cannot be explained in detail in this paper. We will analyze these errors and establish a compensation model in the future.

Table 2 presents a summary of the performance of the proposed system in measuring the 21 GMEs of the three linear axes of machine tools. For the straightness measurement, the repeatability error and residual are within ± 0.5 and ± 0.7 μm, respectively. For the measurement of yaw and pitch, the repeatability error and residual are within ± 0.5 and ± 0.5 arcsec, respectively. For the measurement of roll, the repeatability error and residual are within ± 1.5 and ± 1.0 arcsec, respectively. For the measurement of squareness error, the repeatability error and residual are within ± 0.6 and ± 1.6 arcsec, respectively. These results demonstrate the high reliability and accuracy of the proposed system.

3.3 Measurement efficiency comparison

As shown in Fig. 8, the proposed measurement system can be installed on CNC machine tools in one step. By adjusting the sensor head, beam-steering unit, and target unit, the beams along the X-, Y-, and Z-axes are all in the measuring range of the detectors. The installation and adjustment time is approximately 30 min. The measuring distances are 400, 140, and 175 mm for the X-, Y-, and Z-axes of the CNC machine tool, respectively, and at least eight positions were measured along each linear axis. The feed rate of the machine tool is 600 mm/min. The measuring time for the three axes is approximately 10 min, which can be reduced to 5 min by optimizing the measurement procedure in the future. In total, the installation, adjustment and measuring time is approximately 40 min using the proposed system.

The same machine tool was measured using a Renishaw laser interferometer. In this case, different components need to be installed for each error measurement, and the measurement system needs to be re-adjusted. In addition, as the roll cannot be measured by the interferometer, an electronic level is used. Table 3 lists the total time required for the three-axis measurement. The installation time refers to the time taken to install the different measurement components for each error, the alignment time refers to the time required to adjust the light path to eliminate slanting, and the measuring time is the same as that of the proposed measurement system because the measurement process is controlled by the CNC machine tool.

Table 3 Installation time (IT), alignment time (AT), and measuring time (MT) of a three-axis machine tool using a Renishaw interferometer and electric level

The total measurement times for the six GMEs of the X- and Y-axes were 95 and 92 min, respectively. To measure the Z-axis, the installation and adjustment were relatively complicated and difficult, particularly for the straightness measurement, for which an adjustable turning mirror and large retroreflector are required. The time taken to measure the Z-axis was approximately 124 min. The roll about the Z-axis cannot be measured by the electric level. To measure the squareness error between the X- and Z-axes, up to six optical components are required to be installed and adjusted, and the number of light paths is up to 12. The installation and adjustment are very complicated and difficult. The time required for measuring the squareness error between the X- and Z-axes was approximately 54 min, and it took approximately 162 min to measure the three squareness errors.

The total time required for measuring the 20 GMEs of the same CNC machine tool with three linear axes was approximately 473 min using the laser interferometer and electric level. It is noteworthy that only a one-step installation is required for the proposed system, whereas 20 steps are involved in installing the laser interferometer and electric level. The measurement error due to the multiple installation steps and subsequent adjustments reduces the measurement accuracy. To compare the measurement efficiency of the proposed system with that of the laser interferometer, it is better to exclude the first installation and adjustment time for both the Renishaw and proposed system. Thus, the measurement efficiency of the developed system is approximately 45 times higher than that of the laser interferometer.

In addition, the measurement period of the laser interferometer is long, and the measurement environment changes during this period, which reduces the overall accuracy. In contrast, the proposed high-efficiency measurement method not only saves a significant amount of operation time of the machine tool for measurement but also ensures a higher overall measurement accuracy.

4 Conclusion

In this paper, a new method was proposed to efficiently and directly measure the 21 GMEs of a three-axis CNC machine tool, or three linear axes of a five-axis CNC machine tool, for the first time. A corresponding measurement system was developed, wherein a beam-steering unit was invented and designed to perform 90° rotation of the measuring beam with high accuracy, and a target unit was invented and developed to be sensitive to 18 GMEs of the three linear axes. The 21 GMEs of the three linear axes can be measured using the proposed system with only one-step installation and three-step automatic measurements. The performance of the proposed system was verified by conducting a series of stability, repeatability, and comparison experiments. Compared with a conventional laser interferometer, which is a single-parameter measurement instrument, the developed measurement system has three obvious advantages. The first is that the developed system can measure the total 21 GMEs of the three linear axes. The second is that the measuring efficiency of the developed system is very high, and is increased by approximately 45 times compared with a conventional laser interferometer. The third is that the overall measurement accuracy of the developed system is high. As it took just 10 min to complete the measurement of the three linear axes, a change in the measurement environment has little effect on the measurement accuracy. We believe the proposed measurement method provides a new method for quick and accurate measurements of the GMEs and error compensation of CNC machine tools. In the future, we will focus on system optimization, accuracy improvement, and error compensation of machine tools.