Temperature compensation method, system and medium for CNC machine tools

By setting multiple temperature detection points and correlation analysis on CNC machine tools, key detection points are obtained to establish and correct the temperature compensation model, which solves the problems of thermal error compensation method on processing efficiency and model versatility, and achieves high efficiency and low cost. temperature compensation effect.

CN115808901BActive Publication Date: 2024-09-06XIAN UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211055756.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2024-09-06
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

Existing thermal error compensation methods for CNC machine tools affect processing efficiency and are difficult to cope with changes in thermal error characteristics and model versatility issues, resulting in model failure and increased costs.

Method used

By setting multiple temperature detection points on the CNC machine tool, obtain key temperature detection points based on the correlation between detection points, establish a temperature compensation model, and perform multiple detections to correct the model coefficients when the model fails, reducing measurement time and system cost.

Benefits of technology

It improves machine tool processing efficiency, reduces system hardware requirements and costs, and ensures the accuracy and versatility of the temperature compensation model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115808901B
    Figure CN115808901B
Patent Text Reader

Abstract

The present invention provides a temperature compensation method, system and readable storage medium for a numerically controlled machine tool. The temperature compensation method includes: obtaining key temperature detection points from multiple temperature detection points, and obtaining a temperature compensation model according to each key temperature detection point; obtaining a set data system coordinate value, an initial position of a test rod, and an initial temperature value of each key temperature detection point; when the processing time of the test piece reaches the set time, replacing the machine tool tool with a test rod, and then performing temperature detection; obtaining a thermal error according to the initial position and current position of the test rod, and judging whether the above-mentioned temperature compensation model is invalid according to the thermal error; if it is not invalid, obtaining a temperature compensation value; if it is invalid, performing multiple temperature detections on each key temperature detection point to correct the temperature compensation model. The technical solution provided by the present invention can solve the problem that the temperature compensation method of numerically controlled machine tools in the prior art affects the processing efficiency of machine tools.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of correction of thermal error models of numerically controlled machine tools, and in particular to a temperature compensation method, system and medium for numerically controlled machine tools. Background Art

[0002] Thermal error of CNC machine tools refers to the tool offset caused by thermal deformation of mechanical mechanisms during machine tool processing. Thermal error can account for 40-70% of the total error of machine tools and is a major error source. At present, the method to eliminate thermal error of CNC machine tools is to use the CNC system to control the value of tool reverse offset and thermal error, effectively control the thermal error, and realize thermal compensation of CNC machine tools. However, during machine tool processing, it is impossible to directly measure the thermal error of high-speed rotating tools. Therefore, only a mathematical model between machine tool temperature and thermal error can be established, and the thermal error can be predicted by the detected temperature. The above compensation model is called thermal compensation model.

[0003] Thermal error is caused by the thermal deformation of each structural component of the machine tool being transferred and accumulated to the spindle tool position. Due to the complex structure of the machine tool, it is difficult to accurately model the thermal deformation of each structural component. Therefore, it is necessary to use a data-driven "black box method" to model the machine tool from the overall perspective. This method replaces the tool with a test rod when the machine tool is in an unprocessed idling state, and uses technical means to measure the thermal error of the machine tool. At the same time, the machine tool temperature is measured synchronously, and then the thermal error is modeled based on the measured data. At present, related research focuses on modeling algorithms, including neural networks, multivariate regression, and support vector machines, which are all commonly used modeling algorithms.

[0004] The above methods all use an offline modeling method, but they all ignore a problem: thermal error is caused by the combined effect of thermal deformation of multiple mechanical structures. Since it is difficult to clarify the thermal deformation characteristics of each structural component, it is impossible to know the influence of various internal and external factors on thermal error during machine tool operation, such as changes in ambient temperature, the time stability of the machine tool itself, and changes in processing parameters. Therefore, the offline modeling method only uses one measurement data in a short period of time. When the change in the thermal error characteristics of the machine tool exceeds the coverage of the modeling data, the model will inevitably fail, and this problem cannot be solved by studying the modeling algorithm, because no matter how superior the algorithm is, it is impossible to model the thermal error characteristics that are not included in the measurement data.

[0005] Related research in China has also proposed an adaptive model correction technology, which comprehensively models the thermal error characteristics of the machine tool under various operating parameters, and then monitors the machine tool operating parameters in real time and adjusts the model. However, this modeling method relies on more observation data of the machine tool, which greatly increases the cost and difficulty of one-time modeling. There are many types of machine tools. Even for the same model, the thermal deformation characteristics will be different due to process differences during assembly. Therefore, the thermal compensation models of different machine tools cannot guarantee universality, and thus this technology is difficult to cope with large-scale assembly needs. In addition, without clarifying the time-stability of the thermal deformation characteristics of the machine tool, it is impossible to determine whether the modeling data is complete and can be used for a long time.

[0006] The online correction technology of the thermal error compensation model is currently a feasible method to solve the thermal error compensation model. At present, Switzerland has carried out preliminary research on this technology, but it also faces many unresolved key issues:

[0007] 1) In the online detection technology of thermal errors, the current method is measurement measurement. This technology requires that the machine tool tool be replaced with an online detection probe during measurement. It requires multiple touches to complete the multi-directional thermal error measurement, which results in a lot of time spent on measurement and affects the processing efficiency.

[0008] 2) The problem of small sample data in the correction algorithm of the thermal error compensation model. Online correction requires the addition of new thermal error measurement data, and this process needs to be completed quickly because the machine tool needs to stop processing when the thermal error is measured online. Too much measurement data supplementation will cause the machine tool to stop frequently, which greatly affects the processing efficiency.

[0009] In summary, it can be seen that the temperature compensation method of CNC machine tools in the prior art has the problem of affecting the machining efficiency of the machine tools. Summary of the invention

[0010] The object of the present invention is to provide a temperature compensation method, system and readable storage medium for a CNC machine tool, so as to at least solve the problem that the temperature compensation method for CNC machine tools in the above-mentioned prior art affects the machining efficiency of the machine tool.

[0011] Specifically, in order to at least solve the above technical problems, the present invention provides the following technical solutions:

[0012] A temperature compensation method for a numerically controlled machine tool, wherein the numerically controlled machine tool is provided with a plurality of temperature detection points, comprising:

[0013] According to the correlation between the temperature detection points, a key temperature detection point is obtained from the multiple temperature detection points, and the following temperature compensation model is obtained according to each key temperature detection point:

[0014]

[0015] Where E Z is the temperature compensation value, Ω is the number of key temperature detection points, k ω is the model coefficient of the ωth key temperature detection point, is the temperature rise value of the ωth key temperature detection point;

[0016] Obtain the coordinate values ​​of the set data system, the initial position of the test rod, and the initial temperature values ​​of each key temperature detection point;

[0017] When the processing time of the test piece reaches the set time, the machine tool tool is replaced with a test rod, and then the temperature detection is performed, wherein the temperature detection includes: controlling the test rod to move to the set data system coordinate value, obtaining the current position of the test rod and the current temperature value of each key temperature detection point;

[0018] Obtaining a thermal error according to the initial position and the current position of the inspection rod, and judging whether the temperature compensation model fails according to the thermal error;

[0019] If it does not fail, the current temperature value and initial temperature value of each key temperature detection point are obtained to obtain the temperature rise value of each key temperature detection point, and the temperature rise value of each key temperature detection point is brought into the above temperature compensation model to obtain the temperature compensation value

[0020] If it fails, the temperature detection is performed multiple times on each key temperature detection point, and the temperature compensation model is corrected according to the detection results.

[0021] According to an embodiment of the present invention, the detection result corrects the temperature compensation model, including:

[0022] According to the detection results, the temperature rise to each temperature detection and the temperature rise value of each temperature detection point during each temperature detection are obtained;

[0023] The temperature rise of each temperature detection and the temperature rise value of each temperature detection point during each temperature detection are input into the following formula to obtain the corrected model coefficient of each key temperature detection point:

[0024]

[0025] in, is the temperature rise value of the ωth key temperature detection point, ΔE tn is the thermal error during the nth temperature detection, is the model coefficient of the ωth key temperature detection point after correction;

[0026] According to the corrected model coefficients of each key temperature detection point, a corrected temperature compensation model is obtained.

[0027] According to an embodiment of the present invention, acquiring a key temperature detection point from the plurality of temperature detection points according to the correlation between the temperature detection points includes:

[0028] When the processing time of the test piece reaches the set time, the machine tool tool is replaced with a test rod, and then the temperature detection is performed multiple times to obtain multiple current positions of the test rod and multiple current temperature values ​​of each temperature detection point;

[0029] According to the current position of the inspection rod and the initial position of the inspection rod obtained during each temperature detection, the thermal error of each temperature detection is obtained;

[0030] According to the current temperature value of each temperature detection point obtained during each temperature detection and the initial temperature value of each temperature detection point, the temperature rise value of each temperature detection point during each temperature detection is obtained.

[0031] According to the thermal error during each temperature detection and the temperature rise value of each temperature detection point, the correlation between the temperature detection points is obtained, and the key temperature detection point is obtained from the temperature detection points according to the correlation.

[0032] According to one embodiment of the present invention, it also includes:

[0033] After obtaining multiple current positions of the test rod and multiple current temperature values ​​of each temperature detection point;

[0034] If the multiple current positions of the test rod meet the first set condition, and the multiple current temperatures of each temperature detection point meet the second set condition, retaining the obtained multiple current positions of the test rod and the multiple current temperature values ​​of each temperature detection point;

[0035] Otherwise, the temperature detection is repeated multiple times.

[0036] According to an embodiment of the present invention, acquiring a key temperature detection point from the plurality of temperature detection points according to the correlation between the temperature detection points includes:

[0037] According to the thermal errors during the above multiple temperature detections and the temperature rise values ​​of each temperature detection point, the Pearson correlation coefficients between the temperature detection points and the absolute values ​​of the Pearson correlation coefficients between each temperature detection point and the thermal errors are calculated;

[0038] According to the Pearson correlation coefficients between the temperature detection points and the Pearson correlation coefficients between the temperature detection points and the thermal error, the replaceable temperature detection points are selected from the temperature detection points;

[0039] Critical temperature detection points are selected from the irreplaceable temperature detection points.

[0040] According to an embodiment of the present invention, the step of selecting key temperature detection points from the irreplaceable temperature detection points includes:

[0041] When the number of the irreplaceable temperature detection point is one, the irreplaceable detection position is used as a key temperature detection point;

[0042] When there are multiple irreplaceable temperature detection points, the irreplaceable temperature detection points satisfying the third preset condition are obtained, and the irreplaceable temperature detection points satisfying the third preset condition are used as the key temperature detection points.

[0043] According to an embodiment of the present invention, the step of obtaining the irreplaceable temperature detection point that satisfies the third preset condition includes:

[0044] Obtaining an initial determination model of temperature detection points;

[0045] The detection position and thermal error of each irreplaceable temperature detection point are respectively brought into the initial judgment model to obtain the judgment model of each irreplaceable temperature detection point. The judgment model is:

[0046]

[0047] in represents the nth measurement value of the γth irreplaceable temperature detection point, Y γ is the coefficient of the determination model corresponding to the γth irreplaceable temperature detection point, Γ is the number of irreplaceable temperature detection points, and M is the number of temperature detections;

[0048] If the coefficient of the determination model for an irreplaceable temperature detection point is not zero when the determination model outputs a minimum value, it is determined that the irreplaceable temperature detection point meets the third preset condition point.

[0049] According to an embodiment of the present invention, judging whether the temperature compensation model fails according to the thermal error includes:

[0050] It is determined whether the thermal error is greater than a set error threshold. If so, it is determined that the temperature compensation model fails.

[0051] A temperature compensation system for a numerically controlled machine tool comprises a processor and a memory, wherein the memory stores a computer program for being executed on the processor, and when the processor executes the computer program, the temperature compensation method for the numerically controlled machine tool described in any one of the above embodiments is implemented.

[0052] A computer-readable storage medium stores a computer program for execution on a processor, and when the processor executes the computer program, the temperature compensation method for a CNC machine tool described in any one of the above embodiments is implemented.

[0053] The technical solution provided by the present invention obtains key temperature detection points from multiple temperature detection points based on the correlation between each temperature detection point, obtains a temperature compensation model based on each key temperature detection point, and when the temperature compensation model fails, performs the temperature detection on each key temperature detection point multiple times, and corrects the temperature compensation model based on the detection results. Since the technical solution of the present invention can measure the thermal errors of multiple temperature detection points at one time through key temperature detection points, it can reduce the occupancy time of the machine tool workbench and reduce the impact on the machine tool processing efficiency. In addition, the technical solution of the present invention has a small amount of calculation, has low hardware requirements for the system, and can reduce the cost of the system.

[0054] Based on the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will become more aware of the above and other objects, advantages and features of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Hereinafter, some specific embodiments of the present invention will be described in detail in an exemplary and non-limiting manner with reference to the accompanying drawings. The same reference numerals in the accompanying drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the accompanying drawings:

[0056] Figure 1 is a schematic structural diagram of a CNC machine tool according to an embodiment of the present invention;

[0057] Figure 2 is a partial schematic diagram of a CNC machine tool according to an embodiment of the present invention;

[0058] Figure 3 is a schematic structural diagram of an eddy current sensor according to an embodiment of the present invention;

[0059] Figure 4 is a flow chart of a temperature compensation method for a CNC machine tool according to an embodiment of the present invention;

[0060] Figure 5 is a flow chart of obtaining a key temperature detection point from each temperature detection point according to an embodiment of the present invention;

[0061] Figure 6 is a flow chart of obtaining a key temperature detection point from each temperature detection point according to the correlation between each temperature detection point according to an embodiment of the present invention;

[0062] Figure 7 The flowchart of obtaining the irreplaceable temperature detection point satisfying the third preset condition according to an embodiment of the present invention. DETAILED DESCRIPTION

[0063] See also Figure 1 , Figure 2 , Figure 3 and Figure 4 , wherein the CNC machine tool 1 has a spindle 2, the bottom of the spindle 2 is provided with a tool mounting portion, the tool mounting portion includes a base 53, a trapezoidal block 51 is provided below the base 53, and the trapezoidal block 51 is embedded in a trapezoidal groove on the workbench of the CNC machine tool; the substrate 52 and the substrate 54 are both connected to the base 53, and the substrate 52 is perpendicular to the substrate 54. The eddy current sensor includes a coil 42, a coil 43, a coil 44 and a coil 45, the control board is connected to the coil 42, the coil 43, the coil 44 and the coil 45, and the coil 41 and the coil 43 are arranged on the substrate 52, the coil 42 and the coil 44 are arranged on the substrate 54, and the coil 45 is arranged on the base 53, and the coil 42, the coil 43, the coil 44 and the coil 45 are used to detect the position of the inspection rod. In this application, the inspection rod is a cylinder connected to a machine tool handle, which can be automatically installed to the tool installation position through the switching program of the CNC machine tool. Temperature detection points are set near each heat source of the CNC machine tool 1, and temperature sensors are installed at each temperature detection point to detect the temperature value of each dimensional detection position, wherein the installation position of the temperature sensor does not interfere with the normal processing operation of the CNC machine tool 1.

[0064] like Figure 4 As shown, the temperature compensation method of the CNC machine tool of the present application includes the following steps:

[0065] Step S1: according to the correlation between the temperature detection points, a key temperature detection point is obtained from a plurality of temperature detection points, and a thermal error compensation model is established according to the key temperature detection points.

[0066] In this step S1, a temperature detection point with a strong correlation with other temperature detection points can be obtained from each temperature detection point as a key temperature detection point, and a thermal error compensation model can be established according to each key temperature detection point, which can reduce the amount of data in the thermal error compensation model. In this embodiment, the thermal error compensation model established according to each key temperature detection point is:

[0067]

[0068] Where E Z is the temperature compensation value, Ω is the number of key temperature detection points, k ω is the model coefficient of the ωth key temperature detection point, is the temperature rise value of the ωth key temperature detection point.

[0069] Step S2: Obtain the coordinate values ​​of the set data system, the initial position of the test rod, and the initial temperature values ​​of each key temperature detection point. In this embodiment, the initial position of the test rod is E t0 , the initial temperature value of the ωth key temperature detection point is

[0070] Step S3: When the processing time of the test piece reaches the set time, the machine tool tool is replaced with a test rod, and then the temperature detection is performed. The temperature detection includes: controlling the test rod to move to the set data system coordinate value, obtaining the current position of the test rod and the current temperature value of each key temperature detection point. Let the current position of the test rod obtained by the nth temperature detection be E t , T of the ωth critical temperature detection point ** ω .

[0071] In this step S3, the set time length can be set according to demand. For example, the set time length can be set to 3 minutes, that is, the machine tool tool is replaced with the inspection rod every 3 minutes.

[0072] Step S4: obtaining a thermal error according to the initial position and the current position of the inspection rod, and judging whether the temperature compensation model is invalid according to the thermal error.

[0073] If it does not fail, the current temperature value and the initial temperature value of each key temperature detection point are obtained to obtain the temperature rise value of each key temperature detection point, and the temperature rise value of each key temperature detection point is brought into the above-mentioned temperature compensation model to obtain the temperature compensation value;

[0074] If it fails, multiple temperature tests are performed on each key temperature detection point, and the temperature compensation model is corrected according to the test results.

[0075] In this embodiment, assuming that the thermal error is ΔE, the thermal error can be calculated by the following formula:

[0076] ΔE=E t -Et0

[0077] After calculating the thermal error ΔE, it is determined whether it is greater than a set error threshold. If so, it can be determined that the temperature compensation model has failed. Otherwise, it is determined that the temperature compensation model has not failed.

[0078] If the temperature compensation model does not fail, the temperature rise value of each key temperature detection point is calculated based on the current temperature value and initial temperature value of each key temperature detection point, and the temperature rise value of each key temperature detection point is substituted into the above temperature compensation model to obtain the corresponding temperature compensation value.

[0079] In this embodiment, taking the ωth key temperature detection point as an example, the calculation formula for the temperature rise value of the ωth key temperature detection point is:

[0080]

[0081] If the temperature compensation model fails, multiple temperature detections are performed on each key temperature detection point, and the temperature compensation model is corrected based on the results of the multiple temperature detections.

[0082] The above-mentioned correction of the temperature compensation model refers to the correction of the model coefficients of each key temperature detection point to improve the accuracy of the temperature compensation value. The correction method of the temperature compensation model is described below by taking an implementation as an example.

[0083] In one embodiment, when the temperature compensation model fails, N temperature detections are performed on each key temperature detection point, and the detection results obtained include N current positions of the test rod and N current temperatures of each key temperature detection point. The current position of the test rod obtained by the nth temperature detection is assumed to be E. tn , the current temperature value of the ωth key temperature detection point is

[0084] After obtaining the test results, the thermal error of each temperature test and the temperature rise value of each key temperature test point are calculated, where the thermal error ΔE at the nth temperature test is tn for

[0085] ΔE tn =E tn -E t0

[0086] The temperature rise value of the ωth key temperature detection point during the nth temperature detection is

[0087]

[0088] Then substitute the thermal error of each temperature detection, the temperature rise value of each key temperature detection point, and the model coefficient of each key temperature detection point in the temperature compensation model into the following formula to obtain the corrected model coefficient of each key temperature detection point:

[0089]

[0090] in is the model coefficient of the ωth critical temperature detection point after correction.

[0091] The model coefficients of each key temperature detection point in the temperature compensation model are replaced with the corrected model coefficients of each key temperature detection point to obtain a corrected temperature compensation model. The corrected temperature compensation model obtained by this embodiment is:

[0092]

[0093] In one embodiment, the method for obtaining the set data system coordinate value, the initial position of the inspection rod, and the initial temperature value of each key temperature detection point in the above step S2 includes: when the CNC machine tool is started, the inspection rod is installed on the CNC machine tool; when the inspection rod moves to the set position of the range of the position detection device, the above-mentioned set data system coordinate value is obtained.

[0094] The above-mentioned set position can be the middle position of the range of the position detection device, that is, the half-range position of the position detection device. When the position detection device detects that the inspection rod has moved to this position, the coordinate value of the inspection rod in the system coordinate system of the CNC machine tool is obtained, and the coordinate value is the above-mentioned set data system coordinate value.

[0095] When obtaining the initial temperature value of each temperature detection point, the set position of the measuring range of the position detection device is used as the initial position of the inspection rod, and when the inspection rod is moved to the set position of the measuring range of the position detection device, the temperature value of each temperature detection point is obtained, and the temperature detection value is the initial temperature value of each temperature detection point.

[0096] Alternatively, before the CNC machine tool is operated, an inspection rod is installed on the CNC machine tool; when the inspection rod moves to the coordinate value of the above-mentioned set data system, the position of the inspection rod is detected by a position detection device, and the position is used as the initial position of the inspection rod; and at this time, the temperature value of each temperature detection point is detected by a sensor at each position, and the temperature value of each temperature detection point is used as the initial position and the initial temperature value of each temperature detection point.

[0097] In one embodiment, in the above step S1, according to the correlation between the temperature detection points, the process of obtaining the key temperature detection point from the temperature detection points is as follows: Figure 5 As shown, including:

[0098] Step S11: When the processing time of the test piece reaches the set time, the machine tool tool is replaced with a test rod, and then multiple temperature tests are performed to obtain multiple current positions of the test rod and multiple current temperature values ​​of each temperature test point. The current position of the test rod obtained during the nth test is set as E. tn , the current temperature value of the i-th temperature detection point is Ti tn .

[0099] Step S12: According to the current position of the test rod and the initial position of the test rod obtained during each temperature detection, the thermal error of each temperature detection is obtained. Taking the nth temperature detection as an example, the thermal error ΔE of the nth temperature detection is obtained. tn for:

[0100] ΔE tn =E tn -E t0

[0101] Step S13: According to the current temperature value of each temperature detection point and the initial temperature value of each temperature detection point obtained during each temperature detection, the temperature rise value of each temperature detection point during each temperature detection is obtained. Taking the i-th temperature detection point during the n-th temperature detection as an example, its temperature rise value ΔTi tn for:

[0102] ΔTi tn =Ti tn -Ti t0

[0103] Among them, Ti t0 is the initial temperature value of the i-th temperature detection point.

[0104] Step S14: according to the thermal error during each temperature detection and the temperature rise value of each temperature detection point, the correlation between the temperature detection points is obtained, and the key temperature detection point is obtained from the temperature detection points according to the correlation.

[0105] In one embodiment, after obtaining the multiple current positions of the test stick and the multiple current temperature values ​​of each temperature detection point in the above step S11, the obtained multiple current positions of the test stick and the multiple current temperature values ​​of each temperature detection point are verified, and the verification method is: when the multiple current positions of the test stick meet the first setting condition, and the multiple current temperatures of each temperature detection point meet the second setting condition, it is judged that the obtained multiple current positions of the test stick and the multiple current temperature values ​​of each temperature detection point meet the requirements, and the obtained multiple current positions of the test stick and the multiple current temperature values ​​of each temperature detection point are retained; otherwise, the obtained multiple current positions of the test stick and the multiple current temperature values ​​of each temperature detection point are deleted, and multiple temperature detections are performed again.

[0106] In this embodiment, the first preset condition is: the extreme value of the position change is less than 5% of the average value, and the second preset condition is: the extreme value of the current temperature value change is less than 1°C. That is, in this embodiment, the difference between the maximum and minimum values ​​in the multiple current positions is calculated to obtain the extreme value of the position change, and the average value of each current position, and then the wallpaper of the extreme value of the position change and the average value of each current position is calculated to determine whether the ratio is less than 5%. If it is less than, it is determined that; when multiple current positions meet the first set condition. Then calculate the difference between the maximum and minimum values ​​of the multiple current temperature values ​​of each temperature detection point. If the difference between the maximum and minimum values ​​of the current temperature values ​​of each temperature detection point is less than 1°C, it is determined that the multiple current temperatures meet the second set condition.

[0107] In one embodiment, in the above step S14, the process of obtaining the key temperature detection point from each temperature detection point according to the correlation between each temperature detection point is as follows: Figure 6 As shown, including:

[0108] Step S101: Calculate the Pearson correlation coefficient between each temperature detection point and the absolute value of the Pearson correlation coefficient between each temperature detection point and the thermal error according to the thermal errors during the above multiple temperature detections and the temperature rise value of each temperature detection point.

[0109] In step S101, the absolute value R of the Pearson correlation coefficient between the i-th temperature detection point and the j-th temperature detection point is calculated. Ti,Tj The absolute value of the Pearson correlation coefficient between the ith temperature detection point and the thermal error is R Ti,E .

[0110] Step S102: selecting the replaceable temperature detection points from the temperature detection points according to the Pearson correlation coefficients between the temperature detection points and the Pearson correlation coefficients between the temperature detection points and the thermal error.

[0111] In this step S102, for the ith temperature detection point, for any other temperature detection point, taking the jth temperature detection point as an example, if the following conditions are met, then the temperature detection point is determined to be an irreplaceable temperature detection point:

[0112] R Ti,E >R Tj,E or R Ti,E >R Ti,Tj

[0113] Step S103: selecting key temperature detection points from the above irreplaceable temperature detection points.

[0114] In one embodiment, the above-mentioned screening out key temperature detection points from the above-mentioned irreplaceable temperature detection points includes:

[0115] If the number of irreplaceable temperature detection points is one, the irreplaceable detection position is used as the key temperature detection point;

[0116] If there are multiple irreplaceable temperature detection points, the irreplaceable temperature detection points satisfying the third preset condition are obtained, and the irreplaceable temperature detection points satisfying the third preset condition are used as key temperature detection points.

[0117] In one embodiment, the process of obtaining the irreplaceable temperature detection point that meets the third preset condition is as follows: Figure 7 As shown, including:

[0118] Step S111: obtaining an initial determination model of the temperature detection point.

[0119] In this embodiment, the initial determination model of the temperature detection point is:

[0120]

[0121] in represents the nth measurement value of the γth irreplaceable temperature detection point, Y γ is the coefficient of the determination model corresponding to the γth irreplaceable temperature detection point, Γ is the number of irreplaceable temperature measurement points, and M is the number of temperature detections.

[0122] Step S112: bringing the temperature rise value and thermal error of each irreplaceable temperature detection point into the above initial determination model respectively, to obtain the determination model of each irreplaceable temperature detection point.

[0123] Step S113: If there is an irreplaceable temperature detection point, when the determination model outputs the minimum value, the coefficient thereof is not zero, that is, k γ If the value of is not zero, it is judged that the irreplaceable temperature detection point meets the third preset condition, that is, the irreplaceable temperature detection point is a key temperature detection point; otherwise, it is judged that the irreplaceable temperature detection point does not meet the third preset condition, that is, the irreplaceable temperature detection point is not a key temperature detection point.

[0124] The present invention also provides a temperature compensation system for a numerically controlled machine tool, the system comprising a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus. The processor is used to provide computing and control capabilities. The memory comprises a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer program instructions. The internal memory provides an environment for the operation of the operating system and computer program instructions in the non-volatile storage medium. The communication interface of the above-mentioned device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, NFC (near field communication) or other technologies. The temperature compensation system for a numerically controlled machine tool provided in this embodiment, wherein the memory is used to store computer program instructions, and when the computer program instructions are executed by the processor, multiple embodiments of the temperature compensation method for the above-mentioned numerically controlled machine tool can be implemented.

[0125] The present invention also provides a computer-readable storage medium. Personnel with ordinary technical skills in the art can understand that all or part of the processes in the above-mentioned temperature compensation method embodiment of the numerical control machine tool can be completed by instructing the relevant hardware through computer program instructions, and the above-mentioned computer program instructions can be stored in a non-volatile computer-readable storage medium. When the computer program instructions are executed, they may include the processes of the above-mentioned method embodiments. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0126] At this point, those skilled in the art should recognize that, although multiple exemplary embodiments of the present invention have been shown and described in detail herein, many other variations or modifications that conform to the principles of the present invention can still be directly determined or derived based on the content disclosed in the present invention without departing from the spirit and scope of the present invention. Therefore, the scope of the present invention should be understood and recognized as covering all these other variations or modifications.

Claims

1. A temperature compensation method for a CNC machine tool, wherein the CNC machine tool is provided with a plurality of temperature detection points, It is characterized in that include: According to the correlation between the temperature detection points, a key temperature detection point is obtained from the multiple temperature detection points, and the following temperature compensation model is obtained according to each key temperature detection point: Where E Z is the temperature compensation value, Ω is the number of key temperature detection points, k ω is the model coefficient of the ωth key temperature detection point, is the temperature rise value of the ωth key temperature detection point; Obtain the coordinate values ​​of the set data system, the initial position of the test rod, and the initial temperature values ​​of each key temperature detection point; When the processing time of the test piece reaches the set time, the machine tool tool is replaced with a test rod, and then the temperature detection is performed, wherein the temperature detection includes: controlling the test rod to move to the set data system coordinate value, obtaining the current position of the test rod and the current temperature value of each key temperature detection point; Obtaining a thermal error according to the initial position and the current position of the inspection rod, and judging whether the temperature compensation model fails according to the thermal error; If it does not fail, the current temperature value and the initial temperature value of each key temperature detection point are obtained to obtain the temperature rise value of each key temperature detection point, and the temperature rise value of each key temperature detection point is brought into the above-mentioned temperature compensation model to obtain the temperature compensation value; If it fails, the temperature detection is performed multiple times on each key temperature detection point, and the temperature compensation model is corrected according to the detection results; The step of acquiring a key temperature detection point from the plurality of temperature detection points according to the correlation between the temperature detection points comprises: When the processing time of the test piece reaches the set time, the machine tool tool is replaced with a test rod, and then the temperature detection is performed multiple times to obtain multiple current positions of the test rod and multiple current temperature values ​​of each temperature detection point; According to the current position of the inspection rod and the initial position of the inspection rod obtained during each temperature detection, the thermal error of each temperature detection is obtained; According to the current temperature value of each temperature detection point and the initial temperature value of each temperature detection point obtained during each temperature detection, the temperature rise value of each temperature detection point during each temperature detection is obtained; According to the thermal error during each temperature detection and the temperature rise value of each temperature detection point, the correlation between the temperature detection points is obtained, and the key temperature detection point is obtained from each temperature detection point according to the correlation; The step of acquiring a key temperature detection point from the plurality of temperature detection points according to the correlation between the temperature detection points comprises: According to the thermal errors during the above multiple temperature detections and the temperature rise values ​​of each temperature detection point, the Pearson correlation coefficients between the temperature detection points and the absolute values ​​of the Pearson correlation coefficients between each temperature detection point and the thermal errors are calculated; According to the Pearson correlation coefficients between the temperature detection points and the Pearson correlation coefficients between the temperature detection points and the thermal error, the irreplaceable temperature detection points are selected from the temperature detection points; Selecting key temperature detection points from the irreplaceable temperature detection points; The step of selecting key temperature detection points from the irreplaceable temperature detection points includes: When the number of the irreplaceable temperature detection point is one, the irreplaceable temperature detection point is used as a key temperature detection point; When there are multiple irreplaceable temperature detection points, obtaining the irreplaceable temperature detection points that meet the third preset condition, and using the irreplaceable temperature detection points that meet the third preset condition as the key temperature detection points; Obtaining an initial determination model of temperature detection points; The detection position and thermal error of each irreplaceable temperature detection point are respectively brought into the initial judgment model to obtain the judgment model of each irreplaceable temperature detection point. The judgment model is: in represents the nth measurement value of the γth irreplaceable temperature detection point, Y γ is the coefficient of the determination model corresponding to the γth irreplaceable temperature detection point, Γ is the number of irreplaceable temperature detection points, and M is the number of temperature detections; If the coefficient of the determination model for an irreplaceable temperature detection point is not zero when the determination model outputs a minimum value, it is determined that the irreplaceable temperature detection point meets the third preset condition point.

2. The temperature compensation method for a CNC machine tool according to claim 1, It is characterized in that Also includes: After obtaining multiple current positions of the test rod and multiple current temperature values ​​of each temperature detection point; If the multiple current positions of the test rod meet the first set condition, and the multiple current temperatures of each temperature detection point meet the second set condition, retaining the obtained multiple current positions of the test rod and the multiple current temperature values ​​of each temperature detection point; Otherwise, the temperature detection is repeated multiple times.

3. The temperature compensation method for a CNC machine tool according to claim 1, It is characterized in that The step of judging whether the temperature compensation model fails according to the thermal error includes: It is determined whether the thermal error is greater than a set error threshold. If so, it is determined that the temperature compensation model fails.

4. A temperature compensation system for a numerically controlled machine tool, comprising a processor and a memory, It is characterized in that The memory stores a computer program for execution on the processor, and when the processor executes the computer program, the temperature compensation method for a CNC machine tool as described in any one of claims 1 to 3 is implemented.

5. A computer-readable storage medium, It is characterized in that The readable storage medium stores a computer program for execution on a processor, and when the processor executes the computer program, the temperature compensation method for a CNC machine tool as described in any one of claims 1 to 3 is implemented.