SPINDLE THERMAL ERROR COMPENSATION METHOD INSENSITIVE TO COOLING SYSTEM DISTURBANCE

Abstract

A spindle thermal error compensation method which is insensitive to the disturbance of the cooling system is provided, belonging to the technical field of error compensation in numerical control machine tools. First, the spindle model coefficient identification test, based on multi-state speed variable, is performed; after which, based on the correlation analysis between temperature and thermal error, the temperature measurement point, significantly correlated with the axial thermal error of the spindle, is determined. Next, a spindle thermal error model is established, which is insensitive to the cooling system disturbance. In addition, the coefficients in the model are identified under constraint condition, according to the nonlinear quadratic programming algorithm. Finally, based on the OPC UA communication protocol, the compensation value, as calculated by the model, is input to the numerical control system, in order to realize the compensation of the spindle thermal error.

Claims

1. A spindle thermal error compensation method that is insensitive to the disturbance of the cooling system, first, the spindle model coefficient identification test, based on multi-state speed variable, is performed; after which, based on the correlation analysis between temperature and thermal error, the temperature measurement point, significantly correlated with the axial thermal error of the spindle, is determined; next, a spindle thermal error model is established, which is insensitive to the cooling system disturbance; in addition, the coefficients in the model are identified under constraint condition, according to the nonlinear quadratic programming algorithm; finally, based on the OPC UA communication protocol, the compensation value, as calculated by the model, is input to the numerical control system, in order to realize the compensation of the spindle thermal error; wherein, the steps are as follows: 1) test of coefficient identification of spindle thermal error model four temperature sensors are arranged on the surface of a spindle 1, at specific positions: a first temperature sensor 3 and a fourth temperature sensor 7 are respectively attached to the positions of a rear bearing 2 and a front bearing 6; a second temperature sensor 4 and a third temperature sensor 5 are evenly distributed between the rear bearing 2 and the front bearing 6, wherein the second temperature sensor 4 is adjacent to the rear bearing 2, the third temperature sensor 5 is close to the front bearing 6; a detecting rod 8 is mounted on the spindle, through the shank interface; a displacement sensor 9 is fixed on a working table 10, by a magnetic table seat; a fifth temperature sensor 12 is arranged on a bed frame 11; the spindle runs at a range of speed values, where multiple states are included, such as rising speed, decreasing speed and starting or stopping; during this process, the first temperature sensor 3, the second temperature sensor 4 and the third temperature sensor 5 are simultaneously recorded, as well as measurement values of the fourth temperature sensor 7, the fifth temperature sensor 12, and the displacement sensor 9; 2) definition of spindle temperature measurement point correlation analysis is carried out, between the collected temperature data of each position and the thermal error of the spindle; the correlation coefficient, between the temperature of each point and the thermal error of the spindle, is calculated as follows: T j , E Z = .Math. i = 1 m .Math. T j ( i ) .Math. E z ( i ) - .Math. i = 1 m .Math. T j ( i ) .Math. .Math. i = 1 m .Math. E z ( i ) m ( .Math. i = 1 m .Math. T j 2 ( i ) - ( .Math. i = 1 m .Math. T j ( i ) ) 2 m ) .Math. ( .Math. i = 1 m .Math. E z 2 ( i ) - ( .Math. i = 1 m .Math. E z ( i ) ) 2 m ) ( 1 ) where, .sub.T.sub.j.sub.,E.sub.z is the correlation coefficient between the measured value of the j.sup.th temperature sensor and the thermal error of the spindle, T.sub.j(i) is the temperature value measured by the j.sup.th temperature sensor at time instance i, E.sub.z(i) is the value of the spindle thermal error, measured by the displacement sensor 9 at time instance i, m is the amount of data, measured by the displacement sensor 9; based on the four temperature sensors on the spindle, the maximum thermal resistance coefficient of the spindle is determined, as well as the spindle temperature measurement point, while the temperature measurement value is set to the spindle temperature T.sub.sp; 3) establishment of spindle thermal error model let the temperature value, measured by the fifth temperature sensor 12, be T.sub.e, while the calculation formula of the spindle temperature and the difference T.sub.sp-e is as follows:
T.sub.sp-e(i)=(T.sub.sp(i)T.sub.sp(1))(T.sub.e(i)T.sub.e(1)) (2) where, T.sub.sp-e(i) is the difference between T.sub.sp and T.sub.e at time instance i, T.sub.sp(i) is the measured spindle temperature at the measurement point at time instance i, T.sub.e(i) is the measured value of the fifth temperature sensor 12 at time instance i; the variation of T.sub.sp-e T.sub.sp-e is calculated as follows:
T.sub.sp-e(i)=T.sub.sp-e(i)T.sub.sp-e(i1) (3) where, T.sub.sp-e(i) is the fluctuation of T.sub.sp-e at time instance i; the spindle thermal error model is as follows: E e .Math. z ( i ) = ( 1 - 1 ) E e .Math. z ( i - 1 ) + 3 1 ( .Math. T sp .Math. - .Math. e ( i - 1 ) + .Math. T sp .Math. - .Math. e ( i ) - .Math. T sp .Math. - .Math. e ( i - 1 ) 2 ) ( 4 ) where, E.sub.ez(i) is the calculated value of the spindle thermal error at time instance i, .sub.1, .sub.2 and .sub.3 are coefficients; 4) identification of model coefficients based on the nonlinear quadratic programming algorithm, the coefficients .sub.1, .sub.2 and .sub.3 of the above thermal error model are identified under constraints; the objective function F (.sub.1, .sub.2, .sub.3) is as follows: min [ F ( 1 , 2 , 3 ) ] = min [ .Math. i = 1 m .Math. ( E z ( i ) - E ez ( i ) ) ] .Math. .Math. 1 .Math. m .Math. .Math. i .Math. .Math. n 1 1 .Math. ma .Math. .Math. x .Math. .Math. 2 .Math. m .Math. .Math. i .Math. .Math. n 2 2 .Math. ma .Math. .Math. x .Math. .Math. 3 .Math. m .Math. .Math. i .Math. .Math. n 3 3 .Math. ma .Math. .Math. x ( 5 ) where, .sub.1min, .sub.2min and .sub.3min are the lower limit values of the coefficients .sub.1, .sub.2 and .sub.3 respectively, while .sub.1max, .sub.2max and .sub.3max are the upper limit values of the constraints, for coefficients .sub.1, .sub.2 and .sub.3, respectively; 5) thermal error compensation based on OPC UA the spindle thermal error model runs on the compensator, the compensator sends the compensation value, as calculated by the model, to the numerical control system, using the OPC UA communication protocol, the numerical control system compensates the spindle thermal error, according to the calculated compensation value.

Description

DESCRIPTION OF THE DRAWINGS

[0025] FIG. 1 is a schematic diagram of the spindle temperature measuring points arrangement and thermal error testing.

[0026] FIG. 2 is a flow chart of the spindle thermal error compensation.

[0027] FIG. 3(a) is the spindle thermal error curve, before compensation.

[0028] FIG. 3(b) is the compensated spindle thermal error curve.

[0029] In the figures: 1 spindle; 2 spindle rear bearing; 3 first temperature sensor; 4 second temperature sensor; 5 third temperature sensor; 6 spindle rear bearing; 7 fourth temperature sensor; 8 detecting rod; 9 displacement sensor; 10 working table; 11 bed frame; 12 fifth temperature sensor.

DETAILED DESCRIPTION

[0030] In order to make the objectives, technical solutions and advantages of the present invention more apparent, the present invention is described in detail below with reference to the accompanying drawings.

[0031] An embodiment of the present invention will be described in detail, by taking as an example a vertical machining center spindle. The maximum spindle speed of the machining center is 12000 r/min. The spindle is equipped with a water cooling device.

[0032] The first step is the parameter identification test of the spindle thermal error model.

[0033] Four temperature sensors are arranged on the surface of the spindle 1, where specifically, the first temperature sensor 3 and the fourth temperature sensor 7 are attached to the positions of the rear bearing 2 and the front bearing 6, respectively; the second temperature sensor 4 and the third temperature sensor 5 are evenly distributed between the rear bearing 2 and the front bearing 6, wherein the second temperature sensor 4 is close to the rear bearing 2 and the third temperature sensor 5 is close to the front bearing 6; the detecting rod 8 is mounted on the spindle, through the shank interface; the displacement sensor 9 is fixed on the table 10 by a magnetic table seat; the fifth temperature sensor 12 is arranged on the bed frame 11.

[0034] Let the spindle run in the order shown in Table 1.

TABLE-US-00001 TABLE 1 Spindle operation sequence table Serial number Spindle speed (r/min) Operation hours (mm) 1 1000 30 2 4000 20 3 6000 10 4 8000 30 5 2000 60 6 0 120 7 4000 70 8 10000 60 9 0 20

[0035] The measured values from temperature sensors (3, 4, 5, 7 and 12) and the displacement sensor 9 are simultaneously recorded, during the operation of the spindle.

[0036] The second step, the spindle temperature measurement point is determined. Correlation analysis is carried out, between the collected temperature data of each position and the thermal error of the spindle. The correlation coefficient, between the temperature of each point and the thermal error of the spindle, is calculated as follows:

[00004] T j , E Z = .Math. i = 1 m .Math. T j ( i ) .Math. E z ( i ) - .Math. i = 1 m .Math. T j ( i ) .Math. .Math. i = 1 m .Math. E z ( i ) m ( .Math. i = 1 m .Math. T j 2 ( i ) - ( .Math. i = 1 m .Math. T j ( i ) ) 2 m ) .Math. ( .Math. i = 1 m .Math. E z 2 ( i ) - ( .Math. i = 1 m .Math. E z ( i ) ) 2 m ) ( 1 )

where, .sub.T.sub.j.sub.,E.sub.z is the correlation coefficient between the measured value of the j.sup.th temperature sensor and the thermal error of the spindle, T.sub.j(i) is the temperature value measured by the j.sup.th temperature sensor at time instance i, E.sub.z(i) is the spindle thermal error value, measured by the displacement sensor 9 at time instance i, m is the amount of data measured by the displacement sensor 9.

[0037] The correlation coefficient between the measured values of the temperature sensors 3, 4, 6, and 7 and the measured values of the displacement sensor 9 is calculated according to the Eq. (1). The specific results are shown in Table 2.

TABLE-US-00002 TABLE 2 Correlation coefficient between temperature and thermal error of the spindle Temperature Sensor Correlation coefficient First Temperature Sensor 3 0.9145 Second Temperature Sensor 4 0.9546 Third Temperature Sensor 6 0.9039 Fourth Temperature Sensor 7 0.7880

[0038] The second temperature sensor 4, having the largest correlation coefficient with the thermal error, is selected as the spindle temperature measuring point, while its temperature measurement value is set as the spindle temperature T.sub.sp.

[0039] The third step is to establish the spindle thermal error model.

[0040] Let the temperature value measured by the fifth temperature sensor 12 be T.sub.e, while the calculation formula of the spindle temperature and the difference T.sub.sp-e is as follows:


T.sub.sp-e(i)=(T.sub.sp(i)T.sub.sp(1))(T.sub.e(i)T.sub.e(1)) (2)

where, T.sub.sp-e(i) is the difference between T.sub.sp and T.sub.e at time instance i, T.sub.sp(i) is the measured value of the spindle temperature at the measurement point at time instance i, T.sub.e(i) is the measured value of the fifth temperature sensor 12 at time instance i.

[0041] The variation of Tsp-e Tsp-e is calculated as follows:


T.sub.sp-e(i)=T.sub.sp-e(i)T.sub.sp-e(i1) (3)

where, T.sub.sp-e(i) is the amount of change of T.sub.sp-e at time instance i.

[0042] The spindle thermal error model formula is as follows:

[00005] E e .Math. z ( i ) = ( 1 - 1 ) E e .Math. z ( i - 1 ) + 3 1 ( .Math. T sp .Math. - .Math. e ( i - 1 ) + .Math. T sp .Math. - .Math. e ( i ) - .Math. T sp .Math. - .Math. e ( i - 1 ) 2 ) ( 4 )

where, E.sub.ez(i) is the calculated value of the spindle thermal error at time instance i, .sub.1, .sub.2 and .sub.3 are coefficients.

[0043] The fourth step is about the identification of model coefficients.

[0044] Based on the nonlinear quadratic programming algorithm, the coefficients .sub.1, .sub.2 and .sub.3, in the above thermal error model, are identified under constraints. The objective function F(.sub.1.sub.2,.sub.3) is as shown in the following equation.

[00006] min [ F ( 1 , 2 , 3 ) ] = min [ .Math. i = 1 m .Math. ( E z ( i ) - E ez ( i ) ) ] .Math. .Math. 1 .Math. m .Math. .Math. i .Math. .Math. n 1 1 .Math. ma .Math. .Math. x .Math. .Math. 2 .Math. m .Math. .Math. i .Math. .Math. n 2 2 .Math. ma .Math. .Math. x .Math. .Math. 3 .Math. m .Math. .Math. i .Math. .Math. n 3 3 .Math. ma .Math. .Math. x ( 5 )

where, .sub.1min, .sub.2min .sub.3min are the lower bounds of the coefficients .sub.1, .sub.2 and .sub.3 respectively, while .sub.1max, .sub.2max and .sub.3max are the upper limit values of the coefficients .sub.1, .sub.2 and .sub.3, respectively.

[0045] The spindle thermal error model is established according to Eqs. (2) to (4). According to Eq. (5), the parameters in the model are identified, while the identification result is: .sub.1=7.510.sup.5, .sub.2=9.810.sup.3, .sub.3=408.1 m/.

[0046] The fifth step is thermal error compensation based on OPC UA

[0047] The spindle thermal error model is implemented on the compensator, while the compensation value, as calculated by the model, is sent to the numerical control system, using the OPC UA communication protocol. The numerical control system compensates for the thermal error of the spindle, according to the received compensation value. The compensation process is shown in FIG. 2.

[0048] FIG. 3(a) and FIG. 3(b) illustrate the comparison result, before and after thermal error compensation, of the vertical machining center spindle, as obtained by the aforementioned steps. FIG. 3(a) is the thermal error curve of the spindle, before compensation, while FIG. 3(b) is the thermal error curve of the spindle, after compensation.