Digital twin homomorphic method, equipment and medium for three-axis CNC milling machine processing
By constructing the three-dimensional digital twin model and synchronous working condition information of the three-axis CNC milling machine, calculating the three-dimensional cutting model and execution time, the digital twin homogeneity of the CNC milling machine processing technology is realized, and the lack of digital processing technology of CNC milling machine in the existing technology is solved. The twin problems improve the understanding and cognitive sense of equipment debugging and manipulation.
Patent Information
- Application Number
- CN202410033884.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-09
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-01-09
AI Technical Summary
The lack of digital twin technology for CNC milling machine processing technology in the prior art has led to the inability to homomorphize the processing process and results in the digital twin.
Build a three-dimensional digital twin model of a three-axis CNC milling machine, and calculate the three-dimensional cutting model and execution time by synchronizing working condition information, building the execution context storage and synchronous update mechanism of processing instructions, and performing differences set operations to generate cutting results to realize digital twins homomorphization processing process and results of the body.
The three-axis CNC milling machine processing instruction function is equivalently realized in three-dimensional digital space, solving the problem of homomorphism of production and processing of digital twins of CNC machine tools, providing intuitive visual assistance for equipment design, debugging and education and training, and improving equipment installation and debugging and manipulation of understanding and cognitive sense.
Smart Images

Figure CN118011955B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of CNC machining technology, and in particular to a digital twin homomorphic method, equipment and medium for a three-axis CNC milling machine machining process. Background Art
[0002] Digital twin technology is a new technology that combines the physical world with the virtual world based on digitalization, virtualization, and networking technologies. By utilizing physical models, sensor updates, operating history and other data, integrating multi-disciplinary, multi-physical quantity, multi-scale, and multi-probability simulation processes, mapping is completed in the virtual space to reflect the entire life cycle of the corresponding physical equipment. At present, digital twins are regarded as digital mapping systems of one or more important and interdependent equipment systems, and are generally applicable to many fields, such as product design, product manufacturing, medical analysis, engineering construction, etc. The most in-depth application in China is in the field of engineering construction, and the field of intelligent manufacturing has received the most attention and the hottest research.
[0003] CNC milling machines are widely used as basic workpiece processing equipment in modern industry. They are an automatic processing equipment developed on the basis of ordinary milling machines. They are mainly used for cutting and processing of inner and outer cylindrical surfaces of shaft parts or disk parts, inner and outer conical surfaces of arbitrary taper angles, complex rotary inner and outer curved surfaces, and cylindrical and conical threads, and can perform grooving, drilling, reaming, reaming and boring. In the specific working process, CNC lathes automatically process the parts to be processed according to the pre-compiled processing program. The main processing objects of CNC milling machines include plane parts, variable bevel parts, curved surface parts and hole parts.
[0004] Currently, the research and development of digital twin technology is in its initial stages. Digital twin technology for the process flow and actions of intelligent manufacturing equipment has been initially formed, but digital twin technology for processing technology has rarely appeared. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a digital twin homomorphic method, equipment and medium for a three-axis CNC milling machine processing technology, which can realize homomorphic processing process and results in the digital twin.
[0006] In order to solve the above technical problems, the present invention provides a digital twin homomorphic method for a three-axis CNC milling machine processing technology, including: constructing a three-dimensional digital twin model of the three-axis CNC milling machine, and synchronizing the working condition information of the three-axis CNC milling machine with the working condition information of the three-dimensional digital twin model; constructing an execution context storage and synchronous update mechanism for processing instructions in the three-dimensional digital twin model; calculating a three-dimensional cutting model of the three-axis CNC milling machine sending the processing instructions according to the execution context; calculating the execution time of the three-axis CNC milling machine sending the processing instructions according to the execution context; executing the process according to the three-dimensional cutting model and the execution time, performing a difference operation on the current workpiece model and the three-dimensional cutting model to generate a cutting result and update the display.
[0007] As an improvement of the above-mentioned scheme, the step of constructing a three-dimensional digital twin model of the three-axis CNC milling machine includes: performing three-dimensional digital modeling on the three-axis CNC milling machine to generate a three-dimensional digital twin model; establishing communication between the three-axis CNC milling machine and the three-dimensional digital twin model to synchronize the working condition information of the three-axis CNC milling machine with the working condition information of the three-axis digital twin model; the working condition information includes spatial coordinates, tool assembly parameters, workpiece configuration parameters, tool rotation conditions, coolant injection conditions and mobile operation control conditions.
[0008] As an improvement of the above-mentioned scheme, the step of constructing an execution context storage and synchronous update mechanism for processing instructions in the three-dimensional digital twin model includes: constructing an execution context for processing instructions in the three-dimensional digital twin model; storing and synchronously updating the execution context; the execution context includes tool setting data, three-dimensional coordinate data, processing instructions, processing instruction parameters, coordinate mode, processing plane, workpiece coordinate system, feed mode and feed rate.
[0009] As an improvement of the above-mentioned scheme, the step of calculating the three-dimensional cutting model of the processing instruction sent by the three-axis CNC milling machine according to the execution context includes: when the processing instruction is a linear interpolation instruction, the three-dimensional cutting model is calculated according to the current three-dimensional coordinate data and the target coordinate data given by the processing instruction; when the processing instruction is an arc interpolation instruction, the center coordinates, radius and start and end angles of the three-dimensional space trajectory are calculated according to the current three-dimensional coordinate data, the target coordinate data given by the processing instruction, the processing plane and the arc parameters to construct a three-dimensional cutting model.
[0010] As an improvement of the above-mentioned scheme, the three-dimensional cutting model is obtained by performing a difference operation between a three-dimensional polyhedron and a three-dimensional space complex, the three-dimensional polyhedron is the three-dimensional polyhedron of the workpiece in the current space coordinates, and the three-dimensional space complex is the three-dimensional space complex formed by the path traveled by the tool head under the control of the processing instructions.
[0011] As an improvement of the above scheme, when the machining instruction is a linear interpolation instruction, the step of calculating the execution time of the machining instruction sent by the three-axis CNC milling machine according to the execution context includes: according to the machining instruction, calculating the trajectory and distance between the start and end nodes in the three-dimensional space trajectory, and using the trajectory as a basis for moving the three-dimensional model of the mobile tool rotation to generate a composite model of the tool rotation model; and using the distance as the process path length; and calculating the execution time according to the process path length, feeding mode and feed rate.
[0012] As an improvement of the above scheme, when the processing instruction is an arc interpolation instruction, the step of calculating the execution time of the processing instruction sent by the three-axis CNC milling machine according to the execution context includes: calculating the center coordinates and radius of the three-dimensional space trajectory according to the execution context; calculating the start and end angles of the starting point and the end point relative to the center of the circle according to the processing instruction; calculating the arc trajectory according to the center coordinates, radius and start and end angles, and using the arc trajectory as a basis for moving the three-dimensional model of the mobile tool rotation to generate a composite model of the tool rotation model; calculating the number of round trips corresponding to the execution of the processing instruction according to the processing instruction; calculating the single arc length of a single path according to the center coordinates, radius and start and end angles; generating multiple composite models according to the number of round trips and the progressive depth of each time, and obtaining the union of the three-dimensional space models of the multiple composite models to obtain the cutting body model of the processing instruction; calculating the total length of the three-dimensional space trajectory according to the single arc length and the number of round trips, and using the total length as the process path length; calculating the execution time according to the process path length, feeding mode and feed rate.
[0013] As an improvement of the above-mentioned scheme, the step of executing a process according to the three-dimensional cutting model and the execution time, and performing a difference operation on the current workpiece model and the three-dimensional cutting model to generate a cutting result includes: executing a process according to the cutting instruction execution rhythm of the three-axis CNC milling machine, the three-dimensional cutting model and the execution time, and performing a difference operation on the current workpiece model and the three-dimensional cutting model to generate a cutting result; wherein the three-axis CNC milling machine and the three-dimensional digital twin model are synchronized in a homomorphic manner with the three-dimensional cutting model, execution time and cutting results.
[0014] Correspondingly, the present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the above-mentioned three-axis CNC milling machine processing digital twin homomorphic method when executing the computer program.
[0015] Correspondingly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the above-mentioned three-axis CNC milling machine processing digital twin homomorphic method are implemented.
[0016] The implementation of the present invention has the following beneficial effects:
[0017] 1. Based on the digital twin technology solution based on process action synchronization, the present invention equivalently realizes the functions of each processing instruction of a three-axis CNC milling machine in a three-dimensional digital space, and can realize the same processing process and results in the digital twin, solving the problem of the same production and processing time of the digital twin of the CNC machine tool;
[0018] 2. The present invention realizes the tool instruction-level homomorphic digital twin of the three-axis CNC milling machine, which plays a good auxiliary role in the homogeneous analysis of equipment design, adjustment and testing, data collection and equivalent reproduction of key components of equipment operation for CNC milling machine equipment manufacturers. It displays various operating data in the form of intuitive three-dimensional models, solving the problem of lack of intuitive visualization in equipment design and manufacturing.
[0019] 3. The digital twin isomorphic body of the three-axis CNC milling machine realized by the present invention enables both production and manufacturing debugging personnel and education and training personnel to observe the spatial change state of CNC code operation, CNC instruction operation state, cutting effect, etc. from the three-dimensional digital space, which enhances the sense of presence and greatly improves the understanding of the phenomena and execution mechanisms of equipment installation and debugging, practical training and operation. Different from the spatial observation of traditional physical machinery, the cognitive sense is enhanced from the three-dimensional space vision. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a flow chart of an embodiment of the digital twin homomorphic method for the three-axis CNC milling machine processing technology of the present invention. DETAILED DESCRIPTION
[0021] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.
[0022] See also Figure 1 , Figure 1 The flowchart of the embodiment of the digital twin homomorphic method of the three-axis CNC milling machine processing technology of the present invention is shown, which includes:
[0023] S101, constructing a 3D digital twin model of a three-axis CNC milling machine;
[0024] The working condition information of the three-axis CNC milling machine is synchronized with the working condition information of the three-dimensional digital twin model. Specifically, the steps of constructing the three-dimensional digital twin model of the three-axis CNC milling machine include:
[0025] (1) Perform three-dimensional digital modeling on the three-axis CNC milling machine (i.e., the physical machine) to generate a three-dimensional digital twin model;
[0026] It should be noted that the established three-dimensional digital twin model must have clear three-dimensional spatial scale measurements and ensure the establishment of a three-dimensional spatial model with the same scale of the workpiece and the tool through three-dimensional spatial measurement transformation.
[0027] (2) Establishing communication between the three-axis CNC milling machine and the three-dimensional digital twin model so that the working condition information of the three-axis CNC milling machine is synchronized with the working condition information of the three-dimensional digital twin model;
[0028] It should be noted that the three-axis CNC milling machine sends spatial coordinates at fixed time intervals, such as 20ms or less, but the spatial coordinate information needs to be directly synchronized before and after the command is executed; in addition, the three-axis CNC milling machine also directly sends working condition information; the working condition information includes spatial coordinates (i.e. the current spatial coordinates of the three axes), tool assembly parameters, workpiece configuration parameters, tool rotation conditions, coolant injection conditions and mobile operation control conditions. In other words:
[0029] 1. The 3D digital twin model supports moving to the current spatial coordinates sent by the three-axis CNC milling machine;
[0030] 2. The 3D digital twin model supports tool assembly directly sent by the three-axis CNC milling machine and receives tool configuration parameters (including tool length and tool diameter);
[0031] 3. The 3D digital twin model supports the assembly of workpieces sent directly by the three-axis CNC milling machine and receives the configuration parameters of the workpieces (including the height / length and radius of the workpieces);
[0032] 4. The 3D digital twin model supports tool rotation control directly sent by the three-axis CNC milling machine (including whether to rotate, rotation direction and rotation speed, etc.);
[0033] 5. The three-dimensional digital twin model supports the three-axis CNC milling machine to directly send the coolant injection control.
[0034] Among them, direct sending means sending the data or information immediately when it occurs.
[0035] Therefore, accurate spatial movement control of the process action flow can be achieved through step S101.
[0036] S102, constructing an execution context storage and synchronous update mechanism of the processing instructions in the three-dimensional digital twin model;
[0037] Specifically, the steps of constructing the execution context storage and synchronous update mechanism of the processing instructions in the three-dimensional digital twin model include:
[0038] (1) Construct the execution context of machining instructions in the 3D digital twin model;
[0039] The execution context includes tool setting data, 3D coordinate data, machining instructions, machining instruction parameters, coordinate mode, machining plane, workpiece coordinate system, feed mode and feed rate. In other words:
[0040] 1. The 3D digital twin model supports the synchronization of manual movement / handwheel movement tool setting data of the three-axis CNC milling machine; that is, after the tool setting of the three-axis CNC milling machine is completed, the 3D coordinate data of the tool setting result is directly sent;
[0041] 2. The three-dimensional digital twin model supports the setting data of multiple machining coordinate systems of the three-axis CNC milling machine; that is, after the multiple machining coordinate systems of the three-axis CNC milling machine are set up, the three-dimensional coordinate data of multiple coordinate systems are directly sent;
[0042] 3. The three-dimensional digital twin model supports synchronization of currently executed processing instructions; that is, the three-axis CNC milling machine directly sends the processing instructions to be executed;
[0043] 4. The 3D digital twin model supports the interpretation of machining instruction parameters, where the machining instruction parameters include but are not limited to X / Y / Z target coordinates, I / J / K offsets, and radius R;
[0044] 5. The 3D digital twin model supports absolute coordinate or relative coordinate mode settings. According to the instruction selection, the read X / Y / Z target coordinates are transformed accordingly, especially the relative coordinate mode needs to be accurately transformed into the actual 3D space coordinates for calculation;
[0045] 6. The 3D digital twin model supports the selection and setting of machining surfaces. In the three-axis milling machine system, the circular interpolation instructions need to be determined in advance. For example, the machining instructions of Huazhong CNC equipment can select the XY plane through G17, the XZ plane through G18, and the YZ plane through G19.
[0046] 7. The 3D digital twin model supports the selection and setting of workpiece coordinate systems. In the three-axis milling machine system, the workpiece processing coordinate system can be preset before processing. Usually, six workpiece coordinate systems can be preset. For example, the processing instructions of Huazhong CNC equipment can set six workpiece coordinate systems through G54 to G59.
[0047] 8. The 3D digital twin model supports feed mode and rate settings. Generally, the three-axis CNC milling machine basically supports feed per minute and feed per revolution. The speed can also be set to control the tool's revolutions per minute.
[0048] (2) Store and synchronously update the execution context;
[0049] The execution context needs to be updated synchronously in the 3D digital twin model to ensure that the 3D spatial coordinate calculations executed by the relevant instructions are consistent with the 3D spatial coordinates executed by the three-axis CNC milling machine;
[0050] Accordingly, a modal program execution context space may be established, wherein the context space includes storage information such as the above-mentioned instruction coordinate mode, plane selection result, selected workpiece coordinate system, modal code, etc.
[0051] Therefore, the code setting status of the processing instruction sequence can be recorded through step S102 to ensure that when each processing instruction performs three-dimensional space calculation, the calculation basis is clear and accurate calculation results are obtained.
[0052] S103, calculating a three-dimensional cutting model for a three-axis CNC milling machine to send a machining instruction according to the execution context;
[0053] It should be noted that the three-dimensional cutting model needs to be calculated based on the three-dimensional space model of the cutter head in a rotating state; wherein the three-dimensional cutting model is obtained by performing a difference operation between the three-dimensional polyhedron of the workpiece and the three-dimensional space complex, the three-dimensional polyhedron of the workpiece is the three-dimensional polyhedron of the workpiece in the current space coordinates, and the three-dimensional space complex is the three-dimensional space complex formed by the path traveled by the cutter head under the control of the processing instructions.
[0054] (1) When the machining instruction is a linear interpolation instruction, the three-dimensional cutting model is calculated according to the current three-dimensional coordinate data before the linear interpolation instruction is executed and the target coordinate data given by the machining instruction;
[0055] Accordingly, accurate three-dimensional cutting of the workpiece is completed to form a cutting result, and the cutting result stops at the cutoff three-dimensional coordinate position given by the processing instruction.
[0056] The middle part of the three-dimensional cutting model trajectory generated by the linear interpolation instruction forms a cutting surface body, and the two ends of the cutting body are the unshielded parts of the three-dimensional model of the cutting head rotation; taking the cutting end point as an example, the workpiece will appear as a cylindrical arc body.
[0057] (2) When the machining instruction is an arc interpolation instruction, the center coordinates, radius and start and end angles of the three-dimensional space trajectory are calculated based on the current three-dimensional coordinate data before the arc interpolation instruction is executed, the target coordinate data given by the machining instruction, the selected machining plane and arc parameters to construct a three-dimensional cutting model.
[0058] Accordingly, circular arc cutting is performed in a clockwise or counterclockwise direction to form a cutting effect, and stops at the cutoff three-dimensional coordinate position given by the instruction;
[0059] The three-dimensional cutting model generated by the circular interpolation instruction refers to: a complex of a three-dimensional model of a tool head in a rotating state when the tool head moves along an arc trajectory; wherein the starting point and the end point are represented by the unobstructed part of the cylindrical side of the polyhedron when the tool head rotates, and the bottom end of the Z axis of the tool on the processing body side represents a plane or arc polyhedron with the tool tip shape superimposed at different angles under the trajectory in the rotating state;
[0060] Furthermore, since different processing instructions perform 3D cutting with different complexities, the 3D cutting model generation process takes different amounts of time. Even different parameters of the same processing instruction have the above-mentioned calculation differences, so the cutting calculation can be performed simultaneously with step S104.
[0061] S104, calculating the execution time of the machining instruction sent by the three-axis CNC milling machine according to the execution context;
[0062] (1) When the machining instruction is a linear interpolation instruction, the step of calculating the execution time of the machining instruction sent by the three-axis CNC milling machine according to the execution context includes:
[0063] (1.1) according to the processing instruction, the trajectory and distance between the start and end nodes in the three-dimensional space trajectory are calculated, the trajectory is used as the basis for moving the mobile tool to rotate the three-dimensional model to generate a composite model of the tool rotation model, and the distance is used as the process path length;
[0064] According to the processing instruction, the starting and ending nodes in the three-dimensional space trajectory are calculated, and the connection line of the starting and ending nodes is used as the process path (i.e., trajectory) of the processing instruction. According to the process path and the tool rotation model, the processing instruction moves from the starting point to the end point to form a composite body model, and the composite body model is the cutting body model of the processing instruction;
[0065] (1.2) Calculate the execution time based on the process path length, feeding method and feeding rate.
[0066] (2) When the machining instruction is a circular interpolation instruction, the step of calculating the execution time of the machining instruction sent by the three-axis CNC milling machine according to the execution context includes:
[0067] (2.1) Calculate the center coordinates and radius of the three-dimensional trajectory according to the processing plane selected by the execution context;
[0068] (2.2) According to the processing instructions, calculate the starting and ending angles of the starting and ending points relative to the center of the circle;
[0069] Specifically, according to the clockwise or counterclockwise direction given by the machining instruction and the superior arc or inferior arc determined by the parameters, the starting and ending angles (i.e., the starting angle and the ending angle) of the starting point and the end point relative to the center of the circle are calculated;
[0070] (2.3) calculating an arc trajectory according to the coordinates of the center of the circle, the radius, and the start and end angles, and using the arc trajectory as a basis for moving the three-dimensional model of the mobile tool rotation to generate a composite model of the tool rotation model;
[0071] According to the center coordinates, radius, start and end angles and tool rotation model, a process path (i.e., arc trajectory) of the processing instruction from a single movement is generated, and according to the process path and tool rotation model, a composite body model of the processing instruction moving from the starting point to the end point is generated, and the composite body model is a single cutting body model of the processing instruction;
[0072] (2.4) According to the processing instruction, calculate the number of round trips corresponding to the execution of the processing instruction;
[0073] (2.5) Calculate the arc length of a single path based on the coordinates of the center, radius, and start and end angles;
[0074] (2.6) generating a cutting complex model for each cutting of the machining instruction according to the number of round trips and the depth of each progressive step, passing and calculating the cutting complex models for multiple times in three-dimensional space to obtain a three-dimensional cutting model of the instruction;
[0075] (2.7) According to the single arc length and the number of round trips, the total length of the three-dimensional trajectory is calculated, and the total length is used as the process path length;
[0076] (2.8) Calculate the execution time based on the process path length, feeding method and feeding rate.
[0077] Accordingly, after the execution process sends instructions to the 3D digital twin model by the three-axis CNC milling machine, it is executed immediately after calculation. Since the path calculation in the microcomputer system takes a very short time, it can be ignored in the operating time of the mechanical equipment.
[0078] S105, executing the process according to the three-dimensional cutting model and the execution time, performing a difference operation between the current workpiece model and the three-dimensional cutting model to generate a cutting result and update the display.
[0079] Specifically, the cutting rhythm can be executed according to the cutting instructions of the three-axis CNC milling machine, and the process can be executed according to the three-dimensional cutting model and execution time to obtain the cutting result of the workpiece, thereby realizing the homomorphic synchronization of the three-axis CNC milling machine and the three-dimensional digital twin model in the three-dimensional space coordinate system in terms of three-dimensional cutting model, execution time, and cutting result.
[0080] In most cases, the execution time of the processing instructions executed by the three-axis CNC milling machine is longer than the execution time of the processing instructions of the three-dimensional digital twin model; and the complexity of the arc interpolation instructions is relatively high. In a few cases, the cutting calculation time is longer than the cutting time of the three-axis CNC milling machine. Therefore, in order to ensure homomorphic synchronization, it is necessary to realize two-way beat synchronization control between the three-axis CNC milling machine and the three-dimensional digital twin model. At the same time, for processing instructions with high computational complexity and long execution time, the process action and the three-dimensional cutting model can be decomposed and implemented step by step, thereby increasing the further synchronization of the cutting process and the cutting effect; when the computing power is sufficient, this step can be fully subdivided to achieve near real-time homomorphic synchronization.
[0081] Therefore, implementing the present invention has the following beneficial effects:
[0082] 1. Based on the digital twin technology solution based on process action synchronization, the present invention equivalently realizes the functions of each processing instruction of a three-axis CNC milling machine in the three-dimensional digital space of a computer system, and can realize the same processing process and results in the digital twin, solving the problem of the same production and processing time of the digital twin of the CNC machine tool;
[0083] 2. The present invention realizes the tool instruction-level homomorphic digital twin of the three-axis CNC milling machine, which plays a good auxiliary role in the homogeneous analysis of equipment design, adjustment and testing, data collection and equivalent reproduction of key components of equipment operation for CNC milling machine equipment manufacturers. It displays various operating data in the form of intuitive three-dimensional models, solving the problem of lack of intuitive visualization in equipment design and manufacturing.
[0084] 3. The digital twin isomorphic body of the three-axis CNC milling machine realized by the present invention enables both production and manufacturing debugging personnel and education and training personnel to observe the spatial change state of CNC code operation, CNC instruction operation state, cutting effect, etc. from the three-dimensional digital space, which enhances the sense of presence and greatly improves the understanding of the phenomena and execution mechanisms of equipment installation and debugging, practical training and operation. Different from the spatial observation of traditional physical machinery, the cognitive sense is enhanced from the three-dimensional space vision.
[0085] Correspondingly, the present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and is characterized in that when the processor executes the computer program, the steps of the above-mentioned three-axis CNC milling machine processing digital twin homomorphic method are implemented. At the same time, the present invention also discloses a computer-readable storage medium, on which a computer program is stored, and is characterized in that when the computer program is executed by the processor, the steps of the above-mentioned three-axis CNC milling machine processing digital twin homomorphic method are implemented.
[0086] Therefore, by constructing a digital twin homomorphic body of a CNC milling machine through the present invention, it will be beneficial to centralized control in an environment with a large installed capacity, thereby reducing the investment in human resources; using the digital twin homomorphic technology of the processing technology to verify the processing plan in advance will greatly shorten the verification cycle of the processing code and save manpower and material costs; using this technology, a large amount of digital basis will be provided for equipment design evaluation, equipment operation fault analysis and diagnosis, thereby achieving rapid and accurate fault positioning and extending the effective working life of the equipment; the present invention can provide an effective digital basis for the energy efficiency of equipment operation, thereby providing effective technical support for improving the energy efficiency of equipment operation.
[0087] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A digital twin homomorphic method for three-axis CNC milling machine processing technology, characterized in that: include: Constructing a three-dimensional digital twin model of a three-axis CNC milling machine, wherein the working condition information of the three-axis CNC milling machine is synchronized with the working condition information of the three-dimensional digital twin model; the working condition information includes spatial coordinates, tool assembly parameters, workpiece configuration parameters, tool rotation conditions, coolant injection conditions, and mobile operation control conditions; An execution context storage and synchronous update mechanism of the machining instructions is constructed in the three-dimensional digital twin model; the execution context includes tool setting data, three-dimensional coordinate data, machining instructions, machining instruction parameters, coordinate mode, machining plane, workpiece coordinate system, feed mode and feed rate; Calculating a three-dimensional cutting model for sending a machining instruction by the three-axis CNC milling machine according to the execution context; Calculate the execution time of the machining instruction sent by the three-axis CNC milling machine according to the execution context; According to the three-dimensional cutting model and the execution time, the process is executed, and the current workpiece model and the three-dimensional cutting model are subjected to difference operation to generate a cutting result and update the display. The specific steps include: according to the cutting instruction execution rhythm of the three-axis CNC milling machine, the three-dimensional cutting model and the execution time, the process is executed, and the current workpiece model and the three-dimensional cutting model are subjected to difference operation to generate a cutting result; wherein, the three-axis CNC milling machine and the three-dimensional digital twin model are synchronized in a homomorphic manner in terms of the three-dimensional cutting model, execution time and cutting result; When the machining instruction is a linear interpolation instruction, the step of calculating the execution time of the machining instruction sent by the three-axis CNC milling machine according to the execution context includes: calculating the trajectory and distance between the start and end nodes in the three-dimensional space trajectory according to the machining instruction, using the trajectory as a basis for moving the three-dimensional model of the mobile tool rotation to generate a composite model of the tool rotation model, and using the distance as the process path length; calculating the execution time according to the process path length, the feeding mode and the feeding rate; When the machining instruction is an arc interpolation instruction, the step of calculating the execution time of the machining instruction sent by the three-axis CNC milling machine according to the execution context includes: calculating the center coordinates and radius of the three-dimensional space trajectory according to the execution context; calculating the start and end angles of the starting point and the end point relative to the center of the circle according to the machining instruction; calculating the arc trajectory according to the center coordinates, radius and start and end angles, and using the arc trajectory as a basis for the movement of the mobile tool rotating three-dimensional model to generate a composite model of the tool rotation model; calculating the number of round trips corresponding to the execution of the machining instruction according to the machining instruction; calculating the single arc length of a single path according to the center coordinates, radius and start and end angles; generating the composite model of each cutting of the machining instruction according to the number of round trips and the progressive depth of each time, and passing and calculating the multiple cutting composite models in the three-dimensional space to obtain the three-dimensional cutting model of the instruction; calculating the total length of the three-dimensional space trajectory according to the single arc length and the number of round trips, and using the total length as the process path length; calculating the execution time according to the process path length, feeding mode and feed rate.
2. The three-axis CNC milling machine processing digital twin homomorphic method according to claim 1, characterized in that: The steps of constructing a three-dimensional digital twin model of a three-axis CNC milling machine include: Performing three-dimensional digital modeling on the three-axis CNC milling machine to generate a three-dimensional digital twin model; Establish communication between the three-axis CNC milling machine and the three-dimensional digital twin model to synchronize the working condition information of the three-axis CNC milling machine with the working condition information of the three-dimensional digital twin model.
3. The three-axis CNC milling machine processing digital twin homomorphic method according to claim 1, characterized in that: The step of constructing an execution context storage and synchronous update mechanism for processing instructions in the three-dimensional digital twin model includes: said constructing an execution context of a machining instruction in said three-dimensional digital twin model; The execution context is stored and synchronously updated.
4. The three-axis CNC milling machine processing digital twin homomorphic method according to claim 1, characterized in that: The step of calculating the three-dimensional cutting model for the three-axis CNC milling machine to send a machining instruction according to the execution context comprises: When the machining instruction is a linear interpolation instruction, a three-dimensional cutting model is calculated according to the current three-dimensional coordinate data and the target coordinate data given by the machining instruction; When the machining instruction is an arc interpolation instruction, the center coordinates, radius and start and end angles of the three-dimensional space trajectory are calculated according to the current three-dimensional coordinate data, the target coordinate data given by the machining instruction, the machining plane and the arc parameters to construct a three-dimensional cutting model.
5. The three-axis CNC milling machine processing digital twin homomorphic method according to claim 1 or 4, characterized in that: The three-dimensional cutting model is obtained by performing a difference operation between a three-dimensional polyhedron and a three-dimensional space complex, wherein the three-dimensional polyhedron is the three-dimensional polyhedron of the workpiece in the current space coordinates, and the three-dimensional space complex is the three-dimensional space complex formed by the path traveled by the tool head under the control of the processing instructions.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Operation energy consumption monitoring system for digital twin numerical control machine tool
CN115562167A
Digital twinning-based production line data mapping and fusion system and method
CN115857439A