Thermal displacement correction device and thermal displacement correction method in machine tool, and machine tool
The thermal displacement correction device and method improve the accuracy and speed of thermal displacement correction in machine tools by using a temperature acquisition unit and pre-optimized coefficient matrix for finite element method analysis, addressing the inefficiencies of uniform temperature assumptions in conventional methods.
Patent Information
- Application Number
- PCT/JP2023/013142
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-03
AI Technical Summary
Conventional thermal displacement correction methods in machine tools are not accurate enough due to uniform temperature assumptions, leading to inefficiencies in structural analysis and correction processes.
A thermal displacement correction device and method that uses a temperature acquisition unit, finite element method analysis, and a pre-optimized coefficient matrix to estimate and correct thermal displacement with high accuracy, reducing calculation time and improving precision.
Enables high-speed structural analysis and real-time thermal displacement correction with enhanced accuracy by minimizing the difference between estimated and actual thermal displacement, significantly reducing calculation time and improving machining precision.
Smart Images

Figure JP2023013142_03102024_PF_FP_ABST
Abstract
Description
Thermal displacement correction device and method for machine tool, and machine tool
[0001] The present invention relates to a thermal displacement correction device and method for a machine tool, and to a machine tool.
[0002] Conventionally, in machine tools having a moving body, the position of the moving body is corrected taking into account the thermal displacement of the machine tool. For example, Patent Document 1 discloses a configuration in which, when performing structural analysis of the structure of a machine tool using the finite element method, the structure is divided into blocks of a predetermined size, the temperature of each block is defined as a constant value, the amount of thermal displacement is estimated, and thermal displacement correction is performed, thereby reducing the amount of calculation. This makes it possible to shorten the analysis time even in structural analysis using the finite element method, which tends to take a long time, and achieves real-time processing.
[0003] International Publication No. 2012 / 157687
[0004] However, in the configuration disclosed in Patent Document 1, the temperature of each block into which the structure of the machine tool is divided is defined as a constant value, but in actual machine tools, the temperature within each block is often not uniform, so there is room for improvement in performing highly accurate thermal displacement compensation. While it is possible to improve accuracy by adjusting the position of the blocks, adjustment requires time and effort.
[0005] The present disclosure has been made in consideration of the above circumstances, and aims to provide a thermal displacement correction device and method for machine tools, as well as machine tools, that are capable of performing structural analysis using the finite element method at high speed and performing thermal displacement correction in real time with high accuracy.
[0006] One aspect of the present disclosure is a thermal displacement correction device for a machine tool, comprising: a temperature acquisition unit that acquires temperatures of predetermined locations of a structure of a machine tool; a finite element method analysis unit that estimates an amount of thermal displacement at a predetermined node of the structure of the machine tool by performing structural analysis using the finite element method using a coefficient matrix for calculating temperatures at all nodes of the structure from the temperatures of the predetermined locations acquired by the temperature acquisition unit; and a correction unit that corrects a command position of a moving body of the machine tool using an NC program based on the amount of thermal displacement, wherein the coefficient matrix is optimized in advance so that the difference between the amount of thermal displacement estimated by the finite element method analysis unit and the amount of thermal displacement acquired by actual measurement or simulation is minimized.
[0007] Another aspect of the present disclosure is a thermal displacement compensation method for a machine tool, including: a temperature acquisition step of acquiring temperatures at predetermined locations of a structure of a machine tool; a finite element method analysis configuration of estimating an amount of thermal displacement at a predetermined node of the structure of the machine tool by performing a structural analysis by the finite element method using a coefficient matrix for calculating temperatures at all nodes of the structure from the temperatures of the predetermined locations acquired by the temperature acquisition unit; and a compensation step of correcting a command position of a moving body of the machine tool by an NC program based on the amount of thermal displacement, wherein the coefficient matrix is optimized in advance so that the difference between the amount of thermal displacement estimated at the predetermined node of the structure of the machine tool by performing the structural analysis and the amount of thermal displacement acquired by actual measurement or simulation is minimized.
[0008] According to the thermal displacement compensation device of the above aspect, a structural analysis is performed by the finite element method using a coefficient matrix for calculating temperatures at all nodes of the structure from the temperatures of predetermined parts of the structure of the machine tool, and the thermal displacement amount at the predetermined nodes of the structure of the machine tool is estimated, and the coefficient matrix is optimized in advance so as to minimize the difference between the thermal displacement amount estimated by the finite element method analysis unit and the thermal displacement amount obtained by actual measurement or simulation. This makes it possible to estimate the thermal displacement amount at the nodes of the actual structure with higher accuracy than when the temperature is defined as constant for each block into which the structure is divided, and therefore enables highly accurate thermal displacement compensation.
[0009] In addition, in structural analysis using the finite element method, the thermal displacement vector corresponding to the thermal displacement of all nodes is {δ} = [K] using the basic formula and the relational formula of the nodal force according to the nodal temperature. -1 It is expressed as [F][T]. Here, {δ} is the thermal displacement vector of all nodes, [K] is the stiffness matrix of the structure, [F] is the force coefficient matrix of all nodes, and {T} is a temperature vector corresponding to the temperature at a predetermined location acquired by the temperature acquisition unit. Note that all vectors used in this specification refer to column vectors.
[0010] The coefficient matrix for calculating the temperatures at all nodes of the structure from the temperatures of specific parts of the machine tool structure is optimized in advance. Therefore, compared to applying an analysis for calculating the temperatures at all nodes, such as a temperature distribution analysis, the time required for calculation can be significantly reduced, thereby increasing the speed at which the thermal displacement vector {δ} at all nodes is calculated. This calculation is then performed in real time during machining, and thermal displacement compensation is performed. In this way, by performing structural analysis using the finite element method at high speed, thermal displacement compensation can be performed in real time with high accuracy.
[0011] In the thermal displacement correction method of the other aspect described above, as in the case of the thermal displacement correction device described above, the actual amount of thermal displacement of the structure can be estimated with higher accuracy than when the temperature is defined as constant for each block into which the structure is divided, so that highly accurate thermal displacement correction can be performed.In addition, by using a coefficient matrix that has been optimized in advance as described above, structural analysis using the finite element method can be performed quickly, so that highly accurate thermal displacement correction can be performed in real time.
[0012] As described above, according to the above one and other aspects, it is possible to provide a thermal displacement correction device and method for machine tools, and machine tools, which are capable of performing structural analysis using the finite element method at high speed and performing thermal displacement correction in real time with high accuracy.
[0013] It should be noted that the reference numerals in parentheses in the claims indicate the correspondence with the specific means described in the embodiments to be described later, and do not limit the technical scope of the present invention.
[0014] Fig. 1 is a perspective view showing the overall configuration of a machine tool in embodiment 1. Fig. 2 is a diagram showing a thermal displacement compensation device in embodiment 1. Fig. 3 is a perspective view showing tetrahedral primary elements (thin lines) and column shape lines (thick lines) when performing structural analysis of a column by the finite element method in embodiment 1. Fig. 4 is a flowchart showing optimization processing of the coefficient matrix [W] and temperature bias {b} in embodiment 1. Fig. 5 is a flowchart showing thermal displacement compensation processing in embodiment 1.
[0015] (Embodiment 1) 1. Mechanical Configuration of Machine Tool A horizontal machining center will be described as an example of a machine tool 1 with reference to Figures 1 and 2. The machine tool has, as drive axes, three mutually orthogonal linear axes (X-, Y-, and Z-axes) and a vertical rotation axis (B-axis).
[0016] As shown in FIGS. 1 and 2, the machine tool 1 is composed of a bed 10, a column 20, a saddle 30, a rotating spindle 40, a table 50, a turntable 60, a temperature sensor 70, a control device 80, and a thermal displacement correction device 90.
[0017] The bed 10 is substantially rectangular and is placed on a floor. However, the shape of the bed 10 is not limited to a rectangular shape. A pair of X-axis guide rails 11a, 11b, on which the column 20 can slide, are formed on the upper surface of the bed 10 so as to extend in the X-axis direction (horizontal direction) and parallel to each other. Furthermore, an X-axis ball screw (not shown) for driving the column 20 in the X-axis direction is disposed between the pair of X-axis guide rails 11a, 11b on the bed 10, and an X-axis motor 11c is disposed to rotate the X-axis ball screw.
[0018] Furthermore, a pair of Z-axis guide rails 12a, 12b on which the table 50 can slide are formed on the upper surface of the bed 10 so as to extend in the Z-axis direction (horizontal direction) perpendicular to the X-axis direction and parallel to each other. Furthermore, a Z-axis ball screw (not shown) for driving the table 50 in the Z-axis direction is disposed between the pair of Z-axis guide rails 12a, 12b on the bed 10, and a Z-axis motor 12c for rotating and driving this Z-axis ball screw is disposed.
[0019] A pair of X-axis guide grooves 21a, 21b are formed in parallel to each other and extend in the X-axis direction on the bottom surface (X-axis sliding surface) of the column 20. The pair of X-axis guide grooves 21a, 21b are fitted onto a pair of X-axis guide rails 11a, 11b via ball guides 22a, 22b so that the column 20 can move in the X-axis direction relative to the bed 10.
[0020] Furthermore, a pair of Y-axis guide rails 23a, 23b, on which the saddle 30 can slide, are formed to extend in the Y-axis direction (vertical direction) and parallel to each other on a side surface (Y-axis sliding surface) 20a of the column 20 parallel to the Y-axis. Furthermore, a Y-axis ball screw (not shown) for driving the saddle 30 in the Y-axis direction is disposed between the pair of Y-axis guide rails 23a, 23b on the column 20, and a Y-axis motor 23c for rotating and driving this Y-axis ball screw is disposed thereon.
[0021] A pair of Y-axis guide grooves 31 a, 31 b are formed in parallel to each other and extend in the Y-axis direction on a side surface 30 a of the saddle 30 that faces the Y-axis sliding surface 20 a of the column 20. The pair of Y-axis guide grooves 31 a, 31 b are fitted into a pair of Y-axis guide rails 23 a, 23 b so that the saddle 30 can move in the Y-axis direction relative to the column 20.
[0022] The rotating spindle 40 is rotatable by a spindle motor 41 housed in the saddle 30, and supports a tool 42. The tool 42 is fixed to the tip of the rotating spindle 40, and rotates as the rotating spindle 40 rotates. The tool 42 also moves in the X-axis direction and the Y-axis direction relative to the bed 10 as the column 20 and saddle 30 move. The tool 42 may be, for example, a ball end mill, an end mill, a drill, or a tap.
[0023] The table 50 is mounted on a pair of Z-axis guide rails 12a, 12b so as to be movable in the Z-axis direction relative to the bed 10. A turntable 60 is supported on the upper surface of the table 50 so as to be rotatable about a vertical B-axis. The turntable 60 is rotatable by a B-axis motor 61 housed within the table 50, and the workpiece W is fixed to the turntable 60 by a jig, magnetic attraction, or the like.
[0024] 2 is attached to any location of each structure of the machine tool 1, i.e., the bed 10, column 20, saddle 30, rotating spindle 40, table 50, and turntable 60. For example, a thermocouple or a thermistor is used as this temperature sensor 70. Temperature information detected by the temperature sensor 70 is transmitted to a temperature acquisition unit 91, which will be described later, and is used for structural analysis of each structure of the machine tool 1.
[0025] The control device 80 controls the spindle motor 41 to rotate the tool 42, and controls the X-axis motor 11c, the Z-axis motor 12c, the Y-axis motor 23c, and the B-axis motor 61 to move the workpiece W and the tool 42 relative to each other in the X-axis direction, the Z-axis direction, the Y-axis direction, and about the B-axis, thereby machining the workpiece W. The control device 80 also includes a thermal displacement correction device 90 that performs thermal displacement correction to eliminate deviations in the relative positions of the workpiece W and the tool 42 that occur due to thermal displacement of structures such as the bed 10 and the column 20. However, the thermal displacement correction device 90 does not necessarily have to be provided inside the control device 80, but can also be applied as an external device.
[0026] 2. Overview of Thermal Displacement Correction Next, an overview of the correction of thermal displacement by the thermal displacement correction device 90 will be described. In this embodiment, a case where thermal displacement correction is performed in response to thermal displacement of the column 20, which is one of the structures of the machine tool 1, will be described with reference to Fig. 3. Note that in addition to the column 20, the present invention can also be applied to other structures such as the bed 10.
[0027] In FIG. 3 , thin lines L1 and thick lines L2 are used. Here, the thick lines L2 are the shape lines of the column 20. The thin lines L1 indicate boundary segments of elements in structural analysis using the finite element method, and the vertices of each thin line L1 are nodes. That is, in FIG. 3 , the element is a first-order tetrahedral element and includes many nodes. Here, in FIG. 3 as an example of this embodiment, one element is illustrated as a first-order tetrahedral element, but this is not limited to this, and a second-order tetrahedral element, a first-order hexahedral element, a second-order hexahedral element, etc. can also be applied.
[0028] Then, based on the elements indicated by the thin line L1 in FIG. 3 , a structural analysis of the column 20 is performed in real time using the finite element method to estimate the amount of thermal displacement at some of the nodes of the column 20, and a correction value for the commanded machining position is calculated based on the amount of thermal displacement. The commanded machining position is then corrected using the correction value. Here, the commanded machining position refers to a position command value for a moving body of the machine tool 1 commanded by an NC program for performing machining, measurement, etc. For example, the commanded machining position and correction value are a command value for the tip position of the rotating spindle 40 relative to the workpiece W, i.e., a command value for the tip position of the tool 42 relative to the workpiece W. The commanded machining position can also be considered as a command position for each axis motor. In the machine tool 1 of this embodiment, this commanded machining position is expressed in X-, Y-, Z-, and B-axis coordinates. Note that the correction value is expressed as X-, Y-, and Z-axis coordinates because correction is performed for the X-, Y-, and Z-axes.
[0029] Here, the temperatures of all nodes are required as analysis conditions when structurally analyzing the column 20 using the finite element method. Furthermore, instead of calculating the thermal displacement of all nodes, only the thermal displacement of a predetermined portion, for example, a plurality of nodes located near the tool 42, is calculated. This significantly reduces the calculations required for structural analysis using the finite element method, and enables faster calculations.
[0030] 3. Configuration of the Thermal Displacement Compensation Device Next, the thermal displacement compensation device 90 will be described with reference to Fig. 2. The thermal displacement compensation device 90 includes a temperature acquisition unit 91, an FEM analysis unit 92, a coefficient matrix storage unit 93, a temperature bias acquisition unit 94, a correction value calculation unit 95, a correction unit 96, a comparison data acquisition unit 97, an error calculation unit 98, and an optimization processing unit 99. Each of these can be configured as separate hardware, or can be realized by software.
[0031] The temperature acquisition unit 91 acquires the temperature detected by the temperature sensor 70 provided in the machine tool 1. The temperature acquisition unit 91 may acquire the temperature obtained by simulating the temperature of a predetermined part of the machine tool 1 using a computing device (not shown). At least one, and more preferably a plurality of, temperature sensors 70 are arranged in the column 20.
[0032] The FEM analysis unit 92, which serves as a finite element method analysis unit, performs structural analysis of the column 20 using the finite element method (FEM) to estimate the amount of thermal displacement at a predetermined portion of the column 20. The conditions for this structural analysis require material constants, temperature information at all nodes, constraint conditions, and spring elements at support portions. Of the conditions for the structural analysis, only the temperatures at all nodes change, and the other conditions are known. The temperatures at all nodes are calculated based on the temperatures acquired by the temperature acquisition unit 91 using a coefficient matrix [W] and a temperature bias {b}, which will be described later.
[0033] Under these conditions, structural analysis by the finite element method can be expressed by a matrix calculation formula such as formula (1). Note that the method for deriving formula (1) for structural analysis will be described later.
[0034]
[0035] The coefficient matrix storage unit 93 stores the coefficient matrix [W] used in structural analysis by the finite element method. The coefficient matrix [W] is optimized so as to minimize the difference between the amount of thermal displacement estimated by the FEM analysis unit 92 and the amount of thermal displacement obtained by actual measurement or simulation. This optimization is performed in advance before the command position of the moving body of the machine tool is corrected by the thermal displacement correction device 90. In other words, the command position of the moving body of the machine tool is corrected with the optimized coefficient matrix [W] stored in the coefficient matrix storage unit 93.
[0036] The temperature bias acquisition unit 94 acquires the temperature bias {b} in the machine tool 1. The temperature bias {b} is acquired as a column vector. The temperature bias {b} can be various information about the machine tool 1, such as the initial temperature, temperature, machine coordinates, dimensional information, and linear expansion coefficient of each device provided in the machine tool 1. The temperature bias {b} is used in structural analysis using the finite element method. The temperature bias {b}, together with the coefficient matrix [W], is optimized by machine learning so as to minimize the difference between the thermal displacement amount estimated by the FEM analysis unit 92 and the thermal displacement amount acquired by actual measurement or simulation. This optimization is performed in advance, as with the coefficient matrix [W]. The initial value of the temperature bias {b} can be set appropriately by the user.
[0037] The correction value calculation unit 95 calculates a correction value for the machining command position based on the amount of thermal displacement of a predetermined portion of the column 20 obtained by the FEM analysis unit 92. The correction unit 96 corrects the machining command position using the correction value obtained by the correction value calculation unit 95.
[0038] The comparison data acquisition unit 97 acquires comparison data used for error calculation by the error calculation unit 98. The comparison data is a thermal displacement vector of a predetermined portion of the column 20 that is actually measured from the machine tool 1 or calculated by simulation.
[0039] The error calculation unit 98 calculates the difference (error) between the comparison data acquired by the comparison data acquisition unit 97 and the thermal displacement vector of a predetermined portion of the structure (column 20) estimated by the FEM analysis unit 92. The difference can be calculated using a known loss function, such as the mean squared error (MSE), the mean absolute error (MAE), the square root of the mean squared error (RMSE), the mean squared logarithmic error (MSLE), Huber loss, Poisson loss, hinge loss, or Kullback-Leibler divergence (KLD).
[0040] The optimization processing unit 99 adjusts the coefficient matrix [W] and the temperature bias {b} used in the structural analysis by the finite element method so as to minimize the difference (error) calculated by the error calculation unit 98. The adjusted coefficient matrix [W] is stored in the coefficient matrix storage unit 93 described above, and the adjusted temperature bias {b} is fed back to the temperature bias acquisition unit 94. The coefficient matrix [W] and the temperature bias {b} are optimized by repeatedly performing adjustments by the optimization processing unit 99 as described below.
[0041] The method for optimizing the coefficient matrix [W] and the temperature bias {b} in the optimization processing unit 99 is not limited, and any known method can be used. For example, machine learning can be used. Optimization based on artificial intelligence other than machine learning may also be used. When machine learning is used, known optimization algorithms can be used, such as steepest descent, SGD (Stochastic Gradient Descent), mini-batch SGD, momentum, RMSProp, Adam, etc.
[0042] 4. Optimization Process of Coefficient Matrix [W] and Temperature Bias {b} Next, the optimization process of the coefficient matrix [W] and temperature bias {b} will be described with reference to Fig. 4. This optimization process is performed before the thermal displacement compensation process by the thermal displacement compensation device 90. First, in step S1, the temperature acquisition unit 91 acquires the temperatures detected by the temperature sensors 70 provided on the machine tool 1. At the same time, the temperature bias {b} in the machine tool 1 is also acquired.
[0043] Next, in step S2, the FEM analysis unit 92 performs FEM analysis on the column 20 according to equation (1) using the temperature and temperature bias {b} acquired in step S1 and the coefficient matrix [W] stored in the coefficient matrix storage unit 93, thereby calculating a thermal displacement vector. Note that a predetermined coefficient matrix [W] is stored in the coefficient matrix storage unit 93 as an initial value.
[0044] In step S3, the comparison data acquisition unit 97 acquires, as comparison data, a thermal displacement vector of a predetermined portion of the column 20 that is actually measured by the machine tool 1 or calculated by simulation. Then, in step S4, the error calculation unit 98 calculates the difference (error) between the comparison data acquired by the comparison data acquisition unit 97 and the thermal displacement vector of the column 20 estimated by the FEM analysis unit 92.
[0045] Then, in step S5, the optimization processing unit 99 determines whether the error calculated by the error calculation unit 98 is equal to or less than a preset tolerance. If it is determined in step S5 that the error is not equal to or less than the preset tolerance, the process proceeds to No in step S5. Then, in step S6, the optimization processing unit 99 adjusts the coefficient matrix [W] and the temperature bias {b}, stores the adjusted coefficient matrix [W] in the coefficient matrix storage unit 93, and inputs the adjusted temperature bias {b} to the temperature bias acquisition unit 94. Then, the process returns to step S1, and the subsequent steps are performed again using the latest coefficient matrix [W] and temperature bias {b}. The adjustment of the coefficient matrix [W] and the temperature bias {b} by the optimization processing unit 99 is performed by machine learning optimization processing based on a predetermined optimization algorithm.
[0046] On the other hand, if it is determined in step S5 that the error is equal to or smaller than the preset tolerance, the process proceeds to step S5 (Yes) and the optimization process ends. As a result, the optimized coefficient matrix [W] is stored in the coefficient matrix storage unit 93, and the optimized temperature bias {b} is input to the temperature bias acquisition unit 94.
[0047] 5. Thermal displacement compensation process by thermal displacement compensation device (thermal displacement compensation method) Next, the thermal displacement compensation process by the thermal displacement compensation device 90 will be described with reference to Fig. 5. The process by the thermal displacement compensation device 90 is performed after the machine tool 1 is powered on. For example, the thermal displacement compensation process is performed during machining of the workpiece W and when the workpiece W is measured using a touch probe (not shown) or the like.
[0048] 4, after the power supply to the machine tool 1 is turned on in step S10, in step S11 (corresponding to a temperature acquisition step), the temperature acquisition unit 91 continuously acquires the temperature of the column 20 from the temperature sensor 70. At the same time, the temperature bias {b} in the optimized machine tool 1 is acquired by the temperature bias acquisition unit 94.
[0049] Next, in step S12 (corresponding to a finite element method analysis step), the FEM analysis unit 92 performs FEM analysis on the column 20 according to equation (1) using the temperature and optimized temperature bias {b} acquired in step S1 and the optimized coefficient matrix [W] stored in the coefficient matrix storage unit 93, and calculates a thermal displacement vector as an estimated value. The calculated thermal displacement vector is stored in a storage unit (not shown).
[0050] Next, in step S13, the correction value calculation unit 95 calculates a correction value for the command position of the tip of the rotating spindle 40 based on the estimated value of the thermal displacement of a predetermined portion (a portion near the tool) of the column 20. For example, the thermal displacement of the tip position of the rotating spindle 40 is calculated based on the current Y-axis position of the saddle 30 and the estimated value of the thermal displacement of the sliding surface 20a corresponding to that Y-axis position. The thermal displacement of the tip position of the rotating spindle 40 calculated in this way becomes the correction value for the command position of the tip of the rotating spindle 40.
[0051] Thereafter, in step S14 (corresponding to a correction step), correction unit 96 corrects the command position of the tip of rotating spindle 40 using the calculated correction value. That is, the command position output by control device 80 is corrected to the corrected command position using the correction value. Then, in step S15, control device 80 executes thermal displacement correction, and if the power to machine tool 1 is not turned off in step S16, the process returns to step S11 and executes each step. That is, if the power to machine tool 1 is not turned off, the processes of steps S2 to S16 are repeated, and if the power to machine tool 1 is turned off, the thermal displacement correction process ends.
[0052] 6. Method of Derivation of Structural Analysis Formula by FEM Analysis Unit The basic formula for structural analysis using the finite element method is expressed by formula (2). This formula (2) is the stiffness equation for the structure. Here, the stiffness matrix [K] is a known value obtained from the material constants of the column 20 and the shape of the column 20. Note that formula (2) uses notation indicating the number of rows and columns, or the number of elements. Also, all vectors used in this specification refer to column vectors.
[0053]
[0054] The relational expression of the nodal force according to the nodal temperature is expressed by Equation (3). Here, the nodal force matrix [F] is a known value obtained from the material constants of the column 20 and the shape of the column 20. Note that in Equation (2), the notation indicates the number of rows and columns, or the number of elements.
[0055]
[0056] Since the left sides of equations (2) and (3) are the same, the thermal displacement vectors of all nodes {δ all} is expressed as in equation (4). That is, the thermal displacement vector {δ all} corresponds to the thermal displacement of all nodes. For ease of explanation, the multiplication matrix of the inverse matrix of the stiffness matrix [K] and the nodal force coefficient matrix [F] is represented as [P], as in equation (5).
[0057]
[0058]
[0059] To calculate the thermal displacement vector {δ} of all nodes based on equation (5), i.e., the thermal displacement of all nodes, requires a very large number of calculations. This results in a long calculation time. On the other hand, in this embodiment, the portion required for thermal displacement correction is not the entire column 20, but only the thermal displacement of the portion of the column 20 near the tool 42. Therefore, the thermal displacement vector {δ} of equation (6) is calculated. all} is divided into a thermal displacement vector {δpart1} at the node of the column 20 near the tool 42 and a thermal displacement vector {δpart2} at the node of the other portion, as shown in equation (6).
[0060]
[0061] Then, when only the thermal displacement vector {δpart1} at the node of the column 20 near the tool 42 is extracted from the equation (6), it can be expressed as the equation (7).
[0062]
[0063] Then, by using a coefficient matrix [W] for calculating the temperatures at all nodes of the column 20 from the temperatures at the predetermined locations of the column 20 where the temperature sensor 70 is installed, the temperature vector {T all} is {[W]{T sensor}+{b}}. Therefore, equation (7) can be expressed as equation (8).
[0064]
[0065] This formula (8) is synonymous with the above-mentioned formula (1). That is, formula (1) is derived in this way. Note that in formulas (1) and (8), the first coefficient matrix [P part ] is a multiplication matrix of the inverse matrix of the stiffness matrix [K] and the nodal force coefficient matrix [F]. The second coefficient matrix [W] is a coefficient matrix for calculating the temperatures at all nodes of the column 20 from the temperatures at predetermined locations of the column 20 where the temperature sensors 70 are installed, which are acquired by the temperature acquisition unit 91.
[0066] By performing structural analysis using the finite element method using the above-mentioned formula (1), it is possible to increase the calculation speed of the thermal displacement vector {δpart} of the node required for correcting the machining command position. This calculation can be performed in real time during machining, allowing for thermal displacement correction. In this way, by performing structural analysis using the finite element method at high speed, it is possible to perform thermal displacement correction in real time with high accuracy.
[0067] 7. Effects According to the thermal displacement compensation device 90 of the first embodiment, a structural analysis using the finite element method is performed using a coefficient matrix [W] for calculating temperatures at all nodes of the column 20 from the temperatures of each predetermined portion of the column 20 of the machine tool 1, and the amount of thermal displacement at the predetermined node of the column 20 of the machine tool 1 is estimated, and the coefficient matrix [W] is optimized in advance so as to minimize the difference between the amount of thermal displacement estimated by the finite element method analysis unit and the amount of thermal displacement obtained by actual measurement or simulation. As a result, the amount of thermal displacement at the actual node of the column 20 can be estimated with higher accuracy than when the amount of thermal displacement is defined as constant for each block obtained by dividing the column 20, and therefore highly accurate thermal displacement compensation can be performed.
[0068] The coefficient matrix for calculating the temperatures at all nodes of the column 20 from the temperatures of specific portions of the column 20 of the machine tool 1 is optimized in advance. Therefore, compared to applying an analysis for calculating the temperatures at all nodes, such as a temperature distribution analysis, the time required for calculation can be significantly reduced, thereby increasing the speed at which the thermal displacement vector {δ} at all nodes is calculated. This calculation is then performed in real time during machining, and thermal displacement compensation is performed. In this way, by performing structural analysis using the finite element method at high speed, thermal displacement compensation can be performed in real time with high precision.
[0069] Furthermore, in the thermal displacement correction method of this embodiment 1, as in the case of the thermal displacement correction device 90, the actual thermal displacement amount of the column 20 can be estimated with higher accuracy than when the thermal displacement amount is defined as constant for each block into which the column 20 is divided, so that highly accurate thermal displacement correction can be performed.In addition, by using a coefficient matrix that is optimized in advance, structural analysis by the finite element method can be performed at high speed, so that highly accurate thermal displacement correction can be performed in real time.
[0070] Furthermore, in the present embodiment 1, the temperature acquisition unit 91 acquires the temperature detected by the temperature sensor 70 provided at a predetermined location on the column 20 of the machine tool 1. This makes it possible to accurately acquire the temperature of the predetermined location on the column 20 as an actual measurement value.
[0071] Furthermore, the temperature acquisition unit 91 may acquire the temperature obtained by simulating the temperature of a predetermined portion of the column 20 of the machine tool 1. In this case, by providing the thermal displacement correction device 90 with a computing device that performs the simulation, it becomes unnecessary to use the temperature sensor 70, and therefore it is possible to reduce the number of parts provided in the machine tool 1.
[0072] In addition, in the first embodiment, the coefficient matrix [W] is optimized by machine learning, which allows the optimization process of the coefficient matrix [W] to be performed efficiently.
[0073] Furthermore, in the first embodiment, the finite element method analysis unit 92 estimates the amount of thermal displacement at a plurality of nodes located near the tool 42 provided on the machine tool 1. This makes it possible to improve the machining accuracy of the workpiece by the tool 42.
[0074] Furthermore, in the first embodiment, the coefficient matrix [W] is optimized so as to minimize the difference between the thermal displacement amount estimated by the finite element method analysis unit 92 and the thermal displacement amount obtained by actual measurement or simulation at all nodes of the structure 20. This improves the estimation accuracy of the thermal displacement amount vector estimated by the finite element method analysis unit 92, enabling thermal displacement correction to be performed with even higher accuracy.
[0075] Furthermore, in the first embodiment, the finite element method analysis unit 92 is configured to perform structural analysis using the coefficient matrix [W] and a temperature bias {b} related to the machine tool 1. The temperature bias {b}, together with the coefficient matrix [W], is optimized by machine learning so as to minimize the difference between the amount of thermal displacement estimated by the finite element method analysis unit 92 and the amount of thermal displacement obtained by actual measurement or simulation. As a result, by taking the temperature bias {b} into consideration, the estimation accuracy of the thermal displacement amount vector can be further improved, and thermal displacement correction can be performed with even higher accuracy.
[0076] Furthermore, the machine tool 1 in the present embodiment 1 includes a thermal displacement compensation device 90 and a column 20, which is a movable body configured to move in accordance with a command position corrected by the thermal displacement compensation device. According to the machine tool 1, the command position of the column 20 is set taking thermal displacement into consideration, thereby improving machining accuracy.
[0077] As described above, according to this embodiment 1, it is possible to provide a thermal displacement correction device 90 for a machine tool 1, a thermal displacement correction method, and a machine tool that can perform structural analysis using the finite element method at high speed and perform thermal displacement correction in real time with high accuracy.
Claims
1. A thermal displacement correction device (90) for a machine tool comprising: a temperature acquisition unit (91) that acquires the temperature of a specified portion of a structure (20) of a machine tool (1); a finite element method analysis unit (92) that estimates an amount of thermal displacement at a specified node of the structure of the machine tool by performing structural analysis by the finite element method using a coefficient matrix [W] for calculating temperatures at all nodes of the structure from the temperatures of the specified portions acquired by the temperature acquisition unit; and a correction unit (96) that corrects a command position of a moving body of the machine tool by an NC program based on the amount of thermal displacement, wherein the coefficient matrix [W] is optimized in advance so that the difference between the amount of thermal displacement estimated by the finite element method analysis unit and the amount of thermal displacement acquired by actual measurement or simulation is minimized.
2. A thermal displacement compensation device for a machine tool as described in claim 1, wherein the temperature acquisition unit acquires a temperature detected by a temperature sensor (70) provided at a predetermined location of a structure of the machine tool.
3. A thermal displacement compensation device for a machine tool as described in claim 1, wherein the temperature acquisition unit acquires a temperature obtained by simulating the temperature of a specified portion of a structure of the machine tool.
4. A thermal displacement compensation device for a machine tool described in any one of claims 1 to 3, wherein the coefficient matrix [W] is optimized by machine learning.
5. A thermal displacement compensation device for a machine tool described in any one of claims 1 to 3, wherein the finite element method analysis unit estimates the amount of thermal displacement at multiple nodes located in the vicinity of a tool (42) provided on the machine tool.
6. A thermal displacement compensation device for a machine tool described in any one of claims 1 to 3, wherein the coefficient matrix [W] is optimized by machine learning so that the difference between the amount of thermal displacement estimated by the finite element method analysis unit and the amount of thermal displacement obtained by actual measurement or simulation is minimized at all nodes of the structure.
7. A thermal displacement compensation device for a machine tool as described in any one of claims 1 to 3, wherein the finite element method analysis unit is configured to use a temperature bias {b} related to the machine tool together with the coefficient matrix [W] to perform structural analysis using the finite element method, and the temperature bias {b}, together with the coefficient matrix [W], is optimized by machine learning so as to minimize the difference between the amount of thermal displacement estimated by the finite element method analysis unit and the amount of thermal displacement obtained by actual measurement or simulation.
8. A machine tool comprising: the thermal displacement compensation device according to any one of claims 1 to 3; and a movable body configured to move in accordance with the command position compensated by the thermal displacement compensation device.
9. A temperature acquisition process (S11) for acquiring temperatures of predetermined parts of a structure (20) of a machine tool (1); and a coefficient matrix for calculating the amount of thermal displacement at a predetermined node of the structure from the temperatures of the predetermined parts acquired in the temperature acquisition process. A thermal displacement compensation method for a machine tool, comprising: a finite element analysis step (S12) of performing structural analysis by the finite element method using [W] to estimate an amount of thermal displacement at a specified node of the structure of the machine tool; and a correction step (S14) of correcting a command position of a moving body of the machine tool by an NC program based on the amount of thermal displacement, wherein the coefficient matrix [W] is optimized by machine learning so that a difference between the amount of thermal displacement estimated at a specified node of the structure of the machine tool by performing the structural analysis and an amount of thermal displacement obtained by actual measurement or simulation is minimized.
Citation Information
Patent Citations
Numerical control machine tool temperature measuring point optimization method based on finite element model numerical simulation
CN112364444A
Condition determination method used for thermal displacement amount estimation device in machine tool
JP2016002637A
Machine learning device and thermal displacement correction device
JP2019111648A
Method and apparatus for compensating for thermally induced position changes in a numerically controlled machine tool
JP2022532018A
