A method, system, and medium for three-coordinate measurement assisted five-axis machining compensation

CN120802836BActive Publication Date: 2026-06-02SHENZHEN JUNCHENG PRECISION MFG CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN JUNCHENG PRECISION MFG CO LTD
Filing Date
2025-08-25
Publication Date
2026-06-02

Smart Images

  • Figure CN120802836B_ABST
    Figure CN120802836B_ABST
Patent Text Reader

Abstract

The application provides a kind of three coordinate measurement auxiliary five-axis machining compensation method, system and medium.The method includes: by utilizing the relative offset amount of product coordinate system and machine tool coordinate system determined by using skip function detection, and the product to be processed is processed, then the space coordinate data of space point of curved surface and the feature point coordinate measurement data of profile contour are collected by using three coordinate measuring instrument to analyze and process, obtain curved surface machining error and actual profile parameter data, product image of processing product is collected to analyze and process, product digital model is generated, finally, five-axis machining compensation parameter is generated according to curved surface machining error, actual profile parameter data and product digital model;The application realizes three coordinate measurement auxiliary five-axis machining compensation by configuring product processing basic parameter, initializing tool path and coordinate system, calibrating workpiece and machine tool coordinate system, collecting three coordinate curved surface and profile dynamic data, using algorithm analysis and generating compensation parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of five-axis precision manufacturing and precision three-coordinate programming control technology, and more specifically, to a method, system and medium for three-coordinate measurement-assisted five-axis machining compensation. Background Technology

[0002] In the field of five-axis precision machining, precision control has long been a challenge for machining complex curved surfaces, free contours, precision shapes, and hole features. Because five-axis machining involves multi-axis linkage, the accumulated errors between spatial coordinates and theoretical designs are significant. Traditional machining methods require repeated machining and multiple adjustments to correct these errors, resulting in high equipment occupancy, long machining cycles, and low production efficiency, making it difficult to meet the demands of high-precision, mass production. Furthermore, in existing technologies, machining parameter settings and measurement feedback are disconnected, failing to dynamically correlate actual part dimensions with machining parameters in real time, leading to delayed error compensation. Therefore, a collaborative technology integrating coordinate measuring machine (CMM) and five-axis machining is urgently needed to achieve precise compensation and efficient control of the machining process.

[0003] Effective technical solutions are urgently needed to address the above problems. Summary of the Invention

[0004] The purpose of this application is to provide a method, system, and medium for five-axis machining compensation assisted by coordinate measuring machine (CMM). This method can achieve five-axis machining compensation assisted by coordinate measuring machine (CMM) by configuring basic product machining parameters, initializing tool path and coordinate system, calibrating workpiece and machine tool coordinate system, acquiring dynamic data of three-coordinate surface and contour, and using algorithms to analyze and generate compensation parameters.

[0005] In a first aspect, this application provides a method for compensation in five-axis machining assisted by coordinate measuring machine (CMM), comprising the following steps:

[0006] Set the basic parameters for product machining and the tool data for product machining in the machine tool interface, database, variable program and model data;

[0007] Based on the product processing basic parameters and product processing tool data, the initial edge coordinate data of the product to be processed is detected by the step-by-step function, and analyzed to obtain the relative offset between the product coordinate system and the machine tool coordinate system.

[0008] Based on the product processing basic parameters, product processing tool data, and the relative offset, the product to be processed is processed to obtain the processed product;

[0009] The spatial coordinate data of the curved surface points are collected using a coordinate measuring machine and compared with the preset product model data to obtain the curved surface processing error.

[0010] The coordinate measurement data of the feature points of the outer contour of the processed product are collected using a coordinate measuring machine and analyzed to obtain the actual contour parameter data of the processed product.

[0011] Obtain product images of the processed products, analyze and process the product images, and generate a digital model of the products;

[0012] Based on the surface machining error, actual contour parameter data, and product digital model, a preset algorithm is used to analyze and process the data to generate five-axis machining compensation parameters.

[0013] Optionally, in the method for compensation of five-axis machining assisted by coordinate measuring machine as described in this application, the step of setting the basic parameters of product machining and the tool data of product machining in the machine tool interface, database, variable program and model data includes:

[0014] Set the basic parameters for product machining and the tool data for product machining in the machine tool interface, database, variable program and model data;

[0015] The basic parameters for product processing include tool call parameter data, rotary cycle parameter data, debugging parameter data, and feed rate;

[0016] The product machining tool data includes tool compensation parameter data, tool initial position data, and coordinate system transformation parameter data.

[0017] Optionally, in the three-coordinate measurement-assisted five-axis machining compensation method described in this application, the step of detecting the initial edge coordinate data of the product to be processed through the step-by-step function based on the product machining basic parameters and product machining tool data, and performing analysis and processing to obtain the relative offset between the product coordinate system and the machine tool coordinate system includes:

[0018] Based on the product processing basic parameters and product processing tool data, the probe is triggered to contact the edge of the product to be processed through the step function to obtain the initial edge coordinate data of the product to be processed in the machine tool coordinate system;

[0019] The initial coordinate data is analyzed and processed in conjunction with the preset machine tool mechanical coordinates and preset probe compensation parameters to obtain the actual edge coordinate data.

[0020] The relative offset between the product coordinate system and the machine tool coordinate system is obtained by processing the actual edge coordinate data.

[0021] Optionally, in the method for compensating five-axis machining assisted by coordinate measuring machine described in this application, the step of collecting spatial coordinate data of curved surface points on the machined product using a coordinate measuring machine and comparing it with preset product model data to obtain the curved surface machining error includes:

[0022] A coordinate measuring machine is used to collect data from multiple spatial points on the curved surface of the processed product to obtain the corresponding spatial coordinate data.

[0023] The spatial coordinate data and the corresponding preset product model data are aligned using the least squares method, and the data is preprocessed to obtain optimized spatial coordinate data.

[0024] The optimized spatial coordinate data is compared with the theoretical spatial coordinate data of the corresponding spatial points in the preset product model data to obtain the surface machining error in the normal direction.

[0025] Optionally, in the method for compensation of five-axis machining assisted by coordinate measuring machine described in this application, the step of collecting the coordinate measurement data of feature points of the outer contour of the machined product using a coordinate measuring machine and analyzing and processing the data to obtain the actual contour parameter data of the machined product includes:

[0026] The coordinate measurement data of the feature points of the outer contour of the processed product are collected using a coordinate measuring machine;

[0027] The actual coordinate data of the feature points are obtained by combining the measured coordinate data of the feature points with the preset probe radius value.

[0028] The actual contour parameter data of the processed product is obtained by processing the actual coordinate data of the feature points using a preset triangulation calculation method.

[0029] Optionally, in the method for three-coordinate measurement-assisted five-axis machining compensation described in this application, the step of acquiring a product image of the machined product, analyzing and processing the product image, and generating a digital model of the product includes:

[0030] The processed product is imaged using a high-precision probe to obtain an image of the processed product.

[0031] The processed product image is preprocessed, contour edge detection is performed, and feature point recognition is performed to obtain product geometric feature parameter data;

[0032] Based on the product's geometric feature parameters, combined with the surface machining error and actual contour parameter data, and the preset product model data, a digital model of the product is generated through a preset image matching and reconstruction method.

[0033] Optionally, in the method for compensating five-axis machining with coordinate measuring machine as described in this application, the step of generating five-axis machining compensation parameters by analyzing and processing the surface machining error, actual contour parameter data, and product digital model through a preset algorithm includes:

[0034] By combining the surface machining error, actual contour parameter data, and product digital model with preset product model data, error clustering analysis is performed to obtain machining system error, machining local error, and machining surface quality error.

[0035] Based on the machining system error, machining local error, and machining surface quality error, a preset algorithm is used to process and generate five-axis machining compensation parameters, including tool length compensation correction value, relative offset adjustment value, and feed rate optimization value.

[0036] Secondly, this application provides a system for three-coordinate measurement-assisted five-axis machining compensation. The system includes a memory and a processor. The memory includes a program for a method of three-coordinate measurement-assisted five-axis machining compensation. When the program for the three-coordinate measurement-assisted five-axis machining compensation is executed by the processor, it implements the following steps:

[0037] Set the basic parameters for product machining and the tool data for product machining in the machine tool interface, database, variable program and model data;

[0038] Based on the product processing basic parameters and product processing tool data, the initial edge coordinate data of the product to be processed is detected by the step-by-step function, and analyzed to obtain the relative offset between the product coordinate system and the machine tool coordinate system.

[0039] Based on the product processing basic parameters, product processing tool data, and the relative offset, the product to be processed is processed to obtain the processed product;

[0040] The spatial coordinate data of the curved surface points are collected using a coordinate measuring machine and compared with the preset product model data to obtain the curved surface processing error.

[0041] The coordinate measurement data of the feature points of the outer contour of the processed product are collected using a coordinate measuring machine and analyzed to obtain the actual contour parameter data of the processed product.

[0042] Obtain product images of the processed products, analyze and process the product images, and generate a digital model of the products;

[0043] Based on the surface machining error, actual contour parameter data, and product digital model, a preset algorithm is used to analyze and process the data to generate five-axis machining compensation parameters.

[0044] Optionally, in the coordinate measuring machine-assisted five-axis machining compensation system described in this application, setting the basic machining parameters and tool data for the product in the machine tool interface, database, variable program, and model data includes:

[0045] Set the basic parameters for product machining and the tool data for product machining in the machine tool interface, database, variable program and model data;

[0046] The basic parameters for product processing include tool call parameter data, rotary cycle parameter data, debugging parameter data, and feed rate;

[0047] The product machining tool data includes tool compensation parameter data, tool initial position data, and coordinate system transformation parameter data.

[0048] Thirdly, this application also provides a computer-readable storage medium storing a method program for three-coordinate measurement-assisted five-axis machining compensation, wherein when the method program is executed by a processor, it implements the steps of the method program for three-coordinate measurement-assisted five-axis machining compensation as described in any of the preceding claims.

[0049] As can be seen from the above, the method, system and medium for five-axis machining compensation assisted by coordinate measuring machine (CMM) provided in this application realizes five-axis machining compensation assisted by coordinate measuring machine (CMM) by configuring basic product machining parameters, initializing tool path and coordinate system, calibrating workpiece and machine tool coordinate system, collecting dynamic data of three-coordinate surface and contour, and using algorithm analysis to generate compensation parameters.

[0050] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing embodiments of this application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description and the accompanying drawings. Attached Figure Description

[0051] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0052] Figure 1 A flowchart illustrating a method for compensation in five-axis machining assisted by coordinate measuring machine (CMM) provided in this application embodiment;

[0053] Figure 2 A flowchart illustrating the method for obtaining the relative offset between the product coordinate system and the machine tool coordinate system in a three-coordinate measurement-assisted five-axis machining compensation method provided in this application embodiment;

[0054] Figure 3This is a flowchart illustrating a method for obtaining surface machining errors using a coordinate measuring machine to assist in five-axis machining compensation, as provided in an embodiment of this application. Detailed Implementation

[0055] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0056] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, the terms "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0057] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a method for compensation in five-axis machining assisted by coordinate measuring machine (CMM) according to some embodiments of this application. This method is used in terminal devices, such as computers and mobile terminals. The method includes the following steps:

[0058] S11. Set the basic parameters for product machining and the tool data for product machining in the machine tool interface, database, variable program and model data;

[0059] S12. Based on the product processing basic parameters and product processing tool data, the initial edge coordinate data of the product to be processed is detected through the step-by-step function, and analyzed and processed to obtain the relative offset between the product coordinate system and the machine tool coordinate system.

[0060] S13. Based on the product processing basic parameters, product processing tool data, and the relative offset, process the product to be processed to obtain the processed product;

[0061] S141. Use a coordinate measuring machine to collect the spatial coordinate data of the curved surface points of the processed product, and compare it with the preset product model data to obtain the curved surface processing error.

[0062] S142. The coordinate measurement data of the feature points of the outer contour of the processed product are collected using a coordinate measuring machine and analyzed to obtain the actual contour parameter data of the processed product.

[0063] S143. Obtain a product image of the processed product, analyze and process the product image, and generate a digital model of the product.

[0064] S15. Based on the surface machining error, actual contour parameter data, and product digital model, the five-axis machining compensation parameters are generated through analysis and processing using a preset algorithm.

[0065] It should be noted that this application first sets the basic machining parameters on the machine tool interface and completes the tool path initialization according to the code instructions. Then, through the skip step program, the probe touches the edge of the workpiece at a given feed rate, calculates the positive and negative edge coordinates, determines the offset of the workpiece origin in the machine tool coordinate system, and then performs machining on the product to be machined. After machining, the coordinate measuring machine is used to collect the spatial coordinate data of the curved surface points and the coordinate measurement data of the feature points of the outline according to the planned path. After processing, the curved surface machining error and actual outline parameter data are generated. Finally, the three-dimensional reconstruction of the machined product is performed, and the compensation parameters are output after comparing with the preset product model data.

[0066] According to an embodiment of the present invention, setting the basic parameters for product machining and the tool data for product machining in the machine tool interface, database, variable program, and model data includes:

[0067] Set the basic parameters for product machining and the tool data for product machining in the machine tool interface, database, variable program and model data;

[0068] The basic parameters for product processing include tool call parameter data, rotary cycle parameter data, debugging parameter data, and feed rate;

[0069] The product machining tool data includes tool compensation parameter data, tool initial position data, and coordinate system transformation parameter data.

[0070] It should be noted that the tool call parameter data is used to specify the tool model, serial number, and basic attribute data of the tool used for machining; the rotation cycle parameter data defines the motion rules of the five-axis machine tool's rotary axes (such as the A-axis and B-axis), including the rotation mode and setting the initial rotation angle; the debugging parameter data is an auxiliary parameter used to control machining accuracy and process stability, including tolerance parameters and the coordination mode of measurement and machining; the feed rate refers to the feed rate of each axis of the machine tool; the tool compensation parameter data is used to correct the deviation between the actual size of the tool and the theoretical value, including the length compensation value and the radius compensation parameter; the tool initial position data defines the safe starting point and tool change position of the tool; and the coordinate system transformation parameter data is used to adjust the relative coordinate system between the tool and the workpiece, providing a unified and accurate benchmark for subsequent coordinate system calibration, machining execution, and error compensation, which is a prerequisite for ensuring the accuracy of five-axis machining.

[0071] Example of setting basic product processing parameters:

[0072] 37 TOOL CALL 8 Z S4356

[0073] 38 TOOL DEF 2

[0074] 39 CYCL DEF 10.0 ROTATION

[0075] 40 CYCL DEF 10.1 ROT 0.0

[0076] 41 CYCL DEF 332 Tuning

[0077] Q395=0; Tuning Mode

[0078] Q396=0;Tolerance

[0079] Q397=0;TA

[0080] 42 FN 0:Q1=456 ; XY FEED RATE

[0081] 43 FN 0:Q2=456 ; Z FEED RATE

[0082] Example of product machining tool data parameter settings:

[0083] G43.4 H4

[0084] G0 G90 X632.3223 Y211.3928 B26.099 C230.415

[0085] G0 X632.3223 Y211.3928 Z63.1065 B26.099 C230.415

[0086] G49

[0087] G68.2 X719.504 Y169.2225 Z-92.6305 I-39.585 J26.099 K-20.096

[0088] G53.1 P0 (B26.099 C230.415)

[0089] G61.1

[0090] G0 G43 H4 X-104.7605 Y12.5778 Z150.

[0091] M8

[0092] G0 Z26.5

[0093] G5P2.

[0094] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating the method for obtaining the relative offset between the product coordinate system and the machine tool coordinate system in some embodiments of this application, specifically a method for compensation in five-axis machining assisted by coordinate measuring machine. According to an embodiment of the present invention, the step of detecting the initial edge coordinate data of the product to be processed using a step-by-step function based on the product machining basic parameters and product machining tool data, and then analyzing and processing this data to obtain the relative offset between the product coordinate system and the machine tool coordinate system, includes:

[0095] S21. Based on the product processing basic parameters and product processing tool data, the probe is triggered to contact the edge of the product to be processed through the step-step function to obtain the initial edge coordinate data of the product to be processed in the machine tool coordinate system.

[0096] S22. Based on the initial coordinate data, combined with the preset machine tool mechanical coordinates and preset probe compensation parameters, the actual edge coordinate data is obtained through analysis and processing.

[0097] S23. Process the actual edge coordinate data to obtain the relative offset between the product coordinate system and the machine tool coordinate system.

[0098] It should be noted that when the probe touches the edge of the workpiece to generate a trigger signal, the machine tool system records the preset machine tool mechanical coordinates at the moment of triggering. The preset machine tool mechanical coordinates are the absolute coordinates under the machine tool's own reference coordinate system (such as the machine tool origin), reflecting the real-time position of the probe center in the machine tool space. Combined with the preset probe compensation parameters, the actual edge coordinate data is obtained. The preset probe compensation parameters include probe length compensation parameters and probe radius compensation parameters. The actual edge coordinate data includes positive edge coordinate data and negative edge coordinate data. Taking the X direction as an example, the positive edge coordinate data is the sum of the initial edge coordinate data in the X direction, the probe length compensation parameters, and the probe radius compensation parameters. The negative edge coordinate data is the sum of the initial edge coordinate data in the X direction and the probe length compensation parameters, minus the probe radius compensation parameters. The average of the positive and negative edge coordinate data is the relative offset between the product coordinate system and the machine tool coordinate system. Similarly, the technician can obtain the relative offsets and angular offsets in the Y and Z directions.

[0099] Please refer to Figure 3 , Figure 3 This is a flowchart illustrating a method for obtaining surface machining errors using coordinate measuring machine (CMM)-assisted five-axis machining compensation in some embodiments of this application. According to an embodiment of the present invention, the step of collecting spatial coordinate data of surface points on the machined product using a CMM and comparing it with preset product model data to obtain surface machining errors includes:

[0100] S31. Using a coordinate measuring machine, data is collected from multiple spatial points on the curved surface of the processed product to obtain the corresponding spatial coordinate data.

[0101] S32. Align the spatial coordinate data with the corresponding preset product model data using the least squares method, and perform data preprocessing to obtain optimized spatial coordinate data.

[0102] S33. Compare the optimized spatial coordinate data with the theoretical spatial coordinate data of the corresponding spatial points in the preset product model data to obtain the surface machining error in the normal direction.

[0103] It should be noted that this application systematically compares the spatial coordinate data of the surface obtained by coordinate measuring machine with the theoretical data of the design model. With the help of the algorithm calculation of the measurement software, the deviation value of each point on the surface is quantified, and finally error data that can be used for processing compensation is formed. First, the spatial coordinate data and the corresponding preset product model data are aligned with the coordinate system by the least squares method to eliminate the systematic offset caused by workpiece clamping and coordinate system setting. Then, it is converted into a format that can be recognized by the measurement software. For each measured point, its corresponding theoretical point is found on the theoretical surface. The distance deviation between the two points in the normal direction (the direction perpendicular to the theoretical surface at that point) is calculated to obtain the surface processing error in the normal direction.

[0104] According to an embodiment of the present invention, the step of collecting feature point coordinate measurement data of the outer contour of the processed product using a coordinate measuring machine and analyzing and processing the data to obtain the actual contour parameter data of the processed product includes:

[0105] The coordinate measurement data of the feature points of the outer contour of the processed product are collected using a coordinate measuring machine;

[0106] The actual coordinate data of the feature points are obtained by combining the measured coordinate data of the feature points with the preset probe radius value.

[0107] The actual contour parameter data of the processed product is obtained by processing the actual coordinate data of the feature points using a preset triangulation calculation method.

[0108] It should be noted that this application uses the discrete point coordinates of the contour obtained by coordinate measuring machine (CMM) to reconstruct the geometric relationship through triangulation. Combined with a preset probe radius value, the actual contour parameter data of the processed product is finally calculated. First, the three-dimensional coordinates (X, Y, Z) of effective measurement points are extracted from the feature point coordinate measurement data of the outer contour. These points are distributed along the edge of the workpiece contour (such as edges, arc boundaries, corners), and it is necessary to ensure that the key features of the contour (such as start point, end point, inflection point) are covered. Then, the feature point coordinate measurement data of the CMM is the probe center coordinate. Since the probe is spherical, the measurement point when it contacts the workpiece is the center of the probe sphere. The preset probe radius value needs to be subtracted to obtain the actual surface coordinates of the workpiece. According to the normal direction of the contour (perpendicular to the center of the probe sphere), the coordinates of the actual surface of the workpiece are calculated. The probe center coordinates are offset along the normal direction towards the inside of the workpiece by a preset probe radius value (e.g., if the probe ball diameter is 2mm, then the radius is 1mm, and the offset is 1mm). This yields the actual coordinate data of the feature points of the workpiece contour. This is the difference between the measured feature point coordinate data and the product of the radius and the normal vector, i.e., actual feature point coordinate data = measured feature point coordinate data - radius × normal vector. Finally, using the geometric properties of a triangle determined by three points, the distance and angle between adjacent points are calculated through the coordinates of the contour points, thereby restoring the geometric parameters of the contour, including the actual size and actual angle. This is then compared with the preset product model data to obtain the geometric shape error, thus generating actual contour parameter data including the actual size, actual angle, and geometric shape error.

[0109] According to an embodiment of the present invention, the step of acquiring a product image of the processed product, analyzing and processing the product image, and generating a digital model of the product includes:

[0110] The processed product is imaged using a high-precision probe to obtain an image of the processed product.

[0111] The processed product image is preprocessed, contour edge detection is performed, and feature point recognition is performed to obtain product geometric feature parameter data;

[0112] Based on the product's geometric feature parameters, combined with the surface machining error and actual contour parameter data, and the preset product model data, a digital model of the product is generated through a preset image matching and reconstruction method.

[0113] It should be noted that this application transforms two-dimensional image information into a precise three-dimensional digital model through feature extraction, matching reconstruction, and error correction of image data, providing high-quality visual measurement data for subsequent processing compensation. First, the original image is preprocessed by noise reduction, contrast enhancement, and binarization. Edge detection algorithms (such as Canny and Sobel operators) are used to identify pixels with abrupt changes in grayscale values ​​and connect them into continuous edge segments. Morphological processing (such as erosion and dilation) is performed on the edge segments to remove burrs or breaks, resulting in a smooth and complete workpiece outline. Then, the Harris corner detection algorithm is used to identify corner points in the outline (such as the angle between a curved surface and a plane, or the turning point of a stepped outline), and their pixel coordinates are marked. The extracted outline edges are transformed into mathematical parameters (such as the slope of a straight line or the curvature of an arc), and the corner points are transformed into (x, y) pixel coordinates. Finally, through image matching (including feature point matching and coordinate system alignment) and three-dimensional reconstruction, a three-dimensional digital model is generated from the two-dimensional image to obtain the product digital model.

[0114] According to an embodiment of the present invention, the step of generating five-axis machining compensation parameters by analyzing and processing the surface machining error, actual contour parameter data, and product digital model through a preset algorithm includes:

[0115] By combining the surface machining error, actual contour parameter data, and product digital model with preset product model data, error clustering analysis is performed to obtain machining system error, machining local error, and machining surface quality error.

[0116] Based on the machining system error, machining local error, and machining surface quality error, a preset algorithm is used to process and generate five-axis machining compensation parameters, including tool length compensation correction value, relative offset adjustment value, and feed rate optimization value.

[0117] It should be noted that this application uses a systematic analysis based on surface machining errors, actual contour parameter data, and product digitization models combined with preset product model data to determine the source of errors, ultimately converting them into specific compensation parameters executable by the machine tool. These include machining system errors such as the overall surface shift in a certain direction (e.g., X-axis +0.03mm), local machining errors such as a depression in a certain area of ​​the surface (deviation -0.04mm), and surface quality errors such as periodic ripples on the surface (deviation ±0.01mm). For different types of errors, specific compensation values ​​are determined based on the error data. For example, for curved surfaces... If the overall normal deviation ΔZ is +0.02mm, then the tool length compensation correction value is +ΔZ, which means increasing the corresponding compensation value from the original 0.05mm to 0.07mm. The overall X, Y, and Z axis deviations are directly used as coordinate system adjustment values ​​to correct the workpiece coordinate system offset parameters. The X-axis offset is adjusted from the original 0 to -0.03mm to offset the measured +0.03mm deviation. If the ripple deviation is ±0.01mm, according to empirical formulas (such as the positive correlation between feed rate and ripple amplitude), the feed rate is reduced from 456mm / min to 400mm / min.

[0118] It is worth mentioning that, according to embodiments of the present invention, it further includes:

[0119] The measured ambient temperature and probe wear compensation value when acquiring product images of the processed product;

[0120] The temperature drift compensation value is obtained by dividing the measured ambient temperature by the preset nominal temperature and the preset product thermal expansion coefficient.

[0121] The product geometric feature parameter data is corrected based on the temperature drift compensation value and the probe wear compensation value to obtain the product geometric feature parameter correction data.

[0122] It should be noted that image measurement data may be affected by ambient temperature and probe wear, resulting in deviations. This application first obtains the measured ambient temperature, and then calculates the temperature drift compensation value by combining it with the preset nominal temperature and the preset product thermal expansion coefficient. That is, (measured ambient temperature - preset nominal temperature) x preset product thermal expansion coefficient x product geometric characteristic parameter data. If it is positive, it is corrected in the opposite direction, that is, the temperature drift compensation value is subtracted. If it is negative, it is corrected in the positive direction, that is, the temperature drift compensation value is added. The probe wear compensation value is obtained by recording the number of times the probe is used and the cumulative working time, and analyzing it in combination with the probe wear calibration curve. It compensates for the feature size (such as the pixel distance of the contour edge) in the image based on the probe imaging, and corrects the imaging error caused by probe wear.

[0123] This invention also discloses a system for three-coordinate measurement-assisted five-axis machining compensation, comprising a memory and a processor. The memory includes a method program for three-coordinate measurement-assisted five-axis machining compensation, which, when executed by the processor, performs the following steps:

[0124] Set the basic parameters for product machining and the tool data for product machining in the machine tool interface, database, variable program and model data;

[0125] Based on the product processing basic parameters and product processing tool data, the initial edge coordinate data of the product to be processed is detected by the step-by-step function, and analyzed to obtain the relative offset between the product coordinate system and the machine tool coordinate system.

[0126] Based on the product processing basic parameters, product processing tool data, and the relative offset, the product to be processed is processed to obtain the processed product;

[0127] The spatial coordinate data of the curved surface points are collected using a coordinate measuring machine and compared with the preset product model data to obtain the curved surface processing error.

[0128] The coordinate measurement data of the feature points of the outer contour of the processed product are collected using a coordinate measuring machine and analyzed to obtain the actual contour parameter data of the processed product.

[0129] Obtain product images of the processed products, analyze and process the product images, and generate a digital model of the products;

[0130] Based on the surface machining error, actual contour parameter data, and product digital model, a preset algorithm is used to analyze and process the data to generate five-axis machining compensation parameters.

[0131] It should be noted that this application first sets the basic machining parameters on the machine tool interface and completes the tool path initialization according to the code instructions. Then, through the skip step program, the probe touches the edge of the workpiece at a given feed rate, calculates the positive and negative edge coordinates, determines the offset of the workpiece origin in the machine tool coordinate system, and then performs machining on the product to be machined. After machining, the coordinate measuring machine is used to collect the spatial coordinate data of the curved surface points and the coordinate measurement data of the feature points of the outline according to the planned path. After processing, the curved surface machining error and actual outline parameter data are generated. Finally, the three-dimensional reconstruction of the machined product is performed, and the compensation parameters are output after comparing with the preset product model data.

[0132] According to an embodiment of the present invention, setting the basic parameters for product machining and the tool data for product machining in the machine tool interface, database, variable program, and model data includes:

[0133] Set the basic parameters for product machining and the tool data for product machining in the machine tool interface, database, variable program and model data;

[0134] The basic parameters for product processing include tool call parameter data, rotary cycle parameter data, debugging parameter data, and feed rate;

[0135] The product machining tool data includes tool compensation parameter data, tool initial position data, and coordinate system transformation parameter data.

[0136] It should be noted that the tool call parameter data is used to specify the tool model, serial number, and basic attribute data of the tool used for machining; the rotation cycle parameter data defines the motion rules of the five-axis machine tool's rotary axes (such as the A-axis and B-axis), including the rotation mode and setting the initial rotation angle; the debugging parameter data is an auxiliary parameter used to control machining accuracy and process stability, including tolerance parameters and the coordination mode of measurement and machining; the feed rate refers to the feed rate of each axis of the machine tool; the tool compensation parameter data is used to correct the deviation between the actual size of the tool and the theoretical value, including the length compensation value and the radius compensation parameter; the tool initial position data defines the safe starting point and tool change position of the tool; and the coordinate system transformation parameter data is used to adjust the relative coordinate system between the tool and the workpiece, providing a unified and accurate benchmark for subsequent coordinate system calibration, machining execution, and error compensation, which is a prerequisite for ensuring the accuracy of five-axis machining.

[0137] Example of setting basic product processing parameters:

[0138] 37 TOOL CALL 8 Z S4356

[0139] 38 TOOL DEF 2

[0140] 39 CYCL DEF 10.0 ROTATION

[0141] 40 CYCL DEF 10.1 ROT 0.0

[0142] 41 CYCL DEF 332 Tuning

[0143] Q395=0; Tuning Mode

[0144] Q396=0;Tolerance

[0145] Q397=0;TA

[0146] 42 FN 0:Q1=456 ; XY FEED RATE

[0147] 43 FN 0:Q2=456 ; Z FEED RATE

[0148] Example of product machining tool data parameter settings:

[0149] G43.4 H4

[0150] G0 G90 X632.3223 Y211.3928 B26.099 C230.415

[0151] G0 X632.3223 Y211.3928 Z63.1065 B26.099 C230.415

[0152] G49

[0153] G68.2 X719.504 Y169.2225 Z-92.6305 I-39.585 J26.099 K-20.096

[0154] G53.1 P0 (B26.099 C230.415)

[0155] G61.1

[0156] G0 G43 H4 X-104.7605 Y12.5778 Z150.

[0157] M8

[0158] G0 Z26.5

[0159] G5P2.

[0160] According to an embodiment of the present invention, the step of detecting the initial edge coordinate data of the product to be processed through the skip function based on the product processing basic parameters and product processing tool data, and performing analysis and processing to obtain the relative offset between the product coordinate system and the machine tool coordinate system includes:

[0161] Based on the product processing basic parameters and product processing tool data, the probe is triggered to contact the edge of the product to be processed through the step function to obtain the initial edge coordinate data of the product to be processed in the machine tool coordinate system;

[0162] The initial coordinate data is analyzed and processed in conjunction with the preset machine tool mechanical coordinates and preset probe compensation parameters to obtain the actual edge coordinate data.

[0163] The relative offset between the product coordinate system and the machine tool coordinate system is obtained by processing the actual edge coordinate data.

[0164] It should be noted that when the probe touches the edge of the workpiece to generate a trigger signal, the machine tool system records the preset machine tool mechanical coordinates at the moment of triggering. The preset machine tool mechanical coordinates are the absolute coordinates under the machine tool's own reference coordinate system (such as the machine tool origin), reflecting the real-time position of the probe center in the machine tool space. Combined with the preset probe compensation parameters, the actual edge coordinate data is obtained. The preset probe compensation parameters include probe length compensation parameters and probe radius compensation parameters. The actual edge coordinate data includes positive edge coordinate data and negative edge coordinate data. Taking the X direction as an example, the positive edge coordinate data is the sum of the initial edge coordinate data in the X direction, the probe length compensation parameters, and the probe radius compensation parameters. The negative edge coordinate data is the sum of the initial edge coordinate data in the X direction and the probe length compensation parameters, minus the probe radius compensation parameters. The average of the positive and negative edge coordinate data is the relative offset between the product coordinate system and the machine tool coordinate system. Similarly, the technician can obtain the relative offsets and angular offsets in the Y and Z directions.

[0165] According to an embodiment of the present invention, the step of collecting spatial coordinate data of curved surface points on the processed product using a coordinate measuring machine and comparing it with preset product model data to obtain the curved surface processing error includes:

[0166] A coordinate measuring machine is used to collect data from multiple spatial points on the curved surface of the processed product to obtain the corresponding spatial coordinate data.

[0167] The spatial coordinate data and the corresponding preset product model data are aligned using the least squares method, and the data is preprocessed to obtain optimized spatial coordinate data.

[0168] The optimized spatial coordinate data is compared with the theoretical spatial coordinate data of the corresponding spatial points in the preset product model data to obtain the surface machining error in the normal direction.

[0169] It should be noted that this application systematically compares the spatial coordinate data of the surface obtained by coordinate measuring machine with the theoretical data of the design model. With the help of the algorithm calculation of the measurement software, the deviation value of each point on the surface is quantified, and finally error data that can be used for processing compensation is formed. First, the spatial coordinate data and the corresponding preset product model data are aligned with the coordinate system by the least squares method to eliminate the systematic offset caused by workpiece clamping and coordinate system setting. Then, it is converted into a format that can be recognized by the measurement software. For each measured point, its corresponding theoretical point is found on the theoretical surface. The distance deviation between the two points in the normal direction (the direction perpendicular to the theoretical surface at that point) is calculated to obtain the surface processing error in the normal direction.

[0170] According to an embodiment of the present invention, the step of collecting feature point coordinate measurement data of the outer contour of the processed product using a coordinate measuring machine and analyzing and processing the data to obtain the actual contour parameter data of the processed product includes:

[0171] The coordinate measurement data of the feature points of the outer contour of the processed product are collected using a coordinate measuring machine;

[0172] The actual coordinate data of the feature points are obtained by combining the measured coordinate data of the feature points with the preset probe radius value.

[0173] The actual contour parameter data of the processed product is obtained by processing the actual coordinate data of the feature points using a preset triangulation calculation method.

[0174] It should be noted that this application uses the discrete point coordinates of the contour obtained by coordinate measuring machine (CMM) to reconstruct the geometric relationship through triangulation. Combined with a preset probe radius value, the actual contour parameter data of the processed product is finally calculated. First, the three-dimensional coordinates (X, Y, Z) of effective measurement points are extracted from the feature point coordinate measurement data of the outer contour. These points are distributed along the edge of the workpiece contour (such as edges, arc boundaries, corners), and it is necessary to ensure that the key features of the contour (such as start point, end point, inflection point) are covered. Then, the feature point coordinate measurement data of the CMM is the probe center coordinate. Since the probe is spherical, the measurement point when it contacts the workpiece is the center of the probe sphere. The preset probe radius value needs to be subtracted to obtain the actual surface coordinates of the workpiece. According to the normal direction of the contour (perpendicular to the center of the probe sphere), the coordinates of the actual surface of the workpiece are calculated. The probe center coordinates are offset along the normal direction towards the inside of the workpiece by a preset probe radius value (e.g., if the probe ball diameter is 2mm, then the radius is 1mm, and the offset is 1mm). This yields the actual coordinate data of the feature points of the workpiece contour. This is the difference between the measured feature point coordinate data and the product of the radius and the normal vector, i.e., actual feature point coordinate data = measured feature point coordinate data - radius × normal vector. Finally, using the geometric properties of a triangle determined by three points, the distance and angle between adjacent points are calculated through the coordinates of the contour points, thereby restoring the geometric parameters of the contour, including the actual size and actual angle. This is then compared with the preset product model data to obtain the geometric shape error, thus generating actual contour parameter data including the actual size, actual angle, and geometric shape error.

[0175] According to an embodiment of the present invention, the step of acquiring a product image of the processed product, analyzing and processing the product image, and generating a digital model of the product includes:

[0176] The processed product is imaged using a high-precision probe to obtain an image of the processed product.

[0177] The processed product image is preprocessed, contour edge detection is performed, and feature point recognition is performed to obtain product geometric feature parameter data;

[0178] Based on the product's geometric feature parameters, combined with the surface machining error and actual contour parameter data, and the preset product model data, a digital model of the product is generated through a preset image matching and reconstruction method.

[0179] It should be noted that this application transforms two-dimensional image information into a precise three-dimensional digital model through feature extraction, matching reconstruction, and error correction of image data, providing high-quality visual measurement data for subsequent processing compensation. First, the original image is preprocessed by noise reduction, contrast enhancement, and binarization. Edge detection algorithms (such as Canny and Sobel operators) are used to identify pixels with abrupt changes in grayscale values ​​and connect them into continuous edge segments. Morphological processing (such as erosion and dilation) is performed on the edge segments to remove burrs or breaks, resulting in a smooth and complete workpiece outline. Then, the Harris corner detection algorithm is used to identify corner points in the outline (such as the angle between a curved surface and a plane, or the turning point of a stepped outline), and their pixel coordinates are marked. The extracted outline edges are transformed into mathematical parameters (such as the slope of a straight line or the curvature of an arc), and the corner points are transformed into (x, y) pixel coordinates. Finally, through image matching (including feature point matching and coordinate system alignment) and three-dimensional reconstruction, a three-dimensional digital model is generated from the two-dimensional image to obtain the product digital model.

[0180] According to an embodiment of the present invention, the step of generating five-axis machining compensation parameters by analyzing and processing the surface machining error, actual contour parameter data, and product digital model through a preset algorithm includes:

[0181] By combining the surface machining error, actual contour parameter data, and product digital model with preset product model data, error clustering analysis is performed to obtain machining system error, machining local error, and machining surface quality error.

[0182] Based on the machining system error, machining local error, and machining surface quality error, a preset algorithm is used to process and generate five-axis machining compensation parameters, including tool length compensation correction value, relative offset adjustment value, and feed rate optimization value.

[0183] It should be noted that this application uses a systematic analysis based on surface machining errors, actual contour parameter data, and product digitization models combined with preset product model data to determine the source of errors, ultimately converting them into specific compensation parameters executable by the machine tool. These include machining system errors such as the overall surface shift in a certain direction (e.g., X-axis +0.03mm), local machining errors such as a depression in a certain area of ​​the surface (deviation -0.04mm), and surface quality errors such as periodic ripples on the surface (deviation ±0.01mm). For different types of errors, specific compensation values ​​are determined based on the error data. For example, for curved surfaces... If the overall normal deviation ΔZ is +0.02mm, then the tool length compensation correction value is +ΔZ, which means increasing the corresponding compensation value from the original 0.05mm to 0.07mm. The overall X, Y, and Z axis deviations are directly used as coordinate system adjustment values ​​to correct the workpiece coordinate system offset parameters. The X-axis offset is adjusted from the original 0 to -0.03mm to offset the measured +0.03mm deviation. If the ripple deviation is ±0.01mm, according to empirical formulas (such as the positive correlation between feed rate and ripple amplitude), the feed rate is reduced from 456mm / min to 400mm / min.

[0184] It is worth mentioning that, according to embodiments of the present invention, it further includes:

[0185] The measured ambient temperature and probe wear compensation value when acquiring product images of the processed product;

[0186] The temperature drift compensation value is obtained by dividing the measured ambient temperature by the preset nominal temperature and the preset product thermal expansion coefficient.

[0187] The product geometric feature parameter data is corrected based on the temperature drift compensation value and the probe wear compensation value to obtain the product geometric feature parameter correction data.

[0188] It should be noted that image measurement data may be affected by ambient temperature and probe wear, resulting in deviations. This application first obtains the measured ambient temperature, and then calculates the temperature drift compensation value by combining it with the preset nominal temperature and the preset product thermal expansion coefficient. That is, (measured ambient temperature - preset nominal temperature) x preset product thermal expansion coefficient x product geometric characteristic parameter data. If it is positive, it is corrected in the opposite direction, that is, the temperature drift compensation value is subtracted. If it is negative, it is corrected in the positive direction, that is, the temperature drift compensation value is added. The probe wear compensation value is obtained by recording the number of times the probe is used and the cumulative working time, and analyzing it in combination with the probe wear calibration curve. It compensates for the feature size (such as the pixel distance of the contour edge) in the image based on the probe imaging, and corrects the imaging error caused by probe wear.

[0189] A third aspect of the present invention provides a readable storage medium storing a method program for three-coordinate measurement-assisted five-axis machining compensation, wherein when the method program is executed by a processor, it implements the steps of the method program for three-coordinate measurement-assisted five-axis machining compensation as described in any of the preceding claims.

[0190] This invention discloses a method, system, and medium for five-axis machining compensation assisted by coordinate measuring machine (CMM). By configuring basic product machining parameters, initializing tool path and coordinate system, calibrating workpiece and machine tool coordinate system, acquiring dynamic data of three-coordinate surface and contour, and using algorithms to analyze and generate compensation parameters, the invention achieves five-axis machining compensation assisted by CMM.

[0191] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0192] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0193] In addition, in the various embodiments of the present invention, each functional unit can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0194] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0195] Alternatively, if the integrated units of this invention are implemented as software functional modules and sold or used as independent products, they can also be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.

Claims

1. A method for compensation in five-axis machining assisted by coordinate measuring machine (CMM), characterized in that, Includes the following steps: Set the basic parameters for product machining and the tool data for product machining in the machine tool interface, database, variable program and model data; Based on the product processing basic parameters and product processing tool data, the initial edge coordinate data of the product to be processed is detected by the step-by-step function, and analyzed to obtain the relative offset between the product coordinate system and the machine tool coordinate system. Based on the product processing basic parameters, product processing tool data, and the relative offset, the product to be processed is processed to obtain the processed product; The spatial coordinate data of the points on the surface of the processed product are collected using a coordinate measuring machine and compared with the preset product model data to obtain the surface processing error. The coordinate measurement data of the feature points of the outer contour of the processed product are collected using a coordinate measuring machine and analyzed to obtain the actual contour parameter data of the processed product. Obtain product images of the processed products, analyze and process the product images, and generate a digital model of the products; Based on the surface machining error, actual contour parameter data, and product digital model, a preset algorithm is used to analyze and process the data to generate five-axis machining compensation parameters: the surface machining error, actual contour parameter data, and product digital model are combined with preset product model data to perform error clustering analysis to obtain machining system error, machining local error, and machining surface quality error; Based on the machining system error, machining local error, and machining surface quality error, a preset algorithm is used to process and generate five-axis machining compensation parameters, including tool length compensation correction value, relative offset adjustment value, and feed rate optimization value.

2. The method for compensation of five-axis machining assisted by coordinate measuring machine according to claim 1, characterized in that, Setting basic product machining parameters and product machining tool data in the machine tool interface, database, variable program, and model data includes: The basic parameters for product processing include tool call parameter data, rotary cycle parameter data, debugging parameter data, and feed rate; The product machining tool data includes tool compensation parameter data, tool initial position data, and coordinate system transformation parameter data.

3. The method for compensation of five-axis machining assisted by coordinate measuring machine according to claim 2, characterized in that, The step of detecting the initial edge coordinate data of the product to be processed using the skip step function based on the product processing basic parameters and product processing tool data, and analyzing and processing the data to obtain the relative offset between the product coordinate system and the machine tool coordinate system includes: Based on the product processing basic parameters and product processing tool data, the probe is triggered to contact the edge of the product to be processed through the step function to obtain the initial edge coordinate data of the product to be processed in the machine tool coordinate system; The actual edge coordinate data are obtained by analyzing and processing the initial edge coordinate data of the product to be processed in the machine tool coordinate system in combination with the preset machine tool mechanical coordinates and preset probe compensation parameters. The relative offset between the product coordinate system and the machine tool coordinate system is obtained by processing the actual edge coordinate data.

4. The method for compensation of five-axis machining assisted by coordinate measuring machine according to claim 3, characterized in that, The process involves using a coordinate measuring machine to collect spatial coordinate data of points on the surface of the processed product, and comparing this data with preset product model data to obtain the surface processing error, including: A coordinate measuring machine is used to collect data from multiple spatial points on the curved surface of the processed product to obtain the corresponding spatial coordinate data. The spatial coordinate data and the corresponding preset product model data are aligned using the least squares method, and the data is preprocessed to obtain optimized spatial coordinate data. The optimized spatial coordinate data is compared with the theoretical spatial coordinate data of the corresponding spatial points in the preset product model data to obtain the surface machining error in the normal direction.

5. The method for compensation of five-axis machining assisted by coordinate measuring machine according to claim 4, characterized in that, The process of acquiring and analyzing the coordinates of feature points on the outer contour of the processed product using a coordinate measuring machine to obtain the actual contour parameter data of the processed product includes: The coordinate measurement data of the feature points of the outer contour of the processed product are collected using a coordinate measuring machine; The actual coordinate data of the feature points are obtained by combining the measured coordinate data of the feature points with the preset probe radius value. The actual contour parameter data of the processed product is obtained by processing the actual coordinate data of the feature points using a preset triangulation calculation method.

6. The method for compensation of five-axis machining assisted by coordinate measuring machine according to claim 5, characterized in that, The process of acquiring a product image of the processed product, analyzing and processing the product image, and generating a digital model of the product includes: The processed product is imaged using a high-precision probe to obtain an image of the processed product. The processed product image is preprocessed, contour edge detection is performed, and feature point recognition is performed to obtain product geometric feature parameter data; Based on the product's geometric feature parameters, combined with the surface machining error and actual contour parameter data, and the preset product model data, a digital model of the product is generated through a preset image matching and reconstruction method.

7. The method for compensation of five-axis machining assisted by coordinate measuring machine according to claim 6, characterized in that, The process of generating five-axis machining compensation parameters based on the surface machining error, actual contour parameter data, and product digital model through a preset algorithm includes: By combining the surface machining error, actual contour parameter data, and product digital model with preset product model data, error clustering analysis is performed to obtain machining system error, machining local error, and machining surface quality error. Based on the machining system error, machining local error, and machining surface quality error, a preset algorithm is used to process and generate five-axis machining compensation parameters, including tool length compensation correction value, relative offset adjustment value, and feed rate optimization value.

8. A system for compensating five-axis machining with coordinate measuring machine (CMM) assistance, characterized in that, The system includes a memory and a processor. The memory contains a program for a method of compensating for five-axis machining assisted by coordinate measuring machine (CMM). When the program for compensating for five-axis machining assisted by CMM is executed by the processor, it performs the following steps: Set the basic parameters for product machining and the tool data for product machining in the machine tool interface, database, variable program and model data; Based on the product processing basic parameters and product processing tool data, the initial edge coordinate data of the product to be processed is detected by the step-by-step function, and analyzed to obtain the relative offset between the product coordinate system and the machine tool coordinate system. Based on the product processing basic parameters, product processing tool data, and the relative offset, the product to be processed is processed to obtain the processed product; The spatial coordinate data of the points on the surface of the processed product are collected using a coordinate measuring machine and compared with the preset product model data to obtain the surface processing error. The coordinate measurement data of the feature points of the outer contour of the processed product are collected using a coordinate measuring machine and analyzed to obtain the actual contour parameter data of the processed product. Obtain product images of the processed products, analyze and process the product images, and generate a digital model of the products; Based on the surface machining error, actual contour parameter data, and product digital model, a preset algorithm is used to analyze and process the data to generate five-axis machining compensation parameters: the surface machining error, actual contour parameter data, and product digital model are combined with preset product model data to perform error clustering analysis to obtain machining system error, machining local error, and machining surface quality error; Based on the machining system error, machining local error, and machining surface quality error, a preset algorithm is used to process and generate five-axis machining compensation parameters, including tool length compensation correction value, relative offset adjustment value, and feed rate optimization value.

9. The system for three-coordinate measurement-assisted five-axis machining compensation according to claim 8, characterized in that, Setting basic product machining parameters and product machining tool data in the machine tool interface, database, variable program, and model data includes: Set the basic parameters for product machining and the tool data for product machining in the machine tool interface, database, variable program and model data; The basic parameters for product processing include tool call parameter data, rotary cycle parameter data, debugging parameter data, and feed rate; The product machining tool data includes tool compensation parameter data, tool initial position data, and coordinate system transformation parameter data.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a method program for three-coordinate measurement-assisted five-axis machining compensation. When the method program for three-coordinate measurement-assisted five-axis machining compensation is executed by a processor, it implements the steps of a method for three-coordinate measurement-assisted five-axis machining compensation as described in any one of claims 1 to 7.