Electric spark parameter automatic checking method and device, computer device and storage medium

By automatically detecting the flatness and levelness of the electrodes, the problem of human error in electrical discharge machining is solved, and automatic verification and efficient centering of electrode parameters are achieved, reducing the complexity of operation and the experience requirements.

CN117415397BActive Publication Date: 2025-12-30ZHONG SHU FU XIN ZHI NENG KE JI (SHANG HAI) YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311665016.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-06
Publication Date
2025-12-30
Estimated Expiration
2043-12-06

AI Technical Summary

Technical Problem

In electrical discharge machining, the levelness and flatness of the electrode need to be checked manually, which is prone to errors that can damage the electrode and the workpiece, and requires a high level of operational experience.

Method used

By acquiring the expected values ​​of the discharge relationship and basic data between the target electrode and the workpiece, automatic verification parameters are generated, and measured values ​​are collected for automatic detection. After ensuring that the flatness and levelness of the electrode are within the error range, the centering program is automatically run.

Benefits of technology

It enables automatic calibration of electrode parameters, reduces manual operation errors, improves work efficiency, and lowers the requirements for operator experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117415397B_ABST
    Figure CN117415397B_ABST
Patent Text Reader

Abstract

The application relates to the field of electric spark machining, in particular to an electric spark parameter automatic checking method and device, computer equipment and a storage medium, which comprises the following steps: obtaining an expected value of a discharge relationship between a target electrode and a target workpiece, an expected value of first basic data of the target electrode and second basic data of the target workpiece; generating first parameters of an electrode flatness detection program and second parameters of an electrode levelness detection program, and generating third parameters of an electrode centering program; collecting a measured value of the discharge relationship and a measured value of the first basic data; detecting whether the flatness of the target electrode is within an error range; detecting whether the levelness of the target electrode is within the error range; and if the flatness of the target electrode and the levelness of the target electrode are both within the error range, running the electrode centering program according to the third parameters. The application has the effects of effectively reducing parameter checking abnormalities caused by manual operation errors, automatically running the centering program and improving efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electrical discharge machining technology, and in particular to methods, apparatus, computer equipment and storage media for automatic verification of electrical discharge parameters. Background Technology

[0002] Electrical discharge machining (EDM) is a machining method widely used in mold manufacturing, aerospace, automotive manufacturing, medical device and other fields. Common applications include mold cavity machining, complex contour machining and cutting small holes.

[0003] In related technologies, before the electrode of electrical discharge machining is discharged, the levelness and flatness of the electrode need to be checked, which involves many steps. Manual machining requires full human intervention and requires the operator to have certain operating experience. If the manual operation is incorrect, it may lead to damage to the electrode and the workpiece. Summary of the Invention

[0004] In order to at least partially solve the above-mentioned technical problems, the purpose of this application is to provide an automatic verification method, apparatus, computer equipment and storage medium for electrical discharge parameters.

[0005] Firstly, the automatic verification method for electrical spark parameters provided in this application adopts the following technical solution:

[0006] Automatic verification methods for electrical discharge parameters include:

[0007] Obtain the expected value of the discharge relationship between the pre-stored target electrode and the target workpiece, the expected value of the first basic data of the target electrode, and the second basic data of the target workpiece;

[0008] Based on the expected value of the discharge relationship and the expected value of the first basic data, the first parameter of the electrode flatness detection program and the second parameter of the electrode levelness detection program are generated. Based on the expected value of the discharge relationship, the expected value of the first basic data and the second basic data, the third parameter of the electrode centering program is generated.

[0009] Collect measured values ​​of the discharge relationship between the target electrode and the target workpiece, and measured values ​​of the first basic data of the target electrode;

[0010] Based on the first parameter, the measured value of the discharge relationship, and the measured value of the first basic data, the flatness of the target electrode is detected to be within the error range;

[0011] Based on the second parameter, the measured value of the discharge relationship, and the measured value of the first basic data, the levelness of the target electrode is detected to be within the error range;

[0012] If both the flatness and levelness of the target electrode are within the error range, then the electrode centering program is run according to the third parameter.

[0013] By adopting the above technical solution, the expected values ​​of each data are first obtained, that is, the theoretical set values. Among them, the discharge relationship may include data such as discharge coordinates, discharge depth, and C-angle quadrant. The first basic data may include data such as the length, width, height, material, and shape contour of the target electrode. The second basic data may include data such as the length, width, height, material, and shape contour of the target workpiece.

[0014] Then, based on the expected values ​​of each data point, the parameters that need to be automatically verified are calculated. The first parameter may include the coordinates of each point on the fitting plane, flatness tolerance, average flatness, maximum flatness, flatness curve, and other parameters used to describe the flatness of the electrode. The second parameter may include the coordinates of each point where the fitting plane intersects with the x-axis, levelness tolerance, average levelness, maximum levelness, levelness curve, and other parameters used to describe the levelness of the electrode. The third parameter may include the processing path parameters, the center coordinates of the target workpiece, the discharge parameters of the target electrode, and other parameters used to describe how to achieve automatic centering of the control electrode.

[0015] The measured values ​​of discharge relationship and first basic data are collected so that the parameters obtained through the target value can be compared with the measured values ​​in subsequent steps to complete parameter verification. The measured values ​​can be obtained by coordinate measuring machine, laser scanner, trigger measuring instrument, optical sensor, etc. The collected data can be processed for subsequent calculation and analysis. Data processing may include data filtering, data registration, data fitting and other operations to ensure the accuracy and consistency of the data.

[0016] When testing the flatness or levelness of a target electrode, it is necessary to determine a reference plane or reference axis. This can be a plane or axis of the target electrode itself, or a pre-defined standard reference plane or reference axis.

[0017] When the flatness and levelness errors of the target electrode are within acceptable range, the parameter automatic verification passes. The centering program is then run according to the third parameter to center the target workpiece and perform electrical discharge machining in the subsequent process.

[0018] Optionally, the steps of obtaining the expected value of the pre-stored discharge relationship between the target electrode and the target workpiece and the expected value of the first basic data of the target electrode include:

[0019] Access the electrical discharge machining database;

[0020] The discharge coordinates, discharge depth, and C-angle quadrant of the target electrode are read from the electrical discharge machining database as the expected value of the discharge relationship;

[0021] The three-dimensional model data or surface contour data of the target electrode are read from the electrical discharge machining database as the expected value of the first basic data.

[0022] By adopting the above technical solution, the theoretical data required for automatic verification of electrical discharge parameters can be obtained;

[0023] Among them, the discharge coordinate is usually used to describe the position of the electrode discharging on the workpiece. It is a specific coordinate value that represents the position of the electrode discharge point on the workpiece surface. The discharge coordinate can be determined using a coordinate system or reference point on the workpiece surface, such as the X and Y coordinates in the rectangular coordinate system or the radial and angular coordinates in the polar coordinate system.

[0024] C-angle refers to the angle between the discharge angle on the electrode and the electrode axis. Based on the size of the angle, the C-angle quadrant is divided into the first to fourth quadrants. The angles for dividing the four quadrants are the same as those for dividing the four quadrants in the rectangular coordinate system. The set and measured values ​​of the electrode's C-angle and C-angle quadrant are very important in electrical discharge machining. They can be used to control the discharge angle and position, thereby achieving precise machining.

[0025] Discharge depth represents the depth of electro-erosion required for the target workpiece corresponding to the target electrode;

[0026] The three-dimensional model data or surface contour data of the electrode mainly includes data such as the shape and size of the electrode, which are usually represented by points, lines and surfaces in a three-dimensional coordinate system, as well as data such as material properties, discharge area, and surface treatment.

[0027] The theoretical data mentioned above will be further processed to obtain the parameters that need to be verified.

[0028] Optionally, the step of generating the first parameter of the electrode flatness detection program based on the expected value of the discharge relationship and the expected value of the first basic data includes:

[0029] The expected values ​​of the discharge relationship and the expected values ​​of the first basic data are preprocessed to obtain the first planar dataset;

[0030] Select at least three points in the first plane dataset, construct the first plane corresponding to the target electrode using a fitting algorithm, and use the coordinates of each point in the first plane as the first parameter.

[0031] By adopting the above technical solution, a first parameter corresponding to the theoretical data can be obtained for detecting flatness. The first plane can be constructed using fitting algorithms such as least squares method, plane interpolation method or spline interpolation method. In subsequent steps, the flatness can be further detected using the first parameter.

[0032] Optionally, the step of detecting whether the flatness of the target electrode is within the error range based on the first parameter, the measured value of the discharge relationship, and the measured value of the first basic data includes:

[0033] The measured values ​​of the discharge relationship and the measured values ​​of the first basic data are preprocessed to obtain the second plane dataset;

[0034] Calculate the first distance between each discharge point in the second plane dataset and the first plane, and obtain the first flatness corresponding to the target electrode based on the maximum or average value of the first distance;

[0035] Calculate the first error between the preset second flatness and the first flatness;

[0036] Determine whether the first error is within the preset plane error range.

[0037] By adopting the above technical solution, the flatness of the target electrode can be automatically detected. The smaller the maximum or average value of the first distance, the higher the corresponding first flatness. The preprocessing can include outlier removal, missing value interpolation, Kalman filtering, etc. The range of the flatness error interval can be selected according to the actual situation.

[0038] Optionally, the step of generating the second parameter of the electrode level detection program based on the expected value of the discharge relationship and the expected value of the first basic data includes:

[0039] The expected values ​​of the discharge relationship and the expected values ​​of the first basic data are preprocessed to obtain the first level dataset;

[0040] Calculate the coordinates of the first center point of the target electrode based on the expected value of the discharge coordinates of the target electrode;

[0041] Calculate the first boundary range of the target electrode based on the three-dimensional model data or surface contour data of the target electrode;

[0042] Based on the expected value of the C-angle quadrant of the target electrode and the first boundary range, two first reference points located on the boundary of the target electrode are obtained, and the coordinates of the two first reference points are used as the second parameter.

[0043] By adopting the above technical solution, a second parameter corresponding to the theoretical data can be obtained for detecting the levelness. The first boundary range is the theoretical boundary obtained through the theoretical data, and in subsequent steps, the levelness can be further detected through the second parameter.

[0044] Optionally, the step of detecting whether the levelness of the target electrode is within the error range based on the second parameter, the measured value of the discharge relationship, and the measured value of the first basic data includes:

[0045] The measured values ​​of the discharge relationship and the measured values ​​of the first basic data are preprocessed to obtain the second level dataset;

[0046] Calculate the coordinates of the second center point of the target electrode based on the measured values ​​of the discharge coordinates of the target electrode;

[0047] Calculate the second boundary range of the target electrode based on the three-dimensional model data or surface contour data of the target electrode;

[0048] Based on the measured value of the C-angle quadrant of the target electrode and the second boundary range, two second reference points located on the boundary of the target electrode are obtained;

[0049] Calculate the second error between the two first reference points and the two second reference points;

[0050] Determine whether the second error is within the preset horizontal error range.

[0051] By adopting the above technical solution, the levelness of the target electrode can be automatically detected. Similarly, preprocessing can include outlier removal, missing value interpolation, Kalman filtering, etc. The range of the level error interval can be selected according to the actual situation. Two straight lines can be obtained through two pairs of reference points. By calculating the standard deviation of the second distance between the two straight lines, the levelness of the target electrode can be obtained. The smaller the standard deviation, the higher the levelness.

[0052] Optionally, the step of generating the third parameter of the electrode separation program based on the expected value of the discharge relationship, the expected value of the first basic data, and the second basic data includes:

[0053] The expected value of the discharge relationship, the expected value of the first basic data, and the second basic data are preprocessed to obtain the midpoint dataset;

[0054] The center coordinates of the target workpiece, the machining path parameters of the target electrode, and the discharge parameters of the target electrode are generated based on the midpoint dataset.

[0055] By adopting the above technical solution, parameters describing how to achieve automatic centering of the control electrode can be obtained, including processing path parameters, center coordinates of the target workpiece, and discharge parameters of the target electrode. If the flatness and levelness of the target electrode are qualified, the corresponding parameters are all verified. Using the third parameter, accurate automatic centering can be achieved.

[0056] Secondly, the automatic verification method and apparatus for electrical spark parameters provided in this application adopts the following technical solution:

[0057] An automatic calibration device for electrical discharge parameters includes:

[0058] The acquisition module is used to acquire the expected value of the discharge relationship between the target electrode and the target workpiece, the expected value of the first basic data of the target electrode, and the second basic data of the target workpiece, which are pre-stored.

[0059] The generation module is used to generate a first parameter for the electrode flatness detection program and a second parameter for the electrode levelness detection program based on the expected value of the discharge relationship and the expected value of the first basic data, and to generate a third parameter for the electrode centering program based on the expected value of the discharge relationship, the expected value of the first basic data and the second basic data.

[0060] The acquisition module is used to acquire the measured values ​​of the discharge relationship between the target electrode and the target workpiece, as well as the measured values ​​of the first basic data of the target electrode.

[0061] The first detection module is used to detect whether the flatness of the target electrode is within the error range based on the first parameter, the measured value of the discharge relationship, and the measured value of the first basic data.

[0062] The second detection module is used to detect whether the levelness of the target electrode is within the error range based on the second parameter, the measured value of the discharge relationship, and the measured value of the first basic data.

[0063] The execution module is used to run the electrode centering program according to the third parameter if both the flatness and the levelness of the target electrode are within the error range.

[0064] Thirdly, this application provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the automatic verification method for electrical discharge parameters as described in any one of the first aspects.

[0065] Fourthly, this application provides a computer-readable storage medium storing a computer program that can be loaded by a processor and execute the automatic electrical discharge parameter verification method as described in any one of the first aspects.

[0066] In summary, this application includes at least one of the following beneficial technical effects:

[0067] It can automatically detect electrode flatness and levelness, effectively reducing parameter verification anomalies caused by manual operation errors;

[0068] It can automatically run the segmentation process, improve work efficiency, reduce the workload of staff, and reduce the requirements for operators' work experience in the production process. Attached Figure Description

[0069] Figure 1 This is a flowchart illustrating an embodiment of an automatic verification method for electrical discharge parameters in this application;

[0070] Figure 2 This is a structural block diagram of an embodiment of an automatic electrical discharge parameter verification device according to this application. Detailed Implementation

[0071] The following is in conjunction with the appendix Figure 1 -Appendix Figure 2 This application will be described in further detail below.

[0072] This application discloses an embodiment of an automatic verification method for electrical discharge parameters, referring to... Figure 1 Automatic verification method for electrical discharge parameters, including:

[0073] S1. Obtain theoretical data for automatic verification of electrical discharge parameters, specifically, obtain the expected value of the discharge relationship between the target electrode and the target workpiece, the expected value of the first basic data of the target electrode, and the second basic data of the target workpiece from the pre-stored data.

[0074] In this embodiment, the discharge relationship may include data such as discharge coordinates, discharge depth, and C-angle quadrant; the first basic data may include data such as the length, width, height, material, and shape contour of the target electrode; and the second basic data may include data such as the length, width, height, material, and shape contour of the target workpiece.

[0075] Meanwhile, in this embodiment, as a preferred implementation, the steps of obtaining the expected value of the discharge relationship between the pre-stored target electrode and the target workpiece and the expected value of the first basic data of the target electrode include:

[0076] Access the electrical discharge machining database;

[0077] The discharge coordinates, discharge depth, and C-angle quadrant of the target electrode are read from the electrical discharge machining database as the expected value of the discharge relationship;

[0078] The expected value of the target electrode's three-dimensional model data or surface contour data is read from the electrical discharge machining database as the first basic data.

[0079] Using this implementation method, the expected value of each data point, i.e. the theoretical set value, can be obtained, and the benchmark value required for verification can be obtained in subsequent processing.

[0080] It can obtain the theoretical data required for automatic verification of electrical discharge parameters;

[0081] Among them, the discharge coordinate is usually used to describe the position of the electrode discharging on the workpiece. It is a specific coordinate value that represents the position of the electrode discharge point on the workpiece surface. The discharge coordinate can be determined using a coordinate system or reference point on the workpiece surface, such as the X and Y coordinates in the rectangular coordinate system or the radial and angular coordinates in the polar coordinate system.

[0082] C-angle refers to the angle between the discharge angle on the electrode and the electrode axis. Based on the size of the angle, the C-angle quadrant is divided into the first to fourth quadrants. The angles for dividing the four quadrants are the same as those for dividing the four quadrants in the rectangular coordinate system. The set and measured values ​​of the electrode's C-angle and C-angle quadrant are very important in electrical discharge machining. They can be used to control the discharge angle and position, thereby achieving precise machining.

[0083] Discharge depth represents the depth of electro-erosion required for the target workpiece corresponding to the target electrode;

[0084] The three-dimensional model data or surface contour data of the electrode mainly includes data such as the shape and size of the electrode, which are usually represented by points, lines and surfaces in a three-dimensional coordinate system, as well as data such as material properties, discharge area, and surface treatment.

[0085] The theoretical data mentioned above will be further processed to obtain the parameters that need to be verified.

[0086] S2. Generate the reference parameters for automatic verification of electric spark parameters. Specifically, based on the expected value of the discharge relationship and the expected value of the first basic data, generate the first parameter of the electrode flatness detection program and the second parameter of the electrode levelness detection program. Based on the expected value of the discharge relationship, the expected value of the first basic data, and the second basic data, generate the third parameter of the electrode centering program.

[0087] In this embodiment, the first parameter may include parameters describing the flatness of the electrode, such as the coordinates of each point on the fitting plane, flatness tolerance, average flatness, maximum flatness, and flatness curve. The second parameter may include parameters describing the levelness of the electrode, such as the coordinates of each point where the fitting plane intersects with the x-axis, levelness tolerance, average levelness, maximum levelness, and levelness curve. The third parameter may include parameters describing how to achieve automatic centering of the control electrode, including processing path parameters, center coordinates of the target workpiece, and discharge parameters of the target electrode.

[0088] S3. Collect measurement data for automatic verification of electrical discharge parameters, specifically the measured values ​​of the discharge relationship between the target electrode and the target workpiece and the measured values ​​of the first basic data of the target electrode.

[0089] In this implementation method, the measured values ​​of discharge relationship and first basic data are collected so that in subsequent steps, the parameters obtained through the target value are compared with the measured values ​​to complete the parameter verification. The measured values ​​can be obtained by a coordinate measuring machine, laser scanner, trigger-type measuring instrument, optical sensor, etc. The collected data can be processed for subsequent calculation and analysis. Data processing may include data filtering, data registration, data fitting and other operations to ensure the accuracy and consistency of the data.

[0090] When testing the flatness or levelness of a target electrode, it is necessary to determine a reference plane or reference axis. This can be a plane or axis of the target electrode itself, or a pre-defined standard reference plane or reference axis.

[0091] In this embodiment, as a preferred implementation, the step of generating the first parameter of the electrode flatness detection program based on the expected value of the discharge relationship and the expected value of the first basic data includes:

[0092] The expected values ​​of the discharge relationship and the expected values ​​of the first basic data are preprocessed to obtain the first plane dataset;

[0093] Select at least three points in the first plane dataset, construct the first plane corresponding to the target electrode using a fitting algorithm, and use the coordinates of each point in the first plane as the first parameter;

[0094] Using this implementation method, a first parameter corresponding to the theoretical data can be obtained for detecting flatness. The first plane can be constructed using fitting algorithms such as least squares method, plane interpolation method or spline interpolation method. In subsequent steps, the flatness can be further detected using the first parameter.

[0095] In this embodiment, as a preferred implementation, the step of generating the second parameter of the electrode level detection program based on the expected value of the discharge relationship and the expected value of the first basic data includes:

[0096] The expected values ​​of the discharge relationship and the expected values ​​of the first basic data are preprocessed to obtain the first level dataset;

[0097] Calculate the coordinates of the first center point of the target electrode based on the expected value of the discharge coordinates of the target electrode;

[0098] Calculate the first boundary range of the target electrode based on the three-dimensional model data or surface contour data of the target electrode;

[0099] Based on the expected value of the C-angle quadrant of the target electrode and the first boundary range, two first reference points located on the boundary of the target electrode are obtained, and the coordinates of the two first reference points are used as the second parameter.

[0100] Using this implementation method, a second parameter corresponding to the theoretical data can be obtained for detecting the levelness. The first boundary range is the theoretical boundary obtained through the theoretical data, and the levelness can be further detected through the second parameter in subsequent steps.

[0101] S4. Detect the flatness of the target electrode, specifically by detecting whether the flatness of the target electrode is within the error range based on the measured values ​​of the first parameter, the discharge relationship, and the first basic data.

[0102] In this embodiment, as a preferred implementation, the step of detecting whether the flatness of the target electrode is within the error range based on the first parameter, the measured value of the discharge relationship, and the measured value of the first basic data includes:

[0103] The measured values ​​of the discharge relationship and the measured values ​​of the first basic data are preprocessed to obtain the second plane dataset;

[0104] Calculate the first distance between each discharge point in the second plane dataset and the first plane, and obtain the first flatness corresponding to the target electrode based on the maximum or average value of the first distance;

[0105] Calculate the first error between the preset second flatness and the first flatness;

[0106] Determine whether the first error is within the preset plane error range;

[0107] Using this implementation method, the flatness of the target electrode can be automatically detected. The smaller the maximum or average value of the first distance, the higher the corresponding first flatness. The preprocessing can include outlier removal, missing value interpolation, Kalman filtering, etc. The range of the flatness error interval can be selected according to the actual situation.

[0108] S5. Detect the levelness of the target electrode. Specifically, based on the measured values ​​of the second parameter, the discharge relationship, and the first basic data, detect whether the levelness of the target electrode is within the error range.

[0109] In this embodiment, as a preferred real-time method, the step of detecting whether the levelness of the target electrode is within the error range based on the second parameter, the measured value of the discharge relationship, and the measured value of the first basic data includes:

[0110] The measured values ​​of the discharge relationship and the measured values ​​of the first basic data are preprocessed to obtain the second level dataset;

[0111] Calculate the coordinates of the second center point of the target electrode based on the measured values ​​of the discharge coordinates of the target electrode;

[0112] Calculate the second boundary range of the target electrode based on the three-dimensional model data or surface contour data of the target electrode;

[0113] Based on the measured values ​​of the C-angle quadrant of the target electrode and the second boundary range, two second reference points located on the boundary of the target electrode are obtained;

[0114] Calculate the second error between the two first reference points and the two second reference points;

[0115] Determine whether the second error is within the preset horizontal error range.

[0116] Using this implementation method, the levelness of the target electrode can be automatically detected. Similarly, preprocessing can include outlier removal, missing value interpolation, Kalman filtering, etc. The range of the level error interval can be selected according to the actual situation. Two straight lines can be obtained through two pairs of reference points. By calculating the standard deviation of the second distance between the two straight lines, the levelness of the target electrode can be obtained. The smaller the standard deviation, the higher the levelness.

[0117] S6. Automatic verification of electrical discharge parameters passes, and automatic centering is performed. Specifically, if the flatness and levelness of the target electrode are both within the error range, the electrode centering program is run according to the third parameter.

[0118] Using this implementation method, when the flatness and levelness errors of the target electrode are within acceptable range, the parameter automatic verification passes, and the centering program is run according to the third parameter to achieve centering of the target workpiece, and further electrical discharge machining is then performed.

[0119] In this embodiment, as a preferred implementation, the step of generating the third parameter of the electrode separation program based on the expected value of the discharge relationship, the expected value of the first basic data, and the second basic data includes:

[0120] The expected values ​​of the discharge relationship, the expected values ​​of the first basic data, and the second basic data are preprocessed to obtain the midpoint dataset;

[0121] Generate the center coordinates of the target workpiece, the machining path parameters of the target electrode, and the discharge parameters of the target electrode based on the midpoint dataset;

[0122] In this implementation method, when the flatness and levelness errors of the target electrode are within acceptable range, the automatic parameter verification passes. The centering program is run according to the third parameter to achieve centering of the target workpiece. In subsequent electrical discharge machining, parameters describing how to control the electrode to perform automatic centering can be obtained, including machining path parameters, center coordinates of the target workpiece, and discharge parameters of the target electrode. If the flatness and levelness of the target electrode are qualified, the corresponding parameters pass the verification. Accurate automatic centering can be achieved using the third parameter.

[0123] Therefore, in summary, the beneficial effects of this application include:

[0124] It can automatically detect electrode flatness and levelness, effectively reducing parameter verification anomalies caused by manual operation errors;

[0125] It can automatically run the segmentation process, improve work efficiency, reduce the workload of staff, and reduce the requirements for operators' work experience in the production process.

[0126] This application discloses an embodiment of an automatic electrical discharge parameter verification device, with reference to... Figure 2 An automatic electrical discharge parameter verification device includes:

[0127] The acquisition module is used to acquire the expected value of the discharge relationship between the target electrode and the target workpiece, the expected value of the first basic data of the target electrode, and the second basic data of the target workpiece, which are pre-stored.

[0128] The generation module is used to generate the first parameter of the electrode flatness detection program and the second parameter of the electrode levelness detection program based on the expected value of the discharge relationship and the expected value of the first basic data, and to generate the third parameter of the electrode centering program based on the expected value of the discharge relationship, the expected value of the first basic data and the second basic data.

[0129] The acquisition module is used to acquire the measured values ​​of the discharge relationship between the target electrode and the target workpiece, as well as the measured values ​​of the first basic data of the target electrode.

[0130] The first detection module is used to detect whether the flatness of the target electrode is within the error range based on the first parameter, the measured value of the discharge relationship and the measured value of the first basic data.

[0131] The second detection module is used to detect whether the levelness of the target electrode is within the error range based on the second parameter, the measured value of the discharge relationship, and the measured value of the first basic data.

[0132] The execution module is used to run the electrode centering program according to the third parameter if both the flatness and levelness of the target electrode are within the error range.

[0133] In the embodiments provided in this application, it should be understood that the provided methods and apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for example, the division of a certain module is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple modules may be combined or integrated into another device, or some features may be ignored or not executed.

[0134] This application also discloses an embodiment of a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the automatic verification method for electrical discharge parameters as described in any of the above-described methods.

[0135] This application also discloses an embodiment of a computer-readable storage medium storing a computer program capable of being loaded by a processor and executing the automatic electrical discharge parameter verification method as described in any of the above statements.

[0136] The computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device; the program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0137] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0138] The embodiments described in this specific implementation are preferred embodiments of this application and are not intended to limit the scope of protection of this application. Identical components are represented by the same reference numerals. Therefore, all equivalent changes made to the structure, shape, and principle of this application should be covered within the scope of protection of this application.

Claims

1. An electric spark parameter automatic checking method, characterized in that, The method comprises: obtaining expected values of a discharge relationship between a target electrode and a target workpiece, expected values of first basic data of the target electrode, and second basic data of the target workpiece; generating first parameters of an electrode flatness detection program and second parameters of an electrode levelness detection program according to the expected values of the discharge relationship and the expected values of the first basic data, and generating third parameters of an electrode centering program according to the expected values of the discharge relationship, the expected values of the first basic data, and the second basic data; collecting measured values of the discharge relationship between the target electrode and the target workpiece and measured values of the first basic data of the target electrode; detecting whether the flatness of the target electrode is within an error range according to the first parameters, the measured values of the discharge relationship, and the measured values of the first basic data; detecting whether the levelness of the target electrode is within an error range according to the second parameters, the measured values of the discharge relationship, and the measured values of the first basic data; if the flatness of the target electrode and the levelness of the target electrode are both within the error range, running the electrode centering program according to the third parameters; the step of obtaining the expected values of the discharge relationship between the target electrode and the target workpiece and the expected values of the first basic data of the target electrode comprises: accessing an electrical discharge machining database; reading discharge coordinates, discharge depths, and C angle quadrants of the target electrode as the expected values of the discharge relationship in the electrical discharge machining database; reading three-dimensional model data or surface profile data of the target electrode as the expected values of the first basic data in the electrical discharge machining database; the step of generating the first parameters of the electrode flatness detection program according to the expected values of the discharge relationship and the expected values of the first basic data comprises: preprocessing the expected values of the discharge relationship and the expected values of the first basic data to obtain a first plane data set; selecting at least three points in the first plane data set, constructing a first plane corresponding to the target electrode through a fitting algorithm, and taking the coordinates of each point in the first plane as the first parameters; the step of generating the second parameters of the electrode levelness detection program according to the expected values of the discharge relationship and the expected values of the first basic data comprises: preprocessing the expected values of the discharge relationship and the expected values of the first basic data to obtain a first level data set; calculating the coordinates of a first center point of the target electrode according to the expected values of the discharge coordinates of the target electrode; calculating a first boundary range of the target electrode according to the three-dimensional model data or the surface profile data of the target electrode; obtaining two first reference points located on the boundary of the target electrode according to the expected values of the C angle quadrants of the target electrode and the first boundary range, and taking the coordinates of the two first reference points as the second parameters.

2. The method of claim 1, wherein, the step of detecting whether the flatness of the target electrode is within an error range according to the first parameters, the measured values of the discharge relationship, and the measured values of the first basic data comprises: preprocessing the measured values of the discharge relationship and the measured values of the first basic data to obtain a second plane data set; calculating a first distance between each discharge point in the second plane data set and the first plane, and obtaining a first flatness of the target electrode according to a maximum value or an average value of the first distance; calculating a first error between a preset second flatness and the first flatness; judging whether the first error is within a preset flatness error range.

3. The method of claim 1, wherein the step of automatically verifying the electrical discharge machining parameter is performed by a computer. The step of detecting whether the levelness of the target electrode is within an error range according to the second parameter, the measured value of the discharge relationship, and the measured value of the first basic data comprises: preprocessing the measured value of the discharge relationship and the measured value of the first basic data to obtain a second level data set; calculating a coordinate of a second center point of the target electrode according to the measured value of the discharge coordinate of the target electrode; calculating a second boundary range of the target electrode according to the three-dimensional model data or the surface profile data of the target electrode; obtaining two second reference points on the boundary of the target electrode according to the measured value of the C-angle quadrant of the target electrode and the second boundary range; calculating a second error between the two first reference points and the two second reference points; judging whether the second error is within a preset level error range.

4. The method of claim 1, wherein the step of automatically verifying the electrical discharge machining parameter is performed by a computer. The step of generating a third parameter of the electrode centering program according to the expected value of the discharge relationship, the expected value of the first basic data, and the second basic data comprises: preprocessing the expected value of the discharge relationship, the expected value of the first basic data, and the second basic data to obtain a centering data set; generating a center coordinate of the target workpiece, a machining path parameter of the target electrode, and a discharge parameter of the target electrode according to the centering data set.

5. The apparatus of claim 1, wherein comprise: an acquisition module configured to acquire an expected value of a discharge relationship between a target electrode and a target workpiece, an expected value of first basic data of the target electrode, and second basic data of the target workpiece; a generation module configured to generate a first parameter of an electrode flatness detection program and a second parameter of an electrode levelness detection program according to the expected value of the discharge relationship and the expected value of the first basic data, and generate a third parameter of an electrode centering program according to the expected value of the discharge relationship, the expected value of the first basic data, and the second basic data; an acquisition module configured to acquire an expected value of a discharge relationship between a target electrode and a target workpiece, an expected value of first basic data of the target electrode, and second basic data of the target workpiece; a first detection module configured to detect whether the flatness of the target electrode is within an error range according to the first parameter, the measured value of the discharge relationship, and the measured value of the first basic data; a second detection module configured to detect whether the levelness of the target electrode is within an error range according to the second parameter, the measured value of the discharge relationship, and the measured value of the first basic data; an execution module configured to run the electrode centering program according to the third parameter if the flatness of the target electrode and the levelness of the target electrode are both within the error range.

6. A computer device, comprising: The computer program is stored in the memory and executable on the processor, and the processor executes the program to implement the electric spark parameter automatic verification method in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that: A computer program is stored, which can be loaded and executed by the processor to perform the electric spark parameter automatic checking method as claimed in any one of claims 1-4.

Citation Information

Patent Citations

  • Electrode batch centering method and device for electric spark machining and storage medium

    CN116275334A

  • Wire electric discharge machining method and device

    JP1999320266A