Numerical control machine tool debugging method and device based on global optimization, equipment and medium

By constructing a coupled machining model and a multi-objective optimization algorithm, the key stations of the CNC machine tool are automatically adjusted, solving the problem of low machining accuracy when multiple workpieces are produced by the CNC machine tool, and achieving efficient and accurate machining results.

CN121918488APending Publication Date: 2026-04-24GUANGDONG EVERWIN PRECISION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG EVERWIN PRECISION TECH CO LTD
Filing Date
2025-12-30
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

In the process of machining multiple workpieces on a CNC machine tool, the debugging process is complex and relies on personal experience, making it difficult to guarantee machining accuracy.

Method used

By acquiring measured data and historical data, a coupled machining model is constructed. A multi-objective optimization algorithm is used to calculate global compensation parameters, generate control and adjustment instructions for the CNC machine tool, and automatically adjust the dimensions of key workstations to achieve precise compensation.

Benefits of technology

It improves the machining accuracy and efficiency of CNC machine tools for processing multiple workpieces at once, reduces human intervention errors, and ensures the consistency of machining quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121918488A_ABST
    Figure CN121918488A_ABST
Patent Text Reader

Abstract

The invention discloses a numerical control machine tool debugging method, device and equipment based on global optimization and a medium. The method comprises the following steps: constructing a coupling processing model based on actually measured associated data and initial size deviation coupling relation values among key stations in historical processing; inputting the dimensional deviation value of each key station of the to-be-adjusted workpiece into the coupling processing model, and calculating a target dimensional deviation coupling relation value enabling the overall dimensional deviation of the to-be-adjusted workpiece to tend to be minimized based on a multi-target optimization algorithm under the condition of meeting the tolerance constraint condition of each key station of the to-be-adjusted workpiece; calculating a global compensation parameter of each key station of the to-be-adjusted workpiece based on the target size deviation coupling relation value; and generating a control debugging instruction of the numerical control machine tool based on the global compensation parameter, and adjusting the key station of the workpiece to be debugged based on the control debugging instruction. According to the invention, the machining precision of the numerical control machine tool on multiple workpieces at one time is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of CNC machine tool technology, and specifically to a method, apparatus, equipment and medium for adjusting a CNC machine tool based on global optimization. Background Technology

[0002] In the field of CNC machine tool processing, especially in the production of small precision workpieces such as mobile phone frames, connectors, and precision structural components, the "one-out-of-manufacturing" mode—where a single machining program simultaneously controls multiple workstations or fixtures for processing—has become an important means of improving equipment utilization and production efficiency. However, in the process debugging phase of this mode, particularly during first-piece debugging and small-batch changeover, the coupling of the machining system is quite complex, and the debugging process is difficult to predict. During multi-station collaborative machining, due to the interaction of various factors such as machine tool geometric errors, fixture positioning deviations, tool wear, cutting forces, and thermal deformation, tool compensation or coordinate system adjustments at one workstation often trigger systemic changes in the machining dimensions of other workstations. Furthermore, the debugging work is highly dependent on the personal experience and subjective judgment of the debugging personnel, and the entire process is inherently unpredictable and prone to haphazard adjustments.

[0003] Therefore, how to improve the machining accuracy of CNC machine tools for processing multiple workpieces is a technical problem that urgently needs to be solved. Summary of the Invention

[0004] This invention provides a method, apparatus, equipment, and medium for adjusting a CNC machine tool based on global optimization, in order to solve the technical problem of how to improve the machining accuracy of a CNC machine tool for processing multiple workpieces at once.

[0005] To address the aforementioned technical problems, in a first aspect, the present invention provides a method for adjusting a CNC machine tool based on global optimization, comprising: Obtain measured data of the workpiece to be adjusted and its multiple key stations after CNC machine tool processing, and calculate the dimensional deviation between the measured data and theoretical data of each key station of the workpiece to be adjusted. Based on the dimensional correlation characteristics between the key stations of the workpiece to be adjusted, the initial dimensional deviation coupling relationship value between the key stations is preset; Obtain the measured correlation data between key stations in the historical processing of the workpiece to be adjusted, and construct a coupled processing model based on the measured correlation data between key stations in the historical processing and the initial dimensional deviation coupling relationship value; The dimensional deviation values ​​of each key station of the workpiece to be adjusted are input into the coupled machining model. Under the condition of satisfying the tolerance constraints of each key station of the workpiece to be adjusted, the target dimensional deviation coupling relationship value that minimizes the overall dimensional deviation of the workpiece to be adjusted is calculated based on the multi-objective optimization algorithm. The global compensation parameters for each key station of the workpiece to be adjusted are calculated based on the target size deviation coupling relationship value, wherein the global compensation parameters include the size adjustment value for each key station; Based on the global compensation parameters, control and adjustment instructions for the CNC machine tool are generated, and the key positions of the workpiece to be adjusted are adjusted based on the control and adjustment instructions.

[0006] Optionally, the step of acquiring the measured data of the workpiece to be adjusted and its multiple key stations after CNC machine tool processing, and calculating the dimensional deviation values ​​between the measured data and theoretical data of each key station of the workpiece to be adjusted, includes: Configure initial parameters corresponding to the CNC machine tool when machining the workpiece. The initial parameters include at least the identification information of the CNC machine tool, the theoretical data of each key station of the workpiece, and the access interface of the external measurement data source. Based on the access interface of the external measurement data source, a standardized inspection report file containing the workpiece to be adjusted is automatically obtained; The standardized inspection report file of the workpiece to be adjusted is analyzed, and the measured data of each key station of the workpiece to be adjusted are extracted. The measured data of each key station are compared with the theoretical data to calculate the dimensional deviation of each key station of the workpiece to be adjusted.

[0007] Optionally, the measured correlation data between key stations in the historical processing of the workpiece to be adjusted is obtained, and a coupled processing model is constructed based on the measured correlation data between key stations in the historical processing and the initial dimensional deviation coupling relationship value. Obtain historical processing data of the workpiece to be adjusted, wherein the historical processing data includes the actual dimensional deviation values ​​of each key station of the workpiece to be adjusted; The historical processing data of the workpiece to be adjusted and the initial dimensional deviation coupling relationship values ​​between each preset key station are input into the machine learning model for training, and the trained coupled processing model is obtained.

[0008] Optionally, the step of inputting the dimensional deviation values ​​of each key station of the workpiece to be adjusted into the coupled machining model, and calculating the target dimensional deviation coupling relationship value that minimizes the overall dimensional deviation of the workpiece to be adjusted based on a multi-objective optimization algorithm, under the condition of satisfying the tolerance constraints of each key station of the workpiece to be adjusted, includes: Using the coupled processing model as the response function, a global optimization model is constructed with the target size deviation coupling relationship value as the optimization variable and the weighted minimization of the size deviation of each key station as the objective. The dimensional deviation values ​​of each key workstation are input into the global optimization model, and the tolerance range of each key workstation is used as the constraint condition of the global optimization model. A multi-objective optimization algorithm is used to iteratively solve the global optimization model. In the feasible solution space that meets the constraints, the optimal solution of the overall size deviation evaluation function of the workpiece to be adjusted is searched, and the optimal solution is output as the target size deviation coupling relationship value.

[0009] Optionally, the calculation of global compensation parameters for each critical station of the workpiece to be adjusted based on the target size deviation coupling relationship value, wherein the global compensation parameters include size adjustment values ​​for each critical station, including: Based on the target size deviation coupling relationship value and the coupled processing model, calculate the size adjustment value required for each key station; The required dimensional adjustment values ​​for each critical station are converted into compensation parameters for the CNC machine tool, generating global compensation parameters for each critical station of the workpiece to be adjusted; wherein, the global compensation parameters include the length compensation value or radius compensation value for the tool, and / or the offset value for the workpiece coordinate system.

[0010] Optionally, the step of generating control and adjustment commands for the CNC machine tool based on the global compensation parameters, and adjusting key positions of the workpiece to be adjusted based on the control and adjustment commands, includes: Each compensation parameter in the global compensation parameters is converted into a machine tool adjustment program segment that can be executed by the CNC machine tool; Generate control and adjustment instructions containing a machine adjustment program segment executable by the CNC machine tool, and transmit the control and adjustment instructions to the CNC machine tool; The control and adjustment commands are executed on the CNC machine tool to drive the corresponding motion axes of the CNC machine tool to adjust the key positions of the part to be adjusted.

[0011] Optionally, after generating control and adjustment commands for the CNC machine tool based on the global compensation parameters, and adjusting the key positions of the workpiece to be adjusted based on the control and adjustment commands, the method further includes: After adjusting each key workstation, the parts to be adjusted are reprocessed to obtain the verification measurement data of the parts to be adjusted. An adjustment verification report for the CNC machine tool is generated based on the verification measurement data. The adjustment verification report includes quantitative evaluation information on the dimensional status of each key workstation after adjustment.

[0012] Secondly, the present invention provides a machine adjustment device for a CNC machine tool based on global optimization, comprising an acquisition module, a configuration module, a construction module, a first calculation module, a second calculation module, and a generation module: Obtain measured data of the workpiece to be adjusted and its multiple key stations after CNC machine tool processing, and calculate the dimensional deviation between the measured data and theoretical data of each key station of the workpiece to be adjusted. The configuration module is used to preset the initial dimensional deviation coupling relationship values ​​between key stations based on the dimensional correlation characteristics between each key station of the workpiece to be adjusted. The construction module is used to obtain the measured correlation data between key stations in the historical processing of the workpiece to be adjusted, and to construct a coupled processing model based on the measured correlation data between key stations in the historical processing and the initial dimensional deviation coupling relationship value. The first calculation module is used to input the dimensional deviation values ​​of each key station of the workpiece to be adjusted into the coupled machining model. Under the condition of satisfying the tolerance constraints of each key station of the workpiece to be adjusted, the target dimensional deviation coupling relationship value that minimizes the overall dimensional deviation of the workpiece to be adjusted is calculated based on the multi-objective optimization algorithm. The second calculation module is used to calculate the global compensation parameters of each key station of the workpiece to be adjusted based on the target size deviation coupling relationship value, wherein the global compensation parameters include the size adjustment value of each key station; The generation module is used to generate control and adjustment instructions for the CNC machine tool based on the global compensation parameters, and to adjust the key positions of the workpiece to be adjusted based on the control and adjustment instructions.

[0013] Thirdly, the present invention provides a machine adjustment device for a CNC machine tool based on global optimization, comprising a memory and a processor, wherein: The memory is used to store computer programs; The processor is used to read the program in the memory and execute the steps of the CNC machine tool adjustment method based on global optimization as provided in the first aspect above.

[0014] Fourthly, the present invention provides a computer-readable storage medium having a readable computer program stored thereon, which, when executed by a processor, implements the steps of a global optimization-based CNC machine tool adjustment method as provided in the first aspect above.

[0015] Compared with existing technologies, the present invention provides a method, apparatus, equipment, and medium for adjusting CNC machine tools based on global optimization, which has the following beneficial effects: This invention, through inputting the dimensional deviation values ​​of each key station of the workpiece to be adjusted into a coupled machining model, calculates the target dimensional deviation coupling relationship value that minimizes the overall dimensional deviation of the workpiece under the condition of satisfying the tolerance constraints of each key station. This allows for accurate analysis of the impact of dimensional changes at each key station on the overall machining of the workpiece. Furthermore, by weighted minimization of the objective optimization at different stations, the overall machining efficiency of the workpiece is improved. In addition, calculating global compensation parameters based on the target dimensional deviation coupling relationship value ensures the accuracy of dimensional adjustments at each key station, effectively improving the machining accuracy of CNC machine tools for multiple workpieces produced simultaneously. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and not all embodiments. For those skilled in the art, other drawings obtained from these drawings without creative effort are all within the scope of protection of this application.

[0017] Figure 1 A flowchart illustrating a CNC machine tool adjustment method based on global optimization, provided as an embodiment of the present invention.

[0018] Figure 2 This is a flowchart of constructing a coupled processing model provided in an embodiment of the present invention.

[0019] Figure 3 This is a flowchart for calculating the minimized target size deviation coupling relationship value, provided as an embodiment of the present invention.

[0020] Figure 4 This is a flowchart for calculating the global compensation parameters of each key station of the workpiece to be adjusted, provided as an embodiment of the present invention.

[0021] Figure 5 This invention provides a CNC machine tool adjustment device based on global optimization.

[0022] Figure 6 This is a schematic diagram of the structure of a CNC machine tool adjustment device based on global optimization provided in an embodiment of the present invention.

[0023] Figure 7 This is a schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present invention. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0025] To make the description of this disclosure more detailed and complete, illustrative descriptions of embodiments and specific examples of the present invention are provided below; however, these are not the only forms of implementing or utilizing the specific embodiments of the present invention. The embodiments cover features of multiple specific embodiments and the methods, steps, and their order for constructing and operating these specific embodiments. However, other specific embodiments may also be used to achieve the same or equivalent functions and step sequences. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application.

[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in sequences other than those illustrated or described herein.

[0027] In the description of the embodiments of the present invention, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The word "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more. Other quantifiers should be understood similarly. The preferred embodiments described herein are only used to illustrate and explain the present invention and are not intended to limit the present invention. Furthermore, the embodiments and features in the embodiments of this application can be combined with each other without conflict.

[0028] Example 1 like Figure 1 The flowchart described above illustrates a method for adjusting a CNC machine tool based on global optimization, as provided in an embodiment of the present invention, and includes the following steps.

[0029] S10: Obtain measured data of the workpiece to be adjusted and its multiple key stations after machining by CNC machine tool, and calculate the dimensional deviation values ​​between the measured data and theoretical data of each key station of the workpiece to be adjusted. Specifically, in this embodiment of the invention, after machining the workpiece to be adjusted by CNC machine tool, high-precision measuring tools such as coordinate measuring machine and laser measuring instrument are used to obtain measured data of key stations, and compare them with the designed theoretical data to calculate the dimensional deviation values ​​between the measured data and theoretical data of each key station of the workpiece to be adjusted, which can effectively identify the source of machining error.

[0030] S20: Based on the dimensional correlation characteristics between key stations of the workpiece to be adjusted, preset initial dimensional deviation coupling relationship values ​​between key stations are established. Specifically, in this embodiment of the invention, based on the geometric characteristics of the workpiece to be adjusted and the dimensional correlation between key stations, preset initial dimensional deviation coupling relationships between each station are established. Through the preset dimensional deviation coupling relationships, it can be ensured that the coupled machining model can better reflect the real relationship between stations in practical applications, thereby improving the predictive ability of the model.

[0031] S30: Obtain the measured correlation data between key stations in the historical processing of the workpiece to be adjusted, and construct a coupled machining model based on the measured correlation data between key stations in the historical processing and the initial dimensional deviation coupling relationship value. Specifically, in this embodiment of the invention, a coupled machining model is constructed based on the measured correlation data of key stations in the historical processing, so that the coupled machining model can reflect the process characteristics in actual production, such as the station correlation rules caused by machine tool wear, material deformation, and processing sequence; the combination of the initial coupling relationship value and the measured data not only ensures the theoretical rationality of the model, but also improves the prediction accuracy through actual data calibration, reduces the trial and error cost in the machine adjustment process, and avoids machine adjustment failure caused by model distortion.

[0032] S40: Input the dimensional deviation values ​​of each key station of the workpiece to be adjusted into the coupled machining model. Under the condition of satisfying the tolerance constraints of each key station of the workpiece to be adjusted, calculate the target dimensional deviation coupling relationship value that minimizes the overall dimensional deviation of the workpiece to be adjusted based on a multi-objective optimization algorithm. Specifically, in this embodiment of the invention, the dimensional deviation values ​​of each key station of the workpiece to be adjusted are input into the coupled machining model, and the optimal target dimensional deviation coupling relationship value is calculated using a multi-objective optimization algorithm while satisfying the tolerance constraints. Through the multi-objective optimization algorithm, the best balance can be found among multiple tolerances and performance indicators, ensuring the optimization of overall machining quality, rather than the improvement of local stations. During the optimization process, it is ensured that the tolerance constraints of all stations are satisfied, reducing quality problems caused by dimensional deviations. The optimized target dimensional deviation coupling relationship value can significantly improve machining accuracy and increase production efficiency.

[0033] S50: Calculate the global compensation parameters for each key station of the workpiece to be adjusted based on the target size deviation coupling relationship value, wherein the global compensation parameters include the size adjustment values ​​for each key station. Specifically, in this embodiment of the invention, global compensation parameters are generated based on the target size deviation coupling relationship value and directly converted into control and adjustment commands for the CNC machine tool. This ensures the integrity of the adjustment parameters and the executability of the commands. The correspondence between the adjustment commands and the compensation parameters enables the CNC machine tool to accurately execute the adjustment actions of each station, avoiding errors caused by manual parameter translation and improving the adjustment efficiency of the CNC machine tool.

[0034] S60: Based on the global compensation parameters, control and adjustment instructions for the CNC machine tool are generated, and the key positions of the workpiece to be adjusted are adjusted based on the control and adjustment instructions. Specifically, in this embodiment of the invention, control instructions for the CNC machine tool are generated according to the calculated global compensation parameters. These instructions are used to adjust the key positions of the workpiece to be adjusted. The automatic generation of control instructions automates the machine adjustment process, significantly improves production efficiency, and reduces the error rate of manual intervention.

[0035] As an optional implementation, step S10, which involves acquiring the measured data of the workpiece to be adjusted and its multiple key stations after CNC machine tool processing, and calculating the dimensional deviation values ​​between the measured data and theoretical data of each key station of the workpiece to be adjusted, includes: S11: Configure initial parameters corresponding to the CNC machining of the workpiece to be adjusted. These initial parameters include at least the identification information of the CNC machine tool, theoretical data for each key station of the workpiece to be adjusted, and access interfaces for external measurement data sources. Specifically, in this embodiment of the invention, configuring initial parameters related to the machining of the workpiece to be adjusted ensures the accuracy of subsequent data acquisition and analysis. These parameters include the identification information of the CNC machine tool, theoretical data for each key station of the workpiece to be adjusted, and access interfaces for external measurement data sources. By configuring these initial parameters, the system can accurately identify and match relevant data.

[0036] S12: Based on the access interface of the external measurement data source, automatically obtain a standardized inspection report file containing the workpiece to be adjusted. Specifically, in this embodiment of the invention, automatically obtaining the standardized inspection report file reduces the need for manual intervention and lowers the risk of human error. By integrating an external measurement data source, standardized data related to the workpiece to be adjusted can be obtained quickly and accurately, ensuring data consistency and reliability, thereby providing high-quality input for subsequent data analysis.

[0037] S13: Parse the standardized inspection report file of the workpiece to be adjusted and extract the measured data of each key station of the workpiece. Specifically, in this embodiment of the invention, by parsing the standardized inspection report and extracting the measured data of the key stations, real processing status information can be obtained in a timely manner. This process can transform complex report information into operable data, providing a basis for subsequent deviation calculation, effectively improving the automation level of data processing, saving time and human resources, and minimizing errors in data processing.

[0038] S14: Compare the extracted measured data of each key station with the theoretical data to calculate the dimensional deviation value of each key station of the workpiece to be adjusted. Specifically, in this embodiment of the invention, by comparing the measured data with the theoretical data, the dimensional deviation value of each key station can be clearly identified. This calculation process is a key step in identifying machining errors, which can effectively locate potential problems in the machining process, thereby providing a basis for subsequent machine adjustment decisions. Through accurate deviation value calculation, it is possible to optimize the machining process, reduce material waste, improve the product qualification rate, and ultimately improve overall production efficiency and quality.

[0039] As an optional implementation, in step S30, the measured correlation data between key stations in the historical processing of the workpiece to be adjusted is obtained, and a coupled processing model is constructed based on the measured correlation data between key stations in the historical processing and the initial dimensional deviation coupling relationship value, such as... Figure 2 The flowchart for constructing a coupled processing model provided in this embodiment of the invention includes: S31: Obtain historical processing data of the workpiece to be adjusted, wherein the historical processing data includes the actual dimensional deviation values ​​of each key station of the workpiece. Specifically, in this embodiment of the invention, obtaining historical processing data can provide experience for the machine adjustment process. By collecting the actual dimensional deviation values ​​of each key station, long-standing processing problems and trends can be identified.

[0040] S32: Input the historical processing data of the workpiece to be adjusted and the preset initial dimensional deviation coupling relationship values ​​between each key station into the machine learning model for training to obtain the trained coupled processing model. Specifically, in this embodiment of the invention, by inputting historical processing data and initial dimensional deviation coupling relationship values ​​into the machine learning model for training, an intelligent coupled processing model can be generated. This model can autonomously learn and adapt to complex patterns in the data, thereby improving the predictive ability of future processing. The trained model can not only capture the potential correlation between stations, but also dynamically adjust according to real-time data, thereby achieving more efficient processing optimization and quality control.

[0041] As an optional implementation, in step S40, the dimensional deviation values ​​of each key station of the workpiece to be adjusted are input into the coupled machining model. Under the condition of satisfying the tolerance constraints of each key station of the workpiece to be adjusted, a target dimensional deviation coupling relationship value that minimizes the overall dimensional deviation of the workpiece to be adjusted is calculated based on a multi-objective optimization algorithm. Figure 3 The flowchart provided in this embodiment of the invention for calculating the minimized target size deviation coupling relationship value includes: S41: Using the coupled processing model as the response function, a global optimization model is constructed with the target dimensional deviation coupling relationship value as the optimization variable and the weighted minimization of the dimensional deviations of each key station as the objective. Specifically, in this embodiment of the invention, using the coupled processing model as the response function ensures that the optimization process is closely integrated with the actual processing situation. Constructing a global optimization model helps to analyze the impact of dimensional deviations of each key station on the overall processing effect, and then optimizes the deviations of different stations by weighted minimization, thereby improving the overall processing efficiency and product consistency.

[0042] S42: Input the dimensional deviation values ​​of each key workstation into the global optimization model, and use the tolerance range of each key workstation as a constraint condition of the global optimization model. Specifically, in this embodiment of the invention, by inputting the dimensional deviation values ​​and tolerance ranges of each key workstation into the global optimization model, it can be ensured that the optimization results meet the actual production requirements. The introduction of the tolerance range provides the necessary constraints for the model, ensuring the feasibility of the optimization scheme.

[0043] S43: A multi-objective optimization algorithm is used to iteratively solve the global optimization model. Within the feasible solution space that satisfies the constraints, the optimal solution for the overall dimensional deviation evaluation function of the workpiece to be adjusted is searched, and this optimal solution is output as the target dimensional deviation coupling relationship value. Specifically, in this embodiment of the invention, the optimal solution can be found in a complex solution space through iterative solving of the multi-objective optimization algorithm. This method not only improves search efficiency but also allows for trade-offs among multiple objectives, ensuring that the overall dimensional deviation of the workpiece to be adjusted is minimized while satisfying all constraints. The final output result will serve as the target dimensional deviation coupling relationship value, providing a basis for subsequent processing adjustments and optimizations.

[0044] As an optional implementation, in step S50, the global compensation parameters for each key station of the workpiece to be adjusted are calculated based on the target size deviation coupling relationship value. The global compensation parameters include size adjustment values ​​for each key station, such as... Figure 4 The flowchart provided in this embodiment of the invention for calculating global compensation parameters for each key station of a workpiece to be adjusted includes: S51: Based on the target size deviation coupling relationship value and the coupled machining model, calculate the required size adjustment value for each key station. Specifically, in this embodiment of the invention, calculating the required size adjustment value for each key station can quantify the required size adjustment value for each key station, thereby providing direct data support for achieving overall machining accuracy. By combining the target size deviation coupling relationship value with the coupled machining model, the source of deviation and adjustment requirements for each station can be identified more accurately, effectively reducing machining errors and improving product quality.

[0045] S52: Convert the required dimensional adjustment values ​​for each critical station into compensation parameters for the CNC machine tool, generating global compensation parameters for each critical station of the workpiece to be adjusted; wherein, the global compensation parameters include a length compensation value or radius compensation value for the tool, and / or an offset value for the workpiece coordinate system. Specifically, in this embodiment of the invention, by converting the dimensional adjustment values ​​into compensation parameters for the CNC machine tool, they can be directly applied to actual production. This conversion process not only simplifies the operation process but also ensures the accuracy and effectiveness of the adjustment parameters. The generated global compensation parameters include a length compensation value or radius compensation value for the tool, and an offset value for the workpiece coordinate system, enabling the machine tool to adjust the machining process in real time, ensuring that the final product meets the design requirements.

[0046] As an optional implementation, in step S60, generating control and adjustment commands for the CNC machine tool based on the global compensation parameters, and adjusting key positions of the workpiece to be adjusted based on the control and adjustment commands, includes: S61: Convert each compensation parameter in the global compensation parameters into a machine adjustment program segment executable by the CNC machine tool. Specifically, in this embodiment of the invention, the compensation parameters are converted into program segments that the CNC machine tool can understand and execute, thereby automating the adjustment process. By expressing complex compensation parameters in a programmed manner, the operation process is simplified, and the possibility of manual intervention is reduced. In addition, this conversion ensures the accuracy and consistency of the compensation parameters, thereby improving the reliability of the adjustment.

[0047] S62: Generate control and setup instructions containing a setup program segment executable by the CNC machine tool, and transmit the control and setup instructions to the CNC machine tool. Specifically, in this embodiment of the invention, generating control and setup instructions and transmitting them to the CNC machine tool enables the setup instructions to be executed quickly and accurately. This process ensures the efficiency and real-time nature of information transmission and avoids errors that may be caused by manually inputting instructions.

[0048] S63: The control and adjustment command is executed on the CNC machine tool, driving the corresponding motion axes of the CNC machine tool to adjust each key station of the part to be adjusted. Specifically, in this embodiment of the invention, the CNC machine tool drives the motion axes to perform precise adjustments according to the command, ensuring that the size and position of each key station meet the expected requirements. This not only improves processing efficiency and reduces wear and tear on mechanical equipment, but also significantly reduces labor costs and operational risks. Furthermore, the real-time feedback mechanism during execution can be used for further adjustments and optimizations, improving the level of intelligent production.

[0049] As an optional implementation, after generating control and adjustment commands for the CNC machine tool based on the global compensation parameters, and adjusting the key positions of the workpiece to be adjusted based on the control and adjustment commands, the method further includes: S71: The parts to be adjusted after adjustments at each key workstation are reprocessed to obtain verification measurement data for the parts to be adjusted. Specifically, in this embodiment of the invention, by reprocessing the parts to be adjusted after adjustments at each key workstation, verification measurement data can be effectively obtained, thereby verifying the accuracy of the machine adjustment process.

[0050] S72: Generate an adjustment verification report for the CNC machine tool based on the verification measurement data. The adjustment verification report includes quantitative evaluation information on the dimensional status of each key station after adjustment. Specifically, in this embodiment of the invention, the adjustment verification report generated based on the verification measurement data systematically records key data during the adjustment process, including the dimensional status and quantitative evaluation information of each key station after adjustment.

[0051] This invention, through inputting the dimensional deviation values ​​of each key station of the workpiece to be adjusted into a coupled machining model, calculates the target dimensional deviation coupling relationship value that minimizes the overall dimensional deviation of the workpiece under the condition of satisfying the tolerance constraints of each key station. This allows for accurate analysis of the impact of dimensional changes at each key station on the overall machining of the workpiece. Furthermore, by weighted minimization of the objective optimization at different stations, the overall machining efficiency of the workpiece is improved. In addition, calculating global compensation parameters based on the target dimensional deviation coupling relationship value ensures the accuracy of dimensional adjustments at each key station, effectively improving the machining accuracy of CNC machine tools for multiple workpieces produced simultaneously.

[0052] Example 2 Based on the above-described CNC machine tool adjustment method based on global optimization, this invention provides an CNC machine tool adjustment device based on global optimization, such as... Figure 5 As shown in Figure 5, the machine adjustment device for the CNC machine tool based on global optimization includes an acquisition module 81, a configuration module 82, a construction module 83, a first calculation module 84, a second calculation module 85, and a generation module 86.

[0053] The acquisition module 81 is used to acquire the measured data of the workpiece to be adjusted and its multiple key stations after being processed by the CNC machine tool, and to calculate the dimensional deviation between the measured data and the theoretical data of each key station of the workpiece to be adjusted. Configuration module 82 is used to preset the initial dimensional deviation coupling relationship value between each key station based on the dimensional correlation characteristics between each key station of the workpiece to be adjusted; Module 83 is used to acquire measured correlation data between key stations in the historical processing of the workpiece to be adjusted, and to construct a coupled processing model based on the measured correlation data between key stations in the historical processing and the initial dimensional deviation coupling relationship value. The first calculation module 84 is used to input the dimensional deviation values ​​of each key station of the workpiece to be adjusted into the coupled machining model. Under the condition of satisfying the tolerance constraints of each key station of the workpiece to be adjusted, the target dimensional deviation coupling relationship value that minimizes the overall dimensional deviation of the workpiece to be adjusted is calculated based on the multi-objective optimization algorithm. The second calculation module 85 calculates the global compensation parameters of each key station of the workpiece to be adjusted based on the target size deviation coupling relationship value, wherein the global compensation parameters include the size adjustment value of each key station. The generation module 86 generates control and adjustment instructions for the CNC machine tool based on the global compensation parameters, and adjusts the key positions of the workpiece to be adjusted based on the control and adjustment instructions.

[0054] For further details regarding the implementation of the above-mentioned technical solutions by each module in the global optimization-based CNC machine tool adjustment device, please refer to the description in the global optimization-based CNC machine tool adjustment method provided in the above-mentioned embodiments of the invention, which will not be repeated here.

[0055] Example 3 Based on the above-mentioned CNC machine tool adjustment method based on global optimization, such as Figure 6 As shown in the diagram, this embodiment of the invention provides a schematic diagram of a machine tool adjustment device based on global optimization for CNC machine tools. The device includes a processor 91 and a memory 92 coupled to the processor 91. The memory 92 stores a computer program. When the computer program is executed by the processor 91, the processor 91 performs the steps of the machine tool adjustment method based on global optimization described in the above embodiment.

[0056] For further details regarding the implementation of the above-mentioned technical solution by the processor 91 in the machine adjustment equipment of the CNC machine tool based on global optimization, please refer to the description in the machine adjustment method of the CNC machine tool based on global optimization provided in the above-mentioned embodiments of the invention, which will not be repeated here.

[0057] The processor 91 can also be called a CPU (Central Processing Unit). The processor 91 may be an integrated circuit chip with signal processing capabilities. The processor 91 can also be a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor, or the processor 91 can be any conventional processor.

[0058] Example 4 like Figure 7 The diagram illustrates the structure of a computer-readable storage medium provided in this embodiment of the invention. The storage medium stores a readable computer program 101. This computer program 101 can be stored in the storage medium as a software product, including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in various embodiments of the invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, magnetic disks or optical disks, ROM (Read-Only Memory), RAM (Random Access Memory), or terminal devices such as computers, servers, mobile phones, and tablets.

[0059] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, apparatuses, or modules, and may be electrical, mechanical, or other forms.

[0060] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0061] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium.

[0062] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.

[0063] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0064] The technical solutions provided in this application have been described in detail above. Specific examples have been used in this application to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

[0065] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0066] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0067] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0068] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0069] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for adjusting a CNC machine tool based on global optimization, characterized in that, include: Obtain measured data of the workpiece to be adjusted and its multiple key stations after being processed by CNC machine tools, and calculate the dimensional deviation between the measured data and the theoretical data of each key station; Based on the dimensional correlation characteristics between the key stations of the workpiece to be adjusted, the initial dimensional deviation coupling relationship value between the key stations is preset; Obtain the measured correlation data between key stations in the historical processing of the workpiece to be adjusted, and construct a coupled processing model based on the measured correlation data between key stations in the historical processing and the initial dimensional deviation coupling relationship value; The dimensional deviation values ​​of each key station of the workpiece to be adjusted are input into the coupled machining model. Under the condition of satisfying the tolerance constraints of each key station of the workpiece to be adjusted, the target dimensional deviation coupling relationship value that minimizes the overall dimensional deviation of the workpiece to be adjusted is calculated based on the multi-objective optimization algorithm. The global compensation parameters for each key station of the workpiece to be adjusted are calculated based on the target size deviation coupling relationship value, wherein the global compensation parameters include the size adjustment value for each key station; Based on the global compensation parameters, control and adjustment instructions for the CNC machine tool are generated, and the key positions of the workpiece to be adjusted are adjusted based on the control and adjustment instructions.

2. The method for adjusting a CNC machine tool based on global optimization according to claim 1, characterized in that, The process of acquiring measured data of the workpiece to be adjusted and its multiple key stations after CNC machine tool processing, and calculating the dimensional deviation between the measured data and theoretical data of each key station, includes: Configure initial parameters corresponding to the CNC machine tool when machining the workpiece. The initial parameters include at least the identification information of the CNC machine tool, the theoretical data of each key station of the workpiece, and the access interface of the external measurement data source. Based on the access interface of the external measurement data source, a standardized inspection report file containing the workpiece to be adjusted is automatically obtained; The standardized inspection report file of the workpiece to be adjusted is analyzed, and the measured data of each key station of the workpiece to be adjusted are extracted. The measured data of each key station are compared with the theoretical data to calculate the dimensional deviation of each key station of the workpiece to be adjusted.

3. The method for adjusting a CNC machine tool based on global optimization according to claim 1, characterized in that, The process involves acquiring measured correlation data between key workstations in the historical processing of the workpiece to be adjusted, and constructing a coupled processing model based on the measured correlation data between key workstations in the historical processing and the initial dimensional deviation coupling relationship value. Obtain historical processing data of the workpiece to be adjusted, wherein the historical processing data includes the actual dimensional deviation values ​​of each key station of the workpiece to be adjusted; The historical processing data of the workpiece to be adjusted and the initial dimensional deviation coupling relationship values ​​between each preset key station are input into the machine learning model for training, and the trained coupled processing model is obtained.

4. The method for adjusting a CNC machine tool based on global optimization according to claim 1, characterized in that, The step involves inputting the dimensional deviation values ​​of each key station of the workpiece to be adjusted into the coupled machining model. Under the condition of satisfying the tolerance constraints of each key station of the workpiece, the target dimensional deviation coupling relationship value that minimizes the overall dimensional deviation of the workpiece is calculated based on a multi-objective optimization algorithm. This includes: Using the coupled processing model as the response function, a global optimization model is constructed with the target size deviation coupling relationship value as the optimization variable and the weighted minimization of the size deviation of each key station as the objective. The dimensional deviation values ​​of each key workstation are input into the global optimization model, and the tolerance range of each key workstation is used as the constraint condition of the global optimization model. A multi-objective optimization algorithm is used to iteratively solve the global optimization model. In the feasible solution space that satisfies the constraints, the optimal solution of the evaluation function of the overall size deviation of the workpiece to be adjusted is searched, and the optimal solution is output as the target size deviation coupling relationship value.

5. The method for adjusting a CNC machine tool based on global optimization according to claim 1, characterized in that, The calculation of global compensation parameters for each critical station of the workpiece to be adjusted based on the target size deviation coupling relationship value, wherein the global compensation parameters include size adjustment values ​​for each critical station, including: Based on the target size deviation coupling relationship value and the coupled processing model, calculate the size adjustment value required for each key station; The required dimensional adjustment values ​​for each critical station are converted into compensation parameters for the CNC machine tool, generating global compensation parameters for each critical station of the workpiece to be adjusted; wherein, the global compensation parameters include the length compensation value or radius compensation value for the tool, and / or the offset value for the workpiece coordinate system.

6. The method for adjusting a CNC machine tool based on global optimization according to claim 1, characterized in that, The process of generating control and adjustment commands for the CNC machine tool based on the global compensation parameters, and adjusting key positions of the workpiece to be adjusted based on the control and adjustment commands, includes: Each compensation parameter in the global compensation parameters is converted into a machine tool adjustment program segment that can be executed by the CNC machine tool; Generate control and adjustment instructions containing a machine adjustment program segment executable by the CNC machine tool, and transmit the control and adjustment instructions to the CNC machine tool; The control and adjustment commands are executed on the CNC machine tool to drive the corresponding motion axes of the CNC machine tool to adjust the key positions of the workpiece to be adjusted.

7. The method for adjusting a CNC machine tool based on global optimization according to claim 1, characterized in that, After generating control and adjustment commands for the CNC machine tool based on the global compensation parameters, and adjusting the key positions of the workpiece to be adjusted based on the control and adjustment commands, the method further includes: The workpiece to be adjusted was reprocessed after adjustments were made at each key work station, and the verification measurement data of the workpiece to be adjusted was obtained. An adjustment verification report for the CNC machine tool is generated based on the verification measurement data. The adjustment verification report includes quantitative evaluation information on the dimensional status of each key workstation after adjustment.

8. A machine adjustment device for a CNC machine tool based on global optimization, characterized in that, It includes an acquisition module, a configuration module, a construction module, a first calculation module, a second calculation module, and a generation module: Obtain measured data of the workpiece to be adjusted and its multiple key stations after CNC machine tool processing, and calculate the dimensional deviation between the measured data and theoretical data of each key station of the workpiece to be adjusted. The configuration module is used to preset the initial dimensional deviation coupling relationship values ​​between key stations based on the dimensional correlation characteristics between each key station of the workpiece to be adjusted. The construction module is used to obtain the measured correlation data between key stations in the historical processing of the workpiece to be adjusted, and to construct a coupled processing model based on the measured correlation data between key stations in the historical processing and the initial dimensional deviation coupling relationship value. The first calculation module is used to input the dimensional deviation values ​​of each key station of the workpiece to be adjusted into the coupled machining model. Under the condition of satisfying the tolerance constraints of each key station of the workpiece to be adjusted, the target dimensional deviation coupling relationship value that minimizes the overall dimensional deviation of the workpiece to be adjusted is calculated based on the multi-objective optimization algorithm. The second calculation module is used to calculate the global compensation parameters of each key station of the workpiece to be adjusted based on the target size deviation coupling relationship value, wherein the global compensation parameters include the size adjustment value of each key station; The generation module is used to generate control and adjustment instructions for the CNC machine tool based on the global compensation parameters, and to adjust the key positions of the workpiece to be adjusted based on the control and adjustment instructions.

9. A machine adjustment device for CNC machine tools based on global optimization, characterized in that, Includes memory and processor, wherein: The memory is used to store computer programs; The processor is used to read the computer program in the memory and execute the steps of the machine adjustment method for a CNC machine tool based on global optimization as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, It stores a readable computer program that, when executed by a processor, implements the steps of a global optimization-based CNC machine tool adjustment method as described in any one of claims 1 to 7.