A side discharge electrode automatic control method, device, equipment and medium

CN117506030BActive Publication Date: 2026-07-24ZHONG SHU FU XIN ZHI NENG KE JI (SHANG HAI) YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHONG SHU FU XIN ZHI NENG KE JI (SHANG HAI) YOU XIAN GONG SI
Filing Date
2023-12-06
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

In electrical discharge machining, the side discharge electrode requires a lot of manual intervention before machining. The calculations are complicated and require a high level of experience, which can easily lead to substandard machining accuracy or scrapped workpieces.

Method used

By collecting and calculating the first discharge parameters and measurement parameters of the side discharge electrode, an automatic control program for the side discharge electrode is generated, reducing manual intervention and improving machine uptime and processing accuracy.

Benefits of technology

Automatic control of the side discharge electrode was achieved, reducing manual intervention, improving processing accuracy and machine uptime, and ensuring workpiece quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117506030B_ABST
    Figure CN117506030B_ABST
Patent Text Reader

Abstract

The application relates to the field of electric spark machining, and relates to a side surface discharge electrode automatic control method, a device, equipment and a medium.The method comprises the following steps: collecting a first discharge parameter when a side surface discharge electrode discharges; calculating a first discharge state of the side surface discharge electrode when the side surface discharge electrode discharges according to the first discharge parameter; acquiring a measurement parameter when the side surface discharge electrode is measured, calculating a first eccentricity value of the side surface discharge electrode according to the measurement parameter; calculating a second discharge state of the side surface discharge electrode when the side surface discharge electrode is measured according to the measurement parameter; calculating a first change relationship according to the first discharge state and the second discharge state; calculating a second eccentricity value of the side surface discharge electrode according to the first eccentricity value and the first change relationship; and generating a first discharge program of the side surface discharge electrode according to the second eccentricity value.The application has the effect of reducing manual intervention and effectively improving the machine utilization rate when electric spark machining is performed by using a side surface electrode.
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, and in particular to an automatic control method, apparatus, equipment and medium for side discharge electrodes. Background Technology

[0002] Currently, when using electrical discharge machining (EDM) to process molds, side discharge is sometimes required to improve processing efficiency and accuracy. However, in related technologies, the side discharge electrode requires a significant amount of manual intervention before processing. For example, it is necessary to consider the eccentricity of the electrode relative to the fixture during coordinate measuring machine (CMM) measurement, the eccentricity of the fixture itself, and the conversion of data for the length, width, and height of the fixture when performing side discharge in different orientations. This process is usually done manually, which is tedious. Furthermore, manually calculating the relative positions of points in three-dimensional space requires a high level of experience from the technicians. If the final eccentricity value is calculated incorrectly, the processed workpiece will not meet the accuracy requirements, and in severe cases, the target workpiece may be scrapped. Summary of the Invention

[0003] The purpose of this application is to provide an automatic control method, apparatus, device, and medium for side discharge electrodes, so as to at least partially solve the above-mentioned problems.

[0004] Firstly, the automatic control method for the side discharge electrode provided in this application adopts the following technical solution:

[0005] An automatic control method for a side discharge electrode includes:

[0006] The first discharge parameters are collected when the side discharge electrode discharges. The first discharge parameters include the first discharge coordinates, the first discharge orientation, the first discharge matrix, and the first C-angle quadrant value.

[0007] Based on the first discharge parameters, calculate the first discharge state when the side discharge electrode discharges;

[0008] The measurement parameters for measuring the side discharge electrode are obtained, and the first eccentricity value of the side discharge electrode is calculated based on the measurement parameters, wherein the measurement parameters include the second discharge matrix and the second C-angle quadrant value.

[0009] Based on the measurement parameters, calculate the second discharge state during the side discharge electrode measurement;

[0010] Calculate the first change relationship based on the first discharge state and the second discharge state;

[0011] Based on the first eccentricity value and the first change relationship, calculate the second eccentricity value of the side discharge electrode;

[0012] Based on the second eccentricity value, a first discharge procedure for the side discharge electrode is generated.

[0013] By adopting the above technical solution, the desired discharge posture of the target electrode relative to the workpiece, i.e. the first discharge state, can be obtained from the first discharge parameters. The parameters such as the first discharge coordinates, the first discharge orientation, the first discharge matrix, and the first C-angle quadrant value can comprehensively represent the relative position between the electrode and the target workpiece.

[0014] By measuring the parameters, the observed discharge attitude of the target electrode relative to the workpiece, i.e. the second discharge state, can be obtained. After calculating the first eccentricity value based on the second discharge state, it can be determined whether the target electrode is qualified. Only qualified electrodes will be automatically controlled in the subsequent process.

[0015] Based on the first change relationship, the relationship between the set relative positional relationship between the electrode and the target workpiece and the measured relative positional relationship between the electrode and the target workpiece can be obtained. Then, combined with the measured first eccentricity value, the second eccentricity value is obtained after correction. Subsequently, the discharge parameter setting value of the side discharge electrode is further adjusted to obtain the first discharge program to control the side electrode, thereby reducing manual intervention and effectively improving the machine's utilization rate.

[0016] Optionally, the step of calculating the first discharge state during discharge of the side discharge electrode includes:

[0017] Obtain the first reference plane of the side discharge electrode, and create a first Z vector perpendicular to the first reference plane;

[0018] Obtain the X-axis of the EDM machine corresponding to the side discharge electrode and create the first X vector;

[0019] Calculate the first Y vector of the side discharge electrode based on the first Z vector and the first X vector;

[0020] Calculate the value of the first matrix based on the first X vector, the first Y vector, and the first Z vector;

[0021] The first discharge state is calculated based on the first matrix value and the first C-angle quadrant value.

[0022] By adopting the above technical solution, the uniqueness of the target electrode's discharge attitude can be determined.

[0023] Optionally, the step of calculating the second discharge state during the side discharge electrode measurement includes:

[0024] Obtain the second reference plane of the side discharge electrode, and create a second Z vector perpendicular to the second reference plane;

[0025] Obtain the X-axis of the EDM machine corresponding to the side discharge electrode, and create a second X vector;

[0026] Calculate the second Y vector of the side discharge electrode based on the second Z vector and the second X vector;

[0027] Calculate the value of the second matrix based on the second X vector, the second Y vector, and the second Z vector;

[0028] The second discharge state is calculated based on the second matrix value and the second C-angle quadrant value.

[0029] By adopting the above technical solution, the uniqueness of the target electrode discharge posture observed by the measuring equipment can be determined.

[0030] Optionally, the first discharge parameter may also include the spark position of the side discharge electrode.

[0031] By adopting the above technical solution and incorporating the spark position into the parameters, the side electrode can be accurately controlled to process the workpiece after the position of the side electrode is determined, in conjunction with the spark position.

[0032] Optionally, it also includes collecting the first clamping parameters of the clamp when the side discharge electrode discharges, and calculating the first clamping state of the clamp when the side discharge electrode discharges based on the first clamping parameters.

[0033] The second clamping parameters of the clamp are collected during the side discharge electrode measurement, and the second clamping state of the clamp is calculated based on the second clamping parameters.

[0034] Calculate the third eccentricity value of the clamp based on the first clamping state, the second clamping state, and the first change relationship;

[0035] Based on the third eccentricity value, the first discharge program is updated to obtain the second discharge program.

[0036] By adopting the above technical solution, the deviation between the set value and the measured value of the fixture is compensated, so as to further improve the machining accuracy.

[0037] Optionally, before calculating the first eccentricity value of the side discharge electrode based on the measurement parameters, the measurement parameters are filtered.

[0038] By adopting the above technical solution, the measurement error generated when measuring the position of the side discharge electrode can be reduced, thereby further improving the processing accuracy.

[0039] Secondly, the automatic control device for the side discharge electrode provided in this application adopts the following technical solution:

[0040] An automatic control device for a side discharge electrode includes a data acquisition module for acquiring first discharge parameters during the discharge of the side discharge electrode. The first discharge parameters include first discharge coordinates, first discharge orientation, first discharge matrix, and first C-angle quadrant value.

[0041] The first calculation module is used to calculate the first discharge state when the side discharge electrode discharges based on the first discharge parameters.

[0042] The acquisition module is used to acquire the measurement parameters during the measurement of the side discharge electrode, and calculate the first eccentricity value of the side discharge electrode based on the measurement parameters, wherein the measurement parameters include the second discharge matrix and the second C-angle quadrant value.

[0043] The second calculation module is used to calculate the second discharge state during the side discharge electrode measurement based on the measurement parameters.

[0044] The third calculation module is used to calculate the first change relationship based on the first discharge state and the second discharge state;

[0045] The fourth calculation module is used to calculate the second eccentricity value of the side discharge electrode based on the first eccentricity value and the first change relationship;

[0046] The program generation module is used to generate a first discharge program for the side discharge electrode based on the second eccentricity value.

[0047] Thirdly, the computer device provided in this application includes 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 control method for the side discharge electrode as described in any one of the first aspects.

[0048] Fourthly, the computer-readable storage medium provided in this application stores a computer program that can be loaded by a processor and execute the automatic control method for the side discharge electrode as described in any one of the first aspects.

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

[0050] The desired discharge attitude of the target electrode relative to the workpiece, i.e. the first discharge state, can be obtained from the first discharge parameters. The first discharge coordinates, first discharge orientation, first discharge matrix, and first C-angle quadrant value can comprehensively represent the relative position between the electrode and the target workpiece.

[0051] By measuring the parameters, the observed discharge attitude of the target electrode relative to the workpiece, i.e. the second discharge state, can be obtained. After calculating the first eccentricity value based on the second discharge state, it can be determined whether the target electrode is qualified. Only qualified electrodes will be automatically controlled in the subsequent process.

[0052] Based on the first change relationship, the change relationship between the set relative position relationship between the electrode and the target workpiece and the measured relative position relationship between the electrode and the target workpiece can be obtained. Then, combined with the measured first eccentricity value, the second eccentricity value is obtained after correction. Subsequently, the discharge parameter setting value of the side discharge electrode is further adjusted to obtain the first discharge program to control the side electrode. Attached Figure Description

[0053] Figure 1 This is a first flowchart illustrating an embodiment of an automatic control method for side discharge electrodes in this application;

[0054] Figure 2 This is a second flowchart illustrating an embodiment of an automatic control method for side discharge electrodes in this application.

[0055] Figure 3 This is a third flowchart illustrating an embodiment of an automatic control method for side discharge electrodes in this application. Detailed Implementation

[0056] The following combination Figures 1-3 This application will be described in further detail below.

[0057] Reference Figure 1 An embodiment of an automatic control method for a side discharge electrode includes the following steps:

[0058] S101. Collect the first discharge parameters when the side discharge electrode discharges. The first discharge parameters include the first discharge coordinates, the first discharge orientation, the first discharge matrix, the first C-angle quadrant value, and the spark position.

[0059] Among them, discharge coordinates refer to the position coordinates of the discharge point, including coordinate values ​​of the X, Y, and Z axes, used to determine the specific position of the discharge point on the workpiece. These coordinate values ​​are calculated by the CNC system or other control equipment based on the machining drawings or CAD models, and are used to accurately locate and control the discharge position of the electrode on the workpiece surface. Discharge orientation usually refers to the relative position and orientation of the discharge electrode and the workpiece surface. The distance between the discharge electrode and the workpiece surface is an important factor in determining whether the discharge machining can proceed normally. The angle between the discharge electrode and the workpiece surface also affects the discharge effect, and the discharge direction during discharge also affects the machining effect. Matrix value refers to the series of discharge points formed by controlling the discharge position between the electrode and the workpiece during the machining process, thereby realizing the removal and machining of workpiece material. The discharge matrix can be used to describe the movement trajectory of the electrode on the machining surface and the distribution of discharge. C-angle refers to the angle between the discharge angle on the electrode and the electrode axis. According to the size of the angle, C... The angular quadrant is divided into four quadrants, and the angles dividing the four quadrants are the same as those dividing the four quadrants in the rectangular coordinate system. The set and measured values ​​of the electrode's C-angle and the C-angle quadrant are very important in electrical discharge machining (EDM), as they can be used to control the discharge angle and position, thereby achieving precise machining. In EDM, the spark position refers to the actual discharge position between the electrode and the workpiece during discharge. Controlling the accuracy of the spark position is crucial for machining quality and precision.

[0060] Using this embodiment, the desired discharge posture of the target electrode relative to the workpiece, i.e., the first discharge state, can be obtained from the first discharge parameters. The parameters such as the first discharge coordinates, the first discharge orientation, the first discharge matrix, and the first C-angle quadrant value can comprehensively represent the relative position between the electrode and the target workpiece. By adding the spark position to the parameters, the side electrode can be accurately controlled to process the workpiece after the position of the side electrode is determined, in combination with the spark position.

[0061] S102. Calculate the first discharge state when the side discharge electrode discharges based on the first discharge parameters.

[0062] Among them, reference Figure 2 The steps for calculating the first discharge state during discharge by the side discharge electrode include:

[0063] S1021. Obtain the first reference plane of the side discharge electrode and create a first Z vector perpendicular to the first reference plane;

[0064] S1022. Obtain the X-axis of the EDM machine corresponding to the side discharge electrode and create the first X vector;

[0065] S1023. Calculate the first Y vector of the side discharge electrode based on the first Z vector and the first X vector;

[0066] S1024. Calculate the value of the first matrix based on the first X vector, the first Y vector, and the first Z vector;

[0067] S1025. Calculate the first discharge state based on the first matrix value and the first C-angle quadrant value;

[0068] Using this embodiment, the uniqueness of the desired discharge posture of the target side discharge electrode can be determined. It should be noted that the direction of the Y vector is the processing direction of the side discharge electrode. Each electrode has a unique C angle, and the C angle is located in one of the four quadrants relative to the center of the electrode. The uniqueness of the discharge posture of the target side discharge electrode can be determined by the electrode axis represented by the Y vector and the electrode axis represented by the C angle.

[0069] The matrix value of an electrode typically refers to the method of representing the electrode's discharge orientation. This representation method is commonly used in multi-axis CNC electrical discharge machining tools to describe the rotational attitude of the electrode relative to the workpiece. Generally, the discharge orientation of the electrode can be represented by Euler angles or quaternions. In both of these methods, the matrix value can be used to calculate the specific discharge orientation of the electrode. In this embodiment, the first matrix value represents the matrix value calculated from the expected values ​​of each reference. The first X vector, the first Y vector, and the first Z vector are all preset expected values.

[0070] S103. Acquire measurement parameters and calculate the first eccentricity value. Specifically, acquire the measurement parameters when measuring the side discharge electrode and filter the measurement parameters. Calculate the first eccentricity value of the side discharge electrode based on the measurement parameters. The measurement parameters include the second discharge matrix and the second C-angle quadrant value.

[0071] By using this embodiment, filtering the measurement parameters can reduce the measurement error generated when measuring the position of the side discharge electrode, thereby further improving the processing accuracy. Through the measurement parameters, the observed discharge posture of the target electrode relative to the workpiece, i.e., the second discharge state, can be obtained. After calculating the first eccentricity value based on the second discharge state, it can be determined whether the target electrode is qualified. Only qualified electrodes will be automatically controlled in the subsequent process. According to the actual situation, an appropriate tolerance range can be set to determine whether the electrode is qualified. The first eccentricity value is the eccentricity value of the target side discharge electrode itself.

[0072] S104. Calculate the second discharge state during the side discharge electrode measurement based on the measurement parameters;

[0073] Among them, reference Figure 3 The steps for calculating the second discharge state during side discharge electrode measurement include:

[0074] S1041. Obtain the second reference plane of the side discharge electrode and create a second Z vector perpendicular to the second reference plane;

[0075] S1042. Obtain the X-axis of the EDM machine corresponding to the side discharge electrode and create a second X vector;

[0076] S1043. Calculate the second Y vector of the side discharge electrode based on the second Z vector and the second X vector;

[0077] S1044. Calculate the value of the second matrix based on the second X vector, the second Y vector, and the second Z vector;

[0078] S1045. Calculate the second discharge state based on the second matrix value and the second C-angle quadrant value;

[0079] By using this embodiment, the uniqueness of the target electrode discharge attitude measurement value observed by the measuring device can be determined. The parameters such as the second X vector and the second Z vector are all corresponding measurement values. Then, the second matrix value calculated from the measurement value is obtained to determine the second discharge state, that is, the actual discharge state.

[0080] S105. Calculate the first change relationship based on the first discharge state and the second discharge state;

[0081] By using this embodiment, based on the first change relationship, the change relationship between the set relative positional relationship between the electrode and the target workpiece and the measured relative positional relationship between the electrode and the target workpiece can be obtained.

[0082] S106. Calculate the second eccentricity value of the side discharge electrode based on the first eccentricity value and the first change relationship;

[0083] In this embodiment, a second eccentricity value is obtained after correction based on the measured first eccentricity value, so as to further adjust the discharge parameter setting value of the side discharge electrode. The second eccentricity value refers to the eccentricity value of each expected value of the side discharge electrode relative to the actual measured value.

[0084] S107. Generate the first discharge procedure for the side discharge electrode based on the second eccentricity value.

[0085] Using this implementation method, a first discharge program is automatically generated, which can initially realize the automatic control of the side discharge electrode to perform side discharge processing on the workpiece.

[0086] S108. Collect the first clamping parameters of the clamp when the side discharge electrode discharges, and calculate the first clamping state of the clamp when the side discharge electrode discharges based on the first clamping parameters.

[0087] Using this embodiment, the set value of the relative positional relationship between the fixture and the workpiece is obtained.

[0088] S109. Collect the second clamping parameters of the clamp when measuring the side discharge electrode, and calculate the second clamping state of the clamp when measuring the side discharge electrode based on the second clamping parameters.

[0089] Using this embodiment, it is possible to obtain the measured value of the relative positional relationship between the fixture and the workpiece.

[0090] S1010. Calculate the third eccentricity value of the fixture based on the first clamping state, the second clamping state, and the first change relationship.

[0091] Using this embodiment, a compensation value for the relative positional relationship between the fixture and the workpiece can be obtained. The third eccentricity value is the eccentricity value of each expected value of the side discharge electrode relative to the actual measured value after taking into account the measurement error value of the fixture.

[0092] S1011. Update the first discharge program according to the third eccentricity value to obtain the second discharge program;

[0093] This implementation method compensates for the deviation between the set value and the measured value of the fixture, thereby further improving the machining accuracy.

[0094] In summary, the beneficial effects of the implementation method of the automatic control method for side discharge electrodes in this application include not only:

[0095] The desired discharge attitude of the target electrode relative to the workpiece, i.e. the first discharge state, can be obtained from the first discharge parameters. The first discharge coordinates, first discharge orientation, first discharge matrix, and first C-angle quadrant value can comprehensively represent the relative position between the electrode and the target workpiece.

[0096] By measuring the parameters, the observed discharge attitude of the target electrode relative to the workpiece, i.e. the second discharge state, can be obtained. After calculating the first eccentricity value based on the second discharge state, it can be determined whether the target electrode is qualified. Only qualified electrodes will be automatically controlled in the subsequent process.

[0097] Based on the first change relationship, the change relationship between the set relative position relationship between the electrode and the target workpiece and the measured relative position relationship between the electrode and the target workpiece can be obtained. Then, combined with the measured first eccentricity value, the second eccentricity value is obtained after correction. Subsequently, the discharge parameter setting value of the side discharge electrode is further adjusted to obtain the first discharge program to control the side electrode.

[0098] It also includes: compensating for the deviation between the fixture's set value and the measured value, in order to further improve machining accuracy;

[0099] By filtering, the measurement error generated when measuring the position of the side discharge electrode can be reduced, thereby further improving the processing accuracy;

[0100] By adding the spark position to the parameters, once the position of the side electrode is determined, the side electrode can be accurately controlled to process the workpiece.

[0101] This application also discloses an embodiment of an automatic control method for side discharge electrodes.

[0102] This application also discloses an embodiment of an automatic control device for side discharge electrodes.

[0103] An automatic control device for side discharge electrodes, comprising:

[0104] The acquisition module is used to acquire the first discharge parameters when the side discharge electrode discharges. The first discharge parameters include the first discharge coordinates, the first discharge orientation, the first discharge matrix, and the first C-angle quadrant value.

[0105] The first calculation module is used to calculate the first discharge state when the side discharge electrode discharges based on the first discharge parameters.

[0106] The acquisition module is used to acquire the measurement parameters during the side discharge electrode measurement and filter the measurement parameters. Based on the measurement parameters, the first eccentricity value of the side discharge electrode is calculated. The measurement parameters include the second discharge matrix and the second C-angle quadrant value.

[0107] The second calculation module is used to calculate the second discharge state during the side discharge electrode measurement based on the measurement parameters.

[0108] The third calculation module is used to calculate the first change relationship based on the first discharge state and the second discharge state;

[0109] The fourth calculation module is used to calculate the second eccentricity value of the side discharge electrode based on the first eccentricity value and the first change relationship;

[0110] The program generation module is used to generate the first discharge program for the side discharge electrode based on the second eccentricity value.

[0111] The automatic control device for side discharge electrodes in this application embodiment can implement any of the above-mentioned methods for automatic control of side discharge electrodes, and the specific working process of each module in the automatic control device for side discharge electrodes can be referred to the corresponding process in the above-mentioned method embodiment.

[0112] This application also discloses a computer device. The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the automatic control method for the side discharge electrodes as described above.

[0113] This application also discloses a computer-readable storage medium.

[0114] 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 computer program to implement the automatic control method for the side discharge electrodes as described above.

[0115] 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 automatic control method for a side discharge electrode, characterized in that, include: The first discharge parameters are collected when the side discharge electrode discharges. The first discharge parameters are expected values ​​and include the first discharge coordinates, the first discharge orientation, the first discharge matrix, and the first C-angle quadrant value. The discharge occurs when the relative positional relationship between the electrode and the target workpiece is set. Based on the first discharge parameters, calculate the desired first discharge state of the side discharge electrode; The measurement parameters during the side discharge electrode measurement are obtained, and the first eccentricity value of the side discharge electrode is calculated based on the measurement parameters. The measurement parameters include the second discharge matrix and the second C-angle quadrant value. The first eccentricity value is the eccentricity value of the target side discharge electrode itself. Based on the measurement parameters, calculate the second discharge state during the side discharge electrode measurement; Based on the first discharge state and the second discharge state, a first change relationship is calculated; based on the first change relationship, the change relationship between the set relative positional relationship between the electrode and the target workpiece and the measured relative positional relationship between the electrode and the target workpiece can be obtained. Based on the first eccentricity value and the first change relationship, the second eccentricity value of the side discharge electrode is calculated. The second eccentricity value refers to the eccentricity value of each expected value of the side discharge electrode relative to the actual measured value. Based on the second eccentricity value, a first discharge procedure for the side discharge electrode is generated; The steps for calculating the desired first discharge state of the side discharge electrode include: Obtain the first reference plane of the side discharge electrode, and create a first Z vector perpendicular to the first reference plane; Obtain the X-axis of the EDM machine corresponding to the side discharge electrode and create the first X vector; Based on the first Z vector and the first X vector, calculate the first Y vector of the side discharge electrode; wherein, the direction of the Y vector is the processing direction of the side discharge electrode; The first matrix value is calculated based on the first X vector, the first Y vector, and the first Z vector; the first matrix value represents a matrix value used to describe the rotational attitude of the electrode relative to the workpiece, calculated from the expected values ​​of each reference. Based on the first matrix value and the first C-angle quadrant value, the first discharge state is calculated using the electrode axis represented by the Y vector and the electrode axis represented by the C-angle position. The step of calculating the second discharge state during side discharge electrode measurement includes: Obtain the second reference plane of the side discharge electrode, and create a second Z vector perpendicular to the second reference plane; Obtain the X-axis of the EDM machine corresponding to the side discharge electrode, and create a second X vector; Calculate the second Y vector of the side discharge electrode based on the second Z vector and the second X vector; Calculate the value of the second matrix based on the second X vector, the second Y vector, and the second Z vector; The second discharge state is calculated based on the second matrix value and the second C-angle quadrant value.

2. The automatic control method for a side discharge electrode according to claim 1, characterized in that: The first discharge parameter also includes the spark position of the side discharge electrode.

3. The automatic control method for a side discharge electrode according to claim 1, characterized in that, Also includes: The first clamping parameters of the clamp are collected when the side discharge electrode discharges, and the first clamping state of the clamp is calculated based on the first clamping parameters when the side discharge electrode discharges. The second clamping parameters of the clamp are collected during the side discharge electrode measurement, and the second clamping state of the clamp is calculated based on the second clamping parameters. Calculate the third eccentricity value of the clamp based on the first clamping state, the second clamping state, and the first change relationship; Based on the third eccentricity value, the first discharge program is updated to obtain the second discharge program.

4. The automatic control method for a side discharge electrode according to any one of claims 1 to 3, characterized in that: Before calculating the first eccentricity value of the side discharge electrode based on the measurement parameters, the measurement parameters are filtered.

5. An automatic control device for a side discharge electrode, characterized in that, An automatic control method for a side discharge electrode according to any one of claims 1 to 4 includes: The acquisition module is used to acquire the first discharge parameters of the side discharge electrode when it is in a preset processing position relationship. The first discharge parameters are expected values ​​and include the first discharge coordinates, the first discharge orientation, the first discharge matrix and the first C-angle quadrant value. The first calculation module is used to calculate the desired first discharge state of the side discharge electrode based on the first discharge parameters. The acquisition module is used to acquire the measurement parameters during the measurement of the side discharge electrode, and calculate the first eccentricity value of the side discharge electrode based on the measurement parameters, wherein the measurement parameters include the second discharge matrix and the second C-angle quadrant value. The second calculation module is used to calculate the second discharge state during the side discharge electrode measurement based on the measurement parameters. The third calculation module is used to calculate the first change relationship based on the first discharge state and the second discharge state; The fourth calculation module is used to calculate the second eccentricity value of the side discharge electrode based on the first eccentricity value and the first change relationship; The program generation module is used to generate a first discharge program for the side discharge electrode based on the second eccentricity value.

6. A computer device, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the automatic control method for the side discharge electrode as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that: The computer program is stored and can be loaded by a processor and executed as described in any one of claims 1-4 for automatic control of the side discharge electrode.