Temperature interpolation device
11714007 · 2023-08-01
Assignee
Inventors
Cpc classification
G01K7/42
PHYSICS
International classification
Abstract
A temperature interpolation device includes: a temperature data reading/writing unit which continues to record both time information and temperature data in a nonvolatile storage medium in the operation of a target device whose temperature data is read, and which checks the time information recorded in the nonvolatile storage medium at predetermined time intervals so as to determine whether or not data is lost in a predetermined time section; and a past temperature estimation unit which uses, when the temperature data reading/writing unit determines that the data is lost, the data recorded in the nonvolatile storage medium and a calculation parameter recorded in a calculation parameter setting unit so as to estimate and interpolate the lost data with a temperature interpolation formula.
Claims
1. A temperature interpolation device of a CNC machine tool comprising a processor and at least one temperature sensor, the processor being configured to: record a previously selected calculation parameter for a temperature interpolation formula to interpolate temperature data that has been lost; record both time information and temperature data acquired by the at least one temperature sensor in a nonvolatile storage medium at a predetermined interval during an operation of the CNC machine tool whose temperature data is read; check the time information recorded in the nonvolatile storage medium at predetermined time intervals; determine that data has been lost when an interval between two consecutive temperature data closest to current time exceeds the predetermined interval; when it is determined that the data has been lost, use the data recorded in the nonvolatile storage medium and the recorded calculation parameter to estimate and interpolate the lost data with the temperature interpolation formula; estimate a thermal displacement based on the interpolated lost data; and add a compensation amount corresponding to the estimated thermal displacement to a movement amount of an axis of the CNC machine tool, wherein the processor uses, in a temperature rise based on previously acquired temperature rise data, an exponential function as the temperature interpolation formula to estimate the lost data based on the temperature data, the exponential function using the calculation parameter based on a time until a temperature of a predetermined ratio with respect to a saturation temperature value is reached from a rise start temperature value, wherein the calculation parameter is a decay constant.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DETAILED DESCRIPTION OF THE INVENTION
(11) A temperature interpolation device 100 according to a first embodiment of the present disclosure will be described below with reference to
(12) An overall outline including the temperature interpolation device 100 will first be described. The temperature interpolation device 100 is included in a configuration which has a thermal displacement compensation function of estimating a thermal displacement from a thermal displacement compensation model and temperature data on the thermal displacement of the machine tool 1 so as to add a compensation amount corresponding to the thermal displacement to an axis movement amount. In this configuration, for example, the thermal displacement compensation model is produced by use of machine learning, and the compensation amount is calculated from the thermal displacement compensation model and an operation state data (such as the temperature data). Then, when a difference between an estimated value and an actual measured value is not equal to or less than a threshold value, the thermal displacement compensation model is calculated again.
(13) Specifically, as shown in
(14) The temperatures and the displacements detected are used as learning data 4, and thus a compensation model calculation 5 is executed. The compensation model calculation 5 refers to calculation processing for determining a thermal displacement compensation model 5-3 by machine learning. Specifically, the compensation model calculation 5 is calculation processing in which learning software 5-1 performs the machine learning 5-2 based on the learning data 4 so as to produce the thermal displacement compensation model 5-3. The learning software 5-1 may be executed on a predetermined computer. The learning data 4 may be data which is previously acquired before work.
(15) Then, the determined thermal displacement compensation model 5-3 is utilized, and thus in the actual work process, compensation amount calculation-output 6 is executed. The compensation amount calculation-output 6 may be executed with, for example, a CNC (Computerized Numerical Control) device 6-2. The CNC device 6-2 calculates and outputs an instruction (axis movement amount) to the machine tool 1, utilizes, at that time, the thermal displacement compensation model 5-3 so as to calculate a compensation amount and adds it to the axis movement amount. The axis movement amount for which the CNC device 6-2 compensates as described above is output to the machine tool 1. In this way, the machine tool 1 executes an operation according to the axis movement amount which has been subjected to the compensation 6-3. On the other hand, in the machine tool 1, the temperature sensors 2 are provided, and a temperature acquisition unit 6-1 reads temperatures from the temperature sensors 2 and supplies them to the CNC device 6-2. The CNC device 6-2 utilizes, based on the supplied temperatures, the thermal displacement compensation model 5-3 so as to execute the compensation amount calculation-output 6. Thereafter, the same processing is repeated. In this way, it is possible to perform the work which is unlikely to be affected by heat.
(16) More specifically, as shown in
(17) The compensation displacement amount calculation unit 62 calculates the compensation amount from the operation state data (such as the temperature data) and the compensation model, and supplies the compensation amount to the compensation execution unit 63. The compensation execution unit 63 supplies the compensation amount corresponding to the temperatures to the axis control unit 71.
(18) The axis control unit 71 is a unit which outputs a command to the machine tool 1, and basically supplies the command based on a machining program to the machine tool 1 in the system thereof. Here, axis control information in the system thereof is utilized, and thus the execution is performed. The compensation amount corresponding to the temperatures is received from the compensation execution unit 63, the compensation amount is added to the command and then the command is supplied to the machine tool 1.
(19) When a loss is caused in the temperature data read at each time with the temperature sensors 2 of the machine tool 1, the temperature interpolation device 100 interpolates the part of the data which is lost, and outputs the interpolated temperature data to the thermal displacement compensation device 60 together with the data of the time read with the temperature sensors 2.
(20) Specifically, as shown in
(21) First, for example, as shown in
(22) Specifically, Lagrange's interpolation formula with respect to data (x1, y1), (x2, y2), (x3, y3), . . . , (xn, yn) of n pairs of times x and temperatures y is given by the following formulas.
(23)
(24) Here, a third-order polynomial can be determined by data of four points (four pairs). Although the times of the pieces of data are preferably somewhat separated from each other, when the times are excessively close to each other, the amount of change in temperatures is low whereas when the times are excessively distant from each other, the reliability of the temperature data is lowered. Hence, the calculation parameter setting unit 104 records the following requirements for interpolation as calculation parameters used in the interpolation of the temperature data.
(25) [Requirements for interpolation]
(26) Interpolation formula: Lagrange's interpolation formula Order: third order Number of pieces of data used in interpolation: 4 Distance between pieces of data used in interpolation: 30 minutes
(27) Each time the temperature data is read and acquired at each time with the temperature sensors 2, the time information generation unit 101 generates the time information. The temperature data reading/writing unit 102 records, in the nonvolatile memory 61 of the thermal displacement, compensation device 60, the acquired temperature data and the time information generated in the time information generation unit 101 such that the temperature data and the time information are associated with each other. Specifically, for example, as shown in
(28) Simultaneously therewith, the temperature data reading/writing unit 102 checks the time information on the nonvolatile memory 61 at regular intervals so as to determine whether or not lose; data is generated. Specifically, as shown in
(29) More specifically, in the nonvolatile memory 61 of
T.sub.t−T.sub.t−1≥SamplingRate+thresh [Math 3]
(Tt: latest data time, SamplingRate: data acquisition interval, thresh: arbitrary threshold value).
(30) When the temperature data reading/wilting unit 102 determines that lost data is generated, as shown in
(31) In the configuration described above, for the temperatures obtained with the temperature sensors 2, it is detected that the data obtained from the temperature sensors 2 is lost in the predetermined time section, and thus the temperature data in the predetermined time section where the data is lost is interpolated. Then, based on the temperature data obtained from the temperature sensors 2, the temperature data interpolated with the temperature interpolation device 100 and the thermal displacement compensation model, as shown in
(32) The present embodiment described above achieves the following effects. In the present embodiment, the temperature data reading/writing unit 102 continues to record both the time information and the temperature data in the nonvolatile memory 61 in the operation of the machine tool 1 serving as a target device whose temperature data is read, and checks the time information recorded in the nonvolatile memory 61 at predetermined time intervals so as to determine whether or not data is lost in the predetermined time section. In this way, it is possible to interpolate the temperature data in the period (section) during which the temperature data is lost in the operation of the machine tool 1.
(33) In the present embodiment, the past temperature estimation unit 103 uses, as the temperature interpolation formula, Lagrange's interpolation formula using the calculation parameters so as to estimate the lost data based on the temperature data. In this way, when a temperature rise and a temperature drop follow a cubic formula, it is possible to highly accurately interpolate the temperature data with consideration given to the thermal characteristics of parts of the machine tool 1 where the temperature sensors 2 are provided, with the result that it is possible to perform highly accurate thermal displacement interpolation.
(34) A second embodiment of the present disclosure will then be described. The second embodiment differs from the first embodiment in that when the time constant of a temperature change is high depending on the positions of the machine tool 1 where the temperature sensors 2 are provided, the lost data is interpolated with an exponential function. Since the other configurations of the second embodiment are the same as those of the first embodiment, the description of the same configurations as in the first embodiment will be omitted.
(35) As shown in
(36) Specifically, temperature rise data on each of a plurality of temperature sensors 2 in the machine tool 1 is previously acquired, and a decay constant λ is determined. As shown in
λ=/τ.
The determined λ is previously recorded in the calculation parameter setting unit 104 so as to be associated with the individual temperature sensors 2.
(37) It is known that in the predetermined part in which the temperature sensor 2 of the machine tool 1 in the present embodiment is provided and whose time constant is high, the transition of the temperature read with the temperature sensor 2 is a general exponential temperature transition. For example, when the temperature drops, this process is mathematically represented by a differential equation below:
dN/dt=−λN(t)
where N (t) is an attenuation amount at a time t. The differential equation is solved so as to have an exponential function below:
N(t)=N.sub.0e.sup.−λt
where N.sub.0 is an initial value. The differential equation is transformed into the following equation:
N(t)=N.sub.0e.sup.−λt+N.sub.∞
where N.sub.∞ is assumed to be the limit value of the temperature. The initial value N.sub.0 and the limit value N.sub.∞ are defined as below.
N.sub.0=temperature of latest data−temperature or second latest data
N.sub.∞=temperature of second latest data(temperature of new data subsequent to the latest data)
(38) The present embodiment described above achieves the following effect. In the present embodiment, in the temperature rise based on the previously acquired temperature rise data, the past temperature estimation unit 103 uses, as the temperature interpolation formula, the exponential function using the calculation parameter based on the time until the temperature of a predetermined ratio with respect to the saturation temperature value is reached from a rise start temperature value of 0° C. so as to estimate the lost data based on the temperature data. In this way, not only in the case of the attenuation (drop) of the temperature but also in the case of the increase (rise) thereof, the lost temperature data can be estimated so as to be a smooth curve.
(39) The present embodiments have been described above. Although the embodiments described above are preferred embodiments, the present invention is not limited to only the embodiments described above, and embodiments on which various modifications are made can be practiced. For example, variations which will be described below can be practiced.
(40) Specifically, the configurations of the calculation parameter setting unit, the temperature data reading/writing unit, the past temperature estimation unit and the like are not limited to the configurations of the calculation parameter setting unit 104, the temperature data reading/writing unit 102, the past temperature estimation unit 103 and the like in the embodiments described above. The configurations of the thermal displacement compensation device for executing the thermal displacement compensation function, the numerical controller and the like are not limited to the configurations of the thermal displacement compensation device 60 including the nonvolatile memory 61, the compensation displacement amount calculation unit 62 and the compensation execution unit 63, the numerical controller 70 including the axis control unit 71 and the like. Although Lagrange's interpolation formula is used as the temperature interpolation formula, there is no limitation to this configuration. Although the temperature data follows the cubic function or the exponential function, there is no limitation to this configuration. Although in the embodiments described above, the nonvolatile memory 61 is used as the nonvolatile storage medium, there is no limitation to this configuration. Although in the embodiments described above, the rise start temperature value is 0° C., there is no limitation to this configuration.
EXPLANATION OF REFERENCE NUMERALS
(41) 61 nonvolatile memory (nonvolatile storage medium) 100 temperature interpolation device 102 temperature data reading/writing unit 103 past temperature estimation unit 104 calculation parameter setting unit