Automatic compensation processing method, system, computer device and storage medium for tool changing

CN117921439BActive Publication Date: 2026-10-27FU DING ELECTRONICSAL TECH JIASHAN
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311862432.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2026-10-27
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

然而,在更换刀具后,技术人员通常在对模具零件或产品进行加工后再对数控机床做调机补偿,影响加工效率,且人工调机补偿通常依靠技术人员的经验,导致调机补偿存在误差,从而导致不良品的产生

Benefits of technology

[0044]本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质有计算机程序,所述计算机程序被处理器执行时实现如上任一项技术方案所述的换刀自动补偿加工方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117921439B_ABST
    Figure CN117921439B_ABST
Patent Text Reader

Abstract

The application discloses a tool changing automatic compensation machining method, a system, computer equipment and a storage medium. The tool changing automatic compensation machining method comprises the following steps: acquiring an actual tool length value of a tool to be replaced; clamping the tool to be replaced on a spindle with an original reference point; driving the tool to be replaced by the spindle based on the original reference point to perform trial cutting on a trial cutting product to obtain an actual trial cutting value; calculating a trial cutting difference value based on a theoretical trial cutting value and the actual trial cutting value; acquiring a tolerance median value of a product to be machined; calculating a compensation tool length value of the tool to be replaced based on the actual tool length value, the trial cutting difference value and the tolerance median value; obtaining a compensation reference point of the spindle based on the compensation tool length value and the original reference point; and driving the tool to be replaced by the spindle based on the compensation reference point to machine the product to be machined. By executing the above method, the machining compensation is changed from being adjusted after machining to being adjusted before machining, and the machining efficiency is improved; and the machining compensation is changed from being adjusted by a technician to being automatically compensated, and the error in the machining compensation is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of tool-changing machining technology, specifically to a tool-changing automatic compensation machining method, system, computer equipment, and storage medium. Background Technology

[0002] Currently, CNC machine tools are widely used in the manufacturing industry, mainly for machining mold parts and products. CNC machining relies primarily on cutting tools to cut mold parts or products. The shape and structural characteristics of the mold parts or products determine their tool specifications. Generally, CNC machine tools have built-in tool magazines for holding tools of different shapes or sizes; common tool magazines have 12, 24, or 36 tools. Since mold parts or products have dimensional tolerance requirements, and cutting tools have a limited lifespan and need to be replaced periodically, after tool replacement, skilled technicians need to adjust the CNC machine tool to compensate for the dimensional tolerances of the previously machined mold part or product. However, technicians often perform machine adjustments after tool replacement, which affects processing efficiency. Furthermore, manual adjustments often rely on the technician's experience, leading to errors and ultimately, defective products. Summary of the Invention

[0003] In view of the above, it is necessary to propose an automatic tool-changing compensation machining method, system, computer equipment and storage medium to complete the machine adjustment compensation of CNC machine tools before formal machining, improve machining efficiency, reduce reliance on the experience of technicians, reduce errors in machine adjustment compensation, and reduce the generation of defective products.

[0004] This application provides an automatic tool-changing compensation machining method, including:

[0005] Obtain the actual tool length value of the tool to be replaced;

[0006] The tool to be replaced is clamped on the spindle, which has an original reference point;

[0007] Based on the original reference point, the spindle drives the tool to be replaced to perform a test cut on the test cutter to obtain the actual test cut value;

[0008] The difference between the theoretical and actual trial cut values ​​is calculated.

[0009] Obtain the median tolerance of the product to be processed;

[0010] The compensation length value of the tool to be replaced is calculated based on the actual tool length value, the trial cut difference value, and the median tolerance value.

[0011] The compensation reference point of the spindle is derived based on the compensation tool length value and the original reference point;

[0012] Based on the compensation reference point, the spindle drives the tool to be replaced to process the product to be processed.

[0013] In some embodiments, the step of obtaining the actual trial cut value includes:

[0014] Obtain the first height value of the first probe point on the unprocessed part of the test cut sample;

[0015] Obtain the second height value of the second probe point at the processed area on the test cut sample;

[0016] The actual test cut value is calculated based on the first height value and the second height value.

[0017] In some embodiments, the test cutting process involves processing a test cutting groove on the test cut item, wherein the first probe is any point on the test cut item other than the test cutting groove, and the second probe is any point on the bottom of the test cutting groove.

[0018] In some embodiments, the method for calculating the compensation tool length value satisfies the following condition:

[0019] A = B + CD;

[0020] Wherein, A is the compensation blade length value, B is the actual blade length value, C is the trial cut difference value, and D is the tolerance median value.

[0021] In some embodiments, the automatic tool-changing compensation machining method further includes:

[0022] Obtain the category information of the tool to be replaced;

[0023] The compensation value of the tool to be replaced is set to 1;

[0024] Based on the category information and the compensation value of the tool to be replaced being assigned to 1, the trial cutting program corresponding to the tool to be replaced is obtained.

[0025] The step of the spindle driving the tool to be replaced to perform a test cut on the test piece based on the original reference point is as follows:

[0026] Based on the original reference point, the spindle drives the tool to be replaced to execute the trial cutting program to perform trial cutting on the test cut.

[0027] In some embodiments, the automatic tool-changing compensation machining method further includes:

[0028] Based on the compensated tool length value, the compensation amount of the tool to be replaced is set to 0, and the compensation of the tool to be replaced ends.

[0029] In some embodiments, the automatic tool-changing compensation machining method further includes:

[0030] Untie the knives to be removed;

[0031] Set the blade length value of the tool to be removed to 0;

[0032] Obtain the data information of the tool to be replaced;

[0033] Based on the data information, the tool to be replaced is bound to the spindle.

[0034] This application also provides an automatic tool-changing compensation machining system, including:

[0035] The acquisition module is used to obtain the actual tool length value of the tool to be replaced;

[0036] A clamping module is used to clamp the tool to be replaced onto the spindle, the spindle having an original reference point;

[0037] The processing module is used to perform trial cutting on the test cutter based on the original reference point, with the spindle driving the tool to be replaced to obtain the actual test cut value;

[0038] The calculation module is used to calculate the difference value between the theoretical and actual trial cut values.

[0039] The acquisition module is also used to acquire the median tolerance of the product to be processed;

[0040] The calculation module is also used to calculate the compensation length value of the tool to be replaced based on the actual tool length value, the trial cut difference value and the tolerance median value;

[0041] The compensation module is used to derive the compensation reference point of the spindle based on the compensation tool length value and the original reference point;

[0042] The machining module is also used to process the product to be processed by the spindle driving the tool to be replaced based on the compensation reference point.

[0043] This application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the automatic tool-changing compensation machining method as described in any of the above technical solutions.

[0044] This application also provides a computer-readable storage medium having a computer program, which, when executed by a processor, implements the automatic tool-changing compensation machining method as described in any of the above technical solutions.

[0045] The automatic tool-changing compensation machining method, system, computer equipment, and storage medium provided in this application embodiment obtain the actual tool length value of the tool to be replaced. The spindle drives the tool to be replaced to perform a trial cut on a test piece based on the original reference point to obtain the actual trial cut value. The trial cut difference value is calculated based on the theoretical trial cut value and the actual trial cut value to obtain the median tolerance value of the product to be processed. The compensation tool length value of the tool to be replaced is calculated based on the actual tool length value, the trial cut difference value, and the median tolerance value. The compensation reference point of the spindle is obtained based on the calculated compensation tool length value and the original reference point of the spindle. The spindle drives the tool to be replaced to perform formal machining on the product to be processed based on the compensation reference point. By executing the above steps, the CNC machine tool changes the process from adjusting and compensating after product processing to adjusting and compensating before processing. This reduces the number of adjustment and compensation steps, saves adjustment and compensation time, and thus improves processing efficiency. Furthermore, the process changes from technicians adjusting and compensating to automatic compensation after the CNC machine tool changes the tool to be replaced. This reduces reliance on technician experience and errors caused by varying experience or negligence during adjustment and compensation. Reducing errors during adjustment and compensation decreases the number of defective products and improves product yield. Since adjustment and compensation are completed before formal processing, there is no need to process the product to be processed, reducing product waste and saving costs. Attached Figure Description

[0046] Figure 1 This is a schematic flowchart of the automatic tool-changing compensation machining method provided in the embodiments of this application.

[0047] Figure 2 This is a schematic diagram of a test cut sample to which the automatic compensation machining method for tool changing provided in this application embodiment applies.

[0048] Figure 3 This is a schematic diagram of the functional modules of the automatic tool-changing compensation machining system provided in the embodiments of this application.

[0049] Explanation of main component symbols

[0050] Automatic tool change compensation machining system 100

[0051] Get Module 101

[0052] Clamping Module 102

[0053] Processing Module 103

[0054] Calculation Module 104

[0055] Compensation Module 105

[0056] Assignment Module 106

[0057] Sample 1

[0058] Test cut groove 10

[0059] First exploration point 20

[0060] Second exploration point 30 Detailed Implementation

[0061] The embodiments of this application are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.

[0062] In the description of this application, it should be understood that the terms indicating orientation or positional relationship are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, it should be noted that "a plurality of" means two or more, unless otherwise explicitly specified.

[0063] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the term "connection" should be interpreted broadly. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or a connection that allows communication between the two components; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal communication between two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0064] The following will describe some embodiments of this application in detail with reference to the accompanying drawings.

[0065] Please see Figure 1 , Figure 1This is a flowchart illustrating the automatic tool-changing compensation machining method provided in this application. The automatic tool-changing compensation machining method of this application is applied to CNC machine tools. For CNC machine tools requiring automatic tool-changing compensation machining, the automatic tool-changing compensation machining function provided by the method of this application can be directly integrated into the CNC machine tool, or a client or APP for implementing the automatic tool-changing compensation machining method of this application can be installed to automatically perform machine adjustment compensation during tool changing to ensure the dimensional machining tolerances of the product. Alternatively, the automatic tool-changing compensation machining method provided in this application can also run on the CNC machine tool in the form of a Software Development Kit (SDK). The SDK provides an interface for the automatic tool-changing compensation machining function, and the processor or other devices can implement the automatic tool-changing compensation machining function through the provided interface.

[0066] Please see Figure 1 The automatic tool change compensation machining method includes the following steps S11 to S18.

[0067] Step S11: Obtain the actual tool length value of the tool to be replaced.

[0068] Step S12: Mount the tool to be replaced on the spindle, which has its original reference point.

[0069] Step S13: Based on the original reference point, the spindle drives the tool to be replaced to perform a test cut on the test cut to obtain the actual test cut value.

[0070] Step S14: Calculate the trial cut difference value based on the theoretical trial cut value and the actual trial cut value.

[0071] Step S15: Obtain the median tolerance of the product to be processed.

[0072] Step S16: Calculate the compensation length value of the tool to be replaced based on the actual tool length value, the trial cutting difference value, and the median tolerance value.

[0073] Step S17: Based on the compensation tool length value and the original reference point, the compensation reference point of the spindle is obtained.

[0074] Step S18: Based on the compensation reference point, the spindle drives the tool to be replaced to process the product to be processed.

[0075] Specifically, in step S11, the tool to be replaced can be understood as the tool that is about to be replaced on the spindle of the CNC machine tool. The tool can cut the product to be processed, for example, to machine a groove-like structure on the product. Before replacing the tool, the actual tool length value of the tool to be replaced is obtained. In practical applications, the tool length of the tool to be replaced is detected by a tool length detection device. The tool to be replaced is clamped on the tool length detection device to perform tool length and runout correction measurements, thereby obtaining the actual tool length value of the tool to be replaced.

[0076] It should be noted that CNC machine tools have multiple tools in their tool magazine. Understandably, in practical applications, a tool length detection device can be used to detect the actual tool length of multiple tools. Each tool can be equipped with a barcode containing information such as the tool type and a unique serial number. After the tool length detection device detects the actual tool length of multiple tools, it can bind the actual tool length to the tool's barcode. The actual tool length can then be obtained by reading the barcode. Similarly, in practical use, CNC machine tools can also be numbered, giving each machine a unique identifier. The machine tool can use a barcode scanner to read the barcode of the tool to be replaced to obtain information such as the tool's category, serial number, and actual tool length. This information is then sent to the machine tool to obtain the actual tool length of the tool to be replaced.

[0077] In some embodiments, the automatic tool change compensation machining method may further perform steps S101 to S102 before performing step S11.

[0078] Step S101: Untie the knife to be removed.

[0079] Step S102: Set the tool length value of the tool to be removed to 0.

[0080] Specifically, in step S101, the tool to be removed can be understood as the tool on the spindle of the CNC machine tool that is about to be removed. When the lifespan of the tool to be removed on the spindle reaches its limit, the CNC machine tool will issue an alarm. When unbinding the tool, it can also be done on the industrial computer of the CNC machine tool by reading the tool's barcode. In step S102, since the tool to be removed has reached its lifespan, it should be scrapped. While unbinding the tool, its tool length value can be set to 0. Thus, when the barcode scanner reads the tool's barcode again, the information read includes the tool length value of 0 (i.e., the tool's lifespan has ended), avoiding the reuse of the tool. After completing steps S101 and S102, the tool to be removed can be removed from the spindle. Understandably, the step of removing the tool to be removed can also be performed before steps S101 and S102, that is, first remove the tool to be removed from the spindle, and then unbind and assign a value of 0 to the tool to be removed. Understandably, in other embodiments, the execution order of steps S101 and S102 can also be interchanged.

[0081] In some embodiments, the automatic tool change compensation machining method may further perform steps S111 to S112 after performing step S11.

[0082] Step S111: Obtain the data information of the tool to be replaced.

[0083] Step S112: Bind the tool to be replaced to the spindle based on the data information.

[0084] Specifically, in step S111, the data information of the tool to be replaced can be obtained by reading its barcode, including the tool's unique serial number. In step S112, the unique serial number of the tool to be replaced is bound to the spindle. Thus, by executing steps S111 to S112, the tool to be replaced is bound to the spindle, and based on the unique serial number of the tool to be replaced and the unique serial number of the CNC machine tool, this binding relationship is also unique, so that the CNC machine tool can execute the corresponding program according to this unique binding relationship.

[0085] In some embodiments, the automatic tool change compensation machining method may further perform steps S113 to S115 after performing step S112.

[0086] Step S113: Obtain the category information of the tool to be replaced.

[0087] Step S114: Assign a compensation value of 1 to the tool to be replaced.

[0088] Step S115: Based on the category information and the compensation amount of the tool to be replaced, a value of 1 is assigned to obtain the trial cutting program corresponding to the tool to be replaced.

[0089] Specifically, in step S113, the category information of the tool to be replaced can be obtained by reading its barcode. This category information includes the tool type, such as end mill, T-cut, angle mill, face mill, etc. In step S114, after obtaining the category information and data of the tool to be replaced and binding it to the spindle, the compensation value of the tool to be replaced is set to 1. It should be noted that setting the compensation value to 1 means that the tool to be replaced has not yet undergone machine adjustment compensation. By setting the compensation value to 1, the CNC machine tool can execute the corresponding program to automatically perform machine adjustment compensation after replacing the tool. In step S115, based on the category information and the compensation value of the tool to be replaced being set to 1, the CNC machine tool obtains the trial cutting program corresponding to the tool to be replaced. Since different tool types require different trial cutting programs, the specific programs executed for each tool will vary. Understandably, the trial cutting program can be pre-stored in the CNC machine tool, which retrieves the corresponding trial cutting program based on the tool type to be replaced. Thus, by executing steps S113 to S114, the CNC machine tool can obtain the trial cutting program corresponding to the tool to be replaced.

[0090] In step S12, the tool to be replaced is clamped on the spindle, which has an original reference point (which can be understood as the origin of the coordinate system). Understandably, the original reference point of the spindle can include two aspects: firstly, when the tool to be replaced is the tool initially clamped on the CNC machine tool, this original reference point can be understood as the reference point when the spindle starts; secondly, when the tool to be replaced is not the tool initially clamped on the CNC machine tool, this original reference point can be understood as the reference point when the spindle drives the tool to be removed for machining while the tool to be removed is clamped on the spindle. That is, the machining performed by the spindle based on the original reference point with the tool to be removed conforms to the dimensional tolerance requirements of the product. In other words, the spindle does not need to perform a reference point restoration operation when changing tools; machine adjustment compensation can be performed based on the original reference point, further saving time on machine adjustment compensation.

[0091] In step S13, based on the original reference point and the tool to be replaced, the tool is clamped on the spindle. The spindle drives the tool to be replaced to perform a test cut on the test piece to obtain the actual test cut value. Please refer to [link to relevant documentation]. Figure 2The test piece 1 can be understood as a planar object, and the test cutting process can be understood as machining a test cutting groove 10 on the test piece 1. Understandably, when the CNC machine tool executes the automatic tool change compensation machining method, it needs to perform a test cut on the test piece 1 before machining the product to be processed. This changes the previous method of directly machining the product and then adjusting the machine for compensation to performing machine adjustment compensation before machining the product, saving adjustment compensation time and improving processing efficiency. Specifically, step S13 can be: based on the original reference point, the spindle drives the tool to be replaced to execute the test cutting program to perform a test cut on the test piece 1.

[0092] In some embodiments, the step of obtaining the actual trial cut value in step S13 specifically includes the following steps S131 to S133.

[0093] Step S131: Obtain the first height value of the first probe point 20 on the unprocessed part of the test cut 1.

[0094] Step S132: Obtain the second height value of the second probe point 30 at the processing location on the test cut 1.

[0095] Step S133: Calculate the actual test cut value based on the first height value and the second height value.

[0096] Specifically, in step S131, the first probe point 20 is any point on the test piece 1 other than the test cutting groove 10. The height between the probe and the first probe point 20 is measured by a probe on the CNC machine tool. In step S132, the second probe point 30 is any point on the bottom of the test cutting groove 10 on the test piece 1. The height between the probe and the second probe point 30 is measured by a probe on the CNC machine tool. Understandably, in actual use, the CNC machine tool probe moves directly above the first probe point 20 and the second probe point 30 to obtain the first and second height values, respectively. The probe sends the measured height values ​​to the receiver of the CNC machine tool. The probe can move synchronously with the spindle, and the probe can be spaced apart from the spindle. In step S133, the actual test cut value is calculated based on the difference between the first and second height values. Specifically, it is the difference between the second and first height values. For example, if the difference between the second and first height values ​​is 0.13 mm, then the actual test cut value is 0.13 mm.

[0097] In step S14, the trial cutting difference value is calculated based on the difference between the actual trial cutting value and the theoretical trial cutting value. The theoretical trial cutting value is pre-existing on the CNC machine tool. For example, if the actual trial cutting value is 0.13mm and the theoretical trial cutting value is 0.1mm, then the trial cutting difference value is 0.13mm - 0.1mm = 0.03mm. Understandably, when the actual trial cutting value is less than the theoretical trial cutting value, for example, if the actual trial cutting value is 0.07mm, then the trial cutting difference value is 0.07mm - 0.1mm = -0.03mm. That is, the trial cutting difference value can be positive or negative. A positive trial cutting difference value indicates that the actual trial cutting value is greater than the theoretical trial cutting value, and a negative trial cutting difference value indicates that the actual trial cutting value is less than the theoretical trial cutting value.

[0098] In step S15, the median tolerance of the product to be processed is obtained. For example, if the depth processing range of the product to be processed is 5.0 + 0.01 / - 0.04 mm, that is, the depth processing range of the product to be processed is 4.96 mm - 5.01 mm, the tolerance range of the product to be processed is 0.01 - (-0.04) = 0.05 mm, the median tolerance is 0.025, and the median dimension of the product to be processed is 4.985 mm. It can be understood that the median tolerance of the product to be processed has been determined according to actual production needs before processing. The median tolerance of the product to be processed can be input to the CNC machine tool, or it can be obtained by reading the barcode on the product to be processed. It can also be understood that a barcode can be set on the product to be processed, and this barcode includes the median tolerance, depth processing range, etc.

[0099] In step S16, the compensated tool length value of the tool to be replaced is calculated based on the obtained actual tool length value, trial cut difference value, and tolerance median value. The compensated tool length value can be understood as the relative tool length value of the tool to be replaced at the current original reference point. In some embodiments, the calculation method of the compensated tool length value satisfies the following conditional expression:

[0100] A = B + CD; where A is the compensation blade length value, B is the actual blade length value, C is the trial cut difference value, and D is the tolerance median value.

[0101] For example, if the actual tool length B is -143.838 mm, the trial cut difference C is 0.03 mm, and the tolerance median D is -0.025, then the compensated tool length A = -143.838 + 0.03 - (-0.025) = -143.783 mm. It can be understood that the compensated tool length after the tool to be replaced, with an actual tool length of -143.838 mm, is clamped on the spindle is equivalent to -143.783 mm.

[0102] In step S17, the compensation reference point of the spindle is obtained based on the acquired compensation tool length value and the original reference point. This can also be understood as compensating the original reference point of the spindle based on the acquired compensation tool length value to obtain the compensation reference point. For example, if the actual tool length is -143.838mm and the compensation tool length is -143.783mm, the difference between the actual and compensation tool lengths is -0.055mm. Therefore, the compensation reference point can be understood as the original reference point offset by -0.055mm, meaning the spindle is offset by 0.055mm from the original reference point in a direction away from the product to be processed, and this offset coordinate is used as the compensation reference point.

[0103] In step S18, based on the obtained compensation reference point, the CNC machine tool automatically performs machine adjustment compensation after tool change. The spindle drives the tool to be replaced to process the product based on the compensation reference point, so that the tolerance dimensions of the processed product meet the requirements.

[0104] In some embodiments, the automatic tool change compensation machining method may further perform the following step S171 after performing step S17.

[0105] Step S171: Based on the compensation tool length value, the compensation amount of the tool to be replaced is set to 0, and the compensation of the tool to be replaced is ended.

[0106] Specifically, in step S114, the compensation amount of the tool to be replaced is assigned a value of 1, so that the CNC machine tool will drive the tool to be replaced to perform trial cutting for adjustment and compensation based on the compensation amount of 1. In step S171, after the CNC machine tool has performed adjustment and compensation, the compensation amount of the tool to be replaced needs to be assigned a value of 0, indicating that the CNC machine tool has already performed adjustment and compensation after replacing the tool, and the compensation of the tool to be replaced needs to be ended to avoid the CNC machine tool repeatedly performing compensation for the tool to be replaced. Thus, by executing step S171, the compensation amount of the tool to be replaced is assigned a value of 0, thereby avoiding the CNC machine tool repeatedly performing the relevant steps of adjustment and compensation.

[0107] The automatic tool-changing compensation machining method provided in this application involves obtaining the actual tool length of the tool to be replaced, driving the spindle to perform a trial cut on a test piece 1 based on the original reference point to obtain the actual trial cut value, calculating the trial cut difference value based on the theoretical and actual trial cut values, taking the median tolerance of the product to be processed, calculating the compensation tool length value of the tool to be replaced based on the actual tool length value, the trial cut difference value, and the median tolerance value, obtaining the spindle's compensation reference point based on the calculated compensation tool length value and the spindle's original reference point, and then driving the spindle to perform formal machining on the product to be processed based on the compensation reference point. By implementing an automatic tool change compensation machining method, CNC machine tools have changed the process from adjusting and compensating after product processing to adjusting and compensating before processing. This reduces the number of adjustment and compensation steps, saves adjustment and compensation time, and thus improves processing efficiency. The shift from technician-based adjustment to automatic compensation reduces reliance on technician experience and minimizes errors caused by varying experience or negligence during adjustment and compensation. This reduction in errors during adjustment and compensation leads to fewer defective products and improves product yield. Furthermore, since adjustment and compensation are completed before formal processing, there is no need to process the products to be processed, reducing product waste and saving costs.

[0108] Please see Figure 3 This application also provides an automatic tool-changing compensation machining system 100. The automatic tool-changing compensation machining system 100 can be divided into multiple functional modules according to its functions. Each functional module is used to execute the steps in the above-described automatic tool-changing compensation machining method, so that the CNC machine tool automatically performs machine adjustment compensation during tool changing to ensure the machining dimensional tolerances of the product. The automatic tool-changing compensation machining system 100 includes an acquisition module 101, a clamping module 102, a machining module 103, a calculation module 104, and a compensation module 105.

[0109] The acquisition module 101 is used to acquire the actual tool length value of the tool to be replaced.

[0110] The clamping module 102 is used to clamp the tool to be replaced on the spindle, which has an original reference point.

[0111] The processing module 103 is used to perform trial cutting on the test cutter 1 based on the original reference point, with the spindle driving the tool to be replaced, so as to obtain the actual test cutting value.

[0112] The calculation module 104 is used to calculate the difference value between the theoretical and actual trial cut values.

[0113] The acquisition module 101 is also used to acquire the median tolerance of the product to be processed.

[0114] The calculation module 104 is also used to calculate the compensation length value of the tool to be replaced based on the actual tool length value, the trial cutting difference value and the tolerance median value.

[0115] The calculation method for the compensation blade length value satisfies the following condition: A = B + CD; A is the compensation blade length value, B is the actual blade length value, C is the trial cut difference value, and D is the tolerance median value.

[0116] The compensation module 105 is used to derive the compensation reference point of the spindle based on the compensation tool length value and the original reference point.

[0117] The machining module 103 is also used to machine the product based on the compensation reference point, with the spindle driving the tool to be replaced.

[0118] In some embodiments, the acquisition module 101 is further configured to acquire the first height value of the first probe point 20 at the unprocessed part of the test cut 1.

[0119] The acquisition module 101 is also used to acquire the second height value of the second probe point 30 at the processed part on the test cut 1.

[0120] Among them, the test cutting process is to process a test cutting groove 10 on the test cut product 1. The first probe point 20 is any point on the test cut product 1 other than the test cutting groove 10, and the second probe point 30 is any point on the bottom of the test cutting groove 10.

[0121] The calculation module 104 is also used to calculate the actual test cut value based on the first height value and the second height value.

[0122] In some embodiments, the automatic tool change compensation machining system 100 further includes an assignment module 106.

[0123] The acquisition module 101 is also used to acquire the category information of the tool to be replaced.

[0124] The assignment module 106 is used to assign a compensation value of 1 to the tool to be replaced.

[0125] The acquisition module 101 is also used to acquire the trial cutting program corresponding to the tool to be replaced by assigning a value of 1 based on the category information and the compensation amount of the tool to be replaced.

[0126] The machining module 103 is also used to perform a trial cutting program on the test cutter 1 by driving the spindle to execute the test cutting program based on the original reference point.

[0127] In some embodiments, the assignment module 106 is further configured to assign the compensation amount of the tool to be replaced to 0 based on the compensation tool length value, thereby ending the compensation of the tool to be replaced.

[0128] In some embodiments, the clamping module 102 is also used to untie the tool to be removed.

[0129] The assignment module 106 is also used to assign the tool length value of the tool to be removed to 0.

[0130] The acquisition module 101 is also used to acquire data information of the tool to be replaced.

[0131] The clamping module 102 is also used to bind the tool to be replaced to the spindle based on data information.

[0132] The automatic tool-changing compensation machining system 100 provided in this application embodiment acquires the actual tool length value of the tool to be replaced through the acquisition module 101, and uses the machining module 103 to drive the spindle to perform a test cut on the test piece 1 based on the original reference point to obtain the actual test cut value. The calculation module 104 calculates the test cut difference value based on the theoretical test cut value and the actual test cut value. The acquisition module 101 acquires the median tolerance value of the product to be processed, and the calculation module 104 calculates the compensation tool length value of the tool to be replaced based on the actual tool length value, the test cut difference value, and the median tolerance value. The compensation module 105 obtains the compensation reference point of the spindle based on the calculated compensation tool length value and the original reference point of the spindle. The machining module 103 then drives the spindle to perform a test cut on the test piece 1 based on the original reference point of the spindle. The axis, based on the compensation reference point, drives the tool to be replaced to perform formal machining on the product. The CNC machine tool, through the automatic tool change compensation machining system 100, changes the original method of adjusting and compensating after product machining to adjusting and compensating before machining. This reduces the number of adjustment and compensation operations, saves adjustment and compensation time, and thus improves machining efficiency. The change from machine adjustment and compensation by technicians to automatic compensation reduces reliance on technicians' experience and reduces errors caused by differences in technicians' experience or negligence during machine adjustment and compensation. By reducing errors in machine adjustment and compensation, the generation of defective products is reduced, and the product processing yield is improved. Since machine adjustment and compensation are completed before formal machining, there is no need to process the product to be machined, reducing product waste and saving costs.

[0133] This application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the above-described automatic tool change compensation machining method.

[0134] This application also provides a computer-readable storage medium containing a computer program. When the computer program is executed by a processor, it implements the steps of the above-described automatic tool change compensation machining method.

[0135] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be regarded as exemplary and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within this application.

[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it. Although this application has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of this application without departing from the spirit and scope of the technical solutions of this application.

Claims

1. An automatic tool-changing compensation machining method, characterized in that, include: Untie the knives to be removed; Set the blade length value of the tool to be removed to 0; Obtain the actual tool length value of the tool to be replaced; Obtain the data information of the tool to be replaced; Based on the data information, the tool to be replaced is bound to the spindle; Obtain the category information of the tool to be replaced; The compensation value of the tool to be replaced is set to 1; Based on the category information and the compensation value of the tool to be replaced being assigned to 1, the trial cutting program corresponding to the tool to be replaced is obtained. The tool to be replaced is clamped on the spindle, which has an original reference point; Based on the original reference point, the spindle drives the tool to be replaced to perform a test cut on the test cutter to obtain the actual test cut value; The difference between the theoretical and actual trial cut values ​​is calculated. Obtain the median tolerance of the product to be processed; The compensation length value of the tool to be replaced is calculated based on the actual tool length value, the trial cut difference value, and the median tolerance value. The compensation reference point of the spindle is derived based on the compensation tool length value and the original reference point; Based on the compensation reference point, the spindle drives the tool to be replaced to process the product to be processed.

2. The automatic tool-changing compensation machining method as described in claim 1, characterized in that, The step of obtaining the actual trial cut value includes: Obtain the first height value of the first probe point on the unprocessed part of the test cut sample; Obtain the second height value of the second probe point at the processed area on the test cut sample; The actual test cut value is calculated based on the first height value and the second height value.

3. The automatic tool-changing compensation machining method as described in claim 2, characterized in that, The test cutting process involves machining a test cutting groove on the test cut item. The first probe point is any point on the test cut item other than the test cutting groove, and the second probe point is any point on the bottom of the test cutting groove.

4. The automatic tool-changing compensation machining method as described in claim 1, characterized in that, The calculation method for the compensation tool length value satisfies the following condition: A = B + CD; Wherein, A is the compensation blade length value, B is the actual blade length value, C is the trial cut difference value, and D is the tolerance median value.

5. The automatic tool-changing compensation machining method as described in claim 1, characterized in that, in, The step of the spindle driving the tool to be replaced to perform a trial cut on the test piece based on the original reference point is as follows: Based on the original reference point, the spindle drives the tool to be replaced to execute the trial cutting program to perform trial cutting on the test cut.

6. The automatic tool-changing compensation machining method as described in claim 5, characterized in that, The automatic tool-changing compensation machining method further includes: Based on the compensated tool length value, the compensation amount of the tool to be replaced is set to 0, and the compensation of the tool to be replaced ends.

7. An automatic tool-changing compensation machining system, characterized in that, include: Clamping module for unbinding the tool to be removed; The assignment module is used to assign the blade length value of the tool to be removed to 0; The acquisition module is used to obtain the actual tool length value of the tool to be replaced; The acquisition module is also used to acquire data information of the tool to be replaced; The clamping module is also used to bind the tool to be replaced to the spindle based on the data information; The acquisition module is also used to acquire the category information of the tool to be replaced; The assignment module is also used to assign the compensation amount of the tool to be replaced to 1; The acquisition module is also used to acquire the trial cutting program corresponding to the tool to be replaced based on the category information and the compensation amount of the tool to be replaced being assigned a value of 1. The clamping module is also used to clamp the tool to be replaced on the spindle, the spindle having an original reference point; The processing module is used to perform trial cutting on the test cutter based on the original reference point, with the spindle driving the tool to be replaced to obtain the actual test cut value; The calculation module is used to calculate the difference value between the theoretical and actual trial cut values. The acquisition module is also used to acquire the median tolerance of the product to be processed; The calculation module is also used to calculate the compensation length value of the tool to be replaced based on the actual tool length value, the trial cut difference value and the tolerance median value; The compensation module is used to derive the compensation reference point of the spindle based on the compensation tool length value and the original reference point; The machining module is also used to process the product to be processed by the spindle driving the tool to be replaced based on the compensation reference point.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the automatic tool-changing compensation machining method as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program, characterized in that, When the computer program is executed by the processor, it implements the automatic tool change compensation machining method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Engine cylinder sleeve automatic measuring equipment

    CN108007310A

  • Machine tool control method and system

    CN115629569A