Workpiece Detection Method, Spark Machine, Computer Readable Storage Medium and Program Product
By using a multi-cutting tool change device and a combination of target electrodes and probes on the spark machine, the three-dimensional data of EDM workpieces are detected in real time, which solves the problem that workpieces are difficult to detect in real time and improves processing efficiency.
Patent Information
- Application Number
- CN202510273556.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-10
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2045-03-10
AI Technical Summary
During EDM processing, it is difficult to detect data in real time for workpieces, resulting in low processing efficiency and requires secondary inspection and processing.
A multi-cutting tool change device is adopted, and the target electrode and probe are installed in different tool positions respectively. The workpiece processing and detection are performed by adjusting the tool position, and the three-dimensional drilling operation parameters and actual drilling data are obtained, and the workpiece detection results are compared.
It realizes data detection before the workpiece is removed, avoids the secondary machine and improves the EDM processing efficiency.
Smart Images

Figure CN119772282B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of spark machines, and particularly to a workpiece detection method, a spark machine, a computer-readable storage medium, and a program product. Background Art
[0002] In modern manufacturing, the spark machine (EDM, Electrical Discharge Machining) processing technology is favored because it can process workpieces with high hardness materials and complex shapes. Due to its non-contact processing characteristics, electrical discharge machining has become the core process for machining high-hardness materials and complex cavities.
[0003] However, for workpieces during the EDM processing, it is generally difficult to detect workpiece data on the spark machine. When the workpiece is detected as unqualified after being taken off the machine, the workpiece needs to be put back on the machine for a second time, resulting in low EDM processing efficiency. Summary of the Invention
[0004] The main purpose of the present application is to provide a workpiece detection method, a spark machine, a computer-readable storage medium, and a program product, aiming to solve the technical problem that when the EDM workpiece is detected as unqualified after being taken off the machine, the workpiece needs to be put back on the machine for a second time, resulting in low EDM processing efficiency.
[0005] To achieve the above purpose, the present application provides a workpiece detection method, which is applied to a spark machine. The spark machine includes a multi-tool position tool changer. The target electrode is installed at the first tool position of the multi-tool position tool changer, and the target probe is installed at the second tool position of the multi-tool position tool changer. The method includes:
[0006] Adjust the first tool position of the multi-tool position tool changer to the current operating station, and control the target electrode to process the workpiece to be detected;
[0007] After the target electrode finishes processing each working position of the workpiece to be detected, or after the target electrode finishes processing the workpiece to be detected, adjust the second tool position of the multi-tool position tool changer to the current operating station, obtain the three-dimensional dotting operation parameters of the workpiece to be detected, and control the target probe to detect the workpiece to be detected based on the three-dimensional dotting operation parameters to obtain the actual dotting data;
[0008] Obtain the standard point position data of the workpiece to be detected, compare the actual dotting data with the standard point position data, and obtain the workpiece detection result corresponding to the workpiece to be detected.
[0009] In an embodiment, the spark machine further includes a temperature sensor. Before the step of obtaining the standard point position data of the workpiece to be detected, it includes:
[0010] Detect the workpiece temperature of the workpiece to be detected through the temperature sensor, and determine the thermal deformation coefficient corresponding to the workpiece temperature;
[0011] Obtain the standard workpiece drawing file corresponding to the workpiece to be detected, input the thermal deformation coefficient and the standard workpiece drawing file into the machining thermal deformation model corresponding to the workpiece to be detected, and output the thermal deformation prediction workpiece drawing file of the workpiece to be detected;
[0012] Obtain the three-dimensional detection points corresponding to the detection of the workpiece to be detected, and generate the standard point data based on the three-dimensional detection points and the thermal deformation prediction workpiece drawing file.
[0013] In one embodiment, before the step of obtaining the three-dimensional dotting operation parameters of the workpiece to be detected, it includes:
[0014] Input the standard workpiece drawing file or the thermal deformation prediction workpiece drawing file into the target detection point prediction model corresponding to the workpiece to be detected, and output the three-dimensional detection points corresponding to the detection of the workpiece to be detected;
[0015] Generate the three-dimensional dotting operation parameters of the workpiece to be detected based on the three-dimensional detection points.
[0016] In one embodiment, after obtaining the workpiece detection result of the workpiece to be detected, the method further includes:
[0017] Based on the workpiece detection result, determine the key detection points in the three-dimensional detection points where the machining error is greater than the preset threshold;
[0018] Iteratively optimize the target detection point prediction model corresponding to the workpiece to be detected based on the key detection points to obtain an updated target detection point prediction model.
[0019] In one embodiment, the target electrode includes a rough machining electrode and a finish machining electrode, and the first tool position includes a first rough tool position for installing the rough machining electrode and a first finish tool position for installing the finish machining electrode. The method further includes:
[0020] Adjust the first rough tool position to the current operating station, and control the rough machining electrode to machine the workpiece to be detected;
[0021] After the rough machining electrode finishes machining the workpiece to be detected, adjust the second tool position of the multi-tool position tool changer to the current operating station, obtain the three-dimensional dotting operation parameters of the workpiece to be detected, and control the target probe to detect the workpiece to be detected based on the three-dimensional dotting operation parameters to obtain actual dotting data;
[0022] Obtain the standard point data of the workpiece to be detected, compare the actual dotting data with the standard point data, and obtain the workpiece detection result corresponding to the workpiece to be detected;
[0023] Adjust the first precision electrode position to the current operating station, optimize the discharge parameters of the finish machining electrode according to the workpiece detection result, and based on the discharge parameters of the finish machining electrode, control the finish machining electrode to machine the workpiece to be detected.
[0024] In one embodiment, after the step of obtaining the workpiece detection result corresponding to the workpiece to be detected, the method further includes:
[0025] Input the workpiece detection result into the spark machine electrode loss prediction model corresponding to the target electrode, and output the electrode loss information corresponding to the target electrode, where the electrode loss information includes the loss position and loss amount corresponding to the target electrode;
[0026] Generate compensation machining operation parameters according to the electrode loss information, and based on the compensation machining operation parameters, control the target electrode to perform compensation machining on the workpiece to be detected.
[0027] In one embodiment, before controlling the target electrode to machine the workpiece to be detected, the method further includes:
[0028] At least raise the spark liquid above the first water level line of the machining tank of the spark machine, where the first water level line makes the workpiece to be detected suitable for the EDM machining environment;
[0029] Before the target probe is controlled to detect the workpiece to be detected based on the three-dimensional dotting operation parameters, the method further includes:
[0030] At least discharge the spark liquid below the second water level line of the machining tank of the spark machine, where the second water level line makes the target probe not immerse in the spark liquid during the detection of the workpiece to be detected by the target probe, and the second water level line is lower than the first water level line.
[0031] In addition, to achieve the above object, the present application further provides a spark machine, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the computer program is executed by the processor, it implements the workpiece detection method as described above.
[0032] In addition, to achieve the above object, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the workpiece detection method as described above.
[0033] In addition, to achieve the above object, the present application further provides a computer program product, which includes a computer program that, when executed by a processor, implements the workpiece detection method as described above.
[0034] The embodiments of the present application provide a workpiece detection method, a spark machine, a computer-readable storage medium, and a program product. The workpiece detection method is applied to a spark machine, which includes a multi-tool position tool changer. The target electrode is installed at the first tool position of the multi-tool position tool changer, and the target probe is installed at the second tool position of the multi-tool position tool changer. The technical solution of the embodiments of the present application is to adjust the first tool position of the multi-tool position tool changer to the current operating station, control the target electrode to process the workpiece to be detected. After each processing operation position of the target electrode on the workpiece to be detected, or after the target electrode finishes processing the workpiece to be detected, adjust the second tool position of the multi-tool position tool changer to the current operating station, obtain the three-dimensional dotting operation parameters of the workpiece to be detected, control the target probe to detect the workpiece to be detected based on the three-dimensional dotting operation parameters to obtain the actual dotting data, then obtain the standard point position data of the workpiece to be detected, compare the actual dotting data with the standard point position data, and obtain the workpiece detection result corresponding to the workpiece to be detected, so as to complete the data detection of the workpiece to be detected on the spark machine before the workpiece to be detected is taken off the machine, avoiding the situation that the workpiece needs to be put on the machine again when it is detected as unqualified after being taken off the machine, thereby improving the EDM processing efficiency. Description of the Drawings
[0035] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0036] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on the structures shown in these drawings without creative efforts.
[0037] Figure 1 Schematic flowchart provided for the first embodiment of the workpiece detection method of the present application;
[0038] Figure 2 Schematic flowchart provided for the second embodiment of the workpiece detection method of the present application;
[0039] Figure 3 Schematic flowchart provided for the third embodiment of the workpiece detection method of the present application;
[0040] Figure 4Schematic flowchart provided for the fourth embodiment of the workpiece detection method of this application;
[0041] Figure 5 Schematic diagram of the scenario of the workpiece detection result of the workpiece to be detected provided for an embodiment of this application;
[0042] Figure 6 Schematic diagram of the workpiece data form provided for an embodiment of this application;
[0043] Figure 7 Overall flowchart of the detected workpiece provided for an embodiment of this application;
[0044] Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the workpiece detection method in the embodiments of this application.
[0045] The realization of the purpose, functional features and advantages of this application will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners
[0046] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with this application. On the contrary, they are merely examples of devices and methods consistent with some aspects of this application as detailed in the appended claims.
[0047] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of this application and are not used to limit this application.
[0048] In modern manufacturing, Electro Discharge Machining (EDM) technology is highly favored because it can process workpieces made of high-hardness materials and with complex shapes. However, there is a significant challenge in the EDM machining process: it is difficult to detect workpiece data in real time during machining. This is because during the EDM machining process, the discharge process between the workpiece and the electrode is non-contact, and the machining environment is complex (such as the presence of dielectric liquid), which makes it very difficult to detect the workpiece size, shape and surface quality in real time during machining. Therefore, when it is found that the workpiece is unqualified during the off-machine inspection after the workpiece machining is completed, the workpiece needs to be remachined on the machine, which greatly increases the machining time and reduces the overall machining efficiency.
[0049] In response to this, the main solution of the embodiments of the present application is a workpiece detection method, which is applied to a spark machine. The spark machine includes a multi-tool position tool changer. The target electrode is installed at the first tool position of the multi-tool position tool changer, and the target probe is installed at the second tool position of the multi-tool position tool changer. The method includes: adjusting the first tool position of the multi-tool position tool changer to the current operating station, and controlling the target electrode to process the workpiece to be detected; after the target electrode finishes processing each working position of the workpiece to be detected, or after the target electrode finishes processing the workpiece to be detected, adjusting the second tool position of the multi-tool position tool changer to the current operating station, obtaining the three-dimensional dotting operation parameters of the workpiece to be detected, and controlling the target probe to detect the workpiece to be detected based on the three-dimensional dotting operation parameters to obtain actual dotting data; obtaining the standard point position data of the workpiece to be detected, comparing the actual dotting data with the standard point position data, and obtaining the workpiece detection result corresponding to the workpiece to be detected.
[0050] In the embodiments of the present application, by adjusting the first tool position of the multi-tool position tool changer to the current operating station, controlling the target electrode to process the workpiece to be detected, after the target electrode finishes processing each working position of the workpiece to be detected, or after the target electrode finishes processing the workpiece to be detected, adjusting the second tool position of the multi-tool position tool changer to the current operating station, obtaining the three-dimensional dotting operation parameters of the workpiece to be detected, controlling the target probe to detect the workpiece to be detected based on the three-dimensional dotting operation parameters to obtain actual dotting data, then obtaining the standard point position data of the workpiece to be detected, comparing the actual dotting data with the standard point position data, and obtaining the workpiece detection result corresponding to the workpiece to be detected, so that the data detection of the workpiece to be detected can be completed on the spark machine before the workpiece to be detected is taken off the machine, avoiding the situation that the workpiece needs to be taken on the machine again when it is detected as unqualified after being taken off the machine, thereby improving the EDM processing efficiency.
[0051] It should be noted that the execution subject of the embodiments of the present application is a spark machine or a console communicatively connected to the spark machine. The embodiments of the present application do not make specific limitations on this. Hereinafter, taking the spark machine as the execution subject as an example, the following embodiments of the present application will be described.
[0052] In order to better understand the technical solution of the present application, the following will be described in detail in conjunction with the specification drawings and specific embodiments.
[0053] The present application proposes a workpiece detection method for the first embodiment.
[0054] Please refer to Figure 1 , Figure 1 which is a schematic flow chart provided for the first embodiment of the workpiece detection method of the present application.
[0055] In this embodiment, the workpiece detection method is applied to a spark machine, which includes a multi-tool position tool changer. The target electrode is installed at the first tool position of the multi-tool position tool changer, and the target probe is installed at the second tool position of the multi-tool position tool changer. The method may include steps S100 to S300:
[0056] Step S100, adjust the first tool position of the multi-tool position tool changer to the current operating station, and control the target electrode to machine the workpiece to be detected;
[0057] As known to those skilled in the art, a spark machine (EDM, Electrical Discharge Machining) is a device that uses the principle of electric spark discharge to machine workpieces, and is widely used in the machining of high-hardness materials and workpieces with complex shapes.
[0058] It should be noted that the target electrode refers to the electrode used for electric spark machining in the spark machine, and can be made of conductive materials (such as copper, graphite, etc.). The target probe is a tool for detecting workpieces and can be composed of a high-precision sensor and a measuring head. The multi-tool position tool changer in the embodiment of the present application is a mechanical device that can quickly switch between different tools (such as electrodes, probes, etc.). The multi-tool position tool changer includes multiple tool positions, and each tool position can install different tools.
[0059] It should also be noted that in this embodiment, the first tool position refers to the tool position in the multi-tool position tool changer for installing the target electrode, and the second tool position refers to the tool position in the multi-tool position tool changer for installing the target probe. The current operating station is the execution station used for machining or detecting. Specifically, when the target electrode is in this current operating station, the spark machine will run a pre-set workpiece machining program to control the target electrode to machine the workpiece to be detected. When the target probe is in this current operating station, the spark machine will run a pre-set workpiece detection program to control the target probe to detect the workpiece to be detected.
[0060] In this embodiment, by adjusting the first tool position of the multi-tool position tool changer to the current operating station, the target electrode installed at the first tool position can be correctly positioned and perform electric spark machining on the workpiece to be detected, ensuring the accuracy and efficiency of the machining process.
[0061] Step S200, when the target electrode finishes machining each process position of the workpiece to be detected, or when the target electrode finishes machining the workpiece to be detected, adjust the second tool position of the multi-tool position tool changer to the current operating station, obtain the three-dimensional dotting operation parameters of the workpiece to be detected, and control the target probe to detect the workpiece to be detected based on the three-dimensional dotting operation parameters to obtain the actual dotting data;
[0062] It should be noted that the process position refers to a specific machining position on the workpiece that needs to be machined during the EDM process. Different process positions usually correspond to different machining locations, and each process position corresponds to an independent discharge task or operation. The three-dimensional dotting operation parameters refer to the operation parameters required for the target probe to detect the workpiece, which can specifically include the movement trajectory of the probe, the position of the detection points, the detection accuracy, etc. The actual dotting data refers to the measurement data obtained by the target probe when detecting the workpiece to be detected, and can include information such as the size, shape, and surface quality of the workpiece to be detected.
[0063] In this embodiment, the three-dimensional dotting operation parameters of the workpiece to be detected can be prepared in advance for real-time acquisition.
[0064] In this embodiment, after the target electrode completes the EDM of one process position of the workpiece to be detected or the entire set of EDM processes, the second tool position of the multi-tool position tool changer is adjusted to the current operating position, so that the target probe can be correctly positioned and detect the workpiece to be detected, and obtain the operation parameters required for the target probe to detect the workpiece, that is, the three-dimensional dotting operation parameters, and control the target probe to detect the workpiece to be detected based on the three-dimensional dotting operation parameters to obtain the actual dotting data of the workpiece to be detected, so as to realize the detection during or immediately after the processing without taking the workpiece off the machine, and then quickly find out whether the workpiece is qualified.
[0065] Step S300: Obtain the standard point data of the workpiece to be detected, compare the actual dotting data with the standard point data, and obtain the workpiece detection result corresponding to the workpiece to be detected.
[0066] It should be noted that the standard point data refers to the theoretical data such as the size, shape, and position of the workpiece preset based on the design drawing or technical requirements of the workpiece. These data are the basis for judging whether the workpiece is qualified.
[0067] In this embodiment, the standard point data of the workpiece to be detected can be prepared in advance for real-time acquisition.
[0068] It should also be noted that the workpiece detection result refers to the conclusion or report obtained after quality inspection of the workpiece to be detected by comparing the actual dotting data with the standard point data. Exemplarily, the workpiece detection result can include status information such as qualified, unqualified, or requiring rework.
[0069] In this embodiment, by integrating a multi-tool position tool changer on the spark machine and integrating the target electrode for machining and the target probe for detection in the same device, the integration of machining and detection is realized. Thus, during or after the machining process, the workpiece can be detected without taking it off the machine, and then it can be quickly determined whether the workpiece is qualified, avoiding the situation in the traditional method where the workpiece is taken off the machine for detection and then remounted for secondary machining. This significantly reduces the number of times and time for the workpiece to be loaded and unloaded, greatly shortens the overall machining cycle, improves the machining efficiency, optimizes the overall machining process of the spark machine, and reduces unnecessary machining steps and resource waste. It helps to reduce production costs and improve production efficiency.
[0070] Further, in a feasible implementation manner, after the step of obtaining the workpiece detection result corresponding to the workpiece to be detected in step S300, the workpiece detection method may further include steps S400 to S500:
[0071] Step S400, input the workpiece detection result into the spark machine electrode loss prediction model corresponding to the target electrode, and output the electrode loss information corresponding to the target electrode, where the electrode loss information includes the loss position and loss amount corresponding to the target electrode;
[0072] It should be noted that the electrode loss information refers to the loss situation of the electrode during the machining process. The spark machine electrode loss prediction model is a mathematical model used to predict the electrode loss information of the electrode during the machining process based on information such as the workpiece detection result and machining parameters.
[0073] Step S500, generate compensated machining operation parameters based on the electrode loss information, and control the target electrode to perform compensated machining on the workpiece to be detected based on the compensated machining operation parameters.
[0074] It should be noted that the compensated machining operation parameters refer to the new machining parameters generated based on the electrode loss information, which are used to control the target electrode to perform compensated machining on the workpiece to be detected to correct the machining error caused by electrode loss.
[0075] In this implementation manner, the electrode loss information of the target electrode is accurately predicted through the spark machine electrode loss prediction model, and then the compensated machining operation parameters are generated based on the electrode loss information, and the target electrode is controlled to perform compensated machining on the workpiece to be detected according to the compensated machining operation parameters, so as to correct the machining error caused by electrode loss, ensure the machining quality, and further reduce the scrap rate of the workpiece caused by overcutting during machining and reduce the need for secondary machining.
[0076] In addition, this implementation manner can also timely remind the staff to replace the target electrode when the target electrode is severely worn.
[0077] In this embodiment, by adjusting the first tool position of the multi-tool position tool changer to the current operating station, the target electrode is controlled to process the workpiece to be detected. After each process position of the workpiece to be detected is processed by the target electrode, or after the workpiece to be detected is processed by the target electrode, the second tool position of the multi-tool position tool changer is adjusted to the current operating station, the three-dimensional dotting operation parameters of the workpiece to be detected are obtained, the target probe is controlled to detect the workpiece to be detected based on the three-dimensional dotting operation parameters, and the actual dotting data is obtained. Then, the standard point position data of the workpiece to be detected is obtained, and the actual dotting data and the standard point position data are compared to obtain the workpiece detection result corresponding to the workpiece to be detected. Thus, the data detection of the workpiece to be detected can be completed on the spark machine before the workpiece to be detected is taken off the machine, avoiding the situation that the workpiece needs to be put on the machine again when it is detected as unqualified after being taken off the machine, thereby improving the EDM processing efficiency.
[0078] Based on the above first embodiment, a workpiece detection method according to the second embodiment of the present application is proposed.
[0079] In the second embodiment of the present application, for the content that is the same as or similar to the above embodiment, reference can be made to the above introduction and will not be repeated hereinafter.
[0080] Please refer to Figure 2 , Figure 2 which is a schematic flow chart provided for the second embodiment of the workpiece detection method of the present application.
[0081] In this embodiment, the spark machine further includes a temperature sensor. Before the step of obtaining the standard point position data of the workpiece to be detected in step S300, steps S610 to S630 may further be included:
[0082] Step S610: Detect the workpiece temperature of the workpiece to be detected through the temperature sensor, and determine the thermal deformation coefficient corresponding to the workpiece temperature;
[0083] Those skilled in the art know that a temperature sensor is a sensor used to detect temperature.
[0084] It should be noted that the workpiece temperature refers to the actual temperature of the workpiece during the electro-discharge machining process. Due to different ambient temperatures and the fact that electro-discharge machining generates heat, resulting in an increase in the workpiece temperature, etc., the workpiece will undergo thermal deformation due to the principle of thermal expansion and contraction.
[0085] It should also be noted that the thermal deformation coefficient is a parameter used to describe the degree of thermal deformation of the workpiece at a specific temperature. This thermal deformation coefficient can be calculated based on the material characteristics of the workpiece (such as the coefficient of thermal expansion) and the workpiece temperature.
[0086] In this embodiment, the workpiece temperature of the workpiece to be detected is detected by a temperature sensor, and the corresponding thermal deformation coefficient is determined, so as to provide basic data for subsequent accurate measurement and correction, ensuring that the influence caused by the change of the workpiece temperature during the electrical discharge machining process is brought under control, so as not to affect the accuracy of the final measurement result.
[0087] Step S620: Obtain the standard workpiece drawing file corresponding to the workpiece to be detected, input the thermal deformation coefficient and the standard workpiece drawing file into the machining thermal deformation model corresponding to the workpiece to be detected, and output the thermally deformed predicted workpiece drawing file of the workpiece to be detected.
[0088] It should be noted that the standard workpiece drawing file can be a workpiece model constructed through information such as the design, shape, size, and technical requirements of the workpiece to be detected. The ratio between the standard workpiece drawing file and the workpiece to be detected is generally one to one.
[0089] Exemplarily, the standard workpiece drawing file may include: detailed information such as each view, dimension marking, and tolerance requirement of the workpiece to be detected. This embodiment does not limit this.
[0090] It should also be noted that the machining thermal deformation model is a mathematical model used to predict the thermal deformation of the workpiece during the machining process. The thermally deformed predicted workpiece drawing file is a three-dimensional model or data file of the workpiece calculated by the machining thermal deformation model, reflecting the predicted dimensional and shape changes of the workpiece under the influence of temperature.
[0091] In this embodiment, the thermal deformation coefficient and the standard workpiece drawing file are input into the machining thermal deformation model, and the thermal deformation of the workpiece to be detected can be predicted in advance to obtain the corresponding thermally deformed predicted workpiece drawing file, so as to facilitate generating more accurate standard point data based on the thermally deformed predicted workpiece drawing file, thereby ensuring the accuracy of the workpiece detection result.
[0092] Step S630: Obtain the three-dimensional detection points corresponding to the detection of the workpiece to be detected, and generate standard point data based on the three-dimensional detection points and the thermally deformed predicted workpiece drawing file.
[0093] It should be noted that the three-dimensional detection points refer to the key point positions on the workpiece that need to be accurately measured during the workpiece detection process.
[0094] Compared with obtaining the standard point data by probing and dotting on the standard workpiece drawing file, in this embodiment, by probing and dotting the three-dimensional detection points on the thermally deformed predicted workpiece drawing file, the influence of factors such as the ambient temperature and the heat generated during the machining of the workpiece on the workpiece size during the electrical discharge machining process is taken into consideration, thereby generating more accurate standard point data, reducing the situation of unqualified workpieces caused by thermal deformation, and reducing the need for secondary machining.
[0095] In this embodiment, the workpiece temperature of the workpiece to be detected is detected by a temperature sensor, and the thermal deformation coefficient is calculated in combination with the thermal expansion coefficient of the workpiece to be detected, so as to predict the thermal deformation situation of the workpiece to be detected during the electrical discharge machining process by using the machining thermal deformation model, obtain the corresponding thermal deformation prediction workpiece drawing file, and further generate more accurate standard point position data during the detection process, reduce the influence brought by temperature changes, and ensure the accuracy and reliability of the final workpiece detection result.
[0096] Further, in a feasible implementation manner, before the step of obtaining the three-dimensional dotting operation parameters of the workpiece to be detected in step S200, steps A10 to A20 may further be included:
[0097] Step A10: Input the standard workpiece drawing file or the thermal deformation prediction workpiece drawing file into the target detection point position prediction model corresponding to the workpiece to be detected, and output the three-dimensional detection point positions corresponding to the detection of the workpiece to be detected.
[0098] It should be noted that the target detection point position prediction model is a mathematical model used to predict the positions of key points that need to be accurately measured during the detection of the workpiece according to the workpiece drawing file (standard workpiece drawing file or thermal deformation prediction workpiece drawing file), that is, the three-dimensional detection point positions.
[0099] In this implementation manner, by inputting the standard workpiece drawing file or the thermal deformation prediction workpiece drawing file of the workpiece to be detected into the target detection point position prediction model corresponding to the workpiece to be detected, and automatically identifying the three-dimensional detection point positions of the workpiece to be detected through the target detection point position prediction model, the error and workload of manually selecting point positions can be effectively reduced, and it can be ensured that the three-dimensional detection point positions can more comprehensively reflect the size and shape characteristics of the workpiece, reducing the possibility of missed detection or misdetection.
[0100] Step A20: Generate the three-dimensional dotting operation parameters of the workpiece to be detected based on the three-dimensional detection point positions.
[0101] In this embodiment, the three-dimensional detection points are generally obtained by engineers opening the standard workpiece drawing file through three-dimensional design software, and then, based on the engineers' experience, determining the positions on the standard workpiece drawing file that should be detected. Then, points are manually marked at these positions considered to be detected, and thus multiple three-dimensional detection points are obtained. In this embodiment, the standard workpiece drawing file or the thermal deformation prediction workpiece drawing file of the workpiece to be detected is input into the target detection point prediction model corresponding to the workpiece to be detected. The three-dimensional detection points of the workpiece to be detected are automatically identified by the target detection point prediction model, and then the three-dimensional marking operation parameters required for the target probe to detect the three-dimensional detection points of the workpiece to be detected are automatically generated, reducing the time and error of manual parameter setting, thereby improving the detection efficiency and accuracy, and ensuring that the target probe can perform measurement marking along the optimal path during the detection process, and thus accurate and reliable actual marking data can be obtained.
[0102] Further, in a feasible implementation manner, after the step of obtaining the workpiece detection result corresponding to the workpiece to be detected in step S300, steps B10 to B20 may further be included:
[0103] Step B10: Based on the workpiece detection result, determine the key detection points among the three-dimensional detection points where the machining error is greater than a preset threshold.
[0104] In this implementation manner, the workpiece detection result may include the machining error of the three-dimensional detection points. The machining error refers to the deviation between the actual marking data corresponding to the three-dimensional detection points and the standard point data. The preset threshold refers to the maximum allowable error range preset according to the process requirements of the workpiece to be detected.
[0105] Step B20: Based on the key detection points, iteratively optimize the target detection point prediction model corresponding to the workpiece to be detected to obtain an updated target detection point prediction model.
[0106] In this embodiment, key detection points with large machining errors in the three-dimensional detection points are identified through a preset threshold, and the problem areas existing in the machining process are accurately located, so as to iteratively optimize the target detection point prediction model. As a result, among the multiple three-dimensional detection points generated by the target detection point prediction model, three-dimensional detection points that are more densely distributed in the machining risk areas where EDM machining errors are likely to occur (the machining errors include incomplete machining, excessive machining allowance, or overcutting, that is, excessive machining) and are more sparsely distributed in the ordinary areas where EDM machining errors do not occur or are not likely to occur are ensured. The updated model can generate three-dimensional detection points covering the key detection points in subsequent detections, so as to more accurately detect the high-risk machining areas, while reducing the number of ineffective dotting in three dimensions. On the basis of more accurately detecting the machining error positions of the workpiece, the detection efficiency is improved, and further, the accuracy and reliability of the three-dimensional detection points generated by the target detection point prediction model are continuously improved, and the machining efficiency of the workpiece is improved.
[0107] Based on the above embodiments, a workpiece detection method according to the third embodiment of the present application is proposed.
[0108] In the third embodiment of the present application, for the same or similar content as the above embodiments, reference can be made to the above introduction and will not be repeated hereinafter.
[0109] Please refer to Figure 3 , Figure 3 which is a schematic flow chart provided for the third embodiment of the workpiece detection method of the present application.
[0110] In this embodiment, the target electrode includes a rough machining electrode and a finish machining electrode. The first tool position includes a first rough tool position for installing the rough machining electrode and a first finish tool position for installing the finish machining electrode. The workpiece detection method may further include steps S710 to S740:
[0111] Step S710: Adjust the first rough tool position to the current operating station, and control the rough machining electrode to machine the workpiece to be detected;
[0112] It should be noted that the rough machining electrode is an electrode for initially machining the workpiece, and its main task is to quickly remove a large amount of material to form the basic shape of the workpiece, and the accuracy requirement is relatively low. The finish machining electrode is an electrode for finely machining the workpiece, and its main task is to improve the dimensional accuracy and surface quality of the workpiece, and the accuracy requirement is higher than that of the rough electrode.
[0113] It should also be noted that the first rough tool position is a tool position for installing the rough machining electrode, and the first finish tool position is a tool position for installing the finish machining electrode.
[0114] In this embodiment, the first rough tool position is adjusted to the current operating station, so as to control the rough machining electrode to preliminarily machine the workpiece to be detected, efficiently remove a large amount of material, and form the basic shape of the workpiece, preparing for subsequent finish machining.
[0115] Step S720, after the rough machining electrode finishes machining the workpiece to be detected, adjust the second tool position of the multi-tool position tool changer to the current operating station, obtain the three-dimensional dotting operation parameters of the workpiece to be detected, and control the target probe to detect the workpiece to be detected based on the three-dimensional dotting operation parameters to obtain the actual dotting data;
[0116] Step S730, obtain the standard point position data of the workpiece to be detected, compare the actual dotting data with the standard point position data, and obtain the workpiece detection result corresponding to the workpiece to be detected;
[0117] In this embodiment, after the rough machining electrode completes the preliminary machining of the workpiece to be detected, instead of directly using the finish machining electrode to complete the finish machining of the workpiece to be detected, it switches to the second tool position, and uses the target probe to perform probe dotting on the preliminarily machined workpiece to be detected to obtain the current actual dotting data, thereby obtaining the current workpiece detection result. Then, according to the current workpiece detection result, adjust the parameters of the finish machining electrode to improve the quality and efficiency of finish machining, ensure that the workpiece to be detected can reach a higher quality after finish machining, and avoid workpiece scrapping.
[0118] Step S740, adjust the first finish tool position to the current operating station, optimize the discharge parameters of the finish machining electrode according to the workpiece detection result, and control the finish machining electrode to machine the workpiece to be detected based on the discharge parameters of the finish machining electrode.
[0119] It should be noted that the discharge parameters refer to the parameters that control the discharge process during the electric discharge machining process, usually including discharge energy, discharge frequency, electrode feed speed, etc.
[0120] In this embodiment, by inserting a probe detection link between the rough machining and finish machining of the spark machine, the discharge parameters of the finish machining electrode are dynamically adjusted according to the workpiece detection result after rough machining, reducing the need for secondary machining, while also reducing the risk of overall workpiece scrapping and material loss, and ensuring that higher precision and surface quality can be achieved during finish machining, thereby improving the overall machining efficiency and product quality.
[0121] Further, in a feasible implementation manner, before the step of controlling the target electrode to machine the workpiece to be detected in step S100, the workpiece detection method may further include step C10:
[0122] Step C10, raise at least the spark liquid above the first water level line of the machining tank of the spark machine, where the first water level line makes the workpiece to be detected suitable for the EDM machining environment;
[0123] It should be noted that the first water level line refers to the lowest water level line to which the spark fluid needs to rise during the EDM process, which is used to ensure that the workpiece to be detected is suitable for the EDM processing environment.
[0124] In this embodiment, by raising the spark fluid above the first water level line before the control target electrode processes the workpiece to be detected, it can be ensured that during the EDM process, the spark fluid covers the entire workpiece to be detected, thereby providing good cooling and chip removal conditions, preventing local overheating and material adhesion, effectively suppressing discharge sparks, reducing the fire risk, improving operation safety, and at the same time reducing workpiece damage caused by high temperature, and improving the workpiece processing quality and efficiency.
[0125] Before the step of detecting the workpiece to be detected by the control target probe based on the three-dimensional dotting operation parameters in step 200, the workpiece detection method may further include step D10:
[0126] Step D10, at least discharging the spark fluid below the second water level line of the processing tank of the spark machine, wherein the second water level line is such that during the detection of the workpiece to be detected by the target probe, the target probe will not be immersed in the spark fluid, and the second water level line is lower than the first water level line.
[0127] It should be noted that the second water level line refers to the highest water level line to which the spark fluid needs to be discharged when the target probe detects the workpiece to be detected, which is used to ensure that the target probe will not be immersed in the spark fluid.
[0128] In this embodiment, by discharging the spark fluid below the second water level line before detecting the workpiece to be detected by the control target probe based on the three-dimensional dotting operation parameters, it can be ensured that the target probe will not be immersed in the spark fluid, avoiding the contamination of the probe and its measurement system by the spark fluid, maintaining the cleanliness and sensitivity of the probe, reducing the measurement error caused by the residual spark fluid, improving the detection efficiency and reliability, ensuring the accuracy of the detection result, and at the same time extending the service life of the probe.
[0129] Furthermore, before the control target probe detects the workpiece to be detected, the spark machine automatically cleans the workpiece to be detected by controlling the water gun device and / or the air gun device.
[0130] In one embodiment, the cleaning method includes: the spark machine first automatically flushes the workpiece to be detected by controlling the water gun device, and then automatically blows and cleans the workpiece to be detected by the air gun device.
[0131] Before the control target probe detects the workpiece to be detected in the embodiment of the present application, the water gun device and / or the air gun device are controlled to automatically clean the workpiece to be detected, so that residues such as spark liquid remaining on the workpiece surface and carbon slag generated by EDM processing can be cleaned up, ensuring the cleanliness of the workpiece surface, avoiding these residues from adhering to the workpiece surface and affecting the accuracy of probe detection, and ensuring the reliability of the detection result.
[0132] Based on the above embodiment, a workpiece detection method according to a fourth embodiment of the present application is proposed.
[0133] In the fourth embodiment of the present application, the same or similar content as that in the above embodiment can be referred to the above introduction and will not be repeated hereinafter.
[0134] Please refer to Figure 4 , Figure 4 which is a schematic flow chart provided for the third embodiment of the workpiece detection method of the present application.
[0135] In this embodiment, the step of comparing the actual dotting data with the standard point data in step S300 to obtain the workpiece detection result corresponding to the workpiece to be detected may include steps S310 to S330:
[0136] Step S310, comparing the actual dotting data with the standard point data to obtain the error result of the three-dimensional detection point;
[0137] It should be noted that the error result may be the degree to which the actual dotting data deviates from the standard point data.
[0138] Step S320, generating a workpiece data form corresponding to the workpiece to be detected according to the actual dotting data and the error result;
[0139] Step S330, taking the workpiece data form as the workpiece detection result corresponding to the workpiece to be detected.
[0140] It should be noted that the workpiece data form may be a table recording and presenting various detection results related to the workpiece to be detected after detecting whether the size of the workpiece to be detected is qualified.
[0141] Exemplarily, the workpiece data form may include the serial numbers and positions of each three-dimensional detection point, the errors in each position direction, etc., and this embodiment does not limit this.
[0142] In this embodiment, the workpiece data form obtained by comparing the degree to which the three-dimensional detection point deviates from the standard can clarify the gap between the actual situation of the workpiece to be detected and the standard, so as to facilitate subsequent reprocessing of the workpiece to be detected.
[0143] In a feasible implementation, step S310 may include: parsing the spatial coordinate values corresponding to each actual point in the actual dotting data; comparing the spatial coordinate values with the standard point data to obtain the error values on each coordinate axis between the actual points and the CMM detection points; performing normalization processing on the error values of each coordinate axis to obtain the error coefficients.
[0144] Correspondingly, step S320 may include: generating a workpiece data form corresponding to the workpiece to be detected according to the spatial coordinate values and the error coefficients.
[0145] It should be noted that the spatial coordinate values may be values used to describe the specific positions of the actual points on the workpiece to be detected. Generally, the boundaries of the top view of the workpiece to be detected can be used as the x-axis and y-axis, and the workpiece itself can be used as the z-axis to describe the position; any actual point can also be selected as the reference point, and the relative positions between the reference point and other points can be used to describe it. This embodiment does not limit this. It should be noted that the reference systems established by the spatial coordinate values and the position data of the standard point data should be unified to ensure the accuracy of the data.
[0146] It can be understood that the error value can be the difference obtained after comparing the values of the x-axis, y-axis, and z-axis of the spatial coordinate values with the values of the x-axis, y-axis, and z-axis of the position data of the standard point data respectively.
[0147] Since the x-axis, y-axis, and z-axis all represent errors, in order to facilitate unifying the errors between each actual point and the CMM detection point, the error values of each coordinate axis can be unified (for example, vector processing can be performed on the error values of the x-axis, y-axis, and z-axis, and the final vector value is used to represent the error coefficient; two of the coordinate axes can also be selected as the reference planes, and the error value of the other coordinate axis relative to the reference plane is used to represent the error coefficient), so as to obtain a unified error coefficient representing the CMM detection point.
[0148] Exemplarily, for the sake of understanding, take Figure 5 as an example for illustration. Figure 5 is a schematic diagram of the workpiece detection result scenario of the workpiece to be detected provided by an embodiment of the present application. As Figure 5 shown, actual dotting is performed on the workpiece to be detected, exemplifying the actual point numbers from 01 to 18. According to the spatial coordinate values and error coefficients detected from the actual point numbers from 01 to 18, the generated workpiece data form is as Figure 6 shown. Figure 6 is a schematic diagram of the workpiece data form provided by an embodiment of the present application.
[0149] As Figure 5 and Figure 6As shown, for the actual point number 01, the coordinate value on the x-axis is -45.000, the coordinate value on the y-axis is 2.354, and the coordinate value on the z-axis is -19.543, with an error coefficient of 0.001; for the actual point number 02, the coordinate value on the x-axis is -0.988, the coordinate value on the y-axis is -22.500, and the coordinate value on the z-axis is -17.825, with an error coefficient of -0.011; for the actual point number 03, the coordinate value on the x-axis is 45.000, the coordinate value on the y-axis is 1.966, and the coordinate value on the z-axis is -19.319, with an error coefficient of -0.006; for the actual point number 04, the coordinate value on the x-axis is 1.111, the coordinate value on the y-axis is 22.500, and the coordinate value on the z-axis is -19.903, with an error coefficient of 0.004; for the actual point number 05, the coordinate value on the x-axis is 10.901, the coordinate value on the y-axis is 11.921, and the coordinate value on the z-axis is -5.342, with an error coefficient of 0.003; for the actual point number 06, the coordinate value on the x-axis is 7.604, the coordinate value on the y-axis is 11.897, and the coordinate value on the z-axis is -4.659, with an error coefficient of 0.002; for the actual point number 07, the coordinate value on the x-axis is 31.528, the coordinate value on the y-axis is 11.890, and the coordinate value on the z-axis is -4.443, with an error coefficient of 0.003; for the actual point number 08, the coordinate value on the x-axis is 28.068, the coordinate value on the y-axis is 11.915, and the coordinate value on the z-axis is -5.165, with an error coefficient of 0.003; for the actual point number 09, the coordinate value on the x-axis is 9.682, the coordinate value on the y-axis is -5.816, and the coordinate value on the z-axis is -3.897, with an error coefficient of 0.002; for the actual point number 010, the coordinate value on the x-axis is 29.943, the coordinate value on the y-axis is -5.848, and the coordinate value on the z-axis is -3.543, with an error coefficient of 0.003; for the actual point number 11, the coordinate value on the x-axis is 9.611, the coordinate value on the y-axis is -11.153, and the coordinate value on the z-axis is -3.533, with an error coefficient of -0.001; for the actual point number 12, the coordinate value on the x-axis is 30.076, the coordinate value on the y-axis is -11.117, and the coordinate value on the z-axis is -3.318, with an error coefficient of -0.001; for the actual point number 13, the coordinate value on the x-axis is 8.494, the coordinate value on the y-axis is 7.880, and the coordinate value on the z-axis is -3.899, with an error coefficient of 0.000; for the actual point number 14, the coordinate value on the x-axis is 31.311, the coordinate value on the y-axis is 7.876, and the coordinate value on the z-axis is -4.037, with an error coefficient of 0.001; for the actual point number 15, the coordinate value on the x-axis is 34.362, the coordinate value on the y-axis is 9.863, and the coordinate value on the z-axis is -3.746, with an error coefficient of 0.001; for the actual point number 16, the coordinate value on the x-axis is 4.557, the coordinate value on the y-axis is 9.923, and the coordinate value on the z-axis is -3.641, with an error coefficient of 0.001; the actual point number is 17, the coordinate value of the x-axis is 7.104, the coordinate value of the y-axis is -8.941, and the coordinate value of the z-axis is -3.346, with an error coefficient of -0.001; the actual point number is 18, the coordinate value of the x-axis is 32.386, the coordinate value of the y-axis is -8.951, and the coordinate value of the z-axis is -4.367, with an error coefficient of 0.00.
[0150] Among them, an error coefficient of 0.000 indicates that there is no error between the actual point and the CMM detection point. A positive or negative error coefficient indicates that there is an error between the actual point and the CMM detection point. A positive error coefficient also indicates that in machining, the size of the actual point is out of tolerance, that is, the actual machining size is greater than the ideal size, and there may be overcutting; a negative error coefficient also indicates that the size is insufficient, that is, the actual machining size is less than the ideal size, and there may be undercutting.
[0151] In this embodiment, the specific orientation and distance relationship of the actual point in the space of the workpiece to be detected are represented by the specific numerical values of the spatial coordinate values, so that the actual point can be accurately positioned and distinguished.
[0152] Specifically, to facilitate the understanding of this embodiment, refer to Figure 7 , Figure 7 which is the overall flowchart of the workpiece detection provided by an embodiment of the present application. First, the workpiece drawing is marked to determine the position of the workpiece to be detected, and the standard point data is obtained. Then, the standard point data is uploaded to the machine tool of the spark machine, and the machine tool probe (i.e., the target probe) of the spark machine is used to detect and mark the workpiece to be detected to obtain the actual marking data. Next, the machine tool of the spark machine transmits the actual marking data back to the console of the spark machine, and the console compares the actual marking data with the standard point data to generate the workpiece detection result.
[0153] It should be noted that the above examples are only used to assist in understanding the present application and do not limit the workpiece detection method of the present application. Based on this technical concept, more forms of simple transformations are within the protection scope of the present application.
[0154] In addition, please refer to Figure 8 , Figure 8 which is the schematic diagram of the device structure of the hardware operating environment involved in the workpiece detection method in the embodiment of the present application.
[0155] The present application also provides a spark machine, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the steps of the workpiece detection method in the above embodiment.
[0156] Refer to the following Figure 8 , which shows a schematic structural diagram of a spark machine suitable for implementing the embodiments of the present application. Figure 8 The shown spark machine is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present application.
[0157] As Figure 8 shown, the spark machine may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1002 or the program loaded from the storage device 1003 into the random access memory 1004. In the RAM 1004, various programs and data required for the operation of the spark machine are also stored. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other through a bus 1005. The input / output interface 1006 is also connected to the bus. Generally, the following systems can be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the spark machine to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a spark machine with various systems, it should be understood that it is not required to implement or have all the shown systems. More or fewer systems can be alternatively implemented or had.
[0158] Specifically, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device, or installed from the storage device 1003, or installed from the read-only memory 1002. When the computer program is executed by the processing device 1001, the above functions defined in the methods of the embodiments disclosed in the present application are executed.
[0159] The spark machine provided by this application adopts the workpiece detection method in the above embodiment, which can solve the technical problem that when the EDM workpiece is detected as unqualified after being taken off the machine, the workpiece needs to be put on the machine again, resulting in low EDM processing efficiency. Compared with the prior art, the beneficial effects of the spark machine provided by this application are the same as those of the workpiece detection method provided by the above embodiment, and other technical features in this spark machine are the same as those disclosed in the above embodiment method, which will not be elaborated here.
[0160] It should be understood that each part disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in a suitable manner in any one or more embodiments or examples.
[0161] The above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all of them should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the above-mentioned claims.
[0162] In addition, this application also provides a computer-readable storage medium with computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the steps of the workpiece detection method in the above embodiment.
[0163] The computer-readable storage medium provided by this application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or components, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, optical fibers, portable compact disk read-only memories, optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, device or component. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0164] The above computer-readable storage medium can be included in the spark machine; it can also exist separately without being assembled into the spark machine.
[0165] The above computer-readable storage medium carries one or more programs, which, when executed by the spark machine, cause the spark machine to: adjust the first tool position of the multi-tool position tool changer to the current operating station, and control the target electrode to machine the workpiece to be detected; after each machining position of the workpiece to be detected is machined by the target electrode, or after the workpiece to be detected is machined by the target electrode, adjust the second tool position of the multi-tool position tool changer to the current operating station, obtain the three-dimensional dotting operation parameters of the workpiece to be detected, and control the target probe to detect the workpiece to be detected based on the three-dimensional dotting operation parameters to obtain the actual dotting data; obtain the standard point position data of the workpiece to be detected, compare the actual dotting data with the standard point position data, and obtain the workpiece detection result corresponding to the workpiece to be detected.
[0166] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The above programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).
[0167] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and this module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0168] The modules involved in the embodiments of the present application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation on the unit itself in some cases.
[0169] The computer-readable storage medium provided in the present application stores computer-readable program instructions (i.e., computer programs) for executing the steps of the above workpiece detection method, which can solve the technical problem that when the EDM workpiece is detected as unqualified after being taken off the machine, the workpiece needs to be put on the machine again, resulting in low EDM processing efficiency. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as those of the workpiece detection method provided in the above embodiments, and will not be elaborated here.
[0170] In addition, an embodiment of the present application further provides a computer program product, including a computer program, which when executed by a processor, implements the steps of the workpiece detection method in the above embodiments.
[0171] The computer program product provided in the present application can solve the technical problem that when the EDM workpiece is detected as unqualified after being taken off the machine, the workpiece needs to be put on the machine again, resulting in low EDM processing efficiency. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiments of the present application are the same as those of the workpiece detection method provided in the above embodiments, and will not be elaborated here.
[0172] The above are only some embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structural transformation made by using the content of the specification and drawings of the present application under the technical concept of the present application, or direct / indirect application in other related technical fields, is included in the patent protection scope of the present application.
Claims
1. A workpiece detection method, characterized in that: Applied to a spark machine, the spark machine includes a multi-tool position tool changer, a target electrode is installed at a first tool position of the multi-tool position tool changer, and a target probe is installed at a second tool position of the multi-tool position tool changer, the method includes: Adjusting the first tool position of the multi-tool position tool changing device to the current operating position, and controlling the target electrode to process the workpiece to be inspected; After the target electrode completes processing of the workpiece to be detected at each process position, or after the target electrode completes processing of the workpiece to be detected, the second tool position of the multi-tool position tool changing device is adjusted to the current operating position; Acquire a workpiece image file of the workpiece to be detected, and input the workpiece image file into a target detection point prediction model corresponding to the workpiece to be detected, and output a three-dimensional detection point corresponding to the workpiece to be detected; Based on the three-dimensional detection points, generating three-dimensional dot marking operation parameters of the workpiece to be detected; Acquiring the three-dimensional dot-marking operation parameters of the workpiece to be detected, and controlling the target probe to detect the workpiece to be detected based on the three-dimensional dot-marking operation parameters to obtain actual dot-marking data; Acquire standard point data of the workpiece to be detected, compare the actual dot data with the standard point data, and obtain a workpiece detection result corresponding to the workpiece to be detected; Based on the workpiece detection result, determine the key detection points in the three-dimensional detection points where the processing error is greater than a preset threshold; Based on the key detection points, the target detection point prediction model corresponding to the workpiece to be detected is iteratively optimized to obtain an updated target detection point prediction model, so that the updated target detection point prediction model, compared with the target detection point prediction model before iterative optimization, generates three-dimensional detection points that are more densely distributed in the processing risk area and that are more sparsely distributed in the ordinary area, wherein the processing risk area is determined based on the processing error, the ordinary area is different from the processing risk area, and the processing error refers to the deviation between the actual dot data corresponding to the three-dimensional detection point and the standard point data.
2. The workpiece detection method according to claim 1, characterized in that: The spark machine also includes a temperature sensor. Before the step of acquiring the standard point data of the workpiece to be detected, the method includes: The temperature sensor is used to detect the workpiece temperature of the workpiece to be detected, and a thermal deformation coefficient corresponding to the workpiece temperature is determined; Obtaining a standard workpiece drawing corresponding to the workpiece to be detected, inputting the thermal deformation coefficient and the standard workpiece drawing into a machining thermal deformation model corresponding to the workpiece to be detected, and outputting a thermal deformation prediction workpiece drawing of the workpiece to be detected; The three-dimensional detection points corresponding to the workpiece to be detected are obtained, and the standard point data are generated based on the three-dimensional detection points and the thermal deformation prediction workpiece image file.
3. The workpiece detection method according to claim 2, characterized in that: The workpiece drawing file is the standard workpiece drawing file or the thermal deformation prediction workpiece drawing file.
4. The workpiece detection method according to claim 3, characterized in that: The target electrode includes a rough machining electrode and a fine machining electrode, the first tool position includes a first rough tool position for installing the rough machining electrode, and a first fine tool position for installing the fine machining electrode, and the method further includes: Adjusting the first roughing position to the current operating position, and controlling the roughing electrode to process the workpiece to be inspected; After the rough machining electrode has finished machining the workpiece to be inspected, the second tool position of the multi-tool position tool changing device is adjusted to the current operation position, the three-dimensional dot marking operation parameters of the workpiece to be inspected are obtained, and the target probe is controlled to detect the workpiece to be inspected based on the three-dimensional dot marking operation parameters to obtain actual dot marking data; Acquire standard point data of the workpiece to be detected, compare the actual dot data with the standard point data, and obtain a workpiece detection result corresponding to the workpiece to be detected; The first finishing tool position is adjusted to the current operating position, the discharge parameters of the finishing electrode are optimized according to the workpiece detection result, and based on the discharge parameters of the finishing electrode, the finishing electrode is controlled to process the workpiece to be detected.
5. The workpiece detection method according to claim 1, characterized in that: After the step of obtaining the workpiece detection result corresponding to the workpiece to be detected, the method further includes: Inputting the workpiece detection result into the spark machine electrode loss prediction model corresponding to the target electrode, and outputting the electrode loss information corresponding to the target electrode, wherein the electrode loss information includes the loss position and loss amount corresponding to the target electrode; Compensation processing operation parameters are generated according to the electrode loss information, and the target electrode is controlled to perform compensation processing on the workpiece to be inspected based on the compensation processing operation parameters.
6. The workpiece detection method according to any one of claims 1 to 5, characterized in that: Before controlling the target electrode to process the workpiece to be inspected, the method further includes: Raise the spark liquid at least to above a first water level of a machining pool of the spark machine, wherein the first water level makes the workpiece to be inspected suitable for an EDM machining environment; Before controlling the target probe to detect the workpiece to be detected based on the three-dimensional dot-marking operation parameters, the method further includes: The spark liquid is at least discharged below a second water level of a machining pool of the spark machine, wherein the second water level prevents the target probe from being immersed in the spark liquid during the process of the target probe detecting the workpiece to be detected, and the second water level is lower than the first water level.
7. A spark machine, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the workpiece detection method according to any one of claims 1 to 6 when executed by the processor.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the workpiece detection method according to any one of claims 1 to 6 is implemented.
9. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the workpiece detection method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Workpiece detection method, storage medium, console, control machine tool and machining system
CN119319488A
Straight row tool magazine of spark machine
CN216758478U