A method for optimizing the entire process chain of CNC machining based on digital twin technology
Through digital twin technology, the model and information interaction of CNC machine tools is established, and the entire process chain of CNC machining is optimized, which solves the problems of inefficiency caused by information islands in traditional processing, and achieves high-quality and high-efficiency CNC machining.
Patent Information
- Application Number
- CN202411117251.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-08-15
AI Technical Summary
In the traditional CNC processing process, information flows one-way between each process, and the entire process cannot be optimized, resulting in low processing quality and efficiency.
Digital twin technology is used to establish geometric appearance models, kinematic models and electromechanical coupling dynamic models of CNC machine tools. Through information interaction and parameter identification, the entire CNC machining process chain is optimized to achieve continuous optimization of simulation processing and actual processing.
Improve processing quality and efficiency, reduce processing costs, avoid the problem of difficult error control caused by information islands in traditional processing processes, significantly improve optimization efficiency and reduce trial and error costs.
Smart Images

Figure CN118656983B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of digital twin CNC machine tool processing, and in particular relates to a CNC machining full process chain optimization method based on digital twin technology. Background Art
[0002] With the continuous development of the manufacturing industry, the manufacturing difficulty of high-end equipment parts is increasing. In the traditional processing process, designers design relevant parts according to the needs. After obtaining the drawings and models of the parts, the process personnel specify the processing technology and often rely on computer-aided manufacturing (CAM) software to generate specific CNC processing files. Then the CNC processing personnel operate the CNC machine tools according to the CNC processing files for production. After the production is completed, the quality inspection personnel will conduct quality inspection.
[0003] In this process, information about parts flows in one direction, and each process often forms an information island, making it impossible to optimize the CNC machining process from the whole process.
[0004] Digital twin technology can integrate physical models, data models and algorithm models. Digital twin models can simulate the motion characteristics of physical systems, realize the prediction and optimization of physical systems, and can also become an interactive platform for multi-source and multi-type information. If digital twin technology can be applied to CNC machining, it can further improve machining quality and efficiency. Summary of the invention
[0005] In view of the shortcomings of the prior art, the present invention proposes a method for optimizing the entire process chain of CNC machining based on digital twin technology. The optimization method can be implemented in the entire CNC machining process, so that the machining quality and machining efficiency are improved.
[0006] The technical solution of the present invention is as follows:
[0007] A method for optimizing the entire process chain of CNC machining based on digital twin technology includes the following steps:
[0008] Step S1, establishing a geometric appearance model, a kinematic model, and an electromechanical coupling dynamics model of the CNC machine tool, and jointly obtaining a digital twin model of the CNC machine tool;
[0009] Step S2: realizing information interaction between the digital twin model and the CNC machine tool through the communication interface and external sensors of the CNC machine tool;
[0010] Step S3, based on the historical actual motion data of each servo axis and spindle of the CNC machine tool, the electromechanical coupling dynamics model in the digital twin model is identified by a parameter identification method, and the performance analysis of each servo axis and spindle of the CNC machine tool is realized;
[0011] Step S4, based on the digital twin model obtained in step S1, the performance analysis of each servo axis and spindle of the CNC machine tool in step S3, and the geometric information of the workpiece, generate a tool path and an actual processing file of the CNC machine tool;
[0012] Step S5: Based on the actual processing file, the digital twin model is used to perform simulation processing, the simulation processing data is analyzed, and the numerical control system parameters are iteratively optimized until the simulation processing quality meets the requirements; if the requirements cannot be met by optimizing the numerical control system parameters alone, the axis motion is reallocated, the processing speed is reduced, and the process returns to step S4;
[0013] Step S6, based on the CNC system parameters optimized in step S5, use a CNC machine tool to actually process the workpiece, obtain and store information about the CNC system and external sensors during the processing, analyze and record the actual processing status, and return to step S3.
[0014] Preferably, the geometric appearance model is established by: using three-dimensional modeling software based on various configurations and components of a CNC machine tool;
[0015] The kinematic model is established by: obtaining the forward and inverse kinematic change relationship between the motion of each servo axis of the CNC machine tool and the motion of the tool through a kinematic method;
[0016] The electromechanical coupling dynamics model is established by combining the servo control model with the mechanical transmission model through the control model provided by the servo axes and the spindle driver of the CNC machine tool, using control theory and physical principles.
[0017] Preferably, the information interacted through the communication interface of the CNC machine tool in step S2 includes: the command position of each servo axis of the CNC machine tool, the feedback position of each servo axis sensor, the command speed of each servo axis, the feedback speed of each servo axis sensor, the feedback current of each servo axis sensor, the spindle command speed, the spindle sensor feedback speed, the spindle sensor feedback current, the PLC program parameter status and the tool information; the information interacted through the external sensor includes: the vibration of each servo axis of the CNC machine tool, the acceleration of each servo axis, the temperature of each servo axis transmission part, the spindle vibration, the spindle acceleration, the video information of the processing area, the audio signal of the processing process and the temperature information of the processing area.
[0018] Preferably, the step S3 specifically includes:
[0019] Based on the actual motion data of each servo axis and spindle of the CNC machine tool, the unknown parameters of the electromechanical coupling dynamics model in the digital twin model are identified, and the electromechanical coupling dynamics model after parameter identification is obtained; the machine learning method is used to compensate for the error of the electromechanical coupling dynamics model after parameter identification; and the performance analysis of each servo axis and spindle of the CNC machine tool is realized.
[0020] Preferably, when the tool path and the actual processing file of the CNC machine tool are generated in step S4, the following conditions must be met: reasonably allocating the motion load of each servo axis and spindle of the CNC machine tool, reasonably setting the processing parameters, and reasonably setting the processing file code.
[0021] Preferably, the step S5 specifically includes:
[0022] The actual processing file obtained in the CNC system operation step S4 is used to obtain the instructions and PLC variables issued by the CNC system to each servo axis and spindle during the actual processing. The electromechanical coupling dynamics model in the digital twin model is used to simulate the response of each servo axis under the instructions. The kinematic model in the digital twin model is used to obtain the movement of the tool relative to the workpiece during the actual processing. The performance of each servo axis and spindle is analyzed, the trajectory of the tool relative to the workpiece is analyzed, and the changes in the PLC variables are analyzed. If the simulated processing quality does not meet the requirements, the CNC system parameters are iteratively optimized until the simulated processing quality meets the requirements; if the requirements cannot be met by optimizing the CNC system parameters alone, the axis motion is reallocated, the processing speed is reduced, and the process returns to step S4.
[0023] Compared with the prior art, the present invention has the following beneficial effects:
[0024] 1. The present invention optimizes the entire process chain of CNC machining based on digital twin technology, effectively avoiding the problem of difficult to effectively control workpiece errors caused by the one-way transmission of workpiece information in the existing machining process. The entire process of CNC machining is continuously optimized through digital twin technology, and the tracking error and contour error in the workpiece machining process are continuously controlled. The machining quality and efficiency of CNC machining are improved, and the machining cost is reduced.
[0025] 2. The digital twin technology-based CNC machining full process chain optimization method proposed in the present invention provides the CNC machine tool servo axis performance information obtained by parameter identification to the technicians when preparing the actual machining file, which helps to optimize the tool path design, thereby avoiding the need to reprogram the process file in the traditional machining process due to unreasonable machining files in the subsequent machining process. Before the actual machining, the digital twin model of the present invention conducts virtual simulation of the workpiece machining by establishing an electromechanical coupling dynamics model and a machine tool kinematics model, and continuously optimizes the machining plan. Compared with the traditional machining process, it significantly improves the optimization efficiency and reduces the trial and error cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. The features and advantages of the present invention can be more clearly understood by referring to the drawings. The drawings are schematic and should not be understood as limiting the present invention in any way. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 It is a flow chart of the CNC machining full process chain optimization method based on digital twin technology in this embodiment.
[0028] Figure 2 It is a schematic diagram of information interaction between the digital twin model and the CNC machine tool in this embodiment. DETAILED DESCRIPTION
[0029] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0030] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0031] Based on digital twin technology, the present invention proposes a method for optimizing the entire process chain of CNC machining, which specifically includes the following steps:
[0032] Step S1: Establish a geometric appearance model, a kinematic model, and an electromechanical coupling dynamics model of the CNC machine tool, and jointly obtain a digital twin model of the CNC machine tool.
[0033] Use 3D modeling software to build geometric appearance models of various configurations and components of CNC machine tools.
[0034] Through the kinematic method, the forward and inverse kinematic relationship between the motion of each servo axis of the CNC machine tool and the motion of the tool is obtained, and the kinematic model of the CNC machine tool is obtained.
[0035] Through the control models provided by the servo axes and spindle drivers of the CNC machine tools, using control theory and physical principles, a servo control model and a mechanical transmission model are established and combined to obtain an electromechanical coupling dynamics model.
[0036] Step S2: Realize information interaction between the digital twin model and the CNC machine tool through the communication interface and external sensors of the CNC machine tool.
[0037] Through the interface provided by the CNC system of the CNC machine tool, the information generated by the CNC system during the processing is obtained, including but not limited to: the command position of each servo axis, the feedback position of each servo axis sensor, the command speed of each servo axis, the feedback speed of each servo axis sensor, the feedback current of each servo axis sensor, the spindle command speed, the spindle sensor feedback speed, the spindle sensor feedback current, the key parameter status of the PLC program and the tool information; through the external sensor, the external sensor data is obtained through the acquisition card, including but not limited to: the vibration of each servo axis, the acceleration of each servo axis, the temperature of the main transmission parts of each servo axis, the vibration of the spindle, the acceleration of the spindle, the video information of the processing area, the audio signal of the processing process and the temperature information of the processing area.
[0038] Step S3: Based on the historical actual motion data of each servo axis and spindle of the CNC machine tool, the electromechanical coupling dynamics model in the digital twin model is identified by a parameter identification method, and the performance analysis of each servo axis and spindle of the CNC machine tool is realized.
[0039] Based on the historical actual motion data of each servo axis and spindle of the CNC machine tool, the unknown parameters of the electromechanical coupling dynamics model of the digital twin model are identified, and the parameters of the electromechanical coupling dynamics model after parameter identification are obtained; on the basis of the electromechanical coupling dynamics model after parameter identification, machine learning and other methods are used to compensate for the errors of the electromechanical coupling dynamics model to further improve the model accuracy.
[0040] Step S4: Based on the digital twin model, the performance analysis of each servo axis and spindle of the CNC machine tool in step S3, and the workpiece geometry information, generate the tool path and the actual processing file of the CNC machine tool.
[0041] When formulating actual processing files, technicians can use the performance information of the servo axes and spindles of the CNC machine tools provided by the digital twin to reasonably plan the tool path and processing parameters, including but not limited to reasonably allocating the motion load of the servo axes and spindles of the CNC machine tools, reasonably setting the processing parameters, and reasonably setting the processing file codes.
[0042] Step S5: Based on the actual processing file, use the digital twin model to perform simulation processing, analyze the simulation processing data, and iteratively optimize the CNC system parameters until the simulation processing quality meets the requirements; if the requirements cannot be met by optimizing the CNC system parameters alone, reallocate the axis motion, reduce the processing speed, and return to step S4.
[0043] The digital twin model communicates with the CNC system of the CNC machine tool through the information interaction method established in step S2, and uses the CNC system to run the actual processing file formulated in step S4 to obtain the instructions and PLC variables issued by the CNC system to each servo axis and spindle in the actual processing. The electromechanical coupling dynamics model in the digital twin model is used to simulate the response of each servo axis under the instruction. The kinematic model in the digital twin model is used to obtain the movement of the tool relative to the workpiece during the actual processing. The performance of each servo axis and spindle is analyzed, the trajectory of the tool relative to the workpiece is analyzed, and the changes in the PLC variables are analyzed. If the simulated processing quality does not meet the requirements, the CNC system parameters are iteratively optimized until the simulated processing quality meets the requirements; if the requirements cannot be met by optimizing the CNC system parameters alone, the axis motion is redistributed, the processing speed is reduced, and the process returns to step S4.
[0044] Step S6, based on the CNC system parameters optimized in step S5, use a CNC machine tool to actually process the workpiece, obtain and store information about the CNC system and external sensors during the processing, analyze and record the actual processing status, and return to step S3.
[0045] Based on the CNC system parameters optimized in step S5, the CNC machine tool is used to actually process the workpiece. During the actual processing, the digital twin model maintains communication with the CNC system and external sensors through the information interaction method established in step S2, collects data in real time, and monitors the processing quantity to evaluate the processing status of the CNC machine tool. At the same time, the real-time collected data is also stored in the database. Then return to step S3 to update the digital twin model to achieve dynamic iteration of the digital twin model.
[0046] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0047] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.
[0048] In the present invention, the terms "first", "second", "third", "fourth" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance. The term "plurality" refers to two or more, unless otherwise clearly defined.
[0049] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for optimizing the entire process chain of CNC machining based on digital twin technology, characterized in that: The following steps are involved: Step S1, establishing a geometric appearance model, a kinematic model, and an electromechanical coupling dynamics model of the CNC machine tool, and jointly obtaining a digital twin model of the CNC machine tool; Step S2: realizing information interaction between the digital twin model and the CNC machine tool through the communication interface and external sensors of the CNC machine tool; Step S3, based on the historical actual motion data of each servo axis and spindle of the CNC machine tool, the electromechanical coupling dynamics model in the digital twin model is identified by a parameter identification method, and the performance analysis of each servo axis and spindle of the CNC machine tool is realized; Step S4, based on the digital twin model obtained in step S1, the performance analysis of each servo axis and spindle of the CNC machine tool in step S3, and the geometric information of the workpiece, generate a tool path and an actual processing file of the CNC machine tool; Step S5: Based on the actual processing file, the digital twin model is used to perform simulation processing, the simulation processing data is analyzed, and the numerical control system parameters are iteratively optimized until the simulation processing quality meets the requirements; if the requirements cannot be met by optimizing the numerical control system parameters alone, the axis motion is reallocated, the processing speed is reduced, and the process returns to step S4; Step S6, based on the CNC system parameters optimized in step S5, use a CNC machine tool to actually process the workpiece, obtain and store information about the CNC system and external sensors during the processing, analyze and record the actual processing status, and return to step S3; The step S3 specifically includes: Based on the actual motion data of each servo axis and spindle of the CNC machine tool, the unknown parameters of the electromechanical coupling dynamics model in the digital twin model are identified to obtain the electromechanical coupling dynamics model after parameter identification; the machine learning method is used to compensate for the error of the electromechanical coupling dynamics model after parameter identification; and the performance analysis of each servo axis and spindle of the CNC machine tool is realized; When the tool path and the actual processing file of the CNC machine tool are generated in step S4, the following conditions must be met: the motion load of each servo axis and spindle of the CNC machine tool is reasonably distributed, the processing parameters are reasonably set, and the processing file code is reasonably set; The step S5 specifically includes: The actual processing file obtained in the CNC system operation step S4 is used to obtain the instructions and PLC variables issued by the CNC system to each servo axis and spindle during the actual processing. The electromechanical coupling dynamics model in the digital twin model is used to simulate the response of each servo axis under the instructions. The kinematic model in the digital twin model is used to obtain the movement of the tool relative to the workpiece during the actual processing. The performance of each servo axis and spindle is analyzed, the trajectory of the tool relative to the workpiece is analyzed, and the changes in the PLC variables are analyzed. If the simulated processing quality does not meet the requirements, the CNC system parameters are iteratively optimized until the simulated processing quality meets the requirements; if the requirements cannot be met by optimizing the CNC system parameters alone, the axis motion is reallocated, the processing speed is reduced, and the process returns to step S4.
2. The method for optimizing the entire process chain of CNC machining according to claim 1, characterized in that: The geometric appearance model is established by: using three-dimensional modeling software based on various configurations and components of the CNC machine tool; The kinematic model is established by: obtaining the forward and inverse kinematic change relationship between the motion of each servo axis of the CNC machine tool and the motion of the tool through a kinematic method; The electromechanical coupling dynamics model is established by combining the servo control model with the mechanical transmission model through the control model provided by the servo axes and the spindle driver of the CNC machine tool, using control theory and physical principles.
3. The method for optimizing the entire process chain of CNC machining according to claim 2, characterized in that: The information exchanged through the communication interface of the CNC machine tool in step S2 includes: the command position of each servo axis of the CNC machine tool, the feedback position of each servo axis sensor, the command speed of each servo axis, the feedback speed of each servo axis sensor, the feedback current of each servo axis sensor, the spindle command speed, the spindle sensor feedback speed, the spindle sensor feedback current, the PLC program parameter status and the tool information; the information exchanged through the external sensor includes: the vibration of each servo axis of the CNC machine tool, the acceleration of each servo axis, the temperature of each servo axis transmission part, the spindle vibration, the spindle acceleration, the video information of the processing area, the audio signal of the processing process and the temperature information of the processing area.
Citation Information
Patent Citations
Machine tool cutting process parameter optimization method based on digital twinning
CN114758064A
Automatic production line intelligent monitoring system based on self-learning time-varying digital twinning
CN115129003A
Operation energy consumption monitoring system for digital twin numerical control machine tool
CN115562167A
Optimized machining control method and system for numerical control machine tool
CN117047556A
Industrial production digital twin simulation system and method and storage medium
CN117933101A
