Electric spark machining method, electronic equipment and readable storage medium
By managing multiple stages of EDM through a central scheduling controller, and monitoring the machine tool status and program operation status in real time, the problem of independent EDM stages has been solved, achieving a highly efficient automated workflow and reducing labor costs and safety risks.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HI P SHANGHAI HOUSING APPLIANCE
- Filing Date
- 2026-03-19
- Publication Date
- 2026-04-21
AI Technical Summary
In existing electrical discharge machining (EDM) technology, each processing stage is independent, making it impossible to form a continuous automated workflow, resulting in low processing efficiency and high labor costs.
The central scheduling controller enables multi-stage management of electrical discharge machining, uses machining files to control the machine tool to perform the current stage of work, and monitors the machine tool status and program running status in real time, forming a continuous automated workflow.
It improves the efficiency of electrical discharge machining, reduces labor costs, and minimizes processing quality and equipment safety hazards.
Smart Images

Figure CN121892773A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electrical discharge machining technology, specifically to an electrical discharge machining method, electronic equipment, and readable storage medium. Background Technology
[0002] Electrical discharge machining (EDM) is a core technology in modern precision manufacturing. It has irreplaceable advantages in processing hard and brittle materials and manufacturing complex surfaces, and is one of the key processes in high-end manufacturing.
[0003] While some stages of electrical discharge machining (EDM) have been automated in existing technologies, these stages remain independent and require manual coordination, preventing the formation of a continuous automated workflow. This results in low EDM efficiency and high labor costs, which has become a key bottleneck restricting the development of EDM technology.
[0004] Therefore, how to automate the entire electrical discharge machining process has become an urgent technical problem to be solved. Summary of the Invention
[0005] To address the aforementioned technical problems, this application provides the following technical solutions.
[0006] This application provides an electrical discharge machining (EDM) method, which includes multiple machining stages; each machining stage corresponds to a machining file; the method includes the following steps: Determine the current processing stage from the plurality of processing stages; Determine the target processing file corresponding to the current processing stage; Based on the target machining file, control the machine tool to perform the work of the current machining stage.
[0007] Optionally, the plurality of processing stages includes a first processing stage; determining the current processing stage from the plurality of processing stages includes: In response to receiving an electrical discharge machining command, the machine tool's own state is determined; If the machine tool is in normal condition, then the current processing stage is determined to be the first processing stage.
[0008] Optionally, the first machining stage corresponds to a first target machining file; the step of controlling the machine tool to perform the work of the current machining stage based on the target machining file includes: In response to determining that the current processing stage is the first processing stage, the machine tool is controlled to execute the first target processing file to obtain first measurement data; Based on the first measurement data, the target quality data is determined; If the target quality data meets the first preset condition, the program running state is determined to be the end of the execution of the first target processing file; the program running state is used to characterize the execution state of the target processing file.
[0009] Optionally, the plurality of processing stages further includes a second processing stage, a third processing stage, and a fourth processing stage; the second processing stage corresponds to a second target processing file; the third processing stage corresponds to a third target processing file; the fourth processing stage corresponds to a fourth target processing file; determining the current processing stage from the plurality of processing stages further includes: Obtain the program's running status and determine the machine tool's own status; If the program running status is that the first target processing file has been executed and the machine tool itself is in normal status, then the current processing stage is determined to be the second processing stage; If the program running status is that the second target processing file has been executed and the machine tool itself is in normal status, then the current processing stage is determined to be the third processing stage; If the program running status indicates that the third target processing file has been executed and the machine tool itself is in normal condition, then the current processing stage is determined to be the fourth processing stage.
[0010] Optionally, controlling the machine tool to perform the work of the current machining stage based on the target machining file further includes: In response to determining that the current machining stage is the second machining stage, the machine tool is controlled to execute the second target machining file to obtain second measurement data; Based on the second measurement data, the target accuracy data is determined; The target accuracy data is calibrated; if the calibrated target accuracy data meets the second preset condition, the program running status is determined to be the end of the execution of the second target processing file.
[0011] Optionally, controlling the machine tool to perform the work of the current machining stage based on the target machining file further includes: In response to determining that the current machining stage is the third machining stage, the machine tool is controlled to execute the third target machining file to obtain third measurement data; Based on the third measurement data, the target process parameters are determined; Write the target process parameters into the fourth target processing file; If the target process parameters are successfully written into the fourth target processing file, the program running status is determined to be the end of the execution of the third target processing file.
[0012] Optionally, controlling the machine tool to perform the work of the current machining stage based on the target machining file further includes: In response to determining that the current machining stage is the fourth machining stage, the machine tool is controlled to execute the fourth target machining file; If the fourth target processing file is executed successfully, the program running status is determined to be that the fourth target processing file has been executed.
[0013] Optionally, the method further includes: Obtain the program's running status and determine the machine tool's own status; If the program running status is that the fourth target machining file has been executed and the machine tool itself is in normal status, then it is determined that the electrical discharge machining instruction has been executed.
[0014] In addition, this application also provides an electronic device, which includes a processor and a memory storing a computer program, wherein when the processor runs the computer program, it implements the steps of the electrical discharge machining method as described above.
[0015] In addition, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the electrical discharge machining method as described above.
[0016] The above technical solution allows for the determination of the current machining stage from multiple machining stages in electrical discharge machining (EDM); the identification of the target machining file corresponding to the current stage; and the control of the machine tool to execute the work of the current machining stage based on the target machining file. This solves the technical problem that the various machining stages of EDM are independent of each other, requiring manual coordination and preventing the formation of a continuous automated workflow. Ultimately, this achieves the goals of improving EDM processing efficiency and reducing labor costs. Attached Figure Description
[0017] Figure 1 Flowchart of the electrical discharge machining method provided in the embodiments of this application Figure 1 .
[0018] Figure 2 Flowchart of the electrical discharge machining method provided in the embodiments of this application Figure 1 .
[0019] Figure 3 Flowchart of the electrical discharge machining method provided in the embodiments of this application Figure 3 .
[0020] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0022] The specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0023] It should be noted that step designations such as S1 and S2 are used in this document for the purpose of more clearly and concisely describing the corresponding content, and do not constitute a substantial limitation on the order. In specific implementation, those skilled in the art may execute S2 first and then S1, etc., but these should all be within the protection scope of this application.
[0024] Although the steps in the flowcharts of this application's embodiments are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.
[0025] In the following description, suffixes such as "unit" used to denote elements are used only for the purposes of this application and have no specific meaning in themselves.
[0026] It should be understood that although the terms first, second, third, etc., may be used in this document to describe various types of information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if," as used herein, can be interpreted as "when," "when," or "in response to determination." Furthermore, as used herein, the singular forms "a," "one," and "the" are intended to also include the plural forms unless the context indicates otherwise.
[0027] Although the terms first, second, third, etc., may be used in this document to describe various types of information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another.
[0028] It should be noted that the electrical discharge machining method provided in this application embodiment can be executed by a central scheduling controller; the central scheduling controller refers to a central control unit used for centralized management and coordination of multiple electrical discharge machining tools. Alternatively, it can be executed by an electronic device provided in this application embodiment, which can be implemented in software or hardware, such as a mobile terminal or other electronic device.
[0029] This application uses a central dispatch controller as an example to illustrate the execution of the electrical discharge machining method. The central dispatch controller can communicate with both the machine tool and the upper-level system. The upper-level system refers to a higher-level management and control system located above the central dispatch controller. The upper-level system is responsible for issuing machining instructions to the central dispatch controller, coordinating the production process, and realizing the information management of the entire manufacturing process.
[0030] See Figure 1 One embodiment of this application provides an electrical discharge machining (EDM) method. EDM may include multiple machining stages; each machining stage corresponds to a machining file. The method includes the following steps: Step S1: Determine the current processing stage from multiple processing stages.
[0031] Step S2: Determine the target processing file corresponding to the current processing stage.
[0032] Step S3: Based on the target machining file, control the machine tool to perform the work of the current machining stage.
[0033] Among them, the machining file can be pre-stored in the central scheduling controller. The machining file can be a CNC machining file. The CNC machining file is a program file used to control the machine tool to automatically complete the machining task. The CNC machining file can include multiple instructions and data.
[0034] The processing stage is the basic unit for managing electrical discharge machining (EDM); the current processing stage refers to the processing stage that is currently in progress. This application discretizes the entire EDM process into identifiable, controllable, and traceable processing stages to facilitate progress tracking, resource allocation, and quality control by a central scheduling controller.
[0035] In one embodiment, based on the target machining file, the machine tool is controlled to perform the work of the current machining stage. Before this, the process may include: a central scheduling controller sending the target machining file to the machine tool.
[0036] In one embodiment, based on the target machining file, the machine tool is controlled to perform the work of the current machining stage, and then: Determine whether the current processing stage has been successfully executed. If the current processing stage has been successfully executed, repeat steps S1 to S3 until all processing stages of the electrical discharge machining are completed. If the current processing stage has failed, issue an alarm message.
[0037] Thus, through the above technical solution, the current machining stage can be determined from multiple machining stages in electrical discharge machining (EDM); the target machining file corresponding to the current machining stage can be determined; and based on the target machining file, the machine tool can be controlled to execute the work of the current machining stage. This solves the technical problem that the various machining stages of EDM are independent of each other, requiring manual coordination and unable to form a continuous automated workflow. This ultimately achieves the goals of improving the machining efficiency of EDM and reducing labor costs.
[0038] In one embodiment, the multiple processing stages may include a first processing stage. Determining the current processing stage from the multiple processing stages may include: In response to receiving an electrical discharge machining command, the machine tool's own status is determined.
[0039] If the machine tool is in normal condition, then the current processing stage is determined to be the first processing stage.
[0040] Here, electrical discharge machining (EDM) commands refer to digital commands used to control the EDM process. In one embodiment, EDM commands can be sent from the upper-level system to the central dispatch controller.
[0041] In one embodiment, the central scheduling controller may include a status monitor; the status monitor can read servo enable and alarm information from the machine tool in real time; wherein, the status monitor is the core functional module of the central scheduling controller, which is specifically responsible for collecting operating status data from each machine tool in real time; the servo enable is a key signal for controlling the servo motor drive of the machine tool, which determines the motion control status of the machine tool machining axis.
[0042] The central dispatch controller can then determine the machine tool's own status based on the read status of servo enable and alarm information. The machine tool's own status can include the following two types: normal and abnormal. For example, if the read servo enable is in the ready state and no alarm information is read, the machine tool's own status is determined to be normal; if the read servo enable is in the disabled state, or an alarm information is read, the machine tool's own status is determined to be abnormal.
[0043] When an electrical discharge machining command is received and the machine tool is in normal condition, the central scheduling controller determines the current machining stage as the first machining stage.
[0044] Thus, this application can determine the machine tool's own status upon receiving an electrical discharge machining (EDM) command; if the machine tool's own status is normal, then the current machining stage is determined to be the first machining stage. This achieves the function of initiating the first machining stage based on an EDM command, without manual intervention, thereby improving the machining efficiency of EDM and reducing labor costs.
[0045] Existing technologies lack real-time monitoring of machine tool program operation status, resulting in hidden risks to processing quality and equipment safety.
[0046] In one embodiment, the first machining stage corresponds to a first target machining file. Controlling the machine tool to perform the work of the current machining stage based on the target machining file may include: In response to determining that the current machining stage is the first machining stage, the machine tool is controlled to execute the first target machining file to obtain the first measurement data.
[0047] Based on the first measurement data, the target quality data is determined.
[0048] If the target quality data meets the first preset condition, the program running status is determined to be the end of the execution of the first target processing file. The program running status is used to characterize the execution status of the target processing file.
[0049] In one embodiment, the first processing stage may be the machine preparation stage, and the work of the machine preparation stage may include: detecting the flatness error of the table surface, where the flatness error refers to the flatness error of the machine tool worktable surface; the flatness error is used to characterize the degree of deviation between the actual processing plane of the machine tool and the ideal plane.
[0050] The first target machining file may include instructions and data for measuring point data; the first measurement data may be point data; point data refers to the three-dimensional coordinate information of each measurement point on the machine tool worktable.
[0051] Controlling a machine tool to execute a first target machining file to obtain first measurement data may include: a central scheduling controller controlling the machine tool to execute the first target machining file to drive the machine tool probe to contact and measure on the gridded measurement points on the machine tool worktable to obtain point data.
[0052] In one embodiment, the central dispatch controller may include a database, into which the central dispatch controller may store the first measurement data for report viewing.
[0053] In one embodiment, the target quality data may be the tabletop flatness error; determining the target quality data based on the first measurement data may include: using the point data as input to a preset algorithm in the central dispatch controller, and then obtaining the output of the preset algorithm; wherein the output of the preset algorithm is the tabletop flatness error.
[0054] The first preset condition can be that the flatness error of the table surface is less than or equal to a preset error threshold, which can be 0.02mm. When the flatness error of the table surface is less than or equal to the preset error threshold, the central scheduling controller can determine that the flatness of the machine tool table surface is qualified and set the program running status as the first target machining file execution completed. Qualified flatness indicates that the machine tool can perform the machining task.
[0055] The program's running status can include the following: the target machining file has started execution, the target machining file is being executed, the target machining file is paused, the target machining file is suspended, and the target machining file has finished execution. Among these, paused execution usually means the target machining file has been manually paused; suspended execution usually means the machine tool has automatically stopped executing the target machining file; and finished execution usually means the machine tool has successfully executed the target machining file.
[0056] In one implementation, if the program execution status is that the target processing file has stopped, the central scheduling controller will issue an alarm message.
[0057] In one embodiment, if the target quality data does not meet the first preset condition, the central scheduling controller determines the program running status as suspending execution in the first target processing file.
[0058] The status monitor can read the M-code execution status and probe signals from the machine tool in real time. Based on the M-code execution status and probe signals, the status monitor can determine the program running status as follows: the target machining file has started execution, the target machining file is being executed, or the target machining file is paused.
[0059] Thus, in the first processing stage, this application can control the machine tool to execute the first target processing file to obtain first measurement data; based on the first measurement data, target quality data is determined; if the target quality data meets the first preset condition, the program running state is determined as the execution of the first target processing file has ended. This application realizes real-time monitoring of the program running state in the first processing stage, thereby reducing the hidden risks to processing quality and equipment safety.
[0060] Furthermore, this application can control the machine tool to perform the first machining stage based on the first target machining file without human intervention, thereby improving the machining efficiency of electrical discharge machining and reducing labor costs.
[0061] Existing technologies lack real-time monitoring of the machine tool's own status and the machine tool's program operation status, resulting in hidden risks to processing quality and equipment safety.
[0062] See Figure 2In one embodiment, the multiple processing stages may further include a second processing stage, a third processing stage, and a fourth processing stage. The second processing stage corresponds to a second target processing file. The third processing stage corresponds to a third target processing file. The fourth processing stage corresponds to a fourth target processing file. Determining the current processing stage from the multiple processing stages may further include the following steps: Step V1: Obtain the program running status and determine the machine tool's own status.
[0063] Step V2: If the program running status is that the first target processing file has been executed and the machine tool's own status is normal, then the current processing stage is determined to be the second processing stage.
[0064] Step V3: If the program running status is that the second target processing file has been executed and the machine tool's own status is normal, then the current processing stage is determined to be the third processing stage.
[0065] Step V4: If the program running status is that the third target processing file has been executed and the machine tool's own status is normal, then the current processing stage is determined to be the fourth processing stage.
[0066] See Figure 3 In one embodiment, the central scheduling controller may include a process engine; the status monitor may send the machine tool's own status and program running status to the process engine, and the process engine may determine whether the current processing stage is the second processing stage, the third processing stage, or the fourth processing stage based on the machine tool's own status and program running status; then the central scheduling controller may determine the target processing file corresponding to the current processing stage and send the target processing file to the machine tool.
[0067] In one embodiment, the second processing stage can be a workpiece alignment stage, which may include determining and calibrating the rotation center offset error of the machine tool's rotary table. The rotation center offset error refers to the offset between the actual rotation center and the theoretical center of the rotary table.
[0068] In one embodiment, the third machining stage can be a coordinate setting stage, which may include determining the origin of the workpiece coordinate system. The origin of the workpiece coordinate system is a three-dimensional spatial reference point set relative to the workpiece, and is a digital reference for electrical discharge machining.
[0069] In one embodiment, the fourth processing stage can be the processing execution stage, and the work of the processing start-up stage can include performing electrical discharge machining (EDM). Electrical discharge machining refers to a processing method that uses the instantaneous high temperature generated by pulsed discharge to erode the conductive workpiece material. Electrical discharge machining is the core physical process in electrical discharge machining.
[0070] Thus, this application can obtain the program running status and determine the machine tool's own status; if the program running status indicates that the first target machining file has been executed and the machine tool's own status is normal, then the current machining stage is determined to be the second machining stage; if the program running status indicates that the second target machining file has been executed and the machine tool's own status is normal, then the current machining stage is determined to be the third machining stage; if the program running status indicates that the third target machining file has been executed and the machine tool's own status is normal, then the current machining stage is determined to be the fourth machining stage; this application realizes real-time monitoring of the machine tool's own status and the program running status at each machining stage, thereby reducing the hidden risks to machining quality and equipment safety.
[0071] Furthermore, this application can determine the current machining stage based on the machine tool's own status and the program's running status, without requiring manual intervention. This solves the technical problem that the various machining stages in electrical discharge machining (EDM) are independent of each other, requiring manual coordination and preventing the formation of a continuous automated workflow. This ultimately achieves the goals of improving EDM processing efficiency and reducing labor costs.
[0072] In one embodiment, controlling the machine tool to perform the work of the current machining stage based on the target machining file may further include the following steps: Step C1: In response to determining that the current machining stage is the second machining stage, control the machine tool to execute the second target machining file to obtain the second measurement data.
[0073] Step C2: Based on the second measurement data, determine the target accuracy data.
[0074] Step C3: Calibrate the target accuracy data; if the calibrated target accuracy data meets the second preset condition, then the program running status is determined to be the end of the execution of the second target processing file.
[0075] In one embodiment, the second processing stage may be a workpiece alignment stage; the second target processing file may include instructions and data for determining the rotation center offset error.
[0076] The second measurement data can be multi-angle measurement values; controlling the machine tool to execute the second target machining file to obtain the second measurement data may include: the central scheduling controller controlling the machine tool to execute the second target machining file to drive the machine tool's turntable to rotate sequentially to multiple preset positions; at each preset position, measuring the center position of a standard sphere fixed on the turntable surface to obtain a set of coordinate values; and determining each set of coordinate values obtained as multi-angle measurement values.
[0077] In one implementation, the central dispatch controller can store the second measurement data into a database for report viewing.
[0078] The target accuracy data can be the rotation center offset error; the target accuracy data is determined based on the second measurement data, which may include: the central scheduling controller calculating the rotation center offset error based on multi-angle measurement values.
[0079] Calibration target accuracy data may include: The central dispatch controller calculates the rotary table compensation value based on the rotation center offset error; the rotary table compensation value can be used to compensate for the rotation center offset error.
[0080] The central scheduling controller controls the rotary table to perform coordinate system correction based on the rotary table compensation value, then updates the multi-angle measurement values and the rotation center offset error. Updating the multi-angle measurement values may include: controlling the machine tool to execute a second target machining file to obtain the current sets of coordinate values, and updating the multi-angle measurement values to reflect these current sets of coordinate values. Updating the rotation center offset error may include: calculating the current rotation center offset error based on the updated multi-angle measurement values, and updating the value of the rotation center offset error to reflect the current value of the rotation center offset error.
[0081] The central dispatch controller determines the updated rotation center offset error as the calibrated target accuracy data.
[0082] In one embodiment, the second preset condition may be that the calibrated target accuracy data is less than or equal to a preset threshold; the preset threshold may be 0.005 mm.
[0083] In one embodiment, if the calibrated target accuracy data does not meet the second preset condition, step C3 is repeated. If the calibrated target accuracy data still does not meet the second preset condition when the number of times step C3 is repeated reaches a preset threshold, the central scheduling controller determines the program running status as a termination of execution in the second target processing file. The preset threshold can be 5 times.
[0084] Thus, in the second machining stage, this application can control the machine tool to execute the second target machining file to obtain second measurement data; based on the second measurement data, the target accuracy data is determined and calibrated; if the calibrated target accuracy data meets the second preset condition, the program running state is determined as the second target machining file execution is complete. This application can control the machine tool to execute the work of the second machining stage based on the second target machining file, realizing automatic measurement and calibration of target accuracy data without manual intervention, thereby improving the machining efficiency of electrical discharge machining and reducing labor costs.
[0085] In existing technologies, the origin of the workpiece coordinate system relies on manual measurement and input, which is inefficient and prone to errors, and is particularly unsuitable for flexible production scenarios with multiple varieties and small batches.
[0086] In one embodiment, controlling the machine tool to perform the work of the current machining stage based on the target machining file may further include: In response to determining that the current machining stage is the third machining stage, the machine tool is controlled to execute the third target machining file to obtain the third measurement data.
[0087] Based on the third measurement data, the target process parameters are determined.
[0088] Write the target process parameters into the fourth target processing file.
[0089] If the target process parameters are successfully written into the fourth target machining file, the program running status will be set to the end of the execution of the third target machining file.
[0090] In one embodiment, the third processing stage may be a coordinate setting stage; the third target processing file may include instructions and data for detecting process feature points. Process feature points refer to key geometric location points used to define, control, or monitor the processing process, and these points are often directly related to processing strategies, discharge parameter switching, and accuracy control. Process feature points may include at least one of the following: reference holes, reference surfaces, and reference spheres.
[0091] The third measurement data can be process feature point detection data; process feature point detection data can be process feature point coordinate data.
[0092] Controlling a machine tool to execute a third target machining file to obtain third measurement data may include: a central scheduling controller controlling the machine tool to execute the third target machining file to detect process feature points and obtain process feature point detection data.
[0093] In one implementation, the central dispatch controller can store the third measurement data into a database for report display and manual verification.
[0094] The target process parameter can be the origin of the workpiece coordinate system; the determination of the target process parameter based on the third measurement data can include: the central scheduling controller calculating the origin of the workpiece coordinate system based on the process feature point detection data.
[0095] In one implementation, if the target process parameters fail to be successfully written into the fourth target processing file, the central scheduling controller will determine the program running status as terminated in the third target processing file.
[0096] In one embodiment, the central scheduling controller may include a data bridge; the fourth target processing file may include a program header; writing the target process parameters into the fourth target processing file may include: first sending the target process parameters to the data bridge in the central scheduling controller, and then writing the target process parameters into the program header of the fourth target processing file through the data bridge.
[0097] In one embodiment, after the target process parameters are successfully written into the fourth target machining file, the fourth target machining file includes complete process parameters and machining trajectory, which can be used for electrical discharge machining in the fourth machining stage.
[0098] Thus, in the third processing stage, this application can control the machine tool to execute the third target processing file to obtain the third measurement data; based on the third measurement data, determine the target process parameters; write the target process parameters into the fourth target processing file; if the target process parameters are successfully written into the fourth target processing file, the program running status is determined to be the end of the execution of the third target processing file. This application can calculate the origin of the workpiece coordinate system based on the process feature point detection data; it solves the technical problem in the prior art that the origin of the workpiece coordinate system depends on manual measurement and manual input, which is inefficient and prone to errors, and improves the adaptability to flexible production scenarios with multiple varieties and small batches.
[0099] Furthermore, this application can control the machine tool to perform the third machining stage based on the third target machining file without human intervention, thereby improving the machining efficiency of electrical discharge machining and reducing labor costs.
[0100] In one embodiment, controlling the machine tool to perform the work of the current machining stage based on the target machining file may further include: In response to determining that the current machining stage is the fourth machining stage, the machine tool is controlled to execute the fourth target machining document.
[0101] If the fourth target processing file is executed successfully, the program running status will be determined as the fourth target processing file has been executed.
[0102] In one embodiment, the fourth processing stage may be the processing execution stage; the fourth target processing file refers to the fourth target processing file after the target process parameters have been successfully written into the fourth target processing file.
[0103] Controlling the machine tool to execute the fourth target machining file may include: a central scheduling controller controlling the machine tool to execute the fourth target machining file to perform electrical discharge machining.
[0104] Determining the program's running status as the completion of the fourth target processing file can include: after the fourth target processing file has been completed, the central scheduling controller determines the program's running status as the completion of the fourth target processing file.
[0105] In one implementation, if the fourth target processing file fails to execute, the central scheduling controller determines the program running status as the fourth target processing file has been terminated.
[0106] Thus, in the fourth machining stage, this application can control the machine tool to execute the fourth target machining file; if the fourth target machining file is successfully executed, the program running status is determined to be the end of the fourth target machining file execution. This application can control the machine tool to perform electrical discharge machining based on the fourth target machining file without manual intervention, thereby improving the machining efficiency of electrical discharge machining and reducing labor costs.
[0107] In one embodiment, the method may further include: Obtain the program's running status and determine the machine tool's own status.
[0108] If the program runs in the fourth target machining file execution completed and the machine tool itself is in normal condition, then the electrical discharge machining instruction has been executed.
[0109] Thus, this application can determine that the electrical discharge machining (EDM) instruction has been completed when the program execution status is at the end of the fourth target machining file and the machine tool itself is in normal condition. This achieves the function of automatically completing the EDM instruction execution, solving the technical problem that the various machining stages of EDM are independent of each other, requiring manual coordination and preventing the formation of a continuous automated workflow. This ultimately improves the machining efficiency of EDM and reduces labor costs.
[0110] In existing technologies, processing data, status data, and process result data are isolated from each other, making it impossible to form a closed loop of collection, analysis, and optimization, which limits the realization of process optimization and predictive maintenance.
[0111] In one embodiment, the method may further include: The processing data is bound to the processing execution log to form a process and status data package.
[0112] The central dispatch controller is responsible for monitoring each stage of the electrical discharge machining (EDM) process and generating a machining execution log and complete process result data. The machining execution log is used to fully trace the execution status, parameter changes, and event records of each stage. The process result data refers to various indicators used to evaluate machining quality and efficiency; it is the core basis for measuring machining effectiveness and optimizing process parameters.
[0113] The processing data may include measurement data, status data, and process result data; the measurement data may include first measurement data, second measurement data, and third measurement data; the status data may include the program running status of each processing stage and the machine tool's own status.
[0114] In this way, this application can bind processing data with processing execution logs to form process and status data packages. This solves the technical problem in the prior art where processing data, status data, and process result data are isolated and cannot form a closed loop of collection, analysis, and optimization, thus realizing process optimization and predictive maintenance.
[0115] Based on the same inventive concept as the foregoing embodiments, this application provides an electronic device. For example... Figure 4 As shown, the electronic device includes: a processor 310 and a memory 311 storing a computer program; wherein, Figure 4 The processor 310 shown in the diagram does not indicate that there is only one processor 310, but only indicates the positional relationship of the processor 310 relative to other devices. In practical applications, there can be one or more processors 310; similarly, Figure 4 The memory 311 shown in the diagram has the same meaning, that is, it is only used to indicate the positional relationship of memory 311 relative to other devices. In practical applications, there can be one or more memories 311. When the processor 310 runs the computer program, the above method is implemented.
[0116] The electronic device may also include at least one network interface 312. The various components of the electronic device are coupled together via a bus system 313. It is understood that the bus system 313 is used to implement communication between these components. In addition to a data bus, the bus system 313 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 4 The general designated all buses as Bus System 313.
[0117] Based on the same inventive concept as the foregoing embodiments, this embodiment also provides a computer-readable storage medium storing a computer program. The computer-readable storage medium can be a magnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM), etc.; it can also be various devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc. When the computer program stored in the computer-readable storage medium is executed by a processor, it implements the above method. For the specific steps implemented when the computer program is executed by the processor, please refer to [link to relevant documentation]. Figure 1 The description of the illustrated embodiments will not be repeated here.
[0118] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0119] In this document, the terms “comprising,” “including,” or any other variations thereof are intended to cover a non-exclusive inclusion, which includes not only those elements listed but also other elements not expressly listed.
[0120] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An electrical discharge machining method, characterized in that, The electrical discharge machining includes multiple machining stages; each machining stage corresponds to a machining file; the method includes the following steps: Determine the current processing stage from the plurality of processing stages; Determine the target processing file corresponding to the current processing stage; Based on the target machining file, control the machine tool to perform the work of the current machining stage; The plurality of processing stages includes a first processing stage; determining the current processing stage from the plurality of processing stages includes: In response to receiving an electrical discharge machining command, the machine tool's own state is determined; If the machine tool is in normal condition, then the current processing stage is determined to be the first processing stage; The plurality of processing stages further includes a second processing stage, a third processing stage, and a fourth processing stage; the second processing stage corresponds to a second target processing file; the third processing stage corresponds to a third target processing file; the fourth processing stage corresponds to a fourth target processing file; determining the current processing stage from the plurality of processing stages further includes: The program running status is obtained, and the machine tool's own status is determined; wherein, the program running status is used to characterize the execution status of the target machining file; If the program running status is that the first target processing file has been executed and the machine tool itself is in normal status, then the current processing stage is determined to be the second processing stage; If the program running status is that the second target processing file has been executed and the machine tool itself is in normal status, then the current processing stage is determined to be the third processing stage; If the program running status is that the third target processing file has been executed and the machine tool itself is in normal status, then the current processing stage is determined to be the fourth processing stage. The first processing stage is the machine preparation stage, the second processing stage is the workpiece alignment stage, the third processing stage is the coordinate setting stage, and the fourth processing stage is the processing execution stage.
2. The electrical discharge machining method as described in claim 1, characterized in that, The first processing stage corresponds to a first target processing file; the step of controlling the machine tool to perform the work of the current processing stage based on the target processing file includes: In response to determining that the current processing stage is the first processing stage, the machine tool is controlled to execute the first target processing file to obtain first measurement data; Based on the first measurement data, the target quality data is determined; If the target quality data meets the first preset condition, then the program running status is determined to be the end of the execution of the first target processing file.
3. The electrical discharge machining method as described in claim 1, characterized in that, The step of controlling the machine tool to perform the current machining stage based on the target machining file further includes: In response to determining that the current machining stage is the second machining stage, the machine tool is controlled to execute the second target machining file to obtain second measurement data; Based on the second measurement data, the target accuracy data is determined; The target accuracy data is calibrated; if the calibrated target accuracy data meets the second preset condition, the program running status is determined to be the end of the execution of the second target processing file.
4. The electrical discharge machining method as described in claim 1, characterized in that, The step of controlling the machine tool to perform the current machining stage based on the target machining file further includes: In response to determining that the current machining stage is the third machining stage, the machine tool is controlled to execute the third target machining file to obtain third measurement data; Based on the third measurement data, the target process parameters are determined; Write the target process parameters into the fourth target processing file; If the target process parameters are successfully written into the fourth target processing file, the program running status is determined to be the end of the execution of the third target processing file.
5. The electrical discharge machining method as described in claim 1, characterized in that, The step of controlling the machine tool to perform the current machining stage based on the target machining file further includes: In response to determining that the current machining stage is the fourth machining stage, the machine tool is controlled to execute the fourth target machining file; If the fourth target processing file is executed successfully, the program running status is determined to be that the fourth target processing file has been executed.
6. The electrical discharge machining method as described in claim 5, characterized in that, The method further includes: Obtain the program's running status and determine the machine tool's own status; If the program running status is that the fourth target machining file has been executed and the machine tool itself is in normal status, then it is determined that the electrical discharge machining instruction has been executed.
7. An electronic device, characterized in that, The electronic device includes a processor and a memory storing a computer program, wherein when the processor runs the computer program, it implements the steps of the electrical discharge machining method according to any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that, The device contains a computer program that, when executed by a processor, implements the steps of the electrical discharge machining method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Automatic online measuring and automatic machining system of electric spark machining machine
CN115922003A
Electrode program design method and device, electronic equipment and storage medium
CN119292571A
Multi-discharge efficient precision machining equipment and method for milling cutter
CN120460824A