Machine tool error detection method and detection device

By installing temperature and position sensors on the machine tool, the mapping relationship between the temperature of the main worktable and the lead screw is obtained, which solves the error problem caused by thermal expansion and contraction of the machine tool, and realizes high-precision error compensation and machining accuracy improvement.

CN116460660BActive Publication Date: 2026-06-05NANTONG GUOSHENG INTELLIGENCE TECH GRP CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NANTONG GUOSHENG INTELLIGENCE TECH GRP CO LTD
Filing Date
2023-05-12
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

During machine tool processing, the frictional heat generated by the relative movement between transmission components causes the lead screw to expand and contract, resulting in displacement changes in the positioning of the machine tool's moving axis, which in turn leads to errors in the machining of the workpiece.

Method used

By installing temperature and position sensors on the machine tool, the mapping relationship between the offset of the main worktable in different directions and the temperature of the lead screw is obtained, and these mapping relationships are used for error compensation.

Benefits of technology

It enables precise detection and compensation of machine tool errors, thereby improving machining accuracy and product qualification rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116460660B_ABST
    Figure CN116460660B_ABST
Patent Text Reader

Abstract

The application discloses a machine tool error detection method and a detection device thereof. The detection method comprises the following steps: controlling a workbench to move to a test position, controlling a position sensor to obtain position information of a first reference point as first initial position information, and controlling a first temperature sensor to obtain the temperature of a first lead screw as a first initial lead screw temperature; controlling a main workbench to perform a preset number of test runs to obtain a preset number of first position information and a preset number of first lead screw temperatures; and obtaining a mapping relationship between the offset of the main workbench in the first direction and the temperature of the first lead screw by using the first initial position information, the preset number of first position information, the first initial lead screw temperature and the preset number of first lead screw temperatures. Thus, the temperature of the first lead screw can be obtained in the normal working process of the main workbench, and the offset of the main workbench in the first direction can be adjusted according to the relevant mapping relationship to perform error compensation, improve the machining precision, and the detection method is simple, fast and high in precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of mechanical equipment technology, specifically relating to machine tool error detection methods and detection devices. Background Technology

[0002] In the field of machining, high-precision parts require high-precision equipment for processing. High-precision machine tools have extremely high requirements for the stability of the transmission system. During machine tool processing, there is relative motion between transmission components. The ball screw of the CNC machine tool heats up under the action of friction, causing the moving parts of the screw to expand and contract thermally. This causes displacement changes in the positioning of the CNC machine tool's moving axis, resulting in errors in the processed workpiece. Summary of the Invention

[0003] This application provides a machine tool error detection method and detection device to solve the technical problem of axial error detection in machine tools.

[0004] To solve the above-mentioned technical problems, one technical solution adopted in this application is as follows: The main worktable is controlled to move along the first direction to the test position; the position sensor is controlled to acquire the position information of the first reference point as the first initial position information; the first temperature sensor is controlled to acquire the temperature of the first lead screw as the first initial lead screw temperature; the main worktable is controlled to perform a preset number of test runs to acquire a preset number of first position information and a preset number of first lead screw temperatures. Each test run includes: controlling the first lead screw to rotate alternately in both directions for a preset time, so that the main worktable moves back and forth along the first direction for a preset time; controlling the main worktable to return to the test position; controlling the position sensor to acquire the position information of the first reference point as the first position information; controlling the first temperature sensor to acquire the temperature of the first lead screw as the first lead screw temperature; and using the first initial position information, the preset number of first position information, the first initial lead screw temperature, and the preset number of first lead screw temperatures, the mapping relationship between the offset of the main worktable in the first direction and the temperature of the first lead screw is obtained.

[0005] The first reference point includes a plurality of first sub-reference points disposed on the main working surface along the first direction; the step of controlling the main working table to move along the first direction or return to the test position and controlling the position sensor to obtain the position information of the first reference point includes: controlling the plurality of first sub-reference points to move sequentially to the test position and controlling the position sensor to obtain the position information of the plurality of first sub-reference points sequentially.

[0006] The first lead screw includes a fixed end. The step of obtaining the mapping relationship between the offset of the main worktable in the first direction and the temperature of the first lead screw using the first initial position information, the first initial lead screw temperature, a preset number of first position information points, and a preset number of first lead screw temperatures includes: calculating a preset number of offsets in the first direction for each first sub-reference point using the first initial position information of the plurality of first sub-reference points and a preset number of first position information points of the plurality of sub-first sub-reference points; the preset number of offsets in the first direction for different first sub-reference points are positively correlated with the distance between the first sub-reference point and the fixed end; and obtaining the mapping relationship between the offset of the main worktable in the first direction, the temperature of the first lead screw, and the position of the main worktable in the first direction using the preset number of offsets of each first sub-reference point in the first direction, the initial lead screw temperature, and the preset number of first lead screw temperatures.

[0007] The position sensor is a dial indicator, and a sensing block is provided on each first reference point. The machine tool also includes a column and a spindle box. The column is disposed on the machine base, and the spindle box is movably disposed on the column along a second direction, which is perpendicular to the main working surface. Controlling the main worktable to move along the first direction or return to the test position, and controlling the position sensor to obtain the position information of the first reference point, includes: controlling the dial indicator to descend to the first position along the second direction, controlling the main worktable to move along the first direction to the test position, and the detection end of the dial indicator being in contact with the side wall of the sensing block to obtain the position information of the first reference point.

[0008] Before each test run is performed by controlling the main workbench, the method further includes: controlling the dial indicator to rise to a second position along the second direction, wherein the height of the lowest point of the dial indicator is higher than the height of the highest point of the sensing block.

[0009] Specifically, the temperature error compensation for the movement of the main worktable in the first direction is performed by utilizing the mapping relationship between the offset of the main worktable in the first direction and the temperature of the first lead screw.

[0010] The machine tool further includes an ambient temperature sensor disposed within the machine tool. When controlling the first temperature sensor to acquire the temperature of the first lead screw, the detection method further includes controlling the ambient temperature sensor to acquire the ambient temperature. The step of using the first initial position information, a preset number of first position information values, the first initial lead screw temperature, and a preset number of first lead screw temperatures to obtain the mapping relationship between the offset of the main worktable in the first direction and the temperature of the first lead screw includes: using the first initial position information, a preset number of first position information values, the first initial lead screw temperature, a preset number of first lead screw temperatures, and the ambient temperature to obtain the mapping relationship between the offset of the main worktable in the first direction and the temperature of the first lead screw and the ambient temperature.

[0011] The machine tool further includes a second driving component, which drives the main worktable to be movably disposed on the machine base along a third direction. The second driving component includes a second lead screw disposed along the third direction, which rotates to move the main worktable. A second reference point is disposed on the main working surface, and the third direction is perpendicular to the first direction. The detection component includes a second temperature sensor and a position sensor. The second temperature sensor is disposed adjacent to the second lead screw. The detection method includes: controlling the main worktable to move along the third direction to a test position; controlling the position sensor to acquire the position information of the second reference point as second initial position information; controlling the second temperature sensor to acquire the temperature of the second lead screw as second initial lead screw temperature; controlling the... The main worktable performs a preset number of test runs to obtain a preset number of second position information and a preset number of second lead screw temperatures. Each test run includes: controlling the second lead screw to rotate repeatedly for a second preset time, so that the main worktable moves back and forth along the third direction for a second preset time; controlling the main worktable to return to the test position; controlling the position sensor to obtain the position information of the second reference point as the second position information; controlling the second temperature sensor to obtain the temperature of the second lead screw as the second lead screw temperature; and using the second initial position information, the preset number of second position information, the second initial lead screw temperature, and the preset number of second lead screw temperatures, obtaining the mapping relationship between the offset of the main worktable in the third direction and the temperature of the second lead screw.

[0012] The second reference point includes a plurality of second sub-reference points disposed on the main working surface along the third direction; controlling the main working table to move or return to the test position along the third direction and controlling the position sensor to obtain the position information of the second reference point includes: controlling the plurality of second sub-reference points to move sequentially to the test position and controlling the position sensor to obtain the position information of the plurality of second sub-reference points sequentially.

[0013] Specifically, the temperature error compensation for the movement of the main worktable in the third direction is performed by utilizing the mapping relationship between the offset of the main worktable in the third direction and the temperature of the second lead screw.

[0014] To solve the above-mentioned technical problems, another technical solution adopted in this application is: a computer-readable storage medium storing program data thereon, wherein the program data is executed by a processor to implement the above-mentioned detection method.

[0015] The beneficial effects of this application are: the machine tool error detection method of this application can obtain the mapping relationship between the offset of the main worktable in the first direction and the temperature of the first lead screw. During the normal operation of the main worktable, the temperature of the first lead screw can be obtained, and then the offset of the main worktable in the first direction can be adjusted according to the relevant mapping relationship to perform error compensation, improve machining accuracy, and the detection method is simple, fast and accurate. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, wherein:

[0017] Figure 1 This is a schematic diagram of the structure of an embodiment of the machine tool of this application;

[0018] Figure 2 This is a schematic flowchart of an embodiment of the machine tool error detection method of this application;

[0019] Figure 3 This is a flowchart illustrating another embodiment of the machine tool error detection method of this application;

[0020] Figure 4 This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium of this application. Detailed Implementation

[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0022] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0023] When a machine tool is in operation, there is relative motion between transmission components. Friction in the machine tool lead screw, nut seat, bearings, etc. generates heat, which leads to thermal expansion and contraction. This causes changes in the displacement of the machine tool's horizontal axis, resulting in errors in the processed workpiece.

[0024] One embodiment of this application provides a machine tool error detection method. Please refer to... Figure 1 , Figure 1 This is a schematic diagram of the machine tool error detection device of this application. The machine tool 100 includes a base 110, a main worktable 120, and a first driving member. The first driving member drives the main worktable 120 to be movably disposed on the base 110 along a first direction x. The first driving member includes a first lead screw 130 disposed along the first direction x, and the rotation of the first lead screw 130 drives the main worktable 120 to move. The main worktable 120 includes a main working surface 121, on which a first reference point 160 is disposed. The machine tool 100 is used to set up a detection assembly 170, which includes a first temperature sensor 172 and a position sensor 171. The first temperature sensor 172 and the first lead screw 130 are disposed adjacent to each other. The first temperature sensor 172 records the temperature change of the first lead screw 130. The position sensor 171 records the position change of the reference point. The changes in data measured by temperature sensor 172 and position sensor 171 can reveal the mapping relationship between the lead screw temperature rise and the offset of the main worktable 120 in the first direction x, providing data for the thermal error compensation system and improving product accuracy and yield.

[0025] Please continue reading. Figure 2 , Figure 2 This is a flowchart illustrating an embodiment of the machine tool error detection method of this application.

[0026] The machine tool 100 error detection method in this application includes:

[0027] S11: Control the main worktable 120 to move along the first direction x to the test position, control the position sensor 171 to obtain the position information of the first reference point 160 as the first initial position information, and control the first temperature sensor 172 to obtain the temperature of the first lead screw 130 as the first initial lead screw temperature.

[0028] The control device controls the main worktable 120 to move along the first direction x to the test position. When the main worktable 120 moves to the test position, the position of the first reference point 160 corresponds to the position sensor 171. The position information of the first reference point 160 can be measured by the position sensor 171 as the first initial position information. At this time, the temperature of the first lead screw 130 detected by the first temperature sensor 172 is the first initial lead screw temperature.

[0029] Specifically, the first reference point 160 includes a plurality of first sub-reference points 161 disposed along the first direction x on the main working surface 121. The main working surface 121 also includes a third direction z perpendicular to the first direction x, and the first reference point 160 may be located at the middle position of the main working surface 121 in the third direction z. The plurality of first sub-reference points can be selected according to the length of the main working surface 121 in the first direction x. For example, one first sub-reference point 161 may be disposed at each of the two ends of the main working surface 121 in the first direction x, and the center position between the two first sub-reference points 161 may be selected to form two first sub-reference points 161. Of course, the number of first sub-reference points 161 can also be two, four, five, or more.

[0030] It should be noted that when the first reference point 160 includes multiple first sub-reference points 161, the first lead screw 130 needs to be controlled to rotate so that the first sub-reference points 161 move sequentially to the test position. The position sensor 171 sequentially senses the position information of the multiple first sub-reference points 161 as the first initial position information of each first sub-reference point 161.

[0031] The first temperature sensor 172 and the first lead screw 130 are arranged adjacent to each other to accurately acquire the temperature change of the first lead screw 130. Specifically, the first temperature sensor 172 is located at the end bearing of the first lead screw 130 to accurately monitor the temperature of the first lead screw 130. When the main worktable 120 is moved along the first direction x to the test position, the first temperature sensor 172 acquires the temperature of the first lead screw 130, and the temperature of the first lead screw 130 is used as the first initial lead screw temperature.

[0032] S12: Control the main worktable 120 to perform a preset number of test runs to obtain a preset number of first position information and a preset number of first screw temperatures.

[0033] Specifically, the control device 190 controls the main worktable 120 to perform a single test run, including: controlling the first lead screw 130 to rotate alternately in both directions for a first preset time, so that the main worktable 120 reciprocates along the first direction x for a first preset time. The main worktable 120 is then controlled to return to the test position. At this time, the position sensor 171 can be controlled to acquire the position information of the first reference point 160 as the first position information, and the first temperature sensor 172 can be controlled to acquire the temperature of the first lead screw 130 as the first lead screw temperature. Through a preset number of test runs, a preset number of first position information and a preset number of first lead screw temperatures can be obtained.

[0034] Because the first lead screw 130 rotates alternately in both directions for a preset period of time, the main worktable 120 includes a first sliding seat that cooperates with the first lead screw 130. Friction exists between the first sliding seat and the first lead screw 130, generating heat. The first lead screw 130 experiences temperature rise and deformation, which affects the movement accuracy of the main worktable 120 in the first direction x. Through multiple test runs simulating normal machine tool operation, the temperature rise change of the first lead screw 130 and the corresponding positional offset change of the main worktable 120 in the first direction x can be obtained.

[0035] It should be noted that the control device controls the main worktable 120 to move to the test position according to the preset program in the control device, which controls the first reference point 160 to move to the corresponding predetermined coordinate. As the temperature of the first lead screw 130 rises, although the control device still controls the first reference point 160 to move to the corresponding predetermined coordinate according to the preset program, the position of the first reference point 160 may have shifted from the position of the first reference point 160 in S11. The position sensor 171 can measure the actual position of the first reference point 160 when it moves to the test position at the initial stage and during each test run, and thus sense the offset of the main worktable 120 in the first direction x.

[0036] When the first reference point 160 includes multiple first sub-reference points 161, multiple first sub-reference points 161 are set on the main worktable 120. Each sub-reference point 161 needs to be measured in sequence. That is, the main worktable 120 is controlled to return to the test position along the first direction x. The position sensor obtains the position information of the first reference point 160 by controlling the main worktable 120 to move along the first direction x so that the multiple first sub-reference points 161 move to the test position in sequence. The position sensor 171 obtains the position information of each first sub-reference point 161 in sequence and records it as the first position information of each first sub-reference point 161.

[0037] In some embodiments, the position sensor is a dial indicator 1711. The machine tool 100 also includes a column 140 and a spindle box 150. The column 140 is disposed on the machine base 110, and the spindle box 150 is movably disposed on the column 140 along the second direction y. The dial indicator 1711 is fixed on the spindle box 150 along the second direction y. When the spindle box 150 moves along the second direction y, it drives the dial indicator 1711 to move along the second direction y. The second direction y is perpendicular to the main worktable 120. The position information of the first reference point 160 is measured using the dial indicator 1711. The measurement structure is simple, low-cost, and the measurement data is accurate. Moreover, the dial indicator 1711 is a commonly used instrument and is readily available, eliminating the need for other high-cost sensors such as photoelectric or infrared sensors. To facilitate the measurement by the dial indicator 1711, a sensing block 180 is provided at each first reference point 160.

[0038] When using a dial indicator 1711 as a position sensor, controlling the main worktable 120 to move along the first direction x or return to the test position, and controlling the position sensor to acquire the position information of the first reference point 160, includes: controlling the spindle box 150 to descend along the second direction y, so that the dial indicator 1711 descends along the second direction y to the first position. When the dial indicator 1711 moves to the first position, the sensing block 180 can contact the detection end of the dial indicator 1711. Controlling the main worktable 120 to move along the first direction x to the test position, the detection end of the dial indicator 1711 is in contact with the side wall of the sensing block 180 and the position information of the first reference point 160 is acquired. When the first reference point 160 includes multiple first sub-reference points 161, each first sub-reference point 161 needs to be equipped with a sensing block 180. The control device 190 controls the first lead screw 130 to rotate so that the first sub-reference points 161 move sequentially to the test position. The position sensor dial indicator 1711 descends along the second direction y to the first position and sequentially senses the position information of each sensing block 180 as the first initial position information of each first sub-reference point 161.

[0039] It should be noted that when the control device 190 controls the main workbench 120 for test operation and controls each sensing block 180 to move alternately to the test position to wait for the dial indicator 1711 to measure the position information, it is necessary to control the dial indicator 1711 to rise along the second direction y to the second position, so that the height of the lowest point of the dial indicator 1711 is higher than the height of the highest point of the sensing block 180, so as to avoid the dial indicator 1711 touching the position of the moving sensing block 180 and affecting the measurement results.

[0040] S13: Using the first initial position information, a preset number of first position information, the first initial lead screw temperature, and a preset number of first lead screw temperatures, obtain the mapping relationship between the offset of the main worktable 120 in the first direction x and the temperature of the first lead screw.

[0041] Typically, with repeated test runs, the cumulative working time of the first lead screw 130 increases, and its temperature gradually rises, causing the offset of the main worktable 120 in the first direction x to change accordingly. By using the initial lead screw temperature and a preset number of first lead screw temperatures, the temperature change of the first lead screw 130 can be obtained. Correspondingly, by using the initial position information and a preset number of first position information, the offset change of the main worktable 120 in the first direction x can be obtained. Furthermore, by comparing the offset change of the main worktable 120 in the first direction x with the temperature change of the first lead screw 130, the mapping relationship between the offset of the main worktable 120 in the first direction x and the temperature of the first lead screw 130 can be established.

[0042] In some embodiments, the first lead screw 130 includes a fixed end, and each first sub-reference point 161 is at a different distance from the fixed end. The temperature rise of the first lead screw 130 varies at different positions of the first lead screw 130, with the temperature rise being more pronounced at positions further from the fixed end. By calculating the initial position information of each first sub-reference point 161 and a preset number of first position information for each first sub-reference point 161, a preset number of offsets of each first sub-reference point 161 in the first direction x can be calculated. Typically, the preset number of offsets of different first sub-reference points 161 in the first direction x are positively correlated with the distance between the first sub-reference point 161 and the fixed end. Using the preset number of offsets of each first sub-reference point 161 in the first direction x, the initial lead screw temperature, and the preset number of first lead screw 130 temperatures, a mapping relationship is obtained between the offset of the main worktable 120 in the first direction x, the temperature of the first lead screw, and the position of the main worktable 120 in the first direction x.

[0043] Therefore, the detection method of this application can not only obtain the relationship between the offset of the main worktable 120 in the first direction x and the temperature of the first lead screw 130, but also obtain the relationship between the offset of the main worktable 120 when it moves to different positions along the first direction x. That is, it obtains the mapping relationship between the offset of the main worktable 120 in the first direction x, the temperature of the first lead screw 130 and the position of the main worktable 120 in the first direction x, and the error detection is more accurate.

[0044] In some embodiments, the machine tool 100 further includes an ambient temperature sensor. The ambient temperature sensor is disposed within the machine tool 100 and is used to measure the overall temperature of the machine tool 100. The ambient temperature sensor can be disposed within the machine tool 100 at a position away from each lead screw to avoid the lead screw temperature affecting the ambient temperature sensor's measurement of the overall temperature of the machine tool 100. When controlling the first temperature sensor 172 to acquire the temperature of the first lead screw 130, the detection method of this embodiment further includes controlling the ambient temperature sensor to acquire the ambient temperature. Therefore, obtaining the mapping relationship between the offset of the main worktable 120 in the first direction x and the temperature of the first lead screw 130 using the first initial position information, a preset number of first position information, the first initial lead screw temperature, and a preset number of first lead screw temperatures includes: obtaining the mapping relationship between the offset of the main worktable 120 in the first direction x and the temperature of the first lead screw 130 and the ambient temperature using the first initial position information, a preset number of first position information, the first initial lead screw temperature, and a preset number of first lead screw temperatures.

[0045] Since changes in ambient temperature can affect the coordination of various components of the machine tool 100, including the first lead screw 130, by measuring the changes in ambient temperature and the temperature of the first lead screw 130, the mapping relationship between the offset of the main worktable 120 in the first direction x and the temperature of the first lead screw 130 and the ambient temperature can be obtained. This can provide more accurate feedback on the change in the offset of the main worktable 120 in the first direction x, and provide accurate data for thermal error compensation of the main worktable 120.

[0046] S14: The temperature error of the movement of the main worktable 120 in the first direction x is compensated by using the mapping relationship between the offset of the main worktable 120 in the first direction x and the temperature of the first lead screw 130.

[0047] The above steps allow us to obtain the mapping relationship between the offset of the main worktable 120 in the first direction x and the temperature of the first lead screw 130. The detection process is simple, quick, and highly accurate. During the normal operation of the main worktable 120, the temperature of the first lead screw 130 can be obtained, and then the offset of the main worktable 120 in the first direction x can be adjusted according to the relevant mapping relationship to compensate for errors and improve machining accuracy.

[0048] In some embodiments, the mapping relationship between the offset of the main worktable 120 in the first direction x and the temperature of the first lead screw 130 and the position of the main worktable 120 in the first direction x can also be obtained. In some embodiments, the mapping relationship between the offset of the main worktable 120 in the first direction x and the temperature of the first lead screw 130 and the ambient temperature can also be obtained. Of course, in some embodiments, the mapping relationship between the offset of the main worktable 120 in the first direction x and the temperature of the first lead screw 130, the ambient temperature, and the position of the main worktable 120 in the first direction x can also be obtained. During the normal operation of the main worktable 120, relevant parameters can be acquired, and then the offset of the main worktable 120 in the first direction x can be adjusted according to the relevant mapping relationship to perform error compensation and improve machining accuracy.

[0049] In addition, such as Figure 1 As shown, the machine tool 100 also includes a second driving component, which drives the main worktable 120 to be movably mounted on the machine base 110 along the third direction z. The second driving component includes a second lead screw arranged along the third direction z, which rotates to move the main worktable 120. A second reference point is provided on the main worktable 120. The first direction x, the second direction y, and the third direction z are mutually perpendicular. The detection component 170 includes a second temperature sensor 173 and a position sensor 171. The second temperature sensor 173 is arranged adjacent to the second lead screw. The second temperature sensor 172 records the temperature change of the second lead screw, and the position sensor 171 records the position change of the reference point. By analyzing the changes in the data measured by the temperature sensor 172, the mapping relationship between the temperature rise of the lead screw and the offset of the main worktable 120 in the third direction z is obtained, providing data for the thermal error compensation system and improving product accuracy and yield.

[0050] Please continue reading. Figure 3 , Figure 3 This is a flowchart illustrating another embodiment of the machine tool error detection method of this application.

[0051] The machine tool 100 error detection method in this application also includes:

[0052] S21: Control the main worktable 120 to move along the third direction z to the test position, control the position sensor 171 to obtain the position information of the second reference point as the second initial position information, and control the second temperature sensor 173 to obtain the temperature of the second lead screw as the second initial lead screw temperature.

[0053] The control device controls the main worktable 120 to move along the third direction z to the test position. When the main worktable 120 moves to the test position, the position of the second reference point corresponds to the position sensor 171. The position information of the second reference point can be measured by the position sensor 171 as the second initial position information. At this time, the second lead screw temperature detected by the second temperature sensor 173 is the second initial lead screw temperature.

[0054] Specifically, the second reference point includes multiple second sub-reference points disposed along the third direction z on the main working surface 121. The second reference point can be located at the midpoint of the main working surface 121 in the first direction x. Multiple reference points can be selected based on the length of the main working surface 121 along the third direction z. For example, one second sub-reference point can be disposed at each end of the main working surface 121 along the third direction z, and the center position between two of these second sub-reference points can be selected to form two second sub-reference points. Of course, the number of second sub-reference points can also be two, four, five, or more.

[0055] It should be noted that when the second reference point includes multiple second sub-reference points, the second lead screw needs to be controlled to rotate so that the second sub-reference points move sequentially to the test position. The position sensor 171 sequentially senses the position information of multiple second sub-reference points as the second initial position information of each second sub-reference point.

[0056] The second temperature sensor 173 is arranged adjacent to the second lead screw to accurately acquire the temperature change of the second lead screw. Specifically, the second temperature sensor 173 is located at the end bearing of the second lead screw to accurately monitor its temperature. When the main worktable 120 moves along the third direction z to the test position, the second temperature sensor 173 acquires the temperature of the second lead screw, which is used as the second initial lead screw temperature.

[0057] S22: Control the main worktable 120 to perform a preset number of test runs to obtain a preset number of second position information and a preset number of second lead screw temperatures.

[0058] Specifically, the control device 190 controls the main worktable 120 to perform a single test run, including: controlling the second lead screw to rotate alternately in both directions for a first preset time, so that the main worktable 120 reciprocates along the third direction z for a first preset time. The main worktable 120 is then controlled to return to the test position. At this time, the position sensor 171 can be controlled to acquire the position information of the second reference point as the second position information, and the second temperature sensor 173 can be controlled to acquire the temperature of the second lead screw as the second lead screw temperature. Through a preset number of test runs, a preset number of second position information and a preset number of second lead screw temperatures can be obtained.

[0059] Due to the alternating forward and reverse rotation of the second lead screw for a preset duration, the main worktable 120 includes a second sliding seat that cooperates with the second lead screw. Friction exists between the second sliding seat and the second lead screw, generating heat. This causes temperature rise and deformation of the lead screw, which affects the movement accuracy of the main worktable 120 in the third direction z. Through multiple test runs simulating normal machine tool operation, the temperature rise change of the second lead screw and the corresponding positional offset change of the main worktable 120 in the third direction z can be obtained.

[0060] It should be noted that the control device controls the main worktable 120 to move to the test position according to the preset program in the control device to control the second reference point to move to the corresponding predetermined coordinate. As the temperature of the second lead screw rises, although the control device still controls the second reference point to move to the corresponding predetermined coordinate according to the preset program, the position of the second reference point may have shifted from the position of the second reference point in S21. The position sensor 171 can measure the actual position of the second reference point when it moves to the test position at the initial stage and during each test run, and thus sense the offset of the main worktable 120 in the third direction z.

[0061] When the second reference point includes multiple second sub-reference points, multiple second sub-reference points are set on the main worktable 120. Each sub-reference point needs to be measured in sequence. That is, the main worktable 120 is controlled to return to the test position along the third direction z. The position sensor 171 controls the position information of the second reference point to be obtained by: controlling the main worktable 120 to move along the third direction z so that the multiple second sub-reference points move to the test position in sequence, and controlling the position sensor 171 to obtain the position information of each second sub-reference point in sequence and record it as the second position information of each second sub-reference point.

[0062] In some embodiments, the position sensor is a dial indicator 1711. The machine tool 100 also includes a column 140 and a spindle box 150. The column 140 is disposed on the machine base 110, and the spindle box 150 is movably disposed on the column 140 along the second direction y. The dial indicator 1711 is fixed on the spindle box 150 along the second direction y. When the spindle box 150 moves along the second direction y, it drives the dial indicator 1711 to move along the second direction y. The second direction y is perpendicular to the main worktable 120. The position information of the second reference point is measured using the dial indicator 1711. The measurement structure is simple, the cost is low, and the measurement data is accurate. Moreover, the dial indicator 1711 is a commonly used instrument and is easy to obtain, eliminating the need for other high-cost sensors such as photoelectric and infrared sensors. To facilitate the measurement by the dial indicator 1711, a sensing block 180 is provided on each reference point.

[0063] When using a dial indicator 1711 as a position sensor, the main worktable 120 is controlled to move or return to the test position along the third direction z, and the position sensor is controlled to acquire the position information of the second reference point. This includes: controlling the spindle box 150 to descend along the second direction y, so that the dial indicator 1711 descends along the second direction y to a first position. When the dial indicator 1711 moves to the first position, the sensing block 180 can contact the detection end of the dial indicator 1711. The main worktable 120 is controlled to move along the third direction z to the test position, and the detection end of the dial indicator 1711 is in contact with the side wall of the sensing block 180 to acquire the position information of the second reference point. When the second reference point includes multiple second sub-reference points, each second sub-reference point needs to be equipped with a sensing block 180. The control device 190 controls the second lead screw to rotate so that the second sub-reference points move sequentially to the test position. The position sensor dial indicator 1711 descends along the second direction y to the first position and sequentially senses the position information of each sensing block 180, which serves as the second initial position information for each second sub-reference point.

[0064] It should be noted that when the control device 190 controls the main workbench 120 for test operation and controls each sensing block 180 to move alternately to the test position to wait for the dial indicator 1711 to measure the position information, it is necessary to control the dial indicator 1711 to rise along the second direction y to the second position, so that the height of the lowest point of the dial indicator 1711 is higher than the height of the highest point of the sensing block 180, so as to avoid the dial indicator 1711 touching the position of the moving sensing block 180 and affecting the measurement results.

[0065] S23: Using the second initial position information, a preset number of second position information, the second initial lead screw temperature, and a preset number of second lead screw temperatures, obtain the mapping relationship between the offset of the main worktable 120 in the third direction z and the temperature of the second lead screw.

[0066] Typically, with repeated test runs, the cumulative working time of the second lead screw increases, and its temperature gradually rises, causing the offset of the main worktable 120 in the third direction (z) to change accordingly. By using the initial second lead screw temperature and a preset number of second lead screw temperatures, the temperature change of the second lead screw can be obtained. Correspondingly, by using the initial second position information and a preset number of second position information, the offset change of the main worktable 120 in the third direction (z) can be obtained. Furthermore, by comparing the offset change of the main worktable 120 in the third direction (z) with the temperature change of the second lead screw, a mapping relationship between the offset of the main worktable 120 in the third direction (z) and the temperature of the second lead screw can be established.

[0067] In some embodiments, the second lead screw includes a fixed end, and each second sub-reference point is at a different distance from the fixed end. The temperature rise of the second lead screw varies at different positions, with the temperature rise typically being more pronounced at positions further from the fixed end. A preset number of offsets in the third direction z can be calculated for each second sub-reference point by calculating its second initial position information and a preset number of second position information values. Generally, the preset number of offsets in the third direction z for different second sub-reference points are positively correlated with the distance between the second sub-reference point and the fixed end. The mapping relationship between the offset of the main worktable 120 in the third direction z, the temperature of the second lead screw, and the position of the main worktable 120 in the third direction z is obtained using the preset number of offsets of each second sub-reference point in the third direction z, the initial lead screw temperature, and the preset number of second lead screw temperatures.

[0068] Therefore, the detection method of this application can not only obtain the relationship between the offset of the main worktable 120 in the third direction z and the temperature of the second lead screw, but also obtain the relationship between the offset of the main worktable 120 when it moves to different positions along the third direction z. That is, it obtains the mapping relationship between the offset of the main worktable 120 in the third direction z and the temperature of the second lead screw and the position of the main worktable 120 in the third direction z, making the error detection more accurate.

[0069] In some embodiments, the machine tool 100 further includes an ambient temperature sensor. The ambient temperature sensor is disposed within the machine tool 100 and is used to measure the overall temperature of the machine tool 100. The ambient temperature sensor can be disposed within the machine tool 100 at a position away from each lead screw to avoid the lead screw temperature affecting the ambient temperature sensor's measurement of the overall temperature of the machine tool 100. When controlling the second temperature sensor 173 to acquire the temperature of the second lead screw, the detection method of this embodiment further includes controlling the ambient temperature sensor to acquire the ambient temperature. Therefore, obtaining the mapping relationship between the offset of the main worktable 120 in the third direction z and the temperature of the second lead screw using the second initial position information, a preset number of second position information, the second initial lead screw temperature, and a preset number of second lead screw temperatures includes: obtaining the mapping relationship between the offset of the main worktable 120 in the third direction z and the temperature of the second lead screw and the ambient temperature using the second initial position information, a preset number of second position information, the second initial lead screw temperature, and a preset number of second lead screw temperatures.

[0070] Since changes in ambient temperature can affect the coordination of various components of the machine tool 100, including the second lead screw, by measuring the changes in ambient temperature and the temperature of the second lead screw, the mapping relationship between the offset of the main worktable 120 in the third direction z and the temperature of the second lead screw and the ambient temperature can be obtained. This can provide more accurate feedback on the change in the offset of the main worktable 120 in the third direction z, and provide accurate data for thermal error compensation of the main worktable 120.

[0071] S24: The temperature error of the movement of the main worktable 120 in the third direction z is compensated by using the mapping relationship between the offset of the main worktable 120 in the third direction z and the temperature of the second lead screw.

[0072] The above steps establish a mapping relationship between the offset of the main worktable 120 in the third direction z and the temperature of the second lead screw. During normal operation of the main worktable 120, the temperature of the second lead screw can be obtained, and the offset of the main worktable 120 in the third direction z can be adjusted according to the relevant mapping relationship to compensate for errors and improve machining accuracy.

[0073] In some embodiments, the mapping relationship between the offset of the main worktable 120 in the third direction z and the temperature of the second lead screw and the position of the main worktable 120 in the third direction z can also be obtained. In some embodiments, the mapping relationship between the offset of the main worktable 120 in the third direction z and the temperature of the second lead screw and the ambient temperature can also be obtained. Of course, in some embodiments, the mapping relationship between the offset of the main worktable 120 in the third direction z and the temperature of the second lead screw, the ambient temperature, and the position of the main worktable 120 in the third direction z can also be obtained. During the normal operation of the main worktable 120, relevant parameters can be acquired, and then the offset of the main worktable 120 in the third direction z can be adjusted according to the relevant mapping relationship to perform error compensation and improve machining accuracy.

[0074] Please see Figure 4 , Figure 4 This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium of this application.

[0075] Another embodiment of this application provides a computer-readable storage medium 20 that stores program data 21 thereon. When the program data 21 is executed by a processor, it implements the machine tool error detection method of any of the above embodiments.

[0076] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0077] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0078] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0079] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium 20. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium 20 and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium 20 includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0080] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0081] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the computer device to perform the steps in the above method embodiments.

[0082] The terms "first," "second," and "third" in this application are for descriptive purposes only and should not be construed as indicating the number of technical features indicated. Therefore, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of those features. All directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of this application are only used to explain the relative positional relationships and movements between components in a specific orientation (as shown in the figures). If the specific orientation changes, the directional indications will change accordingly. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. A process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.

[0083] The terms "first," "second," and "third" in this application are for descriptive purposes only and should not be construed as indicating the number of technical features indicated. Therefore, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of those features. All directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of this application are only used to explain the relative positional relationships and movements between components in a specific orientation (as shown in the figures). If the specific orientation changes, the directional indications will change accordingly. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. A process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.

[0084] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A method for detecting machine tool errors, characterized in that, The machine tool includes a machine base, a main worktable, and a first driving component. The first driving component drives the main worktable to move along a first direction and is movably disposed on the machine base. The first driving component includes a first lead screw disposed along the first direction. The first lead screw rotates to move the main worktable. The main worktable includes a main working surface, on which a first reference point is disposed. The machine tool is used to install a detection component. The detection component includes a first temperature sensor and a position sensor. The first temperature sensor is disposed adjacent to the first lead screw. The detection method includes: The main worktable is controlled to move along the first direction to the test position, the position sensor is controlled to obtain the position information of the first reference point as the first initial position information, and the first temperature sensor is controlled to obtain the temperature of the first lead screw as the first initial lead screw temperature. The main worktable is controlled to perform a preset number of test runs to obtain a preset number of first position information and a preset number of first lead screw temperatures. Each test run includes: controlling the first lead screw to rotate alternately in both directions for a preset duration, so that the main worktable moves back and forth along the first direction for a preset duration; controlling the main worktable to return to the test position; controlling the position sensor to obtain the position information of the first reference point as the first position information; and controlling the first temperature sensor to obtain the temperature of the first lead screw as the first lead screw temperature. Using the first initial position information, a preset number of first position information values, the first initial lead screw temperature, and a preset number of first lead screw temperatures, the mapping relationship between the offset of the main worktable in the first direction and the temperature of the first lead screw is obtained; The position sensor is a dial indicator, with a sensing block set at each first reference point. The machine tool also includes a column and a spindle box. The column is mounted on the machine base, and the spindle box is movably mounted on the column along a second direction, which is perpendicular to the main working surface. Controlling the main worktable to move along the first direction or return to the test position, and controlling the position sensor to acquire the position information of the first reference points, includes: The dial indicator is controlled to descend to the first position along the second direction, and the main worktable is controlled to move to the test position along the first direction. The detection end of the dial indicator is attached to the side wall of the sensing block to obtain the position information of the first reference point.

2. The machine tool error detection method according to claim 1, characterized in that, The first reference point includes a plurality of first sub-reference points disposed on the main working surface along the first direction; controlling the main working table to move or return to the test position along the first direction and controlling the position sensor to obtain the position information of the first reference point includes: controlling the plurality of first sub-reference points to move sequentially to the test position and controlling the position sensor to obtain the position information of the plurality of first sub-reference points sequentially.

3. The machine tool error detection method according to claim 2, characterized in that, The first lead screw includes a fixed end. The step of obtaining the mapping relationship between the offset of the main worktable in the first direction and the temperature of the first lead screw using the first initial position information, the first initial lead screw temperature, a preset number of first position information values, and a preset number of first lead screw temperatures includes: Using the first initial position information of the plurality of first sub-reference points and a preset number of first position information of the plurality of first sub-reference points, a preset number of offsets of each first sub-reference point in the first direction are calculated. The preset number of offsets of different first sub-reference points in the first direction are positively correlated with the distance between the first sub-reference point and the fixed end. The mapping relationship between the offset of the main worktable in the first direction, the temperature of the first lead screw, and the position of the main worktable in the first direction is obtained by using a preset number of offsets of each first sub-reference point in the first direction, the first initial lead screw temperature, and a preset number of first lead screw temperatures.

4. The machine tool error detection method according to claim 1, characterized in that, Before each test run is performed by controlling the main workbench, the method further includes: The dial indicator is controlled to rise to the second position along the second direction, and the height of the lowest point of the dial indicator is higher than the height of the highest point of the sensing block.

5. The machine tool error detection method according to claim 1, characterized in that, The method further includes: Temperature error compensation is performed on the movement of the main worktable in the first direction by utilizing the mapping relationship between the offset of the main worktable in the first direction and the temperature of the first lead screw.

6. The machine tool error detection method according to claim 1, characterized in that, The machine tool further includes an ambient temperature sensor, which is disposed within the machine tool. When controlling the first temperature sensor to acquire the temperature of the first lead screw, the detection method further includes controlling the ambient temperature sensor to acquire the ambient temperature. The step of using the first initial position information, a preset number of first position information values, the first initial lead screw temperature, and a preset number of first lead screw temperatures to obtain the mapping relationship between the offset of the main worktable in the first direction and the temperature of the first lead screw includes: Using the first initial position information, a preset number of first position information, the first initial lead screw temperature, a preset number of first lead screw temperatures, and the ambient temperature, the mapping relationship between the offset of the main worktable in the first direction and the temperature of the first lead screw and the ambient temperature is obtained.

7. The machine tool error detection method according to claim 1, characterized in that, The machine tool further includes a second driving component, which drives the main worktable to be movably disposed on the machine base along a third direction. The second driving component includes a second lead screw disposed along the third direction, which rotates to move the main worktable. A second reference point is disposed on the main working surface, and the third direction is perpendicular to the first direction. The detection component includes a second temperature sensor and a position sensor. The second temperature sensor is disposed adjacent to the second lead screw. The detection method includes: The main worktable is controlled to move along the third direction to the test position, the position sensor is controlled to obtain the position information of the second reference point as the second initial position information, and the second temperature sensor is controlled to obtain the temperature of the second lead screw as the second initial lead screw temperature. The main worktable is controlled to perform a preset number of test runs to obtain a preset number of second position information and a preset number of second lead screw temperatures. Each test run includes: controlling the second lead screw to rotate repeatedly for a second preset time so that the main worktable moves back and forth along the third direction for a second preset time; controlling the main worktable to return to the test position; controlling the position sensor to obtain the position information of the second reference point as the second position information; and controlling the second temperature sensor to obtain the temperature of the second lead screw as the second lead screw temperature. The mapping relationship between the offset of the main worktable in the third direction and the temperature of the second lead screw is obtained by using the second initial position information, a preset number of second position information, the second initial lead screw temperature and a preset number of second lead screw temperatures.

8. The machine tool error detection method according to claim 7, characterized in that, The second reference point includes a plurality of second sub-reference points disposed on the main working surface along the third direction; controlling the main working table to move or return to the test position along the third direction and controlling the position sensor to obtain the position information of the second reference point includes: controlling the plurality of second sub-reference points to move sequentially to the test position and controlling the position sensor to obtain the position information of the plurality of second sub-reference points sequentially.

9. The machine tool error detection method according to claim 7, characterized in that, The method further includes: Temperature error compensation for the movement of the main worktable in the third direction is performed by utilizing the mapping relationship between the offset of the main worktable in the third direction and the temperature of the second lead screw.

10. A computer-readable storage medium storing program data thereon, characterized in that, When the program data is executed by the processor, the detection method according to any one of claims 1 to 9 is implemented.