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

The full process automation of electrode programming is achieved through the server, which solves the problem of inefficient electrode programming and improves the efficiency and automation level of electric spark processing.

CN120276711AActive Publication Date: 2025-07-08GOERTEK INC

Patent Information

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

Smart Images

  • Figure CN120276711A_ABST
    Figure CN120276711A_ABST
Patent Text Reader

Abstract

The invention discloses an electrode programming method, a server, a readable storage medium and a computer program product, and relates to the technical field of automation, the method is applied to the server, the server is connected with a task distribution client, and the method comprises the following steps: responding to an electrode programming task issued by the task distribution client, obtaining an electrode three-dimensional model according to the electrode programming task; performing automatic tool path programming processing according to the electrode three-dimensional model to obtain a tool path processing program; and performing automatic batch processing based on the tool path processing program to obtain a batch processing result so as to complete electrode programming, the batch processing including post-processing, treading, plotting and simulation. The efficiency and the automation level of electrode programming are improved, and then the efficiency and the automation level of electric spark machining are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automation technology, and in particular, to an electrode programming method, a server, a readable storage medium, and a computer program product. Background Art

[0002] In modern manufacturing, the Electrical Discharge Machining (EDM) technology is highly favored because it can process workpieces with high hardness materials and complex shapes. Due to its non-contact machining characteristics, electrical discharge machining has become the core process for machining high-hardness materials and complex cavities. With the increasing demand for machining efficiency and automation in the manufacturing industry, electrode programming, as a key link in electrical discharge machining, is of great importance.

[0003] Currently, the mainstream method of electrode programming relies on manual operations of computer-aided manufacturing software. The specific process is as follows: The operator needs to first manually design the electrode tool path in the auxiliary manufacturing software, and then manually execute post-processing, point checking, drawing, and simulation verification steps in sequence through plug-ins or independent tools to complete electrode programming.

[0004] The core problem of the traditional electrode programming method lies in the discreteness and repeatability of the operation process. Since operations such as tool path programming, post-processing, and simulation need to be performed step by step and rely on manual switching, the operator needs to frequently wait for the software to respond and manually input relevant parameters. The time accumulation effect of discrete operations is significant, seriously restricting the overall efficiency and automation level of electrical discharge machining.

[0005] Therefore, how to improve the efficiency and automation level of electrode programming to improve the overall efficiency and automation level of electrical discharge machining has become an urgent technical problem to be solved. Summary of the Invention

[0006] The main purpose of this application is to provide an electrode programming method, a server, a readable storage medium, and a 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 electrical discharge machining.

[0007] To achieve the above object, this application provides an electrode programming method. The electrode programming method is applied to a server, and the server is connected to a task dispatching client. The electrode programming method includes: Responding to the electrode programming task published by the task dispatching client, and obtaining an electrode three-dimensional model according to the electrode programming task; Performing automatic tool path programming processing on the electrode three-dimensional model to obtain a tool path processing program; An automatic batch process is performed based on the tool path processing program to obtain a batch process result, so as to complete electrode programming, where the batch process includes post-processing, point stepping, drawing, and simulation.

[0008] In one embodiment, the server includes a batch processing system, and the step of performing an automatic batch process based on the tool path processing program to obtain a batch process result includes: Sending a batch process start instruction for the tool path processing program to the batch processing system, so that after receiving the batch process start instruction, the batch processing system performs an automatic batch process based on the tool path processing program to obtain a batch process result.

[0009] In one embodiment, before the step of sending a batch process start instruction for the tool path processing program to the batch processing system, the method further includes: Obtaining the system status of the batch processing system; If the system status indicates that the batch processing system is in an idle state, then execute the step of sending a batch process start instruction for the tool path processing program to the batch processing system; If the system status indicates that the batch processing system is in a busy state, then store the tool path processing program in a preset waiting queue.

[0010] In one embodiment, the step of storing the tool path processing program in a preset waiting queue includes: Obtaining or setting the priority of the tool path processing program, and associating and storing the tool path processing program with the priority in a preset waiting queue; The step of sending a batch process start instruction for the tool path processing program to the batch processing system includes: Taking out a target tool path processing program with the highest priority from the waiting queue, and sending a batch process start instruction for the target tool path processing program to the batch processing system.

[0011] In one embodiment, the server is connected to an audit client, and after the step of performing an automatic batch process based on the tool path processing program to obtain a batch process result, the method further includes: Outputting the batch process result to the audit client; If an audit passed instruction sent by the audit client based on the batch process result is received, then it is determined that the electrode programming is completed; If an audit failed instruction sent by the audit client based on the batch process result is received, then a preset human intervention mechanism is triggered.

[0012] In one embodiment, the server includes an archive management system, and the step of obtaining the 3D electrode model according to the electrode programming task: Obtain the electrode identifier of the electrode to be generated according to the electrode programming generation task; Obtain the matching 3D electrode model from the archive management system according to the electrode identifier.

[0013] In one embodiment, the server includes an automatic programming system, and the step of performing automatic tool path programming processing on the 3D electrode model to obtain a tool path machining program includes: Extract the electrode features of the 3D electrode model through the automatic programming system, and generate an initial tool path according to the electrode features; Identify the corners and discrete straight path segments in the initial tool path, update the corners in the initial tool path to arcs with a preset radius, and fit the discrete straight path segments into continuous spline curves to obtain an updated tool path; Perform automatic programming processing based on the updated tool path to obtain a tool path machining program, where the automatic programming processing includes machining stage marking, machining parameter binding, safety instruction insertion, and tool change instruction insertion.

[0014] In addition, to achieve the above object, the present application also provides a server, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the steps of the electrode programming method as described above are implemented.

[0015] In addition, to achieve the above object, 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 when the computer program is executed by a processor, the steps of the electrode programming method as described above are implemented.

[0016] The present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the electrode programming method as described above are implemented.

[0017] One or more technical solutions proposed by the present application have at least the following technical effects: The server of the present application responds to the electrode programming task published by the task dispatching client, obtains the three-dimensional electrode model according to the electrode programming task; performs automatic tool path programming processing based on the three-dimensional electrode model to obtain a tool path processing program; performs automatic batch processing based on the tool path processing program to obtain a batch processing result, so as to complete electrode programming, where the batch processing includes post-processing, point stepping, drawing and simulation. In this way, the embodiment of the present application realizes the full-process automation processing of automatic tool path programming, automatic post-processing, automatic point stepping, automatic drawing, and automatic simulation based on the server, and realizes multi-task parallel processing relying on the distributed computing power of the server; from the input of the three-dimensional electrode model data to the generation of the final numerical control program, the whole process does not require manual intervention, realizing a full-chain closed loop of the electrode programming process; integrating the electrode programming process into an automated processing process through the server, using the high-concurrency processing ability of the server to support multi-client task collaboration, eliminating the redundant time for operators to switch between multiple independent tools and wait for software responses; by connecting the originally discrete links into a continuous execution process, and realizing the intelligent sorting of the processing process through the task queue management mechanism of the server, making the data flow and processing between each link seamlessly connected, significantly shortening the overall cycle of electrode programming, reducing the uncertainty of manual operation nodes and processes, and improving the coherence and efficiency of the programming process, thereby improving the efficiency and automation level of electrode programming, and further improving the efficiency and automation level of electric discharge machining. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0020] Figure 1 It is a schematic flowchart of the first embodiment of the electrode programming method of the present application; Figure 2 It is a schematic diagram of the electrode programming process involved in an embodiment of the electrode programming method of the present application; Figure 3 It is a schematic diagram of the tool path programming process involved in an embodiment of the electrode programming method of the present application; Figure 4 It is a schematic diagram of the device structure of the electrode programming device of the present application; Figure 5 It 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.

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

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

[0023] The spark machining technology has been widely favored because it can process workpieces with high hardness materials and complex shapes. Due to its non-contact machining characteristics, electrical discharge machining has become the core process for machining high hardness materials and complex cavities. With the increasing demand for machining efficiency and automation in the manufacturing industry, electrode programming, as a key link in electrical discharge machining, is of great importance.

[0024] However, the current electrode programming process mainly relies on manual operation. Specifically, the traditional programming mode cannot automatically connect programming, point stepping, post-processing, form generation (i.e., drawing generation), simulation and other operation steps. Operators need to manually program, step on points, post-process, and generate forms on the drafting 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 running time. Although with the development of computer technology, some programming software has been widely used in the field of electrode machining, the existing electrode programming methods still have problems such as cumbersome and time-consuming manual programming, and are easily affected by human factors, resulting in inaccurate programming results and even causing machining errors. In addition, with the increase in the types of electrodes and the improvement of processing requirements, the efficiency and accuracy of manual programming can no longer meet the production needs.

[0025] Therefore, the current electrode programming method has at least the following problems: low programming efficiency, low accuracy, and being easily affected by human factors. The existence of these problems not only increases the production cost but also restricts the improvement of production efficiency.

[0026] Based on this, the main solution of this application is that the server, by responding to the electrode programming task published by the task dispatching client, obtains the electrode three-dimensional model according to the electrode programming task; performs automatic tool path programming processing on the electrode three-dimensional model to obtain the tool path machining program; and performs automatic batch processing based on the tool path machining program to obtain the batch processing result to complete electrode programming, where the batch processing includes post-processing, point stepping, drawing generation and simulation.

[0027] Based on the server, this application realizes the full - process automation processing of automatic tool - path programming, automatic post - processing, automatic point - stepping, automatic drawing output, and automatic simulation. It relies on the distributed computing power of the server to achieve multi - task parallel processing; from the input of the three - dimensional model data of the electrode to the generation of the final numerical control program, no manual intervention is required throughout the process, realizing a full - chain closed - loop of the electrode programming process; through the server, the electrode programming process is integrated into an automated processing process, and the high - concurrency processing ability of the server is used to support multi - client task collaboration, eliminating the redundant time for operators to switch between multiple independent tools and wait for software responses; by connecting the originally discrete links into a continuous execution process and using the task queue management mechanism of the server to achieve intelligent sorting of the processing process, the data flow and processing between each link are seamlessly connected, significantly shortening the overall cycle of electrode programming, reducing the uncertainty of manual operation nodes and processes, enhancing the coherence and efficiency of the programming process, thereby improving the efficiency and automation level of electrode programming, and further improving the efficiency and automation level of electrical discharge machining.

[0028] It should be noted that the execution subject of each embodiment of the electrode programming method of this application can be a server capable of realizing the above functions.

[0029] Based on this, this application proposes an electrode programming method for the first embodiment. The electrode programming method is applied to a server, and the server is connected to a task - dispatching client. The electrode programming method includes: Step S10, in response to the electrode programming task published by the task - dispatching client, obtain the three - dimensional model of the electrode according to the electrode programming task. This electrode programming task can specifically be a task indicating that electrode programming is required. This three - dimensional model of the electrode can specifically be a digital three - dimensional model of the electrode, which can be constructed by computer - aided design software or generated by reverse engineering through a three - dimensional scanning device. The model can include the geometric topology structure, dimensional tolerance markings, and surface feature parameters of the electrode (such as discharge area markings, roughness requirements).

[0030] It should be noted that this server can be a single - machine server or a server cluster. Furthermore, the server cluster can also be divided into roles, such as being divided into a computing server and a verification server. Among them, the computing server is used to execute computing tasks, such as feature recognition, parameter calculation, tool - path calculation, etc., and the verification server is used to execute verification tasks, such as simulation, code compliance verification, etc.

[0031] The server can set up an archive management system for storing the 3D model of the electrode. After receiving the electrode programming task published by the task dispatching client, it can retrieve the corresponding 3D model of the electrode from the archive management system according to the task parameters of the electrode programming task. The task parameters are specifically consistent with the storage index used when the archive management system stores the 3D model of the electrode. For example, in a specific embodiment, the electrode 3D model is stored with the electrode identification as the storage index. Then, after receiving the electrode programming task, the server obtains the electrode identification based on the electrode programming task and retrieves the corresponding 3D model of the electrode from the archive management system using the obtained electrode identification.

[0032] The server can also set up a task queue. After receiving the electrode programming task published by the task dispatching client, it stores the received electrode programming task in the task queue and takes out one electrode programming task from the task queue each time for subsequent processing, so that the server can process multiple electrode programming tasks in an orderly manner, thereby enabling the support of the client to publish multiple electrode programming tasks at one time.

[0033] Furthermore, the server can also obtain or set the priority of the electrode programming task, and retrieve the electrode programming task from the task queue based on the priority order to achieve flexible scheduling of multiple tasks.

[0034] Step S20: Perform automatic tool path programming processing based on the 3D model of the electrode to obtain a tool path processing program. It should be noted that an automatic programming system can be deployed in the server. The automatic programming system performs automatic tool path programming processing based on the 3D model of the electrode, that is, performs automatic tool path programming processing based on the 3D model of the electrode to obtain a tool path processing program.

[0035] The automatic programming system can specifically automatically design the machining route of the tool through the 3D model of the electrode, and finally generate a tool path processing program, thereby completing the automatic tool path programming. The tool path processing program refers to an intermediate code of parametric path instructions. For example, it can specifically be ATC (Automatic Tool Changer Code) code, G (G -Code) code, etc.

[0036] Step S30: Perform automatic batch processing based on the tool path processing program to obtain a batch processing result to complete the electrode programming, where the batch processing includes post-processing, point sampling, drawing, and simulation.

[0037] Post - processing refers to converting the tool path machining program into NC (Numerical Control Code) that can be recognized by the target machine tool. Specifically, it can include setting the workpiece coordinate system, adding tool radius compensation (such as G41 / G42) and length compensation (such as G43 / G44) instructions, and embedding the control code specific to the machine tool (such as M03 spindle start). Among them, the target machine tool refers to the numerically controlled machine tool used to execute the NC code subsequently to generate the electrode.

[0038] Point sampling means automatically distributing points on the surface of the three - dimensional electrode model, such as automatically generating the coordinates of machining positioning points and simulating the rationality of the spatial position of the clamping inspection points; Drawing generation means automatically generating machining drawings (which can be electronic machining drawings) containing dimensional tolerances and surface roughness markings based on the structural characteristics of the three - dimensional electrode model, as well as process guidance documents (which can also be electronic versions) recording machining parameters; Simulation means executing the NC code through a virtual machining environment to verify the interference between the tool path and the three - dimensional electrode model, the machine tool travel limit, and the machining accuracy compliance, ensuring the safety and feasibility of the program.

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

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

[0041] Furthermore, if the simulation result in the batch - processing result indicates that the simulation passes, it is determined that the electrode programming is completed. On the contrary, if the simulation result in the batch - processing result indicates that the simulation fails, a tool - path modification instruction input can be obtained, the modified tool - path machining program can be obtained based on the tool - path modification instruction, and the step of performing automatic batch processing based on the tool - path machining program to obtain the batch - processing result can be returned for execution according to the modified tool - path machining program.

[0042] 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 does not exceed the limit and the processing accuracy meets the standard. When it is detected that the simulation result meets the 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 acquired tool path processing program is completed.

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

[0044] This embodiment realizes the full process automation processing of automatic tool path programming, automatic post-processing, automatic point marking, automatic drawing, and automatic simulation based on the server, and realizes multi-task parallel processing based on the distributed computing capability of the server; from the input of electrode three-dimensional model data to the generation of the final CNC program, no human intervention is required throughout the process, realizing the full chain closed loop of the electrode programming process; the electrode programming process is integrated into an automated processing process through the server, and the high concurrent processing capability of the server is used to support multi-client task collaboration, 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 task queue management mechanism of the server is used to realize the intelligent sorting of the processing process, so that the data flow and processing between each link are seamlessly connected, the overall cycle of electrode programming is significantly shortened, the uncertainty of manual operation nodes and processes is reduced, and the continuity and efficiency of the programming process are improved, thereby improving the efficiency and automation level of electrode programming, and then improving the efficiency and automation level of EDM.

[0045] 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 the above description and will not be described in detail later. 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: Step A10: Send a batch start instruction for the tool path processing program to the batch processing system, so that after receiving the batch start instruction, the batch processing system performs automatic batch processing based on the tool path processing program to obtain a batch processing result.

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

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

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

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

[0050] Step B30: If the system state indicates that the batch processing system is in the busy state, then store the tool path processing program in a preset waiting queue.

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

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

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

[0054] The step of sending a batch processing start instruction for the tool path processing program to the batch processing system includes: Step C20, 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.

[0055] When it is detected that the batch processing system is idle, 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 through traversal or preset rule matching, 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 of the target tool path processing program by the batch processing system.

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

[0057] In a possible implementation manner, the server is connected to an audit client. After the step of automatically batch-processing based on the tool path processing program to obtain a batch-processing result, the method further includes: Step D10, outputting the batch-processing result to the audit client; It should be noted that the audit client and the task dispatching client may be the same client or different clients, and this embodiment does not make specific restrictions on this.

[0058] Transmit the content such as NC code, processing drawings, process guidance documents, and simulation verification reports included in the batch-processing result to the audit client. Specifically, the transmission methods include but are not limited to direct push based on industrial communication protocols or asynchronous reading through an intermediate database.

[0059] Step D20, if an audit passed instruction sent by the audit client based on the batch-processing result is received, determine that the electrode programming is completed; If the audit client returns an audit passed instruction after manual review or automated verification of the batch-processing result, the NC code can be marked as executable and synchronized to the target machine tool, and at the same time, the status of the electrode programming task is updated to "completed".

[0060] Step D30, if an audit failed instruction sent by the audit client based on the batch-processing result is received, trigger a preset human intervention mechanism.

[0061] The preset human intervention mechanism may specifically be to send an exception work order notice to a designated engineer terminal, and the notice content includes error details, associated electrode three-dimensional model identifiers, and correction suggestions, or lock the operation permission of the current task until it is resubmitted for review after manual correction, etc. This embodiment does not make specific restrictions on this.

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

[0063] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the content that is the same as or similar to the above-mentioned first embodiment and second embodiment can be referred to the above introduction and will not be repeated hereinafter. On this basis, the server includes an automatic programming system, and the step of performing automatic tool path programming processing based on the three-dimensional electrode model to obtain a tool path machining program includes: Step E10, extracting the electrode features of the three-dimensional electrode model through the automatic programming system, and generating an initial tool path based on the electrode features; The electrode features may specifically include, but are not limited to, one or more of three-dimensional structure features, surface features, concave features, and boundary features. Among them, the three-dimensional structure features include, but are not limited to, rib platforms, stepped surfaces, bosses, etc.; the surface features include, but are not limited to, spherical surfaces, cylindrical surfaces, free-form surfaces, arc surfaces, etc., the concave features include, but are not limited to, cavities, blind holes, through holes, key grooves, etc., and the boundary features include, but are not limited to, corners, edges, contour lines, etc. Feature extraction can be realized through geometric topology analysis algorithms, such as geometric boundary recognition based on edge detection, continuous feature segmentation based on surface fitting, concave region classification based on deep learning, etc. This embodiment does not make specific limitations on this.

[0064] After identifying the electrode features, an initial tool path is generated based on the electrode features. Specifically, a corresponding target machining strategy template can be matched in a preset template library according to the electrode features. Among them, the preset template library is a database pre-set with a plurality of electrode machining strategy templates, and each electrode machining strategy template can specifically be a set of logical rules pre-set for indicating the tool path machining process, such as the logical rules for binding the machining path and the machining strategy. In a specific embodiment, an electrode machining strategy template can be: {Rough machining (machining path): Contour-driven milling (machining strategy); Semi-finishing machining (machining path): Equal distribution of remaining material (machining strategy); Finishing machining (machining path): Helical interpolation or streamline toolpath (machining strategy); Special area machining (such as R corner, narrow groove) (machining path): Compensation machining (machining strategy)}.

[0065] After obtaining the target machining strategy template, an initial tool path can be generated according to the target machining strategy template. The initial tool path refers to the geometric motion trajectory sequence of the tool. Specifically, the geometric trajectory of the tool path can be generated based on the target machining strategy template according to the hierarchical machining logic. The hierarchical machining logic is based on the machining path sequence defined in the target machining strategy template (such as roughing → semi-finishing → finishing → special area machining). The three-dimensional electrode model is decomposed into multiple machining areas according to geometric features, and each layer corresponds to specific machining strategy parameters and tool motion rules. For example, in a specific embodiment, the generation process of the initial tool path is as follows: First, the electrode features (such as cavity, surface, boundary, etc.) are identified through an automatic programming system, and the corresponding machining strategy template is matched from the template library according to the feature type. For example, the cavity feature matches the template using contour milling in the roughing stage, and its layer thickness and step distance are dynamically calculated based on the tool diameter and material hardness (such as layer thickness = tool diameter × 0.3); in the semi-finishing stage, for the uncut areas remaining after the previous machining, a strategy of uniform residue distribution is adopted, and the row spacing is adaptively adjusted by scanning the curvature change of the electrode surface (such as the remaining height ≤ 0.1 mm); in the finishing stage, for high-precision surfaces (such as free surfaces), spiral interpolation or streamline tool paths are used to ensure that the tool path matches the surface curvature to reduce tool mark at the tool change point; for special areas (such as R corners), a compensation machining strategy is used to dynamically adjust the path offset according to the tool radius (such as compensation value = tool radius × 1.05) to avoid overcutting or undercutting. Then, the geometric trajectories of the paths in each machining stage are combined according to the process sequence to obtain the initial tool path.

[0066] Step E20: Identify the corners and discrete straight path segments in the initial tool path, update the corners in the initial tool path to arcs with a preset radius, and fit the discrete straight path segments into continuous spline curves to obtain an updated tool path; A corner refers to an angle where the sudden change angle of the motion direction exceeds a threshold (such as greater than 90 degrees). The corner is replaced with an arc transition path with a preset radius to eliminate the machining vibration marks caused by the sudden stop and jitter of the machine tool. Specifically, mature algorithms can be used to identify the corners in the path, such as angle mutation detection algorithms, arc transition interpolation algorithms, etc. Among them, the preset radius can be set in advance or dynamically calculated according to the electrode material hardness and tool diameter. For example, the radius is 0.2 to 0.5 times the tool diameter.

[0067] For discrete straight path segments composed of multiple short straight lines, such as the remaining areas with uneven step distances, they are fitted into continuous spline curves. A continuous spline curve refers to a mathematical curve with continuous curvature and parametric smoothness, such as B-spline curves, NURBS (Non-Uniform Rational B-spline) curves, etc. Specifically, mature algorithms can be used to fit the curves, such as rational B-spline curve interpolation algorithms, least squares fitting algorithms, etc.

[0068] Furthermore, after the tool path is updated, path topology verification can be performed, such as verifying the geometric continuity and interference of the updated tool path. Geometric continuity verification refers to verifying whether the curvature change of the tool path is continuous (such as G2 continuity) and whether there is a sudden change in the tangent direction at the connection point of adjacent curve segments; Interference verification refers to verifying whether the minimum clearance between the tool path and the 3D model of the electrode meets the safety threshold, or whether the tool movement trajectory exceeds the machine tool travel limit.

[0069] Furthermore, if the path topology verification fails, such as the interference verification result shows that the minimum clearance between the tool path and the electrode model is less than the safety threshold and exceeds the machine tool travel, and the geometric continuity verification result shows that the curvature is continuous and there is no sudden change in the tangent direction, then the tool trajectory can be readjusted or an alarm prompt can be generated to ensure that the curvature is continuous at the connection between the arc and the spline curve and there are no path breakpoints.

[0070] Step E30, perform automatic programming processing based on the updated tool path to obtain a tool path machining program, where the automatic programming processing includes machining stage marking, machining parameter binding, safety instruction insertion, and tool change instruction insertion.

[0071] Machining stage marking refers to inserting a stage identifier (such as <roughing> 、 <finishing>), which is used for parameter binding and machine tool logging in the post - processing stage.

[0072] Processing parameter binding means replacing the parameterized placeholders (such as $SPEED, $FEED) in the update path with specific values (rotation speed = 3000 rpm, feed rate = 200 mm / min) matched from the process database.

[0073] Safety instruction insertion means inserting machine tool safety control instructions (such as G40 cancels tool compensation, M08 turns on the coolant, G28 returns to the reference point) at the beginning and end of the tool path program and at the tool change nodes.

[0074] Tool change instruction insertion means that when detecting a machining stage change or a tool wear threshold trigger (such as cutting length > 50 m), the tool change instruction is automatically inserted, and further, the tool radius compensation value can be synchronously updated.

[0075] In this embodiment, through the dual optimization of corner rounding and discrete path spline fitting, the smoothness and machining stability of the tool path are improved, the impact loss of the machine tool is reduced, and the surface quality of the electrode is improved; the machining stage marking and parameter dynamic binding realize the traceability and multi - machine compatibility of the tool path program, and the safety instructions and automatic tool change logic ensure the safety and coherence of the machining process. Finally, a full - closed - loop automated programming scheme from path optimization to code generation is formed to adapt to the high - precision and high - efficiency electrode machining requirements.

[0076] Exemplarily, to help understand the technical concept or technical principle of the electrode programming method after combining this embodiment with the above - mentioned first embodiment and second embodiment, a specific embodiment is now listed. In this specific embodiment, the electrode programming method is applied to a server. Referring to Figure 2 As shown, the server is connected to the client. The server includes an archive management system, an automatic programming system, and a batch processing system. Through the server, the entire process of the automatic programming system and other process links is unmanned, realizing full - link automation from electrode model parsing, programming strategy formulation, tool path generation, point sampling, NC code output, to simulation. Based on this, the electrode programming process includes: 1. Task assignment stage: 1) The client assigns tasks and sends them to the server: The electrode machining tasks are assigned to the server queue.

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

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

[0079] 2. Automatic programming stage: 1) Feature analysis: Analyze electrode features and identify electrode machining features.

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

[0081] 3) Tool parameter configuration: Based on the matched machining logic templates.

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

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

[0084] 2) Automatic spotting: Simulate and check automatic point layout on the electrode model.

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

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

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

[0088] 2) After passing the review, archive the data to the server and the process ends.

[0089] 5. NG (No Good) processing 1) NG simulation result triggers manual intervention: 2) Manual modification: Engineers manually adjust the toolpath parameters or process strategies.

[0090] 3) Resubmit to the server and repeat the steps until OK.

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

[0092] Based on the first embodiment, the second embodiment, and / or the third embodiment of this application, in the fourth embodiment of this application, the content that is the same as or similar to the above-mentioned first embodiment, second embodiment, and third embodiment can be referred to the above introduction and will not be elaborated hereinafter. On this basis, the steps of automatically generating a toolpath machining program according to the three-dimensional model of the electrode include: Step G10: Extract features from the 3D electrode model to obtain electrode features, where the electrode features include one or more of three-dimensional structure features, surface features, concave features, and boundary features; Step G20: Match the corresponding target machining strategy template in a preset template library according to the electrode features, and perform tool path programming according to the target machining strategy template to obtain a tool path machining program, where the template library stores one or more electrode machining strategy templates.

[0093] After obtaining the target machining strategy template, perform tool path programming according to the target machining strategy template to obtain a tool path machining program. Specifically, after obtaining the target machining strategy template, computer-aided design software can be called to complete the tool path programming.

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

[0095] On this basis, as one implementation manner, the step of matching the corresponding target machining strategy template in the preset template library according to the electrode features includes: Step H10: Search for the target machining strategy template that matches the electrode features in the preset template library based on a preset first mapping relationship, where the first mapping relationship is the mapping relationship between different electrode features and electrode machining strategy templates.

[0096] The first mapping relationship can be constructed based on the feature-strategy association patterns in historical processing data. Specifically, by decomposing the electrode features into a combined form of three-dimensional structure features, surface features, concave features, and boundary features, and associating a corresponding processing strategy template for each combined form to form a mapping rule library. Exemplarily, the first mapping relationship can be {

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

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

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

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

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

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

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

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

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

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

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

[0104] As another implementation manner, the step of matching the corresponding target machining strategy template in the preset template library based on the feature hierarchy tree includes: Step I20, obtain the basic machining processes corresponding to each sub-feature based on a preset third mapping relationship, screen the available machining processes based on the feature hierarchy tree among the basic machining processes, and search for a target machining strategy template that matches the available machining processes in the preset template library based on a fourth mapping relationship, where the third mapping relationship is a mapping relationship between different feature types and machining processes, and the fourth mapping relationship is a mapping relationship between different machining processes and electrode machining strategy templates.

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

[0106] The fourth mapping relationship is the binding rule between different machining processes and strategy templates. For example, if it is necessary to perform contour layer milling and parameter line programming processes simultaneously, it is mapped to a strategy template that includes the linkage of 3D offset rough machining and surface finish machining; if there is a combination of layer-by-layer circumferential milling and trochoidal milling processes, it is associated with a template with the integrated logic of deep cavity roughing and edge finishing, etc.

[0107] Through the third mapping relationship, the corresponding basic machining processes are matched for each sub-feature (such as rib → contour layer milling, free-form surface → parameter line programming). It should be noted that each sub-feature may match multiple basic machining processes in the third mapping relationship. Therefore, based on the feature hierarchy tree, the available machining processes are screened out from all the basic machining processes. Specifically, based on the subordinate logic and process compatibility rules of the feature hierarchy tree, the available machining processes that are compatible with the parent node process and the overall machining process are screened out from all the basic machining processes. Exemplarily, assume that for a certain sub-feature (such as a concave feature) in the feature hierarchy tree, multiple possible machining processes (such as pocket machining can match layer-by-layer circumferential milling, helical milling or trochoidal milling processes) are matched through the third mapping relationship. If the concave feature is a child node of a surface feature and the parent node has already matched the parameter line programming process, then the pocket machining process that is compatible with the surface machining result is screened out. If there is a boundary feature at the same level and the trochoidal milling process has already been matched, then the pocket process that has no conflict with the trochoidal milling tool path is screened out.

[0108] The process combination of the screened available machining processes (such as "parameter line programming → layer-by-layer circumferential milling → trochoidal milling") is input into the fourth mapping relationship to match the target machining strategy template in the template library that supports multi-process collaboration.

[0109] By combining the subordinate logic of the feature hierarchy tree and the process compatibility rules, the basic machining processes matched by the third mapping relationship are screened to ensure that the screened available machining processes not only meet the independent machining requirements of each sub-feature but also can adapt to the structural dependency relationship between features; further, through the fourth mapping relationship, the ordered process combination is accurately bound to the multi-process collaboration strategy template in the template library, so that the process arrangement of the machining strategy template strictly follows the feature hierarchy order, thereby eliminating problems such as sudden changes in machining allowance, tool interference and deviation of feature mating accuracy caused by disordered process sequence or path conflict. At the same time, the subjective intervention of manual process planning is reduced through the automated screening and mapping mechanism, significantly improving the first-pass qualification rate and process planning efficiency of multi-feature electrode machining.

[0110] In a possible implementation, the target machining strategy template includes at least one machining strategy and machining paths corresponding to each machining strategy. The step of generating a tool path machining program according to the target machining strategy template includes: Step J10: Match the corresponding tool model according to the target machining strategy template, and determine machining parameters according to the tool model, the electrode features, and the target machining strategy template, where the machining parameters include one or more of the spindle speed range, feed rate range, cutting depth, and tool path step pitch; The machining path is the motion trajectory planning of the tool relative to the workpiece surface during electrode machining, specifically characterized by the coordinate point sequence and its connection method in the numerical control code. The machining strategy is the core logical rule for driving the generation of the machining path, including but not limited to one or more of process stage division (rough machining, semi-finishing machining, finishing machining), cutting mode selection (down milling, up milling, trochoidal milling), tool motion parameters (feed rate, cutting depth), and path optimization algorithms (residual material avoidance, overcut protection).

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

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

[0113] Step J20: Determine the path sequence of each machining path, and sequentially program and combine the machining strategies and bind the machining parameters based on the path sequence to obtain a tool path machining program.

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

[0115] After obtaining information such as the tool model, machining strategy, machining path, and machining parameters, automatic programming can be performed according to the programming combination rules to obtain the tool path machining program. For example, the programming combination logic binds the process rules of the machining strategy (such as the contour layer-by-layer algorithm for rough machining) with the path geometric data of the machining path (such as the Z-axis layer 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 a Z-value loop instruction in the G code, and the curvature adaptive feed of the finish machining strategy is mapped into an F-value dynamic change instruction.

[0116] By accurately binding the process rules in the machining strategy (such as roughing and finishing stage division, cutting mode selection) with the tool model and dynamic parameters (such as spindle speed, feed rate), and combining the geometric characteristics of the machining path (such as Z-axis layer coordinates, tool path along the curvature direction), the tool path machining program is generated to realize the coupling of machining parameters and path planning. For example, in the rough machining stage, a large-diameter tool is used to match the high-speed rotation and large-layer-depth contour layer-by-layer path to quickly remove the surplus; in the finish machining stage, a ball-end tool is switched and bound to the curved surface parameter path with low feed and small row spacing to ensure surface smoothness; at the same time, through the progressive arrangement of the path sequence (for example, from rough machining to semi-finishing, and then to finish machining) and the coding of process rules, problems such as cutting vibration, abnormal residual allowance, and unqualified surface quality caused by manual parameter setting deviation or path sequence misalignment are eliminated, while improving machining efficiency, ensuring machining accuracy and process stability, and reducing manual intervention through the automatic programming mechanism, significantly reducing the complexity of process planning and the trial-and-error cost.

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

[0118] It should be noted that the rough machining strategy is the machining strategy adopted in the rough machining path stage, such as using the contour layer-by-layer milling strategy in the rough machining stage; the semi-finishing machining strategy is the machining strategy adopted in the semi-finishing machining path stage, such as using the residual material uniform distribution strategy in the semi-finishing machining path stage; the finish machining strategy is the machining strategy adopted in the finish machining path stage, such as using the spiral interpolation or streamline tool path strategy in the finish machining path stage.

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

[0120] Through the progressive combination of roughing, semi-finishing and finishing strategies, the material removal rate is maximized in the rough machining stage, the sudden change of the remaining material is eliminated in the semi-finishing stage, and the surface quality index is achieved in the finishing stage, ensuring the balance between the efficiency and accuracy of the tool path program; the coded conversion of the strategies in each stage realizes the seamless connection between the machining logic and the numerical control system, reduces manual programming errors and improves the process reliability of complex electrode machining.

[0121] Exemplarily, 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, refer to Figure 3 As shown, the tool path programming process includes: 1. Feature analysis: Based on the drawing software, the API is called to analyze the electrode features, and the machining feature types are automatically extracted and classified, including but not limited to: Three-dimensional structure features: strengthening platforms, stepped surfaces, bosses, etc.; Surface features: spherical surfaces, cylindrical surfaces, free-form surfaces, arc surfaces, etc.; Depression features: cavities, blind holes, through holes, key grooves, etc.; Boundary features: corners, edges, contour lines, etc.

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

[0123] 3. Tool parameter configuration: Based on the matched machining logic template (i.e., the target machining strategy template), the following operations are performed: Automatically retrieve the adapted tool model from the tool database; Dynamically calculate machining parameters based on characteristic geometric parameters: For example, spindle speed range: 1000 - 20000 rpm, feed rate range: 50 - 5000 mm / min, cutting depth: 0.1 - 5 mm, tool path step distance: 0.01 - 2 mm, etc. 4. Tool path generation, executed in the machining logic sequence: Rough machining path planning: Adopt the contour milling strategy; Semi-finishing path optimization: Implement the residual material uniform distribution algorithm; Finish machining path generation: Apply spiral interpolation or streamline tool path; Special area processing: Perform compensation machining on features such as R corners and narrow grooves.

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

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

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

[0127] Step L20, if the verification result indicates that the verification is passed, then execute the step of performing automatic batch processing based on the tool path processing program to obtain a batch processing result; The conditions for determining that the verification is passed can be preset, such as passing the interference check (no risk of unexpected contact or collision), passing the geometric integrity check (no path breakpoints and the safety gap meets the standard), passing the parameter compliance check (all parameters are within the allowable range). When it is detected that the verification result meets the verification passing condition, it is determined that the verification result indicates that the verification is passed. At this time, the three-dimensional model of the electrode is obtained to proceed with the subsequent batch processing process.

[0128] Step L30, if the verification result indicates that the verification fails, then output a prompt message or modify the tool path processing program.

[0129] When it is detected that the verification result does not meet the verification passing condition, then output a prompt message or modify the tool path processing program.

[0130] Furthermore, if the automatic correction fails, the tool path processing program can be locked and an alarm message can be pushed, and manual correction is required before resubmitting for verification.

[0131] In this embodiment, through the qualification verification of the tool path processing program, the subsequent process is continued only 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 caused by program errors; when 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 both efficiency and reliability, and reduces the number of repeated verifications.

[0132] In a possible implementation manner, the step of if the verification result indicates that the verification fails, then output a prompt message or modify the tool path processing program includes: Step M10, obtain the type of reason for the unqualified tool path processing program based on the verification result; The type of reason includes but is not limited to failed interference check, missing parameters, process parameter exceeding the limit, and insufficient safety instruction insertion, etc. A failed interference check 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. Missing parameters means that there are unassigned parametric instructions in the tool path processing program. Process parameter exceeding the limit means that the parameter value exceeds the allowable range of the process database. Insufficient safety instruction insertion means that there are no necessary safety control instructions or the safety height is insufficient at key nodes (such as tool change points, path start points, path end points). Geometric path error means that there are path breakpoints, redundant idle movements, or the minimum safety gap with the electrode model does not meet the standard, etc.

[0133] Step M20, if the cause type belongs to the preset automatically repairable type, modify the tool path processing program with the modification strategy corresponding to the cause type, where the preset automatically repairable type includes one or more of parameter missing, process parameter overlimit, and insufficient safety instruction insertion; The preset automatically repairable type is the cause type that can be preset to be automatically repaired, and the modification strategy corresponding to each automatically repairable type can be correspondingly set to automatically repair the tool path processing program based on the corresponding modification strategy.

[0134] Step M30, if the cause type does not belong to the preset automatically repairable type, output a prompt message.

[0135] If the cause type does not belong to the automatically repairable type, output a prompt message so that relevant personnel can perform manual repair to avoid subsequent operation of unqualified NC code on the target machine tool and ensure the safety of the machine tool.

[0136] Further, after automatically repairing or manually submitting the repaired tool path processing program, the verification process can be re-executed until it passes.

[0137] In this embodiment, through the classification repair mechanism, the conventional errors in the tool path processing program can be automatically modified, significantly shortening the debugging cycle; for complex errors, a prompt message is output to trigger task intervention to ensure the safety of the machine tool, thereby ensuring the reliability of the program through the verification process, avoiding the inflow of incorrect programs into the actual processing link, and ensuring the machining safety and process consistency of the machine tool.

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

[0139] Step N20, if the cause type includes process parameter overlimit, modify the tool path processing program with the strategy of correcting the overlimit parameters to the preset safe range; The specific allowable range of the preset full range can be set according to the physical limits (such as the maximum rotational speed of 8000 rpm and the maximum feed rate of 800 mm / min) stored in the machine tool parameter library and the process constraints (such as the maximum cutting depth of 0.2 mm in the thin-walled area).

[0140] Step E30, if the cause type includes insufficient insertion of safety instructions, modify the tool path machining program with the strategy of recalculating the retraction height according to a preset safety factor and replacing the coordinate values of the retraction instruction and / or completing the safety instructions.

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

[0142] Specifically, for the calculation of the retraction height, the retraction height can be recalculated according to the tool length and the Z-axis stroke margin of the machine tool according to a preset safety factor (such as 1.2 times the tool length), and the retraction height is obtained by multiplying the tool length by the preset safety system.

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

[0144] In addition, the embodiment of the present application also proposes an electrode programming device. The electrode programming system is deployed on the server, the electrode programming method is applied to the server, and the server is connected to the task dispatching client. Refer to Figure 4 As shown, the electrode programming device includes: An acquisition module 10, in response to the electrode programming task published by the task dispatching client, acquires the three-dimensional model of the electrode according to the electrode programming task; An automatic programming module 20, used to perform automatic tool path programming processing on the three-dimensional model of the electrode to obtain a tool path machining program; A batch processing module 30 for automatically performing batch processing based on the tool path processing program to obtain a batch processing result, so as to complete electrode programming, where the batch processing includes post-processing, point stepping, drawing output, and simulation.

[0145] In one embodiment, the server includes a batch processing system, and the batch processing module 30 is further configured to: Send a batch processing start instruction for the tool path processing program to the batch processing system, so that after receiving the batch processing start instruction, the batch processing system automatically performs batch processing based on the tool path processing program to obtain a batch processing result.

[0146] In one embodiment, the batch processing module 30 is further configured to: Obtain the system status of the batch processing system; If the system status indicates that the batch processing system is in an idle state, execute the step of sending a batch processing start instruction for the tool path processing program to the batch processing system; If the system status indicates that the batch processing system is in a busy state, store the tool path processing program in a preset waiting queue.

[0147] In one embodiment, the batch processing module 30 is further configured to: Obtain or set the priority of the tool path processing program, and associate and store the tool path processing program with the priority in a preset waiting queue; The step of sending a batch processing start instruction for the tool path processing program to the batch processing system includes: Take out a target tool path processing program with the highest priority from the waiting queue, and send a batch processing start instruction for the target tool path processing program to the batch processing system.

[0148] In one embodiment, the server is connected to an audit client, and the electrode programming device further includes an audit module, and the audit module is configured to: Output the batch processing result to the audit client; If an audit passed instruction sent by the audit client based on the batch processing result is received, determine that the electrode programming is completed; If an audit failed instruction sent by the audit client based on the batch processing result is received, trigger a preset human intervention mechanism.

[0149] In one embodiment, the server includes an archive management system, and the acquisition module 10 is further configured to: Obtain the electrode identifier of the electrode to be generated according to the electrode programming generation task; Obtain a matching 3D electrode model from the file management system according to the electrode identification.

[0150] In one embodiment, the server includes an automatic programming system. The automatic programming module 20 is further configured to: Extract the electrode features of the 3D electrode model through the automatic programming system, and generate an initial tool path according to the electrode features; Identify the corners and discrete straight path segments in the initial tool path, update the corners in the initial tool path to arcs with a preset radius, and fit the discrete straight path segments into continuous spline curves to obtain an updated tool path; Perform automatic programming processing based on the updated tool path to obtain a tool path machining program, where the automatic programming processing includes machining stage marking, machining parameter binding, safety instruction insertion, and tool change instruction insertion.

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

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

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

[0154] The server provided by the embodiments of the present application adopts the electrode programming method in the above embodiments, and can solve the technical problem of how to improve the efficiency and automation level of electrode programming so as to improve the overall efficiency and automation level of electrical discharge machining. Compared with the prior art, the beneficial effects of the server provided by the present application are the same as those of the electrode programming method provided by the above embodiments, and other technical features in the server are the same as those disclosed in the method of the previous embodiment, and will not be described in detail here.

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

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

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

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

[0159] The above computer-readable storage medium may be included in the server; it may also exist separately without being assembled into the server.

[0160] The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed by the server, the server is caused to: in response to an electrode programming task published by a task dispatching client, obtain a three-dimensional electrode model according to the electrode programming task; perform automatic tool path programming processing based on the three-dimensional electrode model to obtain a tool path processing program; perform automatic batch processing based on the tool path processing program to obtain a batch processing result, so as to complete electrode programming, where the batch processing includes post-processing, point stepping, drawing, and simulation.

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

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

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

[0164] The readable storage medium provided by this application is a computer-readable storage medium. The computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for performing the above electrode programming method, and can 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 electrical discharge machining. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by this application are the same as those of the electrode programming method provided in the above embodiments, and will not be elaborated here.

[0165] In addition, an embodiment of the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the electrode programming method described above are implemented.

[0166] The specific implementation manners of the computer program product of the present application are basically the same as those of the above embodiments of the electrode programming method, and will not be described in detail here.

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

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

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

[0170] The above are only the 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 by using the content of the specification and drawings of the present application, or directly or indirectly applied to other related technical fields, shall be equally included in the patent protection scope of the present application.< / finishing> < / roughing>

Claims

1. An electrode programming method, characterized in that, The electrode programming method is applied to a server, which is connected to a task dispatching client. The electrode programming method includes: Responding to an electrode programming task published by the task dispatching client, and obtaining an electrode three-dimensional model according to the electrode programming task; Performing automatic tool path programming processing on the electrode three-dimensional model to obtain a tool path processing program; Performing automatic batch processing based on the tool path processing program to obtain a batch processing result, so as to complete electrode programming, where the batch processing includes post-processing, point stepping, drawing and simulation.

2. The electrode programming method according to claim 1, wherein The server includes a batch processing system. The step of performing automatic batch processing based on the tool path processing program to obtain a batch processing result includes: Sending a batch processing start instruction for the tool path processing program to the batch processing system, so that after receiving the batch processing start instruction, the batch processing system performs automatic batch processing based on the tool path processing program to obtain a batch processing result.

3. The electrode programming method according to claim 2, wherein Before the step of sending a batch processing start instruction for the tool path processing program to the batch processing system, the method further includes: Obtaining the system state of the batch processing system; If the system state indicates that the batch processing system is in an idle state, then execute the step of sending a batch processing start instruction for the tool path processing program to the batch processing system; If the system state indicates that the batch processing system is in a busy state, then store the tool path processing program in a preset waiting queue.

4. The electrode programming method according to claim 3, wherein, The step of storing the tool path processing program in a preset waiting queue includes: Obtaining or setting the priority of the tool path processing program, and associating and storing the tool path processing program with the priority in a preset waiting queue; The step of sending a batch processing start instruction for the tool path processing program to the batch processing system includes: 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.

5. The electrode programming method according to any one of claims 1 to 4, characterized in that The server is connected to an audit client. After the step of performing automatic batch processing based on the tool path processing program to obtain a batch processing result, the method further includes: Outputting the batch processing result to the audit client; If a review passed instruction sent by the audit client based on the batch processing result is received, it is determined that the electrode programming is completed; If a review not passed instruction sent by the audit client based on the batch processing result is received, a preset human intervention mechanism is triggered.

6. The electrode programming method according to any one of claims 1 to 4, characterized in that, The server includes an archive management system. The step of obtaining an electrode three-dimensional model according to the electrode programming task: Obtaining an electrode identifier of an electrode to be generated according to the electrode programming generation task; Obtaining a matching electrode three-dimensional model from the archive management system according to the electrode identifier.

7. The electrode programming method according to any one of claims 1 to 4, characterized in that The server includes an automatic programming system. The step of performing automatic tool path programming processing on the electrode three-dimensional model to obtain a tool path processing program includes: Extracting electrode features of the electrode three-dimensional model through the automatic programming system, and generating an initial tool path according to the electrode features; Identify the corners and discrete straight path segments in the initial tool path, update the corners in the initial tool path to arcs with a preset radius, and fit the discrete straight path segments to a continuous spline curve to obtain an updated tool path; Based on the updated tool path, perform automatic programming processing to obtain a tool path machining program, where the automatic programming processing includes machining stage marking, machining parameter binding, safety instruction insertion, and tool change instruction insertion.

8. A server, characterized in that, Comprising: A memory, a processor, and a computer program stored on the memory and executable on the processor, where when the computer program is executed by the processor, it implements the electrode programming method according to any one of claims 1 to 7.

9. A readable storage medium, characterized in that, The readable storage medium includes a computer-readable storage medium, on which an electrode programming program is stored, and when the electrode programming program is executed by a processor, it implements the steps of the electrode programming method according to any one of claims 1 to 7.

10. A computer program product, characterized in that, The computer program product includes a computer program, and when the computer program is executed by a processor, it implements the steps of the electrode programming method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Controller for wire-cut electrical discharge machines

    CN101284322A

  • Wire electric discharge machine controller for correcting machining route using program commands

    CN103302369A

  • Electrode program design method and device, electronic equipment and storage medium

    CN119292571A

  • Automatic design method for electric discharge machining electrode for metal mold, system, program, and storage medium

    JP2004291097A

  • Extinguisher

    KR102618588B1

Cited By

  • Task scheduling and processing system and method for electrode post-processing

    CN122387618A