Tool path programming method and device, readable storage medium and computer program product

By obtaining the three-dimensional electrode model for feature extraction and template matching, the tool track machining program is obtained automatically, which solves the problems of low electrode processing efficiency and low accuracy in the prior art, and achieves efficient and accurate tool track programming.

CN120276725AActive Publication Date: 2025-07-08GOERTEK INC

Patent Information

Application Number
CN202510749954.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-06
Publication Date
2025-07-08
Estimated Expiration
2045-06-06

AI Technical Summary

Technical Problem

The tool rail programming of existing electrode processing is inefficient and has low accuracy, and is easily affected by human factors, making it difficult to meet the requirements of modern manufacturing for processing accuracy and complexity.

Method used

By obtaining the three-dimensional electrode model, performing feature extraction and matching the target processing strategy templates in the preset template library, the tool track processing program is automatically programmed, and feature recognition and template matching techniques are used to reduce manual intervention.

Benefits of technology

It improves the efficiency and accuracy of tool track programming, eliminates the cost of manual analysis, avoids the strategy selection bias caused by insufficient experience, and ensures the accuracy and consistency of the processing procedures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276725A_ABST
    Figure CN120276725A_ABST
Patent Text Reader

Abstract

The invention discloses a tool path programming method and device, a readable storage medium and a computer program product, and relates to the technical field of automation, and the method comprises the steps: obtaining an electrode three-dimensional model of a to-be-generated electrode; feature extraction is carried out on the electrode three-dimensional model to obtain electrode features, and the electrode features comprise one or more of a three-dimensional structure feature, a curved surface feature, a recess feature and a boundary feature; according to the electrode features, a corresponding target machining strategy template is matched in a preset template library, tool path programming is carried out according to the target machining strategy template to obtain a tool path machining program, and one or more electrode machining strategy templates are stored in the template library. According to the invention, the tool path programming efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automation technology, and in particular to a tool path programming method, device, readable storage medium and computer program product. Background Art

[0002] In modern manufacturing, the processing technology of electrical discharge machining (EDM) is highly favored because it can process high-hardness materials and complex-shaped workpieces. Due to its non-contact processing characteristics, EDM has become the core process for processing high-hardness materials and complex cavities. This technology uses pulse discharge between the electrode and the workpiece to melt and vaporize the material in a local area, thereby achieving material removal and processing. With the continuous improvement of the manufacturing industry's requirements for processing accuracy and complexity, the tool path programming of electrode processing, as a key link in EDM, has become increasingly important.

[0003] At present, tool path programming for electrode machining mainly relies on manual operation. Programmers need to manually set machining parameters, machining paths, and compensation strategies based on the electrode design drawings. Although computer-aided design software provides a visual operation interface, the selection of machining strategies still highly depends on the experience and judgment of engineers. Programmers need to manually input machining parameters, draw tool path, etc. based on the electrode design drawings, combined with their own experience and understanding of machining technology, to program tool path machining programs.

[0004] In the manual programming process, low programming efficiency is a prominent problem. Due to the complex shape of the electrode and the fine processing requirements, programmers need to spend a lot of time setting parameters and drawing tool paths. In complex electrode processing, it is easy to cause inaccurate tool path processing programs due to inconsideration or operational errors.

[0005] Therefore, how to improve the efficiency and accuracy of tool path programming has become a technical problem that needs to be solved urgently. Summary of the invention

[0006] The main purpose of this application is to provide a tool path programming method, device, readable storage medium and computer program product, aiming to solve the technical problem of how to improve the efficiency and accuracy of tool path programming.

[0007] To achieve the above object, the present application provides a tool path programming method, the tool path programming method comprising: Obtaining a three-dimensional electrode model of the electrode to be generated; Extracting features from the electrode three-dimensional model to obtain electrode features, wherein the electrode features include one or more of three-dimensional structure features, curved surface features, concave features, and boundary features; Match the corresponding target machining strategy template in a preset template library according to the electrode features, and perform tool path programming based on the target machining strategy template to obtain a tool path machining program, where the template library stores one or more electrode machining strategy templates.

[0008] In one embodiment, the step of matching the corresponding target machining strategy template in the preset template library according to the electrode features includes: Search for a target machining strategy template that matches the electrode features in the preset template library based on a preset first mapping relationship, where the first mapping relationship is the mapping relationship between different electrode features and electrode machining strategy templates; or, Construct a feature hierarchy tree based on each sub-feature in the electrode features, and match the corresponding target machining strategy template in the preset template library based on the feature hierarchy tree.

[0009] In one embodiment, the step of matching the corresponding target machining strategy template in the preset template library based on the feature hierarchy tree includes: Search for a target machining strategy template that matches the feature hierarchy tree in the preset template library based on a preset second mapping relationship, where the second mapping relationship is the mapping relationship between different feature hierarchy trees and electrode machining strategy templates; or, Obtain the basic machining processes corresponding to each sub-feature based on a preset third mapping relationship, screen available machining processes from the basic machining processes based on the feature hierarchy tree, and search for a target machining strategy template that matches the available machining processes in the preset template library based on a fourth mapping relationship, where the third mapping relationship is the mapping relationship between different feature types and machining processes, and the fourth mapping relationship is the mapping relationship between different machining processes and electrode machining strategy templates.

[0010] In one embodiment, the target machining strategy template includes at least one machining strategy and the machining paths corresponding to each machining strategy. The step of performing tool path programming based on the target machining strategy template to obtain a tool path machining program includes: Match the corresponding tool model according to the target machining strategy template, and determine machining parameters based on the tool model, the electrode features, and the target machining strategy template, where the machining parameters include one or more of a spindle speed range, a feed speed range, a cutting depth, and a tool path step pitch; Determine the path sequence of each machining path, and program and combine the machining strategies in sequence based on the path sequence and bind the machining parameters to obtain a tool path machining program.

[0011] In one embodiment, the machining strategy includes a rough machining strategy, a semi-finishing machining strategy, and a finishing machining strategy. The machining path includes a rough machining path corresponding to the rough machining strategy, a semi-finishing machining path corresponding to the semi-finishing machining strategy, and a finishing machining path corresponding to the finishing machining strategy. The step of determining the path sequence of each of the machining paths and programming and combining the machining parameters and each of the machining strategies in sequence based on the path sequence to obtain a tool path machining program includes: Program and combine the rough machining strategy, the semi-finishing machining strategy, and the finishing machining strategy based on the path sequence from the rough machining path, the semi-finishing machining path to the finishing machining path in sequence to obtain a tool path machining program.

[0012] In one implementation manner, after the step of obtaining a tool path machining program by performing tool path programming according to the target machining strategy template, the method further includes: Perform a qualification check on the tool path machining program to obtain a check result; If the check result indicates that the check passes, determine that the tool path programming is completed; If the check result indicates that the check fails, automatically modify the tool path machining program.

[0013] In one implementation manner, the step of obtaining the three-dimensional electrode model of the electrode to be generated includes: In response to a tool path programming generation task, obtain the electrode identifier of the electrode to be generated according to the tool path programming generation task; Obtain a matching three-dimensional electrode model from a preset file management system according to the electrode identifier.

[0014] In addition, to achieve the above object, the present application further provides a tool path programming device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the tool path programming method as described above is implemented.

[0015] In addition, to achieve the above object, the present application further provides a readable storage medium. The readable storage medium is a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps of the tool path programming method as described above are implemented.

[0016] The present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps of the tool path programming method as described above are implemented.

[0017] One or more technical solutions proposed by the present application have at least the following technical effects: In this application, by obtaining the three-dimensional model of the electrode to be generated, feature extraction is performed on the three-dimensional model of the electrode to obtain electrode features; according to the electrode features, the corresponding target machining strategy template is matched in a preset template library, and tool path programming is performed according to the target machining strategy template to obtain a tool path machining program, where the template library stores one or more electrode machining strategy templates. In this way, through obtaining the three-dimensional model of the electrode and performing feature extraction in the embodiment of this application, the key features of the electrode can be accurately identified, eliminating the time cost consumed by programmers manually analyzing the electrode structure and improving the feature recognition efficiency. On the basis of feature extraction, the corresponding target machining strategy template is automatically matched through the preset template library, enabling the relationship between the standardized machining strategy and the specific electrode features to be templatized based on the experience of historical machining data, so as to pre-construct the template library. By automatically matching the corresponding target machining strategy template in the template library through the extracted electrode features, the deviation in strategy selection caused by insufficient experience in manual programming is avoided, ensuring the accuracy of the tool path machining program automatically programmed based on the matching result. Moreover, the overall technical solution adopts a coherent automatic programming processing flow of feature recognition, template matching, and automatic tool path generation, without manual participation in the tool path programming process, thereby improving the tool path programming efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with this application and used together with the specification to explain the principles of this application.

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or in the prior art, the following will briefly introduce the accompanying drawings required for describing the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.

[0020] Figure 1 It is a schematic flowchart of the first embodiment of the tool path programming method of this application; Figure 2 It is a schematic diagram of the tool path programming process involved in an embodiment of the tool path programming method of this application; Figure 3 It is a schematic diagram of the electrode programming process involved in an embodiment of the tool path programming method of this application; Figure 4 It is a schematic diagram of the device structure of the tool path programming device of this application; Figure 5 It is a schematic diagram of the device structure of the hardware operating environment involved in the tool path programming method device in the embodiment of this application.

[0021] The realization of the purpose, functional features and advantages of this application will be further described in conjunction with the embodiments with reference to the accompanying drawings. Specific Embodiments

[0022] In order to make the above objects, features, and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of protection of the present invention.

[0023] Currently, the toolpath programming process mainly relies on manual operations. Although with the development of computer technology, some programming software has been widely used in the field of electrode processing, there are still some problems in the existing programming methods. For example, the manual programming process is cumbersome, time-consuming, and easily affected by human factors, resulting in inaccurate programming results and even causing processing errors. In addition, with the increase in the types of electrodes and the improvement of processing requirements, the efficiency and accuracy of manual programming can no longer meet the production needs.

[0024] The problems and disadvantages existing in the prior art mainly include: low programming efficiency, low accuracy, and being easily affected by human factors. The existence of these problems not only increases the production cost but also limits the improvement of production efficiency.

[0025] Based on this, the main solution of this application is: obtaining the three-dimensional model of the electrode to be generated, extracting the electrode features from the three-dimensional model of the electrode; matching the corresponding target processing strategy template in the preset template library according to the electrode features, and performing toolpath programming according to the target processing strategy template to obtain a toolpath processing program, where the template library stores one or more electrode processing strategy templates.

[0026] By obtaining the three-dimensional model of the electrode and performing feature extraction, the key features of the electrode can be accurately identified, eliminating the time cost consumed by programmers in manually analyzing the electrode structure and improving the feature recognition efficiency. Based on the feature extraction, the corresponding target processing strategy template is automatically matched through a preset template library, enabling the relationship between the standardized processing strategy and the specific electrode features to be templated based on the experience of historical processing data, so as to pre-construct the template library. The corresponding target processing strategy template is automatically matched in the template library through the extracted electrode features, avoiding the deviation in strategy selection caused by insufficient experience in manual programming, ensuring the accuracy of the tool path machining program automatically programmed based on the matching result, and the overall technical solution passes through the coherent automatic programming processing flow of feature recognition, template matching and automatic generation of tool paths, without manual participation in the tool path programming process, thus improving the efficiency and accuracy of tool path programming.

[0027] It should be noted that the execution subject of each embodiment of the tool path programming method of the present application can be a computing service device with data processing, network communication and program running functions, such as a server, a tablet computer, a personal computer, a mobile phone, etc., or a tool path programming device capable of implementing the above functions. Exemplarily, the server is used as the execution subject to elaborate and explain each embodiment of the tool path programming method of the present application.

[0028] Based on this, the present application proposes a tool path programming method for the first embodiment, referring to Figure 1 As shown, the tool path programming method includes: Step S10, obtaining a three-dimensional model of the electrode to be generated; This three-dimensional model of the electrode can specifically be a digital three-dimensional model of the electrode, which can be constructed by computer-aided design software or generated by reverse engineering through a three-dimensional scanning device. The model can include the geometric topology structure, dimensional tolerance annotation and surface feature parameters of the electrode (such as discharge area marks, roughness requirements).

[0029] Step S20, performing feature extraction on the three-dimensional model of the electrode to obtain electrode features, where the electrode features include one or more of a three-dimensional structure feature, a surface feature, a concave feature and a boundary feature; The electrode features may specifically include, but are not limited to, one or more of three - dimensional structural features, curved - surface features, concave features, and boundary features. Among them, the three - dimensional structural features include, but are not limited to, reinforcing platforms, stepped surfaces, bosses, etc.; the curved - surface features include, but are not limited to, spherical surfaces, cylindrical surfaces, free - form surfaces, arc surfaces, etc.; the concave features include, but are not limited to, cavities, blind holes, through - holes, keyways, etc.; and the boundary features include, but are not limited to, corners, edges, contour lines, etc. Feature extraction can be achieved through geometric - topological analysis algorithms, such as geometric - boundary recognition based on edge detection, continuous - feature segmentation based on surface fitting, and concave - region classification based on deep learning.

[0030] Step S30: Match the corresponding target machining - strategy template in the preset template library according to the electrode features, and perform tool - path programming based on the target machining - strategy template to obtain a tool - path machining program. Among them, the template library stores one or more electrode machining - strategy templates.

[0031] The preset template library is a pre - set database that stores multiple electrode machining - strategy templates. Each electrode machining - strategy template can specifically be a pre - set set of logical rules for indicating the tool - path machining process, such as a logical rule for binding the machining path and the machining strategy. For example, as an example, a certain electrode machining - strategy template can be: {Rough machining (machining path): Contour - driven milling (machining strategy); Semi - finishing machining (machining path): Equal - distribution of remaining material (machining strategy); Finishing machining (machining path): Helical interpolation or flow - line toolpath (machining strategy); Special - area machining (such as R - corners, narrow grooves) (machining path): Compensation machining (machining strategy)}.

[0032] After obtaining the target machining - strategy template through matching, perform tool - path programming based on the target machining - strategy template to obtain a tool - path machining program. This tool - path machining program can specifically be an intermediate code of parametric path instructions. For example, it can specifically be ATC (Automatic Tool Changer Code) code, G (G - Code) code, etc. After obtaining the target machining - strategy template, tool - path programming can be completed by calling computer - aided design software.

[0033] In this embodiment, by obtaining the three-dimensional model of the electrode and performing feature extraction, the key features of the electrode can be accurately identified, eliminating the time cost consumed by programmers manually analyzing the electrode structure and improving the feature recognition efficiency. On the basis of feature extraction, the corresponding target processing strategy template is automatically matched through a preset template library, enabling the relationship between the standardized processing strategy and the specific electrode features to be templatized based on the experience of historical processing data, so as to pre-construct the template library. The target processing strategy template corresponding to the extracted electrode features is automatically matched in the template library, avoiding the deviation of strategy selection caused by insufficient experience in manual programming, ensuring the accuracy of the tool path processing program automatically programmed based on the matching result, and the overall technical solution passes through the coherent automatic programming processing flow of feature recognition, template matching and automatic tool path generation, without manual participation in the tool path programming process, thus improving the tool path programming efficiency and accuracy.

[0034] Based on the first embodiment of the present application, in the second embodiment of the present application, the content that is the same as or similar to the above-mentioned first embodiment can be referred to the above introduction and will not be repeated hereinafter. On this basis, as one implementation manner, the step of matching the corresponding target processing strategy template in the preset template library according to the electrode features includes: Step A10, searching for the target processing strategy template matching the electrode features in the preset template library based on a preset first mapping relationship, where the first mapping relationship is the mapping relationship between different electrode features and electrode processing strategy templates.

[0035] This first mapping relationship can be constructed based on the feature-strategy association pattern in historical processing data. Specifically, the electrode features are decomposed into a combined form of three-dimensional structure features, surface features, concave features and boundary features, and a corresponding processing strategy template is associated with each combined form to form a mapping rule library. Exemplarily, this first mapping relationship can be {

A three-dimensional structure feature, A surface feature, A concave feature, A boundary feature maps to electrode processing strategy template 1

A three-dimensional structure feature, A surface feature, A concave feature, B boundary feature maps to electrode processing strategy template 2

A three-dimensional structure feature, A surface feature, B concave feature, A boundary feature maps to electrode processing strategy template 3

D three-dimensional structure feature, D surface feature, D concave feature, D boundary feature maps to electrode processing strategy template N

[0036] Through the accurate mapping of feature combinations and strategy templates, the strategy trial and error iteration of manual programming is reduced, and the intelligent level of process planning and the consistency of processing quality for complex electrode processing are improved.

[0037] As another implementation manner, the step of matching the corresponding target processing strategy template in the preset template library according to the electrode features includes: Step A20: Construct a feature hierarchy tree based on each sub-feature in the electrode features, and match the corresponding target processing strategy template in a preset template library based on the feature hierarchy tree.

[0038] The feature hierarchy tree is a tree-like data structure representing the subordinate relationship, processing priority, and process dependence among electrode features, which is constructed by analyzing the geometric dependence relationship and processing constraint conditions of each sub-feature. For example, as an example, the feature hierarchy tree is: {root node: three-dimensional structure feature (strengthening platform), first-level sub-node: surface feature (free surface), first-level sub-node: boundary feature (acute edge), second-level sub-node of the surface feature: concave feature (cavity)}.

[0039] Through the structured expression of the feature hierarchy tree, the geometric correlation and process dependence of electrode features are explicitly encoded, enabling the template matching process to dynamically match the processing logic template based on the logical relationship between features (such as processing sequence dependence, geometric support constraint), avoiding strategy conflicts or process redundancy caused by traditional single-feature matching, improving the adaptation accuracy of the matched processing strategy, thereby improving the rationality of the process planning and processing efficiency of complex electrodes, and reducing the rework rate caused by incorrect feature processing sequence.

[0040] Further, as one of the implementation manners, the step of matching the corresponding target processing strategy template in the preset template library based on the feature hierarchy tree includes: Step B10: Search for the target processing strategy template that matches the feature hierarchy tree in the preset template library based on a preset second mapping relationship, where the second mapping relationship is the mapping relationship between different feature hierarchy trees and electrode processing strategy templates.

[0041] The node hierarchy relationship of the feature hierarchy tree (such as the subordinate order of the parent node and the sub-node) can be traversed and compared with the feature tree structure of the strategy template in the template library to obtain the feature tree structure with the highest consistency or similarity in comparison, and determine the electrode processing strategy template corresponding to the compared feature tree structure as the target processing strategy template. For example, if it is detected that the concave feature in the feature hierarchy tree is a sub-node of the surface feature, then match the linkage strategy template that includes performing cavity processing after surface processing to ensure that the processing sequence is consistent with the subordinate relationship between features.

[0042] By matching the target machining strategy template in the template library according to the topological structure of the feature hierarchy tree, the target machining strategy template can strictly follow the subordinate order and structural relevance among electrode features. For example, when the concave feature is a child node of the surface feature, it is directly mapped to the linkage strategy template that first performs surface machining and then cavity machining, so as to ensure that the generation logic of the tool path is synchronized with the actual geometric dependency relationship of the electrode features, effectively avoiding problems such as tool interference, abnormal remaining allowance, or impaired feature machining integrity caused by misaligned machining order. At the same time, through the tree structure of the feature hierarchy tree and the automated comparison mechanism of the template hierarchy logic, the accuracy of strategy template matching and the efficiency of machining process planning can be significantly improved, reducing the dependence on manual experience and enhancing the controllability of the complex electrode machining process.

[0043] As another implementation manner, the step of matching the corresponding target machining strategy template in the preset template library based on the feature hierarchy tree includes: Step B20, obtaining the basic machining processes corresponding to each sub-feature based on a preset third mapping relationship, screening available machining processes from the basic machining processes based on the feature hierarchy tree, and searching for a target machining strategy template matching the available machining processes in the preset template library, where the third mapping relationship is the mapping relationship between different feature types and machining processes, and the fourth mapping relationship is the mapping relationship between different machining processes and electrode machining strategy templates.

[0044] The third mapping relationship is a rule table associated with the process knowledge base through feature types. For example, the rib in the three-dimensional structure feature is mapped to the contour milling process with equal height layers, the free surface in the surface feature is mapped to the parameter line planning and curvature adaptive feed process, the deep cavity in the concave feature is mapped to the layer-by-layer circular interpolation and tool radial avoidance process, the sharp edge in the boundary feature is mapped to the cycloidal milling process, etc.

[0045] The fourth mapping relationship is the binding rule between different machining processes and strategy templates. For example: if it is necessary to perform the contour milling process with equal height layers and the parameter line planning process at the same time, it is mapped to the strategy template including the linkage of three-dimensional offset rough machining and surface finish machining; if there is a combination of layer-by-layer circular interpolation and cycloidal milling processes, it is associated with the template with the integrated logic of deep cavity roughing and edge finishing.

[0046] Match the corresponding basic machining processes for each sub - feature through the third mapping relationship (e.g., rib → contour - parallel milling, free - form surface → parameter - line programming). It should be noted that each sub - feature may match multiple basic machining processes in the third mapping relationship. Thus, based on the feature - level relationship tree, select the available machining processes from all the basic machining processes. Specifically, based on the subordinate logic of the feature - level relationship tree and the process compatibility rules, select the available machining processes that are compatible with the parent - node process and the overall machining process. Exemplary, assume that for a certain sub - feature (such as a recess feature) in the feature - level relationship tree, multiple possible machining processes are matched through the third mapping relationship (e.g., cavity machining can match z - level milling, helical milling, or trochoidal milling processes). If the recess feature is a child node of a surface feature and the parent node has been matched with the parameter - line programming process, then select the cavity - machining process that is compatible with the surface - machining result. If there is a boundary feature at the same level and the cycloidal milling process has been matched, then select the cavity process that has no conflict with the cycloidal - milling tool path.

[0047] Input the process combination of the selected available machining processes (such as "parameter - line programming → z - level milling → trochoidal milling") into the fourth mapping relationship to match the target machining - strategy template in the template library that supports multi - process collaboration.

[0048] By combining the subordinate logic of the feature - level relationship tree and the process compatibility rules, screen the basic machining processes matched by the third mapping relationship to ensure that the selected available machining processes not only meet the independent machining requirements of each sub - feature but also can adapt to the structural dependency relationship between features. Further, through the fourth mapping relationship, accurately bind the ordered process combination with the multi - process collaboration strategy template in the template library, so that the operation arrangement of the machining - strategy template strictly follows the feature - level order, thereby eliminating problems such as sudden changes in machining allowance, tool interference, and deviation in feature - fitting accuracy caused by incorrect process sequence or path conflict. At the same time, reduce the subjective intervention of manual process planning through the automated screening and mapping mechanism, and significantly improve the first - pass qualification rate and process - planning efficiency of multi - feature electrode machining.

[0049] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the content that is the same as or similar to the above - mentioned first and second embodiments can be referred to the above introduction and will not be repeated hereinafter. On this basis, the target machining - strategy template includes at least one machining strategy and the machining path corresponding to each machining strategy. The step of obtaining the tool - path machining program by tool - path programming according to the target machining - strategy template includes: Step C10: Match the corresponding tool model according to the target machining strategy template, and determine the machining parameters based on the tool model, the electrode characteristics, and the target machining strategy template. Among them, the machining parameters include one or more of the spindle speed range, feed speed range, cutting depth, and tool path step pitch. This machining path is the motion trajectory planning of the tool relative to the workpiece surface during electrode machining, specifically characterized by the coordinate point sequence and its connection method in the numerical control code. The machining strategy is the core logical rule for driving the generation of the machining path, including but not limited to one or more of process stage division (rough machining, semi-finishing machining, finishing machining), cutting mode selection (down milling, up milling, trochoidal milling), tool motion parameters (feed rate, cutting depth), and path optimization algorithms (residual material avoidance, overcut protection).

[0050] The tool model matching can be based on the requirements of the machining strategy for the geometric characteristics of the tool. For example, the rough machining strategy matches a large-diameter multi-edge end mill to improve the cutting efficiency, and the finishing machining strategy matches a ball nose mill to achieve surface smoothness.

[0051] The determination of machining parameters is achieved by analyzing the process rules and electrode characteristic parameters (such as material hardness, surface curvature) in the target machining strategy template, dynamically calculating the spindle speed range (for example, setting the speed to 8000 - 12000 rpm when a carbide tool is machining steel), feed speed range (such as 2000 mm / min in the rough machining stage and 500 mm / min in the finishing machining stage), cutting depth (such as a layer depth of 0.5 mm in rough machining and 0.1 mm in finishing machining), and tool path step pitch (such as the row spacing being 40% of the tool diameter), etc., and associating them with the specific machining path.

[0052] Step C20: Determine the path sequence of each machining path, and program and combine the machining strategies in sequence based on the path sequence and bind the machining parameters to obtain the tool path machining program.

[0053] The path sequence between different machining paths can be preset, for example, a path sequence that follows the process progression principle of "from rough machining to semi-finishing machining, and then to finishing machining".

[0054] After obtaining information such as the tool model, machining strategy, machining path, and machining parameters, automatic programming can be performed according to the programming combination rules to obtain the tool path machining program. For example, the programming combination logic binds the process rules of the machining strategy (such as the contour layer-by-layer algorithm for rough machining) with the path geometric data of the machining path (such as the Z-axis layer-by-layer coordinates), and injects the tool path code generated by the machining parameters to obtain the tool path machining program. For example, it converts the layer depth parameter of the rough machining strategy into a Z-value loop instruction in the G code, and maps the curvature adaptive feed of the finishing machining strategy to an F-value dynamic change instruction.

[0055] By precisely binding the process rules in the machining strategy (such as roughing and finishing stage division, cutting mode selection) with the tool model and dynamic parameters (such as spindle speed, feed rate), and combining with the geometric characteristics of the machining path (such as Z-axis layer-by-layer coordinates, feed along the curvature direction), a tool path machining program is generated to achieve the coupling of machining parameters and path planning. For example, in the roughing stage, a large-diameter tool is used to match the high-speed and large-layer-depth equal-height layer-by-layer path to quickly remove the surplus; in the finishing stage, it switches to a ball-end tool and binds the surface parameter line path with low feed and small row spacing to ensure surface smoothness. At the same time, through the progressive arrangement of the path sequence (for example, from roughing to semi-finishing, and then to finishing) and the coding of process rules, problems such as cutting vibration, abnormal remaining surplus, and unqualified surface quality caused by manual parameter setting deviation or path sequence misalignment are eliminated. While improving machining efficiency, machining accuracy and process stability are guaranteed, and manual intervention is reduced through the automatic programming mechanism, significantly reducing the complexity of process planning and the trial-and-error cost.

[0056] In a possible implementation manner, the machining strategy includes a roughing strategy, a semi-finishing strategy, and a finishing strategy. The machining path includes a roughing path corresponding to the roughing strategy, a semi-finishing path corresponding to the semi-finishing strategy, and a finishing path corresponding to the finishing strategy. The step of determining the path sequence of each of the machining paths and sequentially programming and combining the machining parameters with each of the machining strategies based on the path sequence to obtain a tool path machining program includes: Step D10, programming and combining the roughing strategy, the semi-finishing strategy, and the finishing strategy based on the path sequence from the roughing path, the semi-finishing path to the finishing path in sequence to obtain a tool path machining program.

[0057] It should be noted that the roughing strategy is the machining strategy adopted in the roughing path stage, such as using the equal-height layer-by-layer milling strategy in the roughing stage; the semi-finishing strategy is the machining strategy adopted in the semi-finishing path stage, such as using the residual material uniform distribution strategy in the semi-finishing path stage; the finishing strategy is the machining strategy adopted in the finishing path stage, such as using the spiral interpolation or streamline feed strategy in the finishing path stage.

[0058] The machining strategy includes but is not limited to the roughing strategy, the semi-finishing strategy, and the finishing strategy. For example, it can include a special area machining strategy, such as a strategy for implementing compensation machining for special areas such as R corners and narrow grooves. Specifically, in the finishing stage, a compensation machining strategy is superimposed. For example, in the R corner area: the equal-remaining amount compensation strategy is adopted, and multiple trochoidal milling paths are generated according to the difference between the R corner radius and the tool radius to ensure the clearance of the remaining amount at the root of the fillet; in the narrow groove area: the tool deflection avoidance strategy is adopted, and the combination of axial inclined feed and trochoidal trajectory is used to avoid interference between the side wall of the tool and the groove wall.

[0059] Through the progressive combination of roughing, semi-finishing, and finishing strategies, maximize the material removal rate in the roughing stage, eliminate sudden changes in the remaining amount in the semi-finishing stage, and achieve the surface quality index in the finishing stage to ensure the balance between the tool path program's efficiency and accuracy; the coded conversion of each stage's strategy realizes the seamless connection between the machining logic and the numerical control system, reduces manual programming errors, and improves the process reliability of complex electrode machining.

[0060] Exemplarily, to facilitate the understanding of the technical concept or technical principle of the tool path programming method after combining this embodiment with the above-mentioned first embodiment and second embodiment, a specific embodiment is now enumerated. In this specific embodiment, referring to Figure 2 as shown, the tool path programming process includes: 1. Feature analysis: Based on the API called by the drafting software, analyze the electrode features, and automatically extract and classify the machining feature types, including but not limited to: Stereo structure features: ribbed platforms, stepped surfaces, bosses, etc.; Surface features: spherical surfaces, cylindrical surfaces, free-form surfaces, arc surfaces, etc.; Depression features: cavities, blind holes, through holes, keyways, etc.; Boundary features: corners, edges, contour lines, etc.

[0061] 2. Machining logic matching: According to the analyzed feature types, retrieve the corresponding machining logic templates from the preset machining strategy library, specifically including: Retrieving the mapping relationship between feature types and machining processes; Establishing a tree-like structure of the feature hierarchy relationship; Dynamically matching the optimal combination of machining templates, that is, the target machining strategy template. A standard library is established in advance, which contains machining strategy templates for various electrode types.

[0062] 3. Tool parameter configuration: Based on the matched machining logic template (i.e., the target machining strategy template), perform the following operations: Automatically retrieve the adapted tool model from the tool database; Dynamically calculate the machining parameters according to the feature geometric parameters: such as spindle speed range: 1000 - 20000 rpm, feed speed range: 50 - 5000 mm / min, cutting depth: 0.1 - 5 mm, tool path step: 0.01 - 2 mm, etc. 4. Tool path generation: Execute according to the machining logic sequence: Rough machining path planning: Adopt the contour-parallel milling strategy; Semi-finishing path optimization: Implement the residual material uniform distribution algorithm; Finishing path generation: Apply spiral interpolation or streamline tool path; Special area processing: Perform compensation machining on features such as fillets and narrow grooves.

[0063] 5. Tool path combination: Logically combine the machining paths of each feature in the technological order to form a complete tool path machining program, that is, obtain the programmed tool path, including: Process division: From roughing to semi-finishing, and then to finishing; Smoothing transition processing of the tool path; Automatic calculation of the safety height; Insertion of tool change instructions.

[0064] It should be noted that the above examples are only used to assist in understanding this embodiment and do not constitute a limitation on the tool path programming process of this embodiment. Based on this technical concept, more forms of simple transformations are within the protection scope of this application.

[0065] Based on the first, second, and / or third embodiments of this application, in the fourth embodiment of this application, the same or similar content as the above-mentioned embodiments one, two, and three can be referred to the above introduction and will not be elaborated later. On this basis, after the step of obtaining the tool path machining program by programming the tool path according to the target machining strategy template, the method further includes: Step E10: Perform a qualification check on the tool path machining program to obtain a check result; This qualification check is used to check the qualification of the tool path machining program, and specifically may include one or more of interference check, geometric integrity check, and parameter compliance check. Among them, the interference check refers to detecting whether there is a risk of unexpected contact or collision between the moving parts such as the tool body, tool holder, or machine tool spindle in the tool path and the workpiece, fixture, or machine tool body through kinematic simulation. The geometric integrity check refers to detecting whether there are breakpoints, redundant empty moves in the tool path, or the minimum clearance from the electrode model does not meet the safety threshold; the parameter compliance check refers to verifying whether the parameterized instructions are within the range allowed by the process database.

[0066] Step E20: If the check result indicates that the check passes, it is determined that the tool path programming is completed; The conditions for determining that the check passes can be preset, such as passing the interference check (no risk of unexpected contact or collision), passing the geometric integrity check (no path breakpoints and the safety clearance meets the standard), and passing the parameter compliance check (all parameters are within the allowed range). When it is detected that the check result meets the condition for passing the check, it is determined that the check result indicates that the check passes, and at this time, it is determined that the tool path programming is completed.

[0067] Step E30: If the check result indicates that the check fails, automatically modify the tool path machining program.

[0068] When it is detected that the verification result does not meet the condition for passing the verification, the tool path processing program is automatically modified. Specifically, the tool path processing program can be modified through a preset automatic modification strategy.

[0069] Through the qualification verification of the tool path processing program, the subsequent processes are continued only when the qualification verification passes, thus ensuring the executability and safety of the tool path processing program, and avoiding processing accidents or material waste caused by program errors; when the qualification verification fails, the tool path processing program is automatically modified, thereby automatically correcting and improving the programming efficiency, reducing the number of repeated verifications, forming a technical closed-loop from verification to correction, and significantly enhancing the robustness and fault tolerance of the tool path programming process.

[0070] For example, in a possible implementation manner, the step of automatically modifying the tool path processing program may include: Step E301, if the reason for the unqualified tool path processing program includes that the interference check fails, the tool path processing program is modified with a strategy of correcting the tool path; The failure of the interference check specifically may be that a collision risk or unexpected contact is detected between the tool body, tool holder or machine tool spindle and the workpiece, fixture or machine tool body. When the reason for the unqualified tool path processing program includes that the interference check fails, the tool path processing program can be modified with a strategy of correcting the tool path. Specifically, the tool path can be automatically corrected based on the kinematic simulation results. The kinematic simulation includes collision area positioning and unexpected contact positioning. Specifically, the specific coordinate range of the collision area or unexpected contact area and the type of collision components (such as interference between the tool holder and the fixture, overcutting of the tool and the workpiece) are obtained through kinematic simulation, and avoidance instructions can be dynamically inserted in the collision area or the tool path can be adjusted based on the kinematic simulation results, such as tool lifting and radial compensation, to automatically correct the tool path.

[0071] Step E302, if the reason for the unqualified tool path processing program includes parameter missing, the tool path processing program is modified with a strategy of automatically filling the missing parameters with default values; If it is verified that there are missing parameters in the tool path processing program, the tool path processing program is modified with a strategy of automatically filling default values. Further, for different parameter types, corresponding default parameter values can be associated with processing characteristics such as electrode material based on (such as copper, graphite), tool type (such as ball nose cutter, flat end mill) and / or processing stage (rough machining / fine machining), such as spindle speed parameter: the spindle speed of Φ6mm tool is default bound to 3000rpm, and feed rate parameter: the feed rate in the rough machining stage is default bound to 800mm / min.

[0072] Step E303, if the reason for the unqualified tool path processing program includes process parameter overrun, the tool path processing program is modified with a strategy of correcting the overrun parameters to a preset safe range; The preset full range is specifically the allowable range of parameters set according to the physical limits stored in the machine tool parameter library (such as the maximum rotational speed of 8000 rpm and the maximum feed rate of 800 mm / min) and process constraints (such as the maximum cutting depth of 0.2 mm in the thin-walled area).

[0073] Step E304, if the reasons for the unqualified tool path processing program include insufficient insertion of safety instructions, modify the tool path processing program by the strategy of recalculating the retraction height according to the preset safety factor and replacing the coordinate values of the retraction instruction and / or completing the safety instructions.

[0074] When there is a problem of insufficient safety height in the tool path processing program, the safety height can be supplemented by the strategy of recalculating the retraction height according to the preset safety factor and replacing the coordinate values of the retraction instruction. When the safety instructions are missing at key nodes such as the tool change point and the path turning point in the tool path processing program, the missing safety instructions can be completed by the strategy of completing the safety instructions.

[0075] Specifically, for the calculation of the retraction height, the retraction height can be recalculated according to the tool length and the Z-axis stroke margin of the machine tool according to the preset safety factor. For example, the retraction height is obtained by multiplying the tool length by the preset safety system.

[0076] Through the automatic path correction driven by the interference check result, the potential hazard of machine tool damage caused by unexpected contact is eliminated. Through the automatic filling strategy of default values when parameters are missing, such as matching the rotational speed of 3000 rpm and the roughing feed rate of 800 mm / min according to the electrode material, tool type and processing stage, the integrity of the tool path program parameters and the adaptability to the processing scenario are ensured, and program interruption or processing abnormality caused by manual omission is avoided; for the problem of process parameter overrun, it is dynamically adjusted to the safe range based on the machine tool physical limit and process constraints to prevent equipment overload or unqualified processing quality; for the missing safety instructions, through the height calculation driven by the safety factor and the completion of instructions at key nodes, the risks of tool collision and motion interference are eliminated, and at the same time, it is ensured through the kinematic verification of the machine tool that the corrected path meets the stroke limit. The synergistic effect of the above strategies realizes the self-repair ability of the tool path program, which can reduce the manual correction cost, and through the verification mechanism, it is ensured that the corrected program can be put into safe processing, forming an efficient and reliable program error correction technical solution.

[0077] In a possible implementation manner, before the step of obtaining the three-dimensional electrode model of the electrode to be generated, the method further includes: Step F10, in response to the tool path programming generation task, obtain the electrode identifier of the electrode to be generated according to the tool path programming generation task; Step F20, obtain the matching three-dimensional electrode model from the preset file management system according to the electrode identifier.

[0078] The server can set up an archive management system for storing the three-dimensional model of the electrode. After receiving the tool path programming task issued by the task distribution client, it can retrieve the corresponding three-dimensional model of the electrode from the archive management system according to the task parameters of the tool path programming task. Specifically, the task parameters are consistent with the storage index used when the archive management system stores the three-dimensional model of the electrode. For example, in this embodiment, the electrode identification is used as the storage index to store the three-dimensional model of the electrode. After the server receives the tool path programming task, it obtains the electrode identification based on the tool path programming task and retrieves the corresponding three-dimensional model of the electrode from the archive management system using the obtained electrode identification.

[0079] Based on the first, second, third, and / or fourth embodiments of the present application, in the fifth embodiment of the present application, the same or similar content as in the above-mentioned first, second, third, and fourth embodiments can be referred to the above introduction and will not be repeated hereinafter. On this basis, after the step of obtaining the tool path machining program by performing tool path programming according to the target machining strategy template, the method further includes: Step G10, performing automatic batch processing based on the tool path machining program to obtain a batch processing result, where the batch processing includes post-processing, point sampling, drawing generation, and simulation; Post-processing refers to converting the tool path machining program into NC (Numerical Control Code) code recognizable by the target numerical control machine tool. Specifically, it may include setting the workpiece coordinate system, adding tool radius compensation (such as G41 / G42) and length compensation (such as G43 / G44) instructions, and embedding machine tool-specific control codes (such as M03 spindle start) and other processes; Point sampling refers to automatically distributing points on the surface of the three-dimensional model of the electrode, such as automatically generating the coordinates of machining positioning points and simulating the rationality of the spatial positions of the clamping inspection points; Drawing generation refers to automatically generating a machining drawing (which can be an electronic machining drawing) including dimension tolerances and surface roughness markings based on the structural characteristics of the three-dimensional model of the electrode, as well as a process guidance document recording machining parameters (which can also be an electronic version of the process guidance document); Simulation refers to executing the NC code through a virtual machining environment to verify the interference between the tool path and the three-dimensional model of the electrode, the machine tool travel limit, and the machining accuracy compliance, ensuring the safety and feasibility of the program.

[0080] Correspondingly, the batch processing results include post-processing results obtained through post-processing, such as NC codes, and results obtained through point marking, such as a reference point coordinate sequence file and / or a clamping inspection report, results obtained through drawing generation, such as machining drawings and / or process guidance documents, and results obtained through simulation, such as a simulation report. Among them, the reference point coordinate sequence file can be the three-dimensional coordinates of the electrode clamping and positioning points stored in a structured text format, which is used for setting the workpiece coordinate system of the numerical control machine tool. The clamping inspection report contains a text or three-dimensional annotation file of the verification results of the spatial rationality of the points (such as interference distance, minimum safety clearance).

[0081] It should be noted that the server can achieve automatic batch processing through a distributed electrode programming device and a modular pipeline architecture. For example, post-processing, point marking, drawing generation, and simulation are encapsulated as independent processing modules. The scheduler dynamically allocates batch processing tasks according to the load status of the computing nodes, enabling each module to execute in parallel based on a shared memory data pool, and triggering upstream and downstream processes through an event-driven mechanism.

[0082] Step G20, if the simulation result in the batch processing results indicates that the simulation passes, it is determined that the electrode programming is completed; Specifically, the conditions for passing the simulation can be set in advance, such as no interference between the tool path and the three-dimensional model of the electrode, no exceeding the machine tool travel, and meeting the machining accuracy standard. When it is detected that the simulation result meets these simulation passing conditions, it is determined that the simulation result indicates that the simulation passes, and it is determined that the electrode programming for the obtained tool path processing program is completed.

[0083] Furthermore, after determining that the electrode programming is completed, the NC code generated by post-processing can be marked as an executable state and synchronized to the drive library of the target machine tool. At the same time, the reference point coordinate sequence file generated by point marking is written into the machine tool workpiece coordinate system parameter table, the machining drawings and process guidance documents generated by drawing generation are associated with the electrode identification code and archived in a preset file management database, and the simulation result is recorded in the task log for subsequent traceability. Among them, the target machine tool refers to the numerical control machine tool used to execute the NC code to generate electrodes later.

[0084] Step G30, if the simulation result in the batch processing results indicates that the simulation fails, obtain the input tool path modification instruction, obtain the modified tool path processing program according to the tool path modification instruction, and return to execute the step of performing automatic batch processing based on the tool path processing program to obtain batch processing results according to the modified tool path processing program.

[0085] When it is detected that the simulation result does not meet the simulation pass condition, it is determined that the simulation result indicates that the simulation fails, and the correction process is triggered. For example, the simulation pass condition is that there is no interference between the tool path and the electrode three-dimensional model, the machine tool stroke does not exceed the limit, and the processing accuracy meets the standard. Then, when it is detected that there is interference between the tool path and the electrode model, the machine tool stroke exceeds the limit or the processing accuracy exceeds the tolerance, it is determined that the simulation result indicates that the simulation fails. Specifically, the correction process includes obtaining manually input tool path modification instructions such as adjusting tool compensation values, modifying cutting parameters, or reconstructing path geometry, adjusting parameters or regenerating paths for the original tool path processing program according to the tool path modification instructions, generating a modified tool path processing program, resubmitting it, restarting the post-processing, stepping, drawing, and simulation process to re-check the entire process until the simulation result passes. Furthermore, if it still fails after multiple corrections, a system alarm can be triggered and pushed to the designated engineer terminal for manual intervention.

[0086] After obtaining the tool path processing program, this embodiment integrates the post-processing, point-checking, drawing and simulation links that are manually executed step by step into an automated batch processing sequence based on the tool path processing program, eliminating the redundant time for operators to switch between multiple independent tools and wait for software responses. By connecting the originally discrete links in series into a continuous execution process, the data flow and processing between the links are seamlessly connected, which significantly shortens the overall cycle of electrode programming. Through automated batch processing, the uncertainty of manual operation nodes and processes is reduced, and the continuity and efficiency of the programming process are improved, thereby improving the efficiency and automation level of electrode programming, and then improving the efficiency and automation level of EDM.

[0087] In a possible implementation manner, before the step of determining that electrode programming is completed, the method further includes: Step I10, outputting the batch processing result to a preset audit system; The audit system can specifically be an audit client connected to the server, which transmits the NC code, processing drawings, process guidance documents, simulation results and other contents contained in the batch processing results to the audit client. Specifically, the transmission method includes but is not limited to direct push based on the industrial communication protocol or asynchronous reading through an intermediate database.

[0088] Step I20, if an audit pass instruction based on the batch processing result is received in the audit system, the step of determining that electrode programming is completed is executed; If the audit system returns an audit pass instruction after manual review or automatic verification of the batch processing results, the NC code can be marked as executable and synchronized to the target machine tool, and the electrode programming task status can be updated to "completed".

[0089] Step I30, if a non - passing audit instruction based on the batch processing result is received in the audit system, a preset human intervention mechanism is triggered.

[0090] The preset human intervention mechanism can specifically be sending an exception work order notice to a designated engineer terminal, where the notice content includes error details, the identification of the associated electrode 3D model, and correction suggestions, or locking the operation permission of the current task until it is resubmitted for audit after manual correction. This embodiment does not make specific restrictions on this.

[0091] Through the closed - loop feedback mechanism of the audit system and automatic batch processing, a manual audit node is embedded in the automated process to ensure the reliability and safety of the electrode programming result, and to avoid processing accidents or material waste caused by program errors; when the audit fails, an intervention mechanism (such as intelligent notification, permission control, etc.) is triggered, taking into account both the automation efficiency and the accuracy of manual correction, forming a collaborative workflow of "automatic processing - manual verification", meeting the dual requirements of fault tolerance and efficiency in high - precision electrode processing scenarios, and enabling the electrode generation to meet the quality control standards of industrial intelligent production.

[0092] In a possible implementation, the server includes a batch processing system. The step of performing automatic batch processing on the toolpath processing program to obtain a batch processing result includes: Step J10, sending a batch processing start instruction for the toolpath processing program to the batch processing system, so that after receiving the batch processing start instruction, the batch processing system performs automatic batch processing based on the toolpath processing program to obtain a batch processing result.

[0093] In this embodiment, when batch processing needs to be performed, a batch processing start instruction for the toolpath processing program is sent to the batch processing system. In response to the batch processing start instruction, the batch processing system automatically triggers the collaborative work of the post - processing, point - stepping, drawing, and simulation processing modules, and sequentially performs code conversion, positioning point generation, drawing output, and simulation verification operations based on the toolpath processing program to generate a batch processing result including NC code, process drawings, and simulation results. Among them, the sending of the batch processing start instruction and the response execution of the batch processing system constitute an event - driven closed - loop control process.

[0094] In this embodiment, by constructing the batch processing start instruction and the response execution of the batch processing system into an event - driven closed - loop control process, full - automation processing from the toolpath program to the numerical control code is realized, significantly reducing the manual intervention link and improving the multi - task concurrent processing efficiency; at the same time, based on the modular collaborative architecture design, it is ensured that the processing parameters and geometric data required in the post - processing, point - stepping, drawing, and simulation links can be kept consistent, avoiding processing anomalies caused by cross - process data mismatch.

[0095] In a possible implementation, before the step of sending a batch start instruction for the tool path processing program to the batch processing system, the method further includes: Step K10, obtaining the system status of the batch processing system; The system status may specifically include an idle state and a busy state. Among them, the idle state refers to a state where the batch processing system is not executing any batch processing tasks and the system resource occupancy rate is lower than a preset threshold, and the busy state refers to a state where the batch processing system is executing at least one batch processing task or the system resource occupancy rate exceeds the preset threshold.

[0096] Step K20, if the system status indicates that the batch processing system is in the idle state, then execute the step of sending a batch start instruction for the tool path processing program to the batch processing system; If the batch processing system is in the idle state, it indicates that the batch processing system can currently process batch processing tasks. At this time, send a batch start instruction to the batch processing system, so that the batch processing system responds to the batch start instruction and executes the subsequent batch processing process.

[0097] Step K30, if the system status indicates that the batch processing system is in the busy state, then store the tool path processing program in a preset waiting queue.

[0098] If the batch processing system is in the busy state, it means that the batch processing system cannot currently process batch processing tasks. For example, the batch processing system may be executing another batch processing task. At this time, store the tool path processing program in a preset waiting queue, so that when it is detected that the batch processing system is in the idle state, take out the tool path processing program from the waiting queue and initiate a batch start instruction for the taken-out tool path processing program, ensuring that all batch processing tasks of the multi-electrode programming task can proceed in an orderly manner.

[0099] In this embodiment, by real-time monitoring the idle and busy states of the batch processing system and dynamically deciding whether to immediately execute tasks or temporarily store them in the waiting queue, an adaptive matching of task scheduling and system resource occupancy is achieved, avoiding processing delays or system crashes caused by resource overload; at the same time, the task temporary storage mechanism based on the waiting queue ensures that multi-electrode programming tasks are processed in a certain order in turn, eliminating the risk of task omission or conflict. Combining the closed-loop logic of state detection and queue management, a batch processing task execution system with high stability and high throughput is formed, significantly improving the processing efficiency and system reliability of the electrode programming task.

[0100] In a possible implementation, the step of storing the tool path processing program in a preset waiting queue includes: Step L10, obtaining or setting the priority of the tool path processing program, and associating and storing the tool path processing program with the priority in a preset waiting queue; The priority of the tool path processing program can be generated based on the urgency of the electrode processing task, the process complexity, or user-defined rules. The tool path processing program is associated with the priority and stored in a preset waiting queue, which can specifically be a first-in-first-out queue sorted by priority.

[0101] The step of sending a batch start instruction for the tool path processing program to the batch processing system includes: Step L20: Take out a target tool path processing program with the highest priority from the waiting queue, and send a batch start instruction for the target tool path processing program to the batch processing system.

[0102] When it is detected that the batch processing system is in an idle state, take out a target tool path processing program with the highest priority from the waiting queue. The highest priority can be determined by comparing the priority values of all tasks in the queue through traversal or preset rule matching, and send a batch start instruction for the target tool path processing program to the batch processing system to trigger the batch processing of the target tool path processing program by the batch processing system.

[0103] In this embodiment, through a priority-driven waiting queue management mechanism, differential processing of multi-electrode programming tasks is realized, ensuring that high-priority tasks (such as urgent orders or precision machining tasks) preferentially occupy system resources, significantly shortening the overall processing cycle of critical tasks, avoiding delays in high-priority tasks caused by low-priority tasks preempting resources, and enabling adaptation to real-time changes in production plans through dynamic priority settings (such as automatically increasing the priority of the corner cleaning electrode task according to process complexity). Ultimately, on the basis of ensuring the fairness of task processing, the utilization rate of system resources and task response efficiency are maximized, forming an electrode programming task scheduling system that takes into account both efficiency and flexibility.

[0104] Exemplarily, to facilitate understanding of the technical concept or technical principle of the electrode programming method after combining this embodiment with the first, second, third, and fourth embodiments above, a specific embodiment is now listed. In this specific embodiment, the electrode programming method is applied to a server. Refer to Figure 3 As shown, the server is connected to the client. The server includes an archive management system, an automatic programming system, and a batch processing system. Through the server, the entire process of the automatic programming system and other process links is unmanned, realizing full-link automation from tool path programming, point marking, NC code output to simulation. Based on this, the electrode programming process includes: 1. Task assignment stage: 1) The client assigns tasks and sends them to the server: The electrode processing tasks are assigned to the server queue.

[0105] 2) Obtain electrode information: Extract the required electrode data information from the server.

[0106] 3) Download archives: Download the engineering files (i.e., the 3D electrode model) and parameters of the relevant electrodes to the server.

[0107] 2. Automatic programming stage: 1) Feature parsing: Parse the electrode features and identify the electrode machining features.

[0108] 2) Machining logic matching: According to the parsed feature types, retrieve the corresponding machining logic templates from the preset machining strategy library.

[0109] 3) Tool parameter configuration: Based on the matched machining logic template.

[0110] 4) Toolpath generation: Logically combine the machining paths of each feature in the technological order to form a complete machining program sequence (i.e., the toolpath machining program).

[0111] 3. Batch processing stage: 1) Automatic post-processing: Convert the toolpath machining program into NC code recognizable by the machine tool. It includes: coordinate system conversion, tool radius compensation instruction, tool length compensation instruction, generation of machine tool specific control codes, etc.

[0112] 2) Automatic spotting: Simulate and inspect automatic spotting on the electrode model.

[0113] 3) Automatic drawing generation: Generate machining drawings and process documents.

[0114] 4) Automatic simulation: Verify the safety and feasibility of the program through virtual machining.

[0115] 4. Review and archiving 1) Automatic submission for review: Push the complete machining plan to the review system and wait for final confirmation.

[0116] 2) After passing the review, the data is archived to the server and the process ends.

[0117] 5. NG (No Good) handling 1) The simulation result is NG, triggering manual intervention: 2) Manual modification: The engineer manually adjusts the toolpath parameters or process strategies.

[0118] 3) Resubmit to the server and repeat step 3 until it is OK.

[0119] It should be noted that the above examples are only used to assist in understanding this embodiment and do not constitute a limitation on the electrode programming process of this embodiment. Based on this technical concept, more forms of simple transformations are within the protection scope of this application.

[0120] In addition, an embodiment of the present application also provides a tool path programming device. Referring to Figure 4 as shown, the tool path programming device includes: An acquisition module 10, configured to acquire a three-dimensional electrode model of an electrode to be generated; A feature extraction module 20, configured to extract features from the three-dimensional electrode model to obtain electrode features, where the electrode features include one or more of a three-dimensional structure feature, a curved surface feature, a concave feature, and a boundary feature; A tool path programming module 30, configured to match a corresponding target machining strategy template in a preset template library according to the electrode features, and perform tool path programming according to the target machining strategy template to obtain a tool path machining program, where the template library stores one or more electrode machining strategy templates.

[0121] In one embodiment, the tool path programming module 30 is further configured to: Search for a target machining strategy template that matches the electrode features in a preset template library based on a preset first mapping relationship, where the first mapping relationship is a mapping relationship between different electrode features and electrode machining strategy templates; or, Construct a feature hierarchy relationship tree according to each sub-feature in the electrode features, and match a corresponding target machining strategy template in the preset template library based on the feature hierarchy relationship tree.

[0122] In one embodiment, the tool path programming module 30 is further configured to: Search for a target machining strategy template that matches the feature hierarchy relationship tree in a preset template library based on a preset second mapping relationship, where the second mapping relationship is a mapping relationship between different feature hierarchy relationship trees and electrode machining strategy templates; or, Obtain basic machining processes corresponding to each of the sub-features based on a preset third mapping relationship, screen available machining processes from the basic machining processes based on the feature hierarchy relationship tree, and search for a target machining strategy template that matches the available machining processes in a preset template library based on a fourth mapping relationship, where the third mapping relationship is a mapping relationship between different feature types and machining processes, and the fourth mapping relationship is a mapping relationship between different machining processes and electrode machining strategy templates.

[0123] In one embodiment, the target machining strategy template includes at least one machining strategy and machining paths corresponding to each of the machining strategies. The tool path programming module 30 is further configured to: Match the corresponding tool model according to the target machining strategy template, and determine the machining parameters according to the tool model, the electrode characteristics, and the target machining strategy template, where the machining parameters include one or more of the spindle speed range, the feed speed range, the cutting depth, and the tool path pitch; Determine the path sequence of each of the machining paths, and program and combine the machining strategies in sequence based on the path sequence and bind the machining parameters to obtain a tool path machining program.

[0124] In one embodiment, the machining strategies include a rough machining strategy, a semi-finishing machining strategy, and a finishing machining strategy, the machining paths include a rough machining path corresponding to the rough machining strategy, a semi-finishing machining path corresponding to the semi-finishing machining strategy, and a finishing machining path corresponding to the finishing machining strategy. The tool path programming module 30 for determining the path sequence of each of the machining paths is further configured to: Program and combine the rough machining strategy, the semi-finishing machining strategy, and the finishing machining strategy in sequence based on the path sequence from the rough machining path, the semi-finishing machining path to the finishing machining path to obtain a tool path machining program.

[0125] In one embodiment, the tool path programming device further includes a verification module, and the verification module is configured to: Perform a qualification verification on the tool path machining program to obtain a verification result; If the verification result indicates that the verification is passed, it is determined that the tool path programming is completed; If the verification result indicates that the verification fails, the tool path machining program is automatically modified.

[0126] In one embodiment, the obtaining module 10 is further configured to: In response to a tool path programming generation task, obtain the electrode identifier of the electrode to be generated according to the tool path programming generation task; Obtain a matching three-dimensional electrode model from a preset file management system according to the electrode identifier.

[0127] In addition, an embodiment of the present application further provides a tool path programming device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the tool path programming method as described above.

[0128] Reference Figure 5, which shows a schematic structural diagram of a tool path programming device suitable for implementing the embodiments of the present application. The tool path programming device in the embodiments of the present application may further include, but is not limited to, mobile terminals such as servers, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistant), PADs (Portable Application Description: tablet computers), etc., and fixed terminals such as desktop computers, etc. Figure 5 The shown tool path programming device is merely an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.

[0129] As Figure 5 shown, the tool path programming device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 into the random access memory (RAM: Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the tool path programming device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. The input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the tool path programming device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a tool path programming device with various systems, it should be understood that it is not required to implement or have all the shown systems. More or fewer systems may be alternatively implemented or had.

[0130] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product that includes a computer program carried on a computer-readable medium, and the computer program contains program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by a processing device 1001, the above-mentioned functions defined in the methods of the embodiments disclosed in the present application are executed.

[0131] The tool path programming device provided by the embodiments of the present application adopts the tool path programming method in the above-mentioned embodiments, and can solve the technical problems of improving the efficiency and accuracy of tool path programming. Compared with the prior art, the beneficial effects of the tool path programming device provided by the present application are the same as those of the tool path programming method provided by the above-mentioned embodiments, and other technical features in the tool path programming device are the same as the features disclosed in the method of the previous embodiment, and will not be elaborated here.

[0132] It should be understood that each part disclosed in the present application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in a suitable manner in any one or more embodiments or examples.

[0133] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, and all should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

[0134] In addition, to achieve the above object, the embodiments of the present application also provide a readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the tool path programming method in the above-mentioned embodiments.

[0135] The computer-readable storage medium provided by the embodiments of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or component. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0136] The above computer-readable storage medium may be included in the tool path programming device; or it may exist independently and not be assembled into the tool path programming device.

[0137] The above computer-readable storage medium carries one or more programs. When the one or more programs are executed by the tool path programming device, the tool path programming device is caused to: obtain a three-dimensional model of the electrode to be generated; extract features from the three-dimensional model of the electrode to obtain electrode features, where the electrode features include one or more of a three-dimensional structure feature, a surface feature, a depression feature, and a boundary feature; match a corresponding target machining strategy template in a preset template library according to the electrode features, and perform tool path programming according to the target machining strategy template to obtain a tool path machining program, where the template library stores one or more electrode machining strategy templates.

[0138] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or a toolpath programming device. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, by connecting through the Internet using an Internet service provider).

[0139] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0140] The modules described in the embodiments of this application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation to the module itself in some cases.

[0141] The readable storage medium provided in this application is a computer-readable storage medium. The computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for performing the above toolpath programming method, and can solve the technical problem of improving the efficiency and accuracy of toolpath programming. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the toolpath programming method provided in the above embodiments, and will not be elaborated here.

[0142] In addition, an embodiment of the present application also provides a computer program product, including a computer program, which when executed by a processor implements the steps of the tool path programming method described above.

[0143] The specific implementation manner of the computer program product of the present application is basically the same as that of each embodiment of the above tool path programming method, and will not be elaborated here.

[0144] It should be noted that in this document, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or system including a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or system. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or system including that element.

[0145] The serial numbers of the embodiments of the present application above are only for description and do not represent the superiority or inferiority of the embodiments.

[0146] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation manner. Based on such an understanding, the technical solution of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a software sensor. This computer software sensor is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) as described above, and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a tool path programming device or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0147] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application accordingly. Any equivalent structure or equivalent process transformation made by using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be similarly included in the patent protection scope of the present application.

Claims

1. A tool path programming method, characterized in that, The described tool path programming method includes: Obtaining the three-dimensional model of the electrode to be generated; Performing feature extraction on the three-dimensional model of the electrode to obtain electrode features, where the electrode features include one or more of three-dimensional structure features, surface features, concave features, and boundary features; Matching the corresponding target machining strategy template in a preset template library according to the electrode features, and performing tool path programming according to the target machining strategy template to obtain a tool path machining program, where the template library stores one or more electrode machining strategy templates.

2. The tool path programming method according to claim 1, wherein, The step of matching the corresponding target machining strategy template in the preset template library according to the electrode features includes: Searching in the preset template library for the target machining strategy template that matches the electrode features based on a preset first mapping relationship, where the first mapping relationship is the mapping relationship between different electrode features and electrode machining strategy templates; or, Constructing a feature hierarchy relationship tree based on each sub-feature in the electrode features, and matching the corresponding target machining strategy template in the preset template library based on the feature hierarchy relationship tree.

3. The tool path programming method according to claim 2, wherein, The step of matching the corresponding target machining strategy template in the preset template library based on the feature hierarchy relationship tree includes: Searching in the preset template library for the target machining strategy template that matches the feature hierarchy relationship tree based on a preset second mapping relationship, where the second mapping relationship is the mapping relationship between different feature hierarchy relationship trees and electrode machining strategy templates; or, Obtaining the basic machining processes corresponding to each sub-feature based on a preset third mapping relationship, screening available machining processes from the basic machining processes based on the feature hierarchy relationship tree, and searching in the preset template library for the target machining strategy template that matches the available machining processes based on a fourth mapping relationship, where the third mapping relationship is the mapping relationship between different feature types and machining processes, and the fourth mapping relationship is the mapping relationship between different machining processes and electrode machining strategy templates.

4. The tool path programming method according to claim 1, characterized in that The target machining strategy template includes at least one machining strategy and the machining paths corresponding to each machining strategy. The step of performing tool path programming according to the target machining strategy template to obtain a tool path machining program includes: Matching the corresponding tool model according to the target machining strategy template, and determining machining parameters according to the tool model, the electrode features, and the target machining strategy template, where the machining parameters include one or more of the spindle speed range, feed speed range, cutting depth, and tool path step distance; Determining the path sequence of each machining path, programming and combining the machining strategies in sequence based on the path sequence, and binding the machining parameters to obtain a tool path machining program.

5. The tool path programming method according to claim 4, wherein The machining strategies include rough machining strategy, semi-finishing machining strategy and finishing machining strategy. The machining paths include the rough machining path corresponding to the rough machining strategy, the semi-finishing machining path corresponding to the semi-finishing machining strategy and the finishing machining path corresponding to the finishing machining strategy. The steps of determining the path sequence of each of the machining paths and programming and combining the machining parameters and each of the machining strategies in sequence based on the path sequence to obtain a tool path machining program include: Programming and combining the rough machining strategy, the semi-finishing machining strategy and the finishing machining strategy based on the path sequence from the rough machining path, the semi-finishing machining path to the finishing machining path in sequence to obtain a tool path machining program.

6. The tool path programming method according to any one of claims 1 to 5, characterized in that, After the step of obtaining a tool path machining program by performing tool path programming according to the target machining strategy template, the method further includes: Performing a qualification check on the tool path machining program to obtain a check result; If the check result indicates that the check passes, it is determined that the tool path programming is completed; If the check result indicates that the check fails, the tool path machining program is automatically modified.

7. The tool path programming method according to any one of claims 1 to 5, characterized in that The step of obtaining the three-dimensional electrode model of the electrode to be generated includes: In response to a tool path programming generation task, obtaining the electrode identifier of the electrode to be generated according to the tool path programming generation task; Obtaining a matching three-dimensional electrode model from a preset file management system according to the electrode identifier.

8. A tool path programming device, characterized in that, Including: A memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the tool path programming method according to any one of claims 1 to 7 is implemented.

9. A readable storage medium, characterized in that, The readable storage medium includes a computer-readable storage medium, and a tool path programming program is stored on the computer-readable storage medium. When the tool path programming program is executed by a processor, the steps of the tool path programming method according to any one of claims 1 to 7 are implemented.

10. A computer program product, characterized in that, The computer program product includes a computer program. When the computer program is executed by a processor, the tool path programming method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Electrospark forming processing DNC system facing die making system

    CN101259553A

  • Mobile-phone-mold molding-part numerical control programming and automatic processing control device

    CN105807720A

  • Electrode programming method based on electrode characteristics and path template

    CN112100968A

  • Method and device for automatically generating NC program according to electric spark database

    CN115356983A

  • EDM electrode rapid detection device

    CN117889781A

Cited By

  • Task adjustment method and device, storage medium, electronic equipment and computer program product

    CN120448078A

  • Workpiece cutting method and device, cutting equipment and computer readable storage medium

    CN120597571A

  • Workpiece cutting method, device, cutting apparatus, and computer-readable storage medium

    CN120597571B

  • Electric spark forming data processing method and system based on AI

    CN121213968A