Electrode three-coordinate detection method and device, machine tool equipment and program product

Through automated electrode three-dimensional model processing and programming file generation, the problems of low efficiency and poor accuracy of traditional electrode three-coordinate detection methods are solved, and an efficient and accurate detection process is achieved.

CN119845202APending Publication Date: 2025-04-18深圳模德宝科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411934449.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The traditional electrode three-coordinate detection method relies on manual operation, resulting in low detection efficiency and reduced accuracy.

Method used

By obtaining the three-dimensional model of the electrode to be detected, a pre-programmed file is automatically generated and the target programming file is generated according to the operation, and the machine tool equipment is controlled to perform three-coordinate detection.

Benefits of technology

It realizes efficient and accurate programming, and improves the efficiency and accuracy of three-coordinate detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119845202A_ABST
    Figure CN119845202A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of measurement, and provides an electrode three-coordinate detection method and device, machine tool equipment and a program product, and the method comprises the steps: obtaining at least one to-be-detected electrode, and the electrode data of each to-be-detected electrode; if it is detected that a target detection electrode in the at least one to-be-detected electrode meets a programming triggering condition, generating a pre-programming file of the target detection electrode based on a target electrode three-dimensional model of the target detection electrode; and in response to the operation of performing three-coordinate detection on the target detection electrode, generating a target programming file of the target detection electrode based on the pre-programming file of the target detection electrode, and controlling the machine tool equipment to perform three-coordinate detection on the target detection electrode based on the target programming file. According to the method, the pre-programming file of the target detection electrode can be automatically triggered and generated, and then three-coordinate detection is performed by generating the target programming file, so that efficient and accurate programming is realized, and the efficiency and accuracy of three-coordinate detection are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of measurement technology, and in particular relates to an electrode three-coordinate detection method, device, machine tool equipment and program product. Background Art

[0002] Three-coordinate detection is a precise measurement method for inspecting workpieces. It is widely used in modern industries such as machinery manufacturing and automobile industry. Among them, electrode three-coordinate detection plays an important role in electrode processing quality control.

[0003] Traditional electrode three-coordinate detection methods usually rely on manual programming, which not only affects the efficiency of detection, but is also prone to human errors, resulting in a serious decrease in the accuracy of the detection results. Summary of the invention

[0004] The embodiments of the present application provide an electrode three-coordinate detection method, device, machine tool equipment and program product, which can realize efficient and accurate programming and improve the efficiency and accuracy of three-coordinate detection.

[0005] In a first aspect, an embodiment of the present application provides a method for detecting three-coordinates of an electrode, comprising:

[0006] Acquire at least one electrode to be detected and electrode data of each electrode to be detected, wherein the electrode data at least includes a three-dimensional model of the electrode;

[0007] If it is detected that at least one target detection electrode among the electrodes to be detected meets the programming trigger condition, a pre-programming file of the target detection electrode is generated based on the target electrode three-dimensional model of the target detection electrode;

[0008] In response to the operation of performing three-coordinate detection on the target detection electrode, a target programming file of the target detection electrode is generated based on the pre-programming file of the target detection electrode, and the machine tool equipment is controlled to perform three-coordinate detection on the target detection electrode based on the target programming file, wherein the target programming file is a programming file corresponding to the type of the machine tool equipment.

[0009] In a second aspect, an embodiment of the present application provides an electrode three-coordinate detection device, comprising:

[0010] A first acquisition module, used to acquire at least one electrode to be detected and electrode data of each electrode to be detected, wherein the electrode data at least includes a three-dimensional model of the electrode;

[0011] A generating module, configured to generate a pre-programming file of the target detection electrode based on a target electrode three-dimensional model of the target detection electrode if it is detected that the target detection electrode in at least one of the electrodes to be detected meets the programming trigger condition;

[0012] A control module is used to generate a target programming file for the target detection electrode based on a pre-programming file of the target detection electrode in response to an operation of performing three-coordinate detection on the target detection electrode, and to control a machine tool device to perform three-coordinate detection on the target detection electrode based on the target programming file, wherein the target programming file is a programming file corresponding to the type of the machine tool device.

[0013] In a third aspect, an embodiment of the present application provides a machine tool device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method as described in any one of the first aspects is implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a machine tool, the machine tool enables the machine tool to execute any one of the methods in the first aspect.

[0015] The embodiment of the present application provides an electrode three-coordinate detection method, device, machine tool equipment and program product, the method comprising: obtaining at least one electrode to be detected, and electrode data of each electrode to be detected, the electrode data at least including an electrode three-dimensional model; if it is detected that the target detection electrode in at least one electrode to be detected meets the programming trigger condition, then generating a pre-programming file of the target detection electrode based on the target electrode three-dimensional model of the target detection electrode; in response to the operation of performing three-coordinate detection on the target detection electrode, generating a target programming file of the target detection electrode based on the pre-programming file of the target detection electrode, and controlling the machine tool equipment to perform three-coordinate detection on the target detection electrode based on the target programming file, the target programming file being a programming file corresponding to the type of the machine tool equipment. By using the above technical solution, by obtaining at least one electrode to be detected, the generation of the pre-programming file of the target detection electrode can be automatically triggered, and then when the target detection electrode needs to be three-coordinate detected, the three-coordinate detection is performed by generating the target programming file, thereby realizing efficient and accurate programming, thereby improving the efficiency and accuracy of three-coordinate detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 these drawings without paying any creative work.

[0017] Figure 1 It is a flow chart of a method for detecting three-coordinates of an electrode provided in one embodiment of the present application;

[0018] Figure 2is a flow chart of an electrode three-coordinate detection method provided by another embodiment of the present application;

[0019] Figure 3 It is a structural block diagram of an electrode three-coordinate detection device provided by an embodiment of the present application;

[0020] Figure 4 It is a structural schematic diagram of a machine tool equipment provided in one embodiment of the present application. DETAILED DESCRIPTION

[0021] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0022] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0023] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0024] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0025] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0026] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0027] Figure 1 It is a flow chart of an electrode three-coordinate detection method provided in an embodiment of the present application. As an example but not a limitation, the method can be applied to machine tool equipment.

[0028] S101, acquiring at least one electrode to be detected and electrode data of each electrode to be detected, wherein the electrode data at least includes a three-dimensional model of the electrode.

[0029] Among them, the electrodes to be detected may refer to electrodes preliminarily designed by relevant personnel, such as electrodes that need to be three-coordinated detected and / or other types of electrodes; the number of electrodes to be detected may be one or more, such as multiple electrodes to be detected may come from the same mold or from different molds; the electrode data may be data related to the electrodes to be detected, for example, the electrode data may include an electrode three-dimensional model, or may include other data, etc. The electrode three-dimensional model is the 3D model of the electrode to be detected.

[0030] S102: If it is detected that a target detection electrode among at least one of the electrodes to be detected meets a programming trigger condition, a pre-programming file of the target detection electrode is generated based on a target electrode three-dimensional model of the target detection electrode.

[0031] The target detection electrode can be understood as an electrode to be detected that meets the programming trigger condition in at least one electrode to be detected, and the target electrode three-dimensional model is the electrode three-dimensional model of the target detection electrode. The pre-programming file can be considered as a programming file initially generated for the target detection electrode, and a target programming file for the target detection electrode needs to be further generated through subsequent detection operations.

[0032] The programming trigger condition can be used to trigger the programming task of the electrode to be detected and perform three-coordinate detection. The specific content can be configured by relevant personnel according to actual conditions. For example, the programming trigger condition can be that the electrode type of the electrode to be detected meets the preset type, or the programming trigger condition can be that the electrode three-dimensional model of the electrode to be detected is stored in a specified storage location. This embodiment is not limited to this.

[0033] Specifically, if it is detected that at least one target detection electrode among the electrodes to be detected meets the programming trigger condition, it means that the target detection electrode needs to trigger the generation of a programming file, and perform subsequent three-coordinate detection according to the generated programming file. At this time, a pre-programming file of the target detection electrode can be preliminarily generated based on the target electrode three-dimensional model of the target detection electrode. The specific means of generating the pre-programming file is not limited. For example, the pre-programming of the target programming electrode can be automatically realized by indicating the programming tool to obtain the pre-programming file of the target detection electrode. The specific process of pre-programming is not further limited here, as long as the pre-programming file of the target detection electrode can be generated.

[0034] S103. In response to the operation of performing three-coordinate detection on the target detection electrode, a target programming file of the target detection electrode is generated based on the pre-programming file of the target detection electrode, and a machine tool device is controlled to perform three-coordinate detection on the target detection electrode based on the target programming file, wherein the target programming file is a programming file corresponding to the type of the machine tool device.

[0035] The target programming file can be understood as a programming file corresponding to the type of machine tool equipment, that is, a programming file that can be executed and read by the machine tool equipment, and can be used to control the machine tool equipment to perform three-coordinate detection on the target detection electrode.

[0036] In this embodiment, after receiving an operation to perform three-coordinate detection on a target detection electrode, a target programming file for the target detection electrode can be generated in response to this operation to control the machine tool equipment to perform three-coordinate detection on the target detection electrode based on the target programming file, wherein the process of generating the target programming file can vary depending on the different three-coordinate detection methods configured for the machine tool equipment.

[0037] In some embodiments, in response to the operation of performing three-coordinate detection on the target detection electrode, before generating a target programming file for the target detection electrode based on the pre-programming file of the target detection electrode, and controlling the machine tool equipment to perform three-coordinate detection on the target detection electrode based on the target programming file, the method further includes:

[0038] Obtaining a trigger operation of placing a preset number of electrodes to be detected on a machine tool device, wherein the preset number of electrodes to be detected includes a target detection electrode;

[0039] In response to an operation of performing three-coordinate detection on a target detection electrode, generating a target programming file of the target detection electrode based on a pre-programming file of the target detection electrode, and controlling a machine tool device to perform three-coordinate detection on the target detection electrode based on the target programming file, including:

[0040] In response to the trigger operation, obtaining a pre-programmed file of any electrode to be detected among a preset number of electrodes to be detected;

[0041] Performing format processing on the pre-programming file of any electrode to be detected, and generating a target programming file of any electrode to be detected;

[0042] Control the machine tool equipment to perform three-coordinate detection on any electrode to be detected based on the target programming file of any electrode to be detected, and obtain the detection result of any electrode to be detected;

[0043] Return to the step of acquiring the pre-programmed file of any electrode to be detected among the preset number of electrodes to be detected, until the three-coordinate detection of all the preset number of electrodes to be detected is completed.

[0044] In a specific implementation, continuous detection of a preset number of electrodes to be detected can be supported, such as a machine tool device can support the placement of a preset number of electrodes to be detected, and when the operation of placing a preset number of electrodes to be detected on the machine tool device is obtained, the automatic programming and three-coordinate detection process can be triggered, wherein the preset number of electrodes to be detected can include target detection electrodes. Exemplarily, 6 electrodes can be placed on the machine tool device, such as supporting the placement of electrodes to be detected from E01 to E06, and 6 electrodes can be scanned on the machine at the same time, and the machine tool device can automatically load the three-coordinate detection task of E01 first, that is, obtain the pre-programming file of E01, format the pre-programming file of E01 to obtain the detection program of E01 (that is, the target programming file), perform three-coordinate detection on E01 according to the detection program of E01, generate the detection result, and then automatically load the three-coordinate detection task of E02, and execute the above steps in a loop until the three-coordinate detection of E01 to E06 is completed.

[0045] In some embodiments, in response to the operation of performing three-coordinate detection on the target detection electrode, before generating a target programming file for the target detection electrode based on the pre-programming file of the target detection electrode, and controlling the machine tool equipment to perform three-coordinate detection on the target detection electrode based on the target programming file, the method further includes:

[0046] Obtaining a detection instruction of the automation equipment for the target detection electrode. The detection instruction is an instruction issued by the automation equipment after placing the target detection electrode on the machine tool equipment, and is used to instruct the machine tool equipment to perform three-coordinate detection on the target detection electrode;

[0047] In response to an operation of performing three-coordinate detection on a target detection electrode, generating a target programming file of the target detection electrode based on a pre-programming file of the target detection electrode, and controlling a machine tool device to perform three-coordinate detection on the target detection electrode based on the target programming file, including:

[0048] Responding to a detection instruction from an automated device, obtaining a pre-programmed file of a target detection electrode;

[0049] Performing format processing on the pre-programming file of the target detection electrode to generate a target programming file of the target detection electrode;

[0050] The machine tool equipment is controlled to perform three-coordinate detection on the target detection electrode based on the target programming file of the target detection electrode to obtain the detection result of the target detection electrode.

[0051] In a specific implementation, the machine tool equipment can support automatic loading of automated equipment (such as automated manipulators), realizing the complete process of automatically placing target detection electrodes, automatically programming measurements, and automatically removing target detection electrodes without the need for human intervention, further improving detection efficiency.

[0052] The present embodiment provides a method for detecting three-coordinates of electrodes, which obtains at least one electrode to be detected and electrode data of each electrode to be detected, wherein the electrode data at least includes a three-dimensional model of the electrode; if it is detected that a target detection electrode in at least one electrode to be detected satisfies a programming trigger condition, a pre-programming file of the target detection electrode is generated based on the target electrode three-dimensional model of the target detection electrode; in response to an operation of performing three-coordinate detection on the target detection electrode, a target programming file of the target detection electrode is generated based on the pre-programming file of the target detection electrode, and a machine tool device is controlled to perform three-coordinate detection on the target detection electrode based on the target programming file, wherein the target programming file is a programming file corresponding to the type of the machine tool device. By using this method, by obtaining at least one electrode to be detected, the generation of a pre-programming file of the target detection electrode can be automatically triggered, and then when the target detection electrode needs to be three-coordinate detected, the three-coordinate detection is performed by generating a target programming file, thereby realizing efficient and accurate programming, thereby improving the efficiency and accuracy of three-coordinate detection.

[0053] Figure 2 This is a flow chart of an electrode three-coordinate detection method provided by another embodiment of the present application. This embodiment further optimizes the method of generating a pre-programming file of the target detection electrode based on the target electrode three-dimensional model of the target detection electrode if it is detected that at least one target detection electrode among the electrodes to be detected meets the programming trigger condition: detecting whether the target electrode three-dimensional model of the target detection electrode is stored in the designated storage location, and the designated storage location is used to store the electrode data to be three-coordinate detected; if it is detected that the target electrode three-dimensional model is stored in the designated storage location, it is determined that the target detection electrode meets the programming trigger condition. Figure 2 As shown, the method includes:

[0054] S201. Acquire at least one electrode to be detected and electrode data of each electrode to be detected, wherein the electrode data at least includes a three-dimensional model of the electrode.

[0055] S202, detecting whether a target electrode three-dimensional model of a target detection electrode is stored in a designated storage location, wherein the designated storage location is used to store electrode data to be subjected to three-coordinate detection.

[0056] S203: If it is detected that a target electrode three-dimensional model is stored in the designated storage location, it is determined that the target detection electrode meets the programming trigger condition.

[0057] The designated storage location may refer to a pre-configured storage directory for storing electrode data that requires three-coordinate detection.

[0058] It can be considered that after the designer designs the electrode three-dimensional model, the electrode data of each electrode to be detected can be uploaded to the Manufacturing Execution System (MES) using the upload tool. At the same time, when the upload tool is uploaded, the electrode three-dimensional model that needs three-coordinate detection can be automatically copied to the specified directory (i.e., the specified storage location, such as the CMM_CYC_ROOT directory) through the configured secondary development code integration tool, so that the MES system background can continuously monitor this specified directory to determine whether the target detection electrode meets the programming trigger condition. MES can be a production information management system for the execution layer of the workshop of a manufacturing enterprise.

[0059] S204 , generating a pre-programming file of the target detection electrode based on the target electrode three-dimensional model of the target detection electrode.

[0060] In some embodiments, the electrode data further includes a processing technology. Before detecting whether the target electrode three-dimensional model of the target detection electrode is stored in the designated storage location, the method further includes:

[0061] According to the processing technology of each electrode to be detected, a three-coordinate programming task is created, and the three-coordinate programming task corresponds to the electrode to be detected one by one;

[0062] A pre-programming file for a target detection electrode is generated based on the target electrode three-dimensional model of the target detection electrode, including:

[0063] When the number of three-coordinate programming tasks is at least two, identifying a three-coordinate programming task that matches the target electrode three-dimensional model based on the electrode parameters among the at least two three-coordinate programming tasks;

[0064] The three-coordinate programming task matching the three-dimensional model of the target electrode is executed by the programming tool to obtain the pre-programming file of the target detection electrode.

[0065] In a specific implementation, while uploading the electrode three-dimensional model, the upload tool can upload the processing technology corresponding to the electrode to be detected to the MES system. For example, the processing technology can indicate how many processing steps the electrode to be detected includes, as well as the content of each processing step. Thus, this embodiment can determine whether to create a corresponding three-coordinate programming task based on the content of the processing technology of each electrode to be detected. Exemplarily, it can be determined whether to create a three-coordinate programming task by determining whether there is a three-coordinate detection step in the processing technology of each electrode to be detected, that is, it can be determined whether there is a three-coordinate detection step in the processing technology of each electrode to be detected. If there is a three-coordinate detection step in the processing technology of any electrode to be detected, a three-coordinate programming task corresponding to any electrode to be detected is created. More specifically, if there is a three-coordinate detection step in the processing technology of a certain electrode to be detected, a three-coordinate programming task corresponding to the electrode to be detected can be created; correspondingly, if there is no three-coordinate detection step in the processing technology of a certain electrode to be detected, a three-coordinate programming task corresponding to the electrode to be detected may not be created. In addition, this embodiment can also create other types of programming tasks according to other contents of the processing technology, such as computer numerical control (CNC) processing center programming tasks, etc., which will not be further described in this embodiment.

[0066] Correspondingly, when the number of three-coordinate programming tasks is at least two, when it is detected that an electrode three-dimensional model (such as a target electrode three-dimensional model) is stored in the designated storage location, the corresponding three-coordinate programming task can be triggered. For example, the three-coordinate programming task that matches the target electrode three-dimensional model can be identified based on the electrode parameters in at least two three-coordinate programming tasks, and the programming tool can be instructed to execute the three-coordinate programming task that matches the target electrode three-dimensional model to obtain a pre-programming file for the target detection electrode.

[0067] In some embodiments, a three-coordinate programming task matching the three-dimensional model of the target electrode is performed by a programming tool to obtain a pre-programmed file of the target detection electrode, including:

[0068] Open the target electrode 3D model through the programming tool;

[0069] The target detection electrodes are arranged according to the characteristic data in the three-dimensional model of the target electrodes by using a programming tool to obtain a pre-programming file of the target detection electrodes.

[0070] In a specific implementation, after detecting that a three-dimensional model of the target electrode is stored in a designated storage location, the corresponding three-coordinate programming task can be automatically found by comparing the mold number, part number, electrode number and process name, and a trigger command is sent to the programming tool to instruct the programming tool to open the three-dimensional model of the target electrode. Through a pre-set point template, points are automatically arranged on each surface based on feature data such as area and color to obtain a pre-programmed file for the target detection electrode.

[0071] Take the following data as an example, the data after point arrangement is an xyz file (i.e. pre-programmed file):

[0072] 6034000010343 / MDBTEST001_K04_1_CMM_A,P20E40BY40,11,0.0,0.0,0.0,0.0 ,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,51

[0073] 0,-18.908000,-16.500000,-4.164000,0.000000,-1.000000,0.000000,, ,P20E40BY40,T1A0B0,78,0.500000,0.500000,0.000000,0.000000,330987

[0074] 1,17.684000,-16.500000,-2.941000,0.000000,-1.000000,0.000000,,,78,0.500000,0.500000,0.000000,0.000000,330987

[0075] 2,23.500000,-9.623000,-3.055000,1.000000,

[0076] 0.000000,0.000000,,,78,

[0077] 0.500000,0.500000,0.000000,0.000000,330975

[0078] 3,23.500000,14.094000,-2.266000,1.000000,0.000000,0.000000,,,78,0.500000,0.500000,0.000000,0.000000,330975,,

[0079] 4,16.571000,16.500000,-3.068000,0.000000,1.000000,0.000000,,,78,0.500000,0.500000,0.000000,0.000000,330983,,

[0080] 5,-19.939000,16.500000,-2.458000,0.000000,1.000000,0.000000,,,78,

[0081] 0.500000,0.500000,0.000000,0.000000,330983,,

[0082] 6,-23.500000,12.468000,-2.279000,-1.000000,0.000000,0.000000,78,0.500000,0.500000,0.000000,0.000000,330979,,

[0083] 7,-23.500000,-12.848000,-3.559000,-1.000000,0.000000,0.000000,,,78,0.500000,0.500000,0.000000,0.000000,330979,,

[0084] 8,18.930000,-12.347000,0.000000,0.000000,0.000000,1.000000,,,78,0.500000,0.500000,0.000000,0.000000,55623

[0085] 9,-19.675000,11.692000,0.000000,0.000000,0.000000,1.000000,,,78,0.500000,0.500000,0.000000,0.000000,55623

[0086] 10,16.418000,11.855000,0.000000,0.000000,0.000000,1.000000,,,78,0.500000,0.500000,0.000000,0.000000,55623

[0087] According to the above pre-programmed file sample, the pre-programmed file can include the data of the probe and angle used, the actual coordinate system data, the theoretical measurement point data and other data. The first line is the task information, including the task ID, task name, probe name and other information; lines 0 to 7 are reference points, which are used to measure the electrode reference and evaluate the structure detection coordinate system; the remaining lines represent feature data.

[0088] This information contains the measurement data of all three-dimensional coordinate measuring machines, so it does not rely on any three-dimensional coordinate measuring machine. After the xyz file is generated, the programming tool will automatically upload the xyz file to the MES system and automatically store it in the corresponding location, so that the required xyz file can be called from the MES system in the subsequent three-dimensional coordinate inspection process to generate the final programming file (i.e., the target programming file).

[0089] S205. In response to the operation of performing three-coordinate detection on the target detection electrode, a target programming file of the target detection electrode is generated based on the pre-programming file of the target detection electrode, and a machine tool device is controlled to perform three-coordinate detection on the target detection electrode based on the target programming file, wherein the target programming file is a programming file corresponding to the type of the machine tool device.

[0090] The present embodiment provides a method for detecting three-coordinates of electrodes, which obtains at least one electrode to be detected and electrode data of each electrode to be detected, wherein the electrode data at least includes an electrode three-dimensional model; detects whether a target electrode three-dimensional model of a target detection electrode is stored in a designated storage location, wherein the designated storage location is used to store electrode data to be detected in three coordinates; if it is detected that a target electrode three-dimensional model is stored in the designated storage location, it is determined that the target detection electrode meets the programming trigger condition; generates a pre-programming file of the target detection electrode based on the target electrode three-dimensional model of the target detection electrode; in response to the operation of performing three-coordinate detection on the target detection electrode, generates a target programming file of the target detection electrode based on the pre-programming file of the target detection electrode, and controls the machine tool equipment to perform three-coordinate detection on the target detection electrode based on the target programming file, wherein the target programming file is a programming file corresponding to the type of the machine tool equipment. By using this method, by detecting whether a target electrode three-dimensional model of a target detection electrode is stored in the designated storage location, it is possible to accurately determine whether the target detection electrode meets the programming trigger condition, thereby realizing the precise programming of the target detection electrode and further improving the accuracy of three-coordinate detection.

[0091] The following is an exemplary description of an electrode three-coordinate detection method provided in this embodiment:

[0092] Electrode designers can quickly generate inspection process tasks through the MES model cloud system. For example, they can transfer the 3D model of the part that needs electrode design to the UG software, which will perform model analysis and design the electrode shape on the opened 3D model. The full name of UG software is Unigraphics NX, which is an advanced high-end CAD / CAM / CAE software.

[0093] The designed electrode can then be uploaded to the model cloud system through the UG software. When uploading, the corresponding processing technology can be selected from multiple processes on the upload page. Each processing technology can be considered as a pre-defined process route for rapid process design. For example, when the electrode needs three-coordinate detection, "quality inspection" can be pre-selected, such as checking the three-coordinate measurement machining (CMM) process. When this processing technology is called and uploaded to the model cloud system, the model cloud system can automatically define the zero point coordinates according to the electrode shape features, adjust the direction of the electrode, and automatically design the processing and detection process through the pre-defined detection template background, such as automatically creating the corresponding three-coordinate detection programming task in the model cloud system (i.e., determining whether there is a three-coordinate detection process in the processing technology of each electrode to be programmed; creating a three-coordinate programming task corresponding to the electrode to be programmed that has a three-coordinate detection process in the processing technology). At the same time, when uploading through the UG software, the secondary development code integration tool of the UG software will automatically copy a copy of the drawing file (i.e., 3D model) that needs to be detected and programmed to the specified directory, such as the CMM_CYC_ROOT directory.

[0094] Then the backend of the Mold Cloud system can continuously monitor the specified directory. When the 3D of the task in this directory is detected, the corresponding programming task will be triggered (i.e., whether the target electrode 3D model of the target programming electrode is stored in the specified storage location; if the target electrode 3D model is detected to be stored in the specified storage location, it is determined that the target programming electrode meets the programming trigger condition). For example, the Mold Cloud system can automatically find the programming task by comparing the mold number, part number, electrode number and process name, and send a trigger command to the UG software. The UG software can automatically analyze the electrode base and discharge machining surface according to the shape features, and automatically arrange the points according to the shape features and perform interference checks according to the defined point rules (i.e., when the number of three-coordinate programming tasks is at least two When a three-coordinate programming task is identified in at least two three-coordinate programming tasks, the three-coordinate programming task matching the target electrode three-dimensional model is identified based on the electrode parameters; the three-coordinate programming task matching the target electrode three-dimensional model is executed by the programming tool to obtain a pre-programming file of the target programming electrode). The specific process may include the built-in secondary development integration tool automatically opening the 3D model through a trigger instruction, and automatically arranging points on each surface according to features such as area and color through a pre-set point template, generating a pre-programming file, and packaging and uploading it to the model cloud system (i.e., opening the target electrode three-dimensional model through the programming tool; arranging points for the target programming electrode according to feature data in the target electrode three-dimensional model through the programming tool to obtain a pre-programming file of the target programming electrode).

[0095] When three-coordinate detection is to be performed, the program can be imported and measured by executing the template and point method. For example, the measurement point data in the pre-programmed file can be extracted with the machine tool template, and the extracted measurement point data can be added to the corresponding position of the machine tool template to obtain the target programming file that can be executed and read by the machine tool equipment. The programming file obtained by this programming method can support the detection of various types of machine tools, such as Zeiss, Hexagon, and Sirui.

[0096] From the above description, it can be found that this embodiment can create programming detection tasks through the electrode three-dimensional model, and can realize automatic triggering, identification of programming detection tasks and automatic programming. Then, when performing three-coordinate detection, the three-coordinate measurement program corresponding to the type of three-coordinate measuring machine can be adaptively generated based on the pre-programmed xyz file according to the type of three-coordinate measuring machine, and then the generated three-coordinate measurement program can be used for the final three-coordinate detection, thereby realizing efficient, safe and accurate three-coordinate measurement programming and significantly improving the detection efficiency.

[0097] Corresponding to the electrode three-coordinate detection method of the above embodiment, Figure 3 This is a structural block diagram of an electrode three-coordinate detection device provided in an embodiment of the present application. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.

[0098] Reference Figure 3 , the device comprises:

[0099] A first acquisition module 301 is used to acquire at least one electrode to be detected and electrode data of each electrode to be detected, wherein the electrode data at least includes a three-dimensional model of the electrode;

[0100] A generating module 302, configured to generate a pre-programming file of the target detection electrode based on a target electrode three-dimensional model of the target detection electrode if it is detected that the target detection electrode in at least one of the electrodes to be detected meets the programming trigger condition;

[0101] The control module 303 is used to generate a target programming file for the target detection electrode based on a pre-programming file of the target detection electrode in response to an operation of performing three-coordinate detection on the target detection electrode, and to control the machine tool equipment to perform three-coordinate detection on the target detection electrode based on the target programming file, wherein the target programming file is a programming file corresponding to the type of the machine tool equipment.

[0102] The present embodiment provides an electrode three-coordinate detection device, which acquires at least one electrode to be detected and electrode data of each electrode to be detected through a first acquisition module, wherein the electrode data at least includes an electrode three-dimensional model; if a target detection electrode in at least one electrode to be detected is detected to meet a programming trigger condition through a generation module, a pre-programming file of the target detection electrode is generated based on the target electrode three-dimensional model of the target detection electrode; a target programming file of the target detection electrode is generated based on the pre-programming file of the target detection electrode in response to an operation of performing three-coordinate detection on the target detection electrode through a control module, and a machine tool device is controlled to perform three-coordinate detection on the target detection electrode based on the target programming file, wherein the target programming file is a programming file corresponding to the type of the machine tool device. By using the device, by acquiring at least one electrode to be detected, the generation of a pre-programming file of the target detection electrode can be automatically triggered, and then when the target detection electrode needs to be three-coordinate detected, three-coordinate detection is performed by generating a target programming file, thereby realizing efficient and accurate programming, thereby improving the efficiency and accuracy of three-coordinate detection.

[0103] Optionally, the electrode three-coordinate detection device provided in this embodiment further includes:

[0104] A detection module, for detecting whether a target electrode three-dimensional model of the target detection electrode is stored in a designated storage location before generating a pre-programming file of the target detection electrode based on the target electrode three-dimensional model of the target detection electrode if it is detected that at least one target detection electrode among the electrodes to be detected meets a programming trigger condition, wherein the designated storage location is used to store electrode data to be subjected to three-coordinate detection;

[0105] The determination module is used to determine whether the target detection electrode meets the programming trigger condition if it is detected that the target electrode three-dimensional model is stored in the designated storage location.

[0106] Optionally, the electrode data also includes a processing technology. The electrode three-coordinate detection device provided in this embodiment also includes:

[0107] A creation module is used to create a three-coordinate programming task according to the processing technology of each electrode to be detected before detecting whether the target electrode three-dimensional model of the target detection electrode is stored in the designated storage location, and the three-coordinate programming task corresponds to the electrode to be detected one by one;

[0108] The generated modules include:

[0109] an identification unit, for identifying, when the number of the three-coordinate programming tasks is at least two, a three-coordinate programming task matching the target electrode three-dimensional model based on the electrode parameters among the at least two three-coordinate programming tasks;

[0110] The execution unit is used to execute the three-coordinate programming task matching the three-dimensional model of the target electrode through the programming tool to obtain the pre-programming file of the target detection electrode.

[0111] Optionally, create a module specifically for:

[0112] Determine whether there is a three-coordinate detection process in the processing technology of each electrode to be detected;

[0113] If there is a three-coordinate detection process in the processing technology of any electrode to be detected, a three-coordinate programming task corresponding to any electrode to be detected is created.

[0114] Optionally, the execution unit is specifically used for:

[0115] Open the target electrode 3D model through the programming tool;

[0116] The target detection electrodes are arranged according to the characteristic data in the three-dimensional model of the target electrodes by using a programming tool to obtain a pre-programming file of the target detection electrodes.

[0117] Optionally, the electrode three-coordinate detection device provided in this embodiment further includes:

[0118] a second acquisition module, configured to generate a target programming file for the target detection electrode based on a pre-programmed file of the target detection electrode in response to an operation of performing three-coordinate detection on the target detection electrode, and to acquire a trigger operation of placing a preset number of electrodes to be detected on the machine tool device before controlling the machine tool device to perform three-coordinate detection on the target detection electrode based on the target programming file, wherein the preset number of electrodes to be detected includes the target detection electrode;

[0119] The control module is specifically used for:

[0120] In response to the trigger operation, obtaining a pre-programmed file of any electrode to be detected among a preset number of electrodes to be detected;

[0121] Performing format processing on the pre-programming file of any electrode to be detected, and generating a target programming file of any electrode to be detected;

[0122] Control the machine tool equipment to perform three-coordinate detection on any electrode to be detected based on the target programming file of any electrode to be detected, and obtain the detection result of any electrode to be detected;

[0123] Return to the step of acquiring the pre-programmed file of any electrode to be detected among the preset number of electrodes to be detected, until the three-coordinate detection of all the preset number of electrodes to be detected is completed.

[0124] Optionally, the electrode three-coordinate detection device provided in this embodiment further includes:

[0125] a third acquisition module, for generating a target programming file for the target detection electrode based on the pre-programming file of the target detection electrode in response to an operation of performing three-coordinate detection on the target detection electrode, and for acquiring a detection instruction for the target detection electrode from the automation equipment before controlling the machine tool equipment to perform three-coordinate detection on the target detection electrode based on the target programming file, wherein the detection instruction is an instruction issued by the automation equipment after placing the target detection electrode on the machine tool equipment, and is used to instruct the machine tool equipment to perform three-coordinate detection on the target detection electrode;

[0126] The control module is specifically used for:

[0127] Responding to a detection instruction from an automated device, obtaining a pre-programmed file of a target detection electrode;

[0128] Performing format processing on the pre-programming file of the target detection electrode to generate a target programming file of the target detection electrode;

[0129] The machine tool equipment is controlled to perform three-coordinate detection on the target detection electrode based on the target programming file of the target detection electrode to obtain the detection result of the target detection electrode.

[0130] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0131] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0132] The present application also provides a machine tool device, Figure 4 is a structural schematic diagram of a machine tool device provided in an embodiment of the present application, such as Figure 4 As shown, the machine tool equipment includes: at least one processor 401, a memory 402, an input device 403, an output device 404, and a computer program stored in the memory 402 and executable on at least one processor 401. When the processor 401 executes the computer program, the steps in any of the above-mentioned method embodiments are implemented.

[0133] The input device 403 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the machine tool equipment. The output device 404 may include display devices such as a display screen.

[0134] An embodiment of the present application provides a computer program product, including a computer program. When the computer program is run on a machine tool device, the machine tool device can implement the steps in the above-mentioned method embodiments when the computer program is executed.

[0135] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor 401, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may at least include: any entity or device that can carry the computer program code to the device / machine tool equipment, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable storage media cannot be electric carrier signals and telecommunication signals.

[0136] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0137] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0138] In the embodiments provided in the present application, it should be understood that the disclosed devices / machine tool equipment and methods can be implemented in other ways. For example, the device / machine tool equipment embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0139] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0140] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for detecting three-coordinates of an electrode, characterized in that: include: Acquire at least one electrode to be detected and electrode data of each electrode to be detected, wherein the electrode data at least includes a three-dimensional model of the electrode; If it is detected that at least one target detection electrode among the electrodes to be detected meets the programming trigger condition, a pre-programming file of the target detection electrode is generated based on the target electrode three-dimensional model of the target detection electrode; In response to the operation of performing three-coordinate detection on the target detection electrode, a target programming file of the target detection electrode is generated based on the pre-programming file of the target detection electrode, and a machine tool device is controlled to perform three-coordinate detection on the target detection electrode based on the target programming file, wherein the target programming file is a programming file corresponding to the type of the machine tool device.

2. The electrode three-coordinate detection method according to claim 1, characterized in that: Before generating a pre-programming file of the target detection electrode based on the target electrode three-dimensional model of the target detection electrode if it is detected that at least one target detection electrode among the electrodes to be detected meets the programming trigger condition, the method further includes: Detecting whether a target electrode three-dimensional model of the target detection electrode is stored in a designated storage location, wherein the designated storage location is used to store electrode data to be subjected to three-coordinate detection; If it is detected that the target electrode three-dimensional model is stored in the designated storage location, it is determined that the target detection electrode meets the programming trigger condition.

3. The electrode three-coordinate detection method according to claim 2, characterized in that: The electrode data also includes a processing technology. Before detecting whether the target electrode three-dimensional model of the target detection electrode is stored in the designated storage location, the method also includes: According to the processing technology of each electrode to be detected, a three-coordinate programming task is created, and the three-coordinate programming task corresponds to the electrode to be detected one by one; The generating the preprogramming file of the target detection electrode based on the target electrode three-dimensional model of the target detection electrode comprises: When the number of the three-coordinate programming tasks is at least two, identifying a three-coordinate programming task matching the target electrode three-dimensional model based on electrode parameters among the at least two three-coordinate programming tasks; A three-coordinate programming task matching the three-dimensional model of the target electrode is executed by a programming tool to obtain a pre-programming file of the target detection electrode.

4. The electrode three-coordinate detection method according to claim 3, characterized in that: The step of creating a three-coordinate programming task according to the processing technology of each electrode to be detected includes: Determining whether there is a three-coordinate detection process in the processing technology of each electrode to be detected; If a three-coordinate detection process exists in the processing technology of any of the electrodes to be detected, a three-coordinate programming task corresponding to any of the electrodes to be detected is created.

5. The electrode three-coordinate detection method according to claim 3, characterized in that: The method of executing a three-coordinate programming task matching the three-dimensional model of the target electrode by a programming tool to obtain a pre-programming file of the target detection electrode includes: Open the target electrode three-dimensional model through a programming tool; The target detection electrodes are arranged according to the characteristic data in the three-dimensional model of the target electrodes by using a programming tool to obtain a pre-programming file of the target detection electrodes.

6. The electrode three-coordinate detection method according to claim 1, characterized in that: Before generating a target programming file of the target detection electrode based on a pre-programming file of the target detection electrode in response to the operation of performing three-coordinate detection on the target detection electrode, and controlling a machine tool device to perform three-coordinate detection on the target detection electrode based on the target programming file, the method further includes: Acquire a trigger operation of placing a preset number of electrodes to be detected on the machine tool equipment, wherein the preset number of electrodes to be detected includes the target detection electrode; In response to the operation of performing three-coordinate detection on the target detection electrode, generating a target programming file for the target detection electrode based on a pre-programming file of the target detection electrode, and controlling a machine tool device to perform three-coordinate detection on the target detection electrode based on the target programming file, including: In response to the trigger operation, obtaining a pre-programmed file of any electrode to be detected among the preset number of electrodes to be detected; Performing format processing on the pre-programming file of the arbitrary electrode to be detected to generate a target programming file of the arbitrary electrode to be detected; Controlling the machine tool equipment to perform three-coordinate detection on the arbitrary electrode to be detected based on the target programming file of the arbitrary electrode to be detected, and obtaining the detection result of the arbitrary electrode to be detected; Return to the step of obtaining the pre-programmed file of any electrode to be detected among the preset number of electrodes to be detected until the three-coordinate detection of all the preset number of electrodes to be detected is completed.

7. The electrode three-coordinate detection method according to claim 1, characterized in that: Before generating a target programming file of the target detection electrode based on a pre-programming file of the target detection electrode in response to the operation of performing three-coordinate detection on the target detection electrode, and controlling a machine tool device to perform three-coordinate detection on the target detection electrode based on the target programming file, the method further includes: Acquire a detection instruction of the automation equipment for the target detection electrode, wherein the detection instruction is an instruction issued by the automation equipment after placing the target detection electrode on the machine tool equipment, and is used to instruct the machine tool equipment to perform three-coordinate detection on the target detection electrode; In response to the operation of performing three-coordinate detection on the target detection electrode, generating a target programming file for the target detection electrode based on a pre-programming file of the target detection electrode, and controlling a machine tool device to perform three-coordinate detection on the target detection electrode based on the target programming file, including: Responding to a detection instruction of the automation device, acquiring a pre-programmed file of the target detection electrode; Performing format processing on the pre-programming file of the target detection electrode to generate a target programming file of the target detection electrode; The machine tool equipment is controlled to perform three-coordinate detection on the target detection electrode based on the target programming file of the target detection electrode to obtain a detection result of the target detection electrode.

8. An electrode three-coordinate detection device, characterized in that: include: A first acquisition module, used to acquire at least one electrode to be detected and electrode data of each electrode to be detected, wherein the electrode data at least includes a three-dimensional model of the electrode; A generating module, configured to generate a pre-programming file of the target detection electrode based on a target electrode three-dimensional model of the target detection electrode if it is detected that at least one target detection electrode among the electrodes to be detected satisfies a programming trigger condition; A control module is used to generate a target programming file for the target detection electrode based on a pre-programming file of the target detection electrode in response to an operation of performing three-coordinate detection on the target detection electrode, and to control a machine tool device to perform three-coordinate detection on the target detection electrode based on the target programming file, wherein the target programming file is a programming file corresponding to the type of the machine tool device.

9. A machine tool device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, enables the method according to any one of claims 1 to 7 to be performed.