Numerical control machining optimization method and device, electronic equipment and readable storage medium

By acquiring and analyzing information from CNC machining centers, machining programs can be optimized in real time, solving the problem of existing technologies being unable to cope with complex changes and improving machining efficiency and quality.

CN121578751APending Publication Date: 2026-02-27HONGFUJIN PRECISION ELECTRONICS ZHENGZHOU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511453260.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-11
Publication Date
2026-02-27

AI Technical Summary

Technical Problem

Existing CNC machining program debugging methods are unable to cope with complex and uncertain machining changes, causing some machine tools to remain in the sub-efficiency range for a long time, affecting the machining quality and efficiency of the workpieces, and limited manpower makes it impossible to carry out customized optimization.

Method used

By acquiring equipment and program information from multiple machining stations, the target machine station is determined, the machining program file is acquired in real time for simulation and searching, the target program segment is marked, and speed-up processing is performed based on optimization parameters to generate an optimized machining program file.

Benefits of technology

It achieves a significant improvement in processing efficiency, a reduction in single-piece processing time, an increase in equipment utilization, and an improvement in the processing quality and efficiency of each machine without changing the processing quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121578751A_ABST
    Figure CN121578751A_ABST
Patent Text Reader

Abstract

The invention provides a numerical control machining optimization method and device, electronic equipment and a readable storage medium, and the numerical control machining optimization method comprises the steps: obtaining machining information which comprises equipment information and program information of a plurality of machining machines; in response to an optimization instruction of a user, determining a target machine table from the plurality of processing machine tables, and determining optimization parameters of the target machine table; according to the equipment information and the program information of the target machine table, a machining program file of the target machine table is obtained in real time, the machining program file is simulated and searched, and a target program segment in the machining program file is marked; and based on the optimization parameters, performing speed-up processing on the target program segment to obtain an optimized processing program file. The processing program of the target machine table is specifically optimized in real time according to the processing information of the target machine table, production changes can be quickly responded, and the processing quality and the processing efficiency of each machine table are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of CNC machining technology, specifically to a CNC machining optimization method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] With the development of intelligent manufacturing, CNC (Computerized Numerical Control) machining has become a core process for mass production of precision parts. CNC machining is a technology that uses computer-controlled digital information to control the movement of machine tools and the machining process, replacing the traditional manual operation of machine tools. However, in actual production, due to the influence of factors such as material properties, workpiece shape, and tool wear, it is necessary to continuously adjust the CNC machining program to reduce the impact of these factors.

[0003] Currently, the production line primarily relies on manual experience to adjust the machining parameters of individual machines. These adjusted parameters are then used as calibration parameters and batch-copied to all machines to debug the CNC machining programs for all machines. However, as CNC machining conditions become increasingly complex, manual experience is insufficient to handle complex and unpredictable machining variations. Furthermore, limited labor resources prevent customized optimization for each machine, causing some machines to operate in a sub-efficient range for extended periods, impacting both workpiece machining quality and efficiency. Summary of the Invention

[0004] In view of the above, it is necessary to propose a CNC machining optimization method, device, electronic equipment and readable storage medium to solve the technical problem that the existing CNC machining program debugging methods are unable to cope with complex and uncertain machining changes, and the limited human resources make it impossible to perform customized optimization for each machine tool, resulting in some machine tools being in the sub-efficiency range for a long time, affecting the machining quality and efficiency of the workpiece.

[0005] In a first aspect, this application provides a CNC machining optimization method, the method comprising: acquiring machining information, the machining information including equipment information and program information of multiple machining stations; responding to an optimization command from a user, determining a target machine station from the multiple machining stations, and determining optimization parameters for the target machine station; acquiring the machining program file of the target machine station in real time based on the equipment information and program information of the target machine station, and simulating and searching the machining program file to mark the target program segment in the machining program file; and performing speed-up processing on the target program segment based on the optimization parameters to obtain an optimized machining program file.

[0006] In the CNC machining optimization method of this application embodiment, machining information is first acquired, including equipment information and program information of multiple machining stations, realizing comprehensive digital management of machining resources and providing basic data support for subsequent optimization. Next, in response to the user's optimization command, a target machining station is identified from the multiple machining stations, and the optimization parameters of the target machine station are determined, achieving precise positioning of the optimization station and quantification of the optimization target, providing a clear direction for subsequent program optimization. Then, based on the equipment and program information of the target machine station, the machining program file of the target machine station is acquired in real time, and the machining program file is simulated and searched to mark the target program segment in the machining program file, avoiding trial-and-error costs in actual machining and improving the safety and accuracy of optimization. Finally, based on the optimization parameters, the target program segment is speed-up processed to obtain the optimized machining program file, achieving a significant improvement in machining efficiency, shortening the single-piece machining time, and increasing equipment utilization without changing the machining quality. Based on this, this application integrates data-driven processing, simulation verification, and intelligent optimization to optimize the processing program of the target machine in real time according to the processing information of the target machine. This enables rapid response to production changes and improves the processing quality and efficiency of each machine.

[0007] In some embodiments of this application, the target program segment includes an empty-cut program segment and / or a low-load program segment. The step of simulating and searching the machining program file to mark the target program segment includes: establishing a three-dimensional simulation model based on the equipment information of the target machine; running the machining program file using the three-dimensional simulation model to obtain simulated machining information; determining the target program segment based on the simulated machining information, and marking the target program segment.

[0008] In some embodiments of this application, the speed-up process for the target program segment includes: gradually increasing the feed rate of the target program segment based on a preset speed-up rule.

[0009] In some embodiments of this application, the equipment information is associated with the machining program file, and the method further includes: sending the optimized machining program file back to the target machine based on the equipment information of the target machine.

[0010] In some embodiments of this application, the method further includes: controlling the target machine to process the workpiece based on the optimized machining program file to obtain the processed workpiece; performing quality inspection on the processed workpiece and determining whether the processed workpiece meets the production standards; if the processed workpiece meets the production standards, continuing to optimize the optimized machining program file.

[0011] In some embodiments of this application, the method further includes: obtaining a first processing time for the target machine to process the workpiece based on the processing program file; obtaining a second processing time for the target machine to process the workpiece based on the optimized processing program file; and determining the speed-up benefit of the target machine based on the first processing time and the second processing time.

[0012] In some embodiments of this application, the step of obtaining the processing program file of the target machine in real time based on the device information and program information of the target machine includes: testing the network connection status of the target machine; if the network connection status is a normal connection status, obtaining the processing program file of the target machine in real time based on the device information and program information of the target machine; if the network connection status is an abnormal connection status, sending the device information of the target machine and the network connection abnormality information to the terminal device.

[0013] Secondly, this application also provides a CNC machining optimization device, the device comprising: an acquisition module for acquiring machining information, the machining information including equipment information and program information of multiple machining stations; a determination module for determining a target machine station from the multiple machining stations in response to an optimization command from a user, and determining optimization parameters of the target machine station; a marking module for acquiring the machining program file of the target machine station in real time based on the equipment information and program information of the target machine station, simulating and searching the machining program file, and marking the target program segment in the machining program file; and an optimization module for speeding up the target program segment based on the optimization parameters to obtain an optimized machining program file.

[0014] Thirdly, this application also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the CNC machining optimization method described in the above embodiments.

[0015] Fourthly, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the CNC machining optimization method described in the above embodiments.

[0016] Understandably, the CNC machining optimization device of the second aspect, the electronic device of the third aspect, and the computer-readable storage medium of the fourth aspect all correspond to the CNC machining optimization method of the first aspect. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding CNC machining optimization methods provided above, and will not be repeated here. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating a CNC machining optimization method provided in an embodiment of this application.

[0018] Figure 2 This is a schematic diagram of the tool path of the target device provided in an embodiment of this application.

[0019] Figure 3 This is a flowchart illustrating a CNC machining optimization method provided in another embodiment of this application.

[0020] Figure 4 This is a schematic diagram of the functional modules of a CNC machining optimization device provided in an embodiment of this application.

[0021] Figure 5 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.

[0022] Component Symbol Explanation Electronic devices 10 Memory 11 Processor 12 CNC machining optimization device 100 Get Module 110 Determine module 120 Marking module 130 Optimization Module 140 The following detailed description, in conjunction with the accompanying drawings, will further illustrate this application. Detailed Implementation

[0023] To make the technical problems, technical solutions, and beneficial effects solved by this application clearer, the following detailed description is provided in conjunction with embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0024] To provide a clearer understanding of the embodiments of the present invention, the invention will be described in detail below with reference to the accompanying drawings and specific examples. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0025] Please see Figure 1 This is a flowchart illustrating a CNC machining optimization method provided in an embodiment of this application.

[0026] The CNC machining optimization method described in this application can be applied to... Figure 3In the one or more electronic devices 10 shown, electronic device 10 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0027] Specifically, the CNC machining optimization method includes the following steps. Depending on different needs, the order of some steps in the flowchart can be changed, and some steps can be omitted.

[0028] S10: Obtain processing information, which includes equipment information and program information for multiple processing machines.

[0029] The equipment information includes, but is not limited to, control number, equipment name, equipment brand, equipment model, region, building-floor location, connected device, workpiece name, machining fixture, and IP address. Each machine's IP address is unique and is associated with its control number, equipment name, brand, model, region, building-floor location, connected device, workpiece name, and machining fixture.

[0030] Program information includes, but is not limited to, workpiece name, machining clamping position, correction program name, tool life program name, program storage path, detection time interval, alarm text program, defect details program, inspection macro variables, values, in-machine inspection return macro variables, and setup time.

[0031] S20: In response to the user's optimization command, determine the target machine from multiple processing machines and determine the optimization parameters of the target machine.

[0032] The user's optimization instructions include user selection information and optimization parameters. Specifically, the user can select the control number, equipment model, machining clamping position, and building / floor of the machine to be optimized through the human-machine interface, and select the version of the machining program to be optimized, i.e., the creation time of the machining program. The electronic device 10 matches the user-selected control number, equipment model, machining clamping position, and building / floor with the basic equipment information, and identifies the machine that matches the selected information as the target machine. Furthermore, the user can also input optimization parameters for the target machine through the human-machine interface, such as spindle load percentage, maximum magnification, minimum magnification, empty cutting magnification, finish section optimization switch, and finish section magnification.

[0033] S30: Based on the equipment information and program information of the target machine, obtain the machining program file of the target machine in real time, and perform simulation and search on the machining program file to mark the target program segment in the machining program file.

[0034] Specifically, the electronic device 10 pre-associates the program information and equipment information of each machine tool based on the name of the workpiece to be processed and the processing clamping position. Then, based on the equipment information of the target machine tool, it associates the path where the program is stored from the program information and obtains the processing program file of the target machine tool based on the path where the program is stored.

[0035] Furthermore, the specific steps for simulating and searching the machining program file and marking the target program segment include: establishing a three-dimensional simulation model based on the equipment information of the target machine; running the machining program file using the three-dimensional simulation model to obtain simulated machining information; determining the target program segment based on the simulated machining information, and marking the target program segment.

[0036] The equipment information includes, but is not limited to, the mechanical structure, motion characteristics, functional components, and control logic of the target machine.

[0037] Specifically, a 3D simulation model is built using industrial-grade simulation software (such as Vericut, UG NX, etc.). The tool and feed rate are then configured according to the machining information. The machining program file is run to obtain the simulated machining information, such as tool path, dimensional deviation, spindle load, etc. The corresponding program line number, i.e. the target program segment, is located according to preset rules and combined with the simulated machining information. The target program segment is marked by color highlighting or annotation to provide a data basis for subsequent program optimization.

[0038] In some embodiments of this application, the target program segment includes an idle cutting program segment and / or a low-load program segment. An idle cutting program segment refers to the part of the machining program file where the tool does not contact the workpiece and does not perform actual machining, only performing rapid idle movements. A low-load program segment refers to the part of the machining program file where the tool contacts the workpiece and performs actual machining, but the machining difficulty is low and the load power on the spindle is low.

[0039] Specifically, the calculation steps for the spindle load power are as follows: First, calculate the spindle cutting force: Fc = CFc × Ap × Ae × Fz × Z × Vc (unit: N), where CFc is the material coefficient, generally 70~150 for aluminum, usually CFc=100 (constant), Ap is the Z-axis cutting depth MM (obtained by program simulation), Ae is the XY-axis cutting width MM (obtained by program simulation), Fz is the feed per tooth MM (provided by the tool manufacturer), Z is the number of tool teeth (known data), and Vc is the cutting speed (πXDXS / 1000); Next, calculate the spindle torque: T = Fc XD / 2000 (unit: N·m), where Fc is the spindle cutting force and D is the tool diameter (known data); Finally, calculate the spindle load power: I = T / Kt (unit: N·m / A), where Kt is the motor torque constant (known data).

[0040] Furthermore, a load curve is generated based on the Zhuzhou load power at each point, and machining program segments below the target speed-up line are marked as low load program segments.

[0041] S40: Based on the optimization parameters, the target program segment is processed to speed up the process and obtain the optimized machining program file.

[0042] Specifically, speeding up the target program segment includes: gradually increasing the feed rate of the target program segment, i.e., the feed F value, based on preset speed-up rules.

[0043] For example, the process of speeding up low-load program segments is as follows: (Combined with...) Figure 2 As shown in the toolpath diagram, toolpath 2 has no material left after the previous cutting. When toolpath 4 crosses toolpath 2 and moves towards toolpath 5, the simulation shows that the spindle load power is lower than the target speed increase line. The feed F value is gradually increased from F4000 to F4550, F5375, F9075, and F19990. After the speed increase is completed, it is gradually restored to F14925, F4150, and finally to the normal machining speed of F4000.

[0044] It should be noted that the implementation function of the CNC machining optimization method of this application can be integrated into the artificial intelligence algorithm model, thereby utilizing the powerful computing power of the artificial intelligence algorithm model to perform targeted automatic optimization on the machining program file of each machine tool, so as to achieve the best performance ratio of each machine tool.

[0045] In the above embodiments, processing information is first acquired, including equipment and program information for multiple processing machines, enabling comprehensive digital management of processing resources and providing basic data support for subsequent optimization. Next, in response to user optimization commands, a target machine is identified from the multiple processing machines, and its optimization parameters are determined, achieving precise positioning of the optimized machine and quantification of the optimization target, providing a clear direction for subsequent program optimization. Then, based on the target machine's equipment and program information, the processing program file for the target machine is acquired in real time, and the processing program file is simulated and searched to mark the target program segment, avoiding trial-and-error costs in actual processing and improving the safety and accuracy of optimization. Finally, based on the optimization parameters, the target program segment is speed-up processed to obtain the optimized processing program file, achieving a significant improvement in processing efficiency, shortening the processing time per piece, and increasing equipment utilization without changing processing quality. Based on this, this application, through the integration of data-driven, simulation verification, and intelligent optimization, performs targeted optimization of the processing program of the target machine in real time based on the processing information of the target machine, enabling rapid response to production changes and improving the processing quality and efficiency of each machine. Furthermore, by speeding up the empty cutting program segment and / or low-load program segment, the optimized program file shortens the single-piece processing cycle, significantly improves processing efficiency without changing the processing quality, shortens the processing time of a single workpiece, and improves equipment utilization.

[0046] Please see Figure 3 This is a flowchart illustrating a numerical control machining optimization method provided in another embodiment of this application.

[0047] Specifically, the CNC machining optimization method includes the following steps. Depending on different needs, the order of some steps in the flowchart can be changed, and some steps can be omitted.

[0048] S100: Obtain processing information, which includes equipment information and program information for multiple processing machines.

[0049] It should be noted that the specific implementation process of step S100 is the same as that of step S10, and will not be repeated here to avoid repetition.

[0050] S200: In response to the user's optimization command, the target machine is determined from multiple processing machines, and the optimization parameters of the target machine are determined.

[0051] It should be noted that the specific implementation process of step S200 is the same as that of step S20, and will not be repeated here to avoid duplication.

[0052] S300: Test the network connection status of the target machine and determine whether the network connection status is a normal connection status.

[0053] In some embodiments of this application, when the network connection status is normal, it indicates that there is a basis for realizing CNC machining optimization, and the electronic device 10 continues to execute step S400.

[0054] In some embodiments of this application, when the network connection status is normal, it indicates that there is currently no basis for realizing CNC machining optimization, and the electronic device 10 continues to execute step S500.

[0055] S400: Based on the equipment and program information of the target machine, obtain the machining program file of the target machine in real time.

[0056] It should be noted that the specific implementation process of step S400 is the same as that of step S30, and will not be repeated here to avoid duplication.

[0057] S500: Sends the target machine's equipment information and network connection anomaly information to the terminal device.

[0058] The terminal devices can be computer equipment, smartphones, or other devices belonging to speed-up engineers, IT departments, or equipment maintenance departments.

[0059] Specifically, electronic device 10 can send the target device's equipment information and network connection anomaly information to the terminal device via email.

[0060] S600: Simulates and searches the machining program file, and marks the target program segment in the machining program file.

[0061] It should be noted that the specific implementation process of step S600 is the same as that of step S30, and will not be repeated here to avoid duplication.

[0062] S700: Based on optimized parameters, the target program segment is processed to speed up the process and obtain an optimized machining program file.

[0063] It should be noted that the specific implementation process of step S700 is the same as that of step S40, and will not be repeated here to avoid repetition.

[0064] In some embodiments of this application, the CNC machining optimization method further includes: S800: Based on the equipment information of the target machine, the optimized machining program file is sent back to the target machine.

[0065] Specifically, since the equipment information is associated with the program information, the electronic device 10 can obtain the IP address of the target machine from the equipment information through the processing program file in the program information, and then send the optimized processing program file back to the target machine based on the IP address of the target machine.

[0066] In the above embodiments, the optimized machining program file is sent back to each machine based on the IP address of each machine, so that each machine can perform customized optimization based on the corresponding optimized machining program file, thereby further improving the machining quality and efficiency of the workpiece.

[0067] In some embodiments of this application, the CNC machining optimization method further includes: S900: Controls the target machine to process the workpiece based on the optimized machining program file, and obtains the processed workpiece.

[0068] It should be noted that the workpiece processed here is the same workpiece as the one processed before optimization.

[0069] S1000: Perform quality inspection on the processed workpiece and determine whether the processed workpiece meets the production standards.

[0070] In some embodiments of this application, when the processed workpiece meets the production standards, it indicates that the processing program file can be further optimized, and the electronic device 10 returns to the execution step S700.

[0071] Specifically, the machining information also includes a tool usage status sheet, a machining program sheet, and a comparison table of inspection dimensions and program tools. The tool usage status sheet includes, but is not limited to, the name of the workpiece being machined, the machining clamping position, the applicable machine model, the machining content, the tool number, the tool serial number and specifications, the tool type, the tool material, the tool manufacturer, and the tool life. The machining program sheet includes, but is not limited to, the machining content, the program name, the tool number, the tool specifications, the spindle speed, the feed rate, the coordinate system, the tool extension, and the tool holder model. The comparison table of inspection dimensions and program tools includes, but is not limited to, the name of the workpiece being machined, the machining clamping position, the applicable machine model, the dimension number, the tool serial number and specifications, the inspection method, the program number, the machining N-segment, the tool number, the tool manufacturer, and the tool life.

[0072] Furthermore, when the processed workpiece meets the production standards, the corresponding program number and processing N segments are automatically found based on the workpiece's size number, combined with the tool usage status table, machining program sheet, inspection dimensions and program tool comparison table. The target program segment is then determined and adjusted again based on the found program number and processing N segments.

[0073] In some embodiments of this application, when the processed workpiece does not meet the production standards, it indicates that the processing program file can no longer be optimized, and the optimization of the target equipment is terminated.

[0074] In the above embodiments, the machining program file is continuously accelerated based on the quality of the processed workpiece until the processed workpiece does not meet the production standards, at which point the acceleration ends, so that the machining program file reaches its optimal state and the best performance ratio of a single machine is achieved.

[0075] In some embodiments of this application, the CNC machining optimization method further includes: obtaining a first machining time for the target machine to process the workpiece based on the machining program file; obtaining a second machining time for the target machine to process the workpiece based on the optimized machining program file; and determining the speed-up benefit of the target machine based on the first machining time and the second machining time.

[0076] Specifically, the program file of the target machine is associated with the processing time. Therefore, the electronic device 10 can obtain the first processing time and the second processing time respectively, and further calculate the speed-up benefit. Speed-up benefit = (first processing time - second processing time) / first processing time.

[0077] In the above embodiments, the speed-up benefits of the target machine are calculated in real time during the optimization of the machining program, so that users can clearly understand the optimization effect of the machining program, which helps to optimize the target machine more stably, thereby achieving the best performance ratio of a single machine.

[0078] Please see Figure 4 This is a schematic diagram of the functional modules of a CNC machining optimization device 100 provided in an embodiment of this application.

[0079] In this embodiment, based on the above... Figure 1 Using the same concept as the CNC machining optimization method in the illustrated embodiments, this application also provides a CNC machining optimization device 100, which can be used to execute the above-described CNC machining optimization method. For ease of explanation, the schematic diagram of the CNC machining optimization device 100 embodiment only shows the parts related to the embodiments of this application. Those skilled in the art will understand that the illustrated structure does not constitute a limitation on the CNC machining optimization device 100, and it may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0080] Specifically, the CNC machining optimization device 100 provided in this application embodiment includes an acquisition module 110, a determination module 120, a marking module 130, and an optimization module 140.

[0081] The acquisition module 110 is used to acquire processing information, which includes equipment information and program information of multiple processing machines.

[0082] The equipment information includes, but is not limited to, control number, equipment name, equipment brand, equipment model, region, building-floor location, connected device, workpiece name, machining fixture, and IP address. Each machine's IP address is unique and is associated with its control number, equipment name, brand, model, region, building-floor location, connected device, workpiece name, and machining fixture.

[0083] Program information includes, but is not limited to, workpiece name, machining clamping position, correction program name, tool life program name, program storage path, detection time interval, alarm text program, defect details program, inspection macro variables, values, in-machine inspection return macro variables, and setup time.

[0084] The determination module 120 is used to determine the target machine from multiple processing machines in response to the user's optimization instructions, and to determine the optimization parameters of the target machine.

[0085] The user's optimization instructions include user selection information and optimization parameters. Specifically, the user can select the control number, equipment model, machining clamping position, and building / floor of the machine to be optimized through the human-machine interface, and select the version of the machining program to be optimized, i.e., the creation time of the machining program. The electronic device 10 matches the user-selected control number, equipment model, machining clamping position, and building / floor with the basic equipment information, and identifies the machine that matches the selected information as the target machine. Furthermore, the user can also input optimization parameters for the target machine through the human-machine interface, such as spindle load percentage, maximum magnification, minimum magnification, empty cutting magnification, finish section optimization switch, and finish section magnification.

[0086] The marking module 130 is used to obtain the machining program file of the target machine in real time based on the equipment information and program information of the target machine, and to simulate and search the machining program file to mark the target program segment in the machining program file.

[0087] Specifically, the electronic device 10 pre-associates the program information and equipment information of each machine tool based on the name of the workpiece to be processed and the processing clamping position. Then, based on the equipment information of the target machine tool, it associates the path where the program is stored from the program information and obtains the processing program file of the target machine tool based on the path where the program is stored.

[0088] Furthermore, the specific steps for simulating and searching the machining program file and marking the target program segment include: establishing a three-dimensional simulation model based on the equipment information of the target machine; running the machining program file using the three-dimensional simulation model to obtain simulated machining information; determining the target program segment based on the simulated machining information, and marking the target program segment.

[0089] The equipment information includes, but is not limited to, the mechanical structure, motion characteristics, functional components, and control logic of the target machine.

[0090] Specifically, a 3D simulation model is built using industrial-grade simulation software (such as Vericut, UG NX, etc.). The tool and feed rate are then configured according to the machining information. The machining program file is run to obtain the simulated machining information, such as tool path, dimensional deviation, spindle load, etc. The corresponding program line number, i.e. the target program segment, is located according to preset rules and combined with the simulated machining information. The target program segment is marked by color highlighting or annotation to provide a data basis for subsequent program optimization.

[0091] In some embodiments of this application, the target program segment includes an idle cutting program segment and / or a low-load program segment. An idle cutting program segment refers to the part of the machining program file where the tool does not contact the workpiece and does not perform actual machining, only performing rapid idle movements. A low-load program segment refers to the part of the machining program file where the tool contacts the workpiece and performs actual machining, but the machining difficulty is low and the load power on the spindle is low.

[0092] Specifically, the calculation steps for the spindle load power are as follows: First, calculate the spindle cutting force: Fc = CFc × Ap × Ae × Fz × Z × Vc (unit: N), where CFc is the material coefficient, generally 70~150 for aluminum, usually CFc=100 (constant), Ap is the Z-axis cutting depth MM (obtained by program simulation), Ae is the XY-axis cutting width MM (obtained by program simulation), Fz is the feed per tooth MM (provided by the tool manufacturer), Z is the number of tool teeth (known data), and Vc is the cutting speed (πXDXS / 1000); Next, calculate the spindle torque: T = Fc XD / 2000 (unit: N·m), where Fc is the spindle cutting force and D is the tool diameter (known data); Finally, calculate the spindle load power: I = T / Kt (unit: N·m / A), where Kt is the motor torque constant (known data).

[0093] Furthermore, a load curve is generated based on the Zhuzhou load power at each point, and machining program segments below the target speed-up line are marked as low load program segments.

[0094] The optimization module 140 is used to speed up the target program segment based on the optimization parameters to obtain the optimized machining program file.

[0095] Specifically, speeding up the target program segment includes: gradually increasing the feed rate of the target program segment, i.e., the feed F value, based on preset speed-up rules.

[0096] For example, the process of speeding up low-load program segments is as follows: (Combined with...) Figure 2As shown in the toolpath diagram, toolpath 2 has no material left after the previous cutting. When toolpath 4 crosses toolpath 2 and moves towards toolpath 5, the simulation shows that the spindle load power is lower than the target speed increase line. The feed F value is gradually increased from F4000 to F4550, F5375, F9075, and F19990. After the speed increase is completed, it is gradually restored to F14925, F4150, and finally to the normal machining speed of F4000.

[0097] It should be noted that the CNC machining optimization device of this application can be integrated into the artificial intelligence algorithm model, thereby utilizing the powerful computing capabilities of the artificial intelligence algorithm model to perform targeted automatic optimization of the machining program file for each machine tool, thereby achieving the best performance ratio for each machine tool.

[0098] In the above embodiments, processing information is first acquired, including equipment and program information for multiple processing machines, enabling comprehensive digital management of processing resources and providing basic data support for subsequent optimization. Next, in response to user optimization commands, a target machine is identified from the multiple processing machines, and its optimization parameters are determined, achieving precise positioning of the optimized machine and quantification of the optimization target, providing a clear direction for subsequent program optimization. Then, based on the target machine's equipment and program information, the processing program file for the target machine is acquired in real time, and the processing program file is simulated and searched to mark the target program segment, avoiding trial-and-error costs in actual processing and improving the safety and accuracy of optimization. Finally, based on the optimization parameters, the target program segment is speed-up processed to obtain the optimized processing program file, achieving a significant improvement in processing efficiency, shortening the processing time per piece, and increasing equipment utilization without changing processing quality. Based on this, this application, through the integration of data-driven, simulation verification, and intelligent optimization, performs targeted optimization of the processing program of the target machine in real time based on the processing information of the target machine, enabling rapid response to production changes and improving the processing quality and efficiency of each machine.

[0099] Please see Figure 5 This is a schematic diagram of the hardware structure of an electronic device 10 provided in an embodiment of this application.

[0100] The electronic device 10 provided in this application includes, but is not limited to, a memory 11, a processor 12, and a computer program stored in the memory 11 and executable on the processor 12, such as a CNC machining optimization program. When the computer program is executed by the processor 12, it implements the CNC machining optimization method as described in the above embodiments.

[0101] Figure 5 Only the electronic device 10 with memory 11 and processor 12 is shown. It will be understood by those skilled in the art that... Figure 5The structure shown does not constitute a limitation on the electronic device 10, and may include fewer or more components than shown, or combine certain components, or have different component arrangements.

[0102] In some embodiments of this application, the electronic device 10 can be communicatively connected to devices such as desktop computers, laptops, handheld computers, and cloud servers.

[0103] In some embodiments of this application, the electronic device 10 can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control device.

[0104] In some embodiments of this application, the electronic device 10 may further include network devices and / or client devices. These network devices include, but are not limited to, a single network server, a server group consisting of multiple network servers, and a cloud server based on cloud computing, consisting of a large number of hosts or network servers.

[0105] In some embodiments of this application, the network where the electronic device 10 is located includes, but is not limited to, the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.

[0106] In some embodiments of this application, the memory 11 stores multiple computer-readable instructions to implement a CNC machining optimization method, and the processor 12 can execute multiple instructions to achieve: acquiring machining information, including equipment information and program information of multiple machining stations; in response to the user's optimization instructions, determining the target machine station from the multiple machining stations and determining the optimization parameters of the target machine station; acquiring the machining program file of the target machine station in real time according to the equipment information and program information of the target machine station, simulating and searching the machining program file, and marking the target program segment in the machining program file; and performing speed-up processing on the target program segment based on the optimization parameters to obtain the optimized machining program file.

[0107] Specifically, the processor 12's implementation method for the above instructions can be found in [reference needed]. Figure 1 The descriptions of the relevant steps in the corresponding embodiments are not repeated here.

[0108] Those skilled in the art will understand that the schematic diagram is merely an example of the electronic device 10 and does not constitute a limitation on the electronic device 10. The electronic device 10 can be a bus topology or a star topology. The electronic device 10 may also include more or fewer other hardware or software than shown in the diagram, or different component arrangements. For example, the electronic device 10 may also include input / output devices, network access devices, etc.

[0109] The bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, in... Figure 5 The symbol is represented by only one arrow, but this does not mean that there is only one bus or one type of bus. The bus is configured to implement communication between memory 11 and at least one processor 12, etc.

[0110] It should be noted that electronic device 10 is only an example. Other existing or future electronic products that are suitable for this application should also be included within the scope of protection of this application and are incorporated herein by reference.

[0111] In some embodiments of this application, the processor 12 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 12 is the control core of the electronic device 10, connecting various components of the electronic device 10 via various interfaces and lines. It executes programs or modules stored in the memory 11 (e.g., executing a CNC machining optimization program) and calls data stored in the memory 11 to perform various functions and process data of the electronic device 10.

[0112] The processor 12 executes the operating system of the electronic device 10 and various installed applications. The processor 12 executes these applications to implement the steps described in each of the above-described embodiments of the CNC machining optimization method, for example... Figure 1 The steps are shown.

[0113] For example, a computer program may be divided into one or more modules / units, one or more of which are stored in memory 11 and executed by processor 12 to complete this application. One or more modules / units may be a series of computer-readable instruction segments capable of performing a specific function, which describe the execution process of the computer program in electronic device 10. For example, the computer program may be divided into an acquisition module 110, a determination module 120, a marking module 130, and an optimization module 140.

[0114] The integrated unit implemented as a software functional module described above can be stored in a computer-readable storage medium. This software functional module, stored in a storage medium, includes several instructions to cause a computer device (which may be a personal computer, computer equipment, or network device, etc.) or processor to execute a portion of a CNC machining optimization method according to various embodiments of this application.

[0115] If the modules / units integrated in the electronic device 10 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware devices. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above.

[0116] Computer programs include computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. Computer-readable media can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory, and other types of memory.

[0117] This application also provides a computer-readable storage medium (not shown), which stores computer-readable instructions. These computer-readable instructions are executed by a processor in an electronic device 10 to implement a numerical control machining optimization method according to any of the above embodiments.

[0118] Specifically, computer-readable storage media can be non-volatile or volatile. Computer-readable storage media include flash memory, portable hard drives, multimedia cards, card-type memories (e.g., SD memory, DX memory, etc.), magnetic storage, magnetic disks, optical disks, etc. In some embodiments, memory 11 can be an internal storage unit of electronic device 10, such as a portable hard drive of electronic device 10. In other embodiments, memory 11 can also be an external storage device of electronic device 10, such as a plug-in portable hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on electronic device 10. Memory 11 can be used not only to store application software and various types of data installed on electronic device 10, such as the code of a CNC machining optimization program, but also to temporarily store data that has been output or will be output.

[0119] Furthermore, the computer-readable storage medium may primarily include a stored program area and a stored data area, wherein the stored program area may store the operating system, an application program required for at least one function, etc.; and the stored data area may store data created based on the use of blockchain nodes, etc.

[0120] In the embodiments of this application, it should be noted that, unless otherwise explicitly specified and limited, "multiple" means two or more.

[0121] In the embodiments of this application, it should be noted that, unless otherwise expressly specified and limited, the word "for example" is used to indicate an example, illustration, or description. Any embodiment or design scheme described as "for example" in the embodiments of this application should not be construed as being better or more advantageous than other embodiments or design schemes. Specifically, the use of the word "for example" is intended to present the relevant concepts in a specific manner.

[0122] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection, an electrical connection, or a connection that allows communication between them; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication between two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0123] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" and "second" may explicitly or implicitly include one or more features.

[0124] In the description of this application, it should be noted that, unless otherwise explicitly stated and limited, "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Furthermore, the character " / " in this application generally indicates that the preceding and following related objects have an "or" relationship.

[0125] Unless otherwise specified, all steps in this application may be performed sequentially or randomly. For example, if a method includes steps A and B, it means that the method may include steps A and B performed sequentially, or it may include steps B and A performed sequentially. For example, if a method may also include step C, it means that step C may be added to the method in any order. For example, the method may include steps A, B, and C, or it may include steps A, C, and B, or it may include steps C, A, and B, etc.

[0126] The above are merely preferred embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the protection scope of this application.

[0127] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus 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 other division methods may be used in actual implementation.

[0128] In the various embodiments of this application, the functional modules can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.

[0129] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices described in the specification may also be implemented by a single unit or device through software or hardware.

[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it. Although this application has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of this application without departing from the spirit and scope of the technical solutions of this application.

Claims

1. A method for optimizing CNC machining, characterized in that, The method includes: Acquire processing information, which includes equipment information and program information for multiple processing machines; In response to the user's optimization instructions, a target machine is determined from the plurality of processing machines, and the optimization parameters of the target machine are determined; Based on the equipment information and program information of the target machine, the machining program file of the target machine is obtained in real time, and the machining program file is simulated and searched to mark the target program segment in the machining program file; Based on the optimization parameters, the target program segment is subjected to speed-up processing to obtain an optimized processing program file.

2. The CNC machining optimization method as described in claim 1, characterized in that, The target program segment includes an idle program segment and / or a low-load program segment. The process of simulating and searching the program file to mark the target program segment includes: A three-dimensional simulation model is established based on the equipment information of the target machine. The machining program file is run using the three-dimensional simulation model to obtain simulated machining information; The target program segment is determined based on the simulation processing information, and the target program segment is marked.

3. The CNC machining optimization method as described in claim 1, characterized in that, The speed-up process for the target program segment includes: Based on preset speed-up rules, the feed rate of the target program segment is gradually increased.

4. The CNC machining optimization method as described in claim 1, characterized in that, The equipment information is associated with the processing program file, and the method further includes: Based on the equipment information of the target machine, the optimized machining program file is sent back to the target machine.

5. The CNC machining optimization method as described in claim 4, characterized in that, The method further includes: The target machine tool is controlled to process the workpiece based on the optimized machining program file to obtain the processed workpiece; The processed workpiece is subjected to quality inspection to determine whether it meets the production standards. If the processed workpiece meets the production standards, the optimized processing program file will continue to be optimized.

6. The CNC machining optimization method as described in claim 5, characterized in that, The method further includes: Obtain the first processing time for the target machine to process the workpiece based on the processing program file; Obtain the second processing time for the target machine to process the workpiece based on the optimized processing program file; Based on the first processing time and the second processing time, the speed-up benefit of the target machine is determined.

7. The CNC machining optimization method as described in claim 1, characterized in that, The step of obtaining the machining program file of the target machine in real time based on the equipment information and program information of the target machine includes: Test the network connectivity status of the target device; If the network connection status is normal, the processing program file of the target machine is obtained in real time based on the equipment information and program information of the target machine. If the network connection status is abnormal, the device information of the target machine and the network connection abnormality information are sent to the terminal device.

8. A CNC machining optimization device, applied to vehicles, characterized in that, The device includes: The acquisition module is used to acquire processing information, which includes equipment information and program information for multiple processing machines. The determination module is used to determine the target machine from the plurality of processing machines in response to the user's optimization instructions, and to determine the optimization parameters of the target machine. The marking module is used to obtain the machining program file of the target machine in real time based on the equipment information and program information of the target machine, and to simulate and search the machining program file to mark the target program segment in the machining program file. The optimization module is used to speed up the target program segment based on the optimization parameters to obtain an optimized processing program file.

9. An electronic device, characterized in that, The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the CNC machining optimization method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the CNC machining optimization method as described in any one of claims 1 to 7.