A method and system for automatically generating EDM workpiece coordinates and electrode coordinates

Through automatic calculation and measurement, the automatic generation of workpiece and electrode coordinates in electric spark processing is achieved, which solves the problem of low manual proofreading and introduction efficiency in the prior art, and improves processing efficiency and accuracy.

CN115291567BActive Publication Date: 2025-02-18DALIAN HANYU SCI & TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210806354.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-08
Publication Date
2025-02-18
Estimated Expiration
2042-07-08

AI Technical Summary

Technical Problem

In the existing electric spark processing, the proofreading and import of workpiece coordinates and electrode coordinates rely on manual operations, resulting in low processing efficiency and high probability of errors.

Method used

By obtaining the EDM drawings, the theoretical center point coordinates of the workpiece and electrodes are automatically calculated, and combined with the reference ball of the EDM machine tool to measure and calculate the correction value, the automatic generation of the workpiece and electrode coordinates are realized.

Benefits of technology

This greatly improves the efficiency of electric spark processing, reduces the possibility of manual errors, and improves the accuracy of processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115291567B_ABST
    Figure CN115291567B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of electric spark discharge systems, and proposes a method and system for automatically generating electric spark workpiece coordinates and electrode coordinates. The method automatically determines the theoretical center points of the workpiece and the electrode by analyzing the electric spark workpiece design drawings and the electrode design drawings. After the workpiece is placed and the electrode is installed, the error between the physical center point and the theoretical center point is compared, and a correction value is calculated to achieve automatic generation of the workpiece and electrode coordinates, thereby greatly improving the efficiency of electric spark machining.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of electric spark discharge systems, and in particular relates to a software adjustment method, system and storage medium for placing an electric spark workpiece. Background Art

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

[0003] In the operation of existing EDM equipment, the operator needs to import the workpiece coordinates and electrode coordinates to be processed into the EDM machine. However, the workpiece coordinates and electrode coordinates may have errors due to various reasons, resulting in inaccurate processing operations. Generally, operators will manually proofread them first and then import them. However, manual proofreading and manual importing will lead to low processing efficiency and increased probability of proofreading errors. Therefore, the generation of existing EDM workpiece coordinates and electrode coordinates is overly dependent on manual operation. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides the following solutions.

[0005] In one aspect, the present invention provides a method for automatically generating EDM workpiece coordinates and electrode coordinates, comprising the following steps:

[0006] Step S1: obtaining an EDM drawing, obtaining a preset detection point coordinate according to the EDM drawing, and calculating a first coordinate according to the preset detection point coordinate, the first coordinate being a theoretical center point coordinate of the EDM drawing;

[0007] Step S2: According to the preset detection point coordinates, the reference ball of the EDM machine tool is combined to measure and calculate the second coordinates, where the second coordinates are the coordinates of the physical center point of the EDM machining;

[0008] Step S3: Calculate the difference between the first coordinate and the second coordinate to obtain an EDM correction value;

[0009] Step S4: importing the machining compensation value into the EDM machine tool to perform an EDM discharge operation.

[0010] Preferably, the step S2 includes, before using the reference ball of the electric spark machine tool for measurement, it is also necessary to perform electrode parallel detection, and the reference platform is the electrode reference platform coordinate system and the workpiece coordinate system.

[0011] Specifically, the step S1 includes: the EDM drawing includes an electrode drawing and a workpiece drawing, and the first electrode coordinate and the first workpiece coordinate are calculated according to the electrode drawing and the workpiece drawing respectively, and the first electrode coordinate and the first workpiece coordinate are the theoretical center point coordinates of the electrode drawing and the workpiece drawing respectively.

[0012] Specifically, the step S2 includes: measuring according to the first electrode coordinate and the first workpiece coordinate in combination with the reference ball of the electric spark machine tool, and calculating the second electrode coordinate and the second workpiece coordinate respectively, wherein the second electrode coordinate and the second workpiece coordinate are the physical center coordinates of the electrode and the workpiece respectively.

[0013] Specifically, the step S3 includes: calculating a difference according to the first electrode coordinate and the second electrode coordinate to obtain an electrode correction value, and calculating a difference according to the first workpiece coordinate and the second workpiece coordinate to obtain a workpiece correction value.

[0014] Specifically, the step S4 includes: respectively introducing the electrode correction value and the workpiece correction value into the electric spark machining machine tool to perform an electric spark discharge operation.

[0015] Specifically, the step S3 further includes: performing multiple measurements based on the first coordinates in combination with a reference ball of the electric spark machine tool, comparing the results of the multiple measurements, and obtaining the second coordinates when the difference between the multiple measurement results is less than a preset accuracy.

[0016] Specifically, the step S1 of acquiring the EDM drawing includes: the EDM drawing is stored in a discharge basic library, and is acquired through the discharge basic library.

[0017] Specifically, the step S4 of importing the machining compensation value into the electric spark machining machine tool further includes: storing the machining compensation value in a discharge basic library.

[0018] On the one hand, the present invention provides a system for automatically generating EDM workpiece coordinates and electrode coordinates, comprising: a processor and a memory, wherein the memory stores a program module, and the program module runs on the processor to implement the above method.

[0019] Compared with the prior art, the present invention has the following beneficial effects:

[0020] The present invention aims at the problem that in the existing electrospark machining, the electrode coordinates and the workpiece coordinates are manually proofread and manually introduced, which leads to low machining efficiency and increased probability of proofreading errors. A method for automatically generating electrospark workpiece coordinates and electrode coordinates is proposed. The method automatically determines the theoretical center point of the workpiece and the electrode by analyzing the workpiece design drawings and the electrode design drawings, and after the workpiece is placed and the electrode is installed, the error between the physical center point and the theoretical center point is compared, and the correction value is calculated to achieve automatic generation of the workpiece and electrode coordinates, thereby greatly improving the efficiency of electrospark machining. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a flow chart of a method for automatically generating EDM workpiece coordinates and electrode coordinates;

[0022] Figure 2 It is a schematic diagram of obtaining the coordinates of preset detection points from the EDM drawing;

[0023] Figure 3 It is a system block diagram for automatically generating EDM workpiece coordinates and electrode coordinates. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein.

[0026] It should be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0027] It should be understood that in the present invention, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0028] It should be understood that in the present invention, "plurality" refers to two or more than two. "And / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.

[0029] It should be understood that in the present invention, "B corresponding to A", "B corresponding to A", "A corresponds to B" or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based only on A, but B can also be determined based on A and / or other information. A and B match when the similarity between A and B is greater than or equal to a preset threshold.

[0030] Depending on the context, "if" as used herein may be interpreted as "when" or "when" or "in response to determining" or "in response to detecting."

[0031] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0032] Embodiment 1

[0033] This embodiment provides a method for automatically generating EDM workpiece coordinates and electrode coordinates, comprising the following steps:

[0034] Step S1: obtaining an EDM drawing, obtaining a preset detection point coordinate according to the EDM drawing, and calculating a first coordinate according to the preset detection point coordinate, the first coordinate being a theoretical center point coordinate of the EDM drawing;

[0035] Step S2: According to the preset detection point coordinates, the reference ball of the EDM machine tool is combined to measure and calculate the second coordinates, which are the coordinates of the physical center point of the EDM machining;

[0036] Step S3: Calculate the difference between the first coordinate and the second coordinate to obtain the EDM correction value;

[0037] Step S4: Import the machining compensation value into the EDM machine tool to perform the EDM discharge operation.

[0038] For step S1, Figure 2 As shown in the figure, firstly, the obtained EDM drawing is parsed, and then the preset detection point coordinates are obtained according to the EDM drawing. These detection points are point A on the front, point B on the back, point C on the left side, point D on the side, and point E on the top. The first coordinate, i.e., the theoretical center point coordinate (X M , Y M , Z M ), which is calculated by the following steps:

[0039] Step S10: Take any detection point A on the front of the drawing, with coordinates (X A , Y A , Z A ). Take any detection point B on the back, the coordinate is (X B , Y B , Z B ), then the center point coordinates Y of A and B M =(Y A +Y B ) / 2;

[0040] Step S11: Take any detection point C on the left side of the drawing, with coordinates (X C , Y C , Z C ), select any detection point D on the right side, the coordinate is (X D , Y D , Z D ), then the center coordinates of C and D are X M =(X C +X D ) / 2

[0041] Step S12: Take any detection point E on the top surface, with coordinates (X E , Y E , Z E ), then Z M =Z E / 2.

[0042] Thus, the first coordinate (X M , Y M , Z M )=((X C +X D ) / 2,(Y A +YB ) / 2,Z E / 2).

[0043] For step S2, according to the coordinates of the preset detection points A, B, C, D, and E in step S1, the reference ball of the EDM machine tool is used to perform tool measurement, and the second coordinate, i.e., the coordinate of the physical center point (X′) is calculated. M ,Y′ M ,Z′ M ), which is calculated by the following steps:

[0044] Step S20: Use the reference ball to check the tool point A, the coordinates are (X′ A , Y′ A , Z′ A ), and then check the tool point B, the coordinate is (X′ B , Y′ B , Z′ B ), then the center point coordinates of A and B are Y′ M =(Y′ A +Y′ B ) / 2;

[0045] Step S21: Use the reference ball to check the tool point C, the coordinates are (X′ C , Y′ C , Z′ C ), select any detection point D on the right side, with coordinates (X′ D , Y′ D , Z′ D ), then the coordinates of the center points of C and D are X′ M =(X′ C +X′ D ) / 2;

[0046] Step S22: Use the reference ball to check the tool point E, the coordinates are (X′ E , Y′ E , Z′ E ), then Z′ M =Z′ E / 2.

[0047] Thus, the second coordinate (X′) in the physical division is obtained M , Y′ M , Z′ M )=((X′ C +X′ D ) / 2,(Y′ A +Y′ B ) / 2,Z′ E / 2).

[0048] In step S3, according to the first coordinate and the second coordinate obtained in step S1 and step S2, the first coordinate (X M , Y M , Z M )=((X C +X D ) / 2,(Y A +Y B ) / 2,Z E / 2) and obtain the second coordinate (X′) in the physical integral M , Y′ M , Z′ M )=((X′ C +X′ D ) / 2,(Y′ A +Y′ B ) / 2,Z′ E / 2) Perform difference calculation, and the value obtained is the correction value of EDM, which is imported into the EDM machine tool for subsequent EDM operations.

[0049] The above method automatically determines the theoretical center points of the workpiece and the electrode by analyzing the workpiece design drawings and the electrode design drawings. After the workpiece is placed and the electrode is installed, the correction value is calculated by comparing the error between the physical center point and the theoretical center point to achieve automatic generation of the workpiece and electrode coordinates, thereby greatly improving the efficiency of EDM machining.

[0050] Preferably, step S2 includes that before using the reference ball of the EDM machine tool for measurement, it is also necessary to perform electrode parallel detection, and the reference platform is the electrode reference platform coordinate system or the workpiece coordinate system. When the current operation is to generate electrode coordinates, the reference platform is the electrode reference platform coordinate system, and if the current operation is to generate workpiece coordinates, the reference platform is the workpiece coordinate system. The step of electrode parallel detection is: when the electrode coordinates are generated at this time, the electrode reference platform coordinate system is first aligned with the reference ball coordinate system, and then any point is taken in each direction selected by the X+, X-, Y+, and Y- axes, and the vertical coordinate difference between the two points in each direction is measured to determine whether the coordinate difference is less than the specified threshold value. If it is greater, the above steps are realigned, and if it is less than, the alignment process is completed. Because each pair of EDM machine tools will cause some small deviations in the discharge equipment of the operating machine tool due to various reasons, in order to obtain more accurate EDM, a motor parallel detection will be performed before each processing, so that the accuracy of the machine tool can be effectively guaranteed and the occurrence of large error deviations can be reduced.

[0051] In EDM, the coordinates of the electrode and workpiece need to be imported before subsequent processing can be carried out. Therefore, the following explains how to calculate the electrode coordinates and workpiece coordinates.

[0052] Specifically, the EDM drawing includes an electrode drawing and a workpiece drawing. The preset detection point coordinates of the electrode and the workpiece are respectively obtained according to the electrode drawing and the workpiece drawing, and then the first electrode coordinate and the first workpiece coordinate are respectively calculated. The first electrode coordinate and the first workpiece coordinate are the theoretical center point coordinates of the electrode drawing and the workpiece drawing.

[0053] For calculating the first electrode coordinate (X M1 , Y M1 , Z M1 ) are as follows:

[0054] Step S′10: Take any detection point A1 on the front of the electrode drawing, with coordinates (X A1 , Y A1 , Z A1 ). Take any detection point B1 on the back, the coordinate is (X B1 , Y B1 , Z B1 ), then the center point coordinates Y of A1 and B1 M1 =(Y A1 +Y B1 ) / 2;

[0055] Step S′11: Take any detection point C1 on the left side of the drawing, with coordinates (X C1 , Y C1 , Z C1 ), select any detection point D1 on the right side, the coordinate is (X D1 , Y D1 , Z D1 ), then the center point coordinates X of C1 and D1 M1 =(X C1 +X D1 ) / 2

[0056] Step S′12: Take any detection point E1 on the top surface, with coordinates (X E1 , Y E1 , Z E1 ), then Z M1 =Z E1 / 2. Thus, the coordinates of the first electrode in the theoretical division (X M1 , Y M1 , Z M1 )=((X C1 +X D1 ) / 2,(Y A1 +Y B1 ) / 2,Z E1 / 2).

[0057] For calculating the first workpiece coordinate (XM2 , Y M2 , Z M2 ) are as follows:

[0058] Step S″10: Take any detection point A2 on the front of the workpiece drawing, with coordinates (X A2 , Y A2 , Z A2 ). Take any detection point B2 on the back, the coordinate is (X B2 , Y B2 , Z B2 ), then the center point coordinates Y of A2 and B2 M1 =(Y A2 +Y B2 ) / 2;

[0059] Step S″11: Take any detection point C2 on the left side of the drawing, with coordinates (X C2 , Y C2 , Z C2 ), select any detection point D2 on the right side, the coordinate is (X D2 , Y D2 , Z D2 ), then the center point coordinates of C2 and D2 are X M1 =(X C2 +X D2 ) / 2

[0060] Step S″12: Take any detection point E2 on the top surface, with coordinates (X E2 , Y E2 , Z E2 ), then Z M2 =Z E2 / 2. Thus, the first workpiece coordinate (X M2 , Y M2 , Z M2 )=((X C2 +X D2 ) / 2,(Y A2 +Y B2 ) / 2,Z E2 / 2).

[0061] Specifically, according to the preset detection point coordinates of the electrode and the workpiece, measurements are performed in combination with the reference ball of the electric spark machine tool, and the second electrode coordinates and the second workpiece coordinates are calculated respectively. The second electrode coordinates and the second workpiece coordinates are the physical center point coordinates of the electrode and the workpiece respectively.

[0062] For calculating the second electrode coordinate (X′ M1 , Y′ M1 , Z′ M1 ) are as follows:

[0063] According to the coordinates of the preset detection points A1, B1, C1, D1, and E1 of the electrode, the tool setting measurement is performed using the reference ball of the EDM machine tool.

[0064] Step S'20: Use the reference ball to check the tool point A1, the coordinates are (X' A1 , Y′ A1 , Z′ A1 ), and then check the tool point B1, the coordinate is (X′ B1 , Y′ B1 , Z′ B1 ), then the center point coordinates of A1 and B1 are Y′ M1 =(Y′ A1 +Y′ B1 ) / 2;

[0065] Step S'21: Use the reference ball to check the tool point C1, the coordinates are (X' C1 , Y′ C1 , Z′ C1 ), take any detection point D1 on the right side, the coordinate is (X′ D1 , Y′ D1 , Z′ D1 ), then the center point coordinates X′ of C1 and D1 M1 =(X′ C1 +X′ D1 ) / 2;

[0066] Step S'22: Use the reference ball to check the tool point E1, the coordinates are (X' E1 , Y′ E1 , Z′ E1 ), then Z′ M1 =Z′ E1 / 2.

[0067] Thus, the coordinates of the second electrode (X′) in the physical division are obtained. M1 , Y′ M1 , Z′ M1 )=((X′ C1 +X′ D1 ) / 2,(Y′ A1 +Y′ B1 ) / 2,Z′ E1 / 2).

[0068] For calculating the second workpiece coordinate (X′ M2 , Y′ M2 , Z′ M2 ) are as follows:

[0069] According to the coordinates of the preset detection points A2, B2, C2, D2, and E2 of the electrode, the tool setting measurement is performed using the reference ball of the EDM machine tool.

[0070] Step S″20: Use the reference ball to check the tool point A2, the coordinates are (X′ A2 , Y′ A2 , Z′ A2 ), and then check the tool point B2, the coordinate is (X′ B2 , Y′ B2 , Z′ B2 ), then the center point coordinates of A2 and B2 are Y′ M2 =(Y′ A2 +Y′ B2 ) / 2;

[0071] Step S″21: Use the reference ball to check the tool point C2, the coordinates are (X′ C2 , Y′ C2 , Z′ C2 ), select any detection point D2 on the right side, the coordinate is (X′ D2 , Y′ D2 , Z′ D2 ), then the center point coordinates X′ of C2 and D2 M2 =(X′ C2 +X′ D2 ) / 2;

[0072] Step S″22: Use the reference ball to check the tool point E2, the coordinates are (X′ E2 , Y′ E2 , Z′ E2 ), then Z′ M2 =Z′ E2 / 2.

[0073] Thus, the second workpiece coordinate (X′) in the physical division is obtained M2 , Y′ M2 , Z′ M2 )=((X′ C2 +X′ D2 ) / 2,(Y′ A2 +Y′ B2 ) / 2,Z′ E2 / 2).

[0074] Specifically, a difference is calculated based on the first electrode coordinate and the second electrode coordinate to obtain an electrode correction value, and a difference is calculated based on the first workpiece coordinate and the second workpiece coordinate to obtain a workpiece correction value.

[0075] Calculate electrode correction value:

[0076] The first electrode coordinate (X M1 , Y M1 , Z M1 )=((X C1 +XD1 ) / 2,(Y A1 +Y B1 ) / 2,Z E / 2) and obtain the second electrode coordinate (X′) in the physical integral M1 , Y′ M1 , Z′ M1 )=((X′ C1 +X′ D1 ) / 2,(Y′ A1 +Y′ B1 ) / 2,Z′ E1 / 2) Calculate the difference and the resulting value is the electrode correction value for EDM.

[0077] Calculate workpiece compensation value:

[0078] The first workpiece coordinate (X M2 , Y M2 , Z M2 )=((X C2 +X D2 ) / 2,(Y A2 +Y B2 ) / 2,Z E / 2) and obtain the second workpiece coordinate (X′) in the physical division M2 , Y′ M2 , Z′ M2 )=((X′ C2 +X′ D2 ) / 2,(Y′ A2 +Y′ B2 ) / 2,Z′ E2 / 2) Calculate the difference and the resulting value is the workpiece correction value for EDM.

[0079] The electrode correction value and workpiece correction value calculated above are respectively imported into the EDM machine tool to perform the EDM discharge operation.

[0080] Specifically, according to the preset detection point coordinates, multiple measurements are performed in combination with the reference ball of the EDM machine tool, and the results of the multiple measurements are compared. When the difference between the multiple measurement results is less than the preset accuracy, the second coordinate is obtained. In order to better grasp the accuracy of the EDM discharge, it is best to measure it multiple times. When the difference between the results after multiple measurements is less than the preset accuracy, this preset accuracy is set to 5μm, it can be considered that the error is within a very small range, and the accuracy can reach a relatively high level.

[0081] Specifically, the EDM drawings are stored in the discharge basic library and obtained through the discharge basic library. The EDM drawings here include electrode drawings and workpiece drawings. The discharge basic library is a special database specially established for the experience of EDM discharge parameters, including a discharge basic universal library and a discharge basic representative library. The discharge basic universal library can cover all combinations of processing plan parameters, as well as the corresponding discharge condition parameters and discharge subprograms. There are many combinations of discharge parameter experience, which requires a long accumulation process; the discharge basic representative library is a summary of commonly used, representative, and limited number of processing plan items, and corresponding discharge condition parameters and subprograms by different EDM teams based on the characteristics of the processing categories they are good at.

[0082] Specifically, it also includes storing the processing correction value in the discharge basic library. The processing correction value here refers to the electrode correction value and the workpiece correction value. After calculating these two correction values, the two correction values ​​can be stored in the discharge basic library, specifically in the discharge subprogram of the discharge basic library, which can be convenient for later generation and use.

[0083] Embodiment 2

[0084] This embodiment provides a system for automatically generating EDM workpiece coordinates and electrode coordinates, including: a processor and a memory, the memory stores a program module, the program module runs on the processor, and the following method steps are performed:

[0085] Step S1: obtaining an EDM drawing, obtaining a preset detection point coordinate according to the EDM drawing, and calculating a first coordinate according to the preset detection point coordinate, the first coordinate being a theoretical center point coordinate of the EDM drawing;

[0086] Step S2: According to the preset detection point coordinates, the reference ball of the EDM machine tool is combined to measure and calculate the second coordinates, which are the coordinates of the physical center point of the EDM machining;

[0087] Step S3: Calculate the difference between the first coordinate and the second coordinate to obtain the EDM correction value;

[0088] Step S4: Import the machining compensation value into the EDM machine tool to perform the EDM discharge operation.

[0089] Preferably, step S2 includes, before using the reference ball of the electric spark machine tool for measurement, it is also necessary to perform electrode parallel detection, and the reference platform is an electrode reference platform coordinate system or a workpiece coordinate system.

[0090] The above method automatically determines the theoretical center points of the workpiece and the electrode by analyzing the workpiece design drawings and the electrode design drawings. After the workpiece is placed and the electrode is installed, the correction value is calculated by comparing the error between the physical center point and the theoretical center point to achieve automatic generation of the workpiece and electrode coordinates, thereby greatly improving the efficiency of EDM machining.

[0091] Embodiment 3

[0092] This embodiment further provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided by the various implementation modes described above.

[0093] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, abbreviated as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0094] The present invention also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements the methods provided in the above various embodiments.

[0095] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for automatically generating EDM workpiece coordinates and electrode coordinates, characterized in that: The following steps are involved: Step S1: obtaining an EDM drawing, obtaining a preset detection point coordinate according to the EDM drawing, and calculating a first coordinate according to the preset detection point coordinate, the first coordinate being a theoretical center point coordinate of the EDM drawing; Step S2: According to the preset detection point coordinates, the reference ball of the EDM machine tool is combined to measure and calculate the second coordinates, where the second coordinates are the coordinates of the physical center point of the EDM machining; Step S3: Calculate the difference between the first coordinate and the second coordinate to obtain an EDM correction value; Step S4: importing the machining correction value into the EDM machine tool to perform an EDM discharge operation; The step S2 includes that before using the reference ball of the EDM machine tool for measurement, it is also necessary to perform electrode parallel detection, and the reference table is the electrode reference table coordinate system or the workpiece coordinate system; When this operation is to generate electrode coordinates, the reference table is the electrode reference table coordinate system. If this operation is to generate workpiece coordinates, the reference table is the workpiece coordinate system. The steps of electrode parallel detection are as follows: when the electrode coordinates are generated at this time, the electrode reference table coordinate system is first aligned with the reference sphere coordinate system, and then any point is selected in each direction of the X+, X-, Y+, and Y- axes, and the vertical coordinate difference between the two points in each direction is measured to determine whether the coordinate difference is less than the specified threshold. If it is greater, realign the above steps, and if it is less, complete the alignment process.

2. A method for automatically generating EDM workpiece coordinates and electrode coordinates according to claim 1, characterized in that: The step S1 includes: the EDM drawing includes an electrode drawing and a workpiece drawing, and the preset detection point coordinates of the electrode and the workpiece are respectively obtained according to the electrode drawing and the workpiece drawing, and then the first electrode coordinate and the first workpiece coordinate are respectively calculated, and the first electrode coordinate and the first workpiece coordinate are respectively the theoretical center point coordinates of the electrode drawing and the workpiece drawing.

3. A method for automatically generating EDM workpiece coordinates and electrode coordinates according to claim 2, characterized in that: The step S2 includes: measuring according to the preset detection point coordinates of the electrode and the workpiece in combination with the reference ball of the electric spark machine tool, and calculating the second electrode coordinates and the second workpiece coordinates respectively, wherein the second electrode coordinates and the second workpiece coordinates are the physical center point coordinates of the electrode and the workpiece respectively.

4. A method for automatically generating EDM workpiece coordinates and electrode coordinates according to claim 3, characterized in that: The step S3 includes: calculating a difference according to the first electrode coordinate and the second electrode coordinate to obtain an electrode correction value, and calculating a difference according to the first workpiece coordinate and the second workpiece coordinate to obtain a workpiece correction value.

5. The method for automatically generating EDM workpiece coordinates and electrode coordinates according to claim 4, characterized in that: The step S4 includes: respectively introducing the electrode correction value and the workpiece correction value into the electric spark machining machine to perform an electric spark discharge operation.

6. The method for automatically generating EDM workpiece coordinates and electrode coordinates according to claim 1, characterized in that: The step S3 also includes: performing multiple measurements according to the preset detection point coordinates in combination with a reference ball of the electric spark machine tool, comparing the results of the multiple measurements, and obtaining the second coordinates when the difference between the multiple measurement results is less than a preset accuracy.

7. The method for automatically generating EDM workpiece coordinates and electrode coordinates according to claim 1, characterized in that: The step S1 of acquiring the EDM drawing includes: the EDM drawing is stored in a discharge basic library, and is acquired through the discharge basic library.

8. The method for automatically generating EDM workpiece coordinates and electrode coordinates according to claim 1, characterized in that: The step S4 of importing the machining correction value into the EDM machine tool also includes: storing the machining correction value in a discharge basic library.

9. A system for automatically generating EDM workpiece coordinates and electrode coordinates, comprising: A processor and a memory, wherein the memory stores a program module, wherein the program module runs on the processor to implement the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and system for online workpiece measurement of electrical discharge machine

    CN111336962A