Electrode programming method and device, readable storage medium and computer program product
Through automated batch processing, the post-processing, scouting and simulation links of electrode programming are integrated, the problem of inefficient electrode programming is solved, and the efficiency and automation level of electric spark processing are improved.
Patent Information
- Application Number
- CN202510749955.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-06
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2045-06-06
AI Technical Summary
The existing electrode programming methods are inefficient and have low accuracy, and are easily affected by human factors, resulting in insufficient electric spark processing efficiency and automation level.
Through automated batch processing methods, the post-processing, point-finding, drawing and simulation links are integrated to obtain the tool track processing program for automatic batch processing. If the simulation is passed, the programming will be completed, otherwise the modification instructions will be obtained for correction.
It significantly shortens the electrode programming cycle, improves programming efficiency and automation level, and improves the overall efficiency and automation level of electric spark processing.
Smart Images

Figure CN120257530A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automation technology, and particularly to an electrode programming method, device, readable storage medium and computer program product. Background Art
[0002] In modern manufacturing, the Electrical Discharge Machining (EDM) technology is highly favored because it can process workpieces made of high-hardness materials and with complex shapes. Due to its non-contact machining characteristics, electrical discharge machining has become the core process for machining high-hardness materials and complex cavities. With the increasing demand for machining efficiency and automation in the manufacturing industry, electrode programming, as a key link in electrical discharge machining, is of great importance.
[0003] Currently, the mainstream method of electrode programming relies on manual operations of computer-aided manufacturing software. The specific process is as follows: The operator needs to manually design the electrode tool path in the manufacturing software first, and then manually execute post-processing, point-picking verification, drawing generation, and simulation verification in sequence through plug-ins or independent tools to complete electrode programming.
[0004] The core problem of the traditional electrode programming method lies in the discreteness and repeatability of the operation process. Since the post-processing, point-picking, drawing generation, and simulation and other links need to be executed step by step and rely on manual switching, the operator needs to wait for the software response frequently, and the time accumulation effect of discrete operations is significant, which seriously restricts the overall efficiency and automation level of electrical discharge machining.
[0005] Therefore, how to improve the efficiency and automation level of electrode programming to improve the overall efficiency and automation level of electrical discharge machining has become a technical problem to be solved urgently at present. Summary of the Invention
[0006] The main objective of the present application is to provide an electrode programming method, device, readable storage medium and computer program product, aiming to solve the technical problem of how to improve the efficiency and automation level of electrode programming to improve the overall efficiency and automation level of electrical discharge machining.
[0007] To achieve the above objective, the present application provides an electrode programming method, which includes: Obtain the tool path processing program of the electrode to be generated, and perform automatic batch processing based on the tool path processing program to obtain a batch processing result, where the batch processing includes post-processing, point-picking, drawing generation, and simulation; If the simulation result in the batch processing result indicates that the simulation is passed, it is determined that the electrode programming is completed; If the simulation result in the batch processing result indicates that the simulation fails, obtain the input tool path modification instruction, obtain the modified tool path processing program according to the tool path modification instruction, and return to execute the step of automatically batch processing based on the tool path processing program to obtain the batch processing result according to the modified tool path processing program.
[0008] In a possible implementation manner, the batch processing result includes a post-processing result, a spotting result, a drawing result, and the simulation result. The step of automatically batch processing based on the tool path processing program to obtain the batch processing result includes: Obtain the three-dimensional electrode model of the electrode to be generated; Convert the sequence format of the tool path processing program into a preset machine tool recognizable code format to obtain the post-processing result; Perform spotting on the three-dimensional electrode model to obtain the spotting result; Generate a drawing result based on the three-dimensional electrode model, the post-processing result, and the spotting result, where the drawing result includes a processing drawing and / or a process document; Obtain or construct a virtual machine tool simulation model, and simulate the processing process according to the post-processing result through the virtual machine tool simulation model to obtain the simulation result.
[0009] In a possible implementation manner, the step of performing spotting on the three-dimensional electrode model to obtain the spotting result includes: Identify the processing area on the three-dimensional electrode model, and arrange key points on the processing area according to a preset spotting strategy; Obtain the position coordinates of each key point to obtain spotting coordinate information, and generate a spotting report according to each key point, where the spotting report includes one or more of tolerance information, spotting quantity, spotting spacing, spotting density, and spotting type; Obtain the spotting result according to the spotting coordinate information and the spotting report.
[0010] In a possible implementation manner, before the step of obtaining the three-dimensional electrode model of the electrode to be generated, the method further includes: Perform a qualification check on the tool path processing program to obtain a check result; If the check result indicates that the check passes, execute the step of obtaining the three-dimensional electrode model of the electrode to be generated; If the check result indicates that the check fails, output a prompt message or modify the tool path processing program.
[0011] In a possible implementation manner, the step of if the check result indicates that the check fails, output a prompt message or modify the tool path processing program includes: Obtain the cause type of the unqualified tool path processing program based on the verification result; If the cause type belongs to the preset automatically repairable type, modify the tool path processing program with the modification strategy corresponding to the cause type, where the preset automatically repairable type includes one or more of parameter missing, process parameter overlimit, and insufficient safety instruction insertion; If the cause type does not belong to the preset automatically repairable type, output a prompt message.
[0012] In a possible implementation manner, the step of modifying the tool path processing program with the modification strategy corresponding to the cause type includes: If the cause type includes parameter missing, modify the tool path processing program with the strategy of automatically filling the missing parameters with default values; If the cause type includes process parameter overlimit, modify the tool path processing program with the strategy of correcting the overlimit parameters to the preset safe range; If the cause type includes insufficient safety instruction insertion, modify the tool path processing program with the strategy of recalculating the retract height according to the preset safety factor and replacing the retract instruction coordinate value and / or complementing the safety instruction.
[0013] In a possible implementation manner, before the step of determining that the electrode programming is completed, the method further includes: Output the batch processing result to a preset audit system; If an audit pass instruction based on the batch processing result is received in the audit system, execute the step of determining that the electrode programming is completed; If an audit fail instruction based on the batch processing result is received in the audit system, trigger a preset human intervention mechanism.
[0014] In addition, to achieve the above object, the present application further provides an electrode programming device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the electrode programming method as described above.
[0015] In addition, to achieve the above object, the present application further provides a readable storage medium, where the readable storage medium is a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to implement the steps of the electrode programming method as described above.
[0016] The present application further provides a computer program product, including a computer program, where the computer program, when executed by a processor, implements the steps of the electrode programming method as described above.
[0017] One or more technical solutions proposed in this application have at least the following technical effects: In this application, by obtaining the tool path processing program of the electrode to be generated and performing automatic batch processing based on the tool path processing program to obtain a batch processing result, where the batch processing includes post-processing, point stepping, drawing, and simulation; if the simulation result in the batch processing result indicates that the simulation passes, it is determined that the electrode programming is completed; if the simulation result in the batch processing result indicates that the simulation fails, an input tool path modification instruction is obtained, a modified tool path processing program is obtained according to the tool path modification instruction, and the step of performing automatic batch processing based on the tool path processing program to obtain a batch processing result is returned and executed according to the modified tool path processing program. In this way, after obtaining the tool path processing program in the embodiment of this application, the post-processing, point stepping, drawing, and simulation links that are manually performed step by step are integrated into an automated batch processing sequence based on the tool path processing program, eliminating the redundant time for operators to switch between multiple independent tools and wait for software responses. By connecting the originally discrete links into a continuous execution process, the data flow and processing between each link are seamlessly connected, significantly shortening the overall cycle of electrode programming. Therefore, through automated batch processing, the uncertainty of manual operation nodes and processes is reduced, the coherence and efficiency of the programming process are improved, thereby improving the efficiency and automation level of electrode programming, and further improving the efficiency and automation level of electrical discharge machining. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with this application and used together with the specification to explain the principles of this application.
[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the following will briefly introduce the accompanying drawings required for describing the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0020] Figure 1 It is a schematic flowchart of the first embodiment of the electrode programming method of this application; Figure 2 It is a schematic flowchart of the electrode programming process involved in an embodiment of the electrode programming method of this application; Figure 3 It is a schematic flowchart of the tool path programming process involved in an embodiment of the electrode programming method of this application; Figure 4 It is a schematic diagram of the device structure of the electrode programming device of this application; Figure 5 It is a schematic diagram of the device structure of the hardware operating environment involved in the electrode programming method device in the embodiment of this application.
[0021] The realization of the purpose, functional features and advantages of this application will be further described in conjunction with the embodiments with reference to the accompanying drawings. Detailed implementation manners
[0022] In order to make the above objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0023] Currently, the programming process of electrodes mainly relies on manual operation. Specifically, the traditional programming mode cannot automatically connect programming, point marking, post-processing, form generation (i.e., drawing generation), simulation and other operation steps. Operators need to manually program, point mark, post-process, and generate forms on the manufacturing software. Although there are plug-in functions, the actual operation process is cumbersome, seriously affecting work efficiency, and the operation process requires waiting for the software running time. Although with the development of computer technology, some programming software has been widely used in the field of electrode processing, the existing electrode programming methods still have problems such as cumbersome and time-consuming manual programming, and being easily affected by human factors, resulting in inaccurate programming results and even causing processing errors. In addition, with the increase in the types of electrodes and the improvement of processing requirements, the efficiency and accuracy of manual programming can no longer meet the production needs.
[0024] Therefore, the current electrode programming method has at least the following problems: low programming efficiency, low accuracy, being easily affected by human factors, etc. The existence of these problems not only increases the production cost, but also restricts the improvement of production efficiency.
[0025] Based on this, the main solution of this application is: obtain the tool path processing program of the electrode to be generated, and perform automatic batch processing based on the tool path processing program to obtain a batch processing result, where the batch processing includes post-processing, point marking, drawing generation and simulation; if the simulation result in the batch processing result indicates that the simulation passes, it is determined that the electrode programming is completed; if the simulation result in the batch processing result indicates that the simulation fails, obtain the input tool path modification instruction, obtain the modified tool path processing program according to the tool path modification instruction, and return to execute the step of performing automatic batch processing based on the tool path processing program to obtain a batch processing result according to the modified tool path processing program.
[0026] After obtaining the tool path processing program in this application, based on the tool path processing program, the post-processing, point marking, drawing output, and simulation steps that were originally performed manually step by step are integrated into an automated batch processing sequence, eliminating the redundant time for operators to switch between multiple independent tools and wait for the software to respond. By connecting the originally discrete steps into a continuous execution process, the data flow and processing between each step are seamlessly connected, significantly shortening the overall cycle of electrode programming. Thus, through automated batch processing, the uncertainty of manual operation nodes and processes is reduced, the coherence and efficiency of the programming process are improved, thereby enhancing the efficiency and automation level of electrode programming, and further enhancing the efficiency and automation level of electrical discharge machining.
[0027] It should be noted that the execution subject of each embodiment of the electrode programming method in this application can be a computing service device with data processing, network communication, and program running functions, such as a server, tablet computer, personal computer, mobile phone, etc., or an electrode programming device capable of implementing the above functions. Exemplarily, the server is used as the execution subject to elaborate and explain each embodiment of the electrode programming method in this application.
[0028] Based on this, this application proposes the electrode programming method of the first embodiment. Referring to Figure 1 as shown, the electrode programming method includes: Step S10, obtain the tool path processing program of the electrode to be generated, and perform automatic batch processing based on the tool path processing program to obtain a batch processing result, where the batch processing includes post-processing, point marking, drawing output, and simulation; This tool path processing program refers to an intermediate code of parametric path instructions. For example, specifically, it can be ATC (Automatic Tool Changer Code) code, G (G - Code) code, etc.
[0029] Furthermore, this tool path processing program can be uploaded after being written by relevant personnel, or can be automatically programmed based on the three-dimensional model of the electrode to be generated. Specifically, the machining route of the tool can be automatically designed through the three-dimensional model of the electrode, and finally a tool path processing program is generated, thereby completing automatic tool path programming.
[0030] Post-processing refers to converting the tool path processing program into NC (Numerical Control Code) code that can be recognized by the target numerical control machine tool. Specifically, it can include setting the workpiece coordinate system, adding tool radius compensation (such as G41 / G42) and length compensation (such as G43 / G44) instructions, and embedding machine tool-specific control codes (such as M03 spindle start) and other processes; Point marking refers to automatically distributing points on the surface of the three-dimensional model of the electrode, such as automatically generating the coordinates of machining positioning points and simulating the spatial position rationality of the clamping inspection points; Drawing generation refers to automatically generating a machining drawing including dimensional tolerances and surface roughness markings, as well as a process guidance document recording machining parameters, based on the structural characteristics of the three-dimensional electrode model; Simulation refers to executing the NC code through a virtual machining environment to verify the interference between the tool path and the three-dimensional electrode model, the machine tool travel limit, and the machining accuracy compliance, ensuring the safety and feasibility of the program.
[0031] Correspondingly, the batch processing results include post-processing results obtained from post-processing, such as NC code, and spotting results obtained from spotting, such as a reference point coordinate sequence file and / or a clamping inspection report, drawing generation results obtained from drawing generation, such as a machining drawing and / or a process guidance document, and simulation results obtained from simulation, such as a simulation report. Among them, the reference point coordinate sequence file can be the three-dimensional coordinates of the electrode clamping and positioning points stored in a structured text format, used for setting the workpiece coordinate system of the CNC machine tool, and the clamping inspection report contains text or three-dimensional annotation files of the verification results of the spatial rationality of the point positions (such as interference distance, minimum safety clearance).
[0032] It should be noted that the server can achieve automatic batch processing through a distributed electrode programming device and a modular pipeline architecture. For example, post-processing, spotting, drawing generation, and simulation are encapsulated as independent processing modules, and 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.
[0033] Step S20, if the simulation result in the batch processing result indicates that the simulation is passed, it is determined that the electrode programming is completed; Specifically, the conditions for passing the simulation can be preset, such as no interference between the tool path and the three-dimensional electrode model, no overrun of the machine tool travel, and compliance of the machining accuracy. When it is detected that the simulation result meets this simulation passing condition, it is determined that the simulation result indicates that the simulation is passed, and it is determined that the electrode programming of the obtained tool path machining program is completed.
[0034] Furthermore, after determining that the electrode programming is completed, the NC code generated by post-processing can be marked as an executable state and synchronized to the drive library of the target machine tool. At the same time, the reference point coordinate sequence file generated by spotting is written into the machine tool workpiece coordinate system parameter table, the machining drawing and process guidance document generated by drawing generation are associated with the electrode identification code and archived in a preset file management database, and the simulation result is recorded in the task log for subsequent traceability. Among them, the target machine tool refers to the CNC machine tool used to subsequently execute the NC code to generate the electrode.
[0035] Step S30, if the simulation result in the batch processing result indicates that the simulation fails, obtain the input tool path modification instruction, obtain the modified tool path processing program according to the tool path modification instruction, and return to execute the step of automatically batch processing based on the tool path processing program to obtain the batch processing result according to the modified tool path processing program.
[0036] When it is detected that the simulation result does not meet the simulation pass condition, it is determined that the simulation result indicates that the simulation fails, and the correction process is triggered. For example, the simulation pass condition is that there is no interference between the tool path and the electrode three-dimensional model, the machine tool stroke does not exceed the limit, and the processing accuracy meets the standard. Then, when it is detected that there is interference between the tool path and the electrode model, the machine tool stroke exceeds the limit or the processing accuracy exceeds the tolerance, it is determined that the simulation result indicates that the simulation fails. Specifically, the correction process includes obtaining manually input tool path modification instructions such as adjusting tool compensation values, modifying cutting parameters, or reconstructing path geometry, adjusting parameters or regenerating paths for the original tool path processing program according to the tool path modification instructions, generating a modified tool path processing program, resubmitting it, restarting the post-processing, stepping, drawing, and simulation process to re-check the entire process until the simulation result passes. Furthermore, if it still fails after multiple corrections, a system alarm can be triggered and pushed to the designated engineer terminal for manual intervention.
[0037] After obtaining the tool path processing program, this embodiment integrates the post-processing, point-checking, drawing and simulation links that are manually executed step by step into an automated batch processing sequence based on the tool path processing program, eliminating the redundant time for operators to switch between multiple independent tools and wait for software responses. By connecting the originally discrete links in series into a continuous execution process, the data flow and processing between the links are seamlessly connected, which significantly shortens the overall cycle of electrode programming. Through automated batch processing, the uncertainty of manual operation nodes and processes is reduced, and the continuity and efficiency of the programming process are improved, thereby improving the efficiency and automation level of electrode programming, and then improving the efficiency and automation level of EDM.
[0038] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be described in detail later. On this basis, the batch processing results include post-processing results, point-stepping results, drawing results and the simulation results, and the step of automatically batch processing based on the tool path processing program to obtain the batch processing results includes: Step A10, obtaining a three-dimensional electrode model of the electrode to be generated; The electrode three-dimensional model can specifically be a digital three-dimensional model of the electrode, which can be constructed through computer-aided design software or generated through reverse engineering of a three-dimensional scanning device. The model can include the electrode's geometric topological structure, dimensional tolerance markings, and surface feature parameters (such as discharge area markings, roughness requirements).
[0039] Step A20: Convert the sequence format of the tool path processing program into a preset machine tool recognizable code format to obtain the post - processing result; The preset machine tool recognizable code format can specifically be the code format recognizable by the target machine tool. The post - processor can parse the parametric instructions (such as $SPEED, $FEED) in the tool path processing program and replace them with the specific values stored in the target machine tool parameter library (such as rotational speed = 3000 rpm, feed rate = 200 mm / min); add machine - specific control instructions (such as G41 tool radius left compensation, M03 spindle forward rotation); set the workpiece coordinate system (such as G54 - G59) and embed the tool compensation value (such as H01 length compensation number); finally, generate NC code that conforms to the syntax specification of the target machine tool, that is, the post - processing result.
[0040] Step A30: Perform point - laying on the three - dimensional electrode model to obtain the point - stepping result; Based on the geometric features of the three - dimensional electrode model (such as the clamping reference surface, symmetry center line), automatic point - laying can be performed on the three - dimensional electrode model through a point - stepping engine, such as automatically generating the coordinates of machining positioning points, using the minimum - distance algorithm to ensure that the spacing between positioning points meets the fixture size constraints, and / or verifying the spatial rationality of the clamping path through a collision - detection algorithm (such as the minimum clearance between the fixture and the electrode surface ≥ 2 mm), and outputting a reference point coordinate sequence file and / or a clamping inspection report to obtain the point - stepping result.
[0041] Step A40: Generate a drawing result based on the three - dimensional electrode model, the post - processing result, and the point - stepping result, where the drawing result includes machining drawings and / or process documents; For the generation of machining drawings, information such as dimension chains, tolerance markings (such as ±0.01 mm), and surface roughness symbols (such as Ra0.8) can be extracted from the three - dimensional electrode model, and then an integrated drawing engine is used to automatically generate two - dimensional or three - dimensional engineering drawings that meet the preset standards.
[0042] For the generation of process documents, by integrating the machining parameters (such as rotational speed, feed rate) in the post - processing result, the positioning point coordinates in the point - stepping result, and the safety verification conclusions in the simulation stage, a structured process guidance document can be generated, which can specifically include but is not limited to a tool list, clamping steps, and quality inspection requirements, etc.
[0043] Step A50: Obtain or construct a virtual machine tool simulation model, and simulate the machining process based on the post - processing result through the virtual machine tool simulation model to obtain the simulation result.
[0044] If the user imports it into the virtual machine tool simulation model, the imported virtual machine tool simulation model can be directly obtained, or a virtual machine tool simulation model can be constructed based on the physical parameters of the machining tool (such as axis travel range, spindle power, rigidity coefficient) and the kinematic model (such as five-axis linkage logic).
[0045] The virtual machine tool simulation model simulates the machining process according to the post-processing results, that is, the virtual machine tool simulation model simulates the physical behavior and machining logic of the actual machine tool according to the post-processing results. For example, in a specific embodiment, the simulation process includes: Interference detection: Calculate the minimum distance between the tool, tool holder, electrode model and fixture in real time. If it is less than the safety threshold, it is recorded as an interference event; Stroke verification: Analyze the axis movement instructions in the NC code and check whether the displacement of the X, Y, and Z axes exceeds the machine tool stroke limit; Machining accuracy simulation: Simulate the cutting process through the material removal simulation engine and compare the dimensional error between the machined electrode model and the theoretical model; The simulation results are output as a simulation report including pass or fail status indicators, error details and correction suggestions.
[0046] In this embodiment, through the full-process automation of NC code generation, point-by-point verification, process drawing generation and simulation, the manual intervention link is significantly reduced, and the electrode programming efficiency is improved; the precise matching of the virtual machine tool simulation model and physical parameters ensures the predictability of the machining process and avoids the risks of collision and overtravel in actual machining; the structured process document and visual inspection report provide standardized data support for production traceability and quality control, forming an electrode programming technical solution with high reliability and high compatibility.
[0047] In a possible implementation manner, the step of obtaining the point-by-point result by arranging points on the three-dimensional electrode model includes: Step B10, identify the machining area on the three-dimensional electrode model, and arrange key points on the machining area according to a preset point-by-point strategy; The machining area can be a machining area manually marked on the three-dimensional electrode model, or the machining area can be automatically identified based on the model features of the three-dimensional electrode model. For example, the area with significant curvature change on the electrode surface (such as the cavity edge, free-form surface transition area) is identified through the curvature calculation algorithm and marked as a high-precision machining area, the thin-wall area (such as wall thickness ≤ 3mm) is identified through the thickness analysis algorithm and marked as a low-rigidity machining area, the discharge machining area is divided through the material property mapping (such as the discharge area of the copper electrode and the conductive area of the graphite electrode), the clamping reference plane is identified through the plane detection algorithm (flatness ≤ 0.02mm) or the contour boundary machining area is generated through the boundary extraction algorithm (such as the safety area expanded by 0.5mm inside and outside the electrode projection outline), etc. This embodiment does not make specific limitations on this.
[0048] The point distribution strategy can be specifically a strategy that is preset in advance or automatically selected according to the regional characteristics of the processing area, including but not limited to strategies such as uniform point distribution, random point distribution, curvature adaptive point distribution, etc. Moreover, the point distribution strategies for different processing areas can be different from each other. For example, a dense point distribution (such as point spacing ≤ 2 mm) strategy is adopted in the high-precision processing area, a sparse point distribution (point spacing ≤ 5 mm) strategy is adopted in the flat processing area, and a strategy of arranging at least 3 positioning points is adopted on the clamping reference surface, etc.
[0049] The key points refer to positioning points, inspection points, process points, etc. arranged on the three-dimensional model of the electrode.
[0050] Step B20: Obtain the position coordinates of each of the key points to obtain point distribution coordinate information, and generate a point distribution report based on each of the key points. Among them, the point distribution report includes one or more of tolerance information, number of distributed points, point spacing, point density, and point distribution type. The tolerance information refers to the position tolerance of the key points. Further, it can also include the repeat positioning accuracy. The number of distributed points refers to the total number of key points arranged. Further, the distribution quantity in each processing area can also be counted (such as 50 points in the cavity area and 30 points in the side wall area). The point spacing and density refer to the maximum and / or minimum point spacing and point density in the processing area. The point distribution type refers to the type of key points arranged. For example, it can be classified as positioning points (for clamping reference), inspection points (for post-processing detection), and process points (for path planning).
[0051] Step B30: Obtain the point stepping result based on the point distribution coordinate information and the point distribution report.
[0052] The point distribution coordinate information including the reference point coordinate sequence and the point distribution report can be combined to obtain the point stepping result. It is also possible to verify the spatial rationality of the fixture and the electrode (such as the minimum safety gap ≥ 2 mm) through a collision detection algorithm based on the point distribution coordinates, and output a visualization report, that is, a clamping inspection report. The clamping inspection report, point distribution coordinate information, and point distribution report are combined to obtain the point stepping result.
[0053] In this embodiment, by identifying the processing area and automatically arranging key points on the three-dimensional model with a certain point distribution strategy, while ensuring the processing accuracy, the point distribution efficiency is optimized, and the randomness and inefficiency of manual point distribution are avoided; moreover, the relevance between the structured point distribution report and the coordinate data provides standardized input for subsequent clamping verification, path planning, and quality inspection.
[0054] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the content that is the same as or similar to the above-mentioned first embodiment and second embodiment can be referred to the above introduction and will not be repeated hereinafter. On this basis, before the step of obtaining the three-dimensional electrode model of the electrode to be generated, the method further includes: Step C10, performing a qualification check on the tool path processing program to obtain a check result; This qualification check is used to verify the qualification of the tool path processing program, and specifically may include one or more of interference check, geometric integrity check, and parameter compliance check. Among them, the interference check refers to detecting whether there is a risk of unexpected contact or collision between moving parts such as the tool body, tool holder, or machine tool spindle in the tool path and the workpiece, fixture, or machine tool body through kinematic simulation. The geometric integrity check refers to detecting whether there are breakpoints, redundant idle movements in the tool path, or the minimum clearance from the electrode model does not meet the safety threshold; the parameter compliance check refers to verifying whether the parameterized instructions are within the range allowed by the process database.
[0055] Step C20, if the check result indicates that the check passes, then execute the step of obtaining the three-dimensional electrode model of the electrode to be generated; The conditions for determining that the check passes can be preset, such as passing the interference check (no risk of unexpected contact or collision), passing the geometric integrity check (no path breakpoints and the safety clearance meets the standard), and passing the parameter compliance check (all parameters are within the allowed range). When it is detected that the check result meets the check-pass condition, it is determined that the check result indicates that the check passes. At this time, the three-dimensional electrode model is obtained for subsequent batch processing procedures.
[0056] Step C30, if the check result indicates that the check fails, then output a prompt message or modify the tool path processing program.
[0057] When it is detected that the check result does not meet the check-pass condition, then output a prompt message or modify the tool path processing program.
[0058] Furthermore, if the automatic correction fails, the tool path processing program can be locked and an alarm message can be pushed, and manual correction is required before resubmitting for verification.
[0059] In this embodiment, through the qualification check of the tool path processing program, the subsequent process is continued only when the qualification check passes, thereby ensuring the executability and safety of the tool path processing program, and avoiding processing accidents or material waste caused by program errors; when the qualification check fails, a prompt message is output or the tool path processing program is automatically modified, so that the collaborative mechanism of automatic correction and manual intervention takes into account both efficiency and reliability, and reduces the number of repeated checks.
[0060] In a possible implementation, the step of outputting a prompt message or modifying the tool path processing program if the verification result indicates that the verification fails includes: Step D10, obtaining the cause type of the unqualified tool path processing program based on the verification result; The cause type includes, but is not limited to, failed interference check, missing parameters, exceeded process parameters, insufficient safety instruction insertion, etc. A failed interference check means 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 there are unassigned parametric instructions in the tool path processing program. Exceeded process parameters means the parameter value exceeds the range allowed by the process database. Insufficient safety instruction insertion means that necessary safety control instructions are missing at key nodes (such as tool change points, path start points, path end points) or the safety height is insufficient. Geometric path error means that there are breakpoints, redundant idle moves in the path or the minimum safety clearance from the electrode model does not meet the standard, etc.
[0061] Step D20, if the cause type belongs to the preset automatically repairable type, modifying the tool path processing program with the modification strategy corresponding to the cause type, where the preset automatically repairable type includes one or more of missing parameters, exceeded process parameters, and insufficient safety instruction insertion; The preset automatically repairable type can be the pre-set cause types that can be automatically repaired, and the modification strategy corresponding to each automatically repairable type can be correspondingly set to automatically repair the tool path processing program based on this corresponding modification strategy.
[0062] Step D30, if the cause type does not belong to the preset automatically repairable type, outputting a prompt message.
[0063] If the cause type does not belong to the automatically repairable type, a prompt message is output so that relevant personnel can perform manual repair to avoid the subsequent operation of unqualified NC code on the target machine tool and ensure the safety of the machine tool.
[0064] Further, after automatic repair or manual submission of the repaired tool path processing program, the verification process can be re-executed until it passes.
[0065] Through the classification repair mechanism in this embodiment, the conventional errors in the tool path processing program can be automatically modified, significantly shortening the debugging cycle; for complex errors, a prompt message is output to trigger task intervention to ensure the safety of the machine tool, thereby ensuring the reliability of the program through the verification process, avoiding the inflow of incorrect programs into the actual processing link, and ensuring the machining safety and process consistency of the machine tool.
[0066] In a possible implementation, the step of modifying the tool path processing program with the modification strategy corresponding to the cause type includes: Step E10, if the cause type includes parameter missing, modify the tool path machining program with the strategy of automatically filling the missing parameters with default values; If it is verified that there are missing parameters in the tool path machining program, modify the tool path machining program with the strategy of automatically filling default values. Further, for different parameter types, corresponding default parameter values can be pre-associated based on machining features such as electrode material (such as copper, graphite), tool type (such as ball nose cutter, flat end mill) and / or machining stage (rough machining / fine machining), etc. For example, for the spindle speed parameter: the spindle speed of 3000 rpm is default bound for a Φ6mm tool, and for the feed rate parameter: the feed rate of 800 mm / min is default bound in the rough machining stage.
[0067] Step E20, if the cause type includes process parameter overrun, modify the tool path machining program with the strategy of correcting the overrun parameters to a preset safe range; The specific preset full range can be the allowable range of parameters set according to the physical limits (such as the maximum spindle speed of 8000 rpm, the maximum feed rate of 800 mm / min) and process constraints (such as the maximum cutting depth of 0.2 mm in the thin wall area) stored in the machine tool parameter library.
[0068] Step E30, if the cause type includes insufficient safety instruction insertion, modify the tool path machining program with the strategy of recalculating the retract height according to a preset safety factor and replacing the retract instruction coordinate value and / or complementing the safety instruction.
[0069] When there is a problem of insufficient safety height in the tool path machining program, the safety height can be supplemented by the strategy of recalculating the retract height according to a preset safety factor and replacing the retract instruction coordinate value. When there is a problem of missing safety instructions at key nodes such as the tool change point and path turning point in the tool path machining program, the missing safety instructions can be complemented by the strategy of safety instruction complementation.
[0070] Specifically, for the calculation of the retract height, the retract height can be recalculated according to the tool length and the Z-axis stroke margin of the machine tool according to a preset safety factor (such as 1.2 times the tool length), such as multiplying the tool length by the preset safety factor to obtain the retract height.
[0071] In this embodiment, through the default value automatic filling strategy when parameters are missing, such as matching the rotational speed of 3000 rpm and the rough machining feed rate of 800 mm / min according to the electrode material, tool type, and machining stage, the integrity of the tool path program parameters and the adaptability to the machining scenario are ensured, avoiding program interruption or machining anomalies caused by manual omission. For the problem of process parameter overrun, it is dynamically adjusted to the safe range based on the physical limit of the machine tool and process constraints to prevent equipment overload or unqualified machining quality. For the lack of safety instructions, through the height calculation driven by the safety factor and the complementation of key node instructions, the risks of tool collision and motion interference are eliminated. The synergistic effect of the above strategies realizes the self-repair ability of the tool path program, which can reduce the manual correction cost, and through the verification mechanism, it ensures that the corrected program can be put into safe machining, forming an efficient and reliable program error correction technical solution.
[0072] In a possible implementation manner, before the step of determining that the electrode programming is completed, the method further includes: Step F10, outputting the batch processing result to a preset audit system; The audit system may specifically be an audit client connected to the server, and the contents such as NC code, machining drawings, process guidance documents, and simulation results included in the batch processing result are transmitted to the audit client. Specifically, the transmission methods include but are not limited to direct push based on the industrial communication protocol or asynchronous reading through an intermediate database.
[0073] Step F20, if an audit pass instruction based on the batch processing result is received in the audit system, then execute the step of determining that the electrode programming is completed; If the audit system returns an audit pass instruction after manual review or automated verification of the batch processing result, the NC code can be marked as executable and synchronized to the target machine tool, and at the same time, the electrode programming task status is updated to "completed".
[0074] Step F30, if an audit fail instruction based on the batch processing result is received in the audit system, then trigger a preset human intervention mechanism.
[0075] The preset human intervention mechanism may specifically be to send an exception work order notice to a designated engineer terminal, and the notice content includes error details, associated electrode three-dimensional model identification, and correction suggestions, or lock the operation permission of the current task until it is resubmitted for review after manual correction, etc. This embodiment does not make specific limitations on this.
[0076] Through the closed-loop feedback mechanism of the review system and automatic batch processing, manual review nodes are embedded in the automated process to ensure the reliability and safety of the electrode programming results, avoiding processing accidents or material waste caused by program errors; when the review fails, an intervention mechanism (such as intelligent notification, permission control, etc.) is triggered, taking into account both the automation efficiency and the accuracy of manual correction, forming a collaborative workflow of "automatic processing - manual verification", meeting the dual requirements of fault tolerance and efficiency in high-precision electrode processing scenarios, and enabling the electrode generation to meet the quality control standards of industrial intelligent production.
[0077] Based on the first, second, and / or third embodiments of the present application, in the fourth embodiment of the present application, the same or similar content as in the above-mentioned first, second, and third embodiments can be referred to the above introduction and will not be elaborated hereinafter. On this basis, the server includes a batch processing system, and the step of performing automatic batch processing based on the toolpath processing program to obtain a batch processing result includes: Step G10, sending a batch processing start instruction for the toolpath processing program to the batch processing system, so that after receiving the batch processing start instruction, the batch processing system performs automatic batch processing based on the toolpath processing program to obtain a batch processing result.
[0078] In this embodiment, when batch processing needs to be performed, a batch processing start instruction for the toolpath processing program is sent to the batch processing system. In response to the batch processing start instruction, the batch processing system automatically triggers the collaborative work of the post-processing, point sampling, drawing output, and simulation processing modules, and sequentially executes code conversion, positioning point generation, drawing output, and simulation verification operations based on the toolpath processing program to generate a batch processing result including NC code, process drawings, and simulation results. Among them, the sending of the batch processing start instruction and the response execution of the batch processing system constitute an event-driven closed-loop control process.
[0079] In this embodiment, by constructing the batch processing start instruction and the response execution of the batch processing system into an event-driven closed-loop control process, the full automation processing from the toolpath program to the numerical control code is realized, significantly reducing the manual intervention link and improving the multi-task concurrent processing efficiency; at the same time, based on the modular collaborative architecture design, it is ensured that the processing parameters and geometric data required in the post-processing, point sampling, drawing output, and simulation and other links can be kept consistent, avoiding processing abnormalities caused by cross-process data mismatch.
[0080] In a possible implementation manner, before the step of sending the batch processing start instruction for the toolpath processing program to the batch processing system, the method further includes: Step H10, obtaining the system state of the batch processing system; The system status may specifically include an idle state and a busy state. Among them, the idle state refers to the state where the batch processing system does not execute any batch processing tasks and the system resource occupancy rate is lower than a preset threshold, and the busy state refers to the state where the batch processing system is executing at least one batch processing task or the system resource occupancy rate exceeds the preset threshold.
[0081] Step H20, if the system status indicates that the batch processing system is in the idle state, then execute the step of sending a batch processing start instruction for the tool path processing program to the batch processing system; If the batch processing system is in the idle state, it indicates that the batch processing system can currently process batch processing tasks. At this time, send a batch processing start instruction to the batch processing system so that the batch processing system responds to this batch processing start instruction and executes the subsequent batch processing process.
[0082] Step H30, if the system status indicates that the batch processing system is in the busy state, then store the tool path processing program in a preset waiting queue.
[0083] If the batch processing system is in the busy state, it means that the batch processing system cannot currently process batch processing tasks. For example, the batch processing system may be executing another batch processing task. At this time, store the tool path processing program in a preset waiting queue so that when it is detected that the batch processing system is in the idle state, the tool path processing program is taken out from the waiting queue, and a batch processing start instruction for the taken-out tool path processing program is initiated to ensure that the batch processing tasks of the multi-electrode programming task can all proceed in an orderly manner.
[0084] In this embodiment, by real-time monitoring the idle and busy states of the batch processing system and dynamically deciding whether to immediately execute tasks or temporarily store them in the waiting queue, an adaptive matching of task scheduling and system resource occupancy is achieved, avoiding processing delays or system crashes caused by resource overload; at the same time, the task temporary storage mechanism based on the waiting queue ensures that the multi-electrode programming tasks are processed in a certain order in turn, eliminating the risk of task omission or conflict. Combining the closed-loop logic of state detection and queue management, a batch processing task execution system with high stability and high throughput is formed, significantly improving the processing efficiency and system reliability of the electrode programming task.
[0085] In a possible implementation manner, the step of storing the tool path processing program in a preset waiting queue includes: Step I10, obtain or set the priority of the tool path processing program, and store the tool path processing program in association with the priority in a preset waiting queue; The priority of the tool path processing program can be generated based on the urgency of the electrode processing task, the process complexity, or user-defined rules. Store the tool path processing program in association with the priority in a preset waiting queue, and this waiting queue may specifically be a first-in-first-out queue sorted by priority.
[0086] The step of sending a batch start instruction for the tool path processing program to the batch processing system includes: Step I20, take out a target tool path processing program with the highest priority from the waiting queue, and send a batch start instruction for the target tool path processing program to the batch processing system.
[0087] When it is detected that the batch processing system is in an idle state, take out a target tool path processing program with the highest priority from the waiting queue. The highest priority can be determined by comparing the priority values of all tasks in the queue through traversal or by matching preset rules, and send a batch start instruction for the target tool path processing program to the batch processing system to trigger the batch processing of the target tool path processing program by the batch processing system.
[0088] In this embodiment, through a priority-driven waiting queue management mechanism, differential processing of multi-electrode programming tasks is realized, ensuring that high-priority tasks (such as urgent orders or precision machining tasks) preferentially occupy system resources, significantly shortening the overall processing cycle of critical tasks, avoiding delays in high-priority tasks caused by low-priority tasks preempting resources, and enabling adaptation to real-time changes in production plans through dynamic priority settings (such as automatically increasing the priority of corner cleaning electrode tasks according to process complexity). Ultimately, on the basis of ensuring task processing fairness, the utilization rate of system resources and task response efficiency are maximized, forming an electrode programming task scheduling system that takes into account both efficiency and flexibility.
[0089] Exemplarily, to help understand the technical concept or technical principle of the electrode programming method after combining this embodiment with the above-mentioned first embodiment, second embodiment, and third embodiment, a specific embodiment is now listed. In this specific embodiment, the electrode programming method is applied to a server. Referring to Figure 2 As shown, the server is connected to the client. The server includes an archive management system, an automatic programming system, and a batch processing system. Through the server, the automatic programming system and other process links are realized without human intervention, and full-link automation from tool path programming, point sampling, NC code output to simulation is achieved. Based on this, the electrode programming process includes: 1. Task assignment stage: 1) The client assigns tasks and sends them to the server: The electrode processing tasks are assigned to the server queue.
[0090] 2) Obtain electrode information: Extract the required electrode data information from the server.
[0091] 3) Download the archive: Download the engineering files (i.e., the 3D models of the electrodes) and parameters of the relevant electrodes to the server.
[0092] 2. Automatic programming stage: Automatically program the tool path based on the 3D model of the electrode to obtain the tool path machining program.
[0093] 3. Batch processing stage: 1) Automatic post-processing: Convert the tool path machining program into NC code recognizable by the machine tool. This includes: coordinate system conversion, tool radius compensation instruction, tool length compensation instruction, generation of machine tool specific control codes, etc.
[0094] 2) Automatic point marking: Simulate and check for automatic point layout on the electrode model.
[0095] 3) Automatic drawing generation: Generate machining drawings and process documents.
[0096] 4) Automatic simulation: Verify the safety and feasibility of the program through virtual machining.
[0097] 4. Review and archiving 1) Automatically submit for review: Push the complete machining plan to the review system and wait for final confirmation.
[0098] 2) After passing the review, archive the data to the server and the process ends.
[0099] 5. NG (No Good, unqualified) handling 1) NG simulation result, trigger manual intervention: 2) Manual modification: The engineer manually adjusts the tool path parameters or process strategies.
[0100] 3) Resubmit to the server and repeat step 3 until OK.
[0101] It should be noted that the above examples are only used to assist in understanding this embodiment and do not constitute a limitation on the electrode programming process of this embodiment. Based on this technical concept, more forms of simple transformations are within the protection scope of this application.
[0102] Based on the first, second, third, and / or fourth embodiments of this application, in the fifth embodiment of this application, the same or similar content as in the above-mentioned first, second, third, and fourth embodiments can be referred to the above introduction and will not be elaborated hereinafter. On this basis, the steps of obtaining the tool path machining program of the electrode to be generated include: Step J10, obtain the 3D model of the electrode to be generated; This 3D model of the electrode can specifically be a digital 3D model of the electrode, which can be constructed through computer-aided design software or generated through reverse engineering using a 3D scanning device. The model can include the geometric topology structure of the electrode, dimensional tolerance markings, and surface feature parameters (such as discharge area markings, roughness requirements).
[0103] Step J20: Extract features from the 3D electrode model to obtain electrode features, where the electrode features include one or more of a three-dimensional structure feature, a curved surface feature, a concave feature, and a boundary feature; Specifically, the electrode features may include, but are not limited to, one or more of a three-dimensional structure feature, a curved surface feature, a concave feature, and a boundary feature. Among them, the three-dimensional structure features include, but are not limited to, strengthening platforms, stepped surfaces, bosses, etc.; the curved surface features include, but are not limited to, spherical surfaces, cylindrical surfaces, free-form surfaces, arc surfaces, etc.; the concave features include, but are not limited to, cavities, blind holes, through holes, key grooves, etc.; the boundary features include, but are not limited to, corners, edges, contour lines, etc. 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.
[0104] Step J30: Match the corresponding target machining strategy template in a preset template library according to the electrode features, and perform tool path programming according to the target machining strategy template to obtain a tool path machining program, where the template library stores one or more electrode machining strategy templates.
[0105] The preset template library is a database that stores multiple electrode machining strategy templates in advance. Each electrode machining strategy template can specifically be a set of logical rules preset to indicate the tool path machining process, such as a logical rule for binding the machining path and the machining strategy. For example, as an example, a certain electrode machining strategy template can be: {Rough machining (machining path): Contour-driven milling (machining strategy); Semi-finishing machining (machining path): Equal distribution of remaining material (machining strategy); Finishing machining (machining path): Helical interpolation or flow-line machining (machining strategy); Special area machining (such as R corner, narrow groove) (machining path): Compensation machining (machining strategy)}.
[0106] After obtaining the target machining strategy template through matching, perform tool path programming according to the target machining strategy template to obtain a tool path machining program. The tool path machining program can specifically be an intermediate code of parametric path instructions. For example, it can specifically be ATC (Automatic Tool Changer Code) code, G (G - Code) code, etc. After obtaining the target machining strategy template, tool path programming can be completed by calling computer-aided design software.
[0107] In this embodiment, by obtaining the three-dimensional model of the electrode and performing feature extraction, the key features of the electrode can be accurately identified, eliminating the time cost consumed by programmers manually analyzing the electrode structure and improving the feature recognition efficiency. On the basis of feature extraction, the corresponding target processing strategy template is automatically matched through a preset template library, enabling the relationship between the standardized processing strategy and the specific electrode features to be templated based on the experience of historical processing data, so as to pre-construct the template library. The corresponding target processing strategy template is automatically matched in the template library through the extracted electrode features, avoiding the deviation of strategy selection caused by insufficient experience in manual programming, ensuring the accuracy of the tool path processing program automatically programmed according to the matching result, and the overall technical solution improves the tool path programming efficiency and accuracy through the coherent automatic programming processing flow of feature recognition, template matching and automatic tool path generation without manual participation in the tool path programming process.
[0108] In a possible implementation manner, the step of matching the corresponding target processing strategy template in the preset template library according to the electrode features includes: Step K10, searching in the preset template library for the target processing strategy template that matches the electrode features based on a preset first mapping relationship, where the first mapping relationship is the mapping relationship between different electrode features and electrode processing strategy templates.
[0109] This first mapping relationship can be constructed based on the feature-strategy association pattern in historical processing data. Specifically, the electrode features are decomposed into a combined form of three-dimensional structure features, surface features, concave features and boundary features, and the corresponding processing strategy templates are associated with each combined form to form a mapping rule library. Exemplarily, this first mapping relationship can be {
A three-dimensional structure feature, A surface feature, A concave feature, A boundary feature maps to electrode processing strategy template 1
A three-dimensional structure feature, A surface feature, A concave feature, B boundary feature maps to electrode processing strategy template 2
A three-dimensional structure feature, A surface feature, B concave feature, A boundary feature maps to electrode processing strategy template 3
D three-dimensional structure feature, D surface feature, D concave feature, D boundary feature maps to electrode processing strategy template N
[0110] Through the accurate mapping of feature combinations and strategy templates, the strategy trial and error iteration of manual programming is reduced, and the intelligent level of process planning and the consistency of processing quality for complex electrode processing are improved.
[0111] As another implementation manner, the step of matching the corresponding target processing strategy template in the preset template library according to the electrode features includes: Step K20: Construct a feature hierarchy tree based on each sub - feature in the electrode features, and match the corresponding target processing strategy template in a preset template library based on the feature hierarchy tree.
[0112] The feature hierarchy tree is a tree - like data structure representing the subordinate relationship, processing priority, and process dependence among electrode features, which is constructed by analyzing the geometric dependence relationship and processing constraint conditions of each sub - feature. For example, as an example, the feature hierarchy tree is: {root node: three - dimensional structure feature (strengthening platform), first - level sub - nodes: surface feature (free - form surface), first - level sub - nodes: boundary feature (acute edge), second - level sub - node of the surface feature: depression feature (cavity)}.
[0113] Through the structured expression of the feature hierarchy tree, the geometric correlation and process dependence of electrode features are explicitly encoded, enabling the template matching process to dynamically match the processing logic template based on the logical relationship between features (such as processing sequence dependence, geometric support constraint), avoiding strategy conflicts or process redundancy caused by traditional single - feature matching, improving the adaptation accuracy of the matched processing strategy, thus improving the rationality of the process planning and processing efficiency of complex electrodes, and reducing the rework rate caused by incorrect feature processing sequence.
[0114] Further, as one of the implementation manners, the step of matching the corresponding target processing strategy template in the preset template library based on the feature hierarchy tree includes: Step L10: Search for the target processing strategy template that matches the feature hierarchy tree in the preset template library based on a preset second mapping relationship, where the second mapping relationship is the mapping relationship between different feature hierarchy trees and electrode processing strategy templates.
[0115] The node hierarchy relationship of the feature hierarchy tree (such as the subordinate order of the parent node and the sub - node) can be traversed and compared with the feature tree structure of the strategy template in the template library to obtain the feature tree structure with the highest consistency or similarity in comparison, and determine the electrode processing strategy template corresponding to the compared feature tree structure as the target processing strategy template. For example, if it is detected that the depression feature in the feature hierarchy tree is a sub - node of the surface feature, then match the linked - motion strategy template that includes cavity processing after surface processing to ensure that the processing sequence is consistent with the subordinate relationship between features.
[0116] By matching the target machining strategy template in the template library according to the topological structure of the feature hierarchy tree, the target machining strategy template can strictly follow the subordination order and structural correlation between electrode features. For example, when the concave feature is a child node of the surface feature, it is directly mapped to the linkage strategy template that first performs surface machining and then cavity machining, so as to ensure that the generation logic of the tool path is synchronized with the actual geometric dependency relationship of the electrode features, effectively avoiding problems such as tool interference, abnormal remaining allowance, or damaged feature machining integrity caused by misaligned machining order. At the same time, through the tree structure of the feature hierarchy tree and the automatic comparison mechanism of the template hierarchy logic, the accuracy of strategy template matching and the efficiency of machining process planning can be significantly improved, reducing the dependence on manual experience and enhancing the controllability of the complex electrode machining process.
[0117] As another implementation manner, the step of matching the corresponding target machining strategy template in the preset template library based on the feature hierarchy tree includes: Step L20, obtaining the basic machining processes corresponding to each sub-feature based on a preset third mapping relationship, screening available machining processes from the basic machining processes based on the feature hierarchy tree, and searching for a target machining strategy template matching the available machining processes in the preset template library, where the third mapping relationship is the mapping relationship between different feature types and machining processes, and the fourth mapping relationship is the mapping relationship between different machining processes and electrode machining strategy templates.
[0118] The third mapping relationship is a rule table associated with the process knowledge base through feature types. For example, the rib in the three-dimensional structure feature is mapped to the equal-height layer milling process, the free-form surface in the surface feature is mapped to the parameter line planning and curvature adaptive feed process, the deep cavity in the concave feature is mapped to the layer-by-layer circular cutting and tool radial avoidance process, and the acute edge in the boundary feature is mapped to the trochoidal milling process, etc.
[0119] The fourth mapping relationship is the binding rule between different machining processes and strategy templates. For example: if it is necessary to perform the equal-height layer milling and parameter line planning processes simultaneously, it is mapped to the strategy template including the linkage of three-dimensional offset rough machining and surface finish machining; if there is a combination of layer-by-layer circular cutting and trochoidal milling processes, it is associated with the template having the integrated logic of deep cavity roughing and edge finishing.
[0120] Match the corresponding basic machining processes for each sub - feature through the third mapping relationship (e.g., rib → contour - layer milling, free - form surface → parameter - line programming). It should be noted that each sub - feature may match multiple basic machining processes in the third mapping relationship. Thus, based on the feature - level relationship tree, select the available machining processes from all the basic machining processes. Specifically, based on the subordination logic of the feature - level relationship tree and the process compatibility rules, select the available machining processes that are compatible with the parent - node process and the overall machining process from all the basic machining processes. Exemplarily, assume that for a certain sub - feature (e.g., concave feature) in the feature - level relationship tree, multiple possible machining processes are matched through the third mapping relationship (e.g., cavity machining can match contour - layer cutting, helical milling, or trochoidal milling processes). If the concave feature is a child node of a surface feature and the parent node has been matched with the parameter - line programming process, then select the cavity - machining process that is compatible with the surface - machining result. If there is a boundary feature at the same level and the cycloidal milling process has been matched, then select the cavity process that has no conflict with the cycloidal - milling tool path.
[0121] Input the process combination of the selected available machining processes (such as "parameter - line programming → contour - layer cutting → cycloidal milling") into the fourth mapping relationship to match the target machining - strategy template in the template library that supports multi - process collaboration.
[0122] By combining the subordination logic of the feature - level relationship tree with the process compatibility rules, screen the basic machining processes matched by the third mapping relationship to ensure that the selected available machining processes not only meet the independent machining requirements of each sub - feature but also can adapt to the structural dependency relationship between features. Further, through the fourth mapping relationship, accurately bind the ordered process combination with the multi - process collaboration strategy template in the template library, so that the operation arrangement of the machining - strategy template strictly follows the feature - level order, thus eliminating problems such as sudden changes in machining allowance, tool interference, and deviation in feature - mating accuracy caused by incorrect process sequence or path conflict. At the same time, reduce the subjective intervention of manual process planning through the automated screening and mapping mechanism, and significantly improve the first - pass qualification rate and process - planning efficiency of multi - feature electrode machining.
[0123] The target machining - strategy template includes at least one machining strategy and the machining path corresponding to each machining strategy. The step of obtaining the tool - path machining program according to the target machining - strategy template includes: Step M10, match the corresponding tool model according to the target machining - strategy template, and determine the machining parameters according to the tool model, the electrode feature, and the target machining - strategy template, where the machining parameters include one or more of the spindle - speed range, feed - speed range, cutting depth, and tool - path step pitch; The machining path is the motion trajectory planning of the tool relative to the workpiece surface during the electrode machining process, specifically characterized by the sequence of coordinate points and their connection methods in the numerical control code. The machining strategy is the core logical rule for driving the generation of the machining path, including but not limited to one or more of process stage division (rough machining, semi-finishing machining, finishing machining), cutting mode selection (down milling, up milling, trochoidal milling), tool motion parameters (feed rate, cutting depth), and path optimization algorithms (residual material avoidance, overcut prevention).
[0124] Tool model matching can be based on the requirements of the machining strategy for the geometric characteristics of the tool. For example, a rough machining strategy matches a large-diameter multi-edge end mill to improve cutting efficiency, and a finishing machining strategy matches a ball nose mill to achieve surface smoothness.
[0125] The determination of machining parameters is achieved by parsing the process rules and electrode feature parameters (such as material hardness, surface curvature) in the target machining strategy template, dynamically calculating the spindle speed range (for example, setting the speed at 8000 - 12000 rpm when machining steel with a carbide tool), feed speed range (such as 2000 mm / min in the rough machining stage and 500 mm / min in the finishing machining stage), cutting depth (such as a layer depth of 0.5 mm in rough machining and 0.1 mm in finishing machining), and tool path step distance (such as the row spacing being 40% of the tool diameter), etc., and associating them with the specific machining path.
[0126] Step M20: Determine the path sequence of each of the machining paths, program and combine the machining strategies in sequence based on the path sequence, and bind the machining parameters to obtain the tool path machining program.
[0127] The path sequence between different machining paths can be preset, such as a path sequence that follows the process progression principle of "from rough machining to semi-finishing machining, and then to finishing machining".
[0128] After obtaining information such as the tool model, machining strategy, machining path, and machining parameters, automatic programming can be performed according to the programming combination rules to obtain the tool path machining program. For example, the programming combination logic binds the process rules of the machining strategy (such as the contour layer-by-layer algorithm in rough machining) with the path geometric data of the machining path (such as the Z-axis layer-by-layer coordinates), and injects the tool path code generated by the machining parameters to obtain the tool path machining program. For example, it converts the layer depth parameter of the rough machining strategy into a Z-value loop instruction in the G code, and maps the curvature adaptive feed of the finishing machining strategy to an F-value dynamic change instruction.
[0129] By precisely binding the process rules in the machining strategy (such as the division of roughing and finishing stages, the selection of cutting modes) with the tool model and dynamic parameters (such as spindle speed, feed rate), and combining with the geometric characteristics of the machining path (such as Z-axis layer-by-layer coordinates, tool path following the curvature direction), a tool path machining program is generated to achieve the coupling of machining parameters and path planning. For example, in the roughing stage, a large-diameter tool is used to match the high-speed and large-layer-depth contour layer-by-layer path to quickly remove the surplus; in the finishing stage, it switches to a ball-end tool and binds to the surface parameter path with low feed and small row spacing to ensure surface smoothness. At the same time, through the progressive arrangement of the path sequence (for example, from roughing to semi-finishing, and then to finishing) and the coding of process rules, problems such as cutting vibration, abnormal residual allowance, and unqualified surface quality caused by manual parameter setting deviation or path sequence misalignment are eliminated. While improving machining efficiency, machining accuracy and process stability are guaranteed, and manual intervention is reduced through an automated programming mechanism, significantly reducing the complexity of process planning and the trial-and-error cost.
[0130] In a possible implementation manner, the machining strategy includes a roughing strategy, a semi-finishing strategy, and a finishing strategy. The machining path includes a roughing path corresponding to the roughing strategy, a semi-finishing path corresponding to the semi-finishing strategy, and a finishing path corresponding to the finishing strategy. The step of determining the path sequence of each of the machining paths and sequentially programming and combining the machining parameters with each of the machining strategies to obtain a tool path machining program includes: Step N10, based on the path sequence from the roughing path, the semi-finishing path to the finishing path in sequence, program and combine the roughing strategy, the semi-finishing strategy, and the finishing strategy to obtain a tool path machining program.
[0131] It should be noted that the roughing strategy is the machining strategy adopted in the roughing path stage, such as using the contour layer-by-layer milling strategy in the roughing stage; the semi-finishing strategy is the machining strategy adopted in the semi-finishing path stage, such as using the residual material uniform distribution strategy in the semi-finishing path stage; the finishing strategy is the machining strategy adopted in the finishing path stage, such as using the spiral interpolation or streamline tool path strategy in the finishing path stage.
[0132] The machining strategy includes but is not limited to the roughing strategy, the semi-finishing strategy, and the finishing strategy. For example, it can include a special area machining strategy, such as a strategy for compensating machining of special areas such as R corners and narrow grooves. Specifically, in the finishing stage, a compensation machining strategy is superimposed. For example, in the R corner area: an equal residual allowance compensation strategy is adopted, and multiple trochoidal milling paths are generated according to the difference between the R corner radius and the tool radius to ensure the removal of the allowance at the root of the fillet; in the narrow groove area: a tool yaw avoidance strategy is adopted, and by combining axial inclined feed and trochoidal trajectory, interference between the tool side wall and the groove wall is avoided.
[0133] Through the progressive combination of roughing, semi-finishing, and finishing strategies, the material removal rate is maximized in the roughing stage, the sudden change in the remaining amount is eliminated in the semi-finishing stage, and the surface quality index is achieved in the finishing stage, ensuring the balance between the efficiency and accuracy of the tool path program; the coded conversion of the strategies in each stage realizes the seamless connection between the machining logic and the numerical control system, reduces manual programming errors, and improves the process reliability of complex electrode machining.
[0134] Exemplarily, to facilitate the understanding of the technical concept or technical principle of the tool path programming method of this embodiment, a specific embodiment is now enumerated. In this specific embodiment, referring to Figure 3 as shown, the tool path programming process includes: 1. Feature analysis: Based on the manufacturing software calling the API, analyze the electrode features, and automatically extract and classify the machining feature types, including but not limited to: Stereo structure features: strengthening platforms, stepped surfaces, bosses, etc.; Surface features: spherical surfaces, cylindrical surfaces, free-form surfaces, arc surfaces, etc.; Depression features: cavities, blind holes, through holes, key grooves, etc.; Boundary features: corners, edges, contour lines, etc.
[0135] 2. Machining logic matching. According to the analyzed feature types, retrieve the corresponding machining logic templates from the preset machining strategy library, specifically including: Retrieving the mapping relationship between feature types and machining processes; Establishing a tree-like structure of the feature hierarchical relationship; Dynamically matching the optimal combination of machining templates, that is, the target machining strategy template. A standard library is established in advance, which contains machining strategy templates for various electrode types.
[0136] 3. Tool parameter configuration. Based on the matched machining logic template (i.e., the target machining strategy template), perform the following operations: Automatically retrieve the adapted tool model from the tool database; Dynamically calculate the machining parameters according to the feature geometric parameters: such as spindle speed range: 1000 - 20000 rpm, feed speed range: 50 - 5000 mm / min, cutting depth: 0.1 - 5 mm, tool path step distance: 0.01 - 2 mm, etc. 4. Tool path generation, which is executed in the order of machining logic: Rough machining path planning: Adopt the contour milling strategy; Semi-finishing path optimization: Implement the residual material uniform distribution algorithm; Finishing path generation: Apply spiral interpolation or streamline tool path; Special area processing: Perform compensation machining on features such as R corners and narrow grooves.
[0137] 5. Tool path combination: Logically combine the machining paths of each feature in the technological sequence to form a complete tool path machining program, that is, obtain the programmed tool path, including: Process division: From roughing to semi-finishing, and then to finishing; Smoothing transition processing of the tool path; Automatic calculation of the safety height; Insertion of tool change instructions.
[0138] It should be noted that the above examples are only used to assist in understanding this embodiment and do not constitute a limitation on the tool path programming process of this embodiment. Based on this technical concept, more forms of simple transformations are within the protection scope of this application.
[0139] In addition, an electrode programming device is also proposed in an embodiment of this application. Referring to Figure 4 as shown, the electrode programming device includes: A batch processing module 10, configured to obtain the tool path machining program of the electrode to be generated, and perform automatic batch processing based on the tool path machining program to obtain a batch processing result. Among them, the batch processing includes post-processing, point stepping, drawing and simulation; A determination module 20, configured to determine that the electrode programming is completed if the simulation result in the batch processing result indicates that the simulation passes; A modification module 30, configured to, if the simulation result in the batch processing result indicates that the simulation fails, obtain the input tool path modification instruction, obtain the modified tool path machining program according to the tool path modification instruction, and return to execute the step of performing automatic batch processing based on the tool path machining program to obtain a batch processing result according to the modified tool path machining program.
[0140] In one embodiment, the batch processing result includes a post-processing result, a point stepping result, a drawing result and the simulation result. The batch processing module 10 is further configured to: Obtain the three-dimensional model of the electrode of the electrode to be generated; Convert the sequence format of the tool path machining program into a preset machine tool recognizable code format to obtain a post-processing result; Perform point stepping on the three-dimensional model of the electrode to obtain a point stepping result; Generate a drawing result based on the three-dimensional model of the electrode, the post-processing result and the point stepping result, where the drawing result includes a machining drawing and / or a process document; Obtain or construct a virtual machine tool simulation model, and simulate the machining process according to the post-processing result through the virtual machine tool simulation model to obtain a simulation result.
[0141] In one embodiment, the batch processing module 10 is further configured to: Identify the machining area on the 3D model of the electrode, and arrange key points on the machining area according to a preset point layout strategy; Obtain the position coordinates of each key point to obtain point layout coordinate information, and generate a point layout report based on each key point, where the point layout report includes one or more of tolerance information, number of points, point spacing, point density, and point type; Obtain the point stepping result based on the point layout coordinate information and the point layout report.
[0142] In one embodiment, the electrode programming device further includes a verification module, and the verification module is used for: Perform a qualification verification on the tool path machining program to obtain a verification result; If the verification result indicates that the verification is passed, execute the step of obtaining the 3D model of the electrode to be generated; If the verification result indicates that the verification fails, output a prompt message or modify the tool path machining program.
[0143] In one embodiment, the verification module is further used for: Obtain the cause type of the unqualified tool path machining program based on the verification result; If the cause type belongs to a preset type that can be automatically repaired, modify the tool path machining program with the modification strategy corresponding to the cause type, where the preset type that can be automatically repaired includes one or more of parameter missing, process parameter overrun, and insufficient safety instruction insertion; If the cause type does not belong to the preset type that can be automatically repaired, output a prompt message.
[0144] In one embodiment, the verification module is further used for: If the cause type includes parameter missing, modify the tool path machining program with the strategy of automatically filling the missing parameters with default values; If the cause type includes process parameter overrun, modify the tool path machining program with the strategy of correcting the overrun parameters to a preset safe range; If the cause type includes insufficient safety instruction insertion, modify the tool path machining program with the strategy of recalculating the retract height according to a preset safety factor and replacing the retract instruction coordinate value and / or completing the safety instruction.
[0145] In one embodiment, the determination module is further used for: Output the batch processing result to a preset audit system; If an audit pass instruction based on the batch processing result is received in the audit system, determine that the electrode programming is completed; If a non - passing audit instruction based on the batch processing result is received in the audit system, a preset human intervention mechanism is triggered.
[0146] In addition, an electrode programming device is proposed in an embodiment of the present application. The electrode programming device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor. The computer program is configured to implement the steps of the electrode programming method as described above.
[0147] Reference Figure 5 , which shows a schematic structural diagram of an electrode programming device suitable for implementing the electrode programming device in an embodiment of the present application. The electrode programming device in an embodiment of the present application may further include, but is not limited to, mobile terminals such as servers, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions: tablet computers), etc., and fixed terminals such as desktop computers, etc. Figure 5 The electrode programming device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present application.
[0148] As Figure 5 shown, the electrode programming device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read - only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 into a random - access memory (RAM: Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the electrode programming device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid - crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, magnetic tapes, hard disks, etc.; and a communication device 1009. The communication device 1009 can allow the electrode programming device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows an electrode programming device having various systems, it should be understood that it is not required to implement or have all the shown systems. More or fewer systems may be alternatively implemented or had.
[0149] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by a processing device 1001, the above-mentioned functions defined in the methods of the embodiments disclosed in the present application are executed.
[0150] The electrode programming device provided by the embodiments of the present application adopts the electrode programming method in the above embodiments, and can solve the technical problem of how to improve the efficiency and automation level of electrode programming so as to improve the overall efficiency and automation level of electrical discharge machining. Compared with the prior art, the beneficial effects of the electrode programming device provided by the present application are the same as those of the electrode programming method provided by the above embodiments, and other technical features in the electrode programming device are the same as those disclosed in the method of the previous embodiment, which will not be elaborated here.
[0151] It should be understood that each part disclosed in the present application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in a suitable manner in any one or more embodiments or examples.
[0152] As described above, the above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, and all of them should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0153] In addition, to achieve the above object, the embodiments of the present application also provide a readable storage medium, which has computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the electrode programming method in the above embodiments.
[0154] The computer-readable storage medium provided by the embodiments of the present application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, device, or component. The program code contained on the computer-readable storage medium can be transmitted by any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0155] The above computer-readable storage medium can be included in the electrode programming device; it can also exist separately and not be assembled into the electrode programming device.
[0156] The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed by the electrode programming device, the electrode programming device is enabled to: obtain the tool path processing program of the electrode to be generated, perform automatic batch processing based on the tool path processing program to obtain a batch processing result, where the batch processing includes post-processing, point stepping, drawing, and simulation; if the simulation result in the batch processing result indicates that the simulation passes, it is determined that the electrode programming is completed; if the simulation result in the batch processing result indicates that the simulation fails, obtain the input tool path modification instruction, obtain the modified tool path processing program according to the tool path modification instruction, and return to execute the step of performing automatic batch processing based on the tool path processing program to obtain a batch processing result according to the modified tool path processing program.
[0157] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The above-mentioned programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or an electrode programming device. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN: Local Area Network) or a wide area network (WAN: Wide Area Network), or it can be connected to an external computer (for example, by connecting through an Internet service provider using the Internet).
[0158] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of the code, and this module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order from that marked in the accompanying drawings. For example, two consecutively represented blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0159] The modules described in the embodiments of this application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation on the module itself in some cases.
[0160] The readable storage medium provided by this application is a computer-readable storage medium. The computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for performing the above-mentioned electrode programming method, and can solve the technical problem of how to improve the efficiency and automation level of electrode programming to improve the overall efficiency and automation level of electrical discharge machining. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by this application are the same as those of the electrode programming method provided by the above embodiments, and will not be elaborated here.
[0161] In addition, an embodiment of the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the electrode programming method described above are implemented.
[0162] The specific implementation manner of the computer program product of the present application is basically the same as that of each embodiment of the above electrode programming method, and will not be elaborated herein.
[0163] It should be noted that in this document, the term "including", "comprising" or any other variant thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or system. Without more limitations, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or system including that element.
[0164] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0165] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation manner. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software sensor. This computer software sensor is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions for causing a terminal device (which may be a mobile phone, a computer, an electrode programming device or a network device, etc.) to execute the methods described in various embodiments of the present application.
[0166] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.
Claims
1. An electrode programming method, characterized in that, The electrode programming method includes: Obtaining the tool path processing program of the electrode to be generated, and performing automatic batch processing based on the tool path processing program to obtain a batch processing result, where the batch processing includes post-processing, point sampling, drawing generation, and simulation; If the simulation result in the batch processing result indicates that the simulation is passed, it is determined that the electrode programming is completed; If the simulation result in the batch processing result indicates that the simulation fails, obtain the input tool path modification instruction, obtain the modified tool path processing program according to the tool path modification instruction, and return to execute the step of performing automatic batch processing based on the tool path processing program to obtain a batch processing result according to the modified tool path processing program.
2. The electrode programming method according to claim 1, wherein The batch processing result includes a post-processing result, a point sampling result, a drawing generation result, and the simulation result. The step of performing automatic batch processing based on the tool path processing program to obtain a batch processing result includes: Obtaining the three-dimensional model of the electrode of the electrode to be generated; Converting the sequence format of the tool path processing program into a preset machine tool recognizable code format to obtain a post-processing result; Performing point sampling on the three-dimensional model of the electrode to obtain a point sampling result; Generating a drawing generation result based on the three-dimensional model of the electrode, the post-processing result, and the point sampling result, where the drawing generation result includes a processing drawing and / or a process document; Obtaining or constructing a virtual machine tool simulation model, and simulating the processing process according to the post-processing result through the virtual machine tool simulation model to obtain a simulation result.
3. The electrode programming method according to claim 2, wherein The step of performing point sampling on the three-dimensional model of the electrode to obtain a point sampling result includes: Identifying the processing area on the three-dimensional model of the electrode, and arranging key points on the processing area according to a preset point sampling strategy; Obtaining the position coordinates of each key point to obtain point sampling coordinate information, and generating a point sampling report according to each key point, where the point sampling report includes one or more of tolerance information, the number of points sampled, point sampling spacing, point sampling density, and point sampling type; Obtaining a point sampling result according to the point sampling coordinate information and the point sampling report.
4. The electrode programming method according to claim 2, wherein Before the step of obtaining the three-dimensional model of the electrode of the electrode to be generated, the method further includes: Performing a qualification check on the tool path processing program to obtain a check result; If the check result indicates that the check is passed, execute the step of obtaining the three-dimensional model of the electrode of the electrode to be generated; If the check result indicates that the check fails, output a prompt message or modify the tool path processing program.
5. The electrode programming method according to claim 4, characterized in that The step of, if the check result indicates that the check fails, outputting a prompt message or modifying the tool path processing program includes: Obtaining the reason type for which the tool path processing program is unqualified based on the check result; If the reason type belongs to a preset type that can be automatically repaired, modify the tool path processing program with the modification strategy corresponding to the reason type, where the preset type that can be automatically repaired includes one or more of parameter missing, process parameter overrun, and insufficient safety instruction insertion; If the reason type does not belong to the preset type that can be automatically repaired, output a prompt message.
6. The electrode programming method according to claim 5, characterized in that The step of modifying the tool path processing program with the modification strategy corresponding to the reason type includes: If the cause type includes parameter missing, modify the tool path processing program with the strategy of automatically filling the missing parameters with default values; If the cause type includes process parameter overrun, modify the tool path processing program with the strategy of correcting the overrun parameters to a preset safe range; If the cause type includes insufficient safety instruction insertion, modify the tool path processing program with the strategy of recalculating the retraction height according to a preset safety factor and replacing the retraction instruction coordinate values and / or completing the safety instructions.
7. The electrode programming method according to any one of claims 1 to 6, characterized in that, Before the step of determining that the electrode programming is completed, the method further includes: Output the batch processing result to a preset audit system; If an audit pass instruction based on the batch processing result is received in the audit system, execute the step of determining that the electrode programming is completed; If an audit fail instruction based on the batch processing result is received in the audit system, trigger a preset human intervention mechanism.
8. An electrode programming device, characterized in that, including: A memory, a processor, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the electrode programming method according to any one of claims 1 to 7.
9. A readable storage medium, characterized in that, The readable storage medium includes a computer-readable storage medium, on which an electrode programming program is stored, and when the electrode programming program is executed by a processor, the steps of the electrode programming method according to any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that, The computer program product includes a computer program, and when the computer program is executed by a processor, the electrode programming method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Electrode program design method and device, electronic equipment and storage medium
CN119292571A
Numerically controlled electric discharge machine with operation checking function
JP1998049210A
Machining path calculation device, control device, and wire electric discharge machine
WO2015145569A1
Cited By
Complex cavity injection mold, production process and redundancy design thereof
CN121351613A
A complex cavity injection mold, production process and its redundancy design
CN121351613B
Electric spark machining method, electronic equipment and readable storage medium
CN121892773A