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

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

CN120276725BActive Publication Date: 2025-08-26GOERTEK INC
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing electrode processing tool tracks are programmed inefficiently and prone to errors, which cannot meet the requirements of modern manufacturing for processing accuracy and complexity.

Method used

By obtaining the three-dimensional electrode model, perform feature extraction and match the target processing strategy templates in the preset template library, the tool track processing program is automatically programmed, including feature recognition, template matching and automatic generation processes.

Benefits of technology

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

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276725B_ABST
    Figure CN120276725B_ABST
Patent Text Reader

Abstract

The present application discloses a tool path programming method, device, readable storage medium, and computer program product, relating to the field of automation technology. The method comprises: obtaining a three-dimensional model of an electrode to be generated; extracting features from the three-dimensional electrode model to obtain electrode features, wherein the electrode features include one or more of three-dimensional structural features, surface features, concave features, and boundary features; matching a corresponding target machining strategy template in a preset template library based on the electrode features, and programming a tool path based on the target machining strategy template to obtain a tool path machining program, wherein the template library stores one or more electrode machining strategy templates. The present application improves the efficiency and accuracy of tool path programming.
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, electrical discharge machining (EDM) technology is highly sought after for its ability to process high-hardness materials and complex workpiece shapes. Due to its non-contact nature, EDM has become a core process for machining high-hardness materials and complex cavities. This technology utilizes pulsed discharges between an electrode and the workpiece to melt and vaporize the material in localized areas, achieving material removal and shaping. As the manufacturing industry's demands for machining precision and complexity continue to increase, tool path programming for electrode machining, a key step in EDM, is becoming increasingly important.

[0003] Currently, toolpath programming for electrode machining relies primarily on manual operation, requiring programmers to manually set machining parameters, machining paths, and compensation strategies based on the electrode design drawings. Although computer-aided design software provides a visual interface, the selection of machining strategies still relies heavily on the engineer's experience and judgment. Programmers must manually input machining parameters and draw toolpaths based on the electrode design drawings, combined with their own experience and understanding of the machining process, to program the toolpath machining program.

[0004] Low programming efficiency is a prominent issue during manual programming. Due to the complex shape of electrodes and the precise machining requirements, programmers need to spend a considerable amount of time setting parameters and drawing tool paths. Furthermore, in the machining of complex electrodes, poor consideration or operational errors can easily lead to inaccurate tool path programs.

[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 objectives, the present application provides a tool path programming method, which includes:

[0008] Obtaining a three-dimensional electrode model of the electrode to be generated;

[0009] Extracting features from the three-dimensional electrode model to obtain electrode features, wherein the electrode features include one or more of three-dimensional structural features, curved surface features, concave features, and boundary features;

[0010] According to the electrode feature, a 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, wherein the template library stores one or more electrode machining strategy templates.

[0011] In one embodiment, the step of matching the corresponding target machining strategy template in a preset template library based on the electrode feature includes:

[0012] searching for a target machining strategy template that matches the electrode feature in a preset template library based on a preset first mapping relationship, wherein the first mapping relationship is a mapping relationship between different electrode features and electrode machining strategy templates; or

[0013] A feature hierarchical relationship tree is constructed according to each sub-feature in the electrode feature, and a corresponding target processing strategy template is matched in a preset template library based on the feature hierarchical relationship tree.

[0014] In one embodiment, the step of matching a corresponding target processing strategy template in a preset template library based on the feature hierarchical relationship tree includes:

[0015] Searching for a target machining strategy template that matches the feature hierarchy tree in a preset template library based on a preset second mapping relationship, wherein the second mapping relationship is a mapping relationship between different feature hierarchy trees and electrode machining strategy templates; or

[0016] Based on a preset third mapping relationship, the basic processing technology corresponding to each of the sub-features is obtained, and based on the feature hierarchical relationship tree, the available processing technology is screened in each of the basic processing technologies. Based on a fourth mapping relationship, a target processing strategy template matching the available processing technology is searched in a preset template library, wherein the third mapping relationship is a mapping relationship between different feature types and processing technologies, and the fourth mapping relationship is a mapping relationship between different processing technologies and electrode processing strategy templates.

[0017] In one embodiment, the target machining strategy template includes at least one machining strategy and a machining path 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:

[0018] Matching a corresponding tool model according to the target machining strategy template, and determining machining parameters according to the tool model, the electrode characteristics, and the target machining strategy template, wherein the machining parameters include one or more of a spindle speed range, a feed speed range, a cutting depth, and a tool path stepover;

[0019] The path sequence of each of the machining paths is determined, and based on the path sequence, the machining strategies are sequentially programmed and combined and the machining parameters are bound to obtain a tool path machining program.

[0020] In one embodiment, 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; and the steps of determining a path sequence of the machining paths, and sequentially programming and combining the machining parameters and the machining strategies based on the path sequence to obtain a tool path machining program include:

[0021] The roughing strategy, the semi-finishing strategy and the finishing strategy are combined based on path sequence programming from a roughing path, a semi-finishing path to a finishing path to obtain a tool path processing program.

[0022] In one embodiment, after the step of performing tool path programming according to the target machining strategy template to obtain a tool path machining program, the method further includes:

[0023] Performing a qualification check on the tool path processing program to obtain a check result;

[0024] If the verification result indicates that the verification is passed, it is determined that the tool path programming is completed;

[0025] If the verification result indicates that the verification fails, the tool path processing program is automatically modified.

[0026] In one embodiment, the step of obtaining the electrode three-dimensional model of the electrode to be generated includes:

[0027] In response to a tool path programming generation task, obtaining an electrode identifier of an electrode to be generated according to the tool path programming generation task;

[0028] A matching electrode three-dimensional model is obtained from a preset file management system according to the electrode identification.

[0029] In addition, to achieve the above-mentioned purpose, the present application also provides a tool path programming device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the tool path programming method described above when executed by the processor.

[0030] In addition, to achieve the above-mentioned purpose, the present application also provides a readable storage medium, which is a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to implement the steps of the tool path programming method as described above.

[0031] The present application also provides a computer program product, comprising a computer program, which implements the steps of the tool path programming method as described above when the computer program is executed by a processor.

[0032] One or more technical solutions proposed in this application have at least the following technical effects:

[0033] The present application obtains a three-dimensional model of the electrode to be generated, performs feature extraction on the three-dimensional model to obtain electrode features; matches the electrode features with corresponding target machining strategy templates in a preset template library, and performs tool path programming based on the target machining strategy template to obtain a tool path machining program, wherein the template library stores one or more electrode machining strategy templates. In this way, the embodiment of the present application obtains a three-dimensional model of the electrode and performs feature extraction to accurately identify the key features of the electrode, eliminating the time cost of programmers manually analyzing the electrode structure and improving feature recognition efficiency. On the basis of feature extraction, the corresponding target processing strategy template is automatically matched through the preset template library, so that the relationship between the standardized processing strategy and the specific electrode characteristics can be templated based on the experience of historical processing data, so as to pre-build a template library, and automatically match the corresponding target processing strategy template in the template library through the extracted electrode features, thereby avoiding the strategy selection deviation caused by lack of experience in manual programming, and ensuring the accuracy of the subsequent tool path processing program automatically programmed according to the matching results. The overall technical solution uses a coherent automatic programming process of feature recognition, template matching and automatic generation of tool paths, without the need for manual participation in the tool path programming process, thereby improving the efficiency and accuracy of tool path programming. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0036] Figure 1 This is a flow chart of the first embodiment of the tool path programming method of the present application;

[0037] Figure 2 This is a schematic diagram of the tool path programming process involved in an embodiment of the tool path programming method of the present application;

[0038] Figure 3This is a schematic diagram of the electrode programming process involved in an embodiment of the tool path programming method of the present application;

[0039] Figure 4 This is a schematic diagram of the structure of the tool path programming device of this application;

[0040] Figure 5 This 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 the present application.

[0041] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0042] To make the above-mentioned objects, features, and advantages of the present invention more clearly understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.

[0043] Currently, toolpath programming relies primarily on manual labor. While advances in computer technology have led to widespread adoption of programming software for electrode machining, existing programming methods still present several challenges. For example, manual programming is cumbersome, time-consuming, and susceptible to human error, leading to inaccurate programming results and even machining errors. Furthermore, with the increasing variety of electrodes and increasing machining requirements, the efficiency and accuracy of manual programming are no longer sufficient to meet production demands.

[0044] The problems and shortcomings of the existing technology mainly include: low programming efficiency, low accuracy, susceptibility to human factors, etc. The existence of these problems not only increases production costs, but also limits the improvement of production efficiency.

[0045] Based on this, the main solution of this application is: obtain the electrode three-dimensional model of the electrode to be generated, perform feature extraction on the electrode three-dimensional model to obtain electrode features; match the corresponding target processing strategy template in the preset template library according to the electrode features, and perform tool path programming according to the target processing strategy template to obtain a tool path processing program, wherein the template library stores one or more electrode processing strategy templates.

[0046] This application obtains the three-dimensional model of the electrode and performs feature extraction to accurately identify the key features of the electrode, eliminating the time cost consumed by programmers in manually analyzing the electrode structure, thereby improving the efficiency of feature recognition. On the basis of feature extraction, the corresponding target processing strategy template is automatically matched through a preset template library, so that the relationship between the standardized processing strategy and the specific electrode characteristics can be templated based on the experience of historical processing data, so as to pre-build a template library, and automatically match the corresponding target processing strategy template in the template library through the extracted electrode features, avoiding the strategy selection deviation caused by lack of experience in manual programming, and ensuring the accuracy of the subsequent tool path processing program automatically programmed according to the matching results. The overall technical solution uses a coherent automatic programming process of feature recognition, template matching and automatic generation of tool paths, without the need for manual participation in the tool path programming process, thereby improving the efficiency and accuracy of tool path programming.

[0047] It should be noted that the execution entity 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 execution functions, such as a server, tablet computer, personal computer, mobile phone, etc., or a tool path programming device capable of performing the above functions. For example, the server is used as the execution entity to illustrate and describe each embodiment of the tool path programming method of the present application.

[0048] Based on this, the present application proposes a tool path programming method of the first embodiment, referring to Figure 1 As shown, the tool path programming method includes:

[0049] Step S10, obtaining a three-dimensional electrode model of the electrode to be generated;

[0050] The electrode three-dimensional model can specifically be a digital three-dimensional model of the electrode, which can be constructed through computer-aided design software or generated through reverse engineering of a three-dimensional scanning device. The model can include the electrode's geometric topological structure, dimensional tolerance markings, and surface feature parameters (such as discharge area markings and roughness requirements).

[0051] Step S20, extracting features from the electrode three-dimensional model to obtain electrode features, wherein the electrode features include one or more of three-dimensional structural features, curved surface features, concave features, and boundary features;

[0052] The electrode features may specifically include, but are not limited to, one or more of three-dimensional structural features, curved surface features, recessed features, and boundary features. Three-dimensional structural features include, but are not limited to, reinforcement platforms, stepped surfaces, and bosses; curved surface features include, but are not limited to, spheres, cylinders, freeform surfaces, and arcs; recessed features include, but are not limited to, cavities, blind holes, through holes, and keyways; and boundary features include, but are not limited to, corners, edges, and contours. Feature extraction can be achieved through geometric topology analysis algorithms, such as geometric boundary recognition based on edge detection, continuous feature segmentation based on surface fitting, and recessed area classification based on deep learning.

[0053] In step S30 , a corresponding target machining strategy template is matched in a preset template library according to the electrode feature, and tool path programming is performed according to the target machining strategy template to obtain a tool path machining program, wherein the template library stores one or more electrode machining strategy templates.

[0054] The preset template library is a pre-set database storing a plurality of electrode processing strategy templates. Each electrode processing strategy template may be a pre-set set of logical rules for indicating a tool path processing process, such as a logical rule for binding a processing path to a processing strategy. For example, a certain electrode processing strategy template may be:

[0055] {Roughing (machining path): contour milling (machining strategy);

[0056] Semi-finishing (machining path): even distribution of residual material (machining strategy);

[0057] Finishing (machining path): spiral interpolation or streamlined cutting (machining strategy);

[0058] Special area processing (such as R corners, narrow grooves) (processing path): compensation processing (processing strategy)}.

[0059] After matching the target machining strategy template, tool path programming is performed based on the template to generate a tool path program. This tool path program can be an intermediate code of parameterized path instructions, such as an ATC (Automatic Tool Changer Code) code or a G-code (G instruction) code. After obtaining the target machining strategy template, tool path programming can be completed by calling computer-aided design software.

[0060] This embodiment obtains a three-dimensional model of the electrode and performs feature extraction to accurately identify the key features of the electrode, eliminating the time cost of programmers manually analyzing the electrode structure, thereby improving the efficiency of feature recognition. Based on feature extraction, the corresponding target processing strategy template is automatically matched through a preset template library, so that the relationship between the standardized processing strategy and the specific electrode characteristics can be templated based on the experience of historical processing data, so as to pre-build a template library, and automatically match the corresponding target processing strategy template in the template library through the extracted electrode features, avoiding the strategy selection deviation caused by lack of experience in manual programming, and ensuring the accuracy of the subsequent tool path processing program automatically programmed according to the matching results. The overall technical solution uses a coherent automatic programming process of feature recognition, template matching and automatic generation of tool paths, without the need for manual participation in the tool path programming process, thereby improving the efficiency and accuracy of tool path programming.

[0061] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to above and will not be described in detail. On this basis, as one embodiment, the step of matching the corresponding target machining strategy template in the preset template library based on the electrode features includes:

[0062] Step A10: searching a preset template library for a target machining strategy template that matches the electrode feature based on a preset first mapping relationship, wherein the first mapping relationship is a mapping relationship between different electrode features and electrode machining strategy templates.

[0063] The first mapping relationship can be constructed based on the feature-strategy association pattern in the historical processing data, specifically by decomposing the electrode features into a combination of three-dimensional structure features, surface features, recessed features and boundary features, and associating the corresponding processing strategy template for each combination form to form a mapping rule library. Exemplarily, the first mapping relationship can be {[A three-dimensional structure feature, A surface feature, A recessed feature, A boundary feature is mapped to electrode processing strategy template 1], [A three-dimensional structure feature, A surface feature, A recessed feature, B boundary feature is mapped to electrode processing strategy template 2], [A three-dimensional structure feature, A surface feature, B recessed feature, A boundary feature is mapped to electrode processing strategy template 3]... [D three-dimensional structure feature, D surface feature, D recessed feature, D boundary feature is mapped to electrode processing strategy template N]}.

[0064] Through the precise mapping of feature combinations and strategy templates, the trial-and-error iteration of manual programming strategies can be reduced, and the intelligent level of process planning and the consistency of processing quality of complex electrode processing can be improved.

[0065] As another embodiment, the step of matching the corresponding target machining strategy template in a preset template library based on the electrode feature includes:

[0066] In step A20 , a feature hierarchical relationship tree is constructed according to each sub-feature in the electrode feature, and a corresponding target processing strategy template is matched in a preset template library based on the feature hierarchical relationship tree.

[0067] The feature hierarchy tree is a tree-like data structure that represents the subordination, processing priority, and process dependency between electrode features. It is constructed by analyzing the geometric dependencies and processing constraints of each sub-feature. For example, as an example, the feature hierarchy tree is: {root node: three-dimensional structure feature (reinforcement platform), first-level child node: surface feature (free-form surface), first-level child node: boundary feature (sharp edge), second-level child node of surface feature: recessed feature (cavity)}.

[0068] Through the structured expression of the feature hierarchical relationship tree, the geometric correlation and process dependency of the electrode features are explicitly encoded, so that the template matching process can dynamically match the processing logic template based on the logical relationship between features (such as processing sequence dependency and geometric support constraints), avoiding the strategy conflicts or process redundancy caused by traditional single feature matching, and improving the adaptation accuracy of the matched processing strategy, thereby improving the rationality of process planning and processing efficiency of complex electrode processing, and reducing the rework rate caused by incorrect feature processing sequence.

[0069] Furthermore, as one embodiment, the step of matching the corresponding target processing strategy template in a preset template library based on the feature hierarchical relationship tree includes:

[0070] Step B10: searching for a target processing strategy template that matches the feature hierarchy tree in a preset template library based on a preset second mapping relationship, wherein the second mapping relationship is a mapping relationship between different feature hierarchy trees and electrode processing strategy templates.

[0071] The node hierarchical relationship of the feature hierarchy tree (such as the subordinate order of parent nodes and child nodes) can be traversed and compared with the feature tree structure of the strategy template in the template library to obtain the feature tree structure that is consistent or has the highest similarity, and the electrode processing strategy template corresponding to the compared feature tree structure can be determined as the target processing strategy template. For example, if a concave feature is detected as a child node of a surface feature in the feature hierarchy tree, the linkage strategy template that includes performing cavity processing after surface processing is matched to ensure that the processing order is consistent with the subordinate relationship between features.

[0072] By matching the target processing strategy template in the template library according to the topological structure of the feature hierarchical relationship tree, the target processing strategy template can strictly follow the subordinate order and structural correlation between the electrode features. For example, when the recessed feature is a child node of the surface feature, it is directly mapped to the linkage strategy template that performs surface processing first and then cavity processing, thereby ensuring that the generation logic of the tool path is synchronized with the actual geometric dependency of the electrode features, effectively avoiding tool interference, residual allowance anomalies or damage to feature processing integrity caused by misalignment of the processing sequence. At the same time, through the tree structure of the feature hierarchical relationship tree and the automated comparison mechanism of the template hierarchical logic, the accuracy of strategy template matching and the efficiency of processing process planning can be significantly improved, reducing dependence on manual experience and enhancing the controllability of complex electrode processing processes.

[0073] As another embodiment, the step of matching the corresponding target processing strategy template in a preset template library based on the feature hierarchical relationship tree includes:

[0074] Step B20, based on the preset third mapping relationship, obtain the basic processing technology corresponding to each of the sub-features, screen the available processing technology among the basic processing technologies based on the feature hierarchical relationship tree, and search the preset template library for the target processing strategy template that matches the available processing technology based on the fourth mapping relationship, wherein the third mapping relationship is the mapping relationship between different feature types and processing technologies, and the fourth mapping relationship is the mapping relationship between different processing technologies and electrode processing strategy templates.

[0075] The third mapping relationship is a rule table that associates feature types with process knowledge bases. For example, the reinforcement platform in the three-dimensional structure feature is mapped to the uniform layered milling process, the free-form surface in the surface feature is mapped to the parameter line planning and curvature adaptive feed process, the deep cavity in the recessed feature is mapped to the layered circular cutting and tool radial avoidance process, and the sharp edge in the boundary feature is mapped to the cycloidal milling process.

[0076] The fourth mapping relationship is the binding rule between different machining processes and strategy templates. For example, if it is necessary to execute equal-height layered milling and parametric line planning processes at the same time, it is mapped to a strategy template that includes the linkage of three-dimensional offset roughing and surface finishing; if there is a combination of layered circumferential cutting and cycloidal milling processes, it is associated with a template with integrated logic of deep cavity roughing and edge finishing, etc.

[0077] The third mapping relationship is used to match the corresponding basic processing technology for each sub-feature (such as reinforcement table → uniform height layered milling, free surface → parameter line planning). It should be noted that each sub-feature here may match multiple basic processing technologies in the third mapping relationship. Therefore, based on the feature hierarchy tree, available processing technologies are screened out from all basic processing technologies. Specifically, based on the subordinate logic and process compatibility rules of the feature hierarchy tree, available processing technologies that are compatible with the parent node process and the overall processing flow can be screened out from all basic processing technologies. For example, assuming that for a sub-feature in the feature hierarchy tree (such as a recessed feature), multiple possible processing technologies are matched through the third mapping relationship (such as cavity processing can match layered circumferential cutting, spiral milling or cycloidal milling processes). If the recessed feature is a child node of the surface feature and the parent node has been matched with the parameter line planning process, the cavity processing technology that is compatible with the surface processing result is screened out. If there is a boundary feature at the same level and the cycloidal milling process has been matched, the cavity process that does not conflict with the cycloidal milling tool path is screened out.

[0078] The process combination of the screened available processing technologies (such as "parameter line planning → layered circular cutting → trochoidal milling") is input into the fourth mapping relationship to match the target processing strategy template that supports multi-process collaboration in the template library.

[0079] By combining the subordinate logic of the feature hierarchical relationship tree with the process compatibility rules, the basic processing technology matched by the third mapping relationship is screened to ensure that the available processing technology after screening can not only meet the independent processing requirements of each sub-feature, but also adapt to the structural dependency relationship between features; further through the fourth mapping relationship, the ordered process combination is accurately bound to the multi-process collaborative strategy template in the template library, so that the process arrangement of the processing strategy template strictly follows the feature hierarchy order, thereby eliminating the problems of machining allowance mutation, tool interference and feature matching accuracy deviation caused by process sequence disorder or path conflict, and at the same time, through the automated screening and mapping mechanism, the subjective intervention of manual process planning is reduced, and the one-time forming qualification rate and process planning efficiency of multi-feature electrode processing are significantly improved.

[0080] Based on the first and / or second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the first and second embodiments can be referred to above and will not be described in detail. On this basis, the target machining strategy template includes at least one machining strategy and a machining path corresponding to each machining strategy. The step of programming a tool path according to the target machining strategy template to obtain a tool path machining program includes:

[0081] Step C10, matching a corresponding tool model according to the target machining strategy template, and determining machining parameters according to the tool model, the electrode characteristics, and the target machining strategy template, wherein the machining parameters include one or more of a spindle speed range, a feed speed range, a cutting depth, and a tool path stepover;

[0082] The machining path is the motion trajectory planning of the tool relative to the workpiece surface during the electrode machining process, which is specifically represented by the sequence of coordinate points and their connection method in the CNC code. The machining strategy is the core logical rule that drives the generation of the machining path, including but not limited to process stage division (roughing, semi-finishing, finishing), cutting mode selection (down milling, up milling, trochoidal milling), tool motion parameters (feed rate, cutting depth) and path optimization algorithm (residual material avoidance, overcut protection) One or more.

[0083] Tool model matching can be based on the machining strategy's requirements for tool geometric characteristics. For example, the roughing strategy matches a large-diameter multi-edge end mill to improve cutting efficiency, and the finishing strategy matches a ball-end mill to achieve surface smoothing.

[0084] The processing parameters are determined by analyzing the process rules and electrode characteristic parameters (such as material hardness and surface curvature) in the target processing strategy template, dynamically calculating the spindle speed range (for example, when a carbide tool is used to process steel, the speed is set to 8000-12000rpm), feed speed range (such as 2000mm / min in the roughing stage and 500mm / min in the finishing stage), cutting depth (such as 0.5mm layer depth in roughing and 0.1mm layer depth in finishing) and tool path pitch (such as the line spacing is 40% of the tool diameter), and associating them with the specific processing path.

[0085] Step C20 , determining the path sequence of each of the processing paths, programming and combining the processing strategies in sequence based on the path sequence and binding the processing parameters to obtain a tool path processing program.

[0086] The path sequence between different processing paths can be pre-set, for example, the path sequence follows the process progression principle of "from roughing to semi-finishing, and then to finishing".

[0087] After obtaining information such as tool model, machining strategy, machining path, and machining parameters, automatic programming can be performed according to programming combination rules to obtain a tool path machining program. For example, the programming combination logic binds the process rules of the machining strategy (such as the equal-height layering algorithm for rough machining) with the path geometry data of the machining path (such as the Z-axis layering coordinates), and injects the tool path code generated by the machining parameters to obtain the tool path machining program. For example, the layer depth parameter of the rough machining strategy is converted into the Z value cycle instruction in the G code, and the curvature adaptive feed of the finishing strategy is mapped to the F value dynamic change instruction.

[0088] By precisely binding the process rules in the machining strategy (such as the division of rough and fine machining stages, and the selection of cutting modes) with the tool model and dynamic parameters (such as spindle speed and feed rate), and combining the geometric characteristics of the machining path (such as Z-axis layered coordinates and curvature direction cutting) to generate the tool path machining program, the coupling of machining parameters and path planning is achieved. For example, in the rough machining stage, a large-diameter tool is used to match a high-speed and large-layer-depth equal-height layered path to quickly remove the allowance; in the finishing stage, a ball-end tool is switched to and a surface parameter line path with low feed and small spacing is bound to ensure surface smoothness; at the same time, through the progressive arrangement of the path sequence (for example, from rough machining to semi-finishing, and then to finishing) and the coding of process rules, cutting vibration, abnormal residual allowance and substandard surface quality caused by manual parameter setting deviations or path sequence misalignment are eliminated, while improving machining efficiency while ensuring machining accuracy and process stability, and reducing manual intervention through automated programming mechanisms, significantly reducing the complexity of process planning and trial-and-error costs.

[0089] In one possible implementation, 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; and the steps of determining a path sequence of the machining paths, and sequentially programming and combining the machining parameters and the machining strategies based on the path sequence to obtain a tool path machining program include:

[0090] In step D10 , the roughing strategy, the semi-finishing strategy and the finishing strategy are combined based on sequential programming from a roughing path, a semi-finishing path to a finishing path to obtain a tool path processing program.

[0091] It should be noted that the roughing strategy is the machining strategy adopted in the roughing path stage, such as the equal-height layered milling strategy adopted in the roughing stage; the semi-finishing strategy is the machining strategy adopted in the semi-finishing path stage, such as the residual material uniform distribution strategy adopted in the semi-finishing path stage; the finishing strategy is the machining strategy adopted in the finishing path stage, such as the spiral interpolation or streamlined tool path strategy adopted in the finishing path stage.

[0092] The machining strategy includes but is not limited to rough machining strategy, semi-finishing strategy and finishing strategy. For example, it may include special area machining strategy, such as compensatory machining strategy for special areas such as R corners and narrow grooves. Specifically, the compensatory machining strategy is superimposed in the finishing stage. For example, in the R corner area: an equal residual compensation strategy is adopted, and a multi-pass trochoid milling path is generated according to the difference between the R corner radius and the tool radius to ensure that the root allowance of the fillet is cleared; in the narrow groove area: a tool deflection avoidance strategy is adopted, and the interference between the tool side wall and the groove wall is avoided by combining axial tilt feed with trochoid trajectory.

[0093] Through the progressive combination of roughing, semi-finishing and finishing strategies, the material removal rate is maximized in the roughing stage, the allowance mutation is eliminated in the semi-finishing stage, and the surface quality indicators are achieved in the finishing stage, ensuring the balance between efficiency and precision of the tool path program; the coded conversion of strategies in each stage realizes the seamless connection between the processing logic and the CNC system, reduces manual programming errors and improves the process reliability of complex electrode processing.

[0094] For example, in order to help understand 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 listed. In this specific embodiment, referring to Figure 2 As shown in the figure, the tool path programming process includes:

[0095] 1. Feature analysis: Based on the mapping software calling API to analyze the electrode features, automatically extract and classify the processing feature types, including but not limited to:

[0096] Three-dimensional structural features: reinforcement platform, step surface, boss, etc.

[0097] Surface features: sphere, cylinder, free-form surface, arc surface, etc.;

[0098] Recessed features: cavities, blind holes, through holes, keyways, etc.

[0099] Boundary features: corners, edges, contour lines, etc.

[0100] 2. Processing logic matching: According to the analyzed feature type, the corresponding processing logic template is retrieved from the preset processing strategy library, including:

[0101] Retrieval of mapping relationship between feature type and processing technology;

[0102] Establish a tree structure of feature hierarchical relationships;

[0103] Dynamically match the optimal processing template combination, that is, the target processing strategy template, and pre-establish a standard library containing electrode processing strategy templates for various electrode types.

[0104] 3. Tool parameter configuration: Based on the matching machining logic template (i.e., target machining strategy template), perform the following operations:

[0105] Automatically retrieve the appropriate tool model from the tool database;

[0106] Dynamically calculate machining parameters based on feature geometry parameters: such as spindle speed range: 1000-20000rpm, feed speed range: 50-5000mm / min, cutting depth: 0.1-5mm, tool path step: 0.01-2mm, etc.

[0107] 4. Tool path generation is performed in accordance with the processing logic sequence:

[0108] Roughing path planning: using the contour milling strategy;

[0109] Semi-finishing path optimization: implement the residual material uniform distribution algorithm;

[0110] Finishing path generation: Apply spiral interpolation or streamlined tool path;

[0111] Special area processing: Compensation processing is performed on features such as R corners and narrow grooves.

[0112] 5. Tool path combination: logically combine the processing paths of each feature according to the process sequence to form a complete tool path processing program, that is, to obtain the programmed tool path, including:

[0113] Process division: from roughing to semi-finishing, and then to finishing;

[0114] Smooth transition processing of tool paths;

[0115] Automatic calculation of safety height;

[0116] Tool change command inserted.

[0117] 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. More forms of simple transformations based on this technical concept are all within the scope of protection of this application.

[0118] Based on the first, second, and / or third embodiments of the present application, in the fourth embodiment of the present application, the same or similar contents as those of the first, second, and third embodiments can be referred to above and will not be described in detail. On this basis, after the step of programming the tool path according to the target machining strategy template to obtain the tool path machining program, the method further includes:

[0119] Step E10, performing a qualification check on the tool path processing program to obtain a check result;

[0120] This qualification check is used to verify the qualification of the tool path machining program, and may include but is not limited to one or more of interference verification, geometric integrity verification, and parameter compliance verification. Interference verification refers to the use of kinematic simulation to detect whether there is any risk of unexpected contact or collision between the tool body, tool holder, or machine tool spindle and other moving parts in the tool path, the workpiece, the fixture, or the machine tool body. Geometric integrity verification refers to the detection of breakpoints, redundant movement, or a minimum clearance with the electrode model that does not meet the safety threshold in the tool path. Parameter compliance verification verifies whether the parameterized instructions are within the allowable range of the process database.

[0121] Step E20: If the verification result indicates that the verification is passed, then it is determined that the tool path programming is completed;

[0122] The conditions for determining whether the verification has passed can be set in advance, such as interference verification passed (no unexpected contact or collision risk), geometric integrity verification passed (no path breakpoints and safety clearance meets the standard), and parameter compliance verification passed (all parameters are within the allowable range). When it is detected that the verification result meets the verification pass condition, the verification result is determined to indicate that the verification has passed, and the tool path programming is determined to be completed.

[0123] Step E30: If the verification result indicates that the verification fails, the tool path processing program is automatically modified.

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

[0125] By checking the qualification of the tool path processing program, the subsequent process will be executed only when the qualification check is passed, thus ensuring the executability and safety of the tool path processing program and avoiding processing accidents or material waste caused by program errors; if the qualification check fails, the tool path processing program will be automatically modified, thereby automatically correcting and improving programming efficiency, reducing the number of repeated checks, forming a technical closed loop from verification to correction, and significantly improving the robustness and fault tolerance of the tool path programming process.

[0126] For example, in one possible implementation, the step of automatically modifying the tool path processing program may include:

[0127] Step E301, if the reason why the tool path machining program is unqualified includes failure of interference check, modifying the tool path machining program by using a strategy for correcting the tool path;

[0128] The failure of the interference check may specifically be due to the detection of a collision risk or unexpected contact between the tool body, tool holder or machine tool spindle and the workpiece, fixture or machine tool body. The reasons for the failure of the tool path processing program include the failure of the interference check. In this case, the tool path processing program can be modified by correcting the strategy of the tool path. Specifically, the tool path can be automatically corrected based on the kinematic simulation results. Kinematic simulation includes collision area positioning and unexpected contact positioning. Specifically, the specific coordinate range and collision component type of the collision area or unexpected contact area (such as interference between the tool holder and the fixture, overcutting of the tool and the workpiece) can be obtained through kinematic simulation. Based on the kinematic simulation results, avoidance instructions can be dynamically inserted in the collision area or the tool trajectory can be adjusted, such as tool lifting and radial compensation, to automatically correct the tool path.

[0129] Step E302 , if the reason for the tool path processing program to fail includes missing parameters, modifying the tool path processing program by automatically filling in the missing parameters with default values;

[0130] If missing parameters are detected in the toolpath program, the toolpath program is automatically modified by filling in default values. Furthermore, for different parameter types, default parameter values ​​can be pre-associated based on machining characteristics such as electrode material (e.g., copper, graphite), tool type (e.g., ball-end cutter, flat-bottom cutter), and / or machining stage (roughing / finishing). For example, a speed parameter: a Φ6mm tool is bound to a speed of 3000 rpm by default, and a feed rate parameter: a roughing stage is bound to a feed of 800 mm / min by default.

[0131] Step E303 , if the reason for the tool path processing program to fail includes the process parameter exceeding a limit, modify the tool path processing program by correcting the exceeding parameter to a preset safety range;

[0132] This preset full range is based on the allowable parameter range set according to the physical limits (such as the maximum speed of 8000 rpm, the maximum feed rate of 800 mm / min) and process constraints (such as the maximum cutting depth of 0.2 mm in thin-walled areas) stored in the machine tool parameter library.

[0133] Step E304, if the reason for the failure of the tool path processing program includes insufficient insertion of safety instructions, the tool path processing program is modified by recalculating the tool lift height according to a preset safety factor and replacing the tool lift instruction coordinate value and / or completing the safety instruction.

[0134] When the tool path machining program has insufficient safety height, the safety height can be supplemented by recalculating the tool lift height according to the preset safety factor and replacing the tool lift command coordinate value. When the tool path machining program lacks safety instructions at key nodes such as tool change points and path turning points, the missing safety instructions can be supplemented through the safety instruction completion strategy.

[0135] Specifically, for the calculation of the tool lifting height, the tool lifting height can be recalculated according to the tool length and the Z-axis travel allowance of the machine tool according to the preset safety factor, such as multiplying the tool length by the preset safety system to obtain the tool lifting height.

[0136] Automatic path correction driven by interference verification results eliminates the risk of machine tool damage caused by unexpected contact. A default value auto-fill strategy for missing parameters, such as matching a rotational speed of 3000 rpm and a roughing feed rate of 800 mm / min based on electrode material, tool type, and machining stage, ensures the integrity of tool path program parameters and their adaptability to the machining scenario, avoiding program interruptions or machining anomalies caused by human errors. For process parameter out-of-limit issues, the system dynamically adjusts to a safe range based on the machine's physical limits and process constraints to prevent equipment overload or substandard machining quality. For missing safety instructions, safety-factor-driven height calculation and key node instruction completion eliminate the risk of tool collisions and motion interference. Machine kinematic verification ensures that the corrected path complies with travel limits. The synergistic effect of these strategies enables the self-repair capability of tool path programs, reducing manual correction costs. A verification mechanism ensures that the corrected program can be safely processed, forming an efficient and reliable technical solution for program error correction.

[0137] In a possible implementation, before the step of obtaining the electrode three-dimensional model of the electrode to be generated, the method further includes:

[0138] Step F10, in response to the tool path programming generation task, obtaining an electrode identifier of the electrode to be generated according to the tool path programming generation task;

[0139] Step F20 , obtaining a matching electrode three-dimensional model from a preset file management system according to the electrode identification.

[0140] The server can be configured with an archive management system for storing electrode 3D models. Upon receiving a tool path programming task issued by a task dispatching client, the server can retrieve the corresponding electrode 3D model from the archive management system based on the task parameters of the tool path programming task. The task parameters are specifically consistent with the storage index used by the archive management system to store the electrode 3D model. For example, in this embodiment, the electrode 3D model is stored using the electrode identifier as the storage index. Upon receiving the tool path programming task, the server obtains the electrode identifier based on the tool path programming task and retrieves the corresponding electrode 3D model from the archive management system using the obtained electrode identifier.

[0141] 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 contents as those in the first, second, third and fourth embodiments can be referred to above and will not be described in detail. On this basis, after the step of programming the tool path according to the target machining strategy template to obtain the tool path machining program, the method further includes:

[0142] Step G10, performing automatic batch processing based on the tool path machining program to obtain batch processing results, wherein the batch processing includes post-processing, point checking, drawing and simulation;

[0143] Post-processing refers to converting the tool path program into NC (Numerical Control Code) code that can be recognized by the target CNC 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-specific control codes (such as M03 spindle start).

[0144] Point tracking refers to the automatic placement of points on the surface of the electrode 3D model, such as automatically generating the coordinates of the machining positioning points and simulating the clamping to check the rationality of the spatial position of the points;

[0145] Drawing output refers to the automatic generation of machining drawings (which can be electronic machining drawings) containing dimensional tolerances and surface roughness annotations based on the structural features of the electrode 3D model, as well as process guidance documents (which can also be electronic versions of process guidance documents) that record machining parameters;

[0146] Simulation refers to executing NC code in a virtual machining environment to verify the interference between the tool path and the electrode three-dimensional model, the machine tool travel limit and the machining accuracy, to ensure the safety and feasibility of the program.

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

[0148] It should be noted that the server can realize automatic batch processing through distributed electrode programmers and modular pipeline architecture. For example, post-processing, point checking, drawing and simulation are encapsulated into independent processing modules. The scheduler dynamically allocates batch processing tasks according to the load status of the computing node, so that each module is executed in parallel based on the shared memory data pool, and the upstream and downstream processes are triggered through the event-driven mechanism.

[0149] Step G20, if the simulation result in the batch processing result indicates that the simulation is passed, then determining that the electrode programming is completed;

[0150] Specifically, the conditions for simulation passing can be set in advance, such as no interference between the tool path and the electrode three-dimensional model, the machine tool stroke is within the limit and the processing accuracy meets the standard. When it is detected that the simulation result meets this simulation passing condition, it is determined that the simulation result indicates that the simulation has passed, and it is determined that the electrode programming of the obtained tool path processing program is completed.

[0151] Furthermore, after confirming that electrode programming is complete, the NC code generated by post-processing can be marked as executable and synchronized to the target machine tool's drive library. At the same time, the reference point coordinate sequence file generated by the stepping is written into the machine tool's workpiece coordinate system parameter table. The processing drawings and process guidance documents generated by the output are associated with the electrode identification code and filed in a preset archive management database. The simulation results are recorded in the task log for subsequent traceability. The target machine tool is the CNC machine tool used to subsequently execute the NC code to generate the electrode.

[0152] Step G30: If the simulation result in the batch processing result indicates that the simulation fails, the input tool path modification instruction is obtained, and the modified tool path processing program is obtained according to the tool path modification instruction. According to the modified tool path processing program, the step of automatically batch processing based on the tool path processing program to obtain the batch processing result is returned to be executed.

[0153] 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 failed, 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 is within 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 failed. Specifically, the correction process includes obtaining manually input tool path modification instructions such as adjusting the tool compensation value, modifying the cutting parameters, or reconstructing the path geometry, adjusting the parameters of the original tool path processing program or regenerating the path 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 review 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.

[0154] After acquiring the toolpath machining program, this embodiment integrates the manually executed step-by-step post-processing, point tracking, drawing, and simulation steps into an automated batch processing sequence based on the toolpath machining program, eliminating the redundant time operators spend switching between multiple independent tools and waiting for software responses. By connecting the originally discrete steps into a continuous execution process, the data flow and processing between each step are seamlessly connected, significantly shortening the overall electrode programming cycle. Through automated batch processing, the uncertainty of manual operation nodes and processes is reduced, and the consistency and efficiency of the programming process are improved, thereby improving the efficiency and automation level of electrode programming, and thus improving the efficiency and automation level of EDM.

[0155] In a possible implementation, before the step of determining that electrode programming is completed, the method further includes:

[0156] Step I10: outputting the batch processing results to a preset audit system;

[0157] The audit system can specifically be an audit client connected to the server, which transmits the NC code, processing drawings, process guidance documents and simulation results 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.

[0158] Step I20, if an audit pass instruction based on the batch processing result is received in the audit system, then executing the step of determining whether the electrode programming is completed;

[0159] If the audit system returns an audit pass instruction after manual review or automatic verification of the batch results, the NC code can be marked as executable and synchronized to the target machine tool, and the electrode programming task status is updated to "completed".

[0160] In step I30, if an audit failure instruction based on the batch processing result is received in the audit system, a preset human intervention mechanism is triggered.

[0161] The preset human intervention mechanism can specifically be sending an abnormal work order notification to the designated engineer terminal, where the notification content includes error details, associated electrode three-dimensional model identification and correction suggestions, or locking the operation authority of the current task until it is manually corrected and resubmitted for review, etc. This embodiment does not impose specific restrictions on this.

[0162] Through the closed-loop feedback mechanism of the audit system and automatic batch processing, manual audit nodes are embedded in the automated process to ensure the reliability and safety of the electrode programming results, and avoid processing accidents or material waste caused by program errors. If the audit fails, the intervention mechanism (such as intelligent notification, permission control, etc.) is triggered, taking into account both the efficiency of automation 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 ensuring that the electrode generation meets the quality control standards of industrial intelligent production.

[0163] In a possible implementation, the server includes a batch processing system, and the step of automatically performing batch processing based on the tool path processing program to obtain batch processing results includes:

[0164] Step J10: sending a batch processing start instruction for the tool path processing program to the batch processing system, so that the batch processing system automatically performs batch processing based on the tool path processing program to obtain a batch processing result after receiving the batch processing start instruction.

[0165] In this embodiment, when batch processing needs to be executed, a batch processing start instruction for the tool path processing program is sent to the batch processing system. The batch processing system responds to the batch processing start instruction, automatically triggers the collaborative work of the post-processing, point tracking, drawing output and simulation processing modules, and performs code conversion, positioning point generation, drawing output and simulation verification operations in sequence based on the tool path processing program to generate batch processing results 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.

[0166] In this embodiment, by constructing the batch start instruction and the response execution of the batch system into an event-driven closed-loop control process, fully automated processing from tool path program to CNC code is achieved, which significantly reduces manual intervention and improves the efficiency of multi-task concurrent processing; at the same time, based on the modular collaborative architecture design, it ensures that the processing parameters and geometric data required for post-processing, point measurement, drawing and simulation can be kept consistent, avoiding processing anomalies caused by cross-process data mismatch.

[0167] In a possible implementation, before the step of sending a batch processing start instruction for the tool path machining program to the batch processing system, the method further includes:

[0168] Step K10, obtaining the system status of the batch processing system;

[0169] The system status may specifically include an idle state and a busy state, wherein the idle state refers to a state in which 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 in which the batch processing system is executing at least one batch processing task or the system resource occupancy rate exceeds a preset threshold.

[0170] Step K20, if the system status indicates that the batch processing system is in an idle state, executing the step of sending a batch processing start instruction for the tool path processing program to the batch processing system;

[0171] If the batch processing system is in an idle state, it indicates that the batch processing system can currently process batch processing tasks. At this time, a batch processing start instruction is sent to the batch processing system, so that the batch processing system responds to the batch processing start instruction and executes subsequent batch processing processes.

[0172] Step K30: If the system status indicates that the batch processing system is in a busy state, the tool path processing program is stored in a preset waiting queue.

[0173] If the batch processing system is in a busy state, it means that the batch processing system is currently unable to process the batch processing task. For example, the batch processing system may be executing another batch processing task. At this time, the tool path processing program is stored in the preset waiting queue, so that when the batch processing system is detected to be in an idle state, the tool path processing program is taken out from the waiting queue, and a batch start instruction is initiated for the taken out tool path processing program, to ensure that the batch processing tasks of the multi-electrode programming task can be carried out in an orderly manner.

[0174] In this embodiment, by real-time monitoring of the idle and busy states of the batch processing system, a dynamic decision is made whether to execute the task immediately or temporarily store it in a waiting queue, thereby achieving adaptive matching of task scheduling and system resource occupancy, and avoiding processing delays or system crashes due to resource overload; at the same time, a task temporary storage mechanism based on the waiting queue ensures that multiple electrode programming tasks are processed in a certain order, eliminating the risk of task omissions or conflicts, and combining the closed-loop logic of state detection and queue management to form a high-stability, high-throughput batch task execution system, which significantly improves the processing efficiency of electrode programming tasks and system reliability.

[0175] In a possible implementation, the step of storing the tool path processing program in a preset waiting queue includes:

[0176] Step L10, obtaining or setting the priority of the tool path processing program, and associating the tool path processing program with the priority and storing it in a preset waiting queue;

[0177] 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, and the tool path processing program is associated with the priority and stored in a preset waiting queue, which can be a first-in-first-out queue sorted by priority.

[0178] The step of sending a batch processing start instruction for the tool path processing program to the batch processing system includes:

[0179] Step L20 , taking out a target tool path processing program with the highest priority from the waiting queue, and sending a batch processing start instruction for the target tool path processing program to the batch processing system.

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

[0181] This embodiment achieves differentiated processing of multiple electrode programming tasks through a priority-driven waiting queue management mechanism, ensuring that high-priority tasks (such as urgent orders or precision machining tasks) occupy system resources first, significantly shortening the overall processing cycle of critical tasks, avoiding delays in high-priority tasks caused by low-priority tasks preempting resources, and making it possible to adapt to real-time changes in production plans through dynamic priority settings (such as automatically increasing the priority of corner-clearing electrode tasks based on process complexity). Ultimately, on the basis of ensuring fairness in task processing, it maximizes system resource utilization and task response efficiency, forming an electrode programming task scheduling system that takes into account both efficiency and flexibility.

[0182] For example, in order to help understand the technical concept or technical principle of the electrode programming method after combining this embodiment with the above-mentioned first embodiment, second embodiment, third embodiment and fourth embodiment, a specific embodiment is now listed. In this specific embodiment, the electrode programming method is applied to the server, referring to Figure 3 As shown, the server is connected to the client. The server includes a file management system, an automatic programming system, and a batch processing system. The server enables the automatic programming system and other process links to be fully unmanned, realizing full-link automation from tool path programming, point measurement, NC code output, to simulation. Based on this, the electrode programming process includes:

[0183] 1. Task assignment stage:

[0184] 1) The client assigns tasks to the server: the electrode processing tasks are assigned to the server queue.

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

[0186] 3) Download files: Download the relevant electrode engineering files (i.e. electrode 3D models) and parameters to the server.

[0187] 2. Automatic programming stage:

[0188] 1) Feature analysis: Analyze electrode features and identify electrode processing features.

[0189] 2) Processing logic matching: According to the analyzed feature type, the corresponding processing logic template is retrieved from the preset processing strategy library.

[0190] 3) Tool parameter configuration: based on matching machining logic template.

[0191] 4) Tool path generation: The processing paths of each feature are logically combined according to the process sequence to form a complete processing program sequence (i.e. tool path processing program).

[0192] 3. Batch processing stage:

[0193] 1) Automatic post-processing: Converts toolpath programs into NC code recognizable by the machine tool. This includes coordinate system conversion, tool radius compensation commands, tool length compensation commands, and machine-specific control code generation.

[0194] 2) Automatic point placement: Simulate the test and automatically place points on the electrode model.

[0195] 3) Automatic drawing output: Generate processing drawings and process documents.

[0196] 4) Automatic simulation: Verify program safety and feasibility through virtual processing.

[0197] 4. Audit and archiving

[0198] 1) Automatic submission for review: The complete processing plan is pushed to the review system and waits for final confirmation.

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

[0200] 5. NG (No Good) processing

[0201] 1) Simulation result is NG, triggering manual intervention:

[0202] 2) Manual modification: Engineers manually adjust tool path parameters or process strategies.

[0203] 3) Resubmit to the server and repeat step 3 until OK.

[0204] 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. More simple transformations based on this technical concept are all within the scope of protection of this application.

[0205] In addition, the present application also provides a tool path programming device, referring to Figure 4 As shown, the tool path programming device includes:

[0206] An acquisition module 10 is used to acquire a three-dimensional electrode model of the electrode to be generated;

[0207] A feature extraction module 20 is configured to extract features from the electrode three-dimensional model to obtain electrode features, wherein the electrode features include one or more of three-dimensional structural features, surface features, concave features, and boundary features;

[0208] The tool path programming module 30 is used to match the corresponding target processing strategy template in the preset template library according to the electrode characteristics, and perform tool path programming according to the target processing strategy template to obtain a tool path processing program, wherein the template library stores one or more electrode processing strategy templates.

[0209] In one embodiment, the tool path programming module 30 is further configured to:

[0210] searching for a target machining strategy template that matches the electrode feature in a preset template library based on a preset first mapping relationship, wherein the first mapping relationship is a mapping relationship between different electrode features and electrode machining strategy templates; or

[0211] A feature hierarchical relationship tree is constructed according to each sub-feature in the electrode feature, and a corresponding target processing strategy template is matched in a preset template library based on the feature hierarchical relationship tree.

[0212] In one embodiment, the tool path programming module 30 is further configured to:

[0213] Searching for a target machining strategy template that matches the feature hierarchy tree in a preset template library based on a preset second mapping relationship, wherein the second mapping relationship is a mapping relationship between different feature hierarchy trees and electrode machining strategy templates; or

[0214] Based on a preset third mapping relationship, the basic processing technology corresponding to each of the sub-features is obtained, and based on the feature hierarchical relationship tree, the available processing technology is screened in each of the basic processing technologies. Based on a fourth mapping relationship, a target processing strategy template matching the available processing technology is searched in a preset template library, wherein the third mapping relationship is a mapping relationship between different feature types and processing technologies, and the fourth mapping relationship is a mapping relationship between different processing technologies and electrode processing strategy templates.

[0215] In one embodiment, the target machining strategy template includes at least one machining strategy and a machining path corresponding to each machining strategy, and the tool path programming module 30 is further configured to:

[0216] Matching a corresponding tool model according to the target machining strategy template, and determining machining parameters according to the tool model, the electrode characteristics, and the target machining strategy template, wherein the machining parameters include one or more of a spindle speed range, a feed speed range, a cutting depth, and a tool path stepover;

[0217] The path sequence of each of the machining paths is determined, and based on the path sequence, the machining strategies are sequentially programmed and combined and the machining parameters are bound to obtain a tool path machining program.

[0218] In one embodiment, 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; and in determining the path sequence of each machining path, the tool path programming module 30 is further configured to:

[0219] The roughing strategy, the semi-finishing strategy and the finishing strategy are combined based on path sequence programming from a roughing path, a semi-finishing path to a finishing path to obtain a tool path processing program.

[0220] In one embodiment, the tool path programming device further includes a verification module, wherein the verification module is configured to:

[0221] Performing a qualification check on the tool path processing program to obtain a check result;

[0222] If the verification result indicates that the verification is passed, it is determined that the tool path programming is completed;

[0223] If the verification result indicates that the verification fails, the tool path processing program is automatically modified.

[0224] In one embodiment, the acquisition module 10 is further configured to:

[0225] In response to a tool path programming generation task, obtaining an electrode identifier of an electrode to be generated according to the tool path programming generation task;

[0226] A matching electrode three-dimensional model is obtained from a preset file management system according to the electrode identification.

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

[0228] refer to Figure 5 , which shows a schematic diagram of the structure 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 also include, but is not limited to, mobile terminals such as servers, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), etc., as well as fixed terminals such as desktop computers. Figure 5 The tool path programming device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.

[0229] like Figure 5As shown, the tool path programming device may include a processing device 1001 (e.g., a central processing unit, graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. RAM 1004 also stores various programs and data required for the operation of the tool path programming device. Processing device 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to I / O interface 1006: input devices 1007, such as a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008, such as a liquid crystal display (LCD), speaker, vibrator, etc.; storage device 1003, such as a magnetic tape or hard disk; and communication devices 1009. The communication device 1009 can allow the tool path programming device to communicate with other devices wirelessly or by wire 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 of the systems shown. More or fewer systems may be implemented or have alternatively.

[0230] 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 comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0231] The tool path programming device provided in the embodiments of the present application, employing the tool path programming method of the above-described embodiments, can solve the technical problem 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 in the present application are the same as those of the tool path programming method provided in the above-described embodiments. Other technical features of the tool path programming device are the same as those disclosed in the above-described embodiments and are not further described here.

[0232] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0233] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

[0234] In addition, to achieve the above-mentioned purpose, an embodiment of the present application also provides a readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, and the computer-readable program instructions are used to execute the tool path programming method in the above-mentioned embodiment.

[0235] The computer-readable storage medium provided in 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, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0236] The computer-readable storage medium may be included in the tool path programming device; or it may exist independently without being assembled into the tool path programming device.

[0237] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the tool path programming device, the tool path programming device is enabled to: obtain an electrode three-dimensional model of the electrode to be generated; perform feature extraction on the electrode three-dimensional model to obtain electrode features, wherein the electrode features include one or more of three-dimensional structure features, surface features, recessed features and boundary features; match the corresponding target processing strategy template in a preset template library based on the electrode features, and perform tool path programming based on the target processing strategy template to obtain a tool path processing program, wherein the template library stores one or more electrode processing strategy templates.

[0238] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, 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 tool path programming device. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0239] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0240] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the module itself.

[0241] The computer-readable storage medium provided in this application stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned tool path programming method. This computer-readable storage medium can address the technical problem of improving the efficiency and accuracy of tool path programming. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are similar to those of the tool path programming method provided in the aforementioned embodiments and are not further elaborated here.

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

[0243] The specific implementation of the computer program product of the present application is basically the same as the various embodiments of the above-mentioned tool path programming method, and will not be repeated here.

[0244] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.

[0245] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

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

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

Claims

1. A tool path programming method, characterized in that: The tool path programming method includes: Obtaining a three-dimensional electrode model of the electrode to be generated; Extracting features from the three-dimensional electrode model to obtain electrode features, wherein the electrode features include one or more of three-dimensional structural features, curved surface features, concave features, and boundary features; Matching a corresponding target machining strategy template in a preset template library according to the electrode feature, and performing tool path programming according to the target machining strategy template to obtain a tool path machining program, wherein the template library stores one or more electrode machining strategy templates; Constructing a feature hierarchical relationship tree based on each sub-feature in the electrode feature, and matching a corresponding target processing strategy template in a preset template library based on the feature hierarchical relationship tree, wherein the feature hierarchical relationship tree is a tree-like data structure that characterizes the subordinate relationship, processing priority, and process dependency between electrode features; The step of matching the corresponding target processing strategy template in a preset template library based on the feature hierarchical relationship tree includes: Based on the preset third mapping relationship, the basic processing technology corresponding to each of the sub-features is obtained; based on the subordinate logic and process compatibility rules of the feature hierarchical relationship tree, the available processing technology that is compatible with the parent node process and the overall processing flow is screened out from each of the basic processing technologies; based on the fourth mapping relationship, the target processing strategy template that matches the available processing technology is searched in the preset template library, wherein the third mapping relationship is the mapping relationship between different feature types and processing technologies, and the fourth mapping relationship is the mapping relationship between different processing technologies and electrode processing strategy templates.

2. The tool path programming method according to claim 1, wherein: The target machining strategy template includes at least one machining strategy and a machining path 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 a corresponding tool model according to the target machining strategy template, and determining machining parameters according to the tool model, the electrode characteristics, and the target machining strategy template, wherein the machining parameters include one or more of a spindle speed range, a feed speed range, a cutting depth, and a tool path stepover; The path sequence of each of the processing paths is determined, and based on the path sequence, the processing strategies are sequentially programmed and combined and the processing parameters are bound to obtain a tool path processing program.

3. The tool path programming method according to claim 2, wherein: The machining strategies include a roughing strategy, a semi-finishing strategy, and a finishing strategy; the machining paths include 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; and the steps of determining a path sequence of the machining paths, and sequentially programming and combining the machining parameters and the machining strategies based on the path sequence to obtain a tool path machining program include: The roughing strategy, the semi-finishing strategy and the finishing strategy are combined based on path sequence programming from a roughing path, a semi-finishing path to a finishing path to obtain a tool path processing program.

4. The tool path programming method according to any one of claims 1 to 3, characterized in that: After the step of performing tool path programming according to the target machining strategy template to obtain a tool path machining program, the method further includes: Performing a qualification check on the tool path processing program to obtain a check 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 processing program is automatically modified.

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

6. A tool path programming device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the tool path programming method according to any one of claims 1 to 5 when executed by the processor.

7. A readable storage medium, characterized in that: The readable storage medium comprises a computer-readable storage medium, on which a tool path programming program is stored. 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 5 are implemented.

8. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the tool path programming method according to any one of claims 1 to 5 is implemented.