A method, device, terminal equipment and medium for improving electrode processing precision
By determining the normal vector of the specified surface of the electrode tooth, obtaining the probe path, and calculating the distance difference between the actual position points, the problems of electrode tooth position error and inaccurate swing gap are solved, thus improving the accuracy and consistency of electrode processing.
Patent Information
- Application Number
- CN202311282264.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2043-09-28
AI Technical Summary
In existing electrode electrical discharge machining, inconsistencies in electrode tooth position lead to decreased machining accuracy, and the inaccurate calculation method for the oscillation clearance also affects machining accuracy.
By determining the normal vector of a specified surface of the electrode tooth, the probe path is obtained and the actual position point is calculated. The correction value is calculated using the distance difference, and the electrode machining parameters are corrected to improve accuracy.
It improves the precision of electrode processing, reduces the probability of rework, and enhances the precision and consistency of electrical discharge machining.
Smart Images

Figure CN117206607B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of electrode discharge machining, and particularly relates to a method and device for improving electrode machining precision, a terminal device and a medium. BACKGROUND
[0002] Generally, in electrode discharge machining, a slight deviation of the electrode tooth position can have a significant negative impact on machining precision, and therefore a corrected electrode tooth position needs to be used as an input parameter for machining.
[0003] One direct idea is to correct the position of the entire electrode through an electrode reference table. If there is only one electrode tooth on the electrode reference table, this method can improve the machining precision of the electrode tooth. However, for the more common case of multiple electrode teeth on the electrode reference table, the errors of the electrode teeth are not completely consistent, and the overall position correction method cannot solve the machining error caused by the irregular deviation of the electrode tooth.
[0004] In addition, after electrode machining is completed, the swing gap needs to be modified. The existing swing gap calculation method directly calculates the average value regardless of the direction, resulting in low precision and large error.
[0005] Therefore, how to provide a method for improving electrode machining precision to solve the problem of production precision decline caused by the deviation of the electrode tooth position and the problem of the swing gap after electrode machining is completed is a big problem that needs to be overcome in the field. SUMMARY
[0006] The embodiments of the application provide a method and device for improving electrode machining precision, a terminal device and a medium, which can solve the technical problem of large error of the actual machining position point of the electrode tooth.
[0007] In a first aspect, the embodiments of the application provide a method for improving electrode machining precision, which includes: determining a probe path according to a normal vector of a specified surface of an electrode tooth, and obtaining at least one actual position point of the electrode tooth on the specified surface based on the probe path; calculating a correction value in a specified direction according to a distance difference of the actual position point and a theoretical position point in the specified direction, the theoretical position point corresponding to the actual position point one by one; correcting an electrode machining parameter by using the correction value to perform a preset machining task, the electrode machining parameter including the actual position point.
[0008] The actual position points of the electrode teeth are acquired by the probe path, the position deviation of a specific electrode tooth caused by possible errors such as manufacturing errors of the electrode tooth, wear errors of the electrode tooth, and the like is obtained, and on this basis, the correction value in the specified direction is obtained through the distance difference between the theoretical position point and the actual position point in the specified direction, so that the deviation between the theoretical position and the actual position in the direction that needs to be corrected, that is, the specified direction, is considered, the correction action is more targeted in the direction, is adapted to the case that the position errors of the electrode teeth in different directions have different influences on the machining task accuracy, and the accuracy improvement of the machining task can be better achieved.
[0009] In a possible implementation mode of the first aspect, the step of determining the probe path according to the normal vector of the specified surface of the electrode tooth comprises: constructing the probe path with a path constraint, the path constraint being that the direction from the starting point of the probe path to the ending point of the probe path is parallel and opposite to the direction of the normal vector.
[0010] By limiting the positional relationship between the first direction and the normal vector, that is, when the included angle between the probe path and the normal vector is 0, the accuracy of the actual position point acquired by the probe is higher, and thus the final test result is more accurate, and the accuracy of the electrode machining can be further improved.
[0011] In a possible implementation mode of the first aspect, the specified direction at least includes a first direction and a second direction; the step of calculating the correction value in the specified direction according to the distance difference between the actual position point and the theoretical position point in the specified direction comprises: determining that the normal vector is parallel to the first direction, then calculating the correction value in the first direction according to the distance difference between the actual position point and the theoretical position point in the first direction, and filtering the distance difference between the actual position point and the theoretical position point in the second direction.
[0012] By limiting the positional relationship between the first direction and the normal vector, the method for calculating the correction value when the specified surface is a straight surface is indirectly limited.
[0013] In a possible implementation mode of the first aspect, the specified surface comprises a specified surface set, the specified surface set being a specified surface in which the normal vector is parallel to the first direction; the step of calculating the correction value in the specified direction according to the distance difference between the actual position point and the theoretical position point in the specified direction comprises: calculating the correction value in the first direction according to the average value of the distance difference between the actual position point and the theoretical position point in the first direction on the specified surface set, and filtering the distance difference between the actual position point and the theoretical position point in the second direction.
[0014] The accuracy of the electrode tooth correction position can be further improved by calculating the correction value by calculating the two relatively arranged parallel planes according to the present embodiment.
[0015] In a possible implementation of the first aspect, the specified direction includes a first direction and a second direction which are orthogonal to each other, the normal vector is denoted as (M, N), M is the projection length of the normal vector in the first direction, N is the projection length of the normal vector in the second direction, Max is the maximum value of M and N; the step of calculating the correction value in the specified direction according to the distance difference between the actual position point and the theoretical position point in the specified direction includes: calculating the correction value in the Max direction according to the distance difference between the actual position point and the theoretical position point in the Max direction, and filtering the distance difference between the actual position point and the theoretical position point in other directions; wherein the Max direction refers to the direction of the projection length represented by the maximum value of M and N.
[0016] By judging the direction in which the projection of the distance between the actual position point and the theoretical position point is larger, the correction value in the direction is calculated to solve the position correction problem in the case of the electrode tooth being a bevel, so that the position of the electrode tooth can also be corrected when the bevel, and the application range of the method is improved.
[0017] In a possible implementation of the first aspect, the electrode processing parameter is the discharge position of the electrode tooth; the discharge point position parameter of the electrode tooth is corrected by using the correction value to perform a preset machining task based on the electrode tooth.
[0018] In a possible implementation of the first aspect, the electrode processing parameter is the discharge machining position; the swing gap of the electrode tooth is calculated by using the correction value, and the swing gap is output to a discharge program to perform an electrode machining task.
[0019] In a possible implementation of the first aspect, the specified direction includes a first direction, a second direction and a third direction which are orthogonal to each other, the normal vector is denoted as (I, J, K) in a coordinate form, I is a projection length of the normal vector in the first direction, J is a projection length of the normal vector in the second direction, and K is a projection length of the normal vector in the third direction, and Max is the maximum value among I, J and K; the step of calculating the correction value in the specified direction according to the distance difference between the actual position point and the theoretical position point in the specified direction includes: calculating the correction value in the Max direction according to the distance difference between the actual position point and the theoretical position point in the Max direction, and filtering the distance difference between the actual position point and the theoretical position point in other directions; wherein the Max direction refers to the direction of the projection length represented by the maximum value among I, J and K.
[0020] The third direction is introduced in this implementation, so as to solve the problem of position correction of the electrode tooth in a three-dimensional space, that is, how to calculate the position correction of the electrode tooth when the specified surface of the electrode tooth has projections in the first direction and the second direction, the second direction and the third direction, and the first direction and the third direction, and the application range of the method is further improved.
[0021] In a possible implementation of the first aspect, the Max directions of the actual position points on the second specified surface set are classified into the first direction, the second direction and the third direction; the distance differences between the actual position points and the theoretical position points in the Max direction are calculated respectively; and the average values of the total distance differences in each class are calculated respectively.
[0022] In this implementation, when multiple specified surfaces are inclined surfaces, the correction value of the position of the electrode tooth is calculated by classification and recalculation of the average value, so as to improve the position progress of the electrode tooth, and then the machining precision of the electrode is improved.
[0023] In a second aspect, the embodiments of the present application provide an operation device of a method for improving the machining precision of an electrode, including: an acquisition module configured to determine a probe path according to a normal vector of a specified surface of an electrode tooth, and acquire at least one actual position point of the electrode tooth on the specified surface based on the probe path; a correction module configured to calculate a correction value in a specified direction according to a distance difference between the actual position point and a theoretical position point in the specified direction, the theoretical position point corresponding to the actual position point in one-to-one manner; and an execution module configured to correct a discharge position parameter of the electrode tooth by using the correction value, so as to perform a preset machining task based on the electrode tooth, the discharge position parameter including the actual position point.
[0024] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of the above aspects when executing the computer program.
[0025] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, comprising: the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method in any one of the above embodiments.
[0026] It can be understood that the beneficial effects of the above-mentioned second to fourth aspects can be referred to the related description in the above-mentioned first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0028] Figure 1 is a schematic diagram of the overall structure provided by the present application;
[0029] Figure 2 is a schematic diagram of an embodiment provided by the present application;
[0030] Figure 3 is a schematic diagram of another embodiment provided by the present application;
[0031] Figure 4 is a schematic diagram of still another embodiment provided by the present application;
[0032] Figure 5 is a schematic diagram of yet another embodiment provided by the present application.
[0033] In the drawings, the reference signs are as follows:
[0034] 100 - electrode reference table; 200 - electrode tooth. DETAILED DESCRIPTION
[0035] In the following description, specific details are set forth in order to provide a thorough understanding of embodiments of the present application. However, persons of ordinary skill in the art will readily recognize that embodiments of the present application can be practiced without these specific details, and that the present application is not limited to the embodiments described. In other instances, well-known structures, devices, circuits, and methods have not been described in detail in order to avoid obscuring the description of the present application.
[0036] It should be understood that the word "comprising" when used in the specification and claims of this application indicates the existence of the stated features, integers, steps, or components but does not preclude the presence or addition of one or more other features, integers, steps, components, or groups thereof.
[0037] It should also be understood that the term "and / or" when used in the specification and in the claims, means any one and / or all possible combinations of one or more of the associated listed items.
[0038] In addition, the description in the specification and the appended claims of this application use the term "first", "second", "third", etc. only to distinguish different features, and do not imply or suggest relative importance.
[0039] The use of the terms "one embodiment", "some embodiments", "one implementation", "some implementations", etc., in the description and the claims of this application means that the particular feature, structure, or characteristic following the term is included in at least one embodiment of the present application. Thus, the appearances of "in one embodiment" or "in some embodiments" or "in one implementation" or "in some implementations" at different places in the specification are not necessarily all referring to the same embodiment, unless otherwise specifically indicated. Furthermore, the terms "including", "containing", "having", and variants thereof, mean "including but not limited to" unless otherwise specifically indicated.
[0040] Reference Figure 1In a generally feasible electrode discharge machining, the center point of the electrode reference table 100 is determined as the basis for processing the running position by means of the centering number or the single-side number, for example, the electrode reference table 100 is subjected to the centering number: the electrode reference table 100 has a first side and a second side arranged oppositely (assuming that the first side and the second side are parallel to the Y axis), the probe first collides with the first side, the center point of the probe is zeroed, and then the probe collides with the second side, and the coordinate in the X axis direction is recorded. The coordinate in the X axis direction obtained is divided by 2 to obtain the coordinate of the center position point in the X axis direction. In this way, the center position point of the electrode reference table 100 is calculated respectively. However, in the connector type electrode, there are multiple running positions (i.e., electrode teeth 200) on one electrode reference table 100. If only the center of the electrode reference table 100 is used as the basis for the running position, the movement between different electrode teeth 200 in the first direction X and the second direction Y (i.e., the X axis and the Y axis in the general coordinate system) according to the distance given in the electrode design drawing is not accurate. If the offset distance is not accurate, the processing error of the electrode teeth 200 is affected, which reduces the processing precision. In order to reduce the offset error and improve the processing precision, the method provided in the present application can correct the position of the electrode teeth 200 to correct the processing position point of the electrode teeth 200.
[0041] In addition, in the industry, the results after electrode processing are often inconsistent, for example: the actual detection results are-0.046 and-0.022. The current industry generally has relatively high requirements for mold precision (the precision is within 0.01), and it is difficult to meet the precision requirements with this electrode result. If the traditional method is used, the electrode needs to be repaired, and the actual detection result is within the tolerance range of 0.01, which can be used for electric spark machining. In order to reduce the offset error and improve the processing precision, the method provided in the present application can correct the processing position point of the electrode teeth 200.
[0042] The first application scenario of the method is to correct the obtained correction value to the processing position of the electrode teeth.
[0043] The second application scenario of the method is to decompose the original result into Xgap in the first direction and Ygap in the second direction, and output the correct parameters in the discharge machining after decomposition. For example, the global average value Rgap of all electrode teeth is used when calculating the waist swing gap value. After the method provided in the present application is used, the swing gap value is decomposed into Xgap in the first direction and Ygap in the second direction, which improves the discharge machining precision and reduces the probability of repair.
[0044] In one embodiment of the present application, a method for improving the precision of electrode processing is provided, comprising: determining a probe path according to the normal vector of a specified surface of an electrode tooth 200, and obtaining at least one actual position point of the electrode tooth 200 on the specified surface based on the probe path; calculating a correction value in a specified direction according to the distance difference between the actual position point and a theoretical position point in the specified direction, the theoretical position point corresponding to the actual position point one by one; and correcting the electrode processing parameters using the correction value to perform the processing task.
[0045] The electrode tooth 200 refers to a plurality of processed objects arranged on the electrode reference table 100. The shape of the electrode tooth 200 can be a cuboid, a cube, a polygonal prism, a cylinder, or the like, and is not specifically limited herein.
[0046] The normal vector refers to a vector perpendicular to the specified surface and pointing outward from a point on the surface of the specified surface.
[0047] The probe refers to a component arranged above the electrode reference table 100 (above refers to the height direction relative to the electrode reference table 100) and used for electrical discharge machining of the electrode tooth 200. The probe is generally a cylindrical component that obtains the actual position point of the specified surface of the electrode tooth 200 and performs electrode processing on the electrode tooth 200.
[0048] The specified surface refers to the surface of the electrode tooth 200 currently to be processed. The specified surface can be a straight surface, an inclined surface, or a curved surface, and is not specifically limited herein.
[0049] The actual position point refers to a position point actually obtained on the specified surface of the electrode tooth 200 by the probe. The actual position point obtained on the specified surface can be one or multiple, and multiple actual position points are generally used for calculation. The more actual position points used, the higher the precision of the position correction of the electrode tooth 200, and the higher the processing precision.
[0050] The theoretical position point is obtained by software, and each theoretical position point corresponds to one actual position point in actual operation. The theoretical position point is a point obtained from the system software that has been set. Since there is a deviation between the actual electrode tooth 200 position and the theoretical electrode tooth 200 position, the obtained theoretical position point and the actual position point can not be completely consistent. The method of the present embodiment can solve the actual deviation problem between the actual position point and the theoretical position point, thereby accurately processing the position of the electrode tooth 200.
[0051] The probe path refers to the path along which the probe travels. It can be parallel to the normal vector or intersect the normal vector at an angle. This is not a limitation here, as long as the probe can obtain the actual position point on the specified surface of the electrode tooth 200 along the probe path. It should be noted that the angle between the probe path and the normal vector will affect the accuracy of the actual position point obtained. The smaller the angle, the smaller the error in the actual position point obtained.
[0052] The designated direction refers to the direction in which the designated surface can be projected, which can be one direction or multiple directions, and is not specifically limited here. In this embodiment, the designated direction is described by taking one direction as an example.
[0053] The correction value is the value that needs to be corrected relative to the actual position. By applying the correction value to the actual position, the position accuracy of the electrode tooth 200 can be improved. For example, if an actual position point on a specified surface of an electrode tooth 200 is obtained in a specified direction, the correction value is the distance difference between the actual position point and the theoretical position point in the specified direction.
[0054] In this embodiment, the actual position point is taken along the normal vector, so that the accuracy of the point selection is higher, which has two application scenarios:
[0055] First, it is used to improve the position correction of the electrode teeth, specifically: determine the currently positioned processing surface (that is, the specified surface) on the electrode tooth 200, and find the normal vector of the specified surface, and then determine the probe path through the above normal vector. The probe obtains an actual position point on the specified surface of the electrode tooth 200 along the probe path, and calculates the correction value in the specified direction based on the distance difference between the actual position point and the theoretical position point in the specified direction.
[0056] Secondly, it is applied to position correction based on discharge machining, specifically: after the electrode machining is completed, the theoretical position point of the electrode tooth 200 is obtained, the Li Wen position point is output to the detection program, and the physical electrode is detected. After the detection is completed, the actual position point of the electrode tooth 200 is output. The actual position point is obtained along the normal vector of the machining surface (that is, the specified surface) where the electrode tooth 200 is currently positioned, and the correction value in the specified direction is calculated based on the distance difference between the actual position point and the theoretical position point in the specified direction. In this application, the above correction value is the swing value.
[0057] It should be noted that if the position of the electrode tooth 200 on the electrode reference table 100 does not consider the offset in one direction (for example, the Z axis), the offset in the other two directions (for example, the X axis and the Y axis) needs to be considered. When using the method in the embodiment, at least two specified surfaces are used to obtain actual position points on the two specified surfaces, and the offset of the electrode tooth 200 in the two directions (for example, the X axis and the Y axis) is calculated based on the actual position points obtained on the two specified surfaces, so as to correct the position. For example, if applied to the first scenario, the electrode tooth 200 is a right trapezoid, and the actual position points of the right trapezoid are obtained from the two specified surfaces respectively, so as to confirm the offset of the right trapezoid in the X axis and Y axis directions respectively, and the offset of the electrode tooth 200 after the offset is confirmed through the offset in the two directions. If applied to the second scenario, the electrode tooth 200 is a right trapezoid, and the correction value (i.e., the swing value) of the electrode tooth 200 needs to be obtained from the actual position points obtained on the electrode tooth 200, so as to confirm the swing gap in the X axis and Y axis directions respectively when swinging, and the swing gap in the discharge machining is confirmed through the swing in the two directions, that is, the mean value of the total swing gap in the prior art can be replaced by the mean value of the swing gap in different directions, which greatly improves the precision of the discharge machining.
[0058] The method for improving the precision of electrode machining provided in the embodiment has the beneficial effects of the prior art: the correction value is obtained by calculating the distance difference between the actual position point and the theoretical position point in the specified direction, which improves the precision of electrode machining and ignores the values in other irrelevant directions, facilitating statistical calculation.
[0059] In one embodiment provided in the application, the step of determining the probe path according to the normal vector of the specified surface of the electrode tooth 200 comprises: constructing the probe path with path constraints, and the path constraints refer to that the direction from the starting point of the probe path to the ending point of the probe path is parallel and opposite to the direction of the normal vector.
[0060] Suppose that the starting point of the probe path is F point, the ending point of the probe path is F' point, and the direction from the starting point of the probe path to the ending point of the probe path is parallel and opposite to the direction of the normal vector, which has two meanings:
[0061] (1) The direction from the starting point of the probe path to the ending point of the probe path is parallel to the direction of the normal vector. That is, the path constraints make the angle between the probe path and the normal vector be 0, at this time, the data error of the actual position point obtained by the probe is small, which can provide the precision of the actual position point obtained, further reduce the data error obtained, and improve the precision of the electrode tooth 200 electrode machining.
[0062] (2) the direction of the probe path from the starting point to the ending point is opposite to the direction of the normal vector. The direction of the normal vector is the direction from the point F' to the point F, and thus the direction of the probe path is the direction from the point F to the point F'.
[0063] In one embodiment of the present application, the specified directions include at least the first direction X and the second direction Y, and the step of calculating the correction value in the specified direction according to the distance difference between the actual position point and the theoretical position point in the specified direction includes: determining that the normal vector is parallel to the first direction X, and then calculating the correction value in the first direction X according to the distance difference between the actual position point and the theoretical position point in the first direction X, and filtering the distance difference between the actual position point and the theoretical position point in the second direction Y.
[0064] The specified surface is at least a plane, and the first direction X and the second direction Y exist on the plane. The first direction X and the second direction Y intersect, and the included angle therebetween can be an acute angle or a right angle.
[0065] It should be noted that in the present embodiment, "filtering the distance difference between the actual position point and the theoretical position point in the second direction Y" has two meanings:
[0066] One is to ignore the distance difference between the actual position point and the theoretical position point in the second direction Y.
[0067] The other is to delete the distance difference between the actual position point and the theoretical position point in the second direction Y.
[0068] Regardless of which way is adopted, in the present embodiment, only the distance difference between the actual position point and the theoretical position point in the direction parallel to the normal vector is considered.
[0069] It should be noted that in the present embodiment, the normal vector is parallel to the first direction X, and because the normal vector is perpendicular to the specified surface, the specified surface is perpendicular to the first direction X, i.e., the specified surface is a straight surface relative to the first direction X.
[0070] It is worth mentioning that in the present embodiment, only an example in one specified direction of one electrode tooth 200 is considered, and the first direction X is only an example. If the first direction X is replaced by the second direction Y or any other specified direction, the calculation method and implementation theory are the same as or similar to the method provided in the present embodiment, and thus will not be described again.
[0071] In the present embodiment, the method of calculating the correction value is indirectly limited when the specified surface is a straight surface by limiting the positional relationship between the first direction X and the normal vector.
[0072] In order to better understand the correction method and calculation method in the present embodiment, the following example is used to illustrate how to calculate the correction value.
[0073] For example, referring to Figure 2 , the first direction X and the second direction Y are at an angle, and the first direction X is parallel to the normal vector S. A point A is taken on the specified surface, A is an actual position point, and A' is a corresponding theoretical position point. When calculating the distance difference S1 between the actual position point and the theoretical position point, only the distance difference S1 in the first direction X is calculated, and the distance difference in the second direction Y is ignored. Then, the correction value is equal to the distance difference S1 in the first direction X, that is:
[0074] Correction value = S1 (first direction X)
[0075] The actual position point A (1.8, 1, 1.4) is obtained, and the corresponding theoretical position point A' (2, 1, 1.5) is obtained. Then:
[0076] S1 = 1.8 - 2 = -0.2
[0077] Correction value = -0.2
[0078] It is worth mentioning that the first direction X and the second direction Y can not be orthogonal, and the above embodiment uses a Cartesian coordinate system only for ease of description.
[0079] In the first application scenario, the correction value is calculated to obtain the correction value of the electrode tooth position.
[0080] In the second application scenario, the correction value is calculated to obtain the wobble gap, and the calculation method is the same as the above application in the first scenario. After obtaining the correction value, the electrode is processed, the correction value is divided into the first direction to form Xgap, and then the wobble gap in each direction is calculated based on the average value of each direction.
[0081] In an embodiment of the present application, the specified surface includes a specified surface set, and the specified surface set refers to a specified surface whose normal vector is parallel to the first direction X. According to the distance difference between the actual position point and the theoretical position point in the specified direction, the correction value in the specified direction is calculated, which includes: according to the average value of the distance difference between the actual position point and the theoretical position point in the first direction X on the specified surface set, the correction value in the first direction X is calculated, and the distance difference between the actual position point and the theoretical position point in the second direction Y is filtered.
[0082] It should be noted that the set of specified surfaces refers to the specified surfaces parallel to the first direction X, i.e. the set of specified surfaces includes a plurality of specified surfaces parallel to the first direction X, and the normal vector is perpendicular to the specified surface, so the set of specified surfaces refers to a plurality of specified surfaces perpendicular to the first direction X, i.e. all the specified surfaces in the set of specified surfaces are straight surfaces (the specified surface is perpendicular to the first direction X). Because the set of specified surfaces can include two or more specified surfaces, when calculating the correction value, one or more actual position points on the plurality of specified surfaces in the set of specified surfaces need to be obtained, and the theoretical position points corresponding to the actual position points are obtained through software, and the correction value is the distance difference between the actual position points and the theoretical position points on each specified surface in the set of specified surfaces, and the distance difference is divided by the number of specified surfaces in the set of specified surfaces to obtain the average value of the distance difference, i.e. the correction value.
[0083] It should be noted that only the first direction X is exemplified in the embodiment, and the same applies to the second direction Y or any other specified direction.
[0084] In order to explain more clearly, the following is an example of the embodiment.
[0085] For example, referring to Figure 3 , the set of specified surfaces includes two specified surfaces, and both of the two specified surfaces are perpendicular to the first direction X. One actual position point is obtained in each of the two specified surfaces, which are B and C respectively, and the theoretical position points corresponding to the actual position points are B' and C' respectively. The distance difference S3 between B and B' in the first direction X is calculated, the distance difference S2 between C and C' in the first direction X is calculated, and the distance difference values of B' and C' in the second direction Y are filtered respectively, and then the correction value is:
[0086] R=(S2+S3) / 2
[0087] The obtained actual position point B is (1.8, 1, 1.4), and the corresponding theoretical position point B' is (2, 1, 1.5), so:
[0088] S3=1.8-2=-0.2
[0089] The obtained actual position point C is (0.1, 0.4, 0.8), and the corresponding theoretical position point C' is (0, 0.5, 0.8), so:
[0090] S2=0.1-0=0.1
[0091] The correction value=(S3+S2) / 2=(0.1-0.2) / 2=-0.05
[0092] In the embodiment, the accuracy of the correction position of the electrode tooth 200 can be further improved by calculating the correction value through two oppositely arranged parallel planes.
[0093] The correction value is calculated in the first application scenario to obtain the correction position of the electrode tooth.
[0094] The correction value is calculated in the second application scenario to obtain the swing gap, and the calculation method is the same as that applied in the first scenario. After obtaining the correction value, the electrode is processed, the correction value is divided into the first direction to form Xgap, and then the swing gap in each direction is calculated based on the average value of each direction.
[0095] In one embodiment of the application, the specified direction includes a first direction X and a second direction Y which are orthogonal to each other, the normal vector is denoted as (M, N), M is the projection length of the normal vector in the first direction X, N is the projection length of the normal vector in the second direction Y, and Max is the maximum value of M and N. The step of calculating the correction value in the specified direction according to the distance difference between the actual position point and the theoretical position point in the specified direction includes: calculating the correction value in the Max direction according to the distance difference between the actual position point and the theoretical position point in the Max direction, and filtering the distance difference between the actual position point and the theoretical position point in other directions; wherein, the Max direction refers to the direction of the projection length represented by the maximum value of M and N.
[0096] The first direction X refers to the pointing direction of the X axis or the Y axis or the Z axis in a coordinate system, which is not specifically limited here. For ease of illustration, in the embodiment, the first direction X is taken as an example of the pointing direction of the X axis, which is shown in the specific embodiment.
[0097] The second direction Y refers to the pointing direction of the X axis or the Y axis or the Z axis in a coordinate system, and the direction is different from the first direction X, which is not specifically limited here. For ease of illustration, in the embodiment, the second direction Y is taken as an example of the pointing direction of the Y axis, which is shown in the specific embodiment.
[0098] In the embodiment, there are two cases. One is that the specified surface is a straight surface (the specified surface is perpendicular to the first direction X or the second direction Y) with respect to the first direction X or the second direction Y. The other is that the specified surface is an inclined surface (the specified surface intersects the first direction X or the second direction Y) with respect to the first direction X or the second direction Y.
[0099] If it is determined to be the first case, the calculation method of the correction value is consistent with the above embodiment, which is not described in detail.
[0100] If it is determined to be the second case, the calculation method of the correction value is as follows:
[0101] First, the probe takes a point D on the specified surface, and then the software obtains the corresponding theoretical position point D'. At this time, because it is an inclined surface, DD' will have components in the first direction X or the second direction Y, so the normal vector (M, N) of the specified surface is calculated to calculate the correction value.
[0102] When M>N is determined, Max is M, and the correction value is DD', which is the projection length in the first direction X.
[0103] When M<N is determined, Max is N, and the correction value is DD', which is the projection length in the second direction Y.
[0104] When M=N is determined, Max is N / M, and the correction value is DD', which is the projection length in the second direction Y / first direction X. It should be noted that although Max can be M or N when M=N, only the projection length in one corresponding direction is calculated in the final calculation.
[0105] Referring to Figure 4 , the actual position point D (0.9, 0.4) is obtained, and the corresponding theoretical position point D' (1, 0.5) is obtained. The normal vector of the specified surface is calculated to be (1, 0), and since M>N, the correction value is DD', which is the projection length in the first direction X, that is:
[0106] Correction value = 0.9-1 = -0.1
[0107] In the first application scenario, the correction value is calculated to obtain the correction value of the electrode tooth position.
[0108] In the second application scenario, the correction value is calculated to obtain the swing gap, and the calculation method is the same as the above application in the first scenario. After obtaining the correction value, the electrode processing is completed, the correction value is divided into the first direction to form Xgap, and then the swing gap in each direction is calculated based on the average value in each direction.
[0109] In this embodiment, by judging which direction the distance between the actual position point and the theoretical position point is larger in the projection, the projection in that direction is used to calculate the correction value, so as to solve the position correction problem of the electrode tooth 200 in the case of an inclined surface. Thus, the position of the electrode tooth 200 can also be corrected when it is an inclined surface, thereby improving the application range of the method.
[0110] In one embodiment provided by the application, the specified direction includes a first direction X, a second direction Y and a third direction Z which are orthogonal to each other, and the normal vector is denoted as (I, J, K) in the coordinate form, I is the projection length of the normal vector in the first direction X, J is the projection length of the normal vector in the second direction Y, K is the projection length of the normal vector in the third direction Z, and Max is the maximum value among I, J and K; the step of calculating the correction value in the specified direction according to the distance difference between the actual position point and the theoretical position point in the specified direction includes: calculating the correction value in the Max direction according to the distance difference between the actual position point and the theoretical position point in the Max direction, and filtering the distance difference between the actual position point and the theoretical position point in other directions; wherein the Max direction refers to the direction of the projection length represented by the maximum value among I, J and K.
[0111] The first direction X refers to the direction of the X axis or the Y axis or the Z axis in a coordinate system, which is not specifically limited herein, and in the embodiment, the direction of the X axis is taken as an example for the sake of description.
[0112] The second direction Y refers to the direction of the X axis or the Y axis or the Z axis in a coordinate system, which is different from the first direction X, and in the embodiment, the direction of the Y axis is taken as an example for the sake of description.
[0113] The third direction Z refers to the direction of the X axis or the Y axis or the Z axis in a coordinate system, which is different from the first direction X and the second direction Y, and in the embodiment, the direction of the Z axis is taken as an example for the sake of description.
[0114] In the embodiment, there are two cases:
[0115] In one case, the specified surface is a straight surface (the specified surface is perpendicular to any one of the first direction X, the second direction Y or the third direction Z) with respect to the first direction X, the second direction Y or the third direction Z.
[0116] In the other case, the specified surface is a curved surface (the specified surface intersects the first direction X, the second direction Y or the third direction Z) with respect to the first direction X, the second direction Y or the third direction Z.
[0117] If the first case is determined, the calculation method of the correction value is the same as that in the above embodiment, which is not described herein.
[0118] If the second case is determined, the calculation method of the correction value is as follows:
[0119] First, the probe takes a point E on the specified surface, and then the software obtains the theoretical position point E' corresponding to E. At this time, because the specified surface is an inclined surface, EE' will have components in the first direction X, the second direction Y or the third direction Z, so the normal vector (I, J, K) of the specified surface is calculated to calculate the correction value.
[0120] When it is determined that I≥J and I>K, or I≥J and I≥K, Max is I, and the correction value is the projection length of EE' in the first direction X.
[0121] When it is determined that J≥I and J>K, or J≥I and J>I, Max is J, and the correction value is the projection length of DD' in the second direction Y.
[0122] When it is determined that K≥I and K>J, or K≥I and K>I, Max is K, and the correction value is the projection length of DD' in the third direction Z.
[0123] When it is determined that I=J=K, Max is I / J / K, and the correction value is the projection length of DD' in the first direction X / second direction Y / third direction Z. It should be noted that although I=J=K, Max can be I, J or K, but finally only the projection length in one corresponding direction is calculated.
[0124] In the embodiment, the correction value is only suitable for calculating the position of the electrode tooth in the first application scenario. By introducing the third direction Z, the position correction problem of the electrode tooth 200 in the three-dimensional space is solved, that is, how to calculate the position correction of the electrode tooth 200 when the specified surface of the electrode tooth 200 has projections in the first direction X and the second direction Y, the second direction Y and the third direction Z, and the first direction X and the third direction Z, further improving the application range of the method.
[0125] In one embodiment of the application, the step of calculating the correction value in the specified direction according to the distance difference between the actual position point and the theoretical position point in the specified direction includes: defining the specified surfaces with the same Max direction as the same type of specified surface, and recording the Max direction of the same type of specified surface as the class direction, calculating the average distance difference between the actual position point and the theoretical position point in the class direction on the same type of specified surface, and obtaining the correction value in the class direction.
[0126] In the embodiment, the electrode tooth 200 has multiple specified surfaces, and the specified surfaces are inclined surfaces, so the specified surfaces have projections in the first direction X, the second direction Y and the third direction Z, and therefore, the normal vector (I, J, K) corresponding to each specified surface needs to be calculated first, and the Max corresponding to the specified surface and the Max direction are determined. Because there are multiple specified surfaces, the normal vectors of the multiple specified surfaces are calculated by using the above method, and the Max and the Max direction corresponding to the normal vectors are classified. The Max directions of the first direction X are classified into one category, the Max directions of the second direction Y are classified into one category, and the Max directions of the third direction Z are classified into one category, and the average of the sum of the distance differences in each direction is calculated.
[0127] For more clear explanation, the following is an example of the embodiment.
[0128] For example, referring to Figure 5 , the electrode tooth 200 has two specified surfaces, and the actual position points F and G are obtained on the two specified surfaces, and the actual position points F and G correspond to the theoretical position points F' and G' respectively.
[0129] The actual position point F (0.9, 0, 0.8) is taken in one specified surface of the electrode tooth 200, the corresponding theoretical position point is F' (1, 0, 1), and the corresponding normal vector (I, J, K) is Because the Max is I, in the embodiment, the Max direction is the first direction X. The distance difference S4 of the actual position point F (0.9, 0, 0.8) and the theoretical position point F' (1, 0, 1) in the first direction X is
[0130] The actual position point G (-1.2, 0.5, 1) is taken in another specified surface of the electrode tooth 200, the corresponding theoretical position point is G' (-1, 1, 0.5), and the corresponding normal vector (I, J, K) is Because the Max is I, in the embodiment, the Max direction is the first direction X. The distance difference S5 of the actual position point G (-1.2, 0.5, 1) and the theoretical position point G' (-1, 1, 0.5) in the first direction X is -0.2.
[0131] The correction value = (S3+S4) / 2 = (-1.2-(-1)) / 2 = -0.1
[0132] Therefore, in the embodiment, only -0.1 needs to be corrected in the first direction X, and no correction is needed in the second direction Y and the third direction Z.
[0133] In the embodiment, the correction value is only suitable for the first application scenario to obtain the electrode tooth position correction value. By introducing the first direction X, the second direction Y and the third direction Z, the Max direction can be classified according to the above three directions, and the correction value in each direction is calculated after classification.
[0134] In one embodiment of the application, a plurality of electrode teeth 200 are arranged on the electrode reference table 100, and the position correction of each electrode tooth 200 needs to be performed individually, and the position correction method of each electrode tooth 200 is consistent with the above embodiment, which will not be described again.
[0135] In one embodiment of the application, the correction in the first direction X, the second direction Y and the third direction Z needs to be considered for some scenarios. And it is necessary to ensure that there are X+, X-, Y+, Y-, Z+, Z- straight faces, inclined faces or curved faces in the first direction X, the second direction Y and the third direction Z of each electrode tooth 200. When programming the three-dimensional model detection point, points need to be punched on each face in the X+, X-, Y+, Y-, Z+, Z- direction, the theoretical coordinate system position is stored and marked. When detecting the three-dimensional object, the actual detection point coordinate system position data is submitted for storage, and the center correction value of the electrode tooth 200 is extracted by analyzing and calculating the points in different vector directions; the relative position of the electrode reference and the electrode tooth 200 reference is calculated, and the corresponding XYZ correction value is output; the XY correction value of the electrode tooth 200 is written into the discharge running program; the program is generated for processing, and the workpiece machining precision error caused by the electrode characteristics and the electrode machining precision is corrected.
[0136] For the inclined face, after the Max direction is determined by the normal vector (I, J, K), the straight face consistent with the Max direction should be summed and calculated to obtain the correction value in the Max direction. For example, for Figure 4 , the specified face except the shadow area is calculated, and then the specified face perpendicular to the first direction XX is calculated. First, the normal vector (M, N) of the shadow area is calculated, since M>N, the Max direction of the shadow area is the first direction X, and the distance difference between the actual position point and the theoretical position point is S5. Second, the distance difference between the actual position point and the theoretical position point on the specified face of the first direction X is S6, and then the correction value is:
[0137] Correction value=(S5+S6) / 2
[0138] For the cuboid or square electrode tooth 200, the relative setting of two faces can also be obtained, and the data of one face is recorded as 0, and the distance scheme of the other face relative to the above face is calculated to calculate the deviation of the electrode tooth 200 size.
[0139] For some scenarios, the electrode tooth 200 has a curved surface (not all surfaces can be curved, and a straight surface or an inclined surface needs to be positioned), at this time, the calculation of the point on the curved surface can be performed by referring to the curved normal vector of the actual position point.
[0140] The embodiment of the present application further provides an operation device of a method for improving electrode processing precision, the operation device comprising an acquisition module, a correction module and an execution module, wherein the acquisition module is used for determining a probe path according to a normal vector of a specified surface of the electrode tooth 200, and acquiring at least one actual position point of the electrode tooth 200 on the specified surface based on the probe path; the correction module is used for calculating a correction value in a specified direction according to a distance difference of the actual position point and a theoretical position point in the specified direction, the theoretical position point corresponding to the actual position point in one-to-one manner; and the execution module is used for correcting a discharge position parameter of the electrode tooth 200 by using the correction value, so as to execute a preset processing task.
[0141] It should be noted that the information interaction, execution process and the like between the above devices / units are based on the same concept as the method embodiments of the present application, and the specific functions and the brought technical effects can be referred to the method embodiments part, which will not be repeated here.
[0142] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional units and modules is exemplified, and in actual application, the above functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The above integrated unit can be realized in the form of hardware or software. In addition, the specific names of the functional units and modules are only for mutual distinction, and do not limit the protection scope of the present application. The specific working process of the units and modules in the system can be referred to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0143] The embodiment of the present application further provides a terminal device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the method in the above embodiments when executing the computer program.
[0144] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executable by a processor to implement the steps in each of the above method embodiments.
[0145] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the present application can implement all or part of the processes in the above-mentioned embodiment methods through a computer program to instruct related hardware to complete, and the computer program can be stored in a computer readable storage medium. When the computer program is executed by a processor, the steps of each method embodiment described above can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable files or some intermediate forms. The computer readable medium at least includes any entity or device capable of carrying the computer program code to the photographing device / terminal equipment, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, according to legislation and patent practice, the computer readable medium cannot be an electrical carrier signal and a telecommunication signal.
[0146] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0147] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
Claims
1. A method of improving the accuracy of electrode processing, characterized by, The method comprises the following steps: determining a probe path according to a normal vector of a specified surface of an electrode tooth, and obtaining at least one actual position point of the electrode tooth on the specified surface based on the probe path; calculating a correction value in a specified direction according to a distance difference between the actual position point and a theoretical position point corresponding to the actual position point in the specified direction; correcting an electrode machining parameter by using the correction value to perform a machining task; wherein the specified direction comprises at least a first direction and a second direction; the step of calculating the correction value in the specified direction according to the distance difference between the actual position point and the theoretical position point in the specified direction comprises: if the normal vector is parallel to the first direction, calculating the correction value in the first direction according to the distance difference between the actual position point and the theoretical position point in the first direction, and filtering the distance difference between the actual position point and the theoretical position point in the second direction.
2. The method of claim 1, wherein the electrode is a copper electrode. the step of determining the probe path according to the normal vector of the specified surface of the electrode tooth comprises: constructing the probe path with a path constraint, wherein the path constraint refers to a direction from a starting point of the probe path to an ending point of the probe path being parallel and opposite to a direction of the normal vector.
3. The method of claim 1, wherein the step of applying the voltage to the electrode is performed after the step of applying the voltage to the electrode is performed. the specified surface comprises a specified surface set, wherein the specified surface set refers to a specified surface whose normal vector is parallel to the first direction; the step of calculating the correction value in the specified direction according to the distance difference between the actual position point and the theoretical position point in the specified direction comprises: calculating the correction value in the first direction according to an average value of the distance difference between the actual position point and the theoretical position point in the first direction on the specified surface set, and filtering the distance difference between the actual position point and the theoretical position point in the second direction.
4. The method of improving accuracy of electrode processing according to claim 1 or 2, wherein the specified direction comprises mutually orthogonal first and second directions, the normal vector is denoted as (M, N), M is a projection length of the normal vector in the first direction, N is a projection length of the normal vector in the second direction, and Max is the maximum value of M and N; the step of calculating the correction value in the specified direction according to the distance difference between the actual position point and the theoretical position point in the specified direction comprises: calculating the correction value in the Max direction according to the distance difference between the actual position point and the theoretical position point in the Max direction, and filtering the distance difference between the actual position point and the theoretical position point in other directions; wherein the Max direction refers to a direction of the projection length represented by the maximum value of M and N.
5. The method of claim 4, wherein the step of applying the voltage to the electrode is performed after the step of applying the voltage to the electrode is performed. the electrode machining parameter is a discharge position of the electrode tooth; the discharge position parameter of the electrode tooth is corrected by using the correction value to perform a preset machining task based on the electrode tooth.
6. The method of claim 4, wherein the step of applying the voltage to the electrode is performed after the step of applying the voltage to the electrode is performed. the electrode machining parameter is a discharge machining position; a swing gap of the electrode tooth is calculated by using the correction value, and the swing gap is output to a discharge program to perform an electrode machining task.
7. The method of claim 5, wherein the step of applying the voltage is performed after the step of applying the current. The specified directions include a first direction, a second direction and a third direction which are orthogonal to each other, and the normal vector is denoted as (I, J, K) in a coordinate form, I is a projection length of the normal vector in the first direction, J is a projection length of the normal vector in the second direction, and K is a projection length of the normal vector in the third direction, and Max is the maximum value among I, J and K; The step of calculating the correction value in the specified direction according to the distance difference between the actual position point and the theoretical position point in the specified direction comprises: calculating the correction value in the Max direction according to the distance difference between the actual position point and the theoretical position point in the Max direction, and filtering the distance difference between the actual position point and the theoretical position point in other directions; The Max direction refers to the direction of the projection length represented by the maximum value among I, J and K.
8. The method of claim 6, wherein the step of applying the voltage is performed after the step of applying the current. The step of calculating the correction value in the specified direction according to the distance difference between the actual position point and the theoretical position point in the specified direction comprises: defining a specified surface with the same Max direction as a same type of specified surface, denoting the Max direction of the same type of specified surface as a type direction, calculating the average of the distance difference between the actual position point and the theoretical position point in the type direction on the same type of specified surface, and obtaining the correction value in the type direction.
9. An operating device of a method for improving the accuracy of electrode processing, characterized by, It comprises: an acquisition module configured to determine a probe path according to a normal vector of a specified surface of an electrode tooth, and acquire at least one actual position point of the electrode tooth on the specified surface based on the probe path; a correction module configured to calculate a correction value in a specified direction according to a distance difference between an actual position point and a theoretical position point in the specified direction, the theoretical position point corresponding to the actual position point one by one; an execution module configured to correct an electrode machining parameter by using the correction value, so as to perform a machining task. The specified directions at least include a first direction and a second direction; the correction module is further configured to determine that the normal vector is parallel to the first direction, and then calculate a correction value in the first direction according to a distance difference between the actual position point and the theoretical position point in the first direction, and filter a distance difference between the actual position point and the theoretical position point in the second direction.
10. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the method according to any one of claims 1 to 8. 11.A computer readable storage medium, storing a computer program, characterized in that, The computer program is executed by the processor to implement the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Machining machine probe measuring system and method
CN103962889A
Electrode batch centering method and device for electric spark machining and storage medium
CN116275334A