Electrode programming method, device, readable storage medium and computer program product

By integrating the post-processing, point-marking, drawing and simulation links of electrode programming through automated batch processing, the problem of low efficiency of existing electrode programming methods is solved, the efficient automation of the electrode programming process is achieved, and the overall efficiency and automation level of EDM are improved.

CN120257530BActive Publication Date: 2025-09-16GOERTEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510749955.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-06
Publication Date
2025-09-16
Estimated Expiration
2045-06-06

AI Technical Summary

Technical Problem

The existing electrode programming method relies on manual operation, resulting in low efficiency, low accuracy, and susceptibility to human factors, which seriously restricts the overall efficiency and automation level of EDM.

Method used

By obtaining the tool path processing program of the electrode to be generated, automatic batch processing is performed, and the post-processing, point-checking, drawing and simulation links are integrated into an automated batch processing sequence. If the simulation passes, the programming is completed; otherwise, the modification instructions are obtained and reprocessed.

Benefits of technology

It significantly shortens the electrode programming cycle, improves the consistency and efficiency of the programming process, and improves the automation level of electrode programming, thereby improving the efficiency and automation level of EDM.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120257530B_ABST
    Figure CN120257530B_ABST
Patent Text Reader

Abstract

The present application discloses an electrode programming method, device, readable storage medium and computer program product, which relate to the field of automation technology. The method includes: obtaining a tool path processing program for an electrode to be generated, and automatically batch processing based on the tool path processing program to obtain a batch processing result, wherein the batch processing includes post-processing, stepping, drawing and simulation; if the simulation result in the batch processing result indicates that the simulation passes, then the electrode programming is determined to be complete; if the simulation result in the batch processing result indicates that the simulation fails, then the input tool path modification instruction is obtained, and the modified tool path processing program is obtained according to the tool path modification instruction, and the step of automatically batch processing based on the tool path processing program to obtain a batch processing result is returned according to the modified tool path processing program. The present application improves the efficiency and automation level of electrode programming, thereby improving the efficiency and automation level of electric spark machining.
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 an electrode 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. As the manufacturing industry's demand for increased efficiency and automation increases, electrode programming, as a key step in EDM, becomes increasingly important.

[0003] Currently, the mainstream method for electrode programming relies on manual operation within computer-aided manufacturing software. The specific process involves the operator manually designing the electrode tool path within the manufacturing software. Subsequently, the operator manually performs post-processing, point verification, drawing output, and simulation verification using plug-ins or standalone tools to complete the electrode programming.

[0004] The core problem with traditional electrode programming lies in the discrete and repetitive nature of the process. Because post-processing, point tracking, drawing output, and simulation require separate steps and manual switching, operators frequently wait for software responses. The cumulative time of discrete operations significantly restricts the overall efficiency and automation level of EDM.

[0005] Therefore, how to improve the efficiency and automation level of electrode programming to improve the overall efficiency and automation level of EDM 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 an electrode programming method, device, readable storage medium and computer program product, aiming to solve the technical problem of how to improve the efficiency and automation level of electrode programming to improve the overall efficiency and automation level of electrospark machining.

[0007] To achieve the above objectives, the present application provides an electrode programming method, which includes:

[0008] Obtaining a tool path processing program for the electrode to be generated, and automatically performing batch processing based on the tool path processing program to obtain a batch processing result, wherein the batch processing includes post-processing, point checking, drawing output, and simulation;

[0009] If the simulation result in the batch processing result indicates that the simulation is passed, it is determined that the electrode programming is completed;

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

[0011] In a possible implementation, the batch processing results include post-processing results, point-checking results, drawing results, and the simulation results. The step of automatically batch processing based on the tool path machining program to obtain the batch processing results includes:

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

[0013] Converting the sequence format of the tool path processing program into a preset machine tool recognizable code format to obtain a post-processing result;

[0014] Arranging points on the three-dimensional electrode model to obtain a point measurement result;

[0015] Generating a drawing result based on the electrode three-dimensional model, the post-processing result and the tracking result, wherein the drawing result includes a processing drawing and / or a process document;

[0016] A virtual machine tool simulation model is obtained or constructed, and a machining process is simulated by the virtual machine tool simulation model according to the post-processing result to obtain a simulation result.

[0017] In a possible implementation, the step of arranging points on the electrode three-dimensional model to obtain a point measurement result includes:

[0018] Identifying a processing area on the electrode three-dimensional model, and arranging key points on the processing area according to a preset point arrangement strategy;

[0019] Obtaining the position coordinates of each of the key points to obtain point coordinate information, and generating a point report based on each of the key points, wherein the point report includes one or more of tolerance information, number of points, point spacing, point density, and point type;

[0020] The point detection result is obtained according to the point coordinate information and the point report.

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

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

[0023] If the verification result indicates that the verification is passed, the step of obtaining the electrode three-dimensional model of the electrode to be generated is performed;

[0024] If the verification result indicates that the verification fails, a prompt message is output or the tool path processing program is modified.

[0025] In a possible implementation, if the verification result indicates that the verification fails, the step of outputting a prompt message or modifying the tool path processing program includes:

[0026] Obtaining a type of reason why the tool path machining program fails to meet standards based on the verification result;

[0027] If the cause type belongs to a preset automatically repairable type, the tool path processing program is modified according to a modification strategy corresponding to the cause type, wherein the preset automatically repairable type includes one or more of parameter missing, process parameter exceeding a limit, and insufficient safety instruction insertion;

[0028] If the cause type does not belong to the preset automatically repairable type, a prompt message is output.

[0029] In a possible implementation, the step of modifying the tool path processing program using the modification strategy corresponding to the cause type includes:

[0030] If the reason type includes missing parameters, modifying the tool path machining program with a strategy of automatically filling in the missing parameters with default values;

[0031] If the cause type includes process parameter out of limit, modifying the tool path machining program by correcting the out-of-limit parameter to a preset safety range;

[0032] If the cause type 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.

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

[0034] Outputting the batch processing results to a preset audit system;

[0035] If an audit pass instruction based on the batch processing result is received in the audit system, the step of determining that electrode programming is completed is performed;

[0036] If an audit failure instruction based on the batch processing result is received in the audit system, a preset human intervention mechanism is triggered.

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

[0038] 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 electrode programming method as described above.

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

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

[0041] The present application obtains the tool path processing program of the electrode to be generated, and automatically batch processes the tool path processing program based on the tool path processing program to obtain batch processing results, wherein the batch processing includes post-processing, point checking, drawing and simulation; if the simulation result in the batch processing result indicates that the simulation is passed, it is determined that the electrode programming is completed; if the simulation result in the batch processing result indicates that the simulation is not passed, the input tool path modification instruction is obtained, and the modified tool path processing program is obtained according to the tool path modification instruction, and the step of automatically batch processing based on the tool path processing program to obtain the batch processing results is returned to execute according to the modified tool path processing program. In this way, after the embodiment of the present application obtains the tool path processing program, the post-processing, point checking, drawing and simulation links that are manually performed step by step are integrated into an automated batch processing sequence based on the tool path processing program, eliminating the redundant time of the operator switching between multiple independent tools and waiting for software response. By connecting the originally discrete links into a continuous execution process, the data flow and processing between each link are seamlessly connected, significantly shortening the overall cycle of electrode programming. 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 further improving the efficiency and automation level of EDM. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] 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.

[0043] 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.

[0044] Figure 1 This is a flow chart of the first embodiment of the electrode programming method of the present application;

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

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

[0047] Figure 4 This is a schematic diagram of the structure of the electrode programming device of the present application;

[0048] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the electrode programming method device in the embodiment of the present application.

[0049] 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

[0050] 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.

[0051] Currently, the electrode programming process relies primarily on manual operation. Specifically, the traditional programming model cannot automatically connect programming with stepping, post-processing, form generation (i.e., drawing generation), simulation, and other operational steps. Operators need to manually program, step, post-process, and generate forms in the manufacturing software. Although there are plug-in functions, the actual operation process is cumbersome, seriously affecting work efficiency, and the operation process requires waiting for the software to run. Although with the development of computer technology, some programming software has been widely used in the field of electrode processing, existing electrode programming methods still have problems such as the manual programming process being cumbersome and time-consuming, and being easily affected by human factors, resulting in inaccurate programming results and even causing processing errors. In addition, with the increase in electrode types and the improvement in processing requirements, the efficiency and accuracy of manual programming can no longer meet production needs.

[0052] Therefore, the current electrode programming method has at least the following problems: low programming efficiency, low accuracy, and susceptibility to human factors. The existence of these problems not only increases production costs, but also limits the improvement of production efficiency.

[0053] Based on this, the main solution of the present application is: obtain the tool path processing program of the electrode to be generated, and perform automatic batch processing based on the tool path processing program to obtain batch processing results, wherein the batch processing includes post-processing, point checking, drawing and simulation; if the simulation result in the batch processing result indicates that the simulation passes, it is determined that the electrode programming is completed; 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, and the step of automatically performing batch processing based on the tool path processing program to obtain batch processing results is returned according to the modified tool path processing program.

[0054] After obtaining the tool path processing program, this application integrates the post-processing, point-checking, drawing and simulation steps that were manually performed step by step into an automated batch processing sequence based on the tool path processing program, eliminating the redundant time for operators to switch between multiple independent tools and wait for software responses. By connecting the originally discrete links in series into a continuous execution process, the data flow and processing between each link 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 further improving the efficiency and automation level of EDM.

[0055] It should be noted that the execution entity of each embodiment of the electrode 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 an electrode 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 electrode programming method of the present application.

[0056] Based on this, the present application proposes the electrode programming method of the first embodiment, referring to Figure 1 As shown, the electrode programming method includes:

[0057] Step S10, obtaining a tool path processing program for the electrode to be generated, and performing automatic batch processing based on the tool path processing program to obtain a batch processing result, wherein the batch processing includes post-processing, point checking, drawing output and simulation;

[0058] The tool path processing program refers to an intermediate code of a parameterized path instruction, for example, it can be an ATC (Automatic Tool Changer Code) code, a G (G-Code) code, etc.

[0059] Furthermore, the tool path processing program can be uploaded after being written by relevant personnel, or it can be automatically programmed based on the electrode three-dimensional model of the electrode to be generated. Specifically, the tool processing route can be automatically designed through the electrode three-dimensional model, and finally a tool path processing program can be generated to complete the automatic tool path programming.

[0060] 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).

[0061] 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;

[0062] Drawing output refers to the automatic generation of processing drawings containing dimensional tolerances, surface roughness annotations, and process guidance documents recording processing parameters based on the structural features of the electrode 3D model;

[0063] 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.

[0064] 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).

[0065] 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.

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

[0067] 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.

[0068] 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.

[0069] Step S30: 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.

[0070] 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.

[0071] 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.

[0072] 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, the batch processing results include post-processing results, point-checking results, drawing results and the simulation results. The step of automatically batch processing based on the tool path processing program to obtain the batch processing results includes:

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

[0074] 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).

[0075] Step A20, converting the sequence format of the tool path processing program into a preset machine tool recognizable code format to obtain a post-processing result;

[0076] The preset machine tool recognizable code format can specifically be a code format recognizable by the target machine tool. The post-processor can parse the parameterized instructions (such as $SPEED, $FEED) in the tool path processing program and replace them with specific values ​​stored in the target machine tool parameter library (such as speed = 3000rpm, feed rate = 200mm / min); add machine tool-specific control instructions (such as G41 tool radius left compensation, M03 spindle forward); set the workpiece coordinate system (such as G54-G59) and embed the tool compensation value (such as H01 length compensation number); finally generate NC code that conforms to the syntax specification of the target machine tool, that is, the post-processing result.

[0077] Step A30, arranging points on the three-dimensional electrode model to obtain a point measurement result;

[0078] Based on the geometric features of the electrode 3D model (such as the clamping reference plane and the symmetry center line), the point arrangement engine can be used to automatically arrange points on the electrode 3D model. For example, the coordinates of the processing positioning points can be automatically generated, and the minimum distance algorithm can be used to ensure that the spacing between the positioning points meets the fixture size constraints, and / or the collision detection algorithm can be used to verify the spatial rationality of the clamping path (such as the minimum gap between the fixture and the electrode surface is ≥2mm). The reference point coordinate sequence file and / or the clamping inspection report can be output to obtain the point arrangement results.

[0079] Step A40: generating a drawing result based on the electrode three-dimensional model, the post-processing result, and the spotting result, wherein the drawing result includes a processing drawing and / or a process document;

[0080] For the generation of processing drawings, information such as dimension chains, tolerance markings (such as ±0.01mm) and surface roughness symbols (such as Ra0.8) can be extracted from the electrode 3D model, and then a 2D or 3D engineering drawing that meets the preset standards can be automatically generated through the integrated drawing engine.

[0081] For the generation of process documents, a structured process guidance document can be generated by integrating the processing parameters (such as speed and feed rate) in the post-processing results, the positioning point coordinates in the stepping results and the safety verification conclusions in the simulation stage. Specifically, it may include but is not limited to a tool list, clamping steps and quality inspection requirements.

[0082] Step A50: Acquire or construct a virtual machine tool simulation model, and simulate the machining process according to the post-processing result through the virtual machine tool simulation model to obtain a simulation result.

[0083] If the user imports a virtual machine tool simulation model, he or she can directly obtain the imported virtual machine tool simulation model, or he or she can build a virtual machine tool simulation model based on the physical parameters of the machining machine tool (such as axis travel range, spindle power, rigidity coefficient) and kinematic model (such as five-axis linkage logic).

[0084] The virtual machine tool simulation model simulates the machining process based on the post-processing results, that is, the virtual machine tool simulation model simulates the physical behavior and machining logic of the actual machine tool based on the post-processing results. For example, in a specific embodiment, the simulation process includes:

[0085] Interference detection: Real-time calculation of the minimum distance between the tool, tool holder, electrode model and fixture. If it is less than the safety threshold, it will be recorded as an interference event.

[0086] Travel verification: Analyze the axis movement instructions in the NC code to check whether the X, Y, and Z axis displacements exceed the machine tool travel limit;

[0087] Machining accuracy simulation: The cutting process is simulated by the material removal simulation engine, and the dimensional error of the electrode model after machining is compared with the theoretical model;

[0088] The simulation results are output as a simulation report that includes pass or fail status, error details, and correction suggestions.

[0089] This embodiment significantly reduces manual intervention and improves electrode programming efficiency through full-process automation of NC code generation, point verification, process drawing and simulation; the precise matching of the virtual machine tool simulation model and physical parameters ensures the predictability of the machining process and avoids the risks of collision and overtravel in actual machining; structured process documents and visual inspection reports provide standardized data support for production traceability and quality control, forming a highly reliable and compatible electrode programming technology solution.

[0090] In a possible implementation, the step of arranging points on the electrode three-dimensional model to obtain a point measurement result includes:

[0091] Step B10, identifying a processing area on the electrode three-dimensional model, and arranging key points on the processing area according to a preset point arrangement strategy;

[0092] The processing area can be a processing area manually marked on the electrode three-dimensional model, or the processing area can be automatically identified based on the model features of the electrode three-dimensional model, such as identifying areas where the curvature of the electrode surface changes significantly (such as the edge of the cavity, the transition area of ​​the free surface) through a curvature calculation algorithm and marking them as high-precision processing areas, identifying thin-walled areas (such as wall thickness ≤3mm) through a thickness analysis algorithm and marking them as low-rigidity processing areas, dividing the discharge processing area through material property mapping (such as the discharge area of ​​the copper electrode and the conductive area of ​​the graphite electrode), identifying the clamping reference plane (flatness ≤0.02mm) through a plane detection algorithm, or generating a contour boundary processing area through a boundary extraction algorithm (such as a safety zone extending 0.5mm inside and outside the electrode projection contour line), etc. This embodiment does not impose specific restrictions on this.

[0093] The point distribution strategy can be pre-set or automatically selected based on the regional characteristics of the processing area, including but not limited to uniform point distribution, random point distribution, curvature adaptive point distribution and other strategies, and the point distribution strategies for different processing areas can be different, such as using a dense point distribution strategy (such as point spacing ≤ 2mm) in a high-precision processing area, a sparse point distribution strategy (point spacing ≤ 5mm) in a flat processing area, and a strategy of arranging at least 3 positioning points on the clamping reference surface.

[0094] The key point refers to a positioning point, inspection point or process point arranged on the three-dimensional model of the electrode.

[0095] Step B20: Obtaining the position coordinates of each key point to obtain point coordinate information, and generating a point report based on each key point, wherein the point report includes one or more of tolerance information, point quantity, point spacing, point density, and point type;

[0096] Tolerance information refers to the position tolerance of key points, and further, it can also include repeat positioning accuracy;

[0097] The number of points refers to the total number of key points arranged. You can also count the number of points distributed in each processing area (such as 50 points in the cavity area and 30 points in the sidewall area).

[0098] Point spacing and density refer to the maximum and / or minimum point spacing and point density in the processing area;

[0099] The layout point type refers to the type of key points of the layout, which can be classified as positioning points (used for clamping reference), inspection points (used for post-processing inspection), and process points (used for path planning).

[0100] Step B30, obtaining the point survey results based on the point coordinate information and the point report.

[0101] The point layout coordinate information containing the reference point coordinate sequence can be combined with the point layout report to obtain the point layout result. The spatial rationality of the fixture and the electrode can also be verified through a collision detection algorithm based on the point layout coordinates (such as the minimum safety gap ≥ 2mm), and a visual report, i.e., a clamping inspection report, can be output. The point layout result can be obtained by combining the clamping inspection report, the point layout coordinate information and the point layout report.

[0102] This embodiment identifies the processing area and automatically arranges key points on the three-dimensional model using a certain layout strategy, thereby optimizing layout efficiency while ensuring processing accuracy and avoiding the randomness and inefficiency of manual layout. In addition, the correlation between the structured layout report and the coordinate data provides standardized input for subsequent clamping verification, path planning and quality inspection.

[0103] 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, before the step of obtaining the electrode three-dimensional model of the electrode to be generated, the method further includes:

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

[0105] 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.

[0106] Step C20: if the verification result indicates that the verification is passed, then executing the step of obtaining the electrode three-dimensional model of the electrode to be generated;

[0107] 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. At this time, the electrode three-dimensional model is obtained for subsequent batch processing.

[0108] Step C30: If the verification result indicates that the verification fails, a prompt message is output or the tool path processing program is modified.

[0109] When it is detected that the verification result does not meet the verification pass condition, a prompt message is output or the tool path processing program is modified.

[0110] Furthermore, if the automatic correction fails, the tool path processing program can be locked and an alarm message can be pushed, requiring manual correction and resubmission for verification.

[0111] This embodiment verifies the qualification of the tool path processing program, and only continues to execute subsequent processes when the qualification verification is passed, thereby ensuring the executability and safety of the tool path processing program and avoiding processing accidents or material waste due to program errors; if the qualification verification fails, a prompt message is output or the tool path processing program is automatically modified, so that the collaborative mechanism of automatic correction and manual intervention takes into account efficiency and reliability, and reduces the number of repeated verifications.

[0112] In a possible implementation, if the verification result indicates that the verification fails, the step of outputting a prompt message or modifying the tool path processing program includes:

[0113] Step D10, obtaining the type of reason why the tool path machining program is unqualified based on the verification result;

[0114] The reasons include but are not limited to interference check failure, parameter missing, process parameter exceeding limit and insufficient safety instruction insertion. Interference check failure means that there is a risk of collision between the tool body, tool holder or machine tool spindle and the workpiece, fixture or machine tool body. Parameter missing means that there are unassigned parameterized instructions in the tool path processing program. Process parameter exceeding limit means that the parameter value exceeds the allowable range of the process database. Insufficient safety instruction insertion means that the key nodes (such as tool change points, path starting point, path end point) lack necessary safety control instructions or insufficient safety height. Geometric path error means that there are breakpoints in the path, redundant idle movement or the minimum safety clearance with the electrode model does not meet the standard.

[0115] Step D20: If the cause type belongs to a preset automatically repairable type, modifying the tool path machining program using a modification strategy corresponding to the cause type, wherein the preset automatically repairable type includes one or more of parameter missing, process parameter exceeding a limit, and insufficient safety instruction insertion;

[0116] The preset automatically repairable type can be a preset automatically repairable cause type, and a corresponding modification strategy can be set for each automatically repairable type to automatically repair the tool path processing program based on the corresponding modification strategy.

[0117] Step D30: If the cause type does not belong to the preset automatically repairable type, a prompt message is output.

[0118] If the cause type is not automatically repairable, a prompt message is output so that relevant personnel can perform manual repairs to prevent the target machine tool from running unqualified NC code in the future, thereby ensuring the safety of the machine tool.

[0119] Furthermore, after the repaired tool path processing program is automatically repaired or manually submitted, the verification process can be re-executed until it passes.

[0120] This embodiment uses a classification repair mechanism to automatically modify common errors in the tool path processing program, significantly shortening the debugging cycle; for complex errors, prompt information is output to trigger task intervention to ensure the safety of the machine tool, thereby ensuring program reliability through the verification process, preventing erroneous programs from flowing into the actual processing link, and ensuring the safety of machine tool processing and process consistency.

[0121] In a possible implementation, the step of modifying the tool path processing program using the modification strategy corresponding to the cause type includes:

[0122] Step E10, if the reason type includes missing parameters, modifying the tool path processing program by automatically filling in the missing parameters with default values;

[0123] If missing parameters are detected in the toolpath program, the program is modified by automatically filling in default values. Furthermore, for different parameter types, default 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 phase (roughing / finishing). For example, for a Φ6mm tool, the default speed is 3000 rpm, and for a feed rate parameter, the default feed rate for the roughing phase is 800 mm / min.

[0124] Step E20: If the cause type includes process parameter out-of-limit, modify the tool path processing program by correcting the out-of-limit parameter to a preset safety range;

[0125] The preset full range can specifically be an allowable range of parameters set according to the physical limits (such as a maximum speed of 8000 rpm, a maximum feed rate of 800 mm / min) and process constraints (such as a maximum cutting depth of 0.2 mm in a thin-walled area) stored in the machine tool parameter library.

[0126] Step E30: If the cause type 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.

[0127] 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.

[0128] 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 1.2 times the tool length). For example, the tool lifting height can be obtained by multiplying the tool length by the preset safety system.

[0129] This embodiment uses a default value automatic filling strategy when parameters are missing, such as matching a rotation speed of 3000rpm and a roughing feed rate of 800mm / min according to the electrode material, tool type, and processing stage, to ensure the integrity of the tool path program parameters and the adaptability to the processing scenario, avoiding program interruptions or processing anomalies caused by human omissions; for the problem of process parameter exceeding the limit, it dynamically adjusts to the safety range based on the physical limits of the machine tool and process constraints to prevent equipment overload or substandard processing quality; for the lack of safety instructions, it eliminates the risk of tool collision and motion interference through safety factor-driven height calculation and key node instruction completion. The synergistic effect of the above strategies realizes the self-repair capability of the tool path program, which can reduce the cost of manual correction, and ensures that the corrected program can be put into safe processing through a verification mechanism, forming an efficient and reliable program error correction technical solution.

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

[0131] Step F10, outputting the batch processing results to a preset audit system;

[0132] 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.

[0133] Step F20, 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;

[0134] 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".

[0135] Step F30: If a review failure instruction based on the batch processing result is received in the review system, a preset human intervention mechanism is triggered.

[0136] 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.

[0137] 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.

[0138] 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, the server includes a batch processing system, and the step of automatically batch processing based on the tool path processing program to obtain batch processing results includes:

[0139] Step G10: 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.

[0140] 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.

[0141] 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.

[0142] 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:

[0143] Step H10, obtaining the system status of the batch processing system;

[0144] 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.

[0145] Step H20: 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;

[0146] 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.

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

[0148] 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.

[0149] 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.

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

[0151] Step I10, 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;

[0152] 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.

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

[0154] Step I20 , 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.

[0155] 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.

[0156] 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.

[0157] For example, in order to help understand the technical concept or technical principle of the electrode programming method after combining this embodiment with the first embodiment, the second embodiment and the third embodiment, a specific embodiment is now listed. In this specific embodiment, the electrode programming method is applied to the server, referring to Figure 2 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:

[0158] 1. Task assignment stage:

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

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

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

[0162] 2. Automatic programming stage:

[0163] The tool path machining program is obtained by automatically programming the tool path based on the electrode three-dimensional model.

[0164] 3. Batch processing stage:

[0165] 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.

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

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

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

[0169] 4. Audit and archiving

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

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

[0172] 5. NG (No Good) processing

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

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

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

[0176] 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.

[0177] 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 above can be referred to above and will not be described in detail. On this basis, the step of obtaining the tool path processing program for the electrode to be generated includes:

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

[0179] 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).

[0180] Step J20, 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;

[0181] 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.

[0182] Step J30, matching the corresponding target machining strategy template in a preset template library according to the electrode feature, 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.

[0183] 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:

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

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

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

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

[0188] 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.

[0189] 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.

[0190] In a possible implementation, the step of matching a corresponding target machining strategy template in a preset template library based on the electrode feature includes:

[0191] Step K10 , 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.

[0192] 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]}.

[0193] 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.

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

[0195] Step K20 , constructing a feature hierarchical relationship tree according to 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.

[0196] 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)}.

[0197] 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.

[0198] 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:

[0199] Step L10: 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.

[0200] 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.

[0201] 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.

[0202] 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:

[0203] Step L20, based on the preset third mapping relationship, obtain the basic processing technology corresponding to each of the sub-features, screen the available processing technology in each of 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.

[0204] 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.

[0205] 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.

[0206] 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.

[0207] 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.

[0208] 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.

[0209] 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:

[0210] Step M10: 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;

[0211] 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.

[0212] 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.

[0213] 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.

[0214] Step M20 , 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.

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

[0216] 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.

[0217] 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.

[0218] 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:

[0219] In step N10 , 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.

[0220] 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.

[0221] 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.

[0222] 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.

[0223] For example, in order to help understand the technical concept or technical principle of the tool path programming method of this embodiment, a specific embodiment is now listed. In this specific embodiment, referring to Figure 3 As shown in the figure, the tool path programming process includes:

[0224] 1. Feature analysis: Analyze electrode features based on manufacturing software calling API, automatically extract and classify processing feature types, including but not limited to:

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

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

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

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

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

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

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

[0232] 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.

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

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

[0235] 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.

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

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

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

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

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

[0241] 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:

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

[0243] Smooth transition processing of tool paths;

[0244] Automatic calculation of safety height;

[0245] Tool change command inserted.

[0246] 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.

[0247] In addition, the present application also provides an electrode programming device, referring to Figure 4 As shown, the electrode programming device includes:

[0248] The batch processing module 10 is used to obtain a tool path processing program for the electrode to be generated, and automatically perform batch processing based on the tool path processing program to obtain a batch processing result, wherein the batch processing includes post-processing, point checking, drawing and simulation;

[0249] a determination module 20, configured to determine that electrode programming is completed if the simulation result in the batch processing result indicates that the simulation has passed;

[0250] The modification module 30 is used to obtain the input tool path modification instruction if the simulation result in the batch processing result indicates that the simulation fails, obtain the modified tool path processing program according to the tool path modification instruction, and return to execute the step of automatically batch processing based on the tool path processing program to obtain the batch processing result according to the modified tool path processing program.

[0251] In one embodiment, the batch processing results include post-processing results, point-checking results, drawing results, and the simulation results. The batch processing module 10 is further configured to:

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

[0253] Converting the sequence format of the tool path processing program into a preset machine tool recognizable code format to obtain a post-processing result;

[0254] Arranging points on the three-dimensional electrode model to obtain a point measurement result;

[0255] Generating a drawing result based on the electrode three-dimensional model, the post-processing result and the tracking result, wherein the drawing result includes a processing drawing and / or a process document;

[0256] A virtual machine tool simulation model is obtained or constructed, and a machining process is simulated by the virtual machine tool simulation model according to the post-processing result to obtain a simulation result.

[0257] In one embodiment, the batch processing module 10 is further configured to:

[0258] Identifying a processing area on the electrode three-dimensional model, and arranging key points on the processing area according to a preset point arrangement strategy;

[0259] Obtaining the position coordinates of each of the key points to obtain point coordinate information, and generating a point report based on each of the key points, wherein the point report includes one or more of tolerance information, number of points, point spacing, point density, and point type;

[0260] The point detection result is obtained according to the point coordinate information and the point report.

[0261] In one embodiment, the electrode programming device further includes a verification module, wherein the verification module is configured to:

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

[0263] If the verification result indicates that the verification is passed, the step of obtaining the electrode three-dimensional model of the electrode to be generated is performed;

[0264] If the verification result indicates that the verification fails, a prompt message is output or the tool path processing program is modified.

[0265] In one embodiment, the verification module is further configured to:

[0266] Obtaining a type of reason why the tool path machining program fails to meet standards based on the verification result;

[0267] If the cause type belongs to a preset automatically repairable type, the tool path processing program is modified according to a modification strategy corresponding to the cause type, wherein the preset automatically repairable type includes one or more of parameter missing, process parameter exceeding a limit, and insufficient safety instruction insertion;

[0268] If the cause type does not belong to the preset automatically repairable type, a prompt message is output.

[0269] In one embodiment, the verification module is further configured to:

[0270] If the reason type includes missing parameters, modifying the tool path machining program with a strategy of automatically filling in the missing parameters with default values;

[0271] If the cause type includes process parameter out of limit, modifying the tool path machining program by correcting the out-of-limit parameter to a preset safety range;

[0272] If the cause type 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.

[0273] In one embodiment, the determining module is further configured to:

[0274] Outputting the batch processing results to a preset audit system;

[0275] If an audit pass instruction based on the batch processing result is received in the audit system, it is determined that the electrode programming is completed;

[0276] If an audit failure instruction based on the batch processing result is received in the audit system, a preset human intervention mechanism is triggered.

[0277] In addition, an embodiment of the present application also proposes an electrode 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 electrode programming method as described above.

[0278] refer to Figure 5 , which shows a schematic diagram of the structure of an electrode programming device suitable for implementing the embodiments of the present application. The electrode 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: tablet computers), and fixed terminals such as desktop computers. Figure 5 The electrode programming device shown is merely an example and should not limit the functionality and scope of use of the embodiments of the present application.

[0279] like Figure 5 As shown, the electrode 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 electrode 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 touchscreen, 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 device 1009. Communication device 1009 can allow the electrode programming device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows an electrode programming device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.

[0280] 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.

[0281] The electrode programming device provided in the embodiments of the present application, using the electrode programming method of the above-described embodiments, can solve the technical problem of how to improve the efficiency and automation level of electrode programming, thereby improving the overall efficiency and automation level of electric discharge machining. Compared with the prior art, the beneficial effects of the electrode programming device provided in the present application are the same as the beneficial effects of the electrode programming method provided in the above-described embodiments, and the other technical features of the electrode programming device are the same as those disclosed in the method of the previous embodiment, and are not further described here.

[0282] 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.

[0283] 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.

[0284] 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 (ie, a computer program) stored thereon, and the computer-readable program instructions are used to execute the electrode programming method in the above-mentioned embodiment.

[0285] 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.

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

[0287] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the electrode programming device, the electrode programming device: obtains the tool path processing program of the electrode to be generated, and performs automatic batch processing based on the tool path processing program to obtain batch processing results, wherein the batch processing includes post-processing, point stepping, drawing and simulation; if the simulation result in the batch processing result indicates that the simulation passes, it is determined that the electrode programming is completed; 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, and the modified tool path processing program is returned to execute the step of automatically batch processing based on the tool path processing program to obtain batch processing results according to the modified tool path processing program.

[0288] 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 the remote computer or electrode programming device. In the case of 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).

[0289] 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.

[0290] 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.

[0291] The computer-readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned electrode programming method. This computer-readable storage medium can address the technical problem of improving the efficiency and automation level of electrode programming, thereby enhancing the overall efficiency and automation level of electrical discharge machining (EDM). Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the electrode programming method provided in the aforementioned embodiments, and are not further elaborated here.

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

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

[0294] 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.

[0295] 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.

[0296] 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, electrode programming device or network device, etc.) to execute the methods described in each embodiment of the present application.

[0297] 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. An electrode programming method, characterized in that: The electrode programming method comprises: Obtaining a tool path processing program for the electrode to be generated, and automatically performing batch processing based on the tool path processing program to obtain a batch processing result, wherein the batch processing includes post-processing, point checking, drawing output, and simulation; If the simulation result in the batch processing result indicates that the simulation is passed, it is determined that the electrode programming is completed; If the simulation result in the batch processing result indicates that the simulation fails, obtaining an input tool path modification instruction, obtaining a modified tool path processing program according to the tool path modification instruction, and returning to the step of automatically batch processing based on the tool path processing program to obtain a batch processing result according to the modified tool path processing program; The batch processing results include post-processing results, point-checking results, drawing results and simulation results. The step of automatically batch processing based on the tool path processing program to obtain the batch processing results includes: Obtaining a three-dimensional electrode model of the electrode to be generated; Converting the sequence format of the tool path processing program into a preset machine tool recognizable code format to obtain a post-processing result; Arranging points on the three-dimensional electrode model to obtain a point measurement result; Generating a drawing result based on the electrode three-dimensional model, the post-processing result and the tracking result, wherein the drawing result includes a processing drawing and / or a process document; A virtual machine tool simulation model is obtained or constructed, and a machining process is simulated by the virtual machine tool simulation model according to the post-processing result to obtain a simulation result.

2. The electrode programming method according to claim 1, wherein: The step of arranging points on the electrode three-dimensional model to obtain a point measurement result includes: Identifying a processing area on the electrode three-dimensional model, and arranging key points on the processing area according to a preset point arrangement strategy; Obtaining the position coordinates of each of the key points to obtain point coordinate information, and generating a point report based on each of the key points, wherein the point report includes one or more of tolerance information, number of points, point spacing, point density, and point type; The point detection result is obtained according to the point coordinate information and the point report.

3. The electrode programming method according to claim 1, wherein: Before the step of obtaining the electrode three-dimensional model of the electrode to be generated, 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, the step of obtaining the electrode three-dimensional model of the electrode to be generated is performed; If the verification result indicates that the verification fails, a prompt message is output or the tool path processing program is modified.

4. The electrode programming method according to claim 3, wherein: If the verification result indicates that the verification fails, the step of outputting a prompt message or modifying the tool path processing program includes: Obtaining a type of reason why the tool path machining program fails to meet standards based on the verification result; If the cause type belongs to a preset automatically repairable type, the tool path processing program is modified according to a modification strategy corresponding to the cause type, wherein the preset automatically repairable type includes one or more of parameter missing, process parameter exceeding a limit, and insufficient safety instruction insertion; If the cause type does not belong to the preset automatically repairable type, a prompt message is output.

5. The electrode programming method according to claim 4, wherein: The step of modifying the tool path processing program according to the modification strategy corresponding to the cause type includes: If the reason type includes missing parameters, modifying the tool path machining program with a strategy of automatically filling in the missing parameters with default values; If the cause type includes process parameter out of limit, modifying the tool path machining program by correcting the out-of-limit parameter to a preset safety range; If the cause type 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.

6. The electrode programming method according to any one of claims 1 to 5, characterized in that: Before the step of determining that electrode programming is completed, the method further includes: Outputting the batch processing results to a preset audit system; If an audit pass instruction based on the batch processing result is received in the audit system, the step of determining that electrode programming is completed is performed; If an audit failure instruction based on the batch processing result is received in the audit system, a preset human intervention mechanism is triggered.

7. An electrode 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 electrode programming method according to any one of claims 1 to 6 when executed by the processor.

8. A readable storage medium, characterized in that: The readable storage medium comprises a computer-readable storage medium, on which an electrode programming program is stored. When the electrode programming program is executed by a processor, the steps of the electrode programming method according to any one of claims 1 to 6 are implemented.

9. 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 electrode programming method according to any one of claims 1 to 6 is implemented.