Combined tool automatic compensation method, CNC machine tool, equipment and medium

By obtaining the compensation life and calculating the compensation coefficient during tool processing, and automatically compensating length and radius, the problems of tool compensation parameter verification errors and low machine tool efficiency in the prior art are solved, and processing efficiency is improved and defective rate is reduced. .

CN116088415BActive Publication Date: 2024-12-24JIANGXI HENGYUAN INTELLIGENT EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310179524.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-12-24
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

In the prior art, tool compensation parameter verification relies on manual input, which is prone to errors and affects the operation efficiency of the machine tool. Automatic verification also requires high requirements and cannot completely avoid clamping errors or wear problems.

Method used

By obtaining the current tool compensation life during workpiece processing, calculating the length compensation coefficient, performing length and radius compensation, and automatically adjusting the tool to reduce manual errors and downtime.

Benefits of technology

It improves processing efficiency, reduces defective rate, simplifies automatic compensation operation, eliminates errors caused by personnel negligence, and avoids the impact of manual verification on machine tool operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116088415B_ABST
    Figure CN116088415B_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of multi-axis automated machining, and specifically relates to a method for automatic compensation of combined tools. The method includes: obtaining the current tool compensation life; determining the length compensation coefficient based on the current tool compensation life, the preset number of radius compensation times and the radius compensation life during workpiece machining; performing length compensation based on the length compensation coefficient, the preset number of length compensation times and the single length compensation amount; performing radius compensation based on the length compensation coefficient, the preset number of radius compensation times and the radius compensation amount. The compensation method of the present application is simple to operate, and reduces problems such as manual verification of wrong tool edge position, wrong parameter value and shutdown that disrupts the machining rhythm, thereby improving machining efficiency and reducing defective product rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of multi-axis automated machining, and specifically relates to a combined tool automatic compensation method. Background Art

[0002] A computer numerically controlled machine tool is an automated machine tool controlled by a program. Its control system can logically process programs specified by control codes or other symbolic instructions, decode them through a computer, and enable the machine tool to perform the specified actions, and process the rough material into semi-finished or finished parts through tool cutting.

[0003] At present, there are two ways to check tool compensation parameters: manual check and automatic check. Manual check refers to the situation where tool compensation parameters are manually input. Although this method can manually check tool compensation parameters, it cannot prevent errors caused by negligence of personnel, such as wrong input of tool edge position or wrong input of parameter value, which will lead to scrapping of tools and products. At the same time, manual check requires stopping the entire processing line, which affects the operating efficiency of the machine tool and disrupts the processing rhythm. The automatic check method uses the built-in function of the machine tool to check the tool compensation parameters. Although the tool compensation parameters are not easy to make mistakes in this way, the requirements for CNC machine tools are high, and manual inspection is still required for problems caused by clamping errors or tool wear. Summary of the invention

[0004] 1. Technical issues to be resolved

[0005] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present application provides a combined tool automatic compensation method, robot, equipment and medium.

[0006] (II) Technical solution

[0007] In order to achieve the above objectives, this application adopts the following technical solutions:

[0008] In a first aspect, an embodiment of the present application provides a method for automatic compensation of a combined tool, the method comprising:

[0009] During workpiece machining, obtain the current tool compensation life;

[0010] Determine the length compensation coefficient based on the current tool compensation life, the preset radius compensation times and the radius compensation life;

[0011] Performing length compensation based on the length compensation coefficient, a preset number of length compensation times and a single length compensation amount;

[0012] Radius compensation is performed based on the length compensation coefficient, a preset number of radius compensation times and a radius compensation amount.

[0013] Optionally, the length compensation coefficient is calculated by the following formula:

[0014]

[0015] Where a is the length compensation coefficient, t c is the current tool compensation life, T is the radius compensation life, and n is the number of radius compensations.

[0016] Optionally, performing length compensation based on the length compensation coefficient, a preset number of length compensation times and a single length compensation amount includes:

[0017] comparing the length compensation coefficient with the length compensation number;

[0018] When the length compensation coefficient is less than or equal to the number of length compensation times, determining a current length compensation amount based on the length compensation coefficient and the single length compensation amount, and performing length compensation based on the current length compensation amount;

[0019] When the length compensation coefficient is greater than the length compensation times, the automatic compensation of the tool is terminated.

[0020] Optionally, based on the length compensation coefficient and the single length compensation amount, the current length compensation amount is determined by the following formula:

[0021] l=a×K

[0022] Among them, K is the single length compensation amount, and l is the current length compensation amount.

[0023] Optionally, get the current tool compensation life, which also includes:

[0024] Determine the tool used for processing according to the processing task;

[0025] The tool radius compensation amount, radius compensation times, radius compensation life, single length compensation amount and length compensation times are determined according to the machining task.

[0026] In a second aspect, an embodiment of the present application provides a CNC machine tool, which includes a CNC device, a servo drive device, and a machine tool body. The CNC device is used to execute the combined tool automatic compensation method as described in any one of the first aspects above to control the tool of the machine tool body to grind parts.

[0027] Optionally, the tool of the machine tool body is a sanding rod.

[0028] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the combined tool automatic compensation method as described in any one of the first aspects above are implemented.

[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the combined tool automatic compensation method as described in any one of the first aspects above are implemented.

[0030] (III) Beneficial effects

[0031] The beneficial effects of the present application are as follows: the present application proposes a combined tool automatic compensation method, CNC machine tool, equipment and medium, wherein the method includes: obtaining the current tool compensation life during workpiece processing; determining the length compensation coefficient based on the current tool compensation life, the preset number of radius compensation times and the radius compensation life; performing length compensation based on the length compensation coefficient, the preset number of length compensation times and the single length compensation amount; performing radius compensation based on the length compensation coefficient, the preset number of radius compensation times and the radius compensation amount. The compensation method of the present application is simple to operate, and reduces the problems of manually checking the wrong tool edge position, the wrong parameter value and the shutdown that disrupts the processing rhythm, thereby improving the processing efficiency and reducing the defective rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The present application is described with the aid of the following drawings:

[0033] Figure 1 This is a schematic flow chart of a combined tool automatic compensation method in one embodiment of the present application;

[0034] Figure 2 This is a schematic diagram of a tool structure in another embodiment of the present application;

[0035] Figure 3 This is an example diagram of tool automatic compensation setting in another embodiment of the present application;

[0036] Figure 4 This is a schematic flow chart of a combined tool automatic compensation method in another embodiment of the present application;

[0037] Figure 5 This is a schematic diagram of a tool radius automatic compensation process in another embodiment of the present application;

[0038] Figure 6 This is a schematic diagram of a tool length automatic compensation process in another embodiment of the present application;

[0039] Figure 7It is a schematic diagram of the structure of an electronic device in yet another embodiment of the present application.

[0040] Description of reference numerals:

[0041] 1-handle, 2-blade. DETAILED DESCRIPTION

[0042] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below in conjunction with the accompanying drawings through specific implementation methods. It is understood that the specific embodiments described below are only used to explain the relevant inventions, rather than to limit the invention. It should also be noted that the embodiments and features in the embodiments of this application can be combined with each other in the absence of conflict; for ease of description, only the parts related to the invention are shown in the accompanying drawings.

[0043] The computer numerical control machine tool is mainly composed of four parts: the host part, the numerical control device, the servo drive device and the auxiliary device. The host part is the main body of the CNC lathe and the mechanical part of the CNC lathe. It is composed of a bed, a spindle box, a tool holder, a tailstock, a feed mechanism, etc. The numerical control device is the core of the control lathe, which is generally a lathe-specific control computer; the program instructions input into the control part are recorded on the information carrier and received by the program reading device, or directly input manually by the keyboard of the control part. The drive device is the drive component of the actuator of the CNC lathe, including the spindle motor, the feed servo motor, etc. The auxiliary device refers to some supporting components of the CNC lathe, including hydraulic, pneumatic devices, cooling systems, drainage devices, protective equipment, etc. The method in this application is applicable to computer numerical control machine tools, specifically, numerical control devices in computer numerical control machine tools.

[0044] The method of the present invention is specifically described below through various embodiments.

[0045] Embodiment 1

[0046] Figure 1 FIG. 1 is a flow chart of a combined tool automatic compensation method in one embodiment of the present application. Figure 1 As shown, the combined tool automatic compensation method of this embodiment includes:

[0047] S10, during the workpiece processing, obtaining the current tool compensation life;

[0048] S20, determining a length compensation coefficient based on the current tool compensation life, a preset number of radius compensation times and the radius compensation life;

[0049] S30, performing length compensation based on a length compensation coefficient, a preset number of length compensation times and a single length compensation amount;

[0050] S40, performing radius compensation based on the length compensation coefficient, the preset radius compensation times and the radius compensation amount.

[0051] The combined tool automatic compensation method of this embodiment simplifies the automatic compensation setting operation, reduces the problems of manual verification of incorrect tool edge position, incorrect parameter value and machine stoppage that disrupts the processing rhythm, thereby improving processing efficiency and reducing the defective rate.

[0052] In order to better understand the present invention, each step in this embodiment is described below.

[0053] In this embodiment S10, the workpiece is a part that can be cut by a tool, and a target workpiece can be obtained by cutting, and cutting may include changing the shape of the workpiece. The current tool compensation life refers to the total time that the tool continues to work since the first compensation.

[0054] In S20 of this embodiment, the number of radius compensations refers to the maximum number of times that can be compensated as the tool radially wears during its service life, and the radius compensation life refers to the sum of the cutting time after each compensation.

[0055] In S20 of this embodiment, the length compensation coefficient is calculated by formula (1):

[0056]

[0057] Where a is the length compensation coefficient, t c is the current tool compensation life, T is the radius compensation life, and n is the number of radius compensations.

[0058] In this embodiment S30, length compensation is used to compensate for tool position changes caused by tool wear. A single length compensation amount refers to the value of a length compensation during part processing. The number of length compensations refers to the maximum number of times that the tool can be compensated for axial wear during its service life.

[0059] In S40 of this embodiment, the radius compensation amount refers to the offset between the tool center and the actual contour of the machined part.

[0060] Embodiment 2

[0061] The execution subject of this embodiment may be a numerical control device, which stores a numerical control (NC) program, and drives the servo drive device by executing program instructions, so that the host completes the workpiece processing. The numerical control device may include a memory and a processor. In some other embodiments, the execution subject may also be other electronic devices that can achieve the same or similar functions, which is not limited in this embodiment.

[0062] Figure 2FIG. 1 is a schematic diagram of a tool structure in another embodiment of the present application. The tool in this embodiment is a sanding rod, such as Figure 2 As shown in the figure, the tool consists of a handle 1 and a cutter head 2. The handle 1 is used for fixing, and the cutter head 2 is mainly used for the processing area. The cutter head 2 will wear during the processing, which will cause the edge grinding head to become thinner and the cutter head on the processing surface to become shorter.

[0063] Before executing the method of this embodiment, the method includes:

[0064] Determine the tool used for processing according to the processing task;

[0065] The tool radius compensation amount, radius compensation times, radius compensation life, single length compensation amount and length compensation times are determined according to the machining task.

[0066] Figure 3 This is an example diagram of tool automatic compensation setting in another embodiment of the present application, such as Figure 3 As shown, in the tool automatic compensation setting interface: turn on automatic compensation by checking "Tool compensation is valid" and "Tool automatic compensation", and check "Alarm" or "Prohibit processing" (not limited to these two) in "After life expires" to set the action to be executed after the automatic compensation is completed. In "Tool automatic compensation", set: set tool radius automatic compensation, set radius automatic compensation amount, radius compensation times and compensation life. When the number of processing times reaches a multiple of the "compensation life", the tool compensates the "radius automatic compensation" amount inward or outward, and the number of radius compensations increases automatically. When it is equal to the set life value, it triggers the processing after the life expires. It should be noted that if there are multiple tool numbers in the program, the corresponding tool number needs to be checked in the "Select tool" setting interface. Multiple tools are usually based on the one with the least compensation times, and the radius automatic compensation and length automatic compensation are set.

[0067] It should be noted that the length compensation coefficient in this embodiment is also called a comprehensive compensation multiple value.

[0068] Figure 4 This is a flowchart of a combined tool automatic compensation method in another embodiment of the present application. Based on the first embodiment, this embodiment describes in detail the specific implementation process of this embodiment. Figure 3 The steps of the method in this embodiment are described in detail.

[0069] S101, the machine tool loads the numerical control (NC) code and parses the NC code.

[0070] S102, determine whether the "compensation life" of the current tool number is 0. If it is 0, it means that the automatic compensation of the tool number is invalid, and directly go to S111 to execute the processing program. If it is not 0, it means that the "compensation life" is set.

[0071] S103, calculate the "comprehensive compensation multiple value" by formula (1). Because it is a comprehensive compensation of length and radius, the number of compensations is that for each length compensation, the corresponding number of radius compensations must be fully compensated before the next length compensation can be performed.

[0072] S104, when the "comprehensive compensation multiple value" is greater than the "length compensation times", it means that all compensation times have been completed and the process is directly adjusted to S108. Otherwise, if it is still within the effective compensation range, the length automatic compensation amount * "comprehensive compensation speed value" is assigned to the "length compensation value" and the process is entered into S105.

[0073] S105. Based on the comprehensive compensation speed value and the single length compensation amount, the current length compensation amount is determined by formula (2):

[0074] l=a×K

[0075] Among them, K is the single length compensation amount, and l is the current length compensation amount.

[0076] The spindle is pressed down by a total of "comprehensive compensation speed value" length compensation, that is, it continues to press down by a length compensation amount on the basis of the original pressing. At this time, the automatic length compensation takes effect and is ready to enter the radius compensation link S106.

[0077] S106. Determine whether the "comprehensive compensation multiple value" is equal to 0. The purpose is to calculate the radius compensation value, because the radius compensation value needs to be recalculated every time the length is compensated.

[0078] S107, "comprehensive compensation speed value" is equal to 0, and the spindle directly retracts a radius compensation amount.

[0079] S108. When all automatic compensations are completed, the radius compensation value and the length compensation value need to be cleared and the process proceeds to S112.

[0080] S112. When the automatic compensation life expires, the operation after expiration is entered, such as: prohibiting processing, warning (not limited to), etc.

[0081] S109: When the length is over-compensated, it is necessary to readjust the "radius compensation value".

[0082] S110, the “radius compensation value” after spindle retraction adjustment, and realize automatic radius compensation, enter 111.

[0083] S111, execute the processing program, and after the processing is completed, jump back to S101 and repeat the execution.

[0084] Through the combined tool automatic compensation method of this embodiment, the setting interface only needs to set the radius automatic compensation amount, radius compensation times, length automatic compensation amount, length compensation times and compensation life 5 key and 1 life expiration processing parameters to realize the tool length and tool radius free combination automatic compensation function, making it easier for operators to operate this function, thereby solving the problem of complex operation. At the same time, the system automatic tool compensation is used to prevent errors caused by negligence of personnel due to wrong input of the tool edge position or wrong input of the parameter value, resulting in the scrapping of the tool and the product; at the same time, it avoids manual verification, resulting in the stop of the entire processing line, affecting the operating efficiency of the machine tool and disrupting the processing rhythm.

[0085] In some other embodiments, only radius compensation or length compensation may also be achieved through the method of the present invention. Figure 5 FIG. 1 is a schematic diagram of a tool radius automatic compensation process in another embodiment of the present application. Figure 5 As shown in the figure, it makes the automatic length compensation ineffective based on the first and second embodiments. Figure 6 FIG. 1 is a schematic diagram of a tool length automatic compensation process in another embodiment of the present application. Figure 6 As shown in the figure, it makes the automatic radius compensation ineffective based on the first and second embodiments. Figure 5 and Figure 6 The specific steps in the embodiment can be found in the step description in the second embodiment, which will not be repeated here.

[0086] Embodiment 3

[0087] The second aspect of the present application provides a CNC machine tool through Example 3, which includes a CNC device, a servo drive device, and a machine tool body. The CNC device is used to execute the combined tool automatic compensation method described in any of the above embodiments to control the tool of the machine tool body to grind parts.

[0088] The CNC machine tool provided in this embodiment can be used to execute the steps of the combined tool automatic compensation method in the above method embodiment. Its implementation principle and technical effects are similar, and this embodiment will not be repeated here.

[0089] Embodiment 4

[0090] The third aspect of the present application provides an electronic device through Example 4, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the combined tool automatic compensation method as described in any one of the above embodiments are implemented.

[0091] Figure 7 It is a schematic diagram of the structure of an electronic device in yet another embodiment of the present application.

[0092] Figure 7The electronic device shown may include: at least one processor 101, at least one memory 102, at least one network interface 104 and other user interfaces 103. The various components in the electronic device are coupled together via a bus system 105. It is understood that the bus system 105 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 105 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 105 is not described in detail. Figure 7 Various buses are labeled as bus system 105 .

[0093] The user interface 103 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, or a touch pad).

[0094] It can be understood that the memory 102 in this embodiment can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 62 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0095] In some implementations, the memory 102 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 1021 and application programs 1022 .

[0096] The operating system 1021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program 1022 includes various application programs for implementing various application services. The program for implementing the method of the embodiment of the present invention can be included in the application program 1022.

[0097] In the embodiment of the present invention, the processor 101 calls the program or instructions stored in the memory 102, specifically, the program or instructions stored in the application 1022, and the processor 101 is used to execute the method steps provided in the first aspect.

[0098] The method disclosed in the above embodiment of the present invention can be applied to the processor 101, or implemented by the processor 101. The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 101 or the instruction in the form of software. The above processor 101 can be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a ready-made programmable gate array or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to be executed, or the hardware and software units in the decoding processor can be combined to execute. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 102, and the processor 101 reads the information in the memory 102 and completes the steps of the above method in combination with its hardware.

[0099] In addition, in combination with the combined tool automatic compensation method in the above embodiment, an embodiment of the present invention may provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, any one of the combined tool automatic compensation methods in the above method embodiments is implemented.

[0100] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several distinct components and by means of a suitably programmed computer. The use of the words first, second, third, etc., is for convenience of expression only and does not imply any order. These words may be understood as part of the component name.

[0101] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0102] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.

[0103] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include these modifications and variations.

Claims

1. A method for automatic compensation of combined tools, characterized in that: The method includes: Determine the tool used for processing according to the processing task; Determine the tool radius compensation amount, radius compensation times, radius compensation life, single length compensation amount and length compensation times according to the machining task; radius compensation times refers to the maximum number of times that can be compensated with radial wear of the tool during its service life, and radius compensation life refers to the sum of cutting time after each compensation; length compensation is used to compensate for tool position changes caused by tool wear, single length compensation amount refers to the value of one length compensation during part machining, and length compensation times refers to the maximum number of times that can be compensated with axial wear of the tool during its service life; radius compensation amount refers to the offset between the tool center and the actual contour of the machined part; During the workpiece processing, the current tool compensation life is obtained; the current tool compensation life refers to the total time the tool continues to work since the first compensation; The length compensation coefficient is determined based on the current tool compensation life, the preset number of radius compensation times and the radius compensation life; the radius compensation life refers to the sum of the cutting time after each compensation; The length compensation coefficient is calculated by the following formula: Formula (1), where a is the length compensation coefficient, t c is the current tool compensation life, T is the radius compensation life, and n is the number of radius compensation times; Performing length compensation based on the length compensation coefficient, a preset number of length compensation times and a single length compensation amount; Radius compensation is performed based on the length compensation coefficient, the preset radius compensation times and the radius compensation amount; the length compensation system is called a comprehensive compensation multiple value; Specifically, the comprehensive compensation multiple value calculated by formula (1) is the comprehensive compensation of length and radius. The number of compensations is that for every length compensation, the corresponding number of radius compensations must be fully compensated before the next length compensation is performed. Determine whether the "comprehensive compensation multiple value" is equal to 0. If it is equal to 0, the spindle will directly retract a radius compensation amount to achieve automatic radius compensation.

2. The combined tool automatic compensation method according to claim 1, characterized in that: Length compensation is performed based on the length compensation coefficient, the preset number of length compensation times and the single length compensation amount, including: comparing the length compensation coefficient with the length compensation number; When the length compensation coefficient is less than or equal to the number of length compensation times, determining a current length compensation amount based on the length compensation coefficient and the single length compensation amount, and performing length compensation based on the current length compensation amount; When the length compensation coefficient is greater than the length compensation times, the automatic compensation of the tool is terminated.

3. The combined tool automatic compensation method according to claim 2, characterized in that: Based on the length compensation coefficient and the single length compensation amount, the current length compensation amount is determined by the following formula: l=a×K Among them, K is the single length compensation amount, and l is the current length compensation amount.

4. A CNC machine tool, characterized in that: The machine tool comprises a numerical control device, a servo drive device, and a machine tool body. The numerical control device is used to execute the combined tool automatic compensation method as described in any one of claims 1 to 3 to control the tool of the machine tool body to grind parts.

5. The numerically controlled machine tool according to claim 4, characterized in that: The tool of the machine tool body is a sanding rod.

6. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the combined tool automatic compensation method as described in any one of claims 1 to 3 above.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the combined tool automatic compensation method as described in any one of claims 1 to 3 are implemented.