Discharge condition matching method, apparatus, device, and medium
By calculating the actual gap value of the workpiece and matching it with the discharge database, the problem of inaccurate electrode discharge gap was solved, thereby improving the quality and pass rate of workpiece processing.
Patent Information
- Application Number
- CN202411966201.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2044-12-30
AI Technical Summary
The existing technology cannot accurately determine the electrode discharge gap, resulting in poor workpiece quality and a low pass rate.
By acquiring the material list data of the workpiece, it is determined whether it contains vector detection gap values. The actual gap value is calculated using the theoretical gap value, the reserved gap value, and the vector detection gap value. The target discharge conditions are then determined by matching the actual gap value with the preset discharge gap in the discharge database.
This improved the accuracy of the discharge gap, ensured precise matching of discharge conditions, and enhanced the quality and pass rate of workpiece processing.
Smart Images

Figure CN119681364B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of mold processing, and in particular to a discharge condition matching method, device, equipment and medium. BACKGROUND
[0002] Electric discharge machining refers to that in a certain medium, through pulse discharge between an electrode and a workpiece, a local workpiece material is melted and gasified instantaneously at high temperature, so as to realize material ablation. The method does not produce cutting force and is not limited by tool material, and can process workpieces with super-high hardness, brittleness and complex shape, and is therefore widely used in many fields such as mold, aviation industry and medical devices. Electric discharge machining is usually realized through an electric discharge machining machine tool.
[0003] At present, an operator usually adjusts an electrode discharge gap based on experience. However, due to different mold precisions, electrode types, rough-fine types and electrode detection values, the electrode discharge gap values are different. In addition, the accuracy of determining the electrode discharge gap according to personal experience is poor, which leads to low accuracy of matched discharge conditions, thereby affecting the quality of workpiece discharge machining and reducing the pass rate of workpiece machining. SUMMARY
[0004] Embodiments of the present application provide a discharge condition matching method, device and medium to solve the problem that the electrode discharge gap cannot be accurately determined in the prior art, leading to poor workpiece quality and low pass rate.
[0005] A discharge condition matching method comprises:
[0006] Obtaining material list data of a workpiece to be machined, the material list data comprising basic data and extension data corresponding to the workpiece to be machined;
[0007] Detecting whether the extension data contains a vector detection gap value corresponding to the workpiece to be machined;
[0008] When the extension data contains the vector detection gap value corresponding to the workpiece to be machined, obtaining a theoretical gap value and a reserved gap value corresponding to the workpiece to be machined from the basic data;
[0009] Determining an actual gap value corresponding to the workpiece to be machined according to the theoretical gap value, the reserved gap value and the vector detection gap value;
[0010] Matching preset discharge gaps corresponding to each discharge condition in a discharge database through the actual gap value to obtain a target discharge condition corresponding to the workpiece to be machined.
[0011] In an embodiment, the matching the preset discharge gap corresponding to each discharge condition in the discharge database with the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed comprises:
[0012] determining a gap difference value between the actual gap value and each preset discharge gap;
[0013] determining absolute values of all the gap difference values, and screening a minimum absolute value from the absolute values of all the gap difference values;
[0014] determining the discharge condition corresponding to the minimum absolute value as the target discharge condition corresponding to the workpiece to be processed.
[0015] In an embodiment, the basic data further comprises a discharge area theoretical value corresponding to the workpiece to be processed; and after the detection of whether the extended data comprises the vector detection gap value corresponding to the workpiece to be processed, the method further comprises:
[0016] when the extended data does not comprise 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;
[0017] performing correction processing on the discharge area theoretical value by using the actual discharge area to obtain a discharge area correction value;
[0018] performing matching processing on the preset discharge area corresponding to each discharge condition in the discharge database by using the discharge area correction value to obtain the target discharge condition corresponding to the workpiece to be processed.
[0019] In an embodiment, the correction processing on the discharge area theoretical value to obtain a discharge area correction value further comprises:
[0020] determining a surface type corresponding to a machining surface of the workpiece to be processed, and if the surface type is a regular surface, obtaining a first area rule corresponding to a surface shape of the regular surface and a workpiece parameter corresponding to the machining surface of the workpiece to be processed;
[0021] performing area calculation on the machining surface of the workpiece to be processed by using the first area rule and the workpiece parameter to obtain a first discharge area;
[0022] obtaining an area correction parameter, and performing correction processing on the first discharge area by using the area correction parameter to obtain a discharge area correction value.
[0023] In an embodiment, after the determination of the surface type corresponding to the machining surface of the workpiece to be processed, the method further comprises:
[0024] if the surface type is an irregular surface, determining whether a machining surface corresponding to the irregular surface is a horizontal plane;
[0025] if the machining surface is a horizontal plane, obtaining a parametric equation corresponding to the horizontal plane of the irregular surface and a second area rule;
[0026] determining a second discharge area corresponding to the machining surface of the workpiece to be machined according to the parametric equation and the second area rule;
[0027] obtaining an area correction parameter, and correcting the second discharge area by the area correction parameter to obtain a discharge area correction value.
[0028] In an embodiment, after determining whether the machining surface corresponding to the irregular surface is a horizontal plane, the method further comprises:
[0029] if the machining surface is a non-horizontal plane, obtaining a curved surface parameter equation corresponding to the non-horizontal plane of the irregular surface and a third area rule;
[0030] 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;
[0031] obtaining an area correction parameter, and correcting the third discharge area by the area correction parameter to obtain a discharge area correction value.
[0032] In an embodiment, after obtaining the target discharge condition corresponding to the workpiece to be machined by matching the preset discharge gap corresponding to each discharge condition in the discharge database with the actual gap value, the method further comprises:
[0033] performing discharge processing on the workpiece to be machined based on the target discharge condition to obtain a target workpiece;
[0034] if the target workpiece needs to be machined again, obtaining a rework value, and determining a target gap value corresponding to the workpiece to be machined according to the theoretical gap value, the reserved gap value, the vector detection gap value and the rework value;
[0035] matching the preset discharge gap corresponding to each discharge condition in the discharge database with the target gap value to obtain an updated discharge condition corresponding to the workpiece to be machined.
[0036] A discharge condition matching device comprises:
[0037] The vector gap detection module is configured to acquire material list data of a workpiece to be processed, the material list data including basic data and extended data corresponding to the workpiece to be processed, and detect whether the extended data contains a vector detection gap value corresponding to the workpiece to be processed.
[0038] The gap value acquisition module is configured to acquire, when the extended data contains the 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 from the basic data.
[0039] The actual gap determination module is 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.
[0040] The discharge condition matching module is configured to match, by the actual gap value, preset discharge gaps corresponding to various discharge conditions in a discharge database, to obtain a target discharge condition corresponding to the workpiece to be processed.
[0041] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor is configured to execute the discharge condition matching method.
[0042] A computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the discharge condition matching method.
[0043] The discharge condition matching method, device, equipment and medium, in the discharge condition matching method, whether the extended data in the material list data contains the vector detection gap value corresponding to the workpiece to be processed is detected, the detection of the vector detection gap value is realized, and the determination of the matching mode of the subsequent discharge condition is realized. The actual gap value is calculated through the theoretical gap value, the reserved gap value and the radial detection gap, and the accuracy of the discharge gap is ensured. The condition matching is performed through the actual gap value, the discharge condition matching is more accurate, the target discharge condition is determined, the quality of the subsequent workpiece processing is improved, the qualified rate of the subsequent workpiece processing is improved, and the efficiency of the subsequent workpiece processing is improved. BRIEF DESCRIPTION OF DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0045] Figure 1 is a flow chart of the discharge condition matching method in an embodiment of the present application;
[0046] Figure 2 is a principle block diagram of the discharge condition matching device in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.
[0048] In an embodiment, as shown in Figure 1 , a discharge condition matching method is provided, comprising the following steps:
[0049] S10: obtaining material list data of a workpiece to be processed, the material list data comprising basic data and extended data corresponding to the workpiece to be processed;
[0050] S20: detecting whether the extended data contains a vector detection gap value corresponding to the workpiece to be processed.
[0051] Understandably, the material list data refers to BOM data, i.e., Bill of Materials data, and the material list data comprises information related to the workpiece to be processed, for example, information recording all raw materials, parts, components, etc. required for manufacturing a 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 along the vector direction, which is measured by a three-dimensional measuring instrument. The basic data refers to theoretical design data and basic information of the workpiece to be processed. The extended data refers to data measured by external equipment.
[0052] Specifically, the material list data of the workpiece to be processed is obtained, and the material list data comprises basic data and extended data corresponding to the workpiece to be processed. Then, it is detected whether the extended data contains a vector detection gap value corresponding to the workpiece to be processed, i.e., the content in the extended data is identified, and then the identified content in the extended data is detected, i.e., whether the vector detection gap value is included in the identified content is detected by field query.
[0053] S30: when the extended data contains the 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.
[0054] It can be understood that the theoretical gap value refers to the theoretical distance between the discharge electrode and the surface of the workpiece to be processed. The reserved gap value refers to the size of the reserved space, i.e., the reserved distance.
[0055] Specifically, the basic data in the material list data is traversed to identify the content in the basic data, and then the identified content in the basic data is read, i.e., the theoretical gap value and the reserved gap value corresponding to the workpiece to be processed are obtained from the basic data through field query. Alternatively, the theoretical gap value and the reserved gap value corresponding to the workpiece to be processed are matched from the basic data through the workpiece number.
[0056] S40: 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.
[0057] It can be understood that the actual gap value refers to the actual distance between the discharge electrode and the surface of the workpiece to be processed, which is used for the distance between the discharge electrode and the surface of the workpiece during workpiece processing.
[0058] 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, i.e., a preset rule is obtained, and the theoretical gap value, the reserved gap value, and the vector detection gap value are calculated through the preset rule, i.e., 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.
[0059] S50: matching the preset discharge gap corresponding to each discharge condition in the discharge database through the actual gap value to obtain a target discharge condition corresponding to the workpiece to be processed.
[0060] It can be understood that the discharge database refers to a database for storing discharge conditions. The discharge condition refers to the electrode discharge information during processing of the workpiece to be processed, such as discharge sequence, discharge time, etc. The preset discharge gap refers to the discharge condition gap built-in in the machining tool, i.e., the discharge distance built-in in the machining tool.
[0061] Specifically, the preset discharge gap corresponding to each discharge condition in the discharge database is matched through the actual gap value, i.e., the discharge database is obtained, and the preset discharge gap corresponding to each discharge condition in the discharge database is extracted, and then the difference value between the actual gap value and each preset discharge gap is calculated, and then the minimum absolute value is selected from the absolute values of all the difference values, 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.
[0062] The discharge condition matching method of the present application realizes the detection of the vector detection gap value by detecting whether the extended data in the bill of materials data contains the vector detection gap value corresponding to the workpiece to be processed, and further realizes the determination of the matching mode of the subsequent discharge condition. The actual gap value is calculated through the theoretical gap value, the reserved gap value and the radial detection gap, ensuring the accuracy of the discharge gap. The condition matching is performed through the actual gap value, ensuring more accurate discharge condition matching and realizing the determination of the target discharge condition, thereby improving the quality of subsequent workpiece processing, improving the pass rate of subsequent workpiece processing, and further improving the efficiency of subsequent workpiece processing.
[0063] In an embodiment, in step S50, the preset discharge gap corresponding to each discharge condition in the discharge database is matched through the actual gap value, and the target discharge condition corresponding to the workpiece to be processed is obtained, including:
[0064] S501, determining the gap difference value between the actual gap value and each preset discharge gap.
[0065] S502, determining the absolute values of all the gap difference values, and screening the minimum absolute value from the absolute values of all the gap difference values.
[0066] S503, determining the discharge condition corresponding to the minimum absolute value as the target discharge condition corresponding to the workpiece to be processed.
[0067] Understandably, the gap difference value 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 minimum absolute value among the absolute values of all the gap difference values.
[0068] Specifically, after obtaining the actual gap value, the actual discharge gap is subtracted from each preset discharge gap corresponding to each discharge condition, thereby obtaining the gap difference value corresponding to each preset discharge gap. Then, the absolute values of all the gap difference values are taken, thereby determining the absolute values of all the gap difference values, and comparing the absolute values of all the gap difference values, that is, using the bubble algorithm to compare the absolute values of all the gap difference values, the smaller absolute value of the two absolute values is placed on top, in this way, the minimum absolute value is screened out, and the preset discharge gap corresponding to the minimum absolute value is determined, and then the discharge condition corresponding to the preset discharge gap is determined, and the discharge condition is determined as the target discharge condition corresponding to the workpiece to be processed.
[0069] In the embodiment, the gap difference value is calculated by the actual gap value and all preset discharge gaps, and the absolute value of the gap difference value is obtained. By comparing all the absolute values, the minimum absolute value is screened. By the minimum absolute value, the discharge condition is matched, and the target discharge condition is determined.
[0070] In an embodiment, the basic data further comprises a theoretical discharge area value corresponding to the workpiece to be processed; after step S20, i.e., after detecting whether the extended data comprises the vector detection gap value corresponding to the workpiece to be processed, the method further comprises:
[0071] S201, when the extended data does not comprise the vector detection gap value corresponding to the workpiece to be processed, performing area detection on the workpiece to be processed by the three-dimensional detector to obtain an actual discharge area.
[0072] S202, correcting the theoretical discharge area value by the actual discharge area to obtain a discharge area correction value.
[0073] S203, matching the preset discharge area corresponding to each discharge condition in the discharge database by the discharge area correction value to obtain a target discharge condition corresponding to the workpiece to be processed.
[0074] Understandably, the basic data further comprises a theoretical discharge area value corresponding to the workpiece to be processed. The actual discharge area refers to the contact area between the electrode and the workpiece. The theoretical discharge area value refers to the discharge area calculated or estimated in theory according to the processing requirements, the material of the workpiece and the electrode, the discharge gap, and the processing electrical parameters, etc. The theoretical discharge area value includes the maximum theoretical value and the minimum theoretical value. The discharge area correction value refers to the value obtained by modifying the theoretical discharge area value. The preset discharge area refers to the discharge area set in advance in the discharge condition.
[0075] 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 area of the workpiece to be processed is detected by the three-dimensional detector, that is, the workpiece to be processed is transferred to the three-dimensional detector, 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. Through the data processing software, the collected data is converted into a three-dimensional model of the workpiece, and the area calculation function in the measurement software is used to calculate the area of the selected region in the three-dimensional model, that is, the actual discharge area. Further, the theoretical discharge area is corrected by the actual discharge area, that is, the theoretical discharge area is adjusted in size by the actual discharge area, so as to obtain the discharge area correction value. For example, when the actual discharge area is greater than the theoretical discharge area, the theoretical discharge area is increased, and when the actual discharge area is less than the theoretical discharge area, the theoretical discharge area is decreased. Then, the preset discharge area corresponding to each discharge condition in the discharge database is matched by the discharge area correction value, that is, the discharge database is obtained, and the preset discharge area corresponding to each discharge condition is extracted, and the area difference between the discharge area correction value and each preset discharge area is calculated. The smallest absolute value of all the absolute values of the area difference is selected, and the discharge condition corresponding to the preset discharge area corresponding to the smallest absolute value of the area difference is determined as the target discharge condition corresponding to the workpiece to be processed.
[0076] In the embodiment, the actual discharge area is measured by the three-dimensional detector, so as to correct the theoretical discharge area and obtain the discharge area correction value. The preset discharge area is matched by the discharge area correction value, so as to calculate the difference between the preset discharge area and the discharge area correction value, and ensure the accuracy of the discharge condition.
[0077] In an embodiment, the step S202, that is, the correction of the theoretical discharge area to obtain the discharge area correction value, further includes:
[0078] S601, determining the surface type corresponding to the machining surface of the workpiece to be processed, if the surface type is a regular surface, obtaining 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 processed.
[0079] S602, calculating the area of the machining surface of the workpiece to be processed by the first area rule and the workpiece parameter to obtain a first discharge area.
[0080] S603, obtaining an area correction parameter, and correcting the first discharge area by the area correction parameter to obtain a discharge area correction value.
[0081] It can be understood that the surface type is used to characterize whether the machining surface of the workpiece to be machined is a regular surface, for example, the regular surface is a circular surface, a fan-shaped surface, etc., and the irregular surface is a circular arc surface, an asymmetric curved surface pattern, etc. The first area rule refers to an area calculation manner of the surface shape for calculating the regular surface, for example, an area calculation manner of a rectangular surface, an area calculation manner of a circular surface. The workpiece parameter refers to a related parameter for calculating the machining area, for example, when the surface type is a rectangular surface, the workpiece parameter is the length and the width; when the surface type is a fan-shaped surface, the workpiece parameter is the radius and the angle, or the radius and the fan-shaped arc length. The first discharge area refers to the discharge area calculated for the workpiece to be machined when the surface type is a regular surface. The area correction parameter refers to a parameter used to correct the calculated theoretical discharge area.
[0082] 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 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 determined first, and then the corresponding first area rule is matched according to the surface shape, and then the workpiece parameter corresponding to the workpiece to be machined is obtained from the basic data according to the parameter in the first area rule. 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 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 correction parameter is added to the first discharge area to obtain the discharge area correction value.
[0083] In this embodiment, when the surface type is a regular surface, the determination of the first area rule is realized, and the acquisition of the workpiece parameter is realized. The first discharge area is calculated by the first area rule and the workpiece parameter. The first discharge area is corrected by the area correction parameter, and the discharge area correction value is calculated.
[0084] In an embodiment, after step S601, that is, after the surface type corresponding to the machining surface of the workpiece to be machined is determined, the method further comprises:
[0085] S701, if the surface type is an irregular surface, it is judged whether the machining surface corresponding to the irregular surface is a horizontal plane.
[0086] S702, if the machining surface is a horizontal plane, a parameterized equation corresponding to the horizontal plane of the irregular surface and a second area rule are obtained.
[0087] S703, determining a second discharge area corresponding to the machining surface of the workpiece to be machined according to the parametric equation and the second area rule.
[0088] S704, obtaining an area correction parameter, correcting the second discharge area by the area correction parameter to obtain a discharge area correction value.
[0089] It can be understood that the irregular surface refers to a circular arc surface, an asymmetric curved surface pattern and the like, including irregular surfaces in a horizontal plane and irregular surfaces in a non-horizontal plane. The second area rule is used to calculate the area calculation method of the machining surface of the irregular surface in the horizontal plane. The parametric equation refers to the curved surface equation corresponding to the irregular surface. The second discharge area refers to the theoretical area of the machining surface calculated when the surface type is the irregular surface.
[0090] Specifically, after determining the surface type of the workpiece to be machined, if the surface type of the workpiece to be machined is the irregular surface, it is judged whether the machining surface corresponding to the surface type is the horizontal plane, i.e. whether the machining surface belongs to the horizontal plane by the three-dimensional detector. When the machining surface of the irregular surface is the horizontal plane, the parametric equation corresponding to the irregular surface and the second area rule are obtained from the basic data. Then, according to the parametric equation and the second area rule, the second discharge area corresponding to the workpiece to be machined is determined, i.e. the area calculation of the parametric equation is performed by the second area rule, i.e. the area calculation of the parametric equation is performed by double integration, so as to obtain the theoretical value of the discharge area corresponding to the irregular surface, i.e. the second discharge area. Then, the area correction parameter is obtained, and the second discharge area is corrected by the area correction parameter, i.e. the area of the size of the area correction parameter is added to the second discharge area, so as to obtain the discharge area correction value.
[0091] In the embodiment, when the surface type is the irregular surface and the machining surface is the horizontal plane, the acquisition of the second area rule is realized, and the acquisition of the parametric equation is realized. The calculation of the second discharge area is realized by the second area rule and the parametric equation. The correction of the second discharge area is realized by the area correction parameter, and the calculation of the discharge area correction value is realized.
[0092] In an embodiment, after step S701, i.e. after judging whether the machining surface corresponding to the irregular surface is the horizontal plane, it further includes:
[0093] S801, if the machining surface is the non-horizontal plane, obtaining a curved surface parameter equation corresponding to the non-horizontal plane of the irregular surface and a third area rule.
[0094] S802, determine 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.
[0095] S803, obtain an area correction parameter, correct the third discharge area by the area correction parameter to obtain a discharge area correction value.
[0096] It can be understood that the non-horizontal plane refers to that the machining surface of the workpiece to be machined has a specific inclination angle or curvature. The third area rule is used to calculate the area calculation method of the machining surface of the irregular surface and the non-horizontal plane. The curved surface parameter equation refers to the curved surface equation corresponding to the non-horizontal plane of the irregular surface. The third discharge area refers to the theoretical area of the machining surface of the irregular surface and the non-horizontal plane calculated.
[0097] Specifically, after judging whether the machining surface of the surface type is a horizontal plane, if the machining surface is a non-horizontal plane, the curved surface parameter equation corresponding to the non-horizontal plane and the third area rule are obtained from the basic data. Then, the third discharge area corresponding to the workpiece to be machined is determined according to the curved surface parameter equation and the third area rule, that is, the area of the curved 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 correction parameter is increased, that is, the discharge area correction value is obtained.
[0098] In this embodiment, when the surface type is an irregular surface and the machining surface is a non-horizontal plane, the third area rule is obtained, and the curved surface parameter equation is obtained. Through the third area rule and the curved surface parameter equation, the third discharge area is calculated. Through the area correction parameter, the third discharge area is corrected, and the discharge area correction value is calculated.
[0099] In an embodiment, after step S50, that is, after the preset discharge gap corresponding to each discharge condition in the discharge database is matched by the actual gap value to obtain the target discharge condition corresponding to the workpiece to be machined, the method further comprises:
[0100] S901, performing discharge processing on the workpiece to be machined based on the target discharge condition to obtain a target workpiece.
[0101] S902, if the target workpiece needs to be machined again, obtaining a rework value, and determining a target gap value corresponding to the workpiece to be machined according to the theoretical gap value, the reserved gap value, the vector detection gap value and the rework value.
[0102] S903, matching the preset discharge gap corresponding to each of the discharge conditions in the discharge database with the target gap value to obtain an updated discharge condition corresponding to the workpiece to be processed.
[0103] It can be understood that the target workpiece refers to the workpiece after the discharge machining of the workpiece to be processed. The repair value refers to the difference between the target workpiece and the preset requirement. The target gap value refers to the updated actual discharge gap. 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.
[0104] Specifically, after obtaining the target discharge condition, the workpiece to be processed is machined based on the target discharge condition, that is, the machining 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 machining tool through the clamp, and then the workpiece to be processed is machined according to the electrode discharge sequence and the discharge time in the target discharge condition, so as to obtain the target workpiece. Then, if an instruction that the target workpiece needs to be machined again is received, the repair 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 repair value, that is, the theoretical gap value, the reserved gap value, the vector detection gap value and the repair value are summed, so as to obtain the target gap value. Then, the preset discharge gap corresponding to each of the discharge conditions in the discharge database is matched with 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 select the minimum absolute value among the absolute values of all the differences, and determine the discharge condition corresponding to the preset discharge gap corresponding to the minimum absolute value among the absolute values of all the differences, and determine the discharge condition corresponding to the workpiece to be processed. The updated discharge condition. It can be understood that the repair value is to avoid the re-machining of the subsequent workpiece machining.
[0105] In this embodiment, the machining of the workpiece to be processed is realized through the target discharge condition, and the target workpiece is obtained. When the target workpiece needs to be machined again, the repair value is obtained, and the target gap value is calculated, so as to avoid the re-machining of the subsequent workpiece machining. Through the target gap value, the preset discharge gap is matched, and the updated discharge condition is obtained.
[0106] It should be understood that the size of the serial number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0107] In an embodiment, a discharge condition matching device is provided, which corresponds to the discharge condition matching method in the above-mentioned embodiments. As shown in Figure 2 The discharge condition matching device comprises 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 functions of each module are described in detail as follows:
[0108] The material list data module 10 is configured to acquire material list data of a workpiece to be processed, wherein the material list data comprises basic data and extended data corresponding to the workpiece to be processed;
[0109] The vector gap detection module 20 is configured to detect whether the extended data contains a vector detection gap value corresponding to the workpiece to be processed;
[0110] The gap value acquisition module 30 is 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 contains the vector detection gap value corresponding to the workpiece to be processed;
[0111] The actual gap determination module 40 is 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;
[0112] The discharge condition matching module 50 is configured to perform matching processing on preset discharge gaps corresponding to each discharge condition in a discharge database through the actual gap value, so as to obtain a target discharge condition corresponding to the workpiece to be processed.
[0113] In an embodiment, the discharge condition matching module 50 comprises:
[0114] A gap difference value submodule is configured to determine gap difference values between the actual gap value and each of the preset discharge gaps;
[0115] A minimum absolute value submodule is configured to determine absolute values of all the gap difference values, and to screen out a minimum absolute value from the absolute values of all the gap difference values;
[0116] A discharge condition determination submodule is configured to determine a discharge condition corresponding to the minimum absolute value as a target discharge condition corresponding to the workpiece to be processed.
[0117] In an embodiment, the basic data further comprises a discharge area theoretical value corresponding to the workpiece to be processed; and the device further comprises:
[0118] An actual discharge area module is configured 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.
[0119] A discharge area correction module is configured to correct the theoretical discharge area value by the actual discharge area to obtain a discharge area correction value.
[0120] A discharge area matching module is configured to match a preset discharge area corresponding to each discharge condition in the discharge database by the discharge area correction value to obtain a target discharge condition corresponding to the workpiece to be processed.
[0121] In an embodiment, the device further comprises:
[0122] A first area rule module is configured to determine a surface type corresponding to a processing surface of the workpiece to be processed, and if the surface type is a regular surface, obtain a first area rule corresponding to a surface shape of the regular surface and a workpiece parameter corresponding to the processing surface of the workpiece to be processed.
[0123] A first discharge area module is configured to perform area calculation on the processing surface of the workpiece to be processed by the first area rule and the workpiece parameter to obtain a first discharge area.
[0124] A first correction module is configured to obtain an area correction parameter, and correct the first discharge area by the area correction parameter to obtain a discharge area correction value.
[0125] In an embodiment, the device further comprises:
[0126] A plane judgment module is configured to determine whether a processing surface corresponding to an irregular surface is a horizontal plane if the surface type is the irregular surface.
[0127] A second area rule module is configured to obtain a parameterized equation corresponding to a horizontal plane of the irregular surface and a second area rule if the processing surface is the horizontal plane.
[0128] A second discharge area module is configured to determine a second discharge area corresponding to the processing surface of the workpiece to be processed according to the parameterized equation and the second area rule.
[0129] A second correction module is configured to obtain an area correction parameter, and correct the second discharge area by the area correction parameter to obtain a discharge area correction value.
[0130] In an embodiment, the device further comprises:
[0131] a third area rule module, configured to acquire a third area rule corresponding to the non-horizontal plane of the irregular surface if the machining surface is a non-horizontal plane;
[0132] a third discharge area module, configured to determine a third discharge area corresponding to the machining surface of the workpiece to be machined according to the parametric equation of the curved surface and the third area rule;
[0133] a third correction module, configured to acquire an area correction parameter, correct the third discharge area by the area correction parameter, and obtain a discharge area correction value.
[0134] In an embodiment, the device further comprises:
[0135] a target workpiece module, configured to perform discharge processing on the workpiece to be machined based on the target discharge condition, and obtain a target workpiece;
[0136] a target gap value module, configured to acquire a rework value if the target workpiece needs to be machined again, and determine a target gap value corresponding to the workpiece to be machined according to the theoretical gap value, the reserved gap value, the vector detection gap value and the rework value;
[0137] a discharge gap matching module, configured to perform matching processing on a preset discharge gap corresponding to each of the discharge conditions in the discharge database by the target gap value, and obtain an updated discharge condition corresponding to the workpiece to be machined.
[0138] A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to execute the discharge condition matching method.
[0139] The specific limitations of the computer device, the processor and each unit and module thereof can refer to the above limitations of the discharge condition matching method, which will not be repeated here. Each module in the above processor can be implemented by software, hardware and their combination in whole or in part. Understandably, 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 the processor in hardware form or independent of the processor, or stored in the memory in the form of software so that the processor calls and executes the operations corresponding to each module. 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 operating devices, computer programs and databases. The internal memory provides an environment for the operation of the operating devices and computer programs in the non-volatile storage medium. The database is used to store the data used by the discharge condition matching method in the above embodiments. The network interface is used for communication connection with external terminals through a network. The computer program is executed by the processor to implement a discharge condition matching method.
[0140] In one embodiment, a computer readable storage medium is provided, which stores a computer program. The computer program is executed by a processor to implement the above discharge condition matching method.
[0141] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware. 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 above-mentioned embodiments of each method. Any reference to memory, storage, database or other medium used in each embodiment provided by the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM) and memory bus dynamic RAM (RDRAM) and the like.
[0142] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-mentioned division of each functional unit and module is exemplified, and in actual application, the above-mentioned 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.
[0143] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A discharge condition matching method characterized by, The method comprises the following steps: acquiring material list data of a workpiece to be processed, the material list data comprising basic data and extended data corresponding to the workpiece to be processed; detecting whether the extended data contains a vector detection gap value corresponding to the workpiece to be processed; when the extended data contains the vector detection gap value corresponding to the workpiece to be processed, acquiring 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; matching preset discharge gaps corresponding to each discharge condition in a discharge database with the actual gap value to obtain a target discharge condition corresponding to the workpiece to be processed.
2. The discharge condition matching method according to claim 1, wherein The matching of the preset discharge gaps corresponding to each discharge condition in the discharge database with the actual gap value to obtain the target discharge condition corresponding to the workpiece to be processed comprises the following steps: determining gap difference values between the actual gap value and each of the preset discharge gaps; determining absolute values of all the gap difference values and screening a minimum absolute value from the absolute values of all the gap difference values; determining a discharge condition corresponding to the minimum absolute value as the target discharge condition corresponding to the workpiece to be processed.
3. The discharge condition matching method according to claim 1, wherein The basic data further comprises a discharge area theoretical value corresponding to the workpiece to be processed. After the detection of whether the extended data contains the vector detection gap value corresponding to the workpiece to be processed, the method further comprises the following steps: when the extended data does not contain 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; performing correction processing on the discharge area theoretical value by using the actual discharge area to obtain a discharge area correction value; performing matching processing on preset discharge areas corresponding to each of the discharge conditions in the discharge database by using the discharge area correction value to obtain the target discharge condition corresponding to the workpiece to be processed.
4. The discharge condition matching method according to claim 3, wherein The correction processing on the discharge area theoretical value to obtain the discharge area correction value further comprises the following steps: determining a surface type corresponding to a machining surface of the workpiece to be processed, and if the surface type is a regular surface, acquiring a first area rule corresponding to a surface shape of the regular surface and a workpiece parameter corresponding to the machining surface of the workpiece to be processed; performing area calculation on the machining surface of the workpiece to be processed by using the first area rule and the workpiece parameter to obtain a first discharge area; acquiring an area correction parameter, and performing correction processing on the first discharge area by using the area correction parameter to obtain the discharge area correction value.
5. The discharge condition matching method according to claim 4, wherein After the determination of the surface type corresponding to the machining surface of the workpiece to be processed, the method further comprises the following steps: 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, acquiring a parameterized equation corresponding to the horizontal plane of the irregular surface and a second area rule. determining a second discharge area corresponding to the machining surface of the workpiece to be machined according to the parametric 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, wherein After the determination of whether the machining surface corresponding to the irregular surface is a horizontal plane, the method further comprises: if the machining surface is a non-horizontal plane, a curved surface parametric equation corresponding to the non-horizontal plane of the irregular surface and a third area rule are obtained; a third discharge area corresponding to the machining surface of the workpiece to be machined is determined according to the curved surface parametric equation and the third area rule; an area correction parameter is obtained, and the third discharge area is corrected by using the area correction parameter to obtain a discharge area correction value.
7. The discharge condition matching method according to claim 1, wherein After the matching processing of the preset discharge gap corresponding to each discharge condition in the discharge database by using the actual gap value to obtain the target discharge condition corresponding to the workpiece to be machined, the method further comprises: a target workpiece is obtained by performing discharge processing on the workpiece to be machined based on the target discharge condition; if the target workpiece needs to be machined again, a rework value is obtained, and a target gap value corresponding to the workpiece to be machined is determined according to the theoretical gap value, the reserved gap value, the vector detection gap value and the rework value; the matching processing of the preset discharge gap corresponding to each discharge condition in the discharge database by using the target gap value is performed to obtain the updated discharge condition corresponding to the workpiece to be machined.
8. A discharge condition matching device characterized by comprising: comprise: a bill of materials data module configured to obtain bill of materials data of a workpiece to be machined, the bill of materials data comprising basic data and extended data corresponding to the workpiece to be machined; a vector gap detection module configured to detect whether the extended data contains a vector detection gap value corresponding to the workpiece to be machined; a gap value obtaining module configured to, when the extended data contains the vector detection gap value corresponding to the workpiece to be machined, obtain a theoretical gap value and a reserved gap value corresponding to the workpiece to be machined from the basic data; an actual gap determining module configured to determine an actual gap value corresponding to the workpiece to be machined according to the theoretical gap value, the reserved gap value and the vector detection gap value; a discharge condition matching module configured to perform matching processing of preset discharge gaps corresponding to each discharge condition in a discharge database by using the actual gap value to obtain a target discharge condition corresponding to the workpiece to be machined.
9. A computer device, comprising: The computer program is executed by the processor to implement the discharge condition matching method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 9. The computer program is executed by the processor to implement the discharge condition matching method according to any one of claims 1 to 7.
Citation Information
Patent Citations
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