Thermal displacement correction method and thermal displacement correction apparatus of machine tool

11666999 · 2023-06-06

Assignee

Inventors

Cpc classification

International classification

Abstract

A thermal displacement correction method is provided, including a first step of setting an initial tool temperature, a second step of estimating a temperature of a tool or a position measurement sensor based on the initial tool temperature and a temperature of a spindle, a third step of estimating an amount of thermal displacement of the tool or the position measurement sensor with a preliminarily set tool thermal displacement estimation formula based on the estimated temperature, and a fourth step of moving a feed shaft of the machine tool based on the estimated amount of thermal displacement to perform a correction. In the second step, the temperature of the spindle is measured, then a tool-mounted portion temperature of the spindle is estimated from the measured temperature.

Claims

1. A thermal displacement correction method for a machine tool including a tool-mounted portion and a spindle, a tool or a position measurement sensor being removably attachable to the tool-mounted portion, the spindle being rotatable with the tool mounted, the method comprising: setting an initial tool temperature of the tool or the position measurement sensor at a time point when the tool or the position measurement sensor is mounted to the spindle using any information of a use history of the tool or the position measurement sensor, a temperature of the tool or the position measurement sensor before the tool or the position measurement sensor is mounted to the spindle, a body temperature of the machine tool, and an ambient temperature of the machine tool; estimating a temperature of the tool or the position measurement sensor based on the initial tool temperature and a temperature of the spindle; estimating an amount of thermal displacement of the tool or the position measurement sensor with a preliminarily set tool thermal displacement estimation formula depending on the temperature estimated at the preceded estimating; and moving a feed shaft of the machine tool based on the estimated amount of thermal displacement to perform a correction, wherein the temperature of the spindle is measured by a temperature sensor mounted to a fixing portion of the spindle, then a tool-mounted portion temperature of the spindle is estimated from the measured temperature of the spindle and a tool-mounted portion temperature estimation formula being set differently depending on whether the spindle rotates or stops, and the temperature of the tool or the position measurement sensor is estimated with the tool-mounted portion temperature, the initial tool temperature of the tool or the position measurement sensor, and the preliminarily set tool temperature estimation formula.

2. The thermal displacement correction method for the machine tool according to claim 1, wherein the tool-mounted portion temperature estimation formula is set to have respective different formulae depending on whether a tool exchange is performed and whether the tool is mounted to the spindle after the rotating spindle is stopped.

3. The thermal displacement correction method for the machine tool according to claim 1, wherein the tool-mounted portion temperature estimation formula is expressed by a first-order lag expression using the temperature of the spindle as an input.

4. The thermal displacement correction method for the machine tool according to claim 1, wherein the tool temperature estimation formula and the tool thermal displacement estimation formula use estimation formulae according to a type of the tool or the position measurement sensor.

5. A thermal displacement correction apparatus for a machine tool including a tool-mounted portion and a spindle, a tool or a position measurement sensor being removably attachable to the tool-mounted portion, the spindle being rotatable with the tool mounted, the thermal displacement correction apparatus comprising: an initial tool temperature setting unit configured to set an initial tool temperature of the tool or the position measurement sensor at a time point at which the tool or the position measurement sensor is mounted to the spindle using any information of a use history of the tool or the position measurement sensor, a temperature of the tool or the position measurement sensor before the tool or the position measurement sensor is mounted to the spindle, a body temperature of the machine tool, and an ambient temperature of the machine tool; a tool temperature estimating unit configured to estimate a temperature of the tool or the position measurement sensor based on the initial tool temperature and a temperature of the spindle; an amount-of-thermal-displacement estimating unit configured to estimate an amount of thermal displacement of the tool or the position measurement sensor with a preliminarily set tool thermal displacement estimation formula based on the temperature estimated by the tool temperature estimating unit; and a thermal displacement correcting unit configured to move a feed shaft of the machine tool based on the estimated amount of thermal displacement to perform a correction, wherein the tool temperature estimating unit is configured to measure the temperature of the spindle by a temperature sensor mounted to a fixing portion of the spindle, the tool temperature estimating unit being configured to estimate a tool-mounted portion temperature of the spindle from the measured temperature of the spindle and a tool-mounted portion temperature estimation formula, the tool-mounted portion temperature estimation formula being set differently depending on whether the spindle rotates or stops, and the temperature of the tool or the position measurement sensor is estimated with the tool-mounted portion temperature, the initial tool temperature of the tool or the position measurement sensor, and the preliminarily set tool temperature estimation formula.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIG. 1 is a conceptual diagram of a spindle and a thermal displacement correction apparatus in a machining center to which the disclosure is applied.

(2) FIG. 2 is a flowchart depicting processes to estimate a tool-mounted portion temperature according to the disclosure.

(3) FIG. 3 is a flowchart depicting a flow of a thermal displacement correction method according to the disclosure.

(4) FIG. 4 is a graph illustrating an example in which a temperature and thermal displacement when a touch trigger probe is mounted immediately after a stop of the spindle are estimated and an amount of correction is calculated.

(5) FIG. 5 is a graph illustrating an example in which the temperature and the thermal displacement when the touch trigger probe is mounted after a lapse of 20 minutes after the stop of the spindle are estimated and the amount of correction is calculated.

DETAILED DESCRIPTION OF THE INVENTION

(6) The following describes embodiments of the disclosure with reference to the drawings.

(7) FIG. 1 schematically illustrates a spindle 1 in a machining center to which the disclosure is applied. The spindle 1 includes a rotation shaft 2 and a fixing portion 3 (housing). A bearing 4 is interposed between the rotation shaft 2 and the fixing portion 3 and generates heat during a rotation of the rotation shaft 2. A tool-mounted portion 5 as a mounted portion is disposed on a distal end of the rotation shaft 2, and a tool and a position measurement sensor are mounted to the tool-mounted portion 5. In the drawing, a touch trigger probe 6 as a position measurement sensor is mounted.

(8) In the fixing portion 3 near the bearing 4, a cooling circuit 7 that flows cooling oil to reduce an influence from heat generation is disposed, and a spindle temperature sensor 8 that senses a temperature change due to the influence from heat generated in the bearing 4 is mounted. Temperature information obtained by the spindle temperature sensor 8 is used to estimate and correct thermal displacement.

(9) The machining center includes a thermal displacement correction apparatus 10 including a temperature measurement unit 11, a storage unit 12, a correction amount calculation unit 13, and an NC device 14. The temperature measurement unit 11 measures a temperature from output data from the spindle temperature sensor 8. The storage unit 12 stores a tool-mounted portion temperature estimation formula, a tool temperature estimation formula, a tool thermal displacement estimation formula, and parameters used for the respective formulae described later, and the like. The correction amount calculation unit 13 estimates a temperature of the tool-mounted portion 5 and a temperature of the tool or the touch trigger probe 6. The estimation made by using the temperature information obtained from the temperature measurement unit 11 and the respective estimation formulae stored in the storage unit 12. Then, the correction amount calculation unit 13 operates an amount of thermal displacement of the tool or the touch trigger probe 6. The NC device 14 corrects a command value to the spindle 1 based on the amount of thermal displacement operated by the correction amount calculation unit 13.

(10) Here, the correction amount calculation unit 13 functions as respective initial tool temperature setting means, tool temperature estimating means, and amount-of-thermal-displacement estimating means of the disclosure, and the NC device 14 functions as thermal displacement correcting means.

(11) When the spindle 1 is rotated and heat is generated in the bearing 4, the heat is transmitted to the rotation shaft 2 and the tool-mounted portion 5 and further transmitted to the mounted tool and touch trigger probe 6. Because of a thermal conductive property of the spindle 1 and the tool, the temperature of the tool-mounted portion 5 increases in a delay. In the case where the spindle 1 is stopped after the rotation, the bearing 4 is rapidly cooled by an effect of the cooling circuit 7. However, an influence of the heat generation remains long in the tool-mounted portion 5, which is away from the cooling circuit 7, and the temperature decreases slowly in the tool-mounted portion 5. Accordingly, there is a difference between a detected temperature by the spindle temperature sensor 8 mounted to the fixing portion 3 and an actual temperature of the tool-mounted portion 5. Furthermore, in the case where the tool is not exchanged after the stop of the spindle 1, the tool to which the heat generated during the rotation of the spindle 1 is transmitted and heated remains to attach. Therefore, the temperature of the tool-mounted portion 5 gradually decreases. Meanwhile, in the case where the tool is removed after the spindle 1 is stopped, by the tool-mounted portion 5 touching the air, the heat of the tool-mounted portion 5 is deprived, and the temperature of the tool-mounted portion 5 quickly decreases. Further, in a case where the tool is exchanged and a tool in a cool state is mounted, since the heat of the tool-mounted portion 5 moves to the tool, the temperature of the tool-mounted portion 5 decreases further quickly. Thus, a tendency of the temperature changes of the tool-mounted portion 5 changes depending on whether the tool is mounted and whether the tool is exchanged after the stop of the spindle 1.

(12) Considering the difference between the measured temperature of the spindle 1 and the measured temperature of the tool-mounted portion 5, the disclosure accurately estimates the temperatures of the tool and the touch trigger probe 6 and corrects the thermal displacement. Here, FIG. 2 depicts a flowchart of a process for estimating a tool-mounted portion temperature. Next, FIG. 3 depicts a flowchart of processes for estimating the temperatures and the thermal displacement of the tool and the touch trigger probe 6 from the tool-mounted portion temperature estimated in FIG. 2 and performing correction.

(13) First, the process of FIG. 2 sets the optimal tool-mounted portion temperature estimation formula according to the state of the spindle 1 and estimates the temperature of the tool-mounted portion 5.

(14) As described above, by the thermal conductive property of the spindle 1, the temperature of the tool-mounted portion 5 changes delayed to the temperature near the bearing 4. This delay is expressed by the tool-mounted portion temperature estimation formula of a first-order lag expression, for example, as shown in Formula 1, thereby ensuring estimating the temperature of the tool-mounted portion 5 from the temperature of the spindle 1 detected by the spindle temperature sensor 8.

(15) [ Math . 1 ] θ p ( n ) = θ p ( n - 1 ) + Δ t Δ t + T S { θ S ( n ) - θ p ( n - 1 ) } Formula 1 θ.sub.p (n): Tool-mounted portion temperature (current value) θ.sub.p (n−1): Tool-mounted portion temperature (Δt past value) θ.sub.S(n): Detected temperature by spindle temperature sensor (current value) θt: Time cycle of calculation T.sub.S: Time constant representing delay of temperature change of tool-mounted portion

(16) The time constant T.sub.S representing the delay of the temperature change of the tool-mounted portion 5 is a parameter in Formula 1, and when the calculation is performed, the value needs to be preliminarily determined. Determining the value according to the state of the spindle 1 allows estimating the temperature of the tool-mounted portion 5 at high accuracy. In the disclosure, different values are set to the time constant T.sub.S between during the rotation of the spindle 1 and during the stop. Furthermore, the different values are set to the time constant T.sub.S between in the case of performing the tool exchange after the stop of the spindle 1 and not performing the tool exchange. While the respective time constants T.sub.S are preliminarily determined through experiment and the like, usually, the temperature of the tool-mounted portion 5 during stop gradually changes compared with that during rotation. As a result, the value of the time constant is large. Additionally, when the tool is exchanged after the stop of the spindle 1, the transmission of the heat to the cool tool quickly decreases the temperature of the tool-mounted portion 5. Therefore, the time constant is small compared with that in the case of not performing the tool exchange after the stop of the spindle 1.

(17) The following further describes the flow of the process with reference to the flow of FIG. 2.

(18) First, a spindle temperature is read at S1. Here, the spindle temperature is obtained from the temperature measured by the spindle temperature sensor 8 of FIG. 1. The measured temperature may be used as it is or a filtering process and the like may be performed as necessary. Additionally, a temperature of a body at a part not affected by room temperature and the heat generated in the spindle may be defined as a reference temperature, and a difference between the measured spindle temperature and the measured reference temperature may be defined as the spindle temperature.

(19) Next, whether the spindle 1 is during stop or during rotation is determined at S2. This determination is performed based on a control command to a spindle motor, a signal from an encoder sensing the rotation, and the like.

(20) In the case where the spindle is during stop by the determination of S2, the tool-mounted portion temperature estimation formula for the spindle during stop (before tool exchange) is set at S3. In this Embodiment, a value corresponding to the spindle during stop (before tool exchange) is set to the time constant T.sub.S representing the delay of the temperature change of the tool-mounted portion 5 in the above-described Formula 1.

(21) Similarly, in the case where the spindle is rotating, the tool-mounted portion temperature estimation formula for the spindle during rotation is set at S4. In this Embodiment, a value corresponding to the spindle during rotation is set to the time constant T.sub.S representing the delay of the temperature change of the tool-mounted portion 5 in Formula 1.

(22) Next, while the spindle stops, whether the tool is removed after the spindle 1 is stopped last is determined at S5. Here, in the case where the tool is not removed, the formula remains to be the tool-mounted portion temperature estimation formula for the spindle during stop (before tool exchange). Meanwhile, in the case where the tool is removed, the formula is switched to the tool-mounted portion temperature estimation formula for the spindle during stop (without the tool) at S6. In this Embodiment, a value corresponding to the spindle during stop (without the tool) is set to the time constant T.sub.S representing the delay of the temperature change of the tool-mounted portion 5 in Formula 1.

(23) Meanwhile, when the tool is removed, whether another tool is mounted to the spindle 1 is determined at S7. In a case where another tool is not mounted and a tool remains to be not mounted to the spindle 1, the formula remains to be the tool-mounted portion temperature estimation formula for the spindle during stop (without the tool). However, when another tool is mounted, the formula is switched to the tool-mounted portion temperature estimation formula for the spindle during stop (after tool exchange) at S8. In this Embodiment, a value corresponding to the spindle during stop (after tool exchange) is set to the time constant T.sub.S representing the delay of the temperature change of the tool-mounted portion 5 in Formula 1.

(24) Finally, at S9, using the spindle temperature read at S1 and the tool-mounted portion temperature estimation formula according to the state of the spindle 1 determined from S2 to S8, the tool-mounted portion temperature is estimated.

(25) Additionally, in this Embodiment, while the simple first-order lag expression like Formula 1 is used for the tool-mounted portion temperature estimation formula and the time constant T.sub.S, which represents the delay of the temperature change of the tool-mounted portion 5, is changed so as to correspond to the different state of the spindle 1. However, the tool-mounted portion temperature estimation formula may be a formula in another form, such as a matrix based on a finite element model of heat conduction. Moreover, one parameter is not changed according to a condition, but the estimation formula itself may be set as another formula.

(26) Furthermore, in this embodiment, the four kinds of formulae are switched according to the four conditions, “during stop (before tool exchange),” “during stop (without the tool),” “during stop (after tool exchange).” Alternatively, “during rotation,” the formulae may be switched according to two patterns, “during rotation” and “during stop,” or may be switched according to three patterns, “during rotation,” “during stop (before tool exchange),” and “during stop (after tool exchange).”

(27) Next, from the tool-mounted portion temperature estimated in FIG. 2, the temperatures and the thermal displacement of the tool and the touch trigger probe are estimated and the thermal displacement is performed. The following describes the method following the flowchart of FIG. 3.

(28) First, at S11, the mounting of the tool or the touch trigger probe to the spindle 1 is sensed. This process is performed by sensing a movement of a clamp member (not illustrated) that clamps the tool or the touch trigger probe, a pressure of air supplied to a seated surface of the tool or the touch trigger probe, or the like.

(29) Next, at S12, the initial tool temperature when the tool or the touch trigger probe is mounted is set (initial tool temperature setting step). For example, when the tool is exchanged, the estimated tool temperature calculated until then is reset and the estimated tool temperature is set to the initial tool temperature. As the method for setting the initial tool temperature, for example, a method that disposes a temperature sensor in a tool magazine and sets the temperature as the initial tool temperature is considered. Additionally, as described in JP-A-2004-148443, the initial tool temperature may be calculated based on a use history of the tool (or the touch trigger probe). The initial tool temperature may be calculated using the body temperature of the machine tool and ambient temperature.

(30) Next, at S13, parameters of the tool temperature estimation formula and the tool thermal displacement estimation formula preliminarily stored in the storage unit 12 according to the type of the tool or the touch trigger probe are read. That is, preliminarily setting the parameters according to the types of the tool and the touch trigger probe allows accurately estimating the temperatures and the thermal displacement according to the tool and the touch trigger probe.

(31) Next, at S14, based on the read parameters and tool-mounted portion temperature estimation formula, the tool-mounted portion temperature is estimated from the spindle temperature. That is, following the flowchart of FIG. 2, the tool-mounted portion temperature estimation formula different depending on whether the spindle 1 rotates or stops and whether to perform the tool exchange is set to estimate the tool-mounted portion temperature.

(32) Next, the tool-mounted portion temperature estimated at S14 is set as an input temperature at S15. That is, the tool-mounted portion temperature θ.sub.p obtained by Formula 1 is set as the input temperature. At a time point at which the tool is mounted, the tool-mounted portion temperature θ.sub.p becomes effective as the input temperature. That is, when the spindle 1 generates heat and the tool is mounted in a state where the tool-mounted portion temperature θ.sub.p is high, the input temperature to the tool becomes high. Conversely, when the spindle 1 is sufficiently cooled and the tool is mounted in a state where the tool-mounted portion temperature θ.sub.p returns to an ordinary temperature, the input temperature to the tool becomes low.

(33) Next, at S16, based on the tool temperature estimation formula, the temperature of the tool or the touch trigger probe is calculated from the spindle temperature read at S1 of FIG. 2 (S13 to S16: tool temperature estimating step).

(34) That is, the tool-mounted portion temperature θ.sub.p estimated at S14 is transmitted to the tool or the touch trigger probe through a contact surface, and thus the temperature of the tool or the touch trigger probe changes. The temperature change is expressed by the tool temperature estimation formula. As an example of the estimation formula, the following Formula 2 of a first-order lag expression similar to Formula 1 is considered.

(35) [ Math . 2 ] θ t ( n ) = θ t ( n - 1 ) + Δ t Δ t + T t { θ p ( n ) - θ t ( n - 1 ) } Formula 2 θ.sub.t(n): Temperature of tool or touch trigger probe (current value) θ.sub.t(n−1): Temperature of tool or touch trigger probe (Δt past value) θ.sub.p(n): Tool-mounted portion temperature (current value) Δt: Time cycle of calculation T.sub.t: Time constant representing delay of temperature change of tool or touch trigger probe

(36) The time constant T.sub.t representing the delay of the temperature change of the tool or the touch trigger probe is a parameter in Formula 2, and when the calculation is performed, the value needs to be preliminarily determined according to the type of the tool or the touch trigger probe. While Formula 2 is one example of the tool temperature estimation formula, other information, such as a spindle rotation speed and a temperature of a working space, may be used for the tool temperature estimation formula. Additionally, a method that calculates a temperature distribution of the tool with a matrix based on a finite element model and the like, not the simple formula like Formula 2, is also considered.

(37) Next, at S17, based on the tool thermal displacement estimation formula, the amount of thermal displacement of the tool or the touch trigger probe is calculated (amount-of-thermal-displacement estimating step).

(38) That is, based on the temperature of the tool or the touch trigger probe estimated at S16, the thermal displacement of the tool or the touch trigger probe is calculated. For example, like the following Formula 3, the tool thermal displacement estimation formula is expressed by a formula that multiplies the temperature by a proportionality coefficient.
[Math. 3]
ΔZ.sub.t(n)=K.sub.tθ.sub.t(n)  Formula 3 ΔZ.sub.t(n): Thermal displacement of tool or touch trigger probe θ.sub.t(n): Temperature of tool or touch trigger probe K.sub.t: Proportionality coefficient

(39) The proportionality coefficient K.sub.t is a parameter in Formula 3, and when the calculation is performed, the value needs to be preliminarily determined according to the type of the tool or the touch trigger probe.

(40) Next, at S18, correction is performed with the estimated thermal displacement (thermal displacement correcting step). That is, a feed shaft is moved by the thermal displacement estimated at S17 and a measurement point of a tool cutting edge or the touch trigger probe is corrected.

(41) Next, at S19, whether the tool or the touch trigger probe is removed is determined. When the tool or the touch trigger probe is removed here, the process is ended. When the tool or the touch trigger probe is mounted, the processes from S14 to S18 are repeated at the time cycle Δt.

(42) By the flow described above, the thermal displacement of the tool or the touch trigger probe mounted to the spindle 1 can be accurately estimated. There are the three parameters in this Embodiment, the time constant T.sub.S, which represents the delay of the temperature change of the tool-mounted portion 5 in Formula 1, the time constant T.sub.t, which represents the delay of the temperature change of the tool or the touch trigger probe in Formula 2, and the proportionality coefficient K.sub.t in Formula 3. These parameters are preliminarily set based on experiment and analysis.

(43) The following describes an example of estimating and correcting the temperature and the thermal displacement in the flow of FIG. 3 with reference to graphs of FIG. 4 and FIG. 5. In both cases, it is illustrated that a change in position when a predetermined position is repeatedly measured after the spindle 1 is rotated for 120 minutes to generate heat and then replaced with the touch trigger probe 6. FIG. 4 illustrates a case where the touch trigger probe 6 is mounted immediately after the stop of the spindle 1, and FIG. 5 illustrates a case where the spindle 1 is stopped and the touch trigger probe 6 is mounted after a lapse of 20 minutes.

(44) When the touch trigger probe 6 is mounted immediately after the stop of the spindle 1, since the temperature of the tool-mounted portion 5 is high and an amount of heat flowing in the touch trigger probe 6 increases, the thermal displacement increases. Meanwhile, when the touch trigger probe 6 is mounted after a lapse of 20 minutes, although the thermal displacement decreases compared with that in the case of mounting immediately after the stop, the thermal displacement still remains. It can be seen that, when the thermal displacement correction is not performed, it is necessary to wait for a long time from when the stop of the spindle 1 to eliminate the influence by the thermal displacement.

(45) While the spindle 1 is rotated, due to the influence from the heat generated in the bearing 4 or the like, the temperature of the spindle 1 detected by the spindle temperature sensor 8 increases as indicated by the gray solid line. Meanwhile, when the spindle 1 is stopped, the temperature rapidly decreases due to the cooling effect, and in the case of the spindle 1 described in this Embodiment, the temperature returns to the original temperature in about 20 minutes. However, when replaced with the touch trigger probe 6 in this state, thermal displacement occurs. Since the temperature of the tool-mounted portion 5 decreases delayed to the temperature of the spindle 1 detected by the spindle temperature sensor 8 as indicated by the dashed line in the graph, this phenomenon occurs by flowing the heat remained in the tool-mounted portion 5 in the touch trigger probe 6. Moreover, as indicated by the dashed line in the graph, the temperature of the tool-mounted portion 5 exhibits the temperature change close to the temperature of the spindle 1 detected by the spindle temperature sensor 8 while the spindle rotates, however, while the spindle stops, the temperature changes significantly delayed to that of the spindle 1 detected by the spindle temperature sensor 8. When the spindle 1 is stopped and then the tool is exchanged, the cool tool mounted to the spindle 1 deprives the heat of the spindle 1, therefore, compared with the case where the tool is not exchanged, the temperature of the tool-mounted portion 5 quickly decreases. It can be seen from the dashed line in the graph of FIG. 5 that the temperature changes after mounting becomes faster than that before mounting the touch trigger probe.

(46) However, the estimation of the temperature changes of the tool-mounted portion 5 based on Formula 1 allows representing a difference in heat flowing in the touch trigger probe 6 that changes depending on a timing of mounting. At this time, the time constant T.sub.S, which represents the delay of the temperature change of the tool-mounted portion 5 in Formula 1, is changed depending on whether the spindle 1 is during rotation or during stop or whether the tool is exchanged after the stop of the spindle, thus ensuring accurately obtaining the temperature change according to the situation. Further, the temperature changes of the touch trigger probe 6 that changes depending on the heat flowing from the tool-mounted portion 5 in the spindle 1 is calculated with Formula 2, and the value is converted into the amount of displacement with Formula 3 to perform the process of estimating the thermal displacement. Accordingly, as illustrated in FIG. 4 and FIG. 5, a correction accuracy can be high regardless of the timing of mounting the touch trigger probe 6.

(47) As described above, by the thermal displacement correction apparatus 10 and the thermal displacement correction method, the temperature of the tool-mounted portion 5 is estimated by using the tool-mounted portion temperature estimation formula based on the information from the spindle temperature sensor 8. Further, the temperature of the tool or the touch trigger probe 6 is estimated by using the tool temperature estimation formula depending on the estimated tool-mounted portion temperature. Accordingly, when the tool and the touch trigger probe 6 are mounted following a lapse of a certain period after the spindle 1 is rotated at high speed and generates heat, the temperature changes of the tool and the touch trigger probe 6 can be estimated considering the heat remained in the tool-mounted portion 5 at the time of mounting. Therefore, regardless of the timing of mounting the tool and the touch trigger probe 6, the temperature change and the thermal displacement can be highly accurately estimated and accuracy of processing and measurement can be improved.

(48) Especially here, in the tool temperature estimating step at S13 and S14, since the estimation formula depending on the type of the tool or the touch trigger probe 6 is used, the temperature change and the thermal displacement can be highly accurately estimated by reflecting the difference in thermal property and dimensions of the tool and the touch trigger probe 6.

(49) The parameter setting is simplified and the calculation load can be reduced since the tool-mounted portion temperature estimation formula is expressed by the simple estimation formula which is the first-order lag expression with the use of the spindle temperature.

(50) Furthermore, in the tool temperature estimating step at S16, the parameter setting is simplified and the calculation load can be reduced since the tool temperature estimation formula is expressed by the simple estimation formula which is the first-order lag expression with the use of the tool-mounted portion temperature.

(51) It should be noted that while only one spindle temperature sensor is described in the configurations, a plurality of spindle temperature sensors may be installed at different positions and an average value of the temperature information of all of the spindle temperature sensors may be used as the spindle temperature with no problem. The machine tool is not limited to the machining center.

(52) It is explicitly stated that all features disclosed in the description and/or the claims are intended to be disclosed separately and independently from each other for the purpose of original disclosure as well as for the purpose of restricting the claimed invention independent of the composition of the features in the embodiments and/or the claims. It is explicitly stated that all value ranges or indications of groups of entities disclose every possible intermediate value or intermediate entity for the purpose of original disclosure as well as for the purpose of restricting the claimed invention, in particular as limits of value ranges.