Discharge condition matching method, device, equipment and medium

By detecting and calculating the actual discharge gap value of the workpiece and matching the discharge conditions in the discharge database, the problem of inaccurate discharge gap in the prior art is solved, and the quality and pass rate of workpiece processing are improved.

CN119681364AActive Publication Date: 2025-03-25深圳模德宝科技有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411966201.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-03-25
Estimated Expiration
2044-12-30

AI Technical Summary

Technical Problem

The prior art cannot accurately determine the electrode discharge gap, resulting in poor workpiece quality and low pass rate.

Method used

By obtaining the material list data of the workpiece to be processed, detecting whether the extended data contains vector detection gap values, obtaining the theoretical gap value and reserved gap value, determining the actual gap value, and matching the discharge conditions in the discharge database by matching the discharge conditions of the discharge database, the target discharge conditions are obtained.

Benefits of technology

It improves the accuracy of the discharge gap, ensures accurate matching of discharge conditions, and thus improves the quality and pass rate of workpiece processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119681364A_ABST
    Figure CN119681364A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of die machining, and discloses a discharge condition matching method which comprises the steps that material list data of a to-be-machined workpiece is obtained, the material list data comprises basic data and extended data, and whether the extended data comprises a vector detection gap value or not is detected; when the material list data contains the vector detection gap value, obtaining a theoretical gap value and a reserved gap value from the basic data; determining an actual gap value according to the theoretical gap value, the reserved gap value and the vector detection gap value; and performing matching processing on preset discharge gaps corresponding to the discharge conditions in the discharge database through the actual gap values to obtain a target discharge condition. According to the invention, the gap value is detected through the vector, the calculation of the actual gap value is realized, and the accuracy of the discharge gap is ensured. Through the actual gap value, the matching of the discharge condition is realized, so that the determination of the target discharge condition is realized, and the quality and the qualified rate of subsequent workpiece processing are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of mold processing, and in particular to a discharge condition matching method, device, equipment and medium. Background Art

[0002] Electrospark machining refers to the process of partially melting and gasifying the workpiece material by pulse discharge between the electrode and the workpiece in a certain medium, thereby achieving material removal. This method does not generate cutting force and is not limited by tool materials. It can process workpieces with ultra-high hardness, brittleness and complex shapes. Therefore, it is widely used in molds, aviation industry, medical equipment and other fields. Electrospark machining is usually achieved through electrospark machining machine tools.

[0003] At present, the electrode discharge gap is usually adjusted by the operator based on experience. However, the differences in mold precision, electrode type, rough and fine type, and electrode detection values ​​lead to different discharge gap values. In addition, the accuracy of determining the electrode discharge gap based on personal experience is not good, resulting in a low accuracy rate of matching discharge conditions, which affects the quality of workpiece discharge machining and reduces the qualified rate of workpiece machining. Summary of the invention

[0004] The embodiments of the present invention provide a discharge condition matching method, device and medium to solve the problem in the prior art that the electrode discharge gap cannot be accurately determined, resulting in poor workpiece quality and low pass rate.

[0005] A discharge condition matching method, comprising: Acquire material list data of a workpiece to be processed, wherein the material list data includes basic data and extended data corresponding to the workpiece to be processed; Detecting whether the extended data includes a vector detection gap value corresponding to the workpiece to be processed; When the extended data includes a vector detection gap value corresponding to the workpiece to be processed, obtaining a theoretical gap value and a reserved gap value corresponding to the workpiece to be processed from the basic data; Determining an actual gap value corresponding to the workpiece to be processed according to the theoretical gap value, the reserved gap value and the vector detection gap value; The preset discharge gaps corresponding to the various discharge conditions in the discharge database are matched with each other through the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed.

[0006] In one embodiment, the matching process of the preset discharge gaps corresponding to the discharge conditions in the discharge database by the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed includes: Determining a gap difference between the actual gap value and each of the preset discharge gaps; Determine the absolute values ​​of all the gap differences, and select the minimum absolute value from the absolute values ​​of all the gap differences; The discharge condition corresponding to the minimum absolute value is determined as the target discharge condition corresponding to the workpiece to be machined.

[0007] In one embodiment, the basic data further includes a theoretical value of a discharge area corresponding to the workpiece to be processed; after detecting whether the extended data includes a vector detection gap value corresponding to the workpiece to be processed, the method further includes: When the extended data does not include the vector detection gap value corresponding to the workpiece to be processed, performing area detection on the workpiece to be processed by a three-dimensional detector to obtain an actual discharge area; Correcting the theoretical value of the discharge area by using the actual discharge area to obtain a corrected value of the discharge area; The preset discharge areas corresponding to the respective discharge conditions in the discharge database are matched with each other by using the discharge area correction value to obtain a target discharge condition corresponding to the workpiece to be processed.

[0008] In one embodiment, the correcting the theoretical value of the discharge area to obtain a corrected value of the discharge area further includes: Determine a surface type corresponding to the machining surface of the workpiece to be machined, and if the surface type is a regular surface, obtain a first area rule corresponding to the surface shape of the regular surface, and a workpiece parameter corresponding to the machining surface of the workpiece to be machined; Calculating the area of ​​the machining surface of the workpiece to be machined by using the first area rule and the workpiece parameters to obtain a first discharge area; An area correction parameter is obtained, and the first discharge area is corrected by using the area correction parameter to obtain a discharge area correction value.

[0009] In one embodiment, after determining the surface type corresponding to the machining surface of the workpiece to be machined, the method further includes: If the surface type is an irregular surface, determining whether the machining surface corresponding to the irregular surface is a horizontal plane; If the machining surface is a horizontal plane, obtaining a parameterized equation and a second area rule corresponding to the horizontal plane of the irregular surface; Determining a second discharge area corresponding to the machining surface of the workpiece to be machined according to the parameterized equation and the second area rule; An area correction parameter is obtained, and the second discharge area is corrected by using the area correction parameter to obtain a discharge area correction value.

[0010] In one embodiment, after determining whether the machined surface corresponding to the irregular surface is a horizontal plane, the method further includes: If the machining surface is a non-horizontal plane, obtaining a surface parameter equation and a third area rule corresponding to the non-horizontal plane of the irregular surface; Determining a third discharge area corresponding to the machining surface of the workpiece to be machined according to the curved surface parameter equation and the third area rule; An area correction parameter is obtained, and the third discharge area is corrected by the area correction parameter to obtain a discharge area correction value.

[0011] In one embodiment, after matching the preset discharge gaps corresponding to the various discharge conditions in the discharge database with the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed, the method further includes: Performing discharge processing on the workpiece to be processed based on the target discharge condition to obtain a target workpiece; If the target workpiece needs to be processed again, a rework value is obtained, and a target gap value corresponding to the workpiece to be processed is determined according to the theoretical gap value, the reserved gap value, the vector detection gap value and the rework value; The preset discharge gaps corresponding to the respective discharge conditions in the discharge database are matched with each other by using the target gap value to obtain updated discharge conditions corresponding to the workpiece to be processed.

[0012] A discharge condition matching device, comprising: A vector gap detection module is used to obtain the bill of materials data of the workpiece to be processed, wherein the bill of materials data includes basic data and extended data corresponding to the workpiece to be processed, and detect whether the extended data includes a vector detection gap value corresponding to the workpiece to be processed; a gap value acquisition module, configured to acquire a theoretical gap value and a reserved gap value corresponding to the workpiece to be processed from the basic data when the extended data includes a vector detection gap value corresponding to the workpiece to be processed; An actual gap determination module, used to determine an actual gap value corresponding to the workpiece to be processed according to the theoretical gap value, the reserved gap value and the vector detection gap value; The discharge condition matching module is used to match the preset discharge gaps corresponding to each discharge condition in the discharge database through the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed.

[0013] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor is used to execute the above-mentioned discharge condition matching method.

[0014] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the discharge condition matching method is implemented.

[0015] The above-mentioned discharge condition matching method, device, equipment and medium, in the discharge condition matching method of the present invention, by detecting whether the extended data in the material list data contains the vector detection gap value corresponding to the workpiece to be processed, the detection of the vector detection gap value is realized, and then the subsequent determination of the matching method of the discharge condition is realized. Through the theoretical gap value, the reserved gap value and the radial detection gap, the actual gap value is calculated to ensure the accuracy of the discharge gap. Condition matching is performed through the actual gap value, which ensures that the discharge condition matching is more accurate, and the determination of the target discharge condition is realized, thereby improving the quality of subsequent workpiece processing, improving the pass rate of subsequent workpiece processing, and then improving the efficiency of subsequent workpiece processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0017] Figure 1 is a flow chart of a discharge condition matching method in one embodiment of the present invention; Figure 2 It is a principle block diagram of a discharge condition matching device in one embodiment of the present invention. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] In one embodiment, if Figure 1 As shown, a discharge condition matching method is provided, comprising the following steps: S10: Acquire material list data of the workpiece to be processed, wherein the material list data includes basic data and extended data corresponding to the workpiece to be processed; S20: Detect whether the extended data includes a vector detection gap value corresponding to the workpiece to be processed.

[0020] Understandably, the bill of materials data refers to BOM data, i.e., Bill of Materials data, which includes information related to the workpiece to be processed, for example, information recording all raw materials, parts, components and other items required to manufacture a certain workpiece, including the name, quantity, specification, model, brand, material, purpose, etc. of each workpiece to be processed. The vector detection gap value refers to the distance between the discharge electrode and the surface of the workpiece to be processed by the discharge along the vector direction, which is measured by a three-dimensional measuring instrument. Basic data refers to theoretical design data and basic information of the workpiece to be processed. Extended data refers to data measured by external equipment.

[0021] Specifically, the material list data of the workpiece to be processed is obtained, and the material list data includes basic data and extended data corresponding to the workpiece to be processed. Then, it is detected whether the extended data contains the vector detection gap value corresponding to the workpiece to be processed, that is, the extended data is traversed to identify the content in the extended data, and then the content in the identified extended data is detected, that is, whether the identified content includes the vector detection gap value by field query.

[0022] S30: When the extended data includes a vector detection gap value corresponding to the workpiece to be processed, a theoretical gap value and a reserved gap value corresponding to the workpiece to be processed are acquired from the basic data.

[0023] It can be understood that the theoretical gap value refers to the theoretical distance between the discharge electrode and the surface of the workpiece being processed by the discharge machine. The reserved gap value refers to the size of the reserved space, that is, the reserved distance.

[0024] Specifically, the basic data in the bill of materials data is traversed to identify the content in the basic data, and then the content in the identified basic data is read, that is, the theoretical clearance value and the reserved clearance value corresponding to the workpiece to be processed are obtained from the basic data by field query. Alternatively, the theoretical clearance value and the reserved clearance value corresponding to the workpiece to be processed are matched from the basic data by the workpiece number.

[0025] S40: Determine an actual gap value corresponding to the workpiece to be processed according to the theoretical gap value, the reserved gap value and the vector detection gap value.

[0026] It can be understood that the actual gap value refers to the calculated actual distance between the discharge electrode and the surface of the workpiece being discharged and is used for the distance between the discharge electrode and the surface of the workpiece when the workpiece is being processed.

[0027] Specifically, according to the theoretical gap value, the reserved gap value and the vector detection gap value, the actual gap value corresponding to the workpiece to be processed is determined, that is, the preset rules are obtained, and the theoretical gap value, the reserved gap value and the vector detection gap value are calculated according to the preset rules, that is, the theoretical gap value, the reserved gap value and the vector detection gap value are summed to obtain the actual gap value corresponding to the workpiece to be processed.

[0028] S50: Matching the preset discharge gaps corresponding to the various discharge conditions in the discharge database with the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed.

[0029] Understandably, the discharge database refers to a database for storing discharge conditions. The discharge conditions refer to the electrode discharge information when processing the workpiece to be processed, such as the discharge sequence, discharge time, etc. The preset discharge gap refers to the discharge condition gap built into the processing machine tool, that is, the discharge distance built into the processing machine tool.

[0030] Specifically, the preset discharge gaps corresponding to each discharge condition in the discharge database are matched with the actual gap value, that is, the discharge database is obtained, and the preset discharge gaps corresponding to each discharge condition in the discharge database are extracted, and then the difference between the actual gap value and each preset discharge gap is calculated, and then the minimum absolute value is screened out from the absolute values ​​of all the differences, and the discharge condition corresponding to the preset discharge gap corresponding to the minimum absolute value is determined as the target discharge condition corresponding to the workpiece to be processed.

[0031] In the discharge condition matching method of the present invention, by detecting whether the extended data in the material list data contains the vector detection gap value corresponding to the workpiece to be processed, the detection of the vector detection gap value is realized, and then the determination of the subsequent matching method of the discharge condition is realized. Through the theoretical gap value, the reserved gap value and the radial detection gap, the calculation of the actual gap value is realized, and the accuracy of the discharge gap is ensured. Condition matching is performed through the actual gap value, which ensures that the discharge condition matching is more accurate, and the determination of the target discharge condition is realized, thereby improving the quality of subsequent workpiece processing, improving the qualification rate of subsequent workpiece processing, and then improving the efficiency of subsequent workpiece processing.

[0032] In one embodiment, in step S50, matching the preset discharge gaps corresponding to the various discharge conditions in the discharge database is performed using the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed, including: S501, determining a gap difference between the actual gap value and each of the preset discharge gaps.

[0033] S502: Determine the absolute values ​​of all the gap differences, and select the minimum absolute value from the absolute values ​​of all the gap differences.

[0034] S503: Determine the discharge condition corresponding to the minimum absolute value as the target discharge condition corresponding to the workpiece to be processed.

[0035] It can be understood that the gap difference refers to the difference between the actual gap value and the preset discharge gap of the machine tool. The minimum absolute value refers to the smallest absolute value among the absolute values ​​of all gap differences.

[0036] Specifically, after obtaining the actual gap value, the actual discharge gap is subjected to difference processing with the preset discharge gap corresponding to each discharge condition, so as to obtain the gap difference corresponding to each preset discharge gap. Then, the absolute values ​​of all gap differences are taken to determine the absolute values ​​of all gap differences, and the absolute values ​​of all gap differences are compared, that is, the absolute values ​​of all gap differences are compared using a bubbling algorithm, and the smaller absolute value of the two absolute values ​​is placed on top, so as to screen out the minimum absolute value, and determine the preset discharge gap corresponding to it according to the minimum absolute value, and then determine the discharge condition corresponding to the preset discharge gap through the preset discharge gap corresponding to the minimum absolute value, and determine the discharge condition as the target discharge condition corresponding to the workpiece to be processed.

[0037] In this embodiment, the gap difference is calculated by the actual gap value and all preset discharge gaps, and then the absolute value of the gap difference is obtained. By comparing all absolute values, the minimum absolute value is screened. Through the minimum absolute value, the discharge condition is matched, and then the target discharge condition is determined.

[0038] In one embodiment, the basic data also includes a theoretical value of a discharge area corresponding to the workpiece to be processed; after step S20, that is, after detecting whether the extended data includes a vector detection gap value corresponding to the workpiece to be processed, it also includes: S201, when the extended data does not include a vector detection gap value corresponding to the workpiece to be processed, performing area detection on the workpiece to be processed by a three-dimensional detector to obtain an actual discharge area.

[0039] S202, correcting the theoretical value of the discharge area according to the actual discharge area to obtain a corrected value of the discharge area.

[0040] S203, matching the preset discharge areas corresponding to the respective discharge conditions in the discharge database with the discharge area correction value to obtain a target discharge condition corresponding to the workpiece to be processed.

[0041] Understandably, the basic data also includes the theoretical value of the discharge area corresponding to the workpiece to be processed. The actual discharge area refers to the contact area between the electrode and the workpiece. The theoretical value of the discharge area refers to the area of ​​the discharge area theoretically calculated or estimated based on the processing requirements, the materials of the workpiece and the electrode, the discharge gap, and the processing electrical parameters. The theoretical value of the discharge area includes the maximum theoretical value and the minimum theoretical value. The discharge area correction value refers to the value obtained after modifying the theoretical value of the discharge area. The preset discharge area refers to the discharge area set in advance in the discharge conditions.

[0042] Specifically, when the extended data in the bill of materials data does not contain the vector detection gap value corresponding to the workpiece to be processed, the workpiece to be processed is detected by a three-dimensional detector, that is, the workpiece to be processed is transferred to the three-dimensional detector, and then the workpiece to be processed is scanned and measured according to the preset measurement path, and the three-dimensional coordinate data of the surface of the workpiece to be processed is recorded in real time. The collected data is converted into a three-dimensional model of the workpiece through data processing software, and the area to be measured is selected in the three-dimensional model. The area of ​​the selected area is calculated using the area calculation function in the measurement software to obtain the actual discharge area. Further, the theoretical value of the discharge area is corrected by the actual discharge area, that is, the theoretical value of the discharge area is adjusted by the measured actual discharge area, so as to obtain the discharge area correction value. For example, when the actual discharge area is greater than the theoretical value of the discharge area, the theoretical value of the discharge area is increased, and when the actual discharge area is less than the theoretical value of the discharge area, the theoretical value of the discharge area is reduced. Next, the preset discharge areas corresponding to each discharge condition in the discharge database are matched by the discharge area correction value, that is, the discharge database is obtained, and the preset discharge areas corresponding to each discharge condition are extracted, and the area difference between the discharge area correction value and each preset discharge area is calculated, the minimum area absolute value is screened out from the absolute values ​​of all area differences, and the discharge condition corresponding to the preset discharge area corresponding to the minimum area absolute value is determined as the target discharge condition corresponding to the workpiece to be processed.

[0043] In this embodiment, the actual discharge area is measured by the three-dimensional detector, thereby realizing the correction of the theoretical value of the discharge area and obtaining the discharge area correction value. The preset discharge area is matched with the discharge area correction value, and the difference between the preset discharge area and the discharge area correction value is calculated, thereby ensuring the accuracy of the discharge conditions.

[0044] In one embodiment, the step S202, i.e., correcting the theoretical value of the discharge area to obtain a corrected value of the discharge area, further includes: S601, determining a surface type corresponding to the machining surface of the workpiece to be machined, and if the surface type is a regular surface, obtaining a first area rule corresponding to the surface shape of the regular surface, and workpiece parameters corresponding to the machining surface of the workpiece to be machined.

[0045] S602, calculating the area of ​​the machining surface of the workpiece to be machined according to the first area rule and the workpiece parameters to obtain a first discharge area.

[0046] S603, obtaining an area correction parameter, and performing correction processing on the first discharge area according to the area correction parameter to obtain a discharge area correction value.

[0047] Understandably, the surface type is used to characterize whether the machining surface of the workpiece to be machined is a regular surface, for example, a regular surface is a circle, a sector, etc.; an irregular surface is an arc surface, an asymmetric curved surface figure, etc. The first area rule refers to the area calculation method used to calculate the surface shape of the regular surface, for example, the area calculation method of a rectangle, the area calculation method of a circle. The workpiece parameters refer to the relevant parameters used to calculate the machining area. For example, when the surface type is a rectangle, the workpiece parameters are the length and width; when the surface type is a sector, the workpiece parameters are the radius and angle, or the radius and the arc length of the sector. The first discharge area refers to the discharge area calculated for the workpiece to be machined when it is a regular surface. The area correction parameter refers to the parameter used to correct the calculated theoretical discharge area.

[0048] Specifically, the surface type corresponding to the machining surface of the workpiece to be machined is determined, that is, the surface type of the machining surface of the workpiece to be machined is obtained from the basic data of the bill of materials data, or the machining surface of the workpiece to be machined is detected by a three-dimensional detector, so as to determine the surface type corresponding to the machining surface. When the surface type of the machining surface is a regular surface, the surface shape corresponding to the surface type is first determined, and the corresponding first area rule is matched according to the surface shape, and then the workpiece parameters corresponding to the workpiece to be machined are obtained from the basic data according to the parameters in the first area rule. The area of ​​the machining surface of the workpiece to be machined is calculated by the first area rule and the workpiece parameter, that is, the workpiece parameter is substituted into the first area rule to calculate the area of ​​the machining surface of the workpiece to be machined, so as to obtain the area calculation result, and the area calculation result is determined as the first discharge area. Then, the area correction parameter is obtained, and the first discharge area is corrected by the area correction parameter, that is, the area of ​​the first discharge area is increased by the area of ​​the area correction parameter, so as to obtain the discharge area correction value.

[0049] In this embodiment, when the surface type is a regular surface, the first area rule is determined and the workpiece parameters are obtained. The first discharge area is calculated by the first area rule and the workpiece parameters. The first discharge area is corrected by the area correction parameter, and then the discharge area correction value is calculated.

[0050] In one embodiment, after step S601, that is, after determining the surface type corresponding to the machining surface of the workpiece to be machined, the process further includes: S701: If the surface type is an irregular surface, determine whether the machining surface corresponding to the irregular surface is a horizontal plane.

[0051] S702: If the machining surface is a horizontal plane, obtain a parameterized equation and a second area rule corresponding to the horizontal plane of the irregular surface.

[0052] S703: Determine a second discharge area corresponding to the machining surface of the workpiece to be machined according to the parameterized equation and the second area rule.

[0053] S704, obtaining an area correction parameter, and performing correction processing on the second discharge area according to the area correction parameter to obtain a discharge area correction value.

[0054] Understandably, irregular surfaces refer to surfaces such as arc surfaces, asymmetric curved surfaces, etc., including irregular surfaces in horizontal planes and irregular surfaces in non-horizontal planes. The second area rule is used to calculate the area of ​​the machined surface of the irregular surface and the horizontal plane. The parameterized equation refers to the surface equation corresponding to the irregular surface. The second discharge area refers to the theoretical area of ​​the machined surface calculated when the surface type is an irregular surface.

[0055] Specifically, after determining the surface type of the workpiece to be processed, if the surface type of the workpiece to be processed is an irregular surface, it is determined whether the processing surface corresponding to the surface type is a horizontal plane, that is, the processing surface is detected by a three-dimensional detector whether it belongs to a horizontal plane. When the processing surface of the irregular surface is a horizontal plane, the parameterized equation corresponding to the irregular surface and the second area rule are obtained from the basic data. Then, according to the parameterized equation and the second area rule, the second discharge area corresponding to the workpiece to be processed is determined, that is, the area of ​​the parameterized equation is calculated by the second area rule, that is, the area of ​​the parameterized equation is calculated by double integration, so as to obtain the theoretical value of the discharge area corresponding to the irregular surface, that is, the second discharge area. Next, the area correction parameter is obtained, and the second discharge area is corrected by the area correction parameter, that is, the area of ​​the area correction parameter is increased on the basis of the second discharge area, and the discharge area correction value can be obtained.

[0056] In this embodiment, when the surface type is an irregular surface and the processed surface is a horizontal plane, the second area rule is obtained, and the parameterized equation is obtained. The second discharge area is calculated by the second area rule and the parameterized equation. The second discharge area is corrected by the area correction parameter, and then the discharge area correction value is calculated.

[0057] In one embodiment, after step S701, that is, after determining whether the processed surface corresponding to the irregular surface is a horizontal plane, the method further includes: S801: If the machining surface is a non-horizontal plane, obtain a surface parameter equation and a third area rule corresponding to the non-horizontal plane of the irregular surface.

[0058] S802: Determine a third discharge area corresponding to the machining surface of the workpiece to be machined according to the surface parameter equation and the third area rule.

[0059] S803, obtaining an area correction parameter, and performing correction processing on the third discharge area according to the area correction parameter to obtain a discharge area correction value.

[0060] Understandably, the non-horizontal plane refers to the machining surface of the workpiece to be machined having a specific inclination angle or curvature. The third area rule is used to calculate the area of ​​the machining surface of the irregular surface and the non-horizontal plane. The surface parameter equation refers to the surface equation corresponding to the non-horizontal plane of the irregular surface. The third discharge area refers to the calculated theoretical area of ​​the machining surface of the irregular surface and the non-horizontal plane.

[0061] Specifically, after determining whether the machining surface of the surface type is a horizontal plane, if the machining surface is a non-horizontal plane, the surface parameter equation corresponding to the non-horizontal plane and the third area rule are obtained from the basic data. Then, according to the surface parameter equation and the third area rule, the third discharge area corresponding to the workpiece to be machined is determined, that is, the surface parameter equation is calculated by the third area rule, that is, the parameterized equation is calculated by double integration, so as to obtain the theoretical value of the discharge area corresponding to the irregular surface, that is, the third discharge area. Then, the area correction parameter is obtained, and the third discharge area is corrected by the area correction parameter. On the basis of the third discharge area, the area of ​​the area correction parameter is added to obtain the discharge area correction value.

[0062] In this embodiment, when the surface type is an irregular surface and the processed surface is a non-horizontal plane, the third area rule is obtained, and the surface parameter equation is obtained. The third discharge area is calculated by the third area rule and the surface parameter equation. The third discharge area is corrected by the area correction parameter, and then the discharge area correction value is calculated.

[0063] In one embodiment, after step S50, that is, after matching the preset discharge gaps corresponding to the various discharge conditions in the discharge database with the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed, the process further includes: S901, performing discharge processing on the workpiece to be processed based on the target discharge condition to obtain a target workpiece.

[0064] S902, if the target workpiece needs to be processed again, a repair value is obtained, and a target gap value corresponding to the workpiece to be processed is determined according to the theoretical gap value, the reserved gap value, the vector detection gap value and the repair value.

[0065] S903, matching the preset discharge gaps corresponding to the various discharge conditions in the discharge database with the target gap value to obtain updated discharge conditions corresponding to the workpiece to be processed.

[0066] Understandably, the target workpiece refers to the workpiece after the workpiece to be processed is subjected to electrical discharge machining. The repair value refers to the difference between the target workpiece and the preset requirement. The target gap value refers to the actual discharge gap after the update. The updated discharge condition refers to the discharge condition corresponding to the preset discharge gap with the smallest absolute value between the target gap value and the target gap value.

[0067] Specifically, after obtaining the target discharge condition, the workpiece to be processed is subjected to discharge treatment based on the target discharge condition, that is, the processing machine tool corresponding to the target discharge condition is first determined, and then the workpiece to be processed is transferred to the machine table of the processing machine tool through a fixture, and then the workpiece to be processed is processed according to the electrode discharge sequence and discharge time in the target discharge condition, so as to obtain the target workpiece. Then, if an instruction is received that the target workpiece needs to be processed again, the rework value corresponding to the target workpiece is obtained, and the target gap value corresponding to the workpiece to be processed is determined according to the theoretical gap value, the reserved gap value, the vector detection gap value and the rework value, that is, the theoretical gap value, the reserved gap value, the vector detection gap value and the rework value are summed to obtain the target gap value. Next, the preset discharge gaps corresponding to each discharge condition in the discharge database are matched by the target gap value, that is, the difference between each preset discharge gap and the target gap value is calculated, and the absolute values ​​of all the differences are compared, so as to screen out the minimum absolute value of all the absolute values ​​of the differences, and determine the discharge condition corresponding to the preset discharge gap corresponding to the minimum absolute value of all the absolute values ​​of the differences, and determine the discharge condition as the updated discharge condition corresponding to the workpiece to be processed. It can be understood that the rework value is to avoid re-processing when the workpiece of this type is subsequently processed.

[0068] In this embodiment, the target discharge condition is used to achieve the processing of the workpiece to be processed, thereby achieving the acquisition of the target workpiece. When the target workpiece needs to be processed again, the rework value is obtained, thereby achieving the calculation of the target gap value, thereby avoiding the subsequent processing of the workpiece after processing. The target gap value is used to achieve the matching of the preset discharge gap, thereby achieving the acquisition of the updated discharge condition.

[0069] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0070] In one embodiment, a discharge condition matching device is provided, and the discharge condition matching device corresponds one-to-one to the discharge condition matching method in the above embodiment. Figure 2 As shown, the discharge condition matching device includes a material list data module 10, a vector gap detection module 20, a gap value acquisition module 30, an actual gap determination module 40 and a discharge condition matching module 50. The functional modules are described in detail as follows: A material list data module 10, used to obtain material list data of a workpiece to be processed, wherein the material list data includes basic data and extended data corresponding to the workpiece to be processed; A vector gap detection module 20, used to detect whether the extended data contains a vector detection gap value corresponding to the workpiece to be processed; A gap value acquisition module 30, configured to acquire a theoretical gap value and a reserved gap value corresponding to the workpiece to be processed from the basic data when the extended data includes a vector detection gap value corresponding to the workpiece to be processed; An actual gap determination module 40, configured to determine an actual gap value corresponding to the workpiece to be processed according to the theoretical gap value, the reserved gap value and the vector detection gap value; The discharge condition matching module 50 is used to match the preset discharge gaps corresponding to the various discharge conditions in the discharge database through the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed.

[0071] In one embodiment, the discharge condition matching module 50 includes: A gap difference submodule, used to determine the gap difference between the actual gap value and each of the preset discharge gaps; A minimum absolute value submodule, used to determine the absolute values ​​of all the gap differences and select the minimum absolute value from the absolute values ​​of all the gap differences; The discharge condition determination submodule is used to determine the discharge condition corresponding to the minimum absolute value as the target discharge condition corresponding to the workpiece to be processed.

[0072] In one embodiment, the basic data further includes a theoretical value of a discharge area corresponding to the workpiece to be processed; the device further includes: An actual discharge area module, used to perform area detection on the workpiece to be processed by a three-dimensional detector to obtain an actual discharge area when the extended data does not contain a vector detection gap value corresponding to the workpiece to be processed; A discharge area correction module, used for correcting the discharge area theoretical value by using the actual discharge area to obtain a discharge area correction value; The discharge area matching module is used to match the preset discharge areas corresponding to the discharge conditions in the discharge database through the discharge area correction value to obtain the target discharge condition corresponding to the workpiece to be processed.

[0073] In one embodiment, the device further comprises: A first area rule module is used to determine a surface type corresponding to the machining surface of the workpiece to be machined, and if the surface type is a regular surface, obtain a first area rule corresponding to the surface shape of the regular surface, and a workpiece parameter corresponding to the machining surface of the workpiece to be machined; A first discharge area module, used for calculating the area of ​​the machining surface of the workpiece to be machined by using the first area rule and the workpiece parameters to obtain a first discharge area; The first correction module is used to obtain an area correction parameter, and perform correction processing on the first discharge area according to the area correction parameter to obtain a discharge area correction value.

[0074] In one embodiment, the device further comprises: A plane judgment module, for judging whether a machining surface corresponding to the irregular surface is a horizontal plane if the surface type is an irregular surface; A second area rule module, configured to obtain a parameterized equation and a second area rule corresponding to the horizontal plane of the irregular surface if the machining surface is a horizontal plane; A second discharge area module, used for determining a second discharge area corresponding to the machining surface of the workpiece to be machined according to the parameterized equation and the second area rule; The second correction module is used to obtain an area correction parameter, and perform correction processing on the second discharge area according to the area correction parameter to obtain a discharge area correction value.

[0075] In one embodiment, the device further comprises: A third area rule module, used for obtaining a surface parameter equation and a third area rule corresponding to the non-horizontal plane of the irregular surface if the machining surface is a non-horizontal plane; A third discharge area module, used for determining a third discharge area corresponding to the machining surface of the workpiece to be machined according to the surface parameter equation and the third area rule; The third correction module is used to obtain an area correction parameter, and to perform correction processing on the third discharge area according to the area correction parameter to obtain a discharge area correction value.

[0076] In one embodiment, the device further comprises: A target workpiece module, used for performing discharge processing on the workpiece to be processed based on the target discharge condition to obtain a target workpiece; A target gap value module is used to obtain a repair value if the target workpiece needs to be processed again, and determine a target gap value corresponding to the workpiece to be processed according to the theoretical gap value, the reserved gap value, the vector detection gap value and the repair value; The discharge gap matching module is used to match the preset discharge gaps corresponding to the discharge conditions in the discharge database through the target gap value to obtain updated discharge conditions corresponding to the workpiece to be processed.

[0077] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor is used to execute the above-mentioned discharge condition matching method.

[0078] For the specific definition of the computer device, processor and its units and modules, please refer to the definition of the discharge condition matching method above, which will not be repeated here. Each module in the above-mentioned processor can be implemented in whole or in part by software, hardware and a combination thereof. It can be understood that the processor includes a processor, a memory, a network interface and a database connected by a device bus. Each module of the processor can be embedded in or independent of the processor in the form of hardware, or can be stored in the memory in the form of software, so that the processor can call and execute the operations corresponding to the above modules. Among them, the processor is used to provide computing and control capabilities. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating device, a computer program and a database. The internal memory provides an environment for the operation of the operating device and the computer program in the non-volatile storage medium. The database is used to store the data used by the discharge condition matching method in the above-mentioned embodiment. The network interface is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a discharge condition matching method is implemented.

[0079] In one embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned discharge condition matching method is implemented.

[0080] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0081] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0082] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A discharge condition matching method, characterized in that: include: Acquire material list data of a workpiece to be processed, wherein the material list data includes basic data and extended data corresponding to the workpiece to be processed; Detecting whether the extended data includes a vector detection gap value corresponding to the workpiece to be processed; When the extended data includes a vector detection gap value corresponding to the workpiece to be processed, obtaining a theoretical gap value and a reserved gap value corresponding to the workpiece to be processed from the basic data; Determining an actual gap value corresponding to the workpiece to be processed according to the theoretical gap value, the reserved gap value and the vector detection gap value; The preset discharge gaps corresponding to the various discharge conditions in the discharge database are matched with each other through the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed.

2. The discharge condition matching method according to claim 1, characterized in that: The matching process of the preset discharge gaps corresponding to the various discharge conditions in the discharge database by using the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed includes: Determining a gap difference between the actual gap value and each of the preset discharge gaps; Determine the absolute values ​​of all the gap differences, and select the minimum absolute value from the absolute values ​​of all the gap differences; The discharge condition corresponding to the minimum absolute value is determined as the target discharge condition corresponding to the workpiece to be machined.

3. The discharge condition matching method according to claim 1, characterized in that: The basic data also includes a theoretical value of the discharge area corresponding to the workpiece to be processed; After detecting whether the extended data includes a vector detection gap value corresponding to the workpiece to be processed, the method further includes: When the extended data does not include the vector detection gap value corresponding to the workpiece to be processed, performing area detection on the workpiece to be processed by a three-dimensional detector to obtain an actual discharge area; Correcting the theoretical value of the discharge area by using the actual discharge area to obtain a corrected value of the discharge area; The preset discharge areas corresponding to the respective discharge conditions in the discharge database are matched with each other by using the discharge area correction value to obtain a target discharge condition corresponding to the workpiece to be processed.

4. The discharge condition matching method according to claim 3, characterized in that: The correcting the theoretical value of the discharge area to obtain a corrected value of the discharge area also includes: Determine a surface type corresponding to the machining surface of the workpiece to be machined, and if the surface type is a regular surface, obtain a first area rule corresponding to the surface shape of the regular surface, and a workpiece parameter corresponding to the machining surface of the workpiece to be machined; Calculating the area of ​​the machining surface of the workpiece to be machined by using the first area rule and the workpiece parameters to obtain a first discharge area; An area correction parameter is obtained, and the first discharge area is corrected by using the area correction parameter to obtain a discharge area correction value.

5. The discharge condition matching method according to claim 4, characterized in that: After determining the surface type corresponding to the machining surface of the workpiece to be machined, the method further includes: If the surface type is an irregular surface, determining whether the machining surface corresponding to the irregular surface is a horizontal plane; If the machining surface is a horizontal plane, obtaining a parameterized equation and a second area rule corresponding to the horizontal plane of the irregular surface; Determining a second discharge area corresponding to the machining surface of the workpiece to be machined according to the parameterized equation and the second area rule; An area correction parameter is obtained, and the second discharge area is corrected by using the area correction parameter to obtain a discharge area correction value.

6. The discharge condition matching method according to claim 5, characterized in that: After determining whether the machining surface corresponding to the irregular surface is a horizontal plane, the method further includes: If the machining surface is a non-horizontal plane, obtaining a surface parameter equation and a third area rule corresponding to the non-horizontal plane of the irregular surface; Determining a third discharge area corresponding to the machining surface of the workpiece to be machined according to the curved surface parameter equation and the third area rule; An area correction parameter is obtained, and the third discharge area is corrected by the area correction parameter to obtain a discharge area correction value.

7. The discharge condition matching method according to claim 1, characterized in that: After matching the preset discharge gaps corresponding to the various discharge conditions in the discharge database by the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed, the method further includes: Performing discharge processing on the workpiece to be processed based on the target discharge condition to obtain a target workpiece; If the target workpiece needs to be processed again, a rework value is obtained, and a target gap value corresponding to the workpiece to be processed is determined according to the theoretical gap value, the reserved gap value, the vector detection gap value and the rework value; The preset discharge gaps corresponding to the respective discharge conditions in the discharge database are matched with each other by using the target gap value to obtain updated discharge conditions corresponding to the workpiece to be processed.

8. A discharge condition matching device, characterized in that: include: A material list data module, used to obtain material list data of a workpiece to be processed, wherein the material list data includes basic data and extended data corresponding to the workpiece to be processed; A vector gap detection module, used to detect whether the extended data contains a vector detection gap value corresponding to the workpiece to be processed; a gap value acquisition module, configured to acquire a theoretical gap value and a reserved gap value corresponding to the workpiece to be processed from the basic data when the extended data includes a vector detection gap value corresponding to the workpiece to be processed; An actual gap determination module, used to determine an actual gap value corresponding to the workpiece to be processed according to the theoretical gap value, the reserved gap value and the vector detection gap value; The discharge condition matching module is used to match the preset discharge gaps corresponding to each discharge condition in the discharge database through the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed.

9. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor is used to execute the discharge condition matching method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the discharge condition matching method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Electric spark machining method and system

    CN103418864A

  • Numerical control electric spark machine tool machining program generation method, device and storage medium

    CN113779731A

  • Establishment method and system of electric spark database and storage medium

    CN115357650A

  • Method for establishing machining conditions in die sinking electrical discharge machining and numerical control power source device for die sinking electrical discharge machining device

    JP2003291032A

  • Wire Electrical Discharge Machining Method

    US20190061031A1