Workpiece compensation machining method, digital control machine tool, storage medium and program product
By obtaining the tolerance of the workpiece feature surface and the theoretical dimensions of the probe points in the CNC machine tool, and using the in-machine probe to measure the actual dimensional deviation, the automatic selection of compensation points and generation of rework programs solve the problem of the disconnect between automatic judgment and compensation of dimensional deviations in the CNC machine tool machining process, thereby improving machining efficiency and pass rate.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GOERTEK INC
- Filing Date
- 2026-04-30
- Publication Date
- 2026-06-12
AI Technical Summary
In existing technologies, CNC machine tools cannot automatically determine dimensional deviations caused by tool wear, cutting thermal deformation, and repeated positioning errors during machining. This leads to a disconnect between the detection and compensation processes, heavy reliance on manual intervention, and low machining efficiency.
By obtaining the tolerance range of the feature surface of the workpiece to be inspected and the theoretical machining dimensions of the probe points, the actual dimensional deviation is measured using an in-machine probe, and the target compensation points are automatically selected based on the tolerance range and deviation threshold. A rework program is then generated for compensation machining, forming a closed-loop automated solution.
It achieves closed-loop execution of automated measurement, judgment and compensation processes within the machine tool, reducing manual intervention and improving processing efficiency and final pass rate.
Smart Images

Figure CN122194846A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of CNC machine tool processing technology, and in particular to workpiece compensation processing methods, CNC machine tools, storage media and program products. Background Technology
[0002] In the fields of mold manufacturing and precision parts machining, during CNC (Computer Numerical Control) machine tool processing, factors such as tool wear, cutting thermal deformation, and clamping repeatability errors can all cause deviations between actual dimensions and theoretical design values. Therefore, to ensure the pass rate of parts, post-machining inspection of critical dimensions has become an essential process.
[0003] Currently, some machine tools are equipped with in-machine measurement functions, which can use integrated probes to perform contact or non-contact measurements on specific points on the workpiece surface to obtain the actual coordinates or simple geometric dimensions of the measured points. However, these measurement functions only acquire the coordinates or simple geometric dimensions of the points and cannot automatically determine whether points with different accuracy levels are qualified or not, thus failing to compensate for abnormal points. Because the measurement, judgment, and compensation processes are disconnected, the entire inspection and rework process heavily relies on manual intervention, resulting in low processing compensation efficiency.
[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main objective of this application is to provide a workpiece compensation machining method, a digitally controlled machine tool, a storage medium, and a program product, aiming to solve the technical problem of how to improve the machining efficiency of a digitally controlled machine tool.
[0006] To achieve the above objectives, this application proposes a workpiece compensation machining method, the method comprising: Obtain the tolerance range of each feature surface of the workpiece to be inspected and the theoretical machining dimensions of each probe point, and determine the tolerance range of each probe point according to the feature surface to which each probe point belongs; Measure the actual machining dimensions of each of the probe points, and determine the dimensional deviation of each of the probe points based on the difference between the actual machining dimensions and the theoretical machining dimensions. The probe points whose size deviation is greater than the tolerance range but less than the preset deviation threshold are determined as target compensation points; Based on the dimensional deviation of the target compensation point, a rework procedure is determined, and based on the rework procedure, the workpiece to be inspected is compensated.
[0007] In one embodiment, the step of determining the rework procedure based on the dimensional deviation of the target compensation point includes: Based on the dimensional deviation of the target compensation point and the diameter of the machining tool at the target compensation point, the rework program is matched from a preset program library.
[0008] In one embodiment, the step of determining the rework procedure based on the dimensional deviation of the target compensation point includes: Based on the preset association relationship, the machining tool and G-code program segment corresponding to the target compensation point are determined, wherein the association relationship is the association relationship between the feature surface and the start line number, end line number and tool information of the G-code program segment for machining the feature surface; The path offset value of the machining tool is determined based on the dimensional deviation of the target compensation point. The G-code program segment is adjusted based on the path offset value to obtain the rework program.
[0009] In one embodiment, the step of obtaining the tolerance range of each feature surface of the workpiece to be inspected and the theoretical machining dimensions of each probe point includes: Based on the workpiece drawing of the workpiece to be inspected, determine the tolerance range of each feature surface; The probe points of the workpiece to be inspected are determined by automatically placing points according to the tolerance range and area of each feature surface. Based on the workpiece drawing, determine the theoretical machining dimensions of each probe point.
[0010] In one embodiment, prior to the step of measuring the actual machining dimensions of each of the probe points, the method further includes: The water gun device is controlled to rinse the workpiece to be inspected; The air gun device is controlled to blow and clean the workpiece to be inspected after rinsing.
[0011] In one embodiment, after the step of determining the rework procedure, the method further includes: The rework procedure is subjected to simulation checks, wherein the simulation checks include overcut checks and interference checks; If the simulation check passes, the step of performing compensation processing on the workpiece to be inspected based on the rework procedure is executed.
[0012] In one embodiment, after the step of performing compensation processing on the workpiece to be inspected, the method further includes: The actual machining dimensions of each of the probe points are remeasured, and the step of determining the dimensional deviation of each of the probe points based on the difference between each of the actual machining dimensions and each of the theoretical machining dimensions is performed. When the dimensional deviation of each probe point is within the tolerance range corresponding to each probe point, and the number of compensation processing does not exceed the preset number, the step of determining the probe point with the dimensional deviation greater than the tolerance range and less than the preset deviation threshold as the target compensation point and subsequent steps are executed. An alarm message is output if the dimensional deviation of at least one probe point is not within the corresponding tolerance range, or if the number of compensation processes exceeds the preset number.
[0013] Furthermore, to achieve the above objectives, this application also proposes a workpiece compensation machining apparatus, which includes: The tolerance range determination module is used to obtain the tolerance range of each feature surface of the workpiece to be inspected and the theoretical machining dimensions of each probe point, and to determine the tolerance range of each probe point according to the feature surface to which each probe point belongs. The dimension deviation determination module is used to measure the actual machining dimensions of each probe point and determine the dimension deviation of each probe point based on the difference between each actual machining dimension and each theoretical machining dimension. The compensation point determination module is used to determine the probe points whose size deviation is greater than the tolerance range but less than the preset deviation threshold as the target compensation points. The compensation processing module is used to determine the rework procedure based on the dimensional deviation of the target compensation point, and to perform compensation processing on the workpiece to be inspected based on the rework procedure.
[0014] In addition, to achieve the above objectives, this application also proposes a digitally controlled machine tool, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the workpiece compensation machining method described above.
[0015] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the workpiece compensation machining method described above.
[0016] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the workpiece compensation machining method described above.
[0017] One or more technical solutions proposed in this application have at least the following technical effects: First, by obtaining the tolerance range of each feature surface of the workpiece to be inspected and the theoretical machining dimensions of each probe point, and automatically matching the corresponding tolerance range according to the feature surface to which each probe point belongs, a direct correlation between measurement data and machining accuracy requirements is established in advance, avoiding the tediousness and errors caused by manually setting tolerances for points of different accuracy levels one by one; Second, by measuring the actual machining dimensions of each probe point, and determining the dimensional deviation of each probe point based on the difference between it and each theoretical dimension, quantitative acquisition of machining errors is achieved, ensuring the reliability of deviation data; Third, the dimensional deviation is then... Probe points whose deviations exceed the tolerance range but are less than the preset deviation threshold are identified as target compensation points. While filtering out abnormal points that need compensation through the tolerance range, the preset deviation threshold automatically excludes workpieces that cannot be repaired due to excessive errors, thus accurately determining the compensation object and avoiding ineffective compensation. Furthermore, the CNC machine tool determines the rework procedure based on the dimensional deviation of the target compensation point and executes the rework procedure to compensate the workpiece to be inspected. This makes the measurement, judgment, and compensation links form a closed loop and be executed automatically within the CNC machine tool, eliminating the need for secondary machine operation and manual judgment of each point's compliance, thereby improving the machine tool's processing efficiency.
[0018] This application forms a highly automated integrated solution for machining, inspection, and compensation by in-machine measurement, deviation calculation, adaptive judgment based on feature surface tolerance, and automatic generation of rework procedures. It effectively solves the problem of frequent manual intervention caused by the disconnect between measurement, judgment, and compensation in conventional technologies, and improves the compensation processing efficiency and final pass rate of workpieces. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a flowchart illustrating an embodiment of the workpiece compensation machining method of this application. Figure 2 This is a schematic diagram of the automatic detection and compensation process provided in Embodiment 1 of this application; Figure 3 This is a simplified flowchart illustrating the workpiece compensation machining method provided in Embodiment 2 of this application; Figure 4 It is a schematic diagram of the module structure of the workpiece compensation machining device according to an embodiment of the present application; Figure 5 It is a schematic diagram of the device structure of the hardware operating environment involved in the workpiece compensation machining method according to an embodiment of the present application.
[0022] The implementation, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. Specific embodiments
[0023] It should be understood that the specific embodiments described herein are only used to explain the technical solution of the present application and are not used to limit the present application.
[0024] It should be noted that in the description of the specification and the appended claims of the present application, the terms "first", "second", etc. are only used for differential description and cannot be understood as indicating or implying relative importance.
[0025] In order to better understand the technical solution of the present application, the following will be described in detail in conjunction with the accompanying drawings of the specification and specific embodiments.
[0026] Currently, for the detection and correction of machining deviations, the mainstream in the industry adopts an offline detection mode. That is, after the workpiece is machined on a CNC machine tool, it needs to be disassembled from the machine tool and transferred to an independent coordinate measuring machine for precise detection. The operator compares the tolerance range required by the drawing according to the measurement report to determine whether the workpiece is qualified. If it is found that the size exceeds the tolerance during the detection, the workpiece needs to be reinstalled on the machine tool, and the programmer manually adjusts the machining program according to the measurement results for rework machining. In addition, some machine tools already have in-machine measurement functions, and can use the probes integrated in the machine tool to perform contact or non-contact measurement on specific points on the surface of the workpiece to obtain the actual coordinate values or simple geometric dimensions of the measurement points. However, its measurement function only realizes the acquisition of point coordinates or simple geometric dimensions, and cannot automatically determine whether the points of different precision grade features are qualified. Moreover, for the detected abnormal points, it is impossible to achieve automatic error compensation or machining parameter correction, and still rely on manual analysis of measurement data, judgment of the deviation cause and formulation of a rework plan. Due to the disconnection of the above measurement, judgment and compensation links, the entire detection and rework process seriously depends on manual intervention, and the machining compensation efficiency is relatively low.
[0027] This application provides a solution. First, a CNC machine tool measures the actual machining dimensions of each probe point on the workpiece to be inspected and simultaneously acquires the corresponding theoretical machining dimensions and the tolerance ranges of each feature surface, thus quickly and objectively completing comprehensive data acquisition of the workpiece's machining status. Then, based on the difference between the actual and theoretical machining dimensions of each probe point, the dimensional deviation of each probe point is determined, converting the dimensional data into quantifiable and evaluable machining error information. Next, based on the feature surface to which each probe point belongs, the tolerance range of each probe point is determined, and probe points with dimensional deviations exceeding their tolerance range but less than a preset deviation threshold are selected. The target compensation point is selected by filtering out abnormal points that need compensation through tolerance range. At the same time, the preset deviation threshold limit automatically excludes workpieces that cannot be repaired or should not be repaired due to excessive error (direct scrapping is more economical). This accurately determines the compensation object and avoids ineffective compensation. Then, the CNC machine tool determines the rework procedure based on the dimensional deviation of the target compensation point and executes the rework procedure to compensate the workpiece to be inspected. This makes the measurement, judgment and compensation links form a closed loop and be automatically executed within the CNC machine tool. There is no need for secondary machine operation or manual judgment of whether each point is qualified or not, which improves the processing efficiency of the machine tool.
[0028] This application forms a highly automated integrated solution for machining, inspection, and compensation by in-machine measurement, deviation calculation, adaptive judgment based on feature surface tolerance, and automatic generation of rework procedures. It effectively solves the problem of frequent manual intervention caused by the disconnect between measurement, judgment, and compensation in conventional technologies, and improves the compensation processing efficiency and final pass rate of workpieces.
[0029] It should be noted that the executing entity in this embodiment can be a computing service device with functions such as probe marking, data processing, network communication, and program execution, such as a personal computer or server, or an electronic device capable of executing the workpiece inspection method of this application (such as a CNC machine tool or a console). This embodiment does not limit this. The following uses a console as an example to describe this embodiment and the related embodiments described below.
[0030] Among them, digital control machine tools, also known as computer numerical control machine tools, are capable of performing various processing operations on metals or other materials within the machine tool to obtain workpieces with specific shapes.
[0031] Based on this, the embodiments of this application provide a workpiece compensation machining method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the workpiece compensation processing method of this application.
[0032] In this embodiment, the workpiece compensation machining method includes steps S10~S40: Step S10: Obtain the tolerance range of each feature surface of the workpiece to be inspected and the theoretical machining dimensions of each probe point, and determine the tolerance range of each probe point according to the feature surface to which each probe point belongs. The workpiece to be inspected refers to the parts that need to be inspected during or after processing in a CNC machine tool to ensure the workpiece's pass rate.
[0033] A feature surface refers to a surface entity in the 3D model of a workpiece that has specific geometric properties and accuracy requirements. It is typically defined by CAD (Computer-Aided Design) / CAM (Computer-Aided Manufacturing) software and is associated with independent tolerance information (such as flatness, position, and dimensional tolerances). A single workpiece can contain multiple feature surfaces, and the accuracy level and tolerance requirements of each feature surface can be the same or different.
[0034] Tolerance range refers to the precision constraint parameter stored in the form of a numerical range. It is usually expressed as [lower limit, upper limit] or "± allowable deviation" and is used to determine whether the actual machining dimensions meet the design requirements. Its value comes from the tolerance annotation in the three-dimensional model of the workpiece.
[0035] Probe points refer to the spatial coordinates of pre-planned points on the feature surface of a workpiece, used to trigger the in-machine probe to perform dimensional measurements.
[0036] Theoretical machining dimensions refer to the workpiece dimensions defined in the three-dimensional model of the workpiece to be inspected, under ideal conditions without errors.
[0037] For example, workpiece document data of the workpiece to be inspected can be obtained from a storage device (such as a server or local database), and the predefined tolerance range of each feature surface and the theoretical machining dimensions of each probe point can be read from it; then, for any probe point, the target feature surface to which it belongs can be calculated based on its spatial coordinates and spatial relationships, and the tolerance range of the target feature surface can be determined as the tolerance range of the probe point.
[0038] Understandably, by establishing the correlation between probe points, feature surfaces, and tolerance ranges, the tolerance of probe points can adapt to feature surfaces of different accuracy levels without manual setting, thereby improving the efficiency and accuracy of dimensional determination.
[0039] Step S20: Measure the actual machining dimensions of each probe point, and determine the dimensional deviation of each probe point based on the difference between each actual machining dimension and each theoretical machining dimension; Actual machining dimensions refer to the dimensions measured by the in-machine probe of the CNC machine tool at the probe point.
[0040] Dimensional deviation refers to the algebraic difference between the actual machined dimension and the theoretical machined dimension; a positive deviation indicates that the actual dimension is greater than the theoretical dimension (overcut), and a negative deviation indicates that the actual dimension is less than the theoretical dimension (overcut).
[0041] For example, the actual machining dimensions of each probe point can be determined by driving the in-machine probe mounted on the spindle of the CNC machine tool to move sequentially to each probe point for touch testing; then, the theoretical machining dimensions of each probe point are read one by one, and subtraction is performed to obtain the dimensional deviation of each probe point.
[0042] Understandably, by using an in-machine probe to measure actual dimensions, the measurement process is completed directly on the machine tool without disassembling and transferring the workpiece to external inspection equipment such as a coordinate measuring machine, thus avoiding secondary processing and improving processing efficiency.
[0043] Step S30: The probe points whose size deviation is greater than the tolerance range but less than the preset deviation threshold are determined as target compensation points. The deviation threshold is the upper limit of compensation used to define the feasible range of automatic compensation; probe points with dimensional deviations exceeding this threshold may not be able to be restored to the correct size through a single or limited number of rework processes.
[0044] The target compensation point refers to the abnormal probe point that can be compensated by CNC machine tools.
[0045] For example, the dimensional deviations of all probe points are traversed, and the dimensional deviation of each point is compared with its tolerance range. Points with dimensional deviations greater than the upper limit of the tolerance range are selected, which are unqualified points that need to be reworked. Then, among the unqualified points, points with dimensional deviations less than the deviation threshold are further selected and marked as target compensation points.
[0046] In one feasible implementation, before step S30, the method further includes: determining whether the dimensional deviation of each probe point is within the tolerance range corresponding to each probe point; if so, the workpiece to be inspected is determined to be qualified and no compensation processing is required; otherwise, if the dimensional deviation of at least one probe point is not within its corresponding tolerance range, it is further determined whether there is at least one uncompensable point; if so, an alarm message is output, triggering a manual intervention process; if not, step S30 is executed to determine the target compensation point and subsequent steps. Here, an uncompensable point refers to a probe point whose dimensional deviation is less than the lower bound of the corresponding tolerance range or greater than a preset deviation threshold.
[0047] Understandably, among all abnormal probe points whose dimensional deviations do not meet tolerance requirements (points with dimensional deviations less than the lower limit of the tolerance range or greater than the upper limit of the tolerance range), they can be further divided into compensable points and non-compensable points. Probe points with dimensional deviations less than the lower limit of the tolerance range are classified as non-compensable points because they cannot be compensated due to overcutting; while probe points with dimensional deviations greater than a preset deviation threshold are also classified as non-compensable points because the deviation is too large, exceeding the machine tool's safe cutting range or the correction limit allowed by the process. When a non-compensable point is detected, an alarm message can be output for operator confirmation to avoid incorrect compensation due to measurement interference or major anomalies.
[0048] For example, by comparing each dimensional deviation with the corresponding tolerance range, abnormal points that do not conform to the tolerance range are first screened out; then, probe points that cannot be compensated among the abnormal points are screened out, such as probe points with dimensional deviations less than the tolerance range (i.e., overcutting the workpiece), probe points with excessive dimensional deviations, etc., to obtain target compensation points that can be processed and compensated in the CNC machine tool.
[0049] Step S40: Determine the rework procedure based on the dimensional deviation of the target compensation point, and perform compensation processing on the workpiece to be inspected based on the rework procedure.
[0050] A rework program is a CNC machining program (G-code sequence) automatically generated to correct dimensional deviations at target compensation points. It can be a completely new local finishing program or a partial modification of the original machining program.
[0051] For example, based on the coordinates and dimensional deviations of each target compensation point, the tool path can be automatically planned, the depth of cut (usually equal to the positive deviation or minus a small safety margin) can be calculated, appropriate feed rates and spindle speeds can be set, and a program segment containing positioning, cutting, and retraction instructions can be generated according to the standard G-code format to obtain a complete rework program. Then, the rework program is called and executed to drive the machine tool to perform micro-cutting on the corresponding point on the workpiece to remove excess material, so that the deviation between the actual size and the theoretical machining size of the point returns to the tolerance range.
[0052] In one feasible implementation, step S40, which involves determining the rework procedure based on the dimensional deviation of the target compensation point, includes: Step A41: Based on the dimensional deviation of the target compensation point and the diameter of the machining tool at the target compensation point, match the rework program from the preset program library.
[0053] Machining tools refer to cutting tools used to perform compensation machining operations. They can be the original tool used to machine the feature surface of the target compensation point, or a precision tool reconfigured according to the dimensional deviation of the target compensation point.
[0054] The program library refers to a pre-established database of rework program templates, which stores standardized rework program templates for different dimensional deviations, different tool diameters, and different tolerance ranges. The template programs in this program library have been verified in practice and have a high compensation success rate and machining safety.
[0055] Optionally, the library can be indexed by features, tool type, dimensional deviation range, tolerance range, etc., to support fast retrieval and matching.
[0056] For example, for target compensation points belonging to the same feature surface, query conditions can be generated based on the feature surface type, the calculated average dimensional deviation, and the original machining tool diameter of the feature surface; then, the rework program that best matches the query conditions can be retrieved from the program library and called as the rework program for this machining compensation.
[0057] Optionally, the diameter of the machining tool can also be measured in real time by an in-machine tool setter. By taking into account the tool wear, the tool path calculation in the rework procedure is ensured to be based on its actual geometry, thereby improving the accuracy of the compensated machining.
[0058] In this embodiment, a pre-set program library enables rapid matching of rework programs, avoiding the time consumption of manual programming or calculating toolpaths and writing code from scratch, effectively improving the efficiency of compensation machining in CNC machine tools. Simultaneously, the template programs in this library are pre-verified, possessing high reliability and safety, reducing the safety risks of compensation machining.
[0059] In one feasible implementation, step S40, which involves determining the rework procedure based on the dimensional deviation of the target compensation point, includes: Step B41: Based on the preset association relationship, determine the machining tool and G-code program segment corresponding to the target compensation point. The association relationship is the association relationship between the feature surface and the start line number, end line number, and tool information of the G-code program segment of the machining feature surface. The association relationship refers to the mapping relationship between a feature surface and the corresponding G-code program segment in the original machining program. This association relationship is usually stored in the form of a data table, which includes fields such as feature surface identifier, G-code program segment start line number, end line number, tool number, and tool diameter. This association relationship is established during the CAM programming stage and imported into the CNC machine tool control system along with the machining program.
[0060] G-code is a numerical control programming language used to control machine tool movement, spindle start / stop, coolant switching, and other actions. The G-code program segment corresponding to the target compensation point refers to the continuous instruction sequence in the original machining program used to machine a specific feature surface, which includes the complete machining path, cutting parameters, tool information, and other information for that feature surface.
[0061] For example, the feature surface to which the target compensation point belongs can be found based on the target compensation point. Then, by querying the preset association relationship, the G-code program segment (start and end line numbers) for machining the feature surface in the original machining program can be located, and the machining tool for machining the feature surface can be determined.
[0062] Step B42: Determine the path offset value of the machining tool based on the dimensional deviation of the target compensation point; The path offset value refers to the amount of offset that needs to be applied to the original tool path in order to correct dimensional deviations. For positive deviations, it is usually necessary to offset the machining tool into the workpiece material (negative direction). Its value can be determined by the dimensional deviation, tool diameter and compensation strategy.
[0063] For example, based on the characteristic values of the size deviations of all target compensation points on the feature surface (such as the average value or the offset field generated based on the preset difference algorithm), combined with the tool radius compensation principle, tool diameter information and compensation strategy (such as layered cutting, single-step arrival, etc.), the offset of the tool compensation trajectory relative to the original path is calculated, and then the path offset value of the machining tool is determined.
[0064] Step B43: Adjust the G-code program segment according to the path offset value to obtain the rework program.
[0065] For example, a tool offset instruction can be inserted before the G-code program segment. The offset value in this instruction is the path offset value calculated above. For example, the tool offset instruction can increase the depth of cut of the tool to obtain a rework program. After the CNC machine tool performs compensation machining based on the rework program, it can obtain a workpiece that meets the tolerance range.
[0066] For example, the depth of cut in the original G-code program segment can also be adjusted directly. The adjusted depth of cut is the sum of the original depth of cut and the path offset value, thus obtaining the rework program.
[0067] In this embodiment, by reusing the G-code segment in the original machining program and applying a path offset to it, the complex calculation of generating a rework program from scratch is avoided, and the rapid generation of the rework program is achieved, thus improving the efficiency of compensation machining. At the same time, since the rework program inherits the process parameters of the original machining, the process consistency between compensation machining and original machining is guaranteed, which is conducive to improving the quality of the workpiece after compensation machining.
[0068] Optionally, the above two methods for generating the repair procedure can also be organically combined. Step S40 includes: calculating the matching degree between the size deviation of the target compensation point and the diameter of the processing tool at the target compensation point and each standardized repair procedure in the preset program library. In the case where there is at least one standardized repair procedure with a matching degree higher than the preset matching degree threshold, determining this standardized repair procedure as the repair procedure for the target compensation point; in the case where the matching degrees of the standardized repair procedures are all less than or equal to this matching degree threshold, performing steps B41 to B43 to generate a repair procedure.
[0069] Exemplarily, please refer to Figure 2 , Figure 2 , which provides a schematic flow chart for automatically implementing detection and compensation. After the workpiece to be detected is preliminarily processed by a CNC machine tool, the actual processing dimensions (A101) of each probe point of the workpiece to be detected can be measured by its in-machine probe, and in combination with the theoretical processing dimensions of each probe point, the size deviation of each probe point is determined (A102); then, it is judged whether the size deviations of each probe point are all within the tolerance ranges corresponding to each probe point (A103). If so, it is determined that the workpiece to be detected is qualified (A104). If not, it is further judged according to the size deviations of each probe point whether there are non-compensable points (A105), such as probe points with size deviations less than the lower bound of the corresponding tolerance range and probe points with size deviations greater than the preset deviation threshold; if there are non-compensable points, an alarm message is output (A106) to remind the operator to perform manual processing; if there are no non-compensable points, the probe points with size deviations greater than the tolerance range and less than the deviation threshold are determined as target compensation points (A107); then, according to the size deviation of the target compensation point and the corresponding processing tool, a repair procedure can be matched from the preset program library (A108); or according to the preset association relationship, the G-code program segment and the path offset value corresponding to the target compensation point can be determined (A109). The determination process can refer to the above steps B41 to B42, which will not be elaborated here, and according to this path offset value, the G-code program segment is adjusted to obtain a repair procedure (A110); then, after obtaining a repair procedure by any of the above methods, the CNC machine tool is controlled to execute this repair procedure to perform compensation processing on the workpiece to be detected (A111).
[0070] This embodiment provides a workpiece compensation machining method. First, by obtaining the tolerance range of the feature surface and automatically associating it with each probe point, automatic matching of tolerance and probe point is achieved, avoiding the misjudgment problem caused by the disconnect between tolerance requirements and measurement points in traditional methods. Then, the actual machining dimensions of each probe point are automatically measured using an in-machine probe, and the dimensional deviation is calculated, realizing the automation and quantification of machining deviation calculation. Next, the dimensional deviation of each probe point is compared with the corresponding tolerance range and deviation threshold to screen out repairable target compensation points. Finally, a rework program is automatically generated based on the dimensional deviation of the target compensation point and the compensation machining is executed, realizing the complete automation of rework programming and execution. Regarding the generation of rework programs, this embodiment provides two specific implementation methods: In the first method, a rework program template is matched from a preset program library based on the dimensional deviation and the diameter of the machining tool, enabling rapid retrieval and direct invocation of the rework program, which is beneficial for improving the efficiency of compensation machining. In the second method, the machining tool and the original G-code program segment corresponding to the target compensation point are determined according to a preset association relationship. Then, the path offset value is calculated and the original program segment is adjusted to generate the rework program. By reusing the tool path and process parameters of the original machining program, the generation speed of the rework program is improved, and the consistency between the compensation machining and the original machining is ensured, thereby improving the efficiency and quality of compensation machining. In summary, this embodiment, through the coordinated cooperation of the above-mentioned steps, reduces the time spent on manual measurement, manual judgment, and manual writing of rework programs, thereby improving the efficiency of workpiece compensation machining.
[0071] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description and will not be repeated hereafter. Based on this, the step S10 of obtaining the tolerance range of each feature surface of the workpiece to be inspected and the theoretical machining dimensions of each probe point includes: Step S11: Determine the tolerance range of each feature surface based on the workpiece drawing of the workpiece to be inspected. Workpiece drawings are digital files that contain a three-dimensional geometric model and precision annotations of the workpiece to be inspected.
[0072] For example, in a CAM system, a user can mark feature surfaces of different precision levels with different colors according to the tolerance requirements of the workpiece's 3D model, forming a digital file with color tolerances, i.e., a workpiece drawing file. This file contains the geometric information of the feature surfaces and the tolerance level represented by their colors (e.g., ±0.01mm corresponds to blue, ±0.02mm corresponds to green, etc.). Furthermore, when a CNC machine tool performs data measurement on the workpiece to be inspected, it can determine the tolerance range of each feature surface by reading the color tolerance information in this workpiece drawing file.
[0073] Step S12: Automatically place points according to the tolerance range and area of each feature surface to determine the probe points of the workpiece to be inspected; The feature surface area refers to the surface area of the feature surface in three-dimensional space, which is used to determine the density of probe points. The number of probe points on each feature surface is positively correlated with its area. Feature surfaces with larger areas need to be equipped with more probe points to ensure measurement coverage, while feature surfaces with smaller areas can appropriately reduce the number of points to avoid over-measurement.
[0074] For example, the number of probe points can be automatically determined based on the color and area of the feature surface and according to a preset distribution rule. For instance, the tolerance coefficient can be determined based on the tolerance range corresponding to the feature surface color, and the number of probe points can be determined based on the product of the preset benchmark sampling density, the feature surface area, and the tolerance coefficient. Then, the distribution location of the probe points can be determined by combining the number of distribution points and the geometry of the feature surface. For example, for planar features, a network distribution method can be used to determine the distribution location, and for cylindrical features, a circumferential distribution method can be used to determine the distribution location.
[0075] Understandably, by combining the color tolerance and area size of the feature surface for automatic point placement, the intelligent and standardized placement of probe points is achieved, avoiding the tedious operation of manual point placement, improving the efficiency of actual size measurement, and thus improving the efficiency of workpiece processing compensation.
[0076] Step S13: Determine the theoretical machining dimensions of each probe point based on the workpiece drawing.
[0077] For example, based on the coordinate positions (distribution positions) of each probe point determined above, a geometric query is performed in the three-dimensional model of the workpiece drawing to read the theoretical machining dimensions of each probe point.
[0078] In this embodiment, by acquiring the workpiece drawing of the workpiece to be inspected, the accuracy requirements of different probe points are automatically identified, and the points are automatically laid out accordingly. This avoids data errors that may be introduced by manual input, while shortening the inspection preparation time and improving the overall processing efficiency.
[0079] In one possible implementation, prior to step S20, the method further includes: Step S201: Control the water gun device to rinse the workpiece to be inspected; A water jet device is a liquid spray cleaning device installed in the working area of a CNC machine tool or outside the machine tool. It can spray high-pressure water jets to remove cutting fluid residue, metal shavings, oil stains and other adhering substances from the surface of the workpiece.
[0080] Step S202: Control the air gun device to blow and clean the workpiece to be inspected after rinsing.
[0081] An air gun device is a gas jet cleaning device installed in the working area of a CNC machine tool or outside the machine tool. It can spray high-speed airflow to blow away residual liquid and fine particles on the surface of the workpiece.
[0082] For example, after the CNC machine tool completes the preliminary machining and before the in-machine measurement is performed, the water gun device is first controlled to rinse the workpiece to be inspected with high-pressure water according to the preset rinsing path (such as a serpentine path or a spiral path). The rinsing time is automatically set according to the preliminary machining path of the workpiece. After rinsing, the air gun device is controlled to blow the workpiece to be inspected with high-speed airflow. The blowing time is usually 5 to 15 seconds until there are no obvious liquid droplets left on the surface of the workpiece.
[0083] Alternatively, a vacuum adsorption device can be used to clean the debris from the workpiece to be tested. Loose metal debris on the surface of the workpiece and the fixture is collected by the principle of negative pressure adsorption, which further improves the cleaning effect.
[0084] In this embodiment, by automatically rinsing and cleaning the workpiece before in-machine measurement, chips and cutting fluid adhering to the workpiece surface during processing are effectively removed, avoiding interference from the adhering substances on the workpiece on its dimensional measurement accuracy, improving the accuracy of actual machining dimensional measurement, thereby ensuring the reliability of subsequent dimensional deviation calculation, and helping to improve the accuracy of CNC machine tool compensation machining.
[0085] In one feasible implementation, after determining the rework procedure in step S40, the method further includes: Step S41: Perform simulation checks on the rework procedure, including overcutting checks and interference checks. Simulation inspection refers to the technical means of using computer software to virtually execute and verify rework programs. It simulates the machining process and detects potential problems without actually driving the machine tool and cutting tool. Common simulation inspections include overcutting inspection, tool overload inspection, interference inspection, and cutting thermal deformation inspection.
[0086] Among them, the overcut check is used to check whether the cutting edge of the tool intrudes into the non-machined area of the workpiece (i.e., within the theoretical material boundary) during the execution of the rework procedure. The interference check is used to check whether there is a risk of physical collision between the tool, tool holder, spindle and the workpiece, fixture, and machine tool structural components during the execution of the rework procedure.
[0087] For example, overcut inspection can be implemented in the following way: the rework program is loaded into the built-in graphical simulation module of the machine tool control system or external CAM simulation software, tool path simulation is performed, and the intersection volume of the tool envelope (the geometric space formed by the tool movement) and the three-dimensional model of the workpiece to be inspected is calculated; if the intersection area exceeds the expected machining range of each probe point, the overcut inspection is determined to be a failure, and the probe point is marked as an overcut risk point, and the overcut position coordinates, overcut depth and other information are recorded.
[0088] For example, during the above-mentioned toolpath simulation process, the distance between various components (such as tool assemblies, fixtures, non-machined areas of the workpiece, etc.) can be monitored in real time. If the minimum distance is less than the preset safe distance threshold, the interference check is determined to have failed.
[0089] Step S42: If the simulation check passes, perform compensation processing on the workpiece to be inspected based on the rework procedure.
[0090] For example, if no overcut or interference alarm is found at the end of the simulation, the simulation check is deemed to have passed, and the safety verification rework procedure is sent to the CNC machine tool. The machine tool automatically executes the rework procedure to perform compensation machining on the workpiece to be inspected. Conversely, if an alarm is found, the console displays the alarm location and type on its operation interface, prompting the operator to manually intervene or adjust the parameters.
[0091] In this embodiment, by performing simulation checks on the automatically generated rework program, risks such as overcutting and collisions can be predicted and avoided before actual processing, thereby improving the safety of automatic compensation processing.
[0092] In one possible implementation, after step S40, the method further includes: Step S50: Remeasure the actual machining dimensions of each probe point, and perform the step of determining the dimensional deviation of each probe point based on the difference between each actual machining dimension and each theoretical machining dimension; For example, after completing one compensation process, step S20 is automatically repeated, that is, the machine probe is driven again to measure the actual machining dimensions of all original probe points of the workpiece to be inspected, and a new dimensional deviation is calculated based on the difference between the actual machining dimensions of each probe point and the corresponding theoretical machining dimensions.
[0093] Step S60: When the dimensional deviation of each probe point is within the tolerance range corresponding to each probe point and the number of compensation processing does not exceed the preset number, the step of determining the probe point with the dimensional deviation greater than the tolerance range and less than the preset deviation threshold as the target compensation point and subsequent steps are executed. Step S70: If the dimensional deviation of at least one probe point is not within the corresponding tolerance range, or if the number of compensation processing operations exceeds the preset number, an alarm message is output.
[0094] The preset number of cycles refers to the maximum number of cycles allowed for compensation machining of the same workpiece, used to prevent the CNC machine tool from getting stuck in an infinite cycle of compensation machining.
[0095] Alarm information refers to message data used to alert operators or prompt them to intervene. Its output forms include, but are not limited to, pop-ups, warning lights, and voice signals.
[0096] For example, after completing the compensation process and calculating the new dimensional deviation, it is determined whether the new dimensional deviation of each probe point is within the corresponding tolerance range. If so, the workpiece to be inspected is determined to be qualified and the workpiece is allowed to leave the machine. Otherwise, it is further determined whether the current number of compensation processes has exceeded the preset number (e.g., 1 time). If it has not exceeded the preset number, step S30 and subsequent compensation processes are re-executed based on the new dimensional deviation of each probe point. If the current number of processes has exceeded the preset number, an alarm message is output and a manual intervention process is triggered.
[0097] In this embodiment, by setting a post-compensation re-inspection and a limit on the number of compensations, a closed-loop control mechanism of compensation-verification-re-compensation / termination is formed. At the same time, by setting a preset limit on the number of compensations, infinite cycle compensation caused by systematic deviations is avoided, protecting the safety of the workpiece and the tool, preventing meaningless consumption of processing time, and thus improving the efficiency of compensation processing.
[0098] For example, to help understand the implementation flow of the workpiece compensation machining method obtained by combining this embodiment with the first embodiment described above, please refer to... Figure 3 , Figure 3A simplified flowchart of a workpiece compensation machining method is provided. After the workpiece to be inspected is initially machined by a CNC machine tool, the tolerance range of each feature surface of the workpiece to be inspected can be determined by acquiring the workpiece document, and the probe points of the workpiece to be inspected can be automatically laid out accordingly. The automatic laying out process can refer to steps S11 and S12 above, and will not be repeated here. At the same time, the water gun device and air gun device can be controlled to clean the workpiece to be inspected. Then, after the automatic laying out and workpiece cleaning are completed, the actual machining dimensions of each probe point of the workpiece to be inspected can be measured by the in-machine probe, and the dimensional deviation of each probe point can be determined by combining the theoretical machining dimensions of each probe point. Furthermore, it is determined whether the dimensional deviation of each probe point is within the corresponding tolerance range. If so, the processing of the workpiece to be inspected is considered complete. Otherwise, it is further determined whether the cycle exceeds a preset number of times (i.e., whether the number of processing compensations exceeds a preset number of times). If so, an alarm message is output to notify the operator for handling. Otherwise, compensation processing is performed. The compensation processing process can refer to steps S30 and S40 in the first embodiment above, which will not be repeated here. After compensation processing, the actual processing dimensions of each probe point can be remeasured, the dimensional deviation can be re-determined, and the above judgment process can be repeated until the dimensional deviation of each probe point is within the corresponding tolerance range, or the number of cycles exceeds the preset number of times. It can be seen that the measurement, judgment, and compensation links of the workpiece compensation processing method of this application form a closed loop and are automatically executed within the CNC machine tool, without the need for secondary machine operation and manual judgment, thus improving the processing efficiency of the machine tool.
[0099] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the workpiece compensation processing method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0100] This application also provides a workpiece compensation machining device. Please refer to... Figure 4 The workpiece compensation machining device includes: The tolerance range determination module 10 is used to obtain the tolerance range of each feature surface of the workpiece to be inspected and the theoretical machining dimensions of each probe point, and to determine the tolerance range of each probe point according to the feature surface to which each probe point belongs. The dimension deviation determination module 20 is used to measure the actual machining dimensions of each probe point and determine the dimension deviation of each probe point based on the difference between each actual machining dimension and each theoretical machining dimension. The compensation point determination module 30 is used to determine the probe points whose size deviation is greater than the tolerance range but less than the preset deviation threshold as the target compensation points. The compensation processing module 40 is used to determine the rework procedure based on the dimensional deviation of the target compensation point, and to perform compensation processing on the workpiece to be inspected based on the rework procedure.
[0101] Optionally, the compensation processing module 40 is also used for: Based on the dimensional deviation of the target compensation point and the diameter of the machining tool at the target compensation point, a rework program is matched from the preset program library.
[0102] Optionally, the compensation processing module 40 is also used for: Based on the preset association relationship, the machining tool and G-code program segment corresponding to the target compensation point are determined. The association relationship is the association relationship between the feature surface and the start line number, end line number and tool information of the G-code program segment of the machining feature surface. Based on the dimensional deviation of the target compensation point, determine the path offset value of the machining tool; Based on the path offset value, adjust the G-code program segment to obtain the rework program.
[0103] Optionally, the tolerance range determination module 10 is also used for: Determine the tolerance range of each feature surface based on the workpiece drawing of the workpiece to be inspected; The probe points on the workpiece to be inspected are automatically determined by the automatic placement of points based on the tolerance range and area of each feature surface. Based on the workpiece drawing, determine the theoretical machining dimensions of each probe point.
[0104] Optionally, the workpiece compensation machining device also includes: a cleaning module, used for: The water gun device is used to rinse the workpiece to be inspected. The air gun device is controlled to blow and clean the workpiece to be inspected after rinsing.
[0105] Optionally, the workpiece compensation machining device may also include: a simulation module, used for: The rework process is simulated and checked, including overcutting and interference checks. If the simulation check passes, execute the steps of compensating the workpiece to be inspected based on the rework procedure.
[0106] Optionally, the tolerance range determination module 10 is also used for: Remeasure the actual machining dimensions of each probe point, and perform the step of determining the dimensional deviation of each probe point based on the difference between each actual machining dimension and each theoretical machining dimension; If the dimensional deviation of each probe point is within the tolerance range corresponding to each probe point, and the number of compensation processing does not exceed the preset number, then the step of determining the probe point with the dimensional deviation greater than the tolerance range but less than the preset deviation threshold as the target compensation point and subsequent steps are executed. An alarm message will be output if the dimensional deviation of at least one probe point is not within the corresponding tolerance range, or if the number of compensation processes exceeds the preset number.
[0107] The workpiece compensation machining apparatus provided in this application, employing the workpiece compensation machining method described in the above embodiments, can solve the technical problem of how to improve the machining efficiency of CNC machine tools. Compared with the prior art, the beneficial effects of the workpiece compensation machining apparatus provided in this application are the same as those of the workpiece compensation machining method provided in the above embodiments, and other technical features in the workpiece compensation machining apparatus are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0108] This application provides a digitally controlled machine tool, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the workpiece compensation machining method in the first embodiment described above.
[0109] The following is for reference. Figure 5 It shows a structural schematic diagram of a digitally controlled machine tool suitable for implementing the embodiments of this application. Figure 5 The digitally controlled machine tool shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0110] like Figure 5As shown, a digitally controlled machine tool may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the digitally controlled machine tool. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. The communication device 1009 allows the CNC machine tool to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows CNC machine tools with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0111] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0112] The digitally controlled machine tool provided in this application, employing the workpiece compensation machining method described in the above embodiments, can solve the technical problem of how to improve the machining efficiency of the digitally controlled machine tool. Compared with the prior art, the beneficial effects of the digitally controlled machine tool provided in this application are the same as those of the workpiece compensation machining method provided in the above embodiments, and other technical features of this digitally controlled machine tool are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0113] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0114] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0115] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the workpiece compensation machining method in the above embodiments.
[0116] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0117] The aforementioned computer-readable storage medium may be included in a numerically controlled machine tool; or it may exist independently and not be assembled into a numerically controlled machine tool.
[0118] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by a numerically controlled machine tool, the numerically controlled machine tool: acquires the tolerance range of each feature surface of the workpiece to be inspected and the theoretical machining dimensions of each probe point; determines the tolerance range of each probe point based on the feature surface to which each probe point belongs; measures the actual machining dimensions of each probe point; determines the dimensional deviation of each probe point based on the difference between the actual machining dimensions and the theoretical machining dimensions; identifies probe points with dimensional deviations greater than the tolerance range but less than a preset deviation threshold as target compensation points; determines a rework procedure based on the dimensional deviation of the target compensation points; and performs compensation machining on the workpiece to be inspected based on the rework procedure.
[0119] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0120] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0121] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0122] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., a computer program) for executing the above-described workpiece compensation machining method, and can solve the technical problem of how to improve the machining efficiency of CNC machine tools. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the workpiece compensation machining method provided in the above embodiments, and will not be repeated here.
[0123] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the workpiece compensation machining method described above.
[0124] The computer program product provided in this application can solve the technical problem of how to improve the machining efficiency of CNC machine tools. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the workpiece compensation machining method provided in the above embodiments, and will not be repeated here.
[0125] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A workpiece compensation machining method, characterized in that, The workpiece compensation machining method includes: Obtain the tolerance range of each feature surface of the workpiece to be inspected and the theoretical machining dimensions of each probe point, and determine the tolerance range of each probe point according to the feature surface to which each probe point belongs; Measure the actual machining dimensions of each of the probe points, and determine the dimensional deviation of each of the probe points based on the difference between the actual machining dimensions and the theoretical machining dimensions. The probe points whose size deviation is greater than the tolerance range but less than the preset deviation threshold are determined as target compensation points; Based on the dimensional deviation of the target compensation point, a rework procedure is determined, and based on the rework procedure, the workpiece to be inspected is compensated.
2. The workpiece compensation machining method as described in claim 1, characterized in that, The step of determining the rework procedure based on the dimensional deviation of the target compensation point includes: Based on the dimensional deviation of the target compensation point and the diameter of the machining tool at the target compensation point, the rework program is matched from a preset program library.
3. The workpiece compensation machining method as described in claim 1, characterized in that, The step of determining the rework procedure based on the dimensional deviation of the target compensation point includes: Based on the preset association relationship, the machining tool and G-code program segment corresponding to the target compensation point are determined, wherein the association relationship is the association relationship between the feature surface and the start line number, end line number and tool information of the G-code program segment for machining the feature surface; The path offset value of the machining tool is determined based on the dimensional deviation of the target compensation point. The G-code program segment is adjusted based on the path offset value to obtain the rework program.
4. The workpiece compensation machining method as described in claim 1, characterized in that, The steps for obtaining the tolerance range of each feature surface of the workpiece to be inspected and the theoretical machining dimensions of each probe point include: Based on the workpiece drawing of the workpiece to be inspected, determine the tolerance range of each feature surface; The probe points of the workpiece to be inspected are determined by automatically placing points according to the tolerance range and area of each feature surface. Based on the workpiece drawing, determine the theoretical machining dimensions of each probe point.
5. The workpiece compensation machining method as described in claim 1, characterized in that, Before the step of measuring the actual machining dimensions of each of the probe points, the method further includes: The water gun device is controlled to rinse the workpiece to be inspected; The air gun device is controlled to blow and clean the workpiece to be inspected after rinsing.
6. The workpiece compensation machining method as described in claim 1, characterized in that, Following the step of determining the rework procedure, the following is also included: The rework procedure is subjected to simulation checks, wherein the simulation checks include overcut checks and interference checks; If the simulation check passes, the step of performing compensation processing on the workpiece to be inspected based on the rework procedure is executed.
7. The workpiece compensation machining method as described in claim 1, characterized in that, After the step of performing compensation processing on the workpiece to be inspected, the method further includes: The actual machining dimensions of each of the probe points are remeasured, and the step of determining the dimensional deviation of each of the probe points based on the difference between each of the actual machining dimensions and each of the theoretical machining dimensions is performed. When the dimensional deviation of each probe point is within the tolerance range corresponding to each probe point, and the number of compensation processing does not exceed the preset number, the step of determining the probe point with the dimensional deviation greater than the tolerance range and less than the preset deviation threshold as the target compensation point and subsequent steps are executed. An alarm message is output if the dimensional deviation of at least one probe point is not within the corresponding tolerance range, or if the number of compensation processes exceeds the preset number.
8. A digitally controlled machine tool, characterized in that, The digitally controlled machine tool includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the workpiece compensation machining method as described in any one of claims 1 to 7.
9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the workpiece compensation machining method as described in any one of claims 1 to 7.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the workpiece compensation machining method as described in any one of claims 1 to 7.