Abstract

This study developed a level detection equipment which is used in computer numerical control (CNC) machine tool to determine the impact of leveling accuracy on rectilinear motion accuracy. When the CNC precision machine tool has accuracy deterioration under external load or internal stress, mainly caused error is leveling error, this research and development equipment can immediate to analyze and measurement. The allowable error of leveling accuracy can be obtained after experimental validation. The kinematic error relatively increases with leveling error. When the leveling accuracy is within the allowable error, the kinematic error relatively decreases. The main kinematic error items measured in this study include EXX, EBY, EAX, and EYY. The level detection equipment is developed in this study, and the fuzzy regression analysis is used for modeling. The model that has high accuracy in the test of the -axis is and , and -axis is and . In terms of filtering, Kalman filtering is used for signal processing, the measured values and -axis and -axis after filtering are improved by 94.1% and 86.2%, respectively, the repeatability of this system is about A grade capability of precision (Cp), resolution is ±0.0001°, and the stability is at least B grade capability of accuracy (Ca). This equipment has the advantages of low cost, high precision, and 2-axis measurement. This machine tool which has the straightness increases with and axes’ leveling accuracy errors, when the / leveling accuracy is within ±0.01 mm/m, and there is the best straightness and conforms to the ISO230 standard (Lee et al., 2020).

1. Introduction

The geometric error measurement is the most important accuracy detection part of the machine tool manufacturing process. In order to increase the machine tool accuracy, the geometric errors of various axes must be reduced, and the error range must be in the international tolerance range. The precision instrument is used for inspection in the assembly of machine tool and adjusting or compensating the errors in the machining process. The geometric error detection methods for machine tools include the direct measurement method and indirect measurement method. Nowadays, on the industry application, there is not used of electrolytic tilt sensor in the leveling accuracy measurement and monitoring system of CNC machine tools. This research which used electrolytic tilt sensor has been high accuracy, resolution, and repeatability that used fuzzy regression analysis modeling for model building and Kalman filtering for signal processing, and it can be connected with CNC- and PC-based controller.

Relative measurement instrument is used for detecting single geometric error in the direct measurement method. For example, the level is often used for horizontal calibration, because the level measurement is characterized by simple operation, convenient use, and low price, and the relative accuracy is only 0.02 mm/m. The value collection and compilation are difficult, and the leveling linearity measurement is also difficult; thus, it is often used for short stroke rail linearity measurement. As the indirect measurement method produces cumulative error, the autocollimators are often used for measuring linearity, parallelism, and squareness, the measurement accuracy is 0.005 mm/m, higher than level measurement, but the larger the measurement range is, the larger is the deviation, and it is mainly used for moderate length rail linearity measurement. The laser interferometer is used for localization accuracy measurement, the measurement distance is long, the measurement speed is fast, the measurement accuracy is as high as 0.0004 mm/m, and the data can be collected continuously for rapid data compilation. It has very high interference resistance and very high price. It is mainly used in the CNC machine tools required of high accuracy. The development and design of current detection devices are described below. The objectives of this study include (1) evaluating the accuracy and effectiveness of different sensors, (2) comparing modeling and filtering parameters applied to the tilt sensors, and (3) investigating the accuracy influence of tilt sensors measures on CNC machine tools. The following Table 1 is the application of various level sensors [1, 2].

Ho et al. [3] proposed the bulk micromachining technology in 2006 to make a resistive microtilt sensor. Three sets of microelectrodes contacted the liquid to detect the resistance value. The resistance value between microelectrodes varied with the liquid surface. The level meter monitored the changes in resistance and voltage, so as to determine the tilt angle variation of level meter. The sensitivity was enhanced effectively when the formula and concentration of electrolyte were adjusted. According to the aerial view of resistive microsensing level meter, the sensing unit composed of positive electrode, negative electrode and reference electrode, and electrolyte is encapsulated in the silicon microstructure. When the tilt angle of level meter changes, the tilt angle displacement can be determined by sensing the resistance variation of electrode. In the operating diagram of resistive microsensing level meter, the detectable angular region of the device is ±60, the sensor readout circuit frequency is 400 Hz~1 kHz, the power supply is 5 V single power supply, and the voltage resolution is about 50 mV.

In 2010, Hsu and Bai et al. [4] hollowed partial structure of CMOS to make a microlevel meter, which monitored the equivalent capacitance to determine the horizontal tilt angle variation of the liquid surface, as shown in the operating diagram of CMOS-MEMS capacitive micro evel meter, according to sectional view of CMOS-MEMS capacitive microlevel meter. The FOX, air, and liquid formed three equivalent capacitors connected in series for sensing. The sensor readout circuit frequency was 100 kHz, the power supply was 3.3 ~ 5 V single power supply, the readable capacitance range was 20 fF to 200 fF, and the corresponding output voltage was 2.18 V to 0.84 V.

Bajic and Stupar [5] proposed a simple, low-cost, and highly sensitive fiber optic tilt sensor in 2012. The sensor comprised two optical fibers and a container with transparent liquid, and the container took half of total area of the equipment. In terms of the sensor measurement principle, when the liquid surface tilts, the optical fibers can measure the actual angle according to the refractions induced by liquid and air in the container. The result showed that the sensitivity was 1 V/°, and the resolution was 0.02°.

In 2015, Salvador et al. [6] used PCB-MEMS to make a microfluidic capacitive tilt sensor. Circular metal channels of different sizes were fabricated on the PCB, filled with highly conducting fluid as dielectric constant. When the angle was tilted, the metal channel was partially filled with liquid, the rate of change in capacitance inside the channel was measured by two electrodes, the sensitivities to different sizes were 0.0019 pF/°, 0.0036 pF/°, 0.0011 pF/°, and 0.0016 pF/°, and the measurable range was ±90°.

In 2014, Zou et al. [7] developed a pair of resonant strain gauges using DETF, and the mechanical resonance frequency and gravitational acceleration component variation of the input axis induced directly proportional movement of axial force. The test result showed that the tilt sensor could measure ±90°, the temperature sensitivity was 500 ppb/K, the system sensitivity error was about 0.007°/K, the linear range within was better than 1.4%, and the average response time was 0.8 s.

Lee and Lee [8] developed a capacitive tilt sensor in 2013, a metal ball was used as the medium of sensor,and two electrodes were partitioned by a polystyrene tube in noncontact mode. When the metal ball in the sensor was tilted at an angle and two electrodes generated potential difference, the analog-to-digital converter was connected to the computer to obtain the actual angle. The measurable range was ±90°, and linear position was presented outside 0°-10° low tilt angle.

Yang and Takamura [9] developed a multiprobe scanning system, using three laser interferometers and one autocollimator to measure nanoscale flat strip mirror contour. The laser interferometers detected the flat strip mirror fixed to the top of scan table, and the autocollimator measured the yaw error of scan table. The flat mirror contour and horizontal rectilinear motion error were reconstructed by using the simultaneous linear equation and least square method. The average of two standard deviations (95%) of contour calculated in ten experiments was about 10 nm.

Fan et al. [10] developed a novel six DOF measurement system (6DMS), which could measure six kinematic errors of linear platform simultaneously. Three collimated laser beams detected three relative distances (Yaw, Pitch, Roll) of object movement through Doppler effect. The lateral deviation of return light beam was detected by a beam splitter and two quadrant photodetectors. The measurement result showed that the positioning error was 0.01 μm to 10 μm, the linear error was only 1 μm within ±0.1 mm measurement range, and the angular errors were 1 arcsec within ±50 arcsec measurement range. It can be easily combined with coordinate measurement of any working platform, such as linear platform, - platform, and machine tool, achieving higher efficiency and accurate measurement. Although a few researches have been carried out on the electrolytic tilt sensor, there have been few papers that focus on the measurement and intelligent for the CNC machine tool system, reviewing that date published in literature reveals that the phenomenon reported in this paper has not observed.

This publication presents the development and designs of high-precision level and tilt measurement equipment. Thus, the measuring equipment must have a mechanical design to make parallelism between the sensor and the clamping surface. In signal processing, convert analog signals into digital signals and apply the method of Fuzzy regression and Kalman that were for modeling and filtering, respectively. The equipment that wants calibration and verification includes stability, resolution, and repeatability. In the application, this measurement equipment is applied to CNC machine tools, and it can be synchronized to measure the / axis level accuracy and straightness measurement and can be installed build in the machine tool for monitoring.

2. Principle of Measurement Module

A flatness and level error measurement is carried out by taking a series of incremental height readings as the leveling is moved along the measurement path. On the basis of Figure 1, one can develop an equation for the straightness error in a given location, and then multiple straightness’s are stacked to form level accuracy. Therefore, level and straightness are to be closely related [11]. According to ISO230 standard, the accuracy of dimension 500~800, 800~1250, and 1250~2000 mm was 0.015, 0.02, and 0.25 mm, respectively, [12]. where is the straightness error in the point, is the straightness error in the previous point, is the distance between the measurements, and is the measured deflection error.

2.1. Fuzzy Regression Analysis Modeling

The main purpose of the fuzzy regression analysis modeling is to convert the voltage value to the angle value. Traditional regression analysis assumes that the observed value is derived from actual dependent variable effect plus random error, which is to say that the dependent variable is a random variable with uncertainty. The compared fuzzy linear regression analysis with general regression model: the error of fitting between the fuzzy regression model and real value was regarded as the fuzziness of the model structure. Different fuzzy regression models are deduced according to different fitting criteria, CFC is a fuzzy linear regression model, as shown in Figure 2, where the small circle represents experiment data, the dotted line is the fitting curve calculated by using regression model, the solid line is the boundary region of regression model, and these upper and lower boundaries are referred to Eqs. (3) and (4) [13].

Therefore, the regression coefficient is a fuzzy value, and the prediction value is a fuzzy value, wherein is the membership function of symmetrical triangle, and it has center and fuzzy half-width . The input/output data are fixed values (crisp input and crisp output) (, ), and Tanaka used minimum fuzziness principle for fuzzy regression analysis; so, the uncertainty of fuzzy prediction is minimized, and the crisp output and fuzzy prediction shall be within certain limits. The principle is expressed as follows.

where is the size of dataset, is the number of independent variables, represents the vector {, ,..., } of No. observed value, represents the vector {, ,..., } of half of fuzzy regression coefficient, and represents the vector {, ,..., } of center of fuzzy regression coefficient. In order to solve the effect and limitation of different trends and abnormal values, Tanaka and Ishibuchi [14, 15] used the interval regression of QP. The result of QP has better central tendency than prior findings, and it is effective on solving the data with abnormal values. The model is expressed as follows:

where value is the variable with crisp output data in the prediction interval, and and are two weighted factors. This model is used for balancing the least square principle and minimum fuzzy fitting criterion. There is a highly accurate model in the test of the -axis which is and and -axis which is and , as shown in Figure 3.

2.2. Kalman Filter

The Kalman filter method (KFM) is a high efficiency recursive filter for the processing linear dynamic system, and it can estimate the dynamic system state from incomplete measurement and noise measurement. The Kalman filter can be transformed into an equation, and two key points are “predicting” and “update.” In the prediction stage, the state estimation of time length is generated by the state estimation of time length. In the update stage, the updated state estimation is completed by using the predicted state and the measured state of with a weight. The weight can be derived from the state noise and measured value of in Eq. (8). Finally, the state noise is updated by using the weight. The five major equations of Kalman filter are expressed as (10) and (11) [16, 17].

Kalman filtering prediction equation is as follows:

Kalman filtering update equation is as follows:

This study uses KFM that the leveling equipment and Wyler level meter are placed above the sine bar, making sure that the measured value is 0. One point is captured per second in 30-minute measurement, and the measurement results are shown in Figure 4. The level detection equipment captures 16 bit (0 ~ 65535) value, and the data before and after filtering are measured instantly in the human-machine interface. According to the measurement results, the leveling equipment and axes are improved by 94.1% and 86.2%, respectively, before and after filtering. This research to selecting KFM has reason and advantages as follows: (1) can be used in the / multiaxis tilt sensor and multiple sequential measurements, (2) its the ability to provide the quality of the estimate and its relatively low complexity, and (3) deals effectively with the uncertainty due to noisy sensor data.

3. Research Facilities and Process

3.1. Sensor and System Integration

The external load or internal stress of the machine tool structure induces straightness error. This study develops an equipment of the leveling accuracy real-time measurement system, and the sensing equipment is an electrolyte level sensor. When a leveling error occurs, the bubble moves to the end on higher level, the difference in electrolyte liquid contact area generates voltage difference, and current level condition can be known by analyzing this voltage difference [1820]. The aforesaid equipment is drawn in a circuit, as shown in Figure 5. The axis level meter exports PWM analog signals to the signal acquisition card (ADC), the signal acquisition card (ADC) exports digital signals to the MCU, the values are transferred to the PC end through Bluetooth communication (HM-10), and the software converts digital signals into angles which are easy to be read, as shown in Figure 6. The aforesaid firmware equipment is powered by 18650 rechargeable lithium battery. When the power is less than two grids, a message will be transferred to the PC through Bluetooth to inform the user of immediate charging, sensor measurement system, and mechanical structure to integration and built in, as shown in Figure 7.

3.2. Leveling Equipment Accuracy Calibration and Measurement
3.2.1. Stability Measurement

When the leveling accuracy real-time measurement system is completed, the stability test shall be performed to analyze the long-term stable running ability of measurement equipment. When the measurement system is set at a fixed angle for long-term measurement, the cumulative error and noise are likely to cause stability deterioration, which increases with test time.

In terms of digital level adjustment detection device in this study, the sensor is placed on the granite platform and kept still for a period of time, and then the test begins in steady state. One point is captured per second in one-hour test, there are 3,601 points captured, and seven experiments are performed continuously. The data are reduced into the capability of accuracy (Ca) for inspection of digital level adjustment detection device, so as to check whether the measured value of digital level adjustment detection device reaches the accuracy requirement. The measured data are analyzed, and the result is made into Ca value grade classification table to show the usability of this detection device, where represents the average of measurement result, μ is the sum of upper and lower specification limits, USL is the upper specification limit, and LSL is the lower specification limit [21]. According to the above table, the maximum -axis Ca value is 1.63%, the minimum Ca value is 0.02%, the -axis maximum Ca value is 6.35%, and the minimum Ca value is 0.64%, as shown in Figure 8; so, this detection device is above grade B in the Ca value grade classification table, so as to monitor the system stability.

3.2.2. Repeatability Measurement

The repeatability test is performed to check whether the measurement equipment meets the specified measurement accuracy. The repeatability focuses on the variability of measurer. In the repeatability test of this study, the measurement equipment is placed above the sine bar, given an angle, and the value is recorded until steady state. After seven experiments, the data are compared and analyzed. One point is captured per second in 60-minute measurement, and there are 3,601 points, as shown in Figure 9. The measured data are analyzed by software, the capability of precision (Cp) value is obtained in process performance analysis, the histogram is obtained, and the Cp value grade is classified. The maximum Cp value is 7.07 that the minimum value is 2.3, as shown in Figure 10. Therefore, this detection device is grade A. The larger the Cp value is, the more precise is the measurement equipment. The smaller the Cp value is, the poorer the measurement equipment, and redesign and modeling are required if necessary. This equipment is of superior repeatability [22].

3.2.3. Resolution Measurement

The resolution is defined as the minimum readable unit faithfully measured or detected by a measurement instrument. The resolution specification tolerance is 1/10 or 1/5. For example, the minimum measurement result of the digital level adjustment detection device in this study is 0.057° (±0.0001°), the USL, central value, and LSL are 0.0571°, 0.057°, and 0.0569°, respectively, and the measured value is 1/10 of 0.0001°, i.e., 0.00001° [23].

The resolution test is compared with the Wyler electronic level meter, and the maximum error value is 0.0002° according to the test result; meaning, the digital level adjustment detection device of this study has very high accuracy. The following data are drawn, as shown in Figures 11 and 12, more objectively showing that the detection device of this study is very excellent.

4. Results and Discussion

4.1. Static Measurement and Prediction of Machine Tool Foundation Adjustment

The leveling system developed in this study is used for CNC machine tool measurement, aiming to know the effect of different leveling accuracies on the machine tool motion straightness. The leveling accuracy and linear accuracy refer to international standards ISO230-1 [12]. This study uses three leveling accuracies for experiments, including ±0.05 mm/m, ±0.01 mm/m, and ±0.005 mm/m. The machine leveling accuracy is obtained after machine tool foundation level adjustment, and the straightness of -axis and -axis motions is measured. The experimental equipment is a 500 mm stroke machine tool. The machine specification is shown in Table 2. The digital level detection equipment developed in this study and commercially available Wyler level meter are placed in the middle of work table, as shown in Figure 13. First, the leveling accuracy is adjusted to different groups of leveling accuracy. Then, the -axis and -axis motion straightness is measured. The values are compiled and analyzed.

This study adjusts No. 1, No. 2, and No. 5 anchor bolt to fully support the machine, and three correction principles are met. The adjustment process is based on No. 2 anchor bolt. The height and leveling accuracy are adjusted by No. 1 and No. 5 anchor bolts, as shown in Figure 14. In the -axis measurement method, the total run is 500 mm, the motion straightness measurement interval is 100 mm, and the machine coordinates move from (0, -180) to (-500, -180). In the -axis measurement method, the total run is 360 mm, the motion straightness measurement interval is 60 mm, and the machine coordinates move from (-250, 0) to (-250, -360). The -axis and -axis level values are captured until the level value is in steady state whenever the measuring point is moved. The work table -axis and -axis shift positions are shown in Figure 15.

4.1.1. Experimental Result of the -Axis Kinematic Error Pattern

The error pattern is tested and analyzed in the -axis motion of CNC machine tool, the axis leveling accuracy will be described by experimental results of ±0.05 mm/m, ±0.01 mm/m, ±0.005 mm/m, and 0 mm/m, the work table is located at machine coordinates (-250, -180), and the machine leveling accuracy is adjusted by torque wrench. The measured value is displayed on two equipment display interfaces, and the leveling accuracy is compared according to the measured value, guaranteeing coincident adjustment accuracy to avoid errors in the measurement result. The value is recorded until the value is in steady state after adjustment, and then the work table is moved to the starting point of machine coordinates (0, -180) and moved rightwards at measuring span of 100 mm to the machine coordinates (-500, -180). The and level values are captured until the value is in steady state in the measurement process, and there are 12 points captured.

The error range is 0.0328 mm/m when the leveling accuracy is 0.005. When the leveling accuracy is ±0.01 mm/m, as the machine tool has reached the limit of accuracy, the machine tool motion straightness is increased by only 18% when the leveling accuracy is increased. The increase of accuracy is not large, but the accuracy of the detection device is higher than the 0.02 mm/m of prior bubble level by at least 75%.

According to Figure 16 that the different leveling accuracies have coincident trend of -axis linear positioning error (EXX), the -axis linear positioning trend result corresponding to worse leveling accuracy is worse. However, when the leveling accuracy is -0.01, and the linear positioning error (EXX) measurement result is larger than -0.005 at machine coordinates (-250, 0) and (-250, -500). The maximum linear positioning errors corresponding to two leveling accuracies at (-250, 0) are -0.0206 mm/m and -0.0234 mm/m, and that at (-250, -500) are 0.0107 mm/m and 0.0047 mm/m. The measuring points other than the aforesaid two points have very close measurement results of leveling accuracy (-0.01, -0.01) and (-0.005, -0.005); meaning, this machine tool has reached the limit of leveling accuracy, and the accuracy is within ISO 0.02 mm/m.

Whether the corresponding identical leveling accuracies in positive and negative directions are symmetrical and the values are close, when the leveling accuracies are 0.01 and -0.005, the maximum error rate is 4%, and the maximum difference of absolute values in positive and negative directions is 0.0003 mm/m. It is the largest difference among the following three groups at (±0.005, ±0.005).

The maximum error range of seven experiments at (-0.05, -0.05) is as high as 0.0229 mm/m, and the error range has exceeded the medium grade machine tool criterion 0.02 mm/m. The leveling accuracy must be adjusted immediately. When the leveling accuracy is lower than (0,0), the maximum error value is at (0, -180), and the maximum error of leveling accuracy larger than (0,0) is at (-400, -180) and (-500, -180), coincident with the maximum error value of -axis linear positioning error (EXX). Therefore, the machine -axis kinematic error pattern ascends from left to right.

Whether the same leveling accuracy and maximum roll error value corresponding to positive and negative directions of -axis roll angle (EAX) are directionally symmetrical, the values are close can be known. When the leveling accuracy is ±0.01, the maximum error rate is 9%, and the difference between the two absolute values is 0.0014 mm/m. When the leveling accuracy is ±0.05, the difference between the two angles is 0.0017 mm/m, which is the largest among three groups, as shown in Figure 17.

4.1.2. Experimental Result of the -Axis Kinematic Error Pattern

The error pattern is tested and analyzed in -axis motion of CNC machine tool, and ±0.05 mm/m, ±0.01 mm/m, ±0.005 mm/m, and 0 mm/m are described in various groups of leveling accuracy. First, the work table is moved to machine coordinates (-250, -180), and then the equipment developed in this study and Wyler level meter are placed in the middle of work table. When the testing instrument values are stable, the machine leveling accuracy is adjusted by torque wrench, and the measured value is observed, guaranteeing coincident adjustment accuracy to avoid errors in measurement result. After adjustment, the value is recorded when the value is in steady state. For straightness measurement, the work table is moved to the starting point of machine coordinates (-250, 0) and to machine coordinates (-250, -360) towards spindle at measuring span of 60 mm. The and level values are captured until the values are in steady state in the measurement process, and there are 14 points captured.

Figure 18 shows the -axis linear positioning error (EYY) of different leveling accuracies, and the maximum linear positioning error values corresponding to various leveling accuracies are 0.0501 mm/m, 0.0115 mm/m, -0.0072 mm/m, -0.0118 mm/m, -0.0148 mm/m, 0.0178 mm/m, and -0.059 mm/m. Therefore, the -axis linear positioning and yaw angle measurement results corresponding to worse leveling accuracy are worse. When the leveling accuracy is ±0.01 mm/m, as the machine tool has reached the limit of accuracy, whether the same leveling accuracy and maximum roll error value corresponding to positive and negative directions of -axis linear positioning (EYY) are directionally symmetrical, and the values are close. The error rate is 20% when the leveling accuracy is -0.005. After the two absolute values are taken, the difference among three groups is 0.0007 mm/m.

On Figure 19 that shows the -axis yaw angle error (EBY) of different leveling accuracies, the maximum linear positioning error values corresponding to various leveling accuracies are 0.0525 mm/m, 0.015 mm/m, 0.0093 mm/m, 0.0006 mm/m, -0.0077 mm/m, -0.014 mm/m, and -0.0526 mm/m. When the leveling accuracy is lower than ±0.01 mm/m, the experimental results are very close, and there are slight changes; meaning, the machine tool has reached the limit of accuracy. Whether the same leveling accuracy and maximum yaw angle error value corresponding to positive and negative directions of experimental results of -axis yaw angle (EBY) are symmetrical and the values are close, the maximum error rate is 10% when the leveling accuracy is (±0.005, ±0.005). It is the maximum error value of three experiments. The error value of positive and negative values at (±0.05, ±0.05) is 0.0008 mm/m, the largest difference of three groups.

4.2. Kinematic Error Pattern Modeling and Prediction

The modeling is estimated by factorial design screening experiment according to the obtained experiment data. The number of experiments and the suitable criterion for resolution are determined, and the experimental results are used for regression analysis. The items of insignificant factors are removed by the reverse scalping method to obtain the regression equation. The analytic experiment, pattern drawing, and numerical assay are performed. The coefficient of determination is calculated at significant difference level of by using ANOVA and statistical software, and the decision is made by the -test and -test. Related analysis charts are exported, including normal distribution diagram and residual analysis diagram of values, so as to check whether the regression analysis model is accurate, described in the following sections [24].

4.2.1. Estimation Model of -Axis Leveling Accuracy for Linear Error

The estimation model has two methods to experimentally screen out the significant factors, one is full factorial experiment, clarifying which group is significant factors and which are insignificant factors, or according to the significance of interaction. The other one is fractional factorial experiment, but partial factors need related evidence data and experience. This study discusses the influence on kinematic error pattern within ±0.05 mm/m leveling accuracy of machine tool; so, the full factorial analysis method is used, there are 36 experiments, and there are 144 experimental results of EXX, EAX, EYY, and EBY kinematic error patterns, fitting second-order regression model [25].

wherein is the -axis leveling accuracy (mm/m); is the -axis leveling accuracy (mm/m); β0, β1....., β5 are coefficients.

The aforesaid data are processed by ANOVA, and related test coefficients , value, value, and value are used for experimental analysis. The significant difference level is set as in this experiment, , and , according to the following table, and the regression model has passed value and value tests, but the factor, crosseffect factor, and second-order factor do not conform to value and value tests; meaning, the second-order regression model is insignificant, the factor has lower contribution, and there may be significant factors in the first-order regression model. Therefore, the reverse scalping method is used after adjustment to look for feature points and obtain applicable regression equation.

The term of significant factor is found by using reverse scalping method, the regression model ANOVA of machine tool -axis linear positioning error (EXX) is shown in Table 3, the main significant factor is , and the value is larger than the standard value, as shown in Eq. (18), the value is ≤0.001 than , individual coefficient analysis is shown in Table 4, and the value exceeds of bilateral t distribution, as shown in Eq. (18); so, the aforesaid test values have passed criteria, and the regression equation is expressed as Eq. (19).

The built first-order regression model is used for residual analysis, to check whether the regression model is of normality and homogeneity of variance and independence. Figure 20 shows the assumed variation trend is met; so, the regression equation feasibility is met.

In the second-order regression model ANOVA of -axis roll angle (EAX), the most significant factor screened by the reverse scalping method is , the value is in ANOVA, it is rejected in the null hypothesis and value <0.05, and the calibration coefficient is ; meaning, the total variation of this regression model is as high as 98.65%, the fitness is very high, and value exceeds bilateral test , as shown in Figure 21. So, the aforesaid test values have passed the criteria, and the regression equation is expressed as Eq. (20).

4.2.2. Estimation Model of -axis Leveling Accuracy for Linear Error

The -axis linear positioning error (EYY) data are tested by ANOVA and correlation test coefficient, the significant factor obtained by the reverse scalping method is , the value in ANOVA is , and it thus rejects the null hypothesis and value <0.05. The calibration coefficient is; meaning, the total variation of this regression model is as high as 98.65%, and the fitness is very high, as shown in Figure 22 and Eqs. (5) and (6). The aforesaid test values have passed criteria, and the regression is in Eq. (21).

The collected -axis yaw angle error (EBY) data are tested by ANOVA and correlation test coefficient, the value in ANOVA is and value <0.05, and it rejects the null hypothesis and calibration coefficient ; meaning, the total variation of this regression model is as high as 99.92%, and the fitness is very high. The value exceeds bilateral test , as shown in Eq. (22); so, the aforesaid test values have passed the criteria, and the regression equation is obtained, as shown in Figure 23.

4.3. Experiment Validation Analysis and Testing

Three groups of leveling accuracy and percentage error are selected for operations in the validation experiment, making sure that the validation experiment data are in the prediction range of regression equation, so as to estimate the kinematic error patterns EXX, EAX, EYY, and EBY corresponding to different leveling accuracies of regression equation. According to three groups of validation data in Table 5, when the leveling accuracy of group A is 0.02 mm/m, the percentage error is less than 2%, the measured kinematic error pattern values are 0.0205 mm/m, 0.0198 mm/m, 0.0202 mm/m, and 0.0195 mm/m, and the prediction values are 0.0203 mm/m, 0.0202 mm/m, 0.0199 mm/m, and 0.0198 mm/m, wherein the maximum error in EAX is 0.0004, and the percentage error is 2%. According to the validation experiment of group B, the EXX has the maximum error percentage 8.3% among four error patterns, the measured values are -0.0104 mm/m, 0.0495 mm/m, 0.0487 mm/m, and -0.0105 mm/m, the prediction values are -0.0096 mm/m, 0.0503 mm/m, 0.05 mm/m, and -0.0104 mm/m, and the difference between the actual and prediction values of EXX is 0.0008 mm/m. Finally, according to group C, the larger the leveling accuracy difference is, the larger are the percentage errors in kinematic error patterns EAX and EYY, which are 10.9% and 9.6%, respectively, and both are the part of observing leveling -axis, but the error values are 0.0006 mm/m and 0.0005 mm/m; so, the theoretical value of the prediction model is close to the actual value, and both of them are within 10%, as shown in Table 5.

5. Conclusions

This study discussed the machine tool anchor bolt adjustment leveling accuracy and develops a digital level adjustment and measurement module, which can monitor the variation of straightness error instantly. It performed linearity and distortion accuracy measurement and level adjustment path to enhance the machine tool leveling accuracy, solving the error induced by prior manually observed bubble leveling accuracy. The wired measurement was replaced by wireless measurement, and the transmission is stable. Finally, the manual level adjustment time is shortened, and the overall leveling accuracy of machine tool was enhanced. The measurement result was compared with commercially available Wyler level meter. The experimental results are concluded as follows. (1)This study has surpassed the 0.02 mm/m accuracy of prior bubble level. The minimum resolution is increased by at least 10 times, which is as high as 0.0003°, and the and axes level sensors of leveling equipment export 16bit values, which are filtered by Kalman filter. The measured value and the -axis and -axis are improved by 94.1% and 86.2%, respectively, after filtering(2)The stability and repeatability of level detection equipment are analyzed according to the 6Sigma process accuracy (Ca value) and accuracy (Cp value) in process capability analysis of the level detection equipment developed in this study. The maximum measurement error is only 0.0003°(0.0051 mm/m), the Ca value is within grade A and grade B, and the Cp value is above (3)The experimental results of kinematic error patterns show the maximum error percentage of kinematic error patterns and level values. The maximum error percentage of -axis kinematic error pattern EXX is 4%, the maximum error percentage of EAX is 9%, the maximum error percentage of -axis kinematic error pattern EYY is 20%, the maximum error percentage of EBY is 10%, and the EYY has the maximum value. Therefore, the leveling accuracy directly influences the machine tool motion straightness measurement result(4)According to three groups of experimental results, when the leveling accuracy of regression equation is 0.02 mm/m, the percentage error is very close to the maximum error percentage which is 2%. When the leveling accuracy is within (0.05 mm/m, -0.005 mm/m), the percentage error is less than 10.9%. Therefore, the regression model is built in human-machine interface, and the maximum error value between actual value and prediction value is 0.0013 mm/m; meaning, the prediction has best feasibility(5)Future research will be focused on improving the accuracy level and stability of this level and tilt measurement equipment. Three topics will be followed: first, to observe different firmware filtering, software filtering (PSO, GA, BAS, etc.) and modeling methods to achieve optimization, second, used Ether-CAT or FOCAS2 to connect with CNC controller and immediate compensation technology, and three, this measuring equipment has temperature self-compensation technology of machine-learning methods, at this time, as the topics also form part of an ongoing study

Data Availability

The raw/processed data required to reproduce these findings cannot be shared at this time as the data also forms part of an ongoing study.

Disclosure

All authors have declare that (i) no support, financial or otherwise, has been received from any organization that may have an interest in the submitted work, and (ii) there are no other relationships or activities that could appear to have influenced the submitted work.

Conflicts of Interest

We declare that we have no financial and personal relationships with other people or organizations that can inappropriately influence our work, and there is no professional or other personal interest of any nature or kind in any product, service, and/or company that could be construed as influencing the position presented in, or the review of, the manuscript entitled, “Level Detection Equipment for Measuring the Influence of Different Leveling Accuracies on Linear Error.”