Thermal displacement compensation apparatus and thermal displacement compensation method for machine tool

11590622 · 2023-02-28

Assignee

Inventors

Cpc classification

International classification

Abstract

A thermal displacement compensation apparatus includes a temperature measuring unit, a thermal displacement estimating unit, a thermal displacement compensation unit, a displacement measuring unit, a data recording unit, a thermal displacement compensation learning unit, and a displacement measurement timing diagnostic unit. The displacement measuring unit measures a displacement of a machine tool after compensating an axis command value. The thermal displacement compensation learning unit determines a thermal displacement estimation formula based on temperature information and the displacement recorded in the data recording unit. The displacement measurement timing diagnostic unit compares the temperature information at a past displacement measurement recorded in the data recording unit with current temperature information obtained from the temperature measuring unit, and determines whether to measure the displacement by the displacement measuring unit or not at a predetermined diagnosis timing.

Claims

1. A thermal displacement compensation apparatus for machine tool, comprising: a temperature measuring unit that measures temperatures of respective units of a machine tool; a thermal displacement estimating unit that estimates a thermal displacement of the machine tool from the temperatures based on a preliminarily set thermal displacement estimation formula; a thermal displacement compensation unit that compensates an axis command value based on the estimated thermal displacement; a displacement measuring unit that measures a displacement of the machine tool after compensating the axis command value; a data recording unit that records temperature information at the displacement measurement by the displacement measuring unit and the displacement; a thermal displacement compensation learning unit that determines the thermal displacement estimation formula based on the temperature information and the displacement recorded in the data recording unit; and a displacement measurement timing diagnostic unit that compares the temperature information at a past displacement measurement recorded in the data recording unit with current temperature information obtained from the temperature measuring unit, and determines whether to measure the displacement by the displacement measuring unit or not at a predetermined diagnosis timing.

2. The thermal displacement compensation apparatus for machine tool according to claim 1, wherein the displacement measurement timing diagnostic unit compares the temperature information at the displacement measurement one time before with the current temperature information, and determines whether to measure the displacement by the displacement measuring unit or not.

3. The thermal displacement compensation apparatus for machine tool according to claim 1, wherein the displacement measurement timing diagnostic unit compares the temperature information at the respective past displacement measurements of twice or more with the current temperature information, and determines whether to measure the displacement by the displacement measuring unit or not.

4. The thermal displacement compensation apparatus for machine tool according to claim 1, wherein the temperature information includes a temperature change rate at the displacement measurement by the displacement measuring unit.

5. The thermal displacement compensation apparatus for machine tool according to claim 1, wherein the temperature information includes a temperature difference between the temperatures measured at a plurality of positions when the displacement is measured by the displacement measuring unit.

6. The thermal displacement compensation apparatus for machine tool according to claim 1, further comprising a diagnosis timing setting unit that sets a time point of a command of a specific operation or a predetermined time interval as the predetermined diagnosis timing.

7. The thermal displacement compensation apparatus for machine tool according to claim 6, wherein the diagnosis timing setting unit sets a time point at which at least one of the commands of a tool replacement, a main program end, and a movement to a Z-position upper end is executed as the predetermined diagnosis timing.

8. A thermal displacement compensation method for machine tool, comprising: measuring temperatures of respective units of a machine tool; estimating a thermal displacement of the machine tool from the temperatures based on a preliminarily set thermal displacement estimation formula; compensating an axis command value based on the estimated thermal displacement; measuring a displacement of the machine tool after compensating the axis command value; recording temperature information at the displacement measurement in the measuring of the displacement and the displacement; determining the thermal displacement estimation formula based on the temperature information and the displacement recorded in the recording; and comparing the temperature information at a past displacement measurement recorded in the recording with current temperature information obtained in the measuring of the temperatures, and determining whether to measure the displacement in the measuring of the displacement or not at a predetermined diagnosis timing before the measuring of the displacement.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIG. 1 is a block diagram of a thermal displacement compensation apparatus of a machine tool to which the disclosure is applied.

(2) FIG. 2 is a flowchart of a thermal displacement compensation method.

(3) FIG. 3 is a flowchart of a process of performing a displacement measurement timing diagnosis.

(4) FIG. 4 illustrates an exemplary screen for setting a timing diagnosis condition.

DETAILED DESCRIPTION

(5) The following describes embodiments of the disclosure based on the drawings.

(6) FIG. 1 is a block diagram of a thermal displacement compensation apparatus 1 of a machine tool to which the disclosure is applied.

(7) In the thermal displacement compensation apparatus 1, a thermal displacement is estimated from information of temperature sensors 2 installed to a plurality of portions of the machine tool based on a thermal displacement estimation formula 4 by a thermal displacement estimating unit 3. A thermal displacement compensation amount 5 is output to a position controller 6 based on the estimated thermal displacement, and an axis is moved corresponding to the thermal displacement compensation amount 5, thereby executing the compensation. Usually, the thermal displacement estimation formula is set for each axis, and in a case of a three-axis machining center, the thermal displacement estimation formula is set for each of an X-axis, a Y-axis, and a Z-axis. It can be said that the above is a minimum configuration for ensuring the thermal displacement compensation.

(8) In the actual configuration, for visualizing a result of the thermal displacement compensation, a thermal displacement compensation result simulation unit 7 simulates how the thermal displacement is reduced by the thermal displacement compensation, and outputs it to a display device 8 in some cases. Furthermore, a displacement measuring device 9 is disposed to obtain displacement data 10, and the displacement data 10 is saved in a thermal displacement compensation learning data recording unit 11 as displacement information 12. Here, the displacement measuring device 9 may, for example, measure certain points on a table by a position measurement sensor, such as a touch trigger probe, attached to a main spindle of the machine tool. Alternatively, the measurement may be performed by attaching a displacement sensor to the table side and bringing the main spindle close to the displacement sensor. In the thermal displacement compensation learning data recording unit 11, the temperature measured by the temperature sensor 2 is saved as temperature information 13 in addition to the displacement information 12. A thermal displacement compensation learning unit 14 determines an additional thermal displacement estimation formula 4 through a learning based on the data saved in the thermal displacement compensation learning data recording unit 11.

(9) As described above, a technique for achieving a further effective thermal displacement compensation by optimizing the thermal displacement estimation formula through the learning is present as the related art. However, in the related art, a timing of measuring the displacement data 10 by the displacement measuring device 9 is not specifically considered. As a common method for use, a method in which the measurement is performed at constant time intervals to accumulate displacement information is considered. Machine tool manufacturers conduct tests by variously changing operation conditions of machines and room temperatures of environments where the machines are installed, measure the displacement at constant time intervals during the tests, and collect learning data for thermal displacement compensation at various temperature changes of the machines. When the machine tool manufacturers collect the learning data for thermal displacement compensation, the learning data with sufficiently high quality can be obtained by the related art.

(10) However, when a user attempts to collect the learning data for thermal displacement compensation during the use of the machine, the effective data is possibly not collected. For example, when the user executes a command of measuring the displacement in the same time slot every day, it is considered that only the data of similar temperature environment is collected. The learning of the thermal displacement estimation formula based on the biased data causes an issue of overlearning and the like, and makes the effective thermal displacement compensation difficult to be performed.

(11) Therefore, in the disclosure, for the effective and highly stable learning of the thermal displacement estimation formula, a configuration below is added.

(12) An input device 15 is configured to set a timing diagnosis condition 16. At a timing that matches the content set in the timing diagnosis condition 16, a displacement measurement timing diagnostic unit 17 compares the current temperature obtained from the temperature sensor 2 with the past temperature recorded as the temperature information 13, and diagnoses whether to measure the displacement or not. When the measurement is diagnosed to be necessary, a displacement measurement command 18 is output. Accordingly, the displacement measuring device 9 can obtain the displacement data 10 at a more appropriate timing.

(13) In the disclosure, the thermal displacement compensation method by the thermal displacement compensation apparatus 1 is executed based on the flowchart of FIG. 2.

(14) First, at S1, the temperature sensor 2 measures the temperatures of respective units in the machine tool (temperature measuring step).

(15) Next, at S2, the thermal displacement estimating unit 3 estimates the thermal displacement from the information obtained from the temperature sensor 2 based on the thermal displacement estimation formula 4 (thermal displacement estimating step).

(16) Next, at S3, the position controller 6 compensates command values of respective axes based on the thermal displacement compensation amount 5 output from the thermal displacement estimating unit 3 (thermal displacement compensation step).

(17) Then, at S4, the displacement measurement timing diagnostic unit 17 determines whether the timing diagnosis condition is satisfied or not (whether it is a timing to measure the displacement or not) (displacement measurement timing diagnostic step).

(18) When the timing diagnosis condition is determined to be satisfied at S4, whether the displacement needs to be measured or not is determined at S5. When the displacement measurement is not necessary, the process returns to S4.

(19) When the displacement measurement is determined to be necessary at S5, the displacement measuring device 9 measures the displacement, obtains the displacement data 10, and records the displacement data 10 as the displacement information 12 in the thermal displacement compensation learning data recording unit 11 at S6 (displacement measuring step). At the same time, the temperature data obtained by the temperature sensor 2 is recorded in the thermal displacement compensation learning data recording unit 11 as the temperature information 13 (data recording step).

(20) Then, at S7, the thermal displacement compensation learning unit 14 determines the additional thermal displacement estimation formula 4 through the learning based on the displacement information 12 and the temperature information 13 saved in the thermal displacement compensation learning data recording unit 11, and causes the thermal displacement estimating unit 3 to update the thermal displacement estimation formula 4 (thermal displacement compensation learning step).

(21) Next, the process from the displacement measurement timing diagnosis to the recording of the displacement and the temperature information in FIG. 2 (process from S4 to S6) will be described in detail using the flowchart of FIG. 3.

(22) First, the timing diagnosis condition determined at S101 (S4 of FIG. 2) can be set in a screen, for example, as illustrated in FIG. 4 by the input device 15. In the example of FIG. 4, during the operation, the command of specific operation as the condition, such as “at tool replacement”, “at main program end”, and “at Z-position upper end” can be selected. Meanwhile, in a standby state, the setting can be made at constant time intervals. In the example of FIG. 4, the setting is made as every 15 minutes. When the timing diagnosis condition is satisfied, the diagnosis process of whether to measure the displacement or not is started. Accordingly, the displacement can be measured at the timing at which the original machining operation of the machine tool is not interfered as much as possible.

(23) Next, at S102, the current temperature data θ.sub.n=(θ.sub.1,n, θ.sub.2,n, . . . , θ.sub.k,n) is obtained. Hereinafter, k pieces of the temperature data is expressed as θ=(θ.sub.1, θ.sub.2, . . . θ.sub.k), and the temperature data obtained at n-th times after the process start is expressed as θ.sub.n=(θ.sub.1,n, θ.sub.2,n, . . . , θ.sub.k,n).

(24) Next, at S103, a current temperature index Θ.sub.n=(Θ.sub.1,n, Θ.sub.2,n, Θ.sub.l,n) is calculated as the temperature information. The temperature index is obtained by performing a calculation process to the obtained temperature data, and the temperature index is expressed by Θ (upper-case theta) while the original temperature data is expressed by θ (lower-case theta). The calculation process, for example, takes an average of a plurality of temperatures, or obtains a difference between two temperatures. Furthermore, a change rate may be calculated by differential processing, and delay processing may be performed using a filter. A plurality of the temperature indices may be calculated. For example, in the case of the l temperature indices, the temperature index is expressed as Θ.sub.n=(Θ.sub.1,n, Θ.sub.2,n, . . . Θ.sub.l,n).

(25) Next, at S104, a past temperature index Θ.sub.n-m is called from the database (thermal displacement compensation learning data recording unit 11 of FIG. 1), and subsequently, at S105, respective components of Θ.sub.n and Θ.sub.n-m are compared, and it is determined whether the components each having the difference of a threshold A.sub.1 or more are included like the formula 1 below or not. When the current process is assumed as the n-th process, Θ.sub.n-m indicates the temperature index at the point m times before. The process may be performed for m=1, that is, only for one time before, or the comparison may be performed for m=1, 2, . . . , n−1, that is, all of the past temperature indices. The comparison is performed for all of the l temperature indices.

(26) [ Math . 1 ] .Math. "\[LeftBracketingBar]" Θ 1 , n - Θ 1 , n - 1 .Math. "\[RightBracketingBar]" A 1 or .Math. "\[LeftBracketingBar]" Θ 1 , n - Θ 1 , n - 2 .Math. "\[RightBracketingBar]" A 1 or .Math. or .Math. "\[LeftBracketingBar]" Θ 1 , n - Θ 1 , n - m .Math. "\[RightBracketingBar]" A 1 or .Math. "\[LeftBracketingBar]" Θ 2 , n - Θ 2 , n - 1 .Math. "\[RightBracketingBar]" A 2 or .Math. "\[LeftBracketingBar]" Θ 2 , n - Θ 2 , n - 2 .Math. "\[RightBracketingBar]" A 2 or .Math. or .Math. "\[LeftBracketingBar]" Θ 2 , n - Θ 2 , n - m .Math. "\[RightBracketingBar]" A 2 .Math. .Math. "\[LeftBracketingBar]" Θ 1 , n - Θ 1 , n - 1 .Math. "\[RightBracketingBar]" A 1 or .Math. "\[LeftBracketingBar]" Θ 1 , n - Θ 1 , n - 2 .Math. "\[RightBracketingBar]" A 1 or . . . or .Math. "\[LeftBracketingBar]" Θ 1 , n - Θ 1 , n - m .Math. "\[RightBracketingBar]" A 1 ( Formula 1 )

(27) A.sub.1: threshold relative to component l of temperature index

(28) Satisfying the condition of the formula 1 means that the obtained current temperature is different from the recorded past temperature, that is, the current temperature is an unlearned temperature for the thermal displacement compensation apparatus 1 of the machine tool. When even one difference is larger than the threshold A.sub.1 in the formula 1, the process proceeds to S107, and the displacement is determined to be measured. When there is no difference larger than the threshold A.sub.1, the process proceeds to S106, and the displacement is determined not to be measured. S102 to S107 corresponds to S5 of FIG. 2.

(29) As illustrated in FIG. 4, the threshold A.sub.1 used for the determination in the formula 1 may be set in the screen.

(30) The formula 1 is an exemplary method for comparison between the current temperature information and the past temperature information, and the comparison may be performed based on another formula. For example, instead of the determination by obtaining the differences for the respective components of the temperature indices, the determination may be made with the sum of the magnitudes of the respective differences.

(31) When the displacement is determined to be measured at S107, the process further proceeds to S108, and the displacement is measured and recorded in the database. Furthermore, the current temperature data θ.sub.n=(θ.sub.1,n, θ.sub.2,n, . . . , θ.sub.k,n) is recorded in the database at S109, and the current temperature index Θ.sub.n=(Θ.sub.1,n, Θ.sub.2,n, . . . Θ.sub.l,n) is recorded at S110. S108 to S110 corresponds to S6 of FIG. 2.

(32) The thermal displacement compensation apparatus 1 and the thermal displacement compensation method of the above-described embodiment execute the process of S1 to S7 while including the temperature sensor 2 (temperature measuring unit), the thermal displacement estimating unit 3 (thermal displacement estimating unit), the position controller 6 (thermal displacement compensation unit), the displacement measuring device 9 (displacement measuring unit), the thermal displacement compensation learning data recording unit 11 (data recording unit), and the thermal displacement compensation learning unit 14 (thermal displacement compensation learning unit). The temperature sensor 2 (temperature measuring unit) measures the temperatures of the respective units of the machine tool. The thermal displacement estimating unit 3 (thermal displacement estimating unit) estimates the thermal displacement compensation amount 5 (thermal displacement) of the machine tool from the temperatures based on the preliminarily set thermal displacement estimation formula 4. The position controller 6 (thermal displacement compensation unit) compensates the axis command value based on the estimated thermal displacement compensation amount 5. The displacement measuring device 9 (displacement measuring unit) measures the displacement of the machine tool after compensating the axis command value. The thermal displacement compensation learning data recording unit 11 (data recording unit) records the temperature information 13 at the displacement measurement by the displacement measuring device 9 and the displacement information 12 (displacement). The thermal displacement compensation learning unit 14 (thermal displacement compensation learning unit) determines the thermal displacement estimation formula 4 based on the temperature information 13 and the displacement information 12 recorded in the thermal displacement compensation learning data recording unit 11.

(33) Further, the displacement measurement timing diagnostic unit 17 (displacement measurement timing diagnostic unit) is provided. At the predetermined diagnosis timing determined at S4, the displacement measurement timing diagnostic unit 17 (displacement measurement timing diagnostic unit) compares the temperature information 13 at a past displacement measurement recorded in the thermal displacement compensation learning data recording unit 11 with current temperature information 13 obtained from the temperature sensor 2, and determines whether to measure the displacement by the displacement measuring device 9 or not.

(34) Thus, according to the disclosure, the temperature information 13 and the displacement information 12 at the displacement measurement are recorded, the recorded temperature information 13 at the past displacement measurement is compared with the current temperature information 13 at the predetermined diagnosis timing, and whether to measure the displacement or not is determined, thereby allowing the displacement measurement when the current temperature is unlearned. Accordingly, the relation between the temperature and the displacement can be effectively learned, thus allowing the improvement of the accuracy in the thermal displacement compensation.

(35) Especially, in the determination of whether to measure the displacement or not, by comparing the temperature information at the displacement measurement one time before with the current temperature information (S104), whether to perform the measurement or not can be determined by a simple process.

(36) By comparing the temperature information at the respective past displacement measurements of twice or more with the current temperature information (S104), the displacement can be measured only in the unlearned case, thus allowing reduction of time loss by the displacement measurement to minimum.

(37) By the use of the temperature change rate as the temperature information (S103), whether the current temperature status is unlearned or not can be more accurately determined.

(38) By the use of the temperature difference between the temperatures measured at a plurality of positions as the temperature information (S103), whether the current temperature status is unlearned or not can be more accurately determined.

(39) Meanwhile, with the input device 15 (diagnosis timing setting unit) configured to set the time point of the command of the specific operation or a certain time interval as the predetermined diagnosis timing, the displacement can be measured at the timing at which the original machining operation of the machine tool is not interfered as much as possible. Especially, when the determination is made by comparing the temperatures when at least one of the commands of the tool replacement, the main program end, and the movement to the Z-position upper end is executed (FIG. 4), the displacement can be measured at the timing at which the original machining operation of the machine tool is not interfered as much as possible.

(40) 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.