Electrode programming methods, servers, readable storage media, and computer program products
The entire electrode programming process is automated by using a server. The automated process handles toolpath programming, post-processing, point positioning, drawing output, and simulation, which solves the problems of low efficiency and low accuracy of traditional electrode programming and improves the efficiency and automation level of electrical discharge machining.
Patent Information
- Application Number
- CN202510749956.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-06
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2045-06-06
AI Technical Summary
Traditional electrode programming methods rely on manual operation, resulting in low efficiency, low accuracy, and susceptibility to human factors, failing to meet the demands of modern manufacturing for processing efficiency and automation.
The server enables automatic toolpath programming, automatic post-processing, automatic point detection, automatic drawing generation, and automatic simulation, achieving full-process automation. It utilizes the server's distributed computing capabilities for multi-task parallel processing, integrates the electrode programming process into an automated process, and uses a task queue management mechanism to achieve intelligent sorting of the processing flow.
It significantly shortens the overall cycle of electrode programming, improves the continuity and efficiency of the programming process, and enhances the automation level of electrode programming, thereby improving the efficiency and automation level of electrical discharge machining.
Smart Images

Figure CN120276711B_ABST
Abstract
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 Technology
[0002] In modern manufacturing, Electrical Discharge Machining (EDM) technology is highly favored due to its ability to handle high-hardness materials and complex-shaped workpieces. Because of its non-contact machining characteristics, EDM has become a core process for machining high-hardness materials and complex cavities. With the increasing demands for processing efficiency and automation in the manufacturing industry, electrode programming, as a key step in EDM, has become undeniably important.
[0003] Currently, the mainstream method for electrode programming relies on manual operation of computer-aided manufacturing software. The specific process is as follows: the operator must first manually design the electrode toolpath in the computer-aided manufacturing software, and then manually perform post-processing, point verification, drawing output, and simulation verification in sequence through plug-ins or independent tools to complete the electrode programming.
[0004] The core problem with traditional electrode programming methods lies in the discreteness and repetitiveness of the operation process. Because toolpath programming, post-processing, simulation, and other steps need to be executed step by step and rely on manual switching, operators need to frequently wait for software responses and manually input relevant parameters. The time accumulation effect of discrete operations is significant, which seriously restricts the overall efficiency and automation level of electrical discharge machining.
[0005] Therefore, improving the efficiency and automation level of electrode programming to enhance 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 objective 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 in order to improve the overall efficiency and automation level of electrical discharge machining.
[0007] To achieve the above objectives, this application provides an electrode programming method, which is applied to a server connected to a task dispatch client. The electrode programming method includes:
[0008] In response to the electrode programming task issued by the task dispatch client, a three-dimensional model of the electrode is obtained based on the electrode programming task.
[0009] The toolpath machining program is obtained by automatically programming the toolpath based on the three-dimensional model of the electrode.
[0010] Automatic batch processing is performed based on the toolpath machining program to obtain batch processing results, thereby completing electrode programming. The batch processing includes post-processing, point detection, drawing output, and simulation.
[0011] In one embodiment, the server includes a batch processing system, and the step of automatically batch processing based on the toolpath machining program to obtain batch processing results includes:
[0012] A batch processing start command for the toolpath machining program is sent to the batch processing system, so that after receiving the batch processing start command, the batch processing system can automatically perform batch processing based on the toolpath machining program to obtain batch processing results.
[0013] In one embodiment, before the step of sending a batch processing start command for the toolpath machining program to the batch processing system, the method further includes:
[0014] Obtain the system status of the batch processing system;
[0015] If the system status indicates that the batch processing system is in an idle state, then the step of sending the batch processing start command for the toolpath machining program to the batch processing system is executed;
[0016] If the system status indicates that the batch processing system is busy, the toolpath machining program is stored in a preset waiting queue.
[0017] In one embodiment, the step of storing the toolpath machining program to a preset waiting queue includes:
[0018] Get or set the priority of the toolpath machining program, and store the toolpath machining program and the priority in a preset waiting queue;
[0019] The step of sending a batch processing start command for the toolpath machining program to the batch processing system includes:
[0020] Take the target toolpath machining program with the highest priority from the waiting queue and send a batch processing start command for the target toolpath machining program to the batch processing system.
[0021] In one embodiment, the server is connected to the audit client, and after the step of automatically batch processing based on the toolpath machining program to obtain batch processing results, the method further includes:
[0022] The batch processing results are output to the audit client.
[0023] If the review client receives a review approval instruction based on the batch processing result, it is determined that the electrode programming is complete.
[0024] If the audit client receives an audit failure instruction based on the batch processing result, a preset human intervention mechanism is triggered.
[0025] In one embodiment, the server includes a file management system, and the step of obtaining the three-dimensional model of the electrode based on the electrode programming task is as follows:
[0026] Obtain the electrode identifier of the electrode to be generated based on the electrode programming generation task;
[0027] The matching three-dimensional model of the electrode is obtained from the file management system based on the electrode identifier.
[0028] In one embodiment, the server includes an automatic programming system, and the step of obtaining a toolpath machining program by automatically programming the toolpath based on the three-dimensional electrode model includes:
[0029] The automatic programming system extracts the electrode features of the three-dimensional model of the electrode and generates an initial tool path based on the electrode features.
[0030] Identify the corners and discrete straight line segments in the initial toolpath, update the corners in the initial toolpath to arcs with a preset radius, and fit the discrete straight line segments to continuous spline curves to obtain the updated toolpath;
[0031] Based on the updated toolpath, automatic programming is performed to obtain the toolpath machining program. The automatic programming process includes machining stage marking, machining parameter binding, safety command insertion, and tool change command insertion.
[0032] In addition, to achieve the above objectives, this application also provides a server, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the electrode programming method described above.
[0033] In addition, to achieve the above objectives, this application also provides a readable storage medium, which is a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the steps of the electrode programming method described above.
[0034] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the electrode programming method described above.
[0035] One or more technical solutions proposed in this application have at least the following technical effects:
[0036] The server in this application responds to the electrode programming task issued by the task dispatch client, obtains the electrode 3D model according to the electrode programming task, performs automatic toolpath programming processing based on the electrode 3D model to obtain the toolpath machining program, and performs automatic batch processing based on the toolpath machining program to obtain the batch processing result, thereby completing the electrode programming. The batch processing includes post-processing, point detection, drawing output and simulation. Thus, this embodiment of the application achieves fully automated processing of the entire process, including automatic toolpath programming, automatic post-processing, automatic point positioning, automatic drawing generation, and automatic simulation, based on a server. It leverages the server's distributed computing capabilities to achieve parallel processing of multiple tasks. From the input of the electrode 3D model data to the final CNC program generation, no manual intervention is required, realizing a closed-loop chain for the entire electrode programming process. The server integrates the electrode programming process into an automated workflow, utilizing its high concurrency processing capabilities to support multi-client task collaboration, eliminating redundant time spent by operators switching between multiple independent tools and waiting for software responses. By connecting the originally discrete steps into a continuous execution process, and using the server's task queue management mechanism to achieve intelligent sorting of the processing flow, seamless data flow and processing between each step are achieved, significantly shortening the overall electrode programming cycle, reducing the uncertainty of manual operation nodes and processes, and improving the continuity and efficiency of the programming process. This, in turn, improves the efficiency and automation level of electrode programming, and consequently, the efficiency and automation level of electrical discharge machining. Attached Figure Description
[0037] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0038] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0039] Figure 1 This is a flowchart illustrating the first embodiment of the electrode programming method of this application;
[0040] Figure 2 This is a schematic diagram of the electrode programming process according to an embodiment of the electrode programming method of this application;
[0041] Figure 3 This is a schematic diagram of the toolpath programming process according to an embodiment of the electrode programming method of this application;
[0042] Figure 4This is a schematic diagram of the electrode programming device of this application;
[0043] Figure 5 This is a schematic diagram of the hardware operating environment involved in the electrode programming method device in the embodiments of this application.
[0044] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0045] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0046] EDM (Electrical Discharge Machining) technology is highly favored for its ability to handle high-hardness materials and complex-shaped workpieces. Due to its non-contact machining characteristics, EDM has become a core process for machining high-hardness materials and complex cavities. With the increasing demands for processing efficiency and automation in the manufacturing industry, electrode programming, as a key step in EDM, is of paramount importance.
[0047] However, the current electrode programming process mainly relies on manual operation. Specifically, traditional programming methods cannot automatically connect programming, point setting, post-processing, form generation (i.e., drawing generation), and simulation steps. Operators need to manually program, set points, perform post-processing, and generate forms on the drafting software. Although plug-in functions exist, the actual operation is cumbersome, severely impacting work efficiency, and requiring waiting time for the software to run. Although some programming software has been widely used in the electrode processing field with the development of computer technology, existing electrode programming methods still suffer from problems such as the cumbersome and time-consuming manual programming process, and susceptibility to human factors, leading to inaccurate programming results and even processing errors. Furthermore, with the increasing variety of electrodes and the rising processing requirements, the efficiency and accuracy of manual programming can no longer meet production demands.
[0048] Therefore, the current electrode programming method has at least the following problems: low programming efficiency, low accuracy, and susceptibility to human factors. These problems not only increase production costs but also limit the improvement of production efficiency.
[0049] Based on this, the main solution of this application is: the server responds to the electrode programming task issued by the task dispatch client, and obtains the electrode three-dimensional model according to the electrode programming task; automatic toolpath programming is performed based on the electrode three-dimensional model to obtain the toolpath machining program; automatic batch processing is performed based on the toolpath machining program to obtain the batch processing result, so as to complete the electrode programming, wherein the batch processing includes post-processing, point detection, drawing output and simulation.
[0050] This application achieves fully automated processing of the entire process—automatic toolpath programming, automatic post-processing, automatic locating, automatic drawing generation, and automatic simulation—based on a server. It leverages the server's distributed computing capabilities to enable parallel processing of multiple tasks. From inputting the electrode's 3D model data to generating the final CNC program, no manual intervention is required, realizing a closed-loop electrode programming process. The server integrates the electrode programming process into an automated workflow, utilizing its high concurrency to support multi-client task collaboration, eliminating redundant time spent by operators switching between multiple independent tools and waiting for software responses. By linking previously discrete steps into a continuous execution flow, and utilizing the server's task queue management mechanism to achieve intelligent sequencing of the processing flow, seamless data flow and processing between each step significantly shorten the overall electrode programming cycle, reduce the uncertainty of manual operation nodes and processes, and improve the continuity and efficiency of the programming process. This, in turn, enhances the efficiency and automation level of electrode programming, thereby improving the efficiency and automation level of electrical discharge machining (EDM).
[0051] 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.
[0052] Based on this, this application proposes an electrode programming method according to a first embodiment. The electrode programming method is applied to a server, the server being connected to a task dispatch client, and the electrode programming method includes:
[0053] Step S10: In response to the electrode programming task issued by the task dispatch client, obtain the three-dimensional model of the electrode according to the electrode programming task;
[0054] Specifically, the electrode programming task can be a task that indicates the need to program the electrode. The electrode 3D model can be a digital 3D model of the electrode, which can be constructed by computer-aided design software or generated by reverse engineering through 3D scanning equipment. The model can include the electrode's geometric topology, dimensional tolerance annotations, and surface feature parameters (such as discharge area markings and roughness requirements).
[0055] It should be noted that the server can be a standalone server or a server cluster. Furthermore, the server cluster can be divided into roles, such as computing servers and verification servers. The computing servers are used to perform computational tasks, such as feature recognition, parameter calculation, and toolpath calculation, while the verification servers are used to perform verification tasks, such as simulation and code compliance verification.
[0056] The server can be configured with a file management system for storing 3D electrode models. Upon receiving an electrode programming task from a task dispatch client, the server can retrieve the corresponding 3D electrode model from this file management system based on the task parameters of the electrode programming task. Specifically, these task parameters are consistent with the storage index used by the file management system to store the 3D electrode models. For example, in one implementation, the electrode identifier is used as the storage index to store the 3D electrode models. Therefore, upon receiving an electrode programming task, the server obtains the electrode identifier based on the task and retrieves the corresponding 3D electrode model from the file management system using that identifier.
[0057] The server can also set up a task queue. After receiving an electrode programming task published by the task dispatch client, the server stores the received electrode programming task in the task queue and takes out one electrode programming task from the task queue for subsequent processing each time. This allows the server to process multiple electrode programming tasks in an orderly manner, thereby supporting the client to publish multiple electrode programming tasks at one time.
[0058] Furthermore, the server can also obtain or set the priority of electrode programming tasks to retrieve electrode programming tasks from the task queue based on priority order, thereby achieving elastic scheduling of multiple tasks.
[0059] Step S20: Automatic toolpath programming is performed based on the three-dimensional model of the electrode to obtain the toolpath machining program;
[0060] It should be noted that an automatic programming system can be deployed within the server. This system performs automatic toolpath programming based on the three-dimensional electrode model, thus obtaining the toolpath machining program.
[0061] Specifically, this automatic programming system can automatically design the tool's machining path using a 3D electrode model, ultimately generating a toolpath machining program, thus completing automatic toolpath programming. This toolpath machining program refers to intermediate code for parameterized path instructions, such as ATC (Automatic Tool Changer Code) code, G (G-Code) code, etc.
[0062] Step S30: Automatic batch processing is performed based on the toolpath machining program to obtain batch processing results, thereby completing electrode programming. The batch processing includes post-processing, point detection, drawing output, and simulation.
[0063] Post-processing refers to converting the toolpath machining program into NC (Numerical Control Code) code that the target machine tool can recognize. This may include setting the workpiece coordinate system, adding tool radius compensation (such as G41 / G42) and length compensation (such as G43 / G44) instructions, and embedding machine-specific control code (such as M03 spindle start). The target machine tool refers to the CNC machine tool used to subsequently execute the NC code to generate the electrode.
[0064] "Point placement" refers to the automatic placement of points on the surface of the electrode's three-dimensional model, such as automatically generating the coordinates of machining positioning points and simulating the clamping and inspection of the spatial rationality of the points.
[0065] Drawing output refers to the automatic generation of machining drawings (which can be electronic machining drawings) containing dimensional tolerances and surface roughness annotations based on the structural features of the electrode 3D model, as well as process guidance documents that record machining parameters (which can also be electronic process guidance documents).
[0066] Simulation refers to executing NC code in a virtual machining environment to verify the interference between the toolpath and the three-dimensional model of the electrode, the machine tool travel limits, and the machining accuracy, ensuring the safety and feasibility of the program.
[0067] Correspondingly, the batch processing results include post-processing results such as NC code, stepping results such as reference point coordinate sequence files and / or clamping inspection reports, drawing results such as machining drawings and / or process guidance documents, and simulation results such as simulation reports. The reference point coordinate sequence files can be three-dimensional coordinates of electrode clamping positioning points stored in structured text format for setting the workpiece coordinate system of CNC machine tools. The clamping inspection report contains text or three-dimensional annotation files of the point space rationality verification results (such as interference distance and minimum safety clearance).
[0068] 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 detection, plotting, and simulation can be 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.
[0069] Furthermore, if the simulation result in the batch processing results indicates that the simulation passed, then the electrode programming is considered complete. Conversely, if the simulation result in the batch processing results indicates that the simulation failed, then the input toolpath modification command can be obtained, the modified toolpath machining program can be obtained according to the toolpath modification command, and the step of automatically batch processing based on the toolpath machining program to obtain the batch processing results can be returned to the execution based on the modified toolpath machining program.
[0070] Specifically, the conditions for simulation success can be preset, such as no interference between the toolpath and the electrode 3D model, the machine tool travel not exceeding the limit and the machining accuracy meeting the standard. When the simulation result is detected to meet these simulation success conditions, the simulation result is determined to indicate that the simulation has passed, and the electrode programming of the obtained toolpath machining program is determined to be completed.
[0071] When a simulation result is detected as not meeting the simulation pass conditions, the simulation result is determined to be a failure, triggering a correction process. For example, if the simulation pass conditions are no interference between the toolpath and the electrode 3D model, the machine tool travel not exceeding limits, and the machining accuracy meeting the standards, then if interference between the toolpath and the electrode model, machine tool travel exceeding limits, or machining accuracy exceeding tolerances are detected, the simulation result is determined to be a failure. Specifically, the correction process includes obtaining manually input toolpath modification instructions, such as adjusting tool compensation values, modifying cutting parameters, or reconstructing path geometry; adjusting parameters or regenerating the path in the original toolpath machining program according to the toolpath modification instructions; generating a modified toolpath machining program; resubmitting it; and restarting the entire process of post-processing, point-based analysis, drawing output, and simulation for verification until the simulation result passes. Furthermore, if multiple corrections still fail, a system alarm can be triggered and pushed to a designated engineer's terminal for manual intervention.
[0072] This embodiment achieves fully automated processing of the entire process—automatic toolpath programming, automatic post-processing, automatic point positioning, automatic drawing generation, and automatic simulation—based on a server. It leverages the server's distributed computing capabilities to enable parallel processing of multiple tasks. From inputting the electrode's 3D model data to generating the final CNC program, no manual intervention is required, realizing a closed-loop electrode programming process. The server integrates the electrode programming process into an automated workflow, utilizing its high concurrency to support multi-client task collaboration, eliminating redundant time spent by operators switching between multiple independent tools and waiting for software responses. By linking previously discrete steps into a continuous execution flow, and using the server's task queue management mechanism to achieve intelligent sequencing of the processing flow, seamless data flow and processing between each step significantly shorten the overall electrode programming cycle, reduce the uncertainty of manual operation nodes and processes, and improve the continuity and efficiency of the programming process. This, in turn, improves the efficiency and automation level of electrode programming, and consequently, the efficiency and automation level of electrical discharge machining.
[0073] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description and will not be repeated hereafter. Based on this, the server includes a batch processing system, and the step of automatically batch processing based on the toolpath machining program to obtain batch processing results includes:
[0074] Step A10: Send a batch processing start command for the toolpath machining program to the batch processing system, so that after receiving the batch processing start command, the batch processing system can automatically batch process based on the toolpath machining program to obtain the batch processing result.
[0075] In this embodiment, when batch processing is required, a batch processing start command for the toolpath machining program is sent to the batch processing system. In response to the batch processing start command, the batch processing system automatically triggers the collaborative work of the post-processing, positioning, drawing output, and simulation processing modules. Based on the toolpath machining program, code conversion, positioning point generation, drawing output, and simulation verification operations are executed sequentially to generate batch processing results including NC code, process drawings, and simulation results. The sending of the batch processing start command and the response execution of the batch processing system constitute an event-driven closed-loop control process.
[0076] In this embodiment, by constructing the batch processing start command and the batch processing system's response execution into an event-driven closed-loop control flow, the fully automated processing from toolpath program to CNC code is achieved, significantly reducing manual intervention and improving the efficiency of multi-task concurrent processing. At the same time, based on the modular collaborative architecture design, it is ensured that the machining parameters and geometric data required for post-processing, step-by-step analysis, drawing output, and simulation can be kept consistent, avoiding machining anomalies caused by cross-process data mismatch.
[0077] In one possible implementation, prior to the step of sending a batch processing start command for the toolpath machining program to the batch processing system, the method further includes:
[0078] Step B10: Obtain the system status of the batch processing system;
[0079] The system status can specifically include an idle state and a busy state. The idle state refers to the state in which the batch processing system is not executing any batch processing tasks and the system resource utilization rate is lower than a preset threshold. The busy state refers to the state in which the batch processing system is executing at least one batch processing task or the system resource utilization rate exceeds the preset threshold.
[0080] Step B20: If the system status indicates that the batch processing system is in an idle state, then execute the step of sending a batch processing start command for the toolpath machining program to the batch processing system.
[0081] If the batch processing system is in an idle state, it indicates that the batch processing system is currently able to process batch processing tasks. At this time, a batch processing start command is sent to the batch processing system so that the batch processing system responds to the batch processing start command and executes the subsequent batch processing process.
[0082] Step B30: If the system status indicates that the batch processing system is busy, then the toolpath machining program is stored in a preset waiting queue.
[0083] If the batch processing system is busy, it means that the batch processing system is currently unable to process batch processing tasks. For example, the batch processing system may be executing another batch processing task. In this case, the toolpath machining program is stored in a preset waiting queue so that when the batch processing system is detected to be idle, the toolpath machining program is retrieved from the waiting queue, and a batch processing start command is initiated for the retrieved toolpath machining program, ensuring that the batch processing tasks of multi-electrode programming tasks can be carried out in an orderly manner.
[0084] In this embodiment, by monitoring the idle and busy states of the batch processing system in real time, dynamic decisions are made on whether to execute tasks immediately or temporarily store them in a waiting queue. This achieves adaptive matching between task scheduling and system resource usage, avoiding processing delays or system crashes caused by resource overload. At the same time, the task temporary storage mechanism based on the waiting queue ensures that multi-electrode programming tasks are processed sequentially in a certain order, eliminating the risk of task omissions or conflicts. Combined with the closed-loop logic of status detection and queue management, a highly stable and high-throughput batch processing task execution system is formed, significantly improving the processing efficiency of electrode programming tasks and the reliability of the system.
[0085] In one possible implementation, the step of storing the toolpath machining program to a preset waiting queue includes:
[0086] Step C10: Obtain or set the priority of the toolpath machining program, and store the toolpath machining program and the priority in a preset waiting queue;
[0087] The priority of the toolpath machining program can be generated based on the urgency of the electrode machining task, the complexity of the process, or user-defined rules. The toolpath machining program is associated with the priority and stored in a preset waiting queue, which can be a first-in-first-out queue sorted by priority.
[0088] The step of sending a batch processing start command for the toolpath machining program to the batch processing system includes:
[0089] Step C20: Take the target toolpath machining program with the highest priority from the waiting queue and send a batch processing start command for the target toolpath machining program to the batch processing system.
[0090] When the batch processing system is detected to be idle, a target toolpath machining program with the highest priority is retrieved from the waiting queue. This highest priority can be determined by comparing the priority values of all tasks in the queue or by matching according to preset rules. A batch processing start command for the target toolpath machining program is then sent to the batch processing system to trigger the batch processing system to process the target toolpath machining program.
[0091] This embodiment achieves differentiated processing of multi-electrode programming tasks through a priority-driven waiting queue management mechanism. This ensures that high-priority tasks (such as urgent orders or precision machining tasks) occupy system resources first, significantly shortening the overall processing cycle of critical tasks. It also avoids delays in high-priority tasks caused by low-priority tasks preempting resources. Furthermore, it allows for dynamic priority settings (such as automatically increasing the priority of corner-clearing electrode tasks based on process complexity) to adapt to real-time changes in production plans. Ultimately, while ensuring fairness in task processing, it maximizes system resource utilization and task response efficiency, forming an electrode programming task scheduling system that balances efficiency and flexibility.
[0092] In one possible implementation, the server connects to the audit client, and after the step of automatically batch processing based on the toolpath machining program to obtain batch processing results, the method further includes:
[0093] Step D10: Output the batch processing results to the audit client;
[0094] It should be noted that the review client and the task dispatch client can be the same client or different clients; this embodiment does not impose any specific restrictions on this.
[0095] The batch processing results, including NC code, machining drawings, process guidance documents, and simulation verification reports, are transmitted to the review 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.
[0096] Step D20: If an approval instruction is received from the review client based on the batch processing result, it is determined that the electrode programming is complete.
[0097] If the audit client returns an approval instruction after manually or automatically auditing the batch processing results, the NC code can be marked as executable and synchronized to the target machine tool, while the electrode programming task status is updated to "complete".
[0098] Step D30: If the audit client receives an audit failure instruction based on the batch processing result, a preset human intervention mechanism is triggered.
[0099] The preset human intervention mechanism can specifically send an abnormal work order notification to a designated engineer's terminal. The notification content includes error details, the identification of the associated electrode 3D model and correction suggestions, or lock the operation permission of the current task until it is manually corrected and resubmitted for review. This embodiment does not impose specific limitations on this.
[0100] By integrating the audit system with a closed-loop feedback mechanism of automated batch processing, manual audit nodes are embedded in the automated process to ensure the reliability and security of electrode programming results, avoiding processing accidents or material waste caused by program errors. When the audit fails, an intervention mechanism (such as intelligent notification and access control) is triggered, balancing the efficiency of automation with the accuracy of manual correction, forming a collaborative workflow of "automatic processing - manual verification". This meets the dual requirements of fault tolerance and efficiency in high-precision electrode processing scenarios, and ensures that electrode generation meets the quality control standards of intelligent industrial production.
[0101] Based on the first and / or second embodiments of this application, in the third embodiment of this application, the content that is the same as or similar to the first and second embodiments described above can be referred to the above description and will not be repeated hereafter. Based on this, the server includes an automatic programming system, and the step of automatically programming the toolpath based on the three-dimensional model of the electrode to obtain the toolpath machining program includes:
[0102] Step E10: Extract the electrode features of the three-dimensional model of the electrode through the automatic programming system, and generate an initial tool path based on the electrode features;
[0103] The electrode features may specifically include, but are not limited to, one or more of the following: three-dimensional structural features, curved surface features, concave features, and boundary features. Three-dimensional structural features include, but are not limited to, reinforcing platforms, stepped surfaces, and bosses; curved surface features include, but are not limited to, spherical surfaces, cylindrical surfaces, freeform surfaces, and arc surfaces; concave features include, but are not limited to, cavities, blind holes, through holes, and keyways; and boundary features include, but are not limited to, corners, edges, and contour lines. Feature extraction can be achieved through geometric topology analysis algorithms, such as geometric boundary recognition based on edge detection, continuous feature segmentation based on surface fitting, and concave region classification based on deep learning. This embodiment does not impose specific limitations on these methods.
[0104] After identifying the electrode features, an initial toolpath is generated based on these features. Specifically, the corresponding target machining strategy template can be matched with a preset template library based on the electrode features. This preset template library is a pre-set database storing multiple electrode machining strategy templates. Each electrode machining strategy template can be a pre-set set of logical rules for indicating the toolpath machining process, such as logical rules binding machining paths and machining strategies. In one specific implementation, a particular electrode machining strategy template can be:
[0105] Roughing (machining path): contour milling (machining strategy);
[0106] Semi-finishing (processing path): uniform distribution of residual material (processing strategy);
[0107] Finishing (machining path): helical interpolation or streamlined tool path (machining strategy);
[0108] Special area processing (such as rounded corners, narrow grooves) (processing path): compensation processing (processing strategy)}.
[0109] After obtaining the target machining strategy template, an initial toolpath can be generated based on it. This initial toolpath refers to the sequence of geometric motion trajectories of the tool. Specifically, the toolpath geometric trajectory can be generated based on the target machining strategy template according to a layered machining logic. This layered machining logic is based on the machining path sequence defined in the target machining strategy template (e.g., roughing → semi-finishing → finishing → special area machining), decomposing the electrode 3D model into multiple machining areas according to geometric features. Each layer corresponds to specific machining strategy parameters and tool motion rules. For example, in one specific implementation, the initial toolpath generation process is as follows: First, the electrode features (such as cavities, surfaces, boundaries, etc.) are identified by an automatic programming system. Based on the feature type, the corresponding machining strategy template is matched from the template library. For example, in the roughing stage of cavity feature matching, a template for contour milling with equal height is used, and its layer thickness and step distance are dynamically calculated by the tool diameter and material hardness (e.g., layer thickness = tool diameter × 0.3). In the semi-finishing stage, for the uncut areas left by the previous machining, a residual material uniform distribution strategy is adopted, and the line spacing is adaptively adjusted by scanning the curvature change of the electrode surface (e.g., residual height ≤ 0.1 mm). In the finishing stage, for high-precision surfaces (such as freeform surfaces), helical interpolation or streamlined tool path is used to ensure that the toolpath matches the curvature of the surface to reduce tool marks. For special areas (such as R-angles), a compensation machining strategy is used to dynamically adjust the path offset based on the tool radius (e.g., compensation value = tool radius × 1.05) to avoid overcutting or undercutting. Then, the path geometry trajectories of each machining stage are combined according to the process sequence to obtain the initial toolpath.
[0110] Step E20: Identify the corners and discrete straight path segments in the initial toolpath, update the corners in the initial toolpath to arcs with a preset radius, and fit the discrete straight path segments to continuous spline curves to obtain the updated toolpath;
[0111] A corner refers to an angle where the direction of motion abruptly changes beyond a threshold (e.g., greater than 90 degrees). The corner is replaced with a circular arc transition path of a preset radius to eliminate machining vibration marks caused by sudden machine stop vibrations. Specifically, mature algorithms can be used to identify corners in the path, such as angle abrupt change detection algorithms and circular arc transition interpolation algorithms. This preset radius can be set in advance or dynamically calculated based on the electrode material hardness and tool diameter; for example, the radius can be 0.2 to 0.5 times the tool diameter.
[0112] For discrete straight line path segments composed of multiple short straight lines, such as residual regions with uneven step sizes, they can be fitted as continuous spline curves. Continuous spline curves refer to mathematical curves with continuous curvature and smooth parameterization, such as B-spline curves and NURBS (Non-Uniform Rational B-spline) curves. Specifically, the curves can be fitted using mature algorithms, such as rational B-spline curve interpolation algorithms and least squares fitting algorithms.
[0113] Furthermore, after the toolpath is updated, path topology verification can be performed, such as verifying the geometric continuity and interference of the updated toolpath. Geometric continuity verification refers to verifying whether the curvature change of the toolpath is continuous (such as G2 continuity) and whether there is a sudden change in tangent direction at the connection point of adjacent curve segments. Interference verification refers to verifying whether the minimum gap between the toolpath and the electrode 3D model meets the safety threshold, or whether the tool movement trajectory exceeds the machine tool travel limit.
[0114] Furthermore, if the path topology verification fails, such as the interference verification result showing that the minimum gap between the tool path and the electrode model is less than the safety threshold and exceeds the machine tool travel, or the geometric continuity verification result showing that the curvature is continuous and there is no sudden change in the tangent direction, then the tool path can be readjusted or an alarm prompt can be generated to ensure that the curvature at the junction of the arc and the spline curve is continuous and there are no path breaks.
[0115] Step E30: Based on the updated toolpath, perform automatic programming to obtain the toolpath machining program. The automatic programming includes machining stage marking, machining parameter binding, safety command insertion, and tool change command insertion.
[0116] Machining stage marking refers to inserting stage identifiers (such as...) into the toolpath program based on the path type (roughing, semi-finishing, finishing). <roughing> 、 <finishing>), used for parameter binding and machine tool log recording in the post-processing stage.
[0117] Machining parameter binding refers to replacing parameterized placeholders (such as $SPEED, $FEED) in the update path with specific values matched from the process database (speed = 3000 rpm, feed rate = 200 mm / min).
[0118] Safety command insertion refers to inserting machine tool safety control commands (such as G40 to cancel tool compensation, M08 to turn on coolant, and G28 to return to reference point) at the beginning and end of the toolpath program and at tool change nodes.
[0119] Tool change command insertion refers to the automatic insertion of a tool change command when a machining stage switch or tool wear threshold is detected (such as when the cutting length is >50m), and the tool radius compensation value can be updated synchronously.
[0120] This embodiment improves toolpath smoothness and machining stability, reduces machine tool impact loss, and enhances electrode surface quality through dual optimization of corner rounding and discrete path spline fitting. Machining stage marking and parameter dynamic binding enable traceability of the toolpath program and multi-machine tool compatibility, while safety instructions and automatic tool changing logic ensure the safety and continuity of the machining process. Ultimately, a fully closed-loop automated programming solution from path optimization to code generation is formed, adapting to the high-precision and high-efficiency electrode machining requirements.
[0121] For example, to aid in understanding the technical concept or principle of the electrode programming method combined with the first and second embodiments described above, a specific embodiment is now provided. In this specific embodiment, the electrode programming method is applied to a server, referring to... Figure 2 As shown, the server connects to the client. The server includes a file management system, an automatic programming system, and a batch processing system. The server enables fully automated operation of the automatic programming system and other processes, achieving end-to-end automation from electrode model analysis, programming strategy formulation, toolpath generation, tooling detection, NC code output, to simulation. Based on this, the electrode programming process includes:
[0122] 1. Task assignment phase:
[0123] 1) Client assigns task to server: Assigns electrode processing task to server queue.
[0124] 2) Obtain electrode information: Extract the required electrode data information from the server.
[0125] 3) Download files: Download the relevant electrode engineering files (i.e., electrode 3D models) and parameters to the server.
[0126] 2. Automatic programming stage:
[0127] 1) Feature analysis: Analyze electrode features and identify electrode processing features.
[0128] 2) Processing logic matching: Based on the parsed feature type, retrieve the corresponding processing logic template from the preset processing strategy library.
[0129] 3) Tool parameter configuration: based on the matched machining logic template.
[0130] 4) Toolpath generation: The machining paths of each feature are logically combined according to the process sequence to form a complete machining program sequence (i.e., toolpath machining program).
[0131] 3. Batch processing stage:
[0132] 1) Automatic Post-processing: Converts the toolpath machining program into machine tool-readable NC code. This includes coordinate system transformation, tool radius compensation instructions, tool length compensation instructions, and generation of machine tool-specific control codes.
[0133] 2) Automatic point placement: The simulation test automatically places points on the electrode model.
[0134] 3) Automatic drawing generation: Generates machining drawings and process documents.
[0135] 4) Automatic simulation: Verify the safety and feasibility of the program through virtual processing.
[0136] 4. Review and archive
[0137] 1) Automatic submission for review: The complete processing plan is pushed to the review system and awaits final confirmation.
[0138] 2) Once the review is approved, the data is archived to the server, and the process ends.
[0139] 5. NG (No Good) Handling
[0140] 1) Simulation results are NG, triggering manual intervention:
[0141] 2) Manual modification: Engineers manually adjust toolpath parameters or process strategies.
[0142] 3) Resubmit to the server and repeat the steps until OK.
[0143] It should be noted that the above examples are only used to help understand this embodiment and do not constitute a limitation on the electrode programming process of this embodiment. Any simple modifications based on this technical concept are within the protection scope of this application.
[0144] Based on the first, second, and / or third embodiments of this application, in the fourth embodiment of this application, the content that is the same as or similar to the above-described embodiments one, two, and three can be referred to the above description and will not be repeated hereafter. Based on this, the step of obtaining the toolpath machining program by automatically programming the toolpath according to the three-dimensional electrode model includes:
[0145] Step G10: Extract features from the three-dimensional model of the electrode to obtain electrode features, wherein the electrode features include one or more of the following: three-dimensional structural features, curved surface features, concave features, and boundary features;
[0146] Step G20: Match the corresponding target machining strategy template in the preset template library according to the electrode characteristics, and perform toolpath programming according to the target machining strategy template to obtain the toolpath machining program. The template library stores one or more electrode machining strategy templates.
[0147] After obtaining the target machining strategy template, toolpath programming is performed based on the template to generate the toolpath machining program. Specifically, after obtaining the target machining strategy template, toolpath programming can be completed by calling computer-aided design software.
[0148] This embodiment acquires a 3D model of the electrode and extracts its features to accurately identify key electrode characteristics, eliminating the time cost of manual analysis of the electrode structure by programmers and improving feature recognition efficiency. Based on feature extraction, a pre-set template library is used to automatically match corresponding target machining strategy templates. This allows for the template-based modeling of the relationship between standardized machining strategies and specific electrode features, building upon historical machining data. The extracted electrode features are automatically matched to the corresponding target machining strategy templates in the library, avoiding strategy selection biases caused by insufficient experience in manual programming. This ensures the accuracy of the subsequent automatically programmed toolpath machining program based on the matching results. Furthermore, the overall technical solution utilizes a seamless automatic programming process—feature recognition, template matching, and automatic toolpath generation—eliminating the need for manual intervention in the toolpath programming process, thereby improving both efficiency and accuracy.
[0149] Based on this, as one implementation method, the step of matching the corresponding target processing strategy template in a preset template library according to the electrode features includes:
[0150] Step H10: Based on a preset first mapping relationship, search for a target processing strategy template that matches the electrode feature in a preset template library, wherein the first mapping relationship is the mapping relationship between different electrode features and electrode processing strategy templates.
[0151] The first mapping relationship can be constructed based on the feature-strategy association pattern in historical processing data. Specifically, it decomposes electrode features into combinations of three-dimensional structural features, curved surface features, concave features, and boundary features, and forms a mapping rule library by associating each combination with a corresponding processing strategy template. For example, the first mapping relationship can be {[A three-dimensional structural features, A curved surface features, A concave features, A boundary features are mapped to electrode processing strategy template 1], [A three-dimensional structural features, A curved surface features, A concave features, B boundary features are mapped to electrode processing strategy template 2], [A three-dimensional structural features, A curved surface features, B concave features, A boundary features are mapped to electrode processing strategy template 3], ..., [D three-dimensional structural features, D curved surface features, D concave features, D boundary features are mapped to electrode processing strategy template N]}.
[0152] By accurately mapping feature combinations with strategy templates, the trial-and-error iteration of strategies in manual programming is reduced, thereby improving the intelligence level of process planning and the consistency of processing quality in complex electrode fabrication.
[0153] As another implementation, the step of matching the corresponding target processing strategy template in a preset template library based on the electrode features includes:
[0154] Step H20: Construct a feature hierarchy relationship tree based on each sub-feature in the electrode features, and match the corresponding target processing strategy template in the preset template library based on the feature hierarchy relationship tree.
[0155] This feature hierarchy tree is a tree-like data structure representing the hierarchical relationships, processing priorities, and process dependencies among electrode features. It is constructed by analyzing the geometric dependencies and processing constraints of each sub-feature. For example, as an example, this feature hierarchy tree is: {Root node: 3D structural feature (reinforcing platform), first-level child node: curved surface feature (freeform surface), first-level child node: boundary feature (acute angle edge), second-level child node of curved surface feature: concave feature (cavity)}.
[0156] By using a structured representation of a feature hierarchy tree, the geometric correlation and process dependence of electrode features are explicitly encoded. This enables the template matching process to dynamically match processing logic templates based on the logical relationships between features (such as processing order dependence and geometric support constraints). This avoids strategy conflicts or process redundancy caused by traditional single feature matching, improves the accuracy of matching processing strategies, thereby enhancing the rationality of process planning and processing efficiency for complex electrode processing, and reducing rework rates caused by incorrect feature processing order.
[0157] Furthermore, as one implementation method, the step of matching the corresponding target processing strategy template in a preset template library based on the feature hierarchy relationship tree includes:
[0158] Step I10: Based on the preset second mapping relationship, search in the preset template library for a target processing strategy template that matches the feature hierarchy relationship tree, wherein the second mapping relationship is the mapping relationship between different feature hierarchy relationship trees and electrode processing strategy templates.
[0159] The node hierarchy relationships (such as the subordinate order of parent and child nodes) of the feature hierarchy relationship tree can be traversed and compared with the feature tree structure of the strategy template in the template library to obtain the feature tree structure with the highest matching or the highest matching similarity. The electrode processing strategy template corresponding to the matched feature tree structure is then determined as the target processing strategy template. For example, if a child node of a concave feature as a curved feature is detected in the feature hierarchy relationship tree, a linkage strategy template containing curved surface processing followed by cavity processing is matched to ensure that the processing order is consistent with the subordinate relationship between features.
[0160] By matching the target machining strategy template in the template library based on the topological structure of the feature hierarchy relationship tree, the target machining strategy template can strictly follow the subordinate order and structural correlation between electrode features. For example, when a concave feature is a child node of a surface feature, it is directly mapped to the linkage strategy template that performs surface machining first and then cavity machining. This ensures that the tool path generation logic and the actual geometric dependence of the electrode features remain synchronized, effectively avoiding problems such as tool interference, abnormal residual material, or damage to feature machining integrity caused by misaligned machining order. At the same time, through the tree structure of the feature hierarchy relationship tree and the automated comparison mechanism of the template hierarchy logic, the accuracy of strategy template matching and the efficiency of machining process planning can be significantly improved, reducing reliance on manual experience and enhancing the controllability of complex electrode machining processes.
[0161] As another implementation, the step of matching the corresponding target processing strategy template in a preset template library based on the feature hierarchy relationship tree includes:
[0162] Step I20: Based on the preset third mapping relationship, obtain the basic processing technology corresponding to each of the sub-features; based on the feature hierarchy relationship tree, filter the available processing technologies among the basic processing technologies; based on the fourth mapping relationship, search for the target processing strategy template that matches the available processing technology in the preset template library. The third mapping relationship is the mapping relationship between different feature types and processing technologies, and the fourth mapping relationship is the mapping relationship between different processing technologies and electrode processing strategy templates.
[0163] The third mapping relationship is a rule table that associates feature types with process knowledge bases. For example, the reinforcing table in the three-dimensional structure feature is mapped to the equal height layer milling process; the free surface in the curved surface feature is mapped to the parametric line planning and curvature adaptive feed process; the deep cavity in the concave feature is mapped to the layered ring cutting and tool radial avoidance process; and the sharp edge in the boundary feature is mapped to the cycloidal milling process.
[0164] The fourth mapping relationship is the binding rule for different machining processes and strategy templates. For example, if it is necessary to perform contour milling and parametric line planning processes at the same time, it is mapped to a strategy template that includes linkage between three-dimensional offset roughing and surface finishing. If there is a combination of layered circumferential cutting and cycloidal milling processes, it is associated with a template that has integrated logic for deep cavity roughing and edge finishing.
[0165] The third mapping relationship is used to match the corresponding basic machining process for each sub-feature (e.g., reinforced table → contour milling, freeform surface → parametric planning). 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, usable machining processes are selected from all basic machining processes. Specifically, based on the subordinate logic and process compatibility rules of the feature hierarchy tree, usable machining processes compatible with the parent node process and the overall machining flow can be selected from all basic machining processes. For example, assuming that for a certain sub-feature in the feature hierarchy tree (e.g., a concave feature), multiple possible machining processes are matched through the third mapping relationship (e.g., cavity machining can match layered ring cutting, helical milling, or cycloidal milling processes), if the concave feature is a child node of the surface feature, and the parent node has already matched the parametric planning process, then a cavity machining process compatible with the surface machining result is selected. If there is a boundary feature at the same level that has already matched the cycloidal milling process, then a cavity machining process that does not conflict with the cycloidal milling tool path is selected.
[0166] Input the selected available machining process combinations (such as "parameter line planning → layered circumferential cutting → cycloidal milling") into the fourth mapping relationship to match and obtain the target machining strategy template that supports multi-process collaboration in the template library.
[0167] By combining the subordinate logic of the feature hierarchy relationship tree with process compatibility rules, the basic processing technology matched by the third mapping relationship is screened to ensure that the screened available processing technology not only meets the independent processing requirements of each sub-feature, but also adapts to the structural dependency relationship between features. Furthermore, the ordered process combination is precisely bound to the multi-process collaborative strategy template in the template library through the fourth mapping relationship, so that the process arrangement of the processing strategy template strictly follows the feature hierarchy order, thereby eliminating problems such as sudden changes in processing allowance, tool interference and feature matching accuracy deviation caused by disordered process order or path conflict. At the same time, the automated screening and mapping mechanism reduces the subjective intervention of manual process planning, significantly improving the one-time forming pass rate and process planning efficiency of multi-feature electrode processing.
[0168] In one possible implementation, the target machining strategy template includes at least one machining strategy and machining paths corresponding to each machining strategy. The step of obtaining a toolpath machining program by performing toolpath programming based on the target machining strategy template includes:
[0169] Step J10: Match the corresponding tool model according to the target machining strategy template, and determine the machining parameters according to the tool model, the electrode features and the target machining strategy template. The machining parameters include one or more of the following: spindle speed range, feed rate range, depth of cut and toolpath step distance.
[0170] The machining path is the trajectory planning of the tool relative to the workpiece surface during electrode machining. Specifically, it is represented by the sequence of coordinate points and their connection method in the CNC code. The machining strategy is the core logical rule that drives the generation of the machining path, including but not limited to one or more of the following: process stage division (roughing, semi-finishing, finishing), cutting mode selection (climb milling, conventional milling, trochoidal milling), tool motion parameters (feed rate, depth of cut), and path optimization algorithm (residual material avoidance, overcut protection).
[0171] Tool matching can be based on the requirements of machining strategy for tool geometry. For example, a roughing strategy can be matched with a large-diameter multi-flute end mill to improve cutting efficiency, while a finishing strategy can be matched with a ball end mill to achieve smooth curved surfaces.
[0172] The machining parameters are determined by analyzing the process rules and electrode characteristic parameters (such as material hardness and surface curvature) in the target machining strategy template. The spindle speed range (e.g., setting the speed to 8000-12000 rpm when machining steel with carbide tools), feed rate range (e.g., 2000 mm / min in roughing stage and 500 mm / min in finishing stage), depth of cut (e.g., 0.5 mm for roughing layer and 0.1 mm for finishing layer), and toolpath step distance (e.g., the line spacing is 40% of the tool diameter) are then linked to the specific machining path.
[0173] Step J20: Determine the path order of each machining path, and based on the path order, program and combine the machining strategies and bind the machining parameters in sequence to obtain the toolpath machining program.
[0174] The path sequence between different processing paths can be preset, such as the path sequence following the process progression principle of "from roughing to semi-finishing, and then to finishing".
[0175] After obtaining information such as tool type, machining strategy, machining path, and machining parameters, automatic programming can be performed according to programming combination rules to obtain toolpath machining program. For example, the programming combination logic binds the process rules of the machining strategy (such as the contour layering algorithm for roughing) with the path geometry data of the machining path (such as the Z-axis layering coordinates) and injects the toolpath code generated by the machining parameters to obtain the toolpath machining program. For example, the layer depth parameter of the roughing strategy is converted into the Z-value loop instruction in the G code, and the curvature adaptive feed of the finishing strategy is mapped into the F-value dynamic change instruction.
[0176] By precisely binding the process rules in the machining strategy (such as the division of roughing and finishing stages and the selection of cutting modes) with the tool type and dynamic parameters (such as spindle speed and feed rate), and combining them with the geometric characteristics of the machining path (such as Z-axis layered coordinates and curvature direction tool movement) to generate toolpath machining programs, the coupling of machining parameters and path planning is achieved. For example, in the roughing stage, a large-diameter tool is used to match a high-speed and deep layered path to quickly remove the excess material; in the finishing stage, a ball end mill is switched to a low-feed and small-pitch curved parameter line path to ensure a smooth surface. At the same time, by progressively arranging the path sequence (such as from roughing to semi-finishing and then to finishing) and coding the process rules, problems such as cutting vibration, abnormal excess material residue, and substandard surface quality caused by manual parameter setting deviations or misaligned path sequences are eliminated. This improves machining efficiency while ensuring machining accuracy and process stability. Furthermore, the automated programming mechanism reduces manual intervention, significantly reducing the complexity of process planning and trial-and-error costs.
[0177] In one possible implementation, the machining strategy includes a roughing strategy, a semi-finishing strategy, and a finishing strategy. The machining path includes a roughing path corresponding to the roughing strategy, a semi-finishing path corresponding to the semi-finishing strategy, and a finishing path corresponding to the finishing strategy. The step of determining the path order of each machining path and sequentially programming and combining the machining parameters and each machining strategy based on the path order to obtain the toolpath machining program includes:
[0178] Step K10: Based on the path sequence from roughing path, semi-finishing path to finishing path, the roughing strategy, the semi-finishing strategy and the finishing strategy are programmed and combined to obtain the toolpath machining program.
[0179] It should be noted that the roughing strategy is the machining strategy adopted in the roughing path stage, such as the contour milling strategy adopted in the roughing stage; the semi-finishing strategy is the machining strategy adopted in the semi-finishing path stage, such as the uniform distribution of residual material strategy adopted in the semi-finishing path stage; and the finishing strategy is the machining strategy adopted in the finishing path stage, such as the spiral interpolation or streamlined tool path strategy adopted in the finishing path stage.
[0180] This machining strategy includes, but is not limited to, roughing, semi-finishing, and finishing strategies. It may include special area machining strategies, such as compensatory machining strategies for special areas like rounded corners and narrow slots. Specifically, compensatory machining strategies are superimposed during the finishing stage. For example, for rounded corner areas: an equal residual amount compensation strategy is adopted, generating a multi-pass cycloidal milling path based on the difference between the rounded corner radius and the tool radius to ensure that the residual material at the root of the rounded corner is cleared; for narrow slot areas: a tool yaw avoidance strategy is adopted, using a combination of axial tilting feed and cycloidal trajectory to avoid interference between the tool sidewall and the slot wall.
[0181] By combining roughing, semi-finishing, and finishing strategies, the material removal rate is maximized in the roughing stage, the abrupt change in allowance is eliminated in the semi-finishing stage, and the surface quality indicators are achieved in the finishing stage, ensuring a balance between efficiency and accuracy in the toolpath program. The coded conversion of strategies at each stage enables seamless integration between the machining logic and the CNC system, reducing manual programming errors and improving the process reliability of complex electrode machining.
[0182] For example, to aid in understanding the technical concept or principle of the toolpath programming method of this embodiment, a specific embodiment is now provided. In this specific embodiment, refer to... Figure 3 As shown, the toolpath programming process includes:
[0183] 1. Feature Analysis: Based on mapping software, APIs are used to analyze electrode features, automatically extracting and classifying processing feature types, including but not limited to:
[0184] Three-dimensional structural features: reinforcing platform, stepped surface, boss, etc.;
[0185] Curved surface features: spheres, cylinders, freeform surfaces, arcs, etc.
[0186] Recessed features: cavity, blind hole, through hole, keyway, etc.;
[0187] Boundary features: corners, edges, contour lines, etc.
[0188] 2. Processing logic matching: Based on the parsed feature type, the corresponding processing logic template is retrieved from the preset processing strategy library, specifically including:
[0189] Retrieval of the mapping relationship between feature type and processing technology;
[0190] Establish a tree-like structure for the hierarchical relationship of features;
[0191] Dynamically match the optimal processing template combination, i.e. the target processing strategy template. A standard library is pre-built, which contains electrode processing strategy templates for various electrode types.
[0192] 3. Tool parameter configuration: Based on the matched machining logic template (i.e., the target machining strategy template), perform the following operations:
[0193] Automatically retrieve the appropriate tool model from the tool database;
[0194] Machining parameters are dynamically calculated based on characteristic geometric parameters, such as: spindle speed range: 1000-20000 rpm, feed rate range: 50-5000 mm / min, depth of cut: 0.1-5 mm, toolpath stepover: 0.01-2 mm, etc.
[0195] 4. Toolpath generation, executed according to the machining logic sequence:
[0196] Roughing path planning: Employ contour milling strategy;
[0197] Semi-finishing path optimization: Implement a uniform residual material distribution algorithm;
[0198] Finishing path generation: Apply helical interpolation or streamlined tool path;
[0199] Special area processing: Compensation processing is performed on features such as radius angles and narrow grooves.
[0200] 5. Toolpath combination: Logically combine the machining paths of each feature according to the process sequence to form a complete toolpath machining program, i.e., the programmed toolpath, which includes:
[0201] Process division: from roughing to semi-finishing, and then to finishing;
[0202] Smooth transition of toolpath;
[0203] Safe height is calculated automatically;
[0204] Insert tool change command.
[0205] It should be noted that the above examples are only used to help understand this embodiment and do not constitute a limitation on the toolpath programming process of this embodiment. Any simple modifications based on this technical concept are within the protection scope of this application.
[0206] Based on the first, second, third, and / or fourth embodiments of this application, in the fifth embodiment of this application, the content that is the same as or similar to the above-described embodiments one, two, three, and four can be referred to the above description and will not be repeated hereafter. In addition, after the step of obtaining the toolpath machining program by automatically programming the toolpath based on the three-dimensional electrode model, the method further includes:
[0207] Step L10: Perform a qualification check on the toolpath machining program and obtain the check result;
[0208] This conformity check is used to verify the conformity of the toolpath machining program, and may include, but is not limited to, one or more of the following: interference check, geometric integrity check, and parameter compliance check. Interference check refers to using kinematic simulation to detect whether there is any unexpected contact or collision risk between moving parts such as the tool body, tool holder, or machine tool spindle in the toolpath and the workpiece, fixture, or machine tool body. Geometric integrity check refers to detecting whether there are any breakpoints, redundant displacements, or the minimum clearance between the toolpath and the electrode model does not meet the safety threshold. Parameter compliance check verifies whether the parameterized instructions are within the allowable range of the process database.
[0209] Step L20: If the verification result indicates that the verification is passed, then the step of automatically batch processing based on the toolpath machining program to obtain the batch processing result is executed.
[0210] Conditions for passing the verification can be preset, such as passing the interference test (no risk of unexpected contact or collision), passing the geometric integrity test (no path breakpoints and safety gaps meet the standards), and passing the parameter compliance test (all parameters are within the allowable range). When the verification result meets the verification passing condition, the verification result is determined to be passed, and the three-dimensional model of the electrode is obtained for subsequent batch processing.
[0211] Step L30: If the verification result indicates that the verification failed, output a prompt message or modify the toolpath machining program.
[0212] If the verification result does not meet the verification pass condition, a prompt message will be output or the toolpath machining program will be modified.
[0213] Furthermore, if automatic correction fails, the toolpath machining program can be locked and an alarm message can be sent, requiring manual correction and resubmission for verification.
[0214] This embodiment verifies the conformity of the toolpath machining program. Only when the conformity verification passes will the subsequent process continue, thereby ensuring the executability and safety of the toolpath machining program and avoiding machining accidents or material waste caused by program errors. If the conformity verification fails, a prompt message is output or the toolpath machining program is automatically modified. This automatic correction and manual intervention collaborative mechanism balances efficiency and reliability, and reduces the number of repeated verifications.
[0215] In one possible implementation, the step of outputting a prompt message or modifying the toolpath machining program if the verification result indicates that the verification failed includes:
[0216] Step M10: Based on the verification result, obtain the type of reason for the failure of the toolpath machining program;
[0217] The types of reasons include, but are not limited to, interference verification failure, missing parameters, process parameters exceeding limits, and insufficient safety command insertion. Interference verification failure means that there is a risk of collision between the tool body, tool holder, or machine tool spindle and the workpiece, fixture, or machine tool body. Missing parameters means that there are unassigned parameterized instructions in the toolpath machining program. Process parameters exceeding limits means that the parameter values exceed the allowable range of the process database. Insufficient safety command insertion means that key nodes (such as tool change points, path start points, and path end points) lack necessary safety control instructions or have insufficient safety height. Geometric path errors mean that there are breakpoints, redundant empty movements, or the minimum safety clearance with the electrode model does not meet the standard.
[0218] Step M20: If the cause type belongs to a preset automatically repairable type, then modify the toolpath machining program according to the modification strategy corresponding to the cause type. The preset automatically repairable type includes one or more of parameter missing, process parameter exceeding limits, and insufficient safety command insertion.
[0219] The preset automatic repair type can be pre-set as the cause type that can be automatically repaired, and a corresponding modification strategy can be set for each automatic repair type to automatically repair the toolpath machining program based on the corresponding modification strategy.
[0220] In step M30, if the cause type does not belong to the preset automatically repairable type, a prompt message is output.
[0221] If the cause type is not one that can be automatically repaired, a prompt message will be output so that relevant personnel can perform manual repairs, thereby preventing subsequent NC codes from causing the target machine tool to run incorrectly and ensuring the safety of the machine tool.
[0222] Furthermore, after the toolpath machining program is automatically repaired or manually submitted, the verification process can be re-executed until it passes.
[0223] This embodiment uses a classification and repair mechanism to automatically correct common errors in the toolpath machining program, significantly shortening the debugging cycle. For complex errors, it outputs prompt information to trigger task intervention, ensuring machine tool safety. Thus, the verification process ensures program reliability, prevents erroneous programs from entering the actual machining process, and guarantees machine tool machining safety and process consistency.
[0224] In one possible implementation, the step of modifying the toolpath machining program according to the modification strategy corresponding to the cause type includes:
[0225] Step N10: If the cause type includes missing parameters, modify the toolpath machining program using a strategy of automatically filling in the missing parameters with default values.
[0226] If missing parameters are detected in the toolpath machining program, the program is modified using a strategy of automatically filling in default values. Furthermore, for different parameter types, default parameter values can be pre-associated with machining characteristics such as electrode material (e.g., copper, graphite), tool type (e.g., ball end mill, flat end mill), and / or machining stage (roughing / finishing). For example, for speed parameters: a Φ6mm tool is defaulted to a speed of 3000 rpm; for feed rate parameters: a roughing stage is defaulted to a feed rate of 800 mm / min.
[0227] Step N20: If the cause type includes process parameter exceeding the limit, then modify the toolpath machining program with a strategy of correcting the exceeding parameters to a preset safe range.
[0228] The preset full range can be specifically defined as the allowable range of parameters set based on the physical limits (such as maximum speed of 8000 rpm and maximum feed rate of 800 mm / min) and process constraints (such as maximum cutting depth of 0.2 mm in thin-walled areas) stored in the machine tool parameter library.
[0229] Step E30: If the cause type includes insufficient safety command insertion, the toolpath machining program is modified by recalculating the tool lifting height according to a preset safety factor and replacing the tool lifting command coordinate value and / or completing the safety command.
[0230] When the toolpath machining program has an insufficient safety height, the safety height can be supplemented by recalculating the tool lifting height according to a preset safety factor and replacing the coordinate value of the tool lifting command. When the toolpath machining program has missing safety commands at critical nodes such as tool change points and path turning points, the missing safety commands can be supplemented by a safety command completion strategy.
[0231] Specifically, the tool lifting height can be calculated based on the tool length and the machine tool Z-axis travel margin, using a preset safety factor (such as 1.2 times the tool length). For example, the tool lifting height can be obtained by multiplying the tool length by the preset safety system.
[0232] This embodiment employs an automatic default value filling strategy when parameters are missing. For example, it matches a rotation speed of 3000 rpm and a roughing feed rate of 800 mm / min based on the electrode material, tool type, and machining stage. This ensures the integrity of the toolpath program parameters and their adaptability to the machining scenario, avoiding program interruptions or machining anomalies caused by human error. For issues of process parameters exceeding limits, it dynamically adjusts them to a safe range based on machine tool physical limits and process constraints to prevent equipment overload or substandard machining quality. For missing safety instructions, it eliminates the risk of tool collisions and motion interference through height calculation driven by a safety factor and completion of key node instructions. The synergistic effect of these strategies enables the toolpath program to self-repair, reducing manual correction costs. A verification mechanism ensures that the corrected program can be safely used for machining, forming an efficient and reliable program error correction technology solution.
[0233] Furthermore, this application also proposes an electrode programming device, wherein the electrode programming system is deployed on a server, the electrode programming method is applied to the server, and the server is connected to a task dispatch client, as described above. Figure 4 As shown, the electrode programming device includes:
[0234] The acquisition module 10, in response to the electrode programming task issued by the task dispatch client, acquires the three-dimensional model of the electrode based on the electrode programming task;
[0235] Automatic programming module 20 is used to perform automatic toolpath programming based on the three-dimensional model of the electrode to obtain the toolpath machining program;
[0236] The batch processing module 30 is used to automatically batch process the toolpath machining program to obtain batch processing results in order to complete electrode programming. The batch processing includes post-processing, point detection, drawing output and simulation.
[0237] In one embodiment, the server includes a batch processing system, and the batch processing module 30 is further configured to:
[0238] A batch processing start command for the toolpath machining program is sent to the batch processing system, so that after receiving the batch processing start command, the batch processing system can automatically perform batch processing based on the toolpath machining program to obtain batch processing results.
[0239] In one embodiment, the batch processing module 30 is further configured to:
[0240] Obtain the system status of the batch processing system;
[0241] If the system status indicates that the batch processing system is in an idle state, then the step of sending the batch processing start command for the toolpath machining program to the batch processing system is executed;
[0242] If the system status indicates that the batch processing system is busy, the toolpath machining program is stored in a preset waiting queue.
[0243] In one embodiment, the batch processing module 30 is further configured to:
[0244] Get or set the priority of the toolpath machining program, and store the toolpath machining program and the priority in a preset waiting queue;
[0245] The step of sending a batch processing start command for the toolpath machining program to the batch processing system includes:
[0246] Take the target toolpath machining program with the highest priority from the waiting queue and send a batch processing start command for the target toolpath machining program to the batch processing system.
[0247] In one embodiment, the server is connected to an auditing client, and the electrode programming device further includes an auditing module, which is used for:
[0248] The batch processing results are output to the audit client.
[0249] If the review client receives a review approval instruction based on the batch processing result, it is determined that the electrode programming is complete.
[0250] If the audit client receives an audit failure instruction based on the batch processing result, a preset human intervention mechanism is triggered.
[0251] In one embodiment, the server includes a file management system, and the acquisition module 10 is further configured to:
[0252] Obtain the electrode identifier of the electrode to be generated based on the electrode programming generation task;
[0253] The matching three-dimensional model of the electrode is obtained from the file management system based on the electrode identifier.
[0254] In one embodiment, the server includes an automatic programming system, and the automatic programming module 20 is further configured to:
[0255] The automatic programming system extracts the electrode features of the three-dimensional model of the electrode and generates an initial tool path based on the electrode features.
[0256] Identify the corners and discrete straight line segments in the initial toolpath, update the corners in the initial toolpath to arcs with a preset radius, and fit the discrete straight line segments to continuous spline curves to obtain the updated toolpath;
[0257] Based on the updated toolpath, automatic programming is performed to obtain the toolpath machining program. The automatic programming process includes machining stage marking, machining parameter binding, safety command insertion, and tool change command insertion.
[0258] Furthermore, embodiments of this application also propose a server, the server comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the electrode programming method as described above.
[0259] like Figure 5 As shown, the server may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for server operation. The processing device 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the server to communicate wirelessly or wiredly with other devices to exchange data. Although servers with various systems are shown in the figure, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0260] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0261] The server provided in this application, employing the electrode programming method described in the above embodiments, can solve the technical problem of how to improve the efficiency and automation level of electrode programming, thereby enhancing the overall efficiency and automation level of electrical discharge machining. Compared with the prior art, the beneficial effects of the server provided in this application are the same as those of the electrode programming method provided in the above embodiments, and other technical features of the server are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0262] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0263] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0264] In addition, to achieve the above objectives, this application also provides a readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the electrode programming method in the above embodiments.
[0265] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. 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 thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0266] The aforementioned computer-readable storage medium may be included in the server or may exist independently without being assembled into the server.
[0267] The aforementioned computer-readable storage medium carries one or more programs. When the server executes the aforementioned one or more programs, the server: responds to an electrode programming task issued by a task dispatch client, obtains an electrode 3D model based on the electrode programming task; performs automatic toolpath programming processing based on the electrode 3D model to obtain a toolpath machining program; and performs automatic batch processing based on the toolpath machining program to obtain batch processing results, thereby completing electrode programming. The batch processing includes post-processing, point detection, drawing output, and simulation.
[0268] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0269] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0270] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the modules themselves.
[0271] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described electrode programming method. This solves the technical problem of how to improve the efficiency and automation level of electrode programming, thereby improving 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 in this application are the same as those of the electrode programming method provided in the above embodiments, and will not be repeated here.
[0272] Furthermore, embodiments of this application also propose a computer program product, including a computer program that, when executed by a processor, implements the steps of the electrode programming method described above.
[0273] The specific implementation of the computer program product in this application is basically the same as the embodiments of the electrode programming method described above, and will not be repeated here.
[0274] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0275] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0276] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software sensor. This computer software sensor is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0277] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.< / finishing> < / roughing>
Claims
1. An electrode programming method characterized by, The electrode programming method is applied to a server connected with a task dispatching client, and the electrode programming method comprises: in response to an electrode programming task issued by the task dispatching client, obtaining an electrode three-dimensional model according to the electrode programming task; obtaining a tool path machining program by automatically performing tool path programming on the electrode three-dimensional model; obtaining a batch processing result by automatically performing batch processing based on the tool path machining program to complete electrode programming, wherein the batch processing comprises post-processing, point picking, drawing and simulation; the step of obtaining a tool path machining program by automatically performing tool path programming on the electrode three-dimensional model comprises: extracting features from the electrode three-dimensional model to obtain electrode features, wherein the electrode features comprise one or more of three-dimensional structure features, curved surface features, recess features and boundary features; constructing a feature hierarchical relationship tree according to each sub-feature in the electrode features, matching a corresponding target machining strategy template in a preset template library based on the feature hierarchical relationship tree, and obtaining a tool path machining program according to the target machining strategy template, wherein the template library stores one or more electrode machining strategy templates, and the feature hierarchical relationship tree is a tree data structure representing the dependency relationship, processing priority and process dependency between electrode features; wherein the step of matching a corresponding target machining strategy template in a preset template library based on the feature hierarchical relationship tree comprises: obtaining a basic machining process corresponding to each sub-feature based on a preset third mapping relationship, selecting a usable machining process from each basic machining process based on the dependency logic and process compatibility rules of the feature hierarchical relationship tree, and searching for a target machining strategy template matching the usable machining process in a preset template library based on a fourth mapping relationship, wherein 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.
2. The electrode programming method of claim 1, wherein, The server comprises a batch processing system, and the step of obtaining a batch processing result by automatically performing batch processing based on the tool path machining program comprises: sending a batch processing start instruction for the tool path machining program to the batch processing system, so that the batch processing system automatically performs batch processing based on the tool path machining program to obtain a batch processing result after receiving the batch processing start instruction.
3. The electrode programming method of claim 2, wherein, Before the step of sending a batch processing start instruction for the tool path machining program to the batch processing system, the method further comprises: obtaining a system state of the batch processing system; if the system state indicates that the batch processing system is in an idle state, performing the step of sending a batch processing start instruction for the tool path machining program to the batch processing system; if the system state indicates that the batch processing system is in a busy state, storing the tool path machining program in a preset waiting queue.
4. The electrode programming method of claim 3, wherein, The step of storing the tool path machining program in a preset waiting queue comprises: obtaining or setting a priority of the tool path machining program, and storing the tool path machining program associated with the priority in a preset waiting queue; The step of sending a batch start instruction for the tool path machining program to the batch processing system comprises: Taking a target tool path machining program with the highest priority from the waiting queue, and sending a batch start instruction for the target tool path machining program to the batch processing system.
5. The electrode programming method according to any one of claims 1 to 4, wherein The server is connected with an audit client, and after the step of automatically batch processing based on the tool path machining program to obtain a batch processing result, the method further comprises: Outputting the batch processing result to the audit client; If an audit pass instruction sent by the audit client based on the batch processing result is received, it is determined that the electrode programming is completed; If an audit fail instruction sent by the audit client based on the batch processing result is received, a preset manual intervention mechanism is triggered.
6. The electrode programming method according to any one of claims 1 to 4, wherein The server comprises an archive management system, and the step of obtaining an electrode three-dimensional model according to the electrode programming task comprises: Obtaining an electrode identifier of an electrode to be generated according to the electrode programming task; Obtaining a matched 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, wherein The server comprises an automatic programming system, and the step of automatically tool path programming processing based on the electrode three-dimensional model to obtain a tool path machining program comprises: 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; Identifying corners and discrete straight line path segments in the initial tool path, updating the corners in the initial tool path into arcs with a preset radius, and fitting the discrete straight line path segments into continuous spline curves to obtain an updated tool path; Performing automatic programming processing based on the updated tool path to obtain a tool path machining program, wherein the automatic programming processing comprises machining stage marking, machining parameter binding, safety instruction insertion, and tool replacement instruction insertion.
8. A server, characterized by The electrode programming method comprises: A memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program is executed by the processor to implement the electrode programming method according to any one of claims 1 to 7.
9. A readable storage medium, characterized by, The readable storage medium comprises a computer readable storage medium, and the computer readable storage medium stores an electrode programming program, wherein the electrode programming program is executed by a processor to implement the steps of the electrode programming method according to any one of claims 1 to 7.
10. A computer program product, characterised in that, The computer program product comprises a computer program, and the computer program is executed by a processor to implement 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