Edge decoupling type numerical control machine tool cutter wear self-adaptive compensation system and compensation method
By adopting an edge-decoupled CNC machine tool tool wear adaptive compensation system with a three-layer architecture and standard G-code instruction set, the problem of poor cross-brand compatibility in existing technologies has been solved. This enables seamless migration and rapid replication of cross-brand tool wear compensation, improving flexibility and production efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SUZHOU SYNTEC EQUIP CO LTD
- Filing Date
- 2026-04-17
- Publication Date
- 2026-05-26
AI Technical Summary
The existing automatic tool replacement technology has deep coupling between business logic and heterogeneous proprietary protocols, resulting in poor cross-brand compatibility, difficulty in system upgrades and maintenance, and affecting the agile deployment and high availability of flexible production lines.
The edge-decoupled CNC machine tool tool wear adaptive compensation system adopts a three-layer architecture of application business layer, edge decoupling layer and device execution layer. It uses standard G code instruction set (such as G210.025 and G210.024) for data interaction and instruction conversion, shielding the differences in underlying communication and realizing unified control across brands.
It enables seamless migration and rapid replication of tool wear compensation across different manufacturers, lowers the barrier to entry for production lines, improves flexibility and production efficiency, and avoids the risk of downtime for host computer software upgrades due to changes in the underlying driver.
Smart Images

Figure CN122085876A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of adaptive compensation technology, and relates to an edge-decoupled adaptive compensation system and method for CNC machine tool tool wear. Background Technology
[0002] In the field of modern precision machining, the traditional method of manually stopping the machine to measure and manually modify the machine tool offset parameters can no longer meet the accuracy and efficiency requirements of high-cycle production. Therefore, automatic tool wear compensation technology has emerged. By detecting wear online and automatically correcting machining deviations, it greatly reduces the frequency of human intervention and improves product machining accuracy and production yield.
[0003] Existing automatic tool compensation technologies typically employ a customized direct-connect communication architecture. The host computer system needs to independently deploy dedicated underlying communication driver modules for each heterogeneous CNC system, and the differentiated protocol parsing code is tightly coupled with the upper-layer compensation calculation logic and business control processes. This architecture has significant technical drawbacks: the business logic is deeply coupled with heterogeneous proprietary protocols, and issued instructions are firmly bound to proprietary specifications, making it impossible to form unified action semantics across different manufacturers; any minor change in the underlying driver will trigger a global impact, forcing the entire host computer to shut down for upgrades, severely affecting the agile deployment and high availability capabilities of flexible production lines. Summary of the Invention
[0004] To achieve the above objectives, this invention provides an edge-decoupled adaptive compensation system for CNC machine tool tool wear, which solves the technical problems of deep coupling between business logic and heterogeneous proprietary protocols, poor cross-brand compatibility, and difficulty in system upgrade and maintenance in the prior art.
[0005] The above-mentioned technical objective of the present invention is achieved through the following technical solution: an edge-decoupled adaptive compensation system for CNC machine tool tool wear, comprising: The application business layer is used to centrally process the tool compensation algorithm and compensation strategy to generate standardized tool compensation control instructions based on the input process parameters. An edge decoupling layer, which is communicatively connected to the application service layer, is used to receive the standardized tool compensation control instructions and, according to the brand type of the target CNC machine tool, call the corresponding private protocol parser to convert the standardized tool compensation control instructions into low-level instructions that can be executed by the target CNC machine tool. The device execution layer includes at least one CNC machine tool, which executes the underlying instructions to complete tool wear compensation.
[0006] Ideally, the application service layer and the edge decoupling layer interact with each other through a set of standard G-code instructions, which includes at least tool compensation value reading instructions and tool compensation value modification instructions.
[0007] Furthermore, the standard G-code instruction set includes G210.025 instructions and G210.024 instructions. The G210.025 instruction is used to read the current compensation value of the corresponding tool of the target machine tool according to the specified machine tool number, axis group and tool number, and write the result into the specified data buffer. The G210.024 instruction is used to write the correction compensation value in the specified data buffer into the compensation parameters of the corresponding tool of the target machine tool according to the specified machine tool number, axis group and tool number.
[0008] Ideally, the application service layer includes a knife compensation strategy configuration module, a deviation calculation trigger module, and a standard G-code generator. The tool compensation strategy configuration module is used to input basic tool parameters and tool compensation rule logic, and generate tool compensation strategy configuration information. The deviation calculation trigger module is connected to the tool compensation strategy configuration. It is used to obtain the measurement value of the measuring instrument, calculate the dimensional deviation based on the comparison result between the measurement value and the center value of the target tolerance zone, determine whether to trigger compensation, and set the triggering time and compensation buffer time for automatic tool compensation. The standard G-code generator is connected to the knife compensation strategy configuration module and is used to generate the standardized knife compensation control command according to the knife compensation strategy configuration information.
[0009] Optimally, the edge decoupling layer includes an instruction receive buffer, a standard G-code parser / router distributor, and a heterogeneous protocol conversion matrix. The instruction receiving buffer pool is used to receive and cache knife compensation control instructions from the application service layer, and to manage the queue according to the receiving time sequence; The standard G-code parser / routing distributor is connected to the instruction receiving buffer pool and is used to extract tool compensation control instructions from the instruction receiving buffer pool, parse the machine tool identification information in the instructions, and route the instructions to the corresponding processing channels according to the parsing results. The heterogeneous protocol conversion matrix is connected to the instruction receiving buffer pool and is used to obtain the corresponding standard G code instruction from the instruction receiving buffer pool according to the parsing results stored in the instruction receiving buffer pool, and convert it into low-level instructions that can be executed by the target machine tool.
[0010] Another object of the present invention is to provide an adaptive compensation method for CNC machine tool tool wear of the above-mentioned compensation system, comprising the following steps: Step S1: Establish a communication connection with the target CNC machine tool in the edge decoupling layer; Step S2: Enter the tool process parameters and tool compensation strategy into the application business layer to generate tool compensation strategy configuration information; Step S3: The application service layer obtains the measurement value of the measuring instrument, calculates the dimensional deviation based on the comparison result between the measurement value and the center value of the target tolerance zone, and determines whether to trigger compensation; Step S4: When it is determined that compensation needs to be triggered, the application service layer generates a standardized tool compensation control command based on the tool compensation strategy configuration information and the size deviation. Step S5: Send the standardized tool compensation control command to the edge decoupling layer; Step S6: The edge decoupling layer calls the corresponding private protocol parser according to the brand type of the target CNC machine tool to convert the standardized tool compensation control instructions into low-level instructions that can be executed by the target CNC machine tool; Step S7: The target CNC machine tool in the device execution layer executes the underlying instruction to complete the modification of the tool wear compensation value; Step S8: The edge decoupling layer converts the execution result into a unified standard format and sends it back to the application service layer.
[0011] Optimally, the specific method for generating standardized tool compensation control commands in step S4 is as follows: When a tool compensation value reading operation is required, the G210.025 instruction is generated; When a tool compensation value modification operation is required, the G210.024 instruction is generated.
[0012] Furthermore, step S7 also includes a closed-loop compensation step: The current tool compensation value is read by the G210.025 command, and the application business layer calculates the current wear amount based on the measurement value of the measuring instrument; the read compensation value is superimposed with the wear amount to obtain the corrected compensation value; The corrected compensation value is written to the CNC machine tool using the G210.024 command.
[0013] Compared with the prior art, the present invention has the following significant advantages: The edge-decoupled adaptive compensation system for CNC machine tool wear of the present invention has the following four core advantages: Completely shielding underlying communication differences: Traditional knife-edge compensation software deeply embeds each brand's proprietary protocols into the business code, resulting in an extremely bloated system. This invention adopts an innovative three-layer edge decoupling architecture (application business layer, edge decoupling layer, and device execution layer), completely isolating the complexity of heterogeneous communication at the edge decoupling layer. The host computer application business layer completely shields the differences in underlying protocols between various brands, fundamentally eliminating the risk of downtime for the entire host computer software due to changes in underlying drivers.
[0014] Standard G-code tool compensation instructions: This invention innovatively defines a set of dedicated standard G-code instructions (G210.025, G210.024, etc.) as a unified language that transcends all brand barriers. Users do not need to pay attention to the equipment brand; they only need to issue standard G-code instructions according to the equipment connection number to penetrate all brand barriers and achieve precise and unified control of multiple machines on mixed production lines.
[0015] Zero-code implementation on-site: When implementing on-line solutions or changing to new products, on-site engineers do not need any programming background or to consult the underlying protocol manual. They only need to focus on entering the workpiece process parameters in the tool compensation strategy configuration module, and the system can automatically build tool compensation strategies and workflows for different machine tools, reducing the development time from several days to several hours, and significantly lowering the barrier to entry for production line implementation.
[0016] Hot-swappable production line equipment: When facing production line capacity expansion or the addition of new equipment, thanks to the edge decoupling mechanism and equipment mapping module, adding any brand of machine tool only requires assigning a new serial number at the underlying level, without any code modification at the upper-level application business layer. The tool compensation logic can achieve seamless migration and rapid replication across brands, demonstrating extremely strong flexibility and adaptability. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the edge-decoupled adaptive compensation system for CNC machine tool tool wear according to the present invention. Figure 2 This is a flowchart illustrating the operation of the edge-decoupled adaptive compensation method for CNC machine tool wear according to the present invention. Figure 3 This is the tool compensation parameter setting interface in the edge-decoupled adaptive compensation method for CNC machine tool tool wear of the present invention. Detailed Implementation
[0018] The preferred embodiments of the present invention will now be described in detail.
[0019] The foregoing descriptions and other technical contents, features, and effects of this invention will be clearly presented in the following detailed description of a preferred embodiment with reference to the accompanying drawings. The directional terms used in the following embodiments, such as up, down, left, right, front, or back, are merely for reference to the accompanying drawings. Therefore, the directional terms used are for illustrative purposes and not for limiting the invention.
[0020] The following detailed description of various embodiments of the present invention, with reference to the accompanying drawings. Besides these detailed descriptions, the present invention can be widely implemented in other embodiments, and any easy substitutions, modifications, or equivalent changes to the described embodiments are included within the scope of the present invention and are subject to the claims. In the description of the specification, many specific details are provided to give the reader a more complete understanding of the present invention; however, the present invention may still be implemented even if some or all of the specific details are omitted. Furthermore, well-known steps or components are not described in the details to avoid unnecessarily limiting the present invention. The same or similar components in the drawings will be represented by the same or similar symbols. It should be noted that the drawings are for illustrative purposes only and do not represent the actual size or quantity of components; some details may not be fully drawn for the sake of simplicity. Example 1
[0021] This embodiment provides an edge-decoupled adaptive compensation system for CNC machine tool tool wear, such as... Figure 1 As shown, it includes a complementary application service layer, an edge decoupling layer, and a device execution layer.
[0022] The application business layer centrally processes tool compensation algorithms and strategies to generate standardized tool compensation control commands based on the input process parameters. Specifically, the application business layer is deployed in a host computer, where the RobotCenter central control software serves as the core business processing hub, centralizing all tool compensation algorithms and strategies. This layer includes a tool compensation strategy configuration module, a deviation calculation trigger module, and a standard G-code generator. The tool compensation strategy configuration module is used to input basic tool parameters and tool compensation rule logic, generating tool compensation strategy configuration information. The deviation calculation trigger module is connected to the tool compensation strategy configuration module, used to acquire measuring instrument values, calculate dimensional deviations based on the comparison results between the measured values and the target tolerance zone center value, determine whether to trigger compensation, and set the triggering timing and compensation buffer time for automatic tool compensation. The standard G-code generator is connected to the tool compensation strategy configuration module, used to generate standardized tool compensation control commands based on the tool compensation strategy configuration information. After the operator enters the process parameters through the tool compensation strategy configuration module, the system automatically generates the corresponding standard G-code instructions and adaptively calculates the tool wear value and compensation strategy based on the tool status (transparently transmitted to the SigmaAgent node).
[0023] The edge decoupling layer communicates with the application service layer to receive the standardized tool compensation control instructions and, based on the brand type of the target CNC machine tool, calls the corresponding private protocol parser to convert the standardized tool compensation control instructions into low-level instructions executable by the target CNC machine tool.
[0024] The edge decoupling layer (deployed on the SigmaAgent edge acquisition platform) includes an instruction receiving buffer, a standard G-code parser / router distributor, and a heterogeneous protocol conversion matrix. The instruction receiving buffer receives and caches tool compensation control instructions from the application service layer, managing the queue according to the receiving sequence. The standard G-code parser / router distributor, connected to the instruction receiving buffer, extracts the tool compensation control instructions from the buffer, parses the machine tool identification information within the instructions, and routes the instructions to the corresponding processing channel based on the parsing results. The heterogeneous protocol conversion matrix, also connected to the instruction receiving buffer, retrieves the corresponding standard G-code instructions from the buffer based on the parsing results stored therein and converts them into low-level instructions executable by the target machine tool. The edge decoupling layer incorporates proprietary protocol parsers for different CNC brands (such as FANUC, Siemens, Mitsubishi, Syntec, etc.), enabling precise data interaction with connected machines.
[0025] The equipment execution layer includes at least one CNC machine tool (which may include CNC machine tools from different brands such as Syntec, FANUC, Siemens, and Mitsubishi, executing low-level instructions to complete tool wear compensation). The edge acquisition platform SigmaAgent receives standard G-code instructions from the host computer's RobotCenter software and, based on the machine tool and tool information in the instructions, completes the tool wear compensation for the CNC machine tool. After execution, SigmaAgent converts the machine tool's feedback status into a unified standard format and sends it back to the host computer RobotCenter for user monitoring.
[0026] In this embodiment, the application service layer and the edge decoupling layer interact with each other via a set of standard G-code instructions. The standard G-code instruction set includes at least tool compensation value reading instructions and tool compensation value modification instructions. The standard G-code instruction set includes G210.025 and G210.024 instructions. The G210.025 instruction is used to read the current compensation value of the tool corresponding to the target machine tool based on the specified machine tool number, axis group, and tool number, and write the result to a specified data buffer. The G210.024 instruction is used to write the corrected compensation value from the specified data buffer to the compensation parameters of the tool corresponding to the target machine tool based on the specified machine tool number, axis group, and tool number.
[0027] Specifically, the standard G-code instruction set covers dynamic read and write operations on internal system resource values, status registers, and configuration parameters, including: G210.025 Read tool compensation value: The parameters include R (machine number), S (specified axis group), and T (tool number). After this instruction is executed, the system will parse the brand type of the target machine tool, read the compensation value of its corresponding tool, and write the result to the data buffer specified by RobotCenter. G210.024 Modify tool compensation value: The parameters include R (machine number), S (specified axis group), and T (tool number). After this instruction is executed, the system will write the value in the buffer specified by RobotCenter on the host computer into the compensation parameters of the corresponding tool according to the brand type of the target machine tool. The core closed-loop compensation process is as follows: First, the current tool compensation value is read through the G210.025 instruction, and then the wear amount is calculated by combining it with the measurement value of the measuring instrument. Then, the read compensation value is superimposed with the wear amount to obtain the corrected compensation value. Finally, this value is written to the machine tool using the G210.024 command to complete the closed-loop compensation.
[0028] In this embodiment, the tool compensation strategy configuration module in the application business layer is used to input basic tool parameters and tool compensation rule logic. Specifically, the operator enters the main interface of the tool compensation parameter setting table (e.g., Figure 3 As shown, the basic tool parameters are entered according to the machining process requirements, and the tool compensation rule logic is configured to construct a safe parameter boundary. The deviation calculation trigger module is connected to the tool compensation strategy configuration module to obtain the measuring instrument measurement value. This module compares and analyzes the measuring instrument measurement value with the target tolerance zone center value to accurately calculate the current dimensional deviation. The deviation calculation trigger module only compensates for deviations exceeding the allowable range, effectively filtering dimensional fluctuations within the normal range and ensuring the stability of machining accuracy. At the same time, this module selects an appropriate trigger mode according to the production cycle and sets a compensation buffer time to avoid machining oscillations. The standard G-code generator is connected to the tool compensation strategy configuration module to generate standardized tool compensation control commands (G210.025 or G210.024) based on the tool compensation strategy configuration information.
[0029] In this embodiment, the instruction receiving buffer of the edge decoupling layer receives and caches tool compensation control instructions from the application service layer, and performs queue management according to the receiving sequence. Specifically, the queue management unit sorts the received instructions according to the first-in-first-out principle; the priority configuration unit configures different processing priorities for different types of tool compensation instructions; and the flow control unit performs backpressure control when the instruction backlog exceeds a threshold. The standard G-code parser / router distributor is connected to the instruction receiving buffer and is used to extract tool compensation control instructions from the instruction receiving buffer, parse the machine tool identification information (such as the machine tool number field) in the instructions, and route the instructions to the corresponding processing channels through the routing mapping table (which stores the mapping relationship between the machine tool number and the corresponding private protocol parser). The heterogeneous protocol conversion matrix is connected to the instruction receiving buffer and contains multiple private protocol parsers (FANUC protocol parser, Siemens protocol parser, Mitsubishi protocol parser, Syntec protocol parser, etc.). Based on the parsing results stored in the instruction receiving buffer, the heterogeneous protocol conversion matrix obtains the corresponding standard G-code instructions from the instruction receiving buffer and converts them into low-level instructions executable by the target machine tool. Example 2
[0030] This embodiment provides an adaptive compensation method for CNC machine tool tool wear, which is based on the edge-decoupled adaptive compensation system for CNC machine tool tool wear in Embodiment 1, and includes the following steps: Step S1: Establish a communication connection with the target CNC machine tool at the edge decoupling layer: Log in to the Sigma edge acquisition platform (e.g., ... Figure 2 As shown in the diagram, locate the target processing unit in the device management tree and establish a stable communication connection based on the machine tool brand and control system model; Step S2: Enter the tool process parameters and tool compensation strategy in the application business layer, and generate tool compensation strategy configuration information (enter the main interface of the tool compensation parameter setting table, enter the basic tool parameters, configure the tool compensation rule logic, including the upper / lower limit threshold of wear compensation, single compensation equivalent and compensation direction, etc.). Step S3: The application business layer obtains the measurement value of the measuring instrument, calculates the dimensional deviation based on the comparison result between the measurement value and the center value of the target tolerance zone, and determines whether to trigger compensation (such as defining the triggering time of automatic tool compensation and setting the compensation buffer time). Step S4: When it is determined that compensation needs to be triggered, the application business layer generates standardized tool compensation control instructions based on the tool compensation strategy configuration information and dimensional deviation; when a tool compensation value reading operation needs to be performed, a G210.025 instruction is generated; when a tool compensation value modification operation needs to be performed, a G210.024 instruction is generated. Step S5: Send the standardized tool compensation control command to the edge decoupling layer; Step S6: The edge decoupling layer calls the corresponding private protocol parser according to the brand type of the target CNC machine tool to convert the standardized tool compensation control instructions into low-level instructions that can be executed by the target CNC machine tool; Step S7: The target CNC machine tool in the device execution layer executes the underlying instruction to modify the tool wear compensation value; the current tool compensation value is read through the G210.025 instruction, and the application business layer calculates the current wear amount based on the measurement value of the measuring instrument; the read compensation value is superimposed with the wear amount to obtain the corrected compensation value; the corrected compensation value is written to the CNC machine tool through the G210.024 instruction. Step S8: The edge decoupling layer converts the execution result into a unified standard format and sends it back to the application service layer.
[0031] The above embodiments are only for illustrating the technical concept and features of the present invention, and are intended to enable those skilled in the art to understand the content of the present invention and implement it accordingly. They should not be construed as limiting the scope of protection of the present invention. All equivalent changes or modifications made in accordance with the spirit and essence of the present invention should be covered within the scope of protection of the present invention.
Claims
1. An edge-decoupled adaptive compensation system for CNC machine tool tool wear, characterized in that, It includes: The application business layer is used to centrally process the tool compensation algorithm and compensation strategy to generate standardized tool compensation control instructions based on the input process parameters. An edge decoupling layer, which is communicatively connected to the application service layer, is used to receive the standardized tool compensation control instructions and, according to the brand type of the target CNC machine tool, call the corresponding private protocol parser to convert the standardized tool compensation control instructions into low-level instructions that can be executed by the target CNC machine tool. The device execution layer includes at least one CNC machine tool, which executes the underlying instructions to complete tool wear compensation.
2. The edge-decoupled adaptive compensation system for CNC machine tool wear according to claim 1, characterized in that: The application service layer and the edge decoupling layer interact with each other through a set of standard G-code instructions, which includes at least tool compensation value reading instructions and tool compensation value modification instructions.
3. The edge-decoupled adaptive compensation system for CNC machine tool wear according to claim 2, characterized in that: The standard G-code instruction set includes G210.025 instructions and G210.024 instructions. The G210.025 instruction is used to read the current compensation value of the corresponding tool of the target machine tool according to the specified machine tool number, axis group and tool number, and write the result into the specified data buffer. The G210.024 instruction is used to write the correction compensation value in the specified data buffer into the compensation parameters of the corresponding tool of the target machine tool according to the specified machine tool number, axis group and tool number.
4. The edge-decoupled adaptive compensation system for CNC machine tool wear according to claim 1, characterized in that: The application service layer includes a knife compensation strategy configuration module, a deviation calculation trigger module, and a standard G-code generator. The tool compensation strategy configuration module is used to input basic tool parameters and tool compensation rule logic, and generate tool compensation strategy configuration information. The deviation calculation trigger module is connected to the tool compensation strategy configuration. It is used to obtain the measurement value of the measuring instrument, calculate the dimensional deviation based on the comparison result between the measurement value and the center value of the target tolerance zone, determine whether to trigger compensation, and set the triggering time and compensation buffer time for automatic tool compensation. The standard G-code generator is connected to the knife compensation strategy configuration module and is used to generate the standardized knife compensation control command according to the knife compensation strategy configuration information.
5. The edge-decoupled adaptive compensation system for CNC machine tool wear according to claim 1, characterized in that: The edge decoupling layer includes an instruction receiving buffer, a standard G-code parser / router distributor, and a heterogeneous protocol conversion matrix. The instruction receiving buffer pool is used to receive and cache knife compensation control instructions from the application service layer, and to manage the queue according to the receiving time sequence; The standard G-code parser / routing distributor is connected to the instruction receiving buffer pool and is used to extract tool compensation control instructions from the instruction receiving buffer pool, parse the machine tool identification information in the instructions, and route the instructions to the corresponding processing channels according to the parsing results. The heterogeneous protocol conversion matrix is connected to the instruction receiving buffer pool and is used to obtain the corresponding standard G code instruction from the instruction receiving buffer pool according to the parsing results stored in the instruction receiving buffer pool, and convert it into low-level instructions that can be executed by the target machine tool.
6. A method for adaptive compensation of tool wear in CNC machine tools based on the compensation system described in any one of claims 1 to 5, characterized in that, Includes the following steps: Step S1: Establish a communication connection with the target CNC machine tool in the edge decoupling layer; Step S2: Enter the tool process parameters and tool compensation strategy into the application business layer to generate tool compensation strategy configuration information; Step S3: The application service layer obtains the measurement value of the measuring instrument, calculates the dimensional deviation based on the comparison result between the measurement value and the center value of the target tolerance zone, and determines whether to trigger compensation; Step S4: When it is determined that compensation needs to be triggered, the application service layer generates a standardized tool compensation control command based on the tool compensation strategy configuration information and the size deviation. Step S5: Send the standardized tool compensation control command to the edge decoupling layer; Step S6: The edge decoupling layer calls the corresponding private protocol parser according to the brand type of the target CNC machine tool to convert the standardized tool compensation control instructions into low-level instructions that can be executed by the target CNC machine tool; Step S7: The target CNC machine tool in the device execution layer executes the underlying instruction to complete the modification of the tool wear compensation value; Step S8: The edge decoupling layer converts the execution result into a unified standard format and sends it back to the application service layer.
7. The edge-decoupled adaptive compensation method for CNC machine tool wear according to claim 6, characterized in that, The specific method for generating standardized tool compensation control commands in step S4 is as follows: When a tool compensation value reading operation is required, the G210.025 instruction is generated; When a tool compensation value modification operation is required, the G210.024 instruction is generated.
8. The edge-decoupled adaptive compensation method for CNC machine tool wear according to claim 7, characterized in that, Step S7 also includes a closed-loop compensation step: The current tool compensation value is read by the G210.025 command, and the application business layer calculates the current wear amount based on the measurement value of the measuring instrument; the read compensation value is superimposed with the wear amount to obtain the corrected compensation value; The corrected compensation value is written to the CNC machine tool using the G210.024 command.