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, seamless connection between workpiece processing and detection is achieved, solving the problem that workpieces are difficult to detect in real time in EDM processing, and improving processing efficiency.

CN119772282AActive Publication Date: 2025-04-08GOERTEK INC

Patent Information

Application Number
CN202510273556.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-10
Publication Date
2025-04-08
Estimated Expiration
2045-03-10

AI Technical Summary

Technical Problem

During EDM processing, it is difficult to detect data in real time for workpieces, which leads to a secondary machine failure after being removed from the machine, which reduces processing efficiency.

Method used

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.

Benefits of technology

It realizes data detection before the workpiece is removed, avoids the situation where the machine fails after the machine and needs to be re-mounted, and improves the EDM processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119772282A_ABST
    Figure CN119772282A_ABST
Patent Text Reader

Abstract

The invention discloses a workpiece detection method, an electrical discharge machine, a computer readable storage medium and a program product, and relates to the technical field of electrical discharge machines, the method is applied to the electrical discharge machine, and the method comprises the steps that a first tool position of a multi-tool-position tool changing device is adjusted to a current operation station, and a target electrode is controlled to machine a to-be-detected workpiece; adjusting a second cutter position of the multi-cutter-position cutter changing device to a current operation position when the target electrode finishes machining one process position on the to-be-detected workpiece or the target electrode finishes machining the to-be-detected workpiece, acquiring a three-dimensional dotting operation parameter of the to-be-detected workpiece, and controlling the target probe to detect the to-be-detected workpiece based on the three-dimensional dotting operation parameter so as to detect the to-be-detected workpiece according to the three-dimensional dotting operation parameter. Obtaining actual dotting data; and obtaining standard point location data of the to-be-detected workpiece, and comparing the actual dotting data with the standard point location data to obtain a workpiece detection result corresponding to the to-be-detected workpiece. The machining efficiency of the spark machine can be improved, and secondary machining of workpieces is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of spark machines, and in particular to a workpiece detection method, a spark machine, a computer-readable storage medium, and a program product. Background Art

[0002] In modern manufacturing, the processing technology of spark machine (EDM, Electrical Discharge Machining) is highly favored because it can process high-hardness materials and workpieces with complex shapes. Due to its non-contact processing characteristics, EDM has become the core technology for processing high-hardness materials and complex cavities.

[0003] However, it is generally difficult to detect the workpiece data during the EDM processing on the spark machine. When the workpiece is detected as unqualified after leaving the machine, the workpiece needs to be put on the machine again, 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 an EDM workpiece is detected as unqualified after being taken off the machine, the workpiece needs to be put on the machine a second time, resulting in low EDM processing efficiency.

[0005] To achieve the above object, the present application provides a workpiece detection method, which is applied to a spark machine, wherein 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, and 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 one process position of the workpiece to be detected, or after the target electrode completes processing the workpiece to be detected, the second tool position of the multi-tool position tool changing device is adjusted to the current operation position, and the three-dimensional dotting operation parameters of the workpiece to be detected are obtained. Based on the three-dimensional dotting operation parameters, the target probe is controlled to detect the workpiece to be detected to obtain actual dotting data; The standard point data of the workpiece to be detected is obtained, and the actual dot data is compared with the standard point data to obtain a workpiece detection result corresponding to the workpiece to be detected.

[0006] In one embodiment, the spark machine further includes a temperature sensor, and before the step of acquiring the standard point data of the workpiece to be detected, the following steps are included: 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.

[0007] In one embodiment, before the step of obtaining the three-dimensional dot marking operation parameters of the workpiece to be inspected, the following steps are included: Input the standard workpiece drawing or the thermal deformation prediction workpiece drawing into the target detection point prediction model corresponding to the workpiece to be detected, and output the three-dimensional detection point corresponding to the workpiece to be detected; Based on the three-dimensional detection points, three-dimensional dot marking operation parameters of the workpiece to be detected are generated.

[0008] In one embodiment, after obtaining the workpiece detection result corresponding to the workpiece to be detected, the method further includes: 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.

[0009] In one embodiment, 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.

[0010] In one embodiment, 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.

[0011] In one embodiment, 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.

[0012] In addition, to achieve the above-mentioned purpose, the present application also provides a spark machine, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the workpiece detection method as described above is implemented.

[0013] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the workpiece detection method as described above is implemented.

[0014] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the workpiece detection method as described above is implemented.

[0015] The embodiment of the present application provides a workpiece detection method, a spark machine, a computer-readable storage medium and a program product. The workpiece detection method is applied to the spark machine, which includes a multi-tool tool changing device, a target electrode is installed at a first tool position of the multi-tool tool changing device, and a target probe is installed at a second tool position of the multi-tool tool changing device. The technical solution of the embodiment of the present application is to adjust the first tool position of the multi-tool tool changing device to the current operating position, control the target electrode to process the workpiece to be detected, and after the target electrode completes each process position of the workpiece to be detected, or after the target electrode completes processing the workpiece to be detected, the multi-tool tool changing device is adjusted to the current operating position. The second tool position of the workpiece to be detected is adjusted to the current operating position, the three-dimensional dot-marking operating parameters of the workpiece to be detected are obtained, and the target probe is controlled to detect the workpiece to be detected based on the three-dimensional dot-marking operating parameters to obtain actual dot-marking data, and then the standard point data of the workpiece to be detected is obtained, and the actual dot-marking data is compared with the standard point data to obtain the workpiece detection result corresponding to the workpiece to be detected. In this way, the data detection of the workpiece to be detected can be completed on the spark machine before the workpiece to be detected is not removed from the machine, avoiding the situation where the workpiece to be detected needs to be put on the machine again after being detected as unqualified after being removed from the machine, thereby improving the EDM processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0018] Figure 1 A schematic diagram of a process flow provided for the first embodiment of the workpiece detection method of the present application; Figure 2 A schematic diagram of a flow chart of a second embodiment of a workpiece detection method of the present application; Figure 3 A schematic diagram of a process flow provided for the third embodiment of the workpiece detection method of the present application; Figure 4 A schematic diagram of a process flow provided for a fourth embodiment of the workpiece detection method of the present application; Figure 5 A schematic diagram of a scene of a workpiece detection result of a workpiece to be detected provided in an embodiment of the present application; Figure 6 A schematic diagram of a workpiece data form provided in one embodiment of the present application; Figure 7 An overall flow chart of workpiece detection provided by an embodiment of the present application; Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the workpiece detection method in the embodiment of the present application.

[0019] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0020] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0021] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0022] In modern manufacturing, electrospark machining (EDM) technology is favored because of its ability to process high-hardness materials and complex-shaped workpieces. However, there is a significant challenge in the EDM process: it is difficult to detect workpiece data in real time during the machining process. This is because during the EDM 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 size, shape and surface quality of the workpiece in real time during the machining process. Therefore, when the workpiece is taken off the machine for inspection after machining, if unqualified conditions are found, the workpiece needs to be put back on the machine for secondary processing, which greatly increases the machining time and reduces the overall machining efficiency.

[0023] In this regard, the main solution of the embodiment of the present application is a workpiece detection method, which is applied to a spark machine, wherein the spark machine includes a multi-tool tool changing device, a target electrode is installed at a first tool position of the multi-tool tool changing device, and a target probe is installed at a second tool position of the multi-tool tool changing device, and the method includes: adjusting the first tool position of the multi-tool tool changing device to a current operating position, and controlling the target electrode to process the workpiece to be detected; after the target electrode completes processing of one process position of the workpiece to be detected, or after the target electrode completes processing of the workpiece to be detected, adjusting the second tool position of the multi-tool tool changing device to the current operating position, obtaining 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; obtaining standard point position data of the workpiece to be detected, comparing the actual dot marking data with the standard point position data, and obtaining the workpiece detection result corresponding to the workpiece to be detected.

[0024] The embodiment of the present application adjusts the first tool position of a multi-tool tool changing device to the current operating position, controls the target electrode to process the workpiece to be detected, and adjusts the second tool position of the multi-tool tool changing device to the current operating position after the target electrode completes each process position of the workpiece to be detected, or after the target electrode completes processing the workpiece to be detected, obtains the three-dimensional dot-marking operating parameters of the workpiece to be detected, controls the target probe to detect the workpiece to be detected based on the three-dimensional dot-marking operating parameters, obtains actual dot-marking data, and then obtains standard point data of the workpiece to be detected, compares the actual dot-marking data with the standard point data, and obtains the workpiece detection result corresponding to the workpiece to be detected, thereby completing the data detection of the workpiece to be detected on the spark machine before the workpiece to be detected is removed from the machine, avoiding the situation where the workpiece to be detected needs to be put on the machine again after being detected as unqualified after being removed from the machine, thereby improving the EDM processing efficiency.

[0025] It should be noted that the execution subject of the embodiment of the present application is a spark machine, or a console connected to the spark machine for communication, and the embodiment of the present application does not specifically limit this. The following embodiments of the present application are described below by taking the spark machine as the execution subject.

[0026] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0027] The present application proposes a workpiece detection method according to a first embodiment.

[0028] Please refer to Figure 1 , Figure 1 A schematic diagram of the process flow of the first embodiment of the workpiece detection method of the present application.

[0029] In this embodiment, the workpiece detection method is applied to a spark machine, which includes a multi-tool tool changer, a target electrode is installed at a first tool position of the multi-tool tool changer, and a target probe is installed at a second tool position of the multi-tool tool changer. The method may include steps S100 to S300: Step S100, 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; Those skilled in the art know that an EDM (Electrical Discharge Machining) is a device that uses the principle of electric spark discharge to process workpieces, and is widely used in the processing of high-hardness materials and complex-shaped workpieces.

[0030] It should be noted that the target electrode refers to the electrode used for electric spark machining in the spark machine, which can be made of conductive materials (such as copper, graphite, etc.). The target probe is a tool used to detect the workpiece, which can be composed of a high-precision sensor and a measuring head. The multi-tool position tool changing device of the embodiment of the present application is a mechanical device that can quickly switch between different tools (such as electrodes, probes, etc.), and the multi-tool position tool changing device includes multiple tool positions, each of which can be installed with different tools.

[0031] It should also be noted that, in this embodiment, the first tool position refers to the tool position for installing the target electrode in the multi-tool position tool changer, the second tool position refers to the tool position for installing the target probe in the multi-tool position tool changer, and the current operation station is an execution station used for processing or detection. Specifically, when the target electrode is in the current operation station, the spark machine will run a pre-set workpiece processing program to control the target electrode to process the workpiece to be detected. When the target probe is in the current operation station, the spark machine will run a pre-set workpiece detection program to control the target probe to detect the workpiece to be detected.

[0032] This embodiment adjusts the first tool position of the multi-tool position tool changing device to the current operating position so that the target electrode installed on the first tool position can be correctly positioned and the workpiece to be inspected can be electrospark machined, thereby ensuring the accuracy and efficiency of the machining process.

[0033] Step S200, after the target electrode completes processing of a workpiece to be inspected at each process position, or after the target electrode completes processing of the workpiece to be inspected, the second tool position of the multi-tool position tool changing device is adjusted to the current operation position, and the three-dimensional dotting operation parameters of the workpiece to be inspected are obtained. Based on the three-dimensional dotting operation parameters, the target probe is controlled to inspect the workpiece to be inspected, and actual dotting data is obtained; It should be noted that the process position refers to the specific processing position that needs to be processed on the workpiece during the spark machining process. Different process positions usually correspond to different processing positions, and each process position corresponds to an independent discharge task or operation. The three-dimensional dot-marking operating parameters refer to the operating parameters required by the target probe when detecting the workpiece, which may include the motion trajectory of the probe, the location of the detection point, the detection accuracy, etc. The actual dot-marking data refers to the measurement data obtained by the target probe when detecting the workpiece to be detected, which may include information such as the size, shape and surface quality of the workpiece to be detected.

[0034] In this embodiment, the three-dimensional dot marking operation parameters of the workpiece to be inspected can be prepared in advance to facilitate real-time acquisition.

[0035] In this embodiment, after the target electrode completes the EDM machining of one process position of the workpiece to be inspected, or a whole set of EDM machining, the second tool position of the multi-tool position tool changing device is adjusted to the current operating position, so that the target probe can be correctly positioned and inspect the workpiece to be inspected, and the operating parameters required by the target probe when inspecting the workpiece, that is, the three-dimensional dotting operating parameters, are obtained, so as to control the target probe to inspect the workpiece to be inspected based on the three-dimensional dotting operating parameters, and obtain the actual dotting data of the workpiece to be inspected, thereby achieving the goal of not having to remove the workpiece from the machine, and immediately performing the inspection during or after the machining is completed, thereby quickly finding out whether the workpiece is qualified.

[0036] Step S300, obtaining standard point data of the workpiece to be inspected, comparing the actual dot data with the standard point data, and obtaining a workpiece inspection result corresponding to the workpiece to be inspected.

[0037] It should be noted that standard point data refers to theoretical data of workpiece size, shape and position that are pre-set based on the design drawings or technical requirements of the workpiece. These data are the basis for judging whether the workpiece is qualified.

[0038] In this embodiment, standard point data of the workpiece to be inspected can be prepared in advance to facilitate real-time acquisition.

[0039] It should also be noted that the workpiece inspection result refers to the conclusion or report obtained after quality inspection of the workpiece to be inspected by comparing the actual dot data with the standard dot data. For example, the workpiece inspection result may include status information such as qualified, unqualified, or needing rework.

[0040] This embodiment integrates a multi-tool tool changer on the spark machine, integrates the target electrode for processing and the target probe for detection in the same device, and realizes the integration of processing and detection. Therefore, during the processing or after the processing, the workpiece can be tested without taking it off the machine, and then quickly find out whether the workpiece is qualified, avoiding the situation in the traditional method where the workpiece is taken off the machine for testing and then put back on the machine for secondary processing, significantly reducing the number and time of the workpiece on and off the machine, greatly shortening the overall processing cycle, improving processing efficiency, optimizing the overall processing flow of the spark machine, and reducing unnecessary processing steps and resource waste. It helps to reduce production costs and improve production efficiency.

[0041] 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: Step S400, inputting the workpiece detection result into the spark machine electrode wear prediction model corresponding to the target electrode, and outputting the electrode wear information corresponding to the target electrode, wherein the electrode wear information includes the wear position and wear amount corresponding to the target electrode; It should be noted that electrode loss information refers to the loss 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 during the machining process based on workpiece inspection results, machining parameters and other information.

[0042] Step S500 , generating compensation processing operation parameters according to electrode loss information, and controlling the target electrode to perform compensation processing on the workpiece to be inspected based on the compensation processing operation parameters.

[0043] It should be noted that the compensatory processing operation parameters refer to new processing parameters generated according to the electrode loss information, which are used to control the target electrode to perform compensatory processing on the workpiece to be inspected, so as to correct the processing error caused by the electrode loss.

[0044] This embodiment uses a spark machine electrode loss prediction model to accurately predict the electrode loss information of the target electrode, thereby generating compensatory processing operating parameters based on the electrode loss information, and controlling the target electrode to perform compensatory processing on the workpiece to be inspected based on the compensatory processing operating parameters, thereby correcting the processing error caused by electrode loss, ensuring the processing quality, and further reducing the workpiece scrap rate caused by overcutting and reducing the need for secondary processing.

[0045] In addition, this embodiment can also promptly remind the staff to replace the target electrode when the target electrode is seriously worn out.

[0046] In this embodiment, the first tool position of the multi-tool tool changing device is adjusted to the current operating position, and the target electrode is controlled to process the workpiece to be detected. After the target electrode completes each process position of the workpiece to be detected, or after the target electrode completes processing the workpiece to be detected, the second tool position of the multi-tool tool changing device is adjusted to the current operating position, and the three-dimensional dot marking operating parameters of the workpiece to be detected are obtained. Based on the three-dimensional dot marking operating parameters, the target probe is controlled to detect the workpiece to be detected to obtain actual dot marking data, and then the standard point position data of the workpiece to be detected is obtained. The actual dot marking data is compared with the standard point position data to obtain 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 removed from the machine, avoiding the situation where the workpiece to be detected needs to be put on the machine again if it is found to be unqualified after being removed from the machine, thereby improving the EDM processing efficiency.

[0047] Based on the above first embodiment, a workpiece detection method according to a second embodiment of the present application is proposed.

[0048] In the second embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction and will not be described in detail later.

[0049] Please refer to Figure 2 , Figure 2 A schematic diagram of a flow chart of a second embodiment of a workpiece detection method of the present application.

[0050] In this embodiment, the spark machine further includes a temperature sensor. Before the step of obtaining the standard point data of the workpiece to be detected in step S300, steps S610 to S630 may also be included: Step S610, detecting the workpiece temperature of the workpiece to be detected by a temperature sensor, and determining the thermal deformation coefficient corresponding to the workpiece temperature; Those skilled in the art will know that a temperature sensor is a sensor used to detect temperature.

[0051] It should be noted that the workpiece temperature refers to the actual temperature of the workpiece during the EDM process. Due to different ambient temperatures and the fact that EDM generates heat that increases the workpiece temperature, the workpiece will be thermally deformed due to the principle of thermal expansion and contraction.

[0052] It should also be noted that the thermal deformation coefficient is a parameter used to describe the degree of thermal deformation of a workpiece at a specific temperature. The thermal deformation coefficient can be calculated based on the material characteristics of the workpiece (such as the thermal expansion coefficient) and the workpiece temperature.

[0053] This embodiment detects the workpiece temperature of the workpiece to be detected by a temperature sensor and determines the corresponding thermal deformation coefficient, thereby providing basic data for subsequent precise measurement and correction, ensuring that the impact caused by the change in workpiece temperature during the electrospark machining process is brought under control to avoid affecting the accuracy of the final measurement result.

[0054] Step S620, obtaining a standard workpiece drawing file corresponding to the workpiece to be detected, inputting the thermal deformation coefficient and the standard workpiece drawing file into a machining thermal deformation model corresponding to the workpiece to be detected, and outputting a thermal deformation prediction workpiece drawing file of the workpiece to be detected; It should be noted that the standard workpiece drawing can be a workpiece model constructed based on the design, shape, size, technical requirements and other information of the workpiece to be inspected, and the ratio between the standard workpiece drawing and the workpiece to be inspected is generally one to one.

[0055] Exemplarily, the standard workpiece drawing may include: various views, dimension markings, tolerance requirements and other detailed information of the workpiece to be inspected, which is not limited in this embodiment.

[0056] 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 thermal deformation prediction workpiece drawing is a three-dimensional model or data file of the workpiece calculated by the machining thermal deformation model, which reflects the predicted size and shape changes of the workpiece under the influence of temperature.

[0057] This embodiment inputs the thermal deformation coefficient and the standard workpiece drawing into the processing thermal deformation model, which can predict the thermal deformation of the workpiece to be inspected in advance and obtain the corresponding thermal deformation prediction workpiece drawing, so as to facilitate the subsequent generation of more accurate standard point data based on the thermal deformation prediction workpiece drawing, thereby ensuring the accuracy of the workpiece inspection results.

[0058] Step S630, obtaining the three-dimensional detection points corresponding to the workpiece to be detected, and generating standard point data based on the three-dimensional detection points and the thermal deformation prediction workpiece image file.

[0059] It should be noted that the three-dimensional detection point refers to the key point position on the workpiece that needs to be accurately measured during the workpiece detection process.

[0060] Compared to obtaining standard point data by probing the standard workpiece drawing, this embodiment performs probe probing on the three-dimensional detection points on the thermal deformation predicted workpiece drawing, taking into account the influence of factors such as ambient temperature and workpiece processing heat generation during EDM on the workpiece size, thereby generating more accurate standard point data, reducing the number of workpiece failures caused by thermal deformation and reducing the need for secondary processing.

[0061] In this embodiment, the workpiece temperature of the workpiece to be inspected 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 inspected, so as to use the machining thermal deformation model to predict the thermal deformation of the workpiece to be inspected during the electrospark machining process, and obtain the corresponding thermal deformation prediction workpiece image file, thereby generating more accurate standard point data during the detection process, reducing the impact of temperature changes, and ensuring the accuracy and reliability of the final workpiece detection results.

[0062] Furthermore, in a feasible implementation manner, before the step of obtaining the three-dimensional dot marking operation parameters of the workpiece to be inspected in step S200, steps A10 to A20 may also be included: Step A10, inputting 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 outputting the three-dimensional detection point corresponding to the workpiece to be detected; It should be noted that the target detection point prediction model is a mathematical model that is used to predict the key point positions that need to be accurately measured during the detection process of the workpiece based on the workpiece drawing (standard workpiece drawing or thermal deformation prediction workpiece drawing), that is, the three-dimensional detection point.

[0063] This embodiment inputs the standard workpiece drawing or thermal deformation predicted workpiece drawing of the workpiece to be inspected into the target detection point prediction model corresponding to the workpiece to be inspected, and automatically identifies the three-dimensional detection points of the workpiece to be inspected through the target detection point prediction model. This can effectively reduce the error and workload of manual point selection, and ensure that the three-dimensional detection points can more comprehensively reflect the size and shape characteristics of the workpiece, reducing the possibility of missed detection or false detection.

[0064] Step A20, based on the three-dimensional detection points, generate three-dimensional dot marking operation parameters of the workpiece to be detected.

[0065] In this embodiment, the three-dimensional detection points are generally obtained by engineers opening the standard workpiece drawing through three-dimensional design software, and then determining the positions on the standard workpiece drawing that should be inspected based on the experience of the engineers, and then manually marking points at these positions that are considered to need to be inspected, to obtain multiple three-dimensional detection points. In this embodiment, the standard workpiece drawing or the thermal deformation prediction workpiece drawing of the workpiece to be inspected is input into the target detection point prediction model corresponding to the workpiece to be inspected, and the three-dimensional detection points of the workpiece to be inspected are automatically identified through 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 inspected are automatically generated, reducing the time and error of manually setting parameters, thereby improving detection efficiency and accuracy, and ensuring that the target probe can perform measurement and marking in the optimal path during the detection process, thereby obtaining accurate and reliable actual marking data.

[0066] 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 also be included: Step B10, based on the workpiece detection result, determining the key detection points in the three-dimensional detection points where the processing error is greater than a preset threshold; In this embodiment, the workpiece detection results may include the processing error of the three-dimensional detection point. The processing error refers to the deviation between the actual dot data corresponding to the three-dimensional detection point and the standard point data. The preset threshold refers to the maximum allowable error range set in advance according to the process requirements of the workpiece to be inspected.

[0067] 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.

[0068] This implementation method identifies key detection points with larger processing errors among the three-dimensional detection points through a preset threshold, accurately locates the problem areas in the processing process, and iteratively optimizes the target detection point prediction model, so that among the multiple three-dimensional detection points generated by the target detection point prediction model, more dense three-dimensional detection points can be distributed in the processing risk areas where EDM processing errors are likely to occur (processing errors include inadequate processing, excessive processing allowances, or overcutting, i.e., excessive processing), while more sparse three-dimensional detection points are distributed in ordinary areas where EDM processing errors will not or are not likely to occur, ensuring that the updated model can generate three-dimensional detection points covering key detection points in subsequent detections, so that high-risk processing areas can be detected more accurately, while the number of invalid three-dimensional points can be reduced, so as to improve the detection efficiency on the basis of more accurately detecting the location of the workpiece processing errors, thereby continuously improving the accuracy and reliability of the three-dimensional detection points generated by the target detection point prediction model, and improving the workpiece processing efficiency.

[0069] Based on the above embodiments, a workpiece detection method according to a third embodiment of the present application is proposed.

[0070] In the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction and will not be described in detail later.

[0071] Please refer to Figure 3 , Figure 3 A schematic diagram of a flow chart of the third embodiment of the workpiece detection method of the present application.

[0072] In this embodiment, 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 workpiece detection method may further include steps S710 to S740: Step S710, adjusting the first roughing position to the current operating position, and controlling the roughing electrode to process the workpiece to be inspected; It should be noted that rough machining electrodes refer to electrodes used for preliminary machining of workpieces. Their main task is to quickly remove a large amount of material to form the basic shape of the workpiece, and the accuracy requirements are relatively low. Finishing electrodes refer to electrodes used for fine machining of workpieces. Their main task is to improve the dimensional accuracy and surface quality of the workpiece, and the accuracy requirements are higher than those of roughing electrodes.

[0073] It should also be noted that the first rough tool position refers to a tool position for installing a rough machining electrode, and the first fine tool position refers to a tool position for installing a fine machining electrode.

[0074] This embodiment adjusts the first roughing position to the current operating position, thereby controlling the rough machining electrode to perform preliminary machining on the workpiece to be inspected, efficiently removing a large amount of material, and forming the basic shape of the workpiece, thereby preparing for subsequent fine machining.

[0075] Step S720, 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 inspect the workpiece to be inspected based on the three-dimensional dot marking operation parameters to obtain actual dot marking data; Step S730, obtaining standard point data of the workpiece to be inspected, comparing the actual dot data with the standard point data, and obtaining a workpiece inspection result corresponding to the workpiece to be inspected; In this embodiment, after the rough machining electrode completes the preliminary machining of the workpiece to be inspected, the fine machining of the workpiece to be inspected is not completed by the fine machining electrode first, but the second tool position is switched to use the target probe to perform probe dotting on the workpiece to be inspected after the preliminary machining to obtain the current actual dotting data, thereby obtaining the current workpiece detection result, and then according to the current workpiece detection result, the parameters of the fine machining electrode are adjusted to improve the quality and efficiency of the fine machining, thereby ensuring that the workpiece to be inspected after fine machining can achieve higher quality and avoid scrapping of the workpiece.

[0076] Step S740, adjusting the first finishing tool position to the current operating position, optimizing the discharge parameters of the finishing electrode according to the workpiece detection result, and controlling the finishing electrode to process the workpiece to be detected based on the discharge parameters of the finishing electrode.

[0077] It should be noted that discharge parameters refer to the parameters that control the discharge process during EDM, usually including discharge energy, discharge frequency, electrode feed speed, etc.

[0078] This implementation inserts a probe detection link between the rough machining and fine machining of the spark machine, so that the discharge parameters of the fine machining electrode are dynamically adjusted according to the inspection results of the workpiece after rough machining, thereby reducing the need for secondary machining, while also reducing the risk of overall scrapping of the workpiece and material loss, and ensuring that higher precision and surface quality can be achieved during fine machining, thereby improving overall machining efficiency and product quality.

[0079] Further, in a feasible implementation manner, before the step of controlling the target electrode to process the workpiece to be inspected in step S100, the workpiece inspection method may further include step C10: Step C10, raising the spark liquid to at least above a first water level of a processing pool of the spark machine, wherein the first water level makes the workpiece to be inspected suitable for an EDM processing environment; It should be noted that the first water level refers to the lowest water level to which the spark fluid needs to rise during the EDM processing, which is used to ensure that the workpiece to be inspected is suitable for the EDM processing environment.

[0080] This embodiment ensures that the spark liquid covers the entire workpiece to be inspected during the electrospark machining process by raising the spark liquid above the first water level before controlling the target electrode to process the workpiece to be inspected, thereby providing good cooling and chip removal conditions, preventing local overheating and material adhesion, effectively suppressing discharge sparks, reducing fire risks, and improving operational safety, while reducing workpiece damage caused by high temperature and improving workpiece machining quality and efficiency.

[0081] Before the step of controlling the target probe to detect the workpiece to be detected based on the three-dimensional dot operation parameters in step 200, the workpiece detection method may further include step D10: Step D10, discharge the spark liquid at least to below the second water level of the processing pool of the spark machine, wherein the second water level ensures that the target probe will not be 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.

[0082] It should be noted that the second water level line refers to the highest water level line to which the spark liquid needs to be discharged when the target probe is inspecting the workpiece to be inspected, so as to ensure that the target probe will not be immersed in the spark liquid.

[0083] This embodiment ensures that the target probe will not be immersed in the spark liquid, avoids the spark liquid from contaminating the probe and its measurement system, maintains the cleanliness and sensitivity of the probe, reduces measurement errors caused by spark liquid residue, improves detection efficiency and reliability, ensures the accuracy of detection results, and extends the service life of the probe.

[0084] Furthermore, before controlling the target probe to detect 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.

[0085] In one embodiment, the cleaning method includes: the spark machine first controls the water gun device to automatically flush the workpiece to be inspected, and then automatically blows the workpiece to be inspected through the air gun device.

[0086] Before controlling the target probe to inspect the workpiece to be inspected, the embodiment of the present application controls the water gun device and / or the air gun device to automatically clean the workpiece to be inspected, so that the spark liquid remaining on the surface of the workpiece, the carbon slag generated by EDM processing and other residues 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 the probe detection, thereby ensuring the reliability of the detection result.

[0087] Based on the above embodiments, a workpiece detection method according to a fourth embodiment of the present application is proposed.

[0088] In the fourth embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction and will not be described in detail later.

[0089] Please refer to Figure 4 , Figure 4 A schematic diagram of a flow chart of the third embodiment of the workpiece detection method of the present application.

[0090] In this embodiment, the step of comparing the actual dot data with the standard dot data in step S300 to obtain the workpiece detection result corresponding to the workpiece to be detected may include steps S310 to S330: Step S310, comparing the actual point data with the standard point data to obtain the error result of the three-dimensional detection point; It should be noted that the error result may be the degree to which the actual point data deviates from the standard point data.

[0091] Step S320, generating a workpiece data form corresponding to the workpiece to be inspected according to the actual dot data and the error result; Step S330: Using the workpiece data form as the workpiece detection result corresponding to the workpiece to be detected.

[0092] It should be noted that the workpiece data form may be a table that records and presents various test results related to the workpiece to be tested after the workpiece to be tested is tested for size qualification. Exemplarily, the workpiece data form may include the serial number and position of each three-dimensional detection point, the error of each position direction, etc., which is not limited in this embodiment. In this embodiment, by comparing the workpiece data form obtained by comparing the degree of deviation of the three-dimensional detection points from the standard, the gap between the actual situation of the workpiece to be detected and the standard can be clearly identified, so as to facilitate the subsequent reprocessing of the workpiece to be detected. In a feasible implementation, step S310 may include: parsing the spatial coordinate values ​​corresponding to each actual point in the actual dot data; comparing the spatial coordinate values ​​with the standard point data to obtain the error values ​​between the actual point and the three-dimensional detection point on each coordinate axis; normalizing the error values ​​of each coordinate axis to obtain the error coefficient; Correspondingly, step S320 may include: generating a workpiece data form corresponding to the workpiece to be inspected according to the spatial coordinate values ​​and the error coefficients. It should be noted that the spatial coordinate value can be a numerical value used to describe the specific position of the actual point on the workpiece to be detected. The spatial coordinate value can generally use the boundaries of the top view of the workpiece to be detected as the x-axis and y-axis, and the workpiece to be detected as the z-axis to describe the position; or any actual point can be selected as a reference point, and described by the relative position of the reference point and other points, which is not limited in this embodiment. It should be noted that the reference system established by the spatial coordinate value and the position data of the standard point data should be unified to ensure the accuracy of the data. It is understandable that the error value can be the difference obtained by comparing the values ​​of the x-axis, y-axis and z-axis of the spatial coordinate value with the values ​​of the x-axis, y-axis and z-axis of the position data of the standard point data. Since the x-axis, y-axis and z-axis all represent errors, in order to unify the errors between the actual points and the three-dimensional detection points, the error values ​​of each coordinate axis can be unified (for example, the error values ​​of the x-axis, y-axis and z-axis can be vector processed, and the error coefficient can be represented by the final vector value; or two of the coordinate axes can be selected as reference planes, and the error coefficient can be represented by the error value of another coordinate axis relative to the reference plane), thereby obtaining a unified error coefficient representing the three-dimensional detection points.

[0093] For ease of understanding, the following is an example. Figure 5 Take this as an example to illustrate: Figure 5 A schematic diagram of a scene of a workpiece detection result of a workpiece to be detected provided in an embodiment of the present application. Figure 5 As shown in the figure, actual points are marked on the workpiece to be inspected, and the actual point sequence number 01 to the actual point sequence number 18 are exemplified. According to the spatial coordinate values ​​and error coefficients obtained by the actual point sequence number 01 to the actual point sequence number 18, the workpiece data form generated is as follows Figure 6 As shown, Figure 6 A schematic diagram of a workpiece data form provided in accordance with an embodiment of the present application.

[0094] like Figure 5 and Figure 6As shown, the actual point number 01, the coordinate value of the x-axis is -45.000, the coordinate value of the y-axis is 2.354, the coordinate value of the z-axis is -19.543, and its error coefficient is 0.001; the actual point number 02, the coordinate value of the x-axis is -0.988, the coordinate value of the y-axis is -22.500, and the coordinate value of the z-axis is -17.825, and its error coefficient is -0.011; the actual point number 03, the coordinate value of the x-axis is 45.000, the coordinate value of the y-axis is 1.966, and the coordinate value of the z-axis is -19.319, and its error coefficient is -0.006; the actual point number 04, the coordinate value of the x-axis is 1.111, the coordinate value of the y-axis is 22.500, and the coordinate value of the z-axis is -19.903, and its error coefficient is The error coefficient is 0.004; the actual point number 05, the coordinate value of the x-axis is 10.901, the coordinate value of the y-axis is 11.921, and the coordinate value of the z-axis is -5.342, and its error coefficient is 0.003; the actual point number 06, the coordinate value of the x-axis is 7.604, the coordinate value of the y-axis is 11.897, and the coordinate value of the z-axis is -4.659, and its error coefficient is 0.002; the actual point number 07, the coordinate value of the x-axis is 31.528, the coordinate value of the y-axis is 11.890, and the coordinate value of the z-axis is -4.443, and its error coefficient is 0.003; the actual point number 08, the coordinate value of the x-axis is 28.068, the coordinate value of the y-axis is 11.915, and the coordinate value of the z-axis is -5.165 , its error coefficient is 0.003; the actual point number 09, the coordinate value of the x-axis is 9.682, the coordinate value of the y-axis is -5.816, and the coordinate value of the z-axis is -3.897, and its error coefficient is 0.002; the actual point number 010, the coordinate value of the x-axis is 29.943, the coordinate value of the y-axis is -5.848, and the coordinate value of the z-axis is -3.543, and its error coefficient is 0.003; the actual point number 11, the coordinate value of the x-axis is 9.611, the coordinate value of the y-axis is -11.153, and the coordinate value of the z-axis is -3.533, and its error coefficient is -0.001; the actual point number 12, the coordinate value of the x-axis is 30.076, the coordinate value of the y-axis is -11.117, and the coordinate value of the z-axis is - 3.318, its error coefficient is -0.001; the actual point number 13, the coordinate value of the x-axis is 8.494, the coordinate value of the y-axis is 7.880, and the coordinate value of the z-axis is -3.899, and its error coefficient is 0.000; the actual point number 14, the coordinate value of the x-axis is 31.311, the coordinate value of the y-axis is 7.876, and the coordinate value of the z-axis is -4.037, and its error coefficient is 0.001; the actual point number 15, the coordinate value of the x-axis is 34.362, the coordinate value of the y-axis is 9.863, and the coordinate value of the z-axis is -3.746, and its error coefficient is 0.001; the actual point number 16, the coordinate value of the x-axis is 4.557, the coordinate value of the y-axis is 9.923, and the coordinate value of the z-axis is -3.641, its error coefficient is 0.001; the actual point number 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, and its error coefficient is -0.001; the actual point number 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, and its error coefficient is 0.00. .

[0095] Among them, the error coefficient of 0.000 means that there is no error between the actual point and the three-dimensional detection point, and the positive and negative error coefficients indicate that there is an error between the actual point and the three-dimensional detection point; the positive error coefficient also indicates that in the cutting process, the size of the actual point is out of tolerance, that is, the actual processing size is larger than the ideal size, and there may be overcutting; the negative error coefficient also indicates insufficient size, that is, the actual processing size is smaller than the ideal size, and there may be undercutting.

[0096] In this embodiment, the specific position 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 located and distinguished.

[0097] Specifically, in order to help understand this embodiment, refer to Figure 7 , Figure 7 The overall flow chart of workpiece detection provided in one embodiment of the present application. First, the workpiece drawing is dotted to determine the position of the workpiece to be detected, and the standard point position data is obtained. Then, the standard point position 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 dot the workpiece to be detected to obtain the actual dot data. Then, the machine tool of the spark machine transmits the actual dot data back to the control console of the spark machine, and the control console compares the actual dot data with the standard point data to generate the workpiece detection result.

[0098] It should be noted that the above examples are only used to assist in understanding the present application and do not constitute a limitation on the workpiece detection method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0099] In addition, please refer to Figure 8 , Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the workpiece detection method in the embodiment of the present application.

[0100] 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-mentioned embodiment.

[0101] Reference below Figure 8 , which shows a structural schematic diagram of a spark machine suitable for implementing the embodiment of the present application. Figure 8 The spark machine shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0102] like Figure 8 As shown, the spark machine may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 to a random access memory 1004. In 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. An 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 touch pad, 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 by wire to exchange data. Although the figures show a spark machine with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented or have instead.

[0103] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. 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 includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0104] The spark machine provided by the present 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 unloaded from the machine, the workpiece needs to be loaded onto the machine again, resulting in low EDM processing efficiency. Compared with the prior art, the beneficial effects of the spark machine provided by the present application are the same as the beneficial effects of the workpiece detection method provided by the above embodiment, and the other technical features of the spark machine are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0105] It should be understood that the various parts 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 any one or more embodiments or examples in a suitable manner.

[0106] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the above claims.

[0107] In addition, the present application also provides a computer-readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, the computer-readable program instructions being used to execute the steps of the workpiece detection method in the above-mentioned embodiment.

[0108] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical fiber, a portable compact disk read-only memory, an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0109] The computer-readable storage medium may be included in the spark machine; or may exist independently without being assembled into the spark machine.

[0110] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the spark machine, the spark machine: adjusts the first tool position of the multi-tool tool changing device to the current operating position, and controls the target electrode to process the workpiece to be inspected; after the target electrode completes each process position of the workpiece to be inspected, or after the target electrode completes processing the workpiece to be inspected, adjusts the second tool position of the multi-tool tool changing device to the current operating position, obtains the three-dimensional dotting operating parameters of the workpiece to be inspected, and controls the target probe to detect the workpiece to be inspected based on the three-dimensional dotting operating parameters to obtain actual dotting data; obtains standard point data of the workpiece to be inspected, compares the actual dotting data with the standard point data, and obtains the workpiece detection result corresponding to the workpiece to be inspected.

[0111] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate 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 may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0112] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0113] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0114] The computer-readable storage medium provided by the present application stores computer-readable program instructions (i.e., computer programs) for executing the steps of the above-mentioned workpiece detection method, which can solve the technical problem that when the EDM workpiece is detected as unqualified after leaving 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 by the present application are the same as the beneficial effects of the workpiece detection method provided by the above-mentioned embodiment, and will not be repeated here.

[0115] In addition, an embodiment of the present application also provides a computer program product, including a computer program, which implements the steps of the workpiece detection method in the above embodiment when executed by a processor.

[0116] The computer program product provided by the present application can solve the technical problem that when an EDM workpiece is detected as unqualified after leaving 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 by the embodiment of the present application are the same as the beneficial effects of the workpiece detection method provided by the above embodiment, which will not be repeated here.

[0117] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are 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 one process position of the workpiece to be detected, or after the target electrode completes processing the workpiece to be detected, the second tool position of the multi-tool position tool changing device is adjusted to the current operation position, and the three-dimensional dotting operation parameters of the workpiece to be detected are obtained. Based on the three-dimensional dotting operation parameters, the target probe is controlled to detect the workpiece to be detected to obtain actual dotting data; The standard point data of the workpiece to be detected is obtained, and the actual dot data is compared with the standard point data to obtain a workpiece detection result corresponding to the workpiece to be detected.

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: Before the step of obtaining the three-dimensional dot marking operation parameters of the workpiece to be inspected, the method includes: Input the standard workpiece drawing or the thermal deformation prediction workpiece drawing into the target detection point prediction model corresponding to the workpiece to be detected, and output the three-dimensional detection point corresponding to the workpiece to be detected; Based on the three-dimensional detection points, three-dimensional dot marking operation parameters of the workpiece to be detected are generated.

4. The workpiece detection method according to claim 3, characterized in that: After obtaining the workpiece detection result corresponding to the workpiece to be detected, the method further includes: 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.

5. The workpiece detection method according to claim 4, 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.

6. 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.

7. The workpiece detection method according to any one of claims 1 to 6, 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.

8. 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 7 when executed by the processor.

9. 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 7 is implemented.

10. 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 7 is implemented.

Citation Information

Patent Citations

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

    CN113779731A

  • Numerical control spark machine built-in machining and detection integrated method based on three-dimensional simulation

    CN117444329A

  • Cutter lifting height control system of electric spark machine tool

    CN119077071A

  • Workpiece detection method, storage medium, console, control machine tool and machining system

    CN119319488A

  • Straight row tool magazine of spark machine

    CN216758478U

Cited By

  • Automatic detection method and system, coordinate measuring machine and readable storage medium

    CN120426925A

  • Automated inspection method, system, coordinate measuring machine, and readable storage medium

    CN120426925B