A method for detecting and integrating in-process machining of a three-dimensional simulation-based numerical control spark machine

By using 3D simulation technology to arrange and measure inspection points inside the CNC EDM machine, and combining this with ball markers to establish an actual coordinate system, the integrated processing and inspection of CNC EDM machine is realized, improving production efficiency and accuracy. This method is suitable for low-end machine tools.

CN117444329BActive Publication Date: 2025-12-26NINGBO UNITED MOLD CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311484584.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-08
Publication Date
2025-12-26
Estimated Expiration
2043-11-08

AI Technical Summary

Technical Problem

Existing CNC EDM machines require disassembling the workpiece for precision testing after machining, resulting in low production efficiency and errors, making it difficult to achieve efficient and accurate quality control.

Method used

A simulated reference coordinate system is established using three-dimensional simulation technology. Detection points are arranged and measured inside the CNC EDM machine using ball markers. An actual coordinate system is established using the reference ball for online measurement. The machining position is then manually judged and adjusted to achieve integrated in-machine inspection.

Benefits of technology

It improves the convenience and accuracy of processing and inspection, reduces the need for disassembly and repositioning, is suitable for low-end CNC EDM machines, and lowers the requirements for the processor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117444329B_ABST
    Figure CN117444329B_ABST
Patent Text Reader

Abstract

The application discloses a kind of CNC spark machine precision detection method and system in machine, including by computer aided manufacturing software in three-dimensional model arrangement needs to be measured detection point position;Extract under the simulation reference coordinate system reference, the coordinate information of each detection point position corresponding ball mark;The extracted coordinate information is converted into the variable format that machine tool measurement program can recognize, input to measurement program file;Electrode is fed to the workpiece to be processed and completes processing;Retrieve measurement program file and carry out online measurement to each detection point position;Manual error judgment is carried out according to the output measurement precision;Without changing workpiece and electrode positioning clamping, carry out local processing to the corrected processing position, the advantage is that CNC spark machine in-machine processing detection integration is improved measurement and processing accuracy;Data volume is less, and data type is simple, and the requirement of machine tool calling program is lower;More universal to market CNC spark machine, especially more suitable for low configuration machine tool.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of machining, the technical field of numerical control spark machining quality control, and a numerical control spark machine in-process machining detection integrated method based on three-dimensional simulation. BACKGROUND

[0002] The numerical control spark machine is a full-automatic numerical control spark machine tool controlled by a computer CNC program. The numerical control spark machine has many advantages that cannot be matched by traditional cutting machining. It can solve the machining of difficult-to-machine materials and complex-shaped parts.

[0003] Generally, the numerical control spark machine uses red copper or graphite as the negative electrode material. During the discharge process, wear occurs, causing dimensional errors of the machined workpiece. In addition, changes in the degree of contamination of the working fluid, chip removal conditions, machining depth, and machining area may also affect the machining accuracy. Therefore, it is usually necessary to detect the accuracy of the workpiece after machining to ensure that it meets the quality requirements. When the accuracy error is found to be large and can be repaired by re-machining, the workpiece will be machined again by the numerical control spark machine.

[0004] In the traditional numerical control spark machining industry, batch production is usually adopted, and separate equipment such as a three-coordinate measuring instrument is used for detection. After detection, if the accuracy is not good, the workpiece is returned to the numerical control spark machine for re-clamping, positioning, and centering for rework.

[0005] Due to the long time for re-clamping, positioning, and centering, and the easy bruising and wear of the workpiece during transportation, there may be deviations between the production and detection, detection and rework processes, and the actual real-time workpiece state cannot be accurately obtained. Not only is the production efficiency low, but also the quality control is not conducive.

[0006] A method and system for online measurement of a spark machine workpiece with the authorization announcement number CN111336962B, by collecting the basic data of the part model drawing, then calculating the derived data according to the basic data, inputting the basic data and derived data into the measurement program to generate actual touch coordinate values, then collecting the actual touch coordinate values, and calculating the deviation between the actual touch coordinate values and the basic data to determine the deviation between the actual machining of various types of machine tools and spark machine parts and the part model drawing, so that the spark machine tool adjusts the machining through the deviation, without the need to disassemble professional measuring equipment to measure.

[0007] The above patent is a kind of virtual and real combination measurement means based on three-dimensional simulation and actual measurement, but due to the fact that the numerical control spark machine has multiple stations, and the positional relationship between the workpiece and the measuring ball is not necessarily, there is certain obstruction in the on-line measurement process. In addition, due to the large number of measurement points, after generating the deviation report, the deviation adjustment is dependent on the spark machine itself, which is too high a requirement for the processor and is not suitable for on-line detection on some existing low-config numerical control spark machines. SUMMARY

[0008] The present application provides a method and system for in-machine precision detection of a numerical control spark machine. Through the implementation of simulation technology + entity verification, the traditional test is localized, miniaturized and economized. The simulation model is corrected through overall entity verification, and local entity verification samples are established relying on simulation data to perform local entity verification, thereby effectively, accurately, simply, economically and reliably verifying the attention parts of electronic products.

[0009] The technical scheme adopted by the present application to solve the above technical problems is: a numerical control spark machine machining and detection integrated method based on three-dimensional simulation, the method at least includes the following steps:

[0010] Step 11: three-dimensional modeling based on the physical form and dimensional accuracy of the product to obtain a three-dimensional numerical model file;

[0011] Step 12: using computer-aided manufacturing software with coordinate measurement to the three-dimensional numerical model file obtained in step 11, dividing with a preset reference to establish a simulated reference coordinate system;

[0012] Step 13: arranging the detection points to be measured in the three-dimensional numerical model through the computer-aided manufacturing software, and selecting the diameter and approximation distance of the ball marker;

[0013] Step 14: extracting the coordinate information of the ball marker corresponding to each detection point under the simulated reference coordinate system reference, including the approximation position ball marker center coordinates (x1, y1, z1), the contact position ball marker center coordinates (x2, y2, z2) and the contact position ball marker contact point coordinates (x3, y3, z3);

[0014] Step 15: converting the extracted coordinate information into a variable format recognizable by the machine tool measurement program and inputting it into the measurement program file;

[0015] Step 21: positioning and clamping the workpiece to be machined in the numerical control spark machine, installing the electrode and the reference ball with the same diameter as the ball marker;

[0016] Step 22: the numerical control spark machine uses the reference ball to divide and establish an actual coordinate system for electrode operation;

[0017] Step 23: control the electrode to feed to the workpiece to be processed based on the actual coordinate system, and complete the processing;

[0018] Step 31: calibrate the processed workpiece based on the preset reference to zero, unify the current coordinate system with the simulation reference coordinate system, and establish a measurement reference coordinate system;

[0019] Step 32: call the measurement program file in step 15 to measure each detection point online, and output the measurement accuracy;

[0020] Step 41: manually judge the error according to the output measurement accuracy, and determine the processing position that needs to be corrected;

[0021] Step 42: without changing the positioning and clamping of the workpiece and the electrode, locally process the corrected processing position under the measurement reference coordinate system established in step 31.

[0022] The preferred technical solution adopted by the present application to solve the above technical problems is that step 32 comprises the following sub-steps:

[0023] Step 321: obtain the approximate position ball mark center coordinates (x1, y1, z1), and move the reference ball center to the coordinate position;

[0024] Step 322: obtain the contact position ball mark center coordinates (x2, y2, z2) and the contact position ball mark contact point coordinates (x3, y3, z3), and keep one of the coordinate values of the reference ball unchanged and move to the contact position ball mark center coordinates corresponding position;

[0025] Step 323: move the reference ball until it contacts the workpiece, and obtain the reference ball center coordinates (x20, y20, z20) at this time;

[0026] Step 324: calculate the measurement error according to the approximate position ball mark center coordinates (x1, y1, z1), the contact position ball mark center coordinates (x2, y2, z2) under the simulation reference coordinate system, and the reference ball center coordinates (x20, y20, z20) obtained after step 323 actual detection;

[0027] Step 325: repeatedly perform steps 321 to 324, call the coordinate information of the ball mark corresponding to different detection points, and output the measurement error of different detection points.

[0028] The preferred technical solution adopted by the present application to solve the above technical problems is that step 322 comprises the following sub-steps:

[0029] Step 3221: respectively obtain the relative distances of the center coordinates (x1, y1, z1) of the current position of the reference ball and the contact point coordinates (x3, y3, z3) of the contact position ball mark on the X axis, the Y axis and the Z axis;

[0030] Step 3222: determine the relative distance of the center coordinates (x1, y1, z1) of the current position of the reference ball and the contact point coordinates (x3, y3, z3) of the contact position ball mark on the X axis, the Y axis and the Z axis, and determine the axis with the largest relative distance and the positive or negative position relationship between the current position of the reference ball and the contact position on the axis with the largest relative distance;

[0031] Step 3223: keep the coordinates of the center of the reference ball on the axis with the largest relative distance unchanged, and move the orthogonal intercepting plane on the axis with the largest relative distance to the center coordinate position of the contact position ball mark.

[0032] The preferred technical solution adopted by the present application to solve the above technical problems is that in step 14, the computer-aided manufacturing software with coordinate measurement generates and outputs an EXCEL format report;

[0033] In step 15, the coordinate data in the EXCEL format report generated in step 14 is copied into an EXCEL format data template file, the coordinate data in the EXCEL format report is converted into a data format recognizable by a machine tool program by using a function, and then the coordinate data in the data format recognizable by the machine tool program in the data template file is copied out and copied into a program file template to form a measurement sub-program file.

[0034] Before step 21, the measurement sub-program file formed in step 15 is copied into the machine tool.

[0035] The preferred technical solution adopted by the present application to solve the above technical problems is that in step 32, after each detection point is detected, the reference ball moves away from the workpiece to a safe position.

[0036] The preferred technical solution adopted by the present application to solve the above technical problems is that after step 12, a safe position based on a simulated reference coordinate system is obtained in the three-dimensional numerical model file;

[0037] The safe position is selected as any empty position higher than the highest point of the workpiece in the Z axis direction of the three-dimensional numerical model file;

[0038] In step 32, the reference ball is translated back to the safe position along the Z axis.

[0039] The preferred technical solution adopted by the present application to solve the above technical problems is that in step 32, the machine tool outputs error data through a display screen;

[0040] In step 41, the error data output in step 32 is recorded manually and compared with a standard threshold value;

[0041] In step 42, the coordinate values needing correction are input to the machine tool through the machine tool program control terminal manually.

[0042] The preferred technical solution adopted by the present application to solve the above technical problems is that the calculation method of measurement accuracy is:

[0043] a = (x1-x2) 2 ; b = (y1-y2) 2 ; c = (z1-z2) 2 ; d = (x1-x20) 2 ; e = (y1-y20) 2 ; f = (z1-z20) 2 ;

[0044] γ = α-β.

[0045] The preferred technical solution adopted by the present application to solve the above technical problems is that the diameter of the ball mark and the reference ball is 2MM.

[0046] The preferred technical solution adopted by the present application to solve the above technical problems is that the approaching distance selected in step 13 is 1.5mm.

[0047] Compared with the prior art, the present application has the following advantages:

[0048] First, the numerical control spark machine integrates machining and detection in one, and the same positioning and clamping is used for machining, detection and rework, so that repeated positioning is not needed, not only the convenience is improved, but also the accuracy of measurement and machining is improved;

[0049] Second, the detection points and detection paths are set by three-dimensional simulation, and only the basic coordinate information of each point is output and edited into the measurement program, without additional derivative data, so that the data amount is small, the data type is simple, and the requirement for the machine tool calling program is low.

[0050] Third, the error is judged by manual according to the output measurement accuracy, and the machining position needing correction is determined to adjust the machining data, instead of using the method of actively calling the measurement sequence by the machine tool to generate a report, so that the present application is more suitable for the numerical control spark machines on the market, especially more suitable for low-configured machine tools. BRIEF DESCRIPTION OF DRAWINGS

[0051] The present application will be described in further detail below in conjunction with the accompanying drawings and preferred embodiments, but those skilled in the art will appreciate that these drawings are only for illustrative purposes of the preferred embodiments and therefore should not be construed as limiting the scope of the present application. In addition, unless specifically indicated otherwise, the drawings only schematically represent the composition or configuration of the described objects and can include exaggerated displays, and the drawings are not necessarily drawn to scale.

[0052] Figure 1 A schematic diagram of the overall three-dimensional numerical model of a workpiece in an embodiment of the present application;

[0053] Figure 2 A schematic diagram of the detection point arrangement of a workpiece shown in the present application Figure 1

[0054] Figure 3 A spherical marker coordinate information extracted from the No. 1 detection point of a workpiece shown in the present application Figure 2 DETAILED DESCRIPTION

[0055] The preferred embodiments of the present application will be described in detail below with reference to the accompanying drawings. Those skilled in the art will appreciate that these descriptions are only descriptive, exemplary, and should not be construed as limiting the scope of protection of the present application.

[0056] The present application provides a numerical control spark machine processing and detection integrated method based on three-dimensional simulation, comprising the following steps:

[0057] Step one, three-dimensional simulation, extracting detection point coordinate information, generating measurement program file.

[0058] The specific steps of step one include:

[0059] Step 11: As shown, based on the physical form and dimensional accuracy of the product, three-dimensional modeling is performed to obtain a three-dimensional numerical model file. Figure 1

[0060] Step 12: The three-dimensional numerical model file obtained in step 11 is subjected to centering with a preset reference and then a simulation reference coordinate system is established by using computer-aided manufacturing software with coordinate measurement.

[0061] Step 13: As shown, the detection points to be measured are arranged in the three-dimensional numerical model by using computer-aided manufacturing software, and the diameter of the spherical marker and the approach distance are selected. Figure 2

[0062] Step 14: As shown, the three-dimensional numerical model is simulated by using computer-aided manufacturing software with coordinate measurement, and the spherical marker coordinate information of the detection points is extracted. Figure 3 ​​​​As shown, the coordinate information of the ball marker corresponding to each detection point under the simulation reference coordinate system reference includes the approximate position ball marker center coordinate (x1, y1, z1), the contact position ball marker center coordinate (x2, y2, z2), and the contact position ball marker contact point coordinate (x3, y3, z3).

[0063] Step 15: Convert the extracted coordinate information into a variable format recognizable by the machine tool measurement program, and input into the measurement program file.

[0064] Step two, position the clamped blank, install the electrode and the reference ball with the same diameter as the ball marker, and perform surface processing.

[0065] The specific steps of step two include:

[0066] Step 21: Position the workpiece to be processed in the numerical control spark machine, install the electrode and the reference ball with the same diameter as the ball marker.

[0067] Step 22: The numerical control spark machine uses the reference ball to center and establish an actual coordinate system for the electrode operation.

[0068] Step 23: Take the actual coordinate system as the reference, control the electrode to feed to the workpiece to be processed to complete the processing.

[0069] Step three, call the measurement program file, and use the reference ball to measure the processed workpiece in the machine.

[0070] The specific steps of step three include:

[0071] Step 31: The reference ball performs zero calibration on the processed workpiece with the preset reference, unifies the current coordinate system with the simulation reference coordinate system, and establishes a measurement reference coordinate system.

[0072] Step 32: Retrieve the measurement program file in step 15 to measure each detection point online, and output the measurement accuracy.

[0073] Step four, error analysis and judgment, without changing the positioning and clamping conditions of the workpiece and electrode, the spark machine returns to work.

[0074] The specific steps of step four include:

[0075] Step 41: Manually judge the error according to the output measurement accuracy, and determine the processing position that needs to be corrected.

[0076] Step 42: Without changing the positioning and clamping of the workpiece and electrode, locally process the corrected processing position under the measurement reference coordinate system established in step 31.

[0077] In step one above, UG, SolidWorks, CimatronE or other software can be used to make a three-dimensional model file. In this embodiment, CimatronE is used to make a three-dimensional model file in step 11, and the three-dimensional model file is opened in CimatronE in step 12 to generate a simulation reference coordinate system.

[0078] For example, for a workpiece three-dimensional model as shown in Figure 1 The center of the four faces is taken as the zero point, and the top face is used to establish a simulation reference coordinate system.

[0079] In step 13, the "coordinate measurement" function in the "tools" option of the CimatronE software operation interface is opened, a label is added, and the detection point positions that need to be measured are arranged on the three-dimensional model. When arranging the detection point positions, the probe and the approach distance are reasonably selected. In order to fit with the in-machine detection, a spherical marker with the same shape as the reference sphere of the spark machine parting rod is selected, and the approach direction is the normal direction of the curved surface. The diameter of the spherical marker is also selected to be the same as the diameter of the reference sphere of the matching spark machine. When the detection point positions are formed, the start and end points of the detection path are also preliminarily planned. In this embodiment, a 2mm spherical marker and a 1.5mm approach distance are selected.

[0080] After all the detection point positions are arranged, click the blank area and click the confirmation option in the pop-up window to save the data.

[0081] CimatronE, as a computer-aided manufacturing software with coordinate measurement, can generate and output an EXCEL format report.

[0082] In step 14, after saving the data, the "coordinate measurement" function in the "tools" option is used to create a report, generate a CSV format report and an EXCEL format report. Then the coordinate information of the spherical marker corresponding to each detection point position under the simulation reference coordinate system reference is extracted, including the approach position spherical marker center coordinates (x1, y1, z1), the contact position spherical marker center coordinates (x2, y2, z2) and the contact position spherical marker contact point coordinates (x3, y3, z3).

[0083] As shown in Figure 3 Point A is the starting point of the reference sphere approaching the workpiece, and its coordinates are the approach position spherical marker center coordinates (x1, y1, z1). Point B is the spherical center position where the reference sphere theoretically stops after contacting the workpiece, and its coordinates are the contact position spherical marker center coordinates (x2, y2, z2). Point C is the contact point of the reference sphere and the workpiece, and its coordinates are the contact position spherical marker contact point coordinates (x3, y3, z3).

[0084] In step 15, the coordinate data in the EXCEL format report generated in step 14 is copied into the EXCEL format data template file, and the coordinate data in the EXCEL format report is converted into a data format recognizable by the machine tool program by using a function.

[0085] When multiple different specifications of spark machines from different manufacturers are used to process the same workpiece, because the data format recognizable by each machine tool is different, multiple templates can be set in EXCEL in advance. First, the coordinate data in the EXCEL format report generated in step 14 is copied into the EXCEL format basic data template file, and the coordinate data in the EXCEL format report is converted into a basic format data by using a function, and then the basic format data is copied again into the data template corresponding to the spark machine of different specifications to convert into a data format recognizable by each machine tool program.

[0086] Then the coordinate data in the data template file in the data format recognizable by the machine tool program is copied out and copied into the program file template to save and form a measurement sub-program file. The specific execution statements in the sub-program file facilitate the subsequent measurement process. The basic algorithm and execution method are described in detail in the subsequent measurement process.

[0087] After completing the editing of the measurement sub-program file, the measurement sub-program file formed in step 15 is copied into the machine tool before step 21.

[0088] In this embodiment, in step 32, the machine tool outputs error data through the display screen; in step 41, the error data output in step 32 is recorded manually and compared with the standard threshold; and in step 42, the machine tool is inputted with the coordinate value that needs to be corrected through the machine tool program control end by manual.

[0089] The technical solution has the following advantages:

[0090] Second, the in-machine processing and detection integration of the numerical control spark machine, the same positioning and clamping is adopted for processing, detection and rework, and there is no need to disassemble and repeatedly position, which not only improves the convenience, but also improves the accuracy of measurement and processing;

[0091] Second, the detection points and detection paths are set by using three-dimensional simulation, and only the basic coordinate information of each point is output and edited into the measurement program, there is no additional derived data, the data amount is small, the data type is simple, and the requirement for the machine tool calling program is low;

[0092] Fourth, manual error judgment is performed according to the output measurement accuracy, the processing position that needs to be corrected is determined, and the processing data is adjusted, instead of using the machine tool to actively call the measurement sequence to generate a report, so that the numerical control spark machine on the market is more universal, and it is more suitable for low-configured machine tools.

[0093] The following procedure will explain the measurement method in Step 3 in detail.

[0094] Step 32 includes the following sub-steps:

[0095] Step 321: Obtain the approximate position sphere marker center coordinates (x1, y1, z1), and move the reference sphere center to this coordinate position.

[0096] Step 322: Obtain the contact position sphere marker center coordinates (x2, y2, z2) and the contact position sphere marker contact point coordinates (x3, y3, z3), and move the reference sphere to the contact position sphere marker center coordinates corresponding position while keeping one of the coordinate values unchanged.

[0097] Step 323: Translate the reference sphere until it contacts the workpiece, and obtain the reference sphere center coordinates (x20, y20, z20) at this time.

[0098] Step 324: Calculate the measurement error according to the approximate position sphere marker center coordinates (x1, y1, z1) in the simulated reference coordinate system, the contact position sphere marker center coordinates (x2, y2, z2), and the reference sphere center coordinates (x20, y20, z20) obtained after actual detection in Step 323.

[0099] Step 325: Repeat Steps 321 to 324, call the coordinate information of the corresponding sphere marker of different detection point positions, and output the measurement error of different detection point positions.

[0100] In Step 322, the program algorithm calculates the largest side in the triangular relationship between the approximate starting point and the contact point of the detection point, and the positive or negative orientation relationship between the contact point and the starting point. The broken line path is equivalent to the normal approach, so that the detection is completed using the simplest coordinate basic data. No vector data or other derived data is required. The data processing is simplified, the program is simplified, and the EDM system is easy to call.

[0101] Specifically, Step 322 includes the following sub-steps:

[0102] Step 3221: Respectively obtain the relative distances of the reference sphere current position center coordinates (x1, y1, z1) and the contact position sphere marker contact point coordinates (x3, y3, z3) on the X-axis, Y-axis, and Z-axis.

[0103] Step 3222: Determine the relative distance of the reference sphere current position center coordinates (x1, y1, z1) and the contact position sphere marker contact point coordinates (x3, y3, z3) on the X-axis, Y-axis, and Z-axis, and determine the largest relative distance axis and the positive or negative position relationship of the reference sphere current position on the largest relative distance axis and the contact position.

[0104] Step 3223: Keep the coordinate of the center of the reference ball on the axis with the largest relative distance unchanged, and move the orthogonal intercepting plane of the reference ball along the axis with the largest relative distance to the coordinate position corresponding to the center of the contact position ball mark.

[0105] The corresponding program is as follows:

[0106] With the center coordinate of the current position of the reference ball being (x1, y1, z1), the following judgments are made and the corresponding path is moved after the corresponding results are obtained.

[0107] If the result of step 3222 is z1>z3, and |z1-z3|>|x1-x3|, and |z1-z3|>|y1-y3|, then in step 3223, the reference ball keeps the Z-axis coordinate unchanged, and the center line of the reference ball is moved to (x2, y2, z1). In step 323, the reference ball is moved downward along the Z-axis until it contacts the workpiece.

[0108] If the result of step 3222 is x1>x3, and |x1-x3|>|y1-y3|, and |x1-x3|>|z1-z3|, then in step 3223, the reference ball keeps the X-axis coordinate unchanged, and the center line of the reference ball is moved to (x1, y2, z2). In step 323, the reference ball is moved in the negative direction along the X-axis until it contacts the workpiece.

[0109] If the result of step 3222 is x1<x3, and |x1-x3|>|y1-y3|, and |x1-x3|>|z1-z3|, then in step 3223, the reference ball keeps the X-axis coordinate unchanged, and the center line of the reference ball is moved to (x1, y2, z2). In step 323, the reference ball is moved in the positive direction along the X-axis until it contacts the workpiece.

[0110] If the result of step 3222 is y1>y3, and |y1-y3|>|x1-x3|, and |y1-y3|>|z1-z3|, then in step 3223, the reference ball keeps the Y-axis coordinate unchanged, and the center line of the reference ball is moved to (x1, y2, z2). In step 323, the reference ball is moved in the negative direction along the Y-axis until it contacts the workpiece.

[0111] If the result of step 3222 is y1<y3, and |y1-y3|>|x1-x3|, and |y1-y3|>|z1-z3|, then in step 3223, the reference ball keeps the Y-axis coordinate unchanged, and the center line of the reference ball is moved to (x2, y1, z2). In step 323, the reference ball is moved in the positive direction along the Y-axis until it contacts the workpiece.

[0112] After step 12, the safety position based on the simulated reference coordinate system is obtained in the three-dimensional model file.

[0113] In step 32, after each detection point is detected, the reference ball is moved away from the workpiece to a safe position. The safe position is selected at any clearance position higher than the highest point of the workpiece in the Z-axis direction of the three-dimensional model file; in step 32, the reference ball is translated along the Z-axis to retreat to the safe position.

[0114] In this embodiment, the calculation method of the measurement accuracy is:

[0115] a = (x1-x2) 2 ; b = (y1-y2) 2 ; c = (z1-z2) 2 ; d = (x1-x20) 2 ; e = (y1-y20) 2 ; f = (z1-z20) 2 ;

[0116] γ = α-β.

[0117] Finally, the data of α, β and γ of each detection point will be displayed on the display screen of the numerical control spark machine or the computer control interface. The operator compares α, β and γ of each detection point with the set threshold value to determine the point that needs to be corrected.

[0118] The above describes in detail the reliability verification method of the electronic device provided by the system level to the component level. The principle and implementation manner of the present application are described by using specific examples. The above embodiment is only used to help understand the present application and the core idea. It should be pointed out that, for those skilled in the art, without departing from the principle of the present application, the present application can be improved and modified in several ways, and these improvements and modifications also fall within the protection scope of the claims of the present application.

Claims

1. A method for detecting and integrating a numerical control spark machine based on three-dimensional simulation, characterized in that, The method comprises at least the following steps: Step 11: three-dimensional modeling based on the physical form and dimensional accuracy of the product to obtain a three-dimensional numerical model file; Step 12: using computer-aided manufacturing software with coordinate measurement to divide the three-dimensional numerical model file obtained in step 11 to establish a simulated reference coordinate system; Step 13: arranging the detection points to be measured in the three-dimensional numerical model through the computer-aided manufacturing software, and selecting the diameter and proximity distance of the ball marker; Step 14: extracting the coordinate information of the ball marker corresponding to each detection point in the simulated reference coordinate system, including the proximity position ball marker center coordinates (x1, y1, z1), the contact position ball marker center coordinates (x2, y2, z2), and the contact position ball marker contact point coordinates (x3, y3, z3); Step 15: converting the extracted coordinate information into a variable format recognizable by the machine tool measurement program, and inputting it into the measurement program file; Step 21: positioning and clamping the workpiece to be processed in the numerical control spark machine, installing the electrode and the reference ball with the same diameter as the ball marker; Step 22: the numerical control spark machine uses the reference ball to divide and establish an actual coordinate system for the electrode operation; Step 23: taking the actual coordinate system as the reference, controlling the electrode to feed towards the workpiece to be processed to complete the processing; Step 31: using the reference ball to calibrate the zero position of the processed workpiece with the preset reference, so that the current coordinate system is unified with the simulated reference coordinate system; Step 32: calling the measurement program file in step 15 to measure each detection point online, and outputting the measurement accuracy; Step 41: manually judging the error according to the output measurement accuracy to determine the processing position that needs to be corrected; Step 42: without changing the positioning and clamping of the workpiece and the electrode, locally processing the corrected processing position under the coordinate system established in step 31.

2. The method of claim 1, wherein the method is characterized in that : Step 32 comprises the following steps: Step 321: obtaining the proximity position ball marker center coordinates (x1, y1, z1), and moving the center of the reference ball to the coordinate position; Step 322: obtaining the contact position ball marker center coordinates (x2, y2, z2) and the contact position ball marker contact point coordinates (x3, y3, z3), and keeping one of the coordinate values of the reference ball unchanged to move to the contact position ball marker center coordinates corresponding position; Step 323: moving the reference ball until it touches the workpiece to obtain the center coordinates (x20, y20, z20) of the reference ball at this time; Step 324: calculating the measurement error according to the proximity position ball marker center coordinates (x1, y1, z1), the contact position ball marker center coordinates (x2, y2, z2), and the center coordinates (x20, y20, z20) of the reference ball obtained after actual detection in step 323 under the simulated reference coordinate system; Step 325: repeatedly performing steps 321 to 324, calling the coordinate information of the ball marker corresponding to different detection points, and outputting the measurement error of different detection points.

3. The method of claim 2, wherein the method is characterized in that : Step 322 comprises the following steps: Step 3221: respectively obtain the relative distance of the center coordinates (x1, y1, z1) of the current position of the reference ball and the contact point coordinates (x3, y3, z3) of the contact position ball marker on the X axis, Y axis and Z axis; Step 3222: determine the relative distance of the center coordinates (x1, y1, z1) of the current position of the reference ball and the contact point coordinates (x3, y3, z3) of the contact position ball marker on the X axis, Y axis and Z axis, determine the axis with the largest relative distance and the positive or negative position relationship between the current position of the reference ball and the contact position on the axis with the largest relative distance; Step 3223: keep the coordinates of the center of the reference ball on the axis with the largest relative distance unchanged, and move the orthogonal intercepting plane on the axis with the largest relative distance to the coordinate position corresponding to the center of the contact position ball marker.

4. The method of claim 1, wherein the computer-aided manufacturing software with coordinate measurement generates and outputs an EXCEL format report in step 14; in step 15, the coordinate data in the EXCEL format report generated in step 14 is copied into an EXCEL format data template file, the coordinate data in the EXCEL format report is converted into a data format recognizable by the machine tool program using a function, and then the coordinate data in the data format recognizable by the machine tool program in the data template file is copied out and copied into a program file template to form a measurement sub-program file. In step 21, the measurement sub-program file formed in step 15 is copied into the machine tool. In step 32, after each detection point is detected, the reference ball moves away from the workpiece to a safe position.

6. The method of claim 5, wherein the safe position based on the simulated reference coordinate system is obtained in the three-dimensional numerical model file after step 12; the safe position is selected as any avoidance position higher than the highest point of the workpiece in the Z-axis direction of the three-dimensional numerical model file; and the reference ball is translated back to the safe position along the Z-axis in step 32.

5. The method for detecting and integrating a numerical control spark machine based on three-dimensional simulation according to claim 1, characterized in that:

7. The method of claim 1, wherein the machine tool outputs error data through a display screen in step 32; the error data output in step 32 is manually recorded and compared with a standard threshold value in step 41; and the machine tool is manually input with the coordinate values to be corrected through the machine tool program control end in step 42.

8. The method of claim 1, wherein the calculation method of the measurement accuracy is: the operator compares α, β and γ of each detection point with the set threshold value to determine the point to be corrected. The diameter of the ball marker and the reference ball is 2 mm. The selected approximation distance in step 13 is 1.5 mm. ​ ​ ​ ​ ​ ​ ​ a = (xl - x2) 2 ; b = (yl - y2) 2 ; c = (zl - z2) 2 ; d = (xl - x20) 2 ; e = (yl - y20) 2 ; f = (zl - z20) 2 ; ; ; ; ​ 9. The method for detecting and integrating a numerical control spark machine based on three-dimensional simulation according to claim 1, characterized in that: ​ 10. The method of claim 1, wherein the method is characterized by: ​

Citation Information

Patent Citations

  • Methods and systems for online workpiece measurement using EDM machines

    CN111336962B

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

    CN111336962A

  • Positioning device for three-dimensional hole machining and three-dimensional hole machining method based on three coordinates

    CN114682867A