Next Article in Journal
Estimation of Phytoplankton Responses to Hurricane Gonu over the Arabian Sea Based on Ocean Color Data
Previous Article in Journal
Using the Remote Sensing and GIS Technology for Erosion Risk Mapping of Kartalkaya Dam Watershed in Kahramanmaras, Turkey
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Fast Inspection of Tool Electrode and Drilling Depth in EDM Drilling by Detection Line Algorithm

Department of Mechatronic Engineering, Huafan University, Taipei, Taiwan
Sensors 2008, 8(8), 4866-4877; https://doi.org/10.3390/s8084866
Submission received: 1 July 2008 / Revised: 12 August 2008 / Accepted: 15 August 2008 / Published: 21 August 2008

Abstract

:
The purpose of this study was to develop a novel measurement method using a machine vision system. Besides using image processing techniques, the proposed system employs a detection line algorithm that detects the tool electrode length and drilling depth of a workpiece accurately and effectively. Different boundaries of areas on the tool electrode are defined: a baseline between base and normal areas, a ND-line between normal and drilling areas (accumulating carbon area), and a DD-line between drilling area and dielectric fluid droplet on the electrode tip. Accordingly, image processing techniques are employed to extract a tool electrode image, and the centroid, eigenvector, and principle axis of the tool electrode are determined. The developed detection line algorithm (DLA) is then used to detect the baseline, ND-line, and DD-line along the direction of the principle axis. Finally, the tool electrode length and drilling depth of the workpiece are estimated via detected baseline, ND-line, and DD-line. Experimental results show good accuracy and efficiency in estimation of the tool electrode length and drilling depth under different conditions. Hence, this research may provide a reference for industrial application in EDM drilling measurement.

1. Introduction

Electrical discharge machining (EDM) is a nontraditional machining method usually employed in production of die cavities via the erosive effect of electrical discharges between a tool electrode and a workpiece. Its unique feature of using thermal energy to machine electrically conductive materials irrespective to their hardness and toughness make it applicable not only in the manufacture of die and mold components, but also in the fields of medicine, automotive and aerospace industry. The advantage with EDM is its ability to machine complex cavities, small parts with sharp internal or external radii, and fragile materials or workpieces requiring the creation and modification of very thin walls. However, the occurrence of tool electrode wear is unavoidable and is a very critical issue since tool shape degeneration directly affects the final shape of die cavity. To improve the machining accuracy in the geometry of a workpiece, methods to detect the tool electrode wear as well as compensate the wear of the tool electrode are required. Existing tool wear sensing methods such as offline wear prediction [1, 2] and real-time tool wear sensing approaches based on discharge pulse evaluation [3-5] are all indirect methods.
Optical measurement methods using machine vision techniques have been used for real-time tool wear evaluation in conventional machining processes [6-9]. Jurkovic et al. [6] used a machine system with a laser diode to measure the profile deepness of workpieces whereby a 3D image of a relief surface was obtained. Kim et al. [7] developed a system with a CCD camera and an exclusive jig to measure the size of tool wear in a direct manner. Sortino [8] established a tool condition monitoring system which can detect the worn area of tool. Methods such as statistical, high pass, saturation, and normalization filters were used to detect the surface profile and worn area. Kwon and Fischer [9] proposed a machine vision system that can measure the worn area of cutting tool in lathe machining process.
Kaneko et al. [10] suggested an optical measurement method to measure the tool electrode deformation in the EDM process. The dielectric fluid droplet on the tool electrode had to be blown off first by compressed air after the electrode was pulled up to a position where the machine vision system operated. A shadow image of electrode was then acquired using a parallel light and the deformation of the tool electrode was estimated. Nevertheless, such method can only measure the deformation of tool electrode. The system is incapable of measuring the drilling depth in workpieces because the surface color of the electrode is dark under the parallel light source.
Currently, the drilling depth of a workpiece is not measured directly online in the EDM drilling process but, in fact, manually measured after dissecting the workpiece. To date, no studies have attempted to measure the drilling depth and the tool electrode length (with the dielectric fluid droplet on it) at the same time in EDM. Thus, this paper will present a new approach - a detection line algorithm that detects the electrode length with dielectric fluid droplet on it and the drilling depth in workpieces rapidly and effectively.
The organization of this paper is as follows. Section 2 describes the basic analysis and the proposed method for detecting the tool electrode length and drilling depth. Experimental results and discussions are given in Section 3 that confirm the effectiveness of the proposed method. Section 4 will present some concluding remarks.

2. Materials and Methods

2.1 Image Acquisition System and EDM Drilling Machine

As shown in Figure 1, an EDM machine (JM-430, Jiten) and a controller (P-30, Jiten) were employed to drill workpieces to certain depths. In order to obtain tool electrode images on-line, a machine vision system is proposed. Images were acquired using a CCD (coupled-charge device) monochrome camera (WAT-902B, Watec) with a zoom lens (Zoom 6000 combinations, Navitar), a frame grabber (Meteor, Matrox Inc), and a personal computer (Intel Pentium 4 processor 2.4 GHz). Matrox Imaging Library (MIL 8.0, Matrox Inc) was linked to the programs to grab monochrome images of 640×480 pixels in size. The CCD camera was employed for image acquisition with forward lighting. Images were stored in the hard drive of the personal computer in tagged image file format (TIF). Image processing was performed using Visual C++ 6.0 programming.

2.2 Electrode Length and Drilling Depth Detection

2.2.1 Electrode Image Extraction

Segmenting the tool electrode image is an essential procedure once the characteristics of the electrode have been extracted. The electrode image is extracted using thresholding, hole-filling, closing, and opening operators, as illustrated in Figure 2. Firstly, the principle axis of the tool electrode needs to be identified. By assuming the binary image of electrode is f (xi, yi) (where i=1, 2,…N, and the total number of pixels is N), the centroid is obtained as X ¯ = 1 N i N x i , Y ¯ = 1 N i N y i. The covariance matrix is defined as C = 1 N i N V i V i T M M T, in which Vi is the i'th coordinate vector of the image and M = 1 N i N V i is the mean vector. T indicates vector transposition. A pair of orthogonal eigenvectors of the covariance matrix is calculated. The geometric features – the centroid and the principle axis of electrode, are then computed using eigenvectors, as shown in Figure 3.

2.2.2 Detection Line Algorithm

Before describing the detection line algorithm in detail, we first consider the basic analysis in a situation that the tool electrode image is well defined. As indicated in Figure 4, significant areas of the tool electrode include a base area, normal area, drilling area, and dielectric fluid droplet on the electrode tip. However, these areas are difficult to distinguish accurately and rapidly. Different area boundaries are defined: (1) a baseline between the base and normal areas, (2) a ND-line between the normal and drilling areas, and (3) a DD-line between the drilling area and dielectric fluid droplet.
A prior experiment proceeded as follows. A detection line (100 pixels in length) is used to find gray levels along the direction of the principle axis from the centroid to the tip of the electrode section with scanning resolution in a pixel, as shown in Figure 5. There are different distribution forms of gray levels in different areas, as illustrated in Figure 6. The distributions of gray level are around 255 on the glossy normal area, as shown in Figure 6(a). In Figure 6(b), the distributions of gray level are between 100 and 255 because there are irregular texture images on the drilling area. As the electrode tip (with dielectric fluid droplet on it) is illuminated and thus causing a reflection of the dielectric fluid droplet, a dual peak appears in Figure 6(c), and the distributions of gray levels are between 0 and 255 on the dielectric fluid droplet. Therefore, a polynomial curve fitting method is adopted to fit the distributions of gray levels on detection lines. In Figure 7, the form of fitted curve is a single peak and the maximum value (Nmax) is greater than 255 on the normal area. The fitted curve is also a single peak on the drilling area, but the maximum value (Tmax) is far smaller than Nmax. There is a special property – the dual peak on the dielectric fluid droplet area.
However, the distribution of gray levels method is not applicable in determining the position of the baseline because variations in gray levels along a detection line from normal to base areas are unobvious. For this reason, the baseline is determined using a detection line according to an obvious variation of the diameter from the normal area to the base area. Therefore, a novel method – the detection line algorithm (DLA) is proposed to find the positions of the ND-line, DD-line, and baseline. These boundary lines are then used to segment the base, normal, drilling areas, and dielectric fluid droplet on the tool electrode according to the above-mentioned contentions in this study. Thus, this method can be employed to estimate the tool electrode length with the dielectric fluid droplet remains on its tip effectively.
DLA is described as follows:
Step 1:
Compute the distribution function of gray level defined as
g ( p , t ) = a 0 , p i + a 1 , p i t + a 2 , p i t 2 + a 3 , p i t 3 + a 4 , p i t 4 + a 5 , p i t 5
by a polynomial curve fitting method [11], where p = {p1, p2, …, pn} is a position parameter of the detection line along the principle axis of the tool electrode centroid and t is a distance variable with the detection line.
Step 2:
Find the local maximum value gmax(pi,t) according to g(pi,t). Further, the function of local maximize value gmax(p,t) is established by obtaining gmax(pi,t).
Step 3:
Determine the boundaries:
(1)
Baseline
The diameter function of electrode d(p) is established by a detection line. The first-order derivatives of d(p) is defined as
d ( p ) = Δ d Δ p = d ( p i + 1 ) d ( p i ) p i + 1 p i
Thus, the location of baseline is obtained at the point pmax as maximum value of |d′(p)|. It means that an obvious variation of the diameter is at the baseline.
(2)
ND-line
The slope variation m(pi,t) of gmax (pi, t) is defined as
m ( p i , t ) = Δ g max Δ p = g max ( p i + 1 , t ) f ( g max ( p i , t ) p i + 1 p i
Therefore, the position of ND-line can be found at point pND as the first obvious variation |m(pND,t)| ≥ δ on scanning the tool electrode. δ is a positive constant.
(3)
DD-line
The peak decision method (PD method) is based on the peak number (PN) of g(pi,t) moving along the tool electrode in this study. The location of DD-line is detected by PD method when PN is alternated from 1 (a single peak) to 2 (a dual peak). PN is defined as
P N = { 1 , then g ( p i , t ) normal or drilling areas 2 , then g ( p i , t ) the drop of dielectric fluid
Step 4:
The tool electrode length and drilling depth are defined as:
(1)
Tool electrode length is the distance between the baseline and ND-line.
(2)
Drilling depth is the distance between the ND-line and DD-line.
The algorithms for the tool electrode length and detection and computation are developed using image processing techniques and DLA in this study.

3. Results and Discussion

In this study, the electrode wear detection (EWD) software is written using image processing techniques, DLA in Visual C++ 6.0, and MIL 8.0 library, as shown in Figure 8. The EWD software extracts a binary tool electrode image (threshold value is 80), and identifies the centroid and principal axis of the electrode. Further, the EWD software can estimate the tool electrode length and drilling depth in a workpiece accurately and rapidly.
The distributions of gray levels from the centroid to the tip of the tool electrode using a detection line along the principle axis are illustrated in Figure 9.
In Figure 10, the gray level curves g(p,t) are fitted by polynomial curve fitting which automatically uses the 5th order of polynomial function. The local maximum gmax (p,t) have been found for g(p,t), as shown in Figure 11(a). The slope m(pi,t) of gmax (p,t) is obtained by Eq.(3). Thus, ND-line is determined in accordance with the first obvious variation of |m(pi,t)| as indicated in Figure 11(b) and 11(c).
The location of DD-line is estimated using PD method when the peak number (PN) is alternated from 1 (a single peak) to 2 (a dual peak). The peak number of gray level curve g(p,t) is shown in Figure 12. Although the gray levels of the drilling area scatter in distance-gray level space, the distribution of gray levels appears as a single peak curve. For the dielectric fluid droplet, the fitted curve is a dual peak. The shapes and maximum values of fitted curves are contributed to detections of the ND-line and DD-line positions.
Finally, for the detection of the baseline, the diameter function of electrode d(p) and its first-order derivative d′(p) are obtained using DAL, as showed in Figure 13. Hence, the position of baseline is determined accurately.
Experimental conditions are shown in Table 1. Copper is used as the tool electrode anode, and the diameters of electrode are 1.5 mm (20 samples), 2.0 mm (20 samples), 2.5 mm (20 samples), and 3.0 mm (20 samples) respectively. A series of experiments with different machining parameters are performed and EDW is employed to estimate the tool electrode lengths and drilling depths. The workpieces are then cut open by WEDM (wire electrical discharge machine) manually for actual drilling depths measurement. The estimated values of electrode length and drilling depth are obtained using our machine vision system, and manually measured values are obtained by a tool-maker microscope. Figure 14 shows the machined holes, electrodes and cut section of the workpiece. Experimental results are given in Table 2. The drilling speed is increased with the peak current, but the electrode wear (i.e., the difference in electrode length before and after the drilling) is augmented simultaneously. For example, the average machined time is 28 minutes (electrode wear 0.062 mm) in a peak current of 6.0 A, but slowed down to 42 minutes (electrode wear 0.033 mm) in a peak current of 5.0 A with the same drilling depth (2.0 mm). The average error between estimated and manually measured electrode lengths is 0.075 mm, and for drilling depths is 0.245 mm. The accuracy of estimated drilling depth is reduced because the accumulating carbon on the electrode surface grown at the drilling area, and the size and shape of dielectric fluid droplet is uncertain. For this reason, the boundary between the normal and drilling areas is an irregular border. Moreover, another possible cause is the gap distance in EDM drilling. In general, the gap distance is an uncertain variable. However, under certain circumstances, the gap distance is more precise, and hence, overall accuracy can be increased. For example, a steady gap status is achieved when using the servo feed control in EDM drilling. Thus, the gap distance (about 0.05 mm) can be taken into account to estimate the drilling depth. The error of measured drilling depth is then reduced to 0.195 mm.
According to the above-mentioned results and discussion, the advantage of the proposed method is summarized as follows: the tool electrode length and the drilling depth of workpieces can be estimated effectively (no need of an air compressor to blow off the dielectric fluid droplet and cut open the workpieces).
However, the weak point of this study is that round corner of tool cannot be measured because of the retaining dielectric fluid droplet on the tip of tool electrode. Our expectancy is achieved according to the experimental results. The results of this study may be of interest to EDM industry attempting to develop an inspector and to increase efficiency.

4. Conclusions

The objective of this study is to propose a novel and efficient method for sensing electrode parameters in EDM drilling process. As presented in this paper, the conclusions can be summarized as follows: (1) the proposed detection line algorithm (DLA) can detect the tool electrode length and drilling depth accurately and effectively. DLA includes a polynomial curve fitting, slope variation, and PD methods, (2) our machine vision system is powerful and flexible under different experimental conditions on real time measurement, (3) our system can provide an important reference for EDM industry.

References and Notes

  1. Yu, Z.; Masuzawa, T.; Fujiino, M. Micro-EDM for three-dimensional cavities-development of uniform wear method. Ann. CIRP 1998, 47, 169–172. [Google Scholar]
  2. Tsai, Y.Y.; Masuzawa, T. An index to evaluate the wear resistance of the electrode in micro-EDM. Journal of Materials Processing Tech. 2004, 149, 304–309. [Google Scholar]
  3. Dauw, D. On the deviation and application of a real-time wear sensor in EDM. Ann. CIRP 1986, 35, 111–116. [Google Scholar]
  4. Bleys, P.; Kruth, J. -P.; Lauwers, B.; Zryd, A.; Delpretti, R.; Tricarico, C. Real-time tool wear compensation in milling EDM. Ann. CIRP 2002, 51, 157–160. [Google Scholar]
  5. Bleys, P.; Kruth, J. -P.; Lauwers, B. Sensing and compensation of tool wear in milling EDM. Journal of Materials Processing Technology 2004, 149, 139–146. [Google Scholar]
  6. Jurkovic, J.; Korosec, M; Kopac, J. New approach in tool wear measuring technique using CCD vision system. International Journal of Machine Tools and Manufacture 2005, 45, 1023–1030. [Google Scholar]
  7. Kim, J.H.; Moon, D.K.; Lee, D.W.; Kim, J.S.; Kang, M.C.; Kim, K.H. Tool wear measuring technique on the machine using CCD and exclusive jig. Journal of Materials Processing Technology 2002, 130, 668–674. [Google Scholar]
  8. Sortino, M. Application of statistical filtering for optical detection of tool wear. International Journal of Machine Tools and Manufacture 2003, 43, 493–497. [Google Scholar]
  9. Kwon, Y.; Fischer, G.W. A novel approach to quantifying tool wear and too life measurements for optimal tool management. International Journal of Machine Tools and Manufacture 2003, 43, 359–368. [Google Scholar]
  10. Kaneko, T.; Tsuchiya, M.; Kazama, A. Improvement of 3D NC contouring EDM using cylindrical electrodes and optical measurement of electrode deformation and machining of free-curves. Proceedings of 10th International Symposium for Electro Machining (ISEM-10) 1992, 364–367. [Google Scholar]
  11. Foley, J.D.; Dam, A.D.; Feiner, S.K.; Hughes, J.F. Computer graphics: principles and practice. Addison-Wesley 1997. [Google Scholar]
Figure 1. Experimental configuration
Figure 1. Experimental configuration
Sensors 08 04866f1
Figure 2. Electrode image.
Figure 2. Electrode image.
Sensors 08 04866f2
Figure 3. The principle axis and centroid of electrode.
Figure 3. The principle axis and centroid of electrode.
Sensors 08 04866f3
Figure 4. Baseline, ND-line, and DD-line
Figure 4. Baseline, ND-line, and DD-line
Sensors 08 04866f4
Figure 5. Scan direction of detection line on electrode.
Figure 5. Scan direction of detection line on electrode.
Sensors 08 04866f5
Figure 6. The distributions of gray levels on a detection line.
Figure 6. The distributions of gray levels on a detection line.
Sensors 08 04866f6
Figure 7. Fitted curve for gray level on a detection line.
Figure 7. Fitted curve for gray level on a detection line.
Sensors 08 04866f7
Figure 8. The EWM software interface.
Figure 8. The EWM software interface.
Sensors 08 04866f8
Figure 9. The gray level distributions on detection lines.
Figure 9. The gray level distributions on detection lines.
Sensors 08 04866f9
Figure 10. The gray level curves on detection lines.
Figure 10. The gray level curves on detection lines.
Sensors 08 04866f10
Figure 11. The ND-line detecting process. (with p as a position parameter)
Figure 11. The ND-line detecting process. (with p as a position parameter)
Sensors 08 04866f11
Figure 12. The distribution of peak number and DD-line using PD method (with p as a position parameter).
Figure 12. The distribution of peak number and DD-line using PD method (with p as a position parameter).
Sensors 08 04866f12
Figure 13. The baseline detecting process. (with p as a position parameter)
Figure 13. The baseline detecting process. (with p as a position parameter)
Sensors 08 04866f13
Figure 14. The drilled electrodes and a workpiece section.
Figure 14. The drilled electrodes and a workpiece section.
Sensors 08 04866f14
Table 1. Experimental conditions.
Table 1. Experimental conditions.
ParametersValues
Electrode materialCopper
Peak current5.0A, 6.0A
Open voltage90 V
Pulse duration100 μs
Pulse interval100 μs
Diameter of tool electrodeØ 2.0, 2.5, 3.0 mm
Workpiece materialSKD11
Gap distance0.05 mm
Dielectric flushing methodStatic condition
Machined depth1.5, 2.0, 2.5, 3.0 mm
Table 2. Estimated and manual results after EDM drilling.
Table 2. Estimated and manual results after EDM drilling.
No.Machining conditionElectrode diameterAve. machining time (min.)Ave. electrode length (mm)Ave. Machined depth (mm)

ManualEstimatedErrorManualEstimatedError
1Setting depth2.0 mm1.5 mm4219.8519.760.092.081.950.13
2.0 mm6119.9619.890.072.081.970.11
Peak current5.0 A2.5 mm11719.9319.940.012.121.960.16
3.0 mm14919.8719.890.022.111.970.14

2Setting depth3.0 mm1.5 mm5319.7719.880.113.132.890.24
2.0 mm9919.9119.940.033.172.87v0.30
Peak current5.0 A2.5 mm15219.8519.940.093.042.820.22
3.0 mm19919.9120.040.133.142.870.27

3Setting depth4.0 mm1.5 mm6019.7819.920.144.193.850.34
2.0 mm11419.9119.940.034.103.890.21
Peak current5.0 A2.5 mm16319.7819.840.064.213.810.40
3.0 mm21719.9219.940.024.293.890.40

4Setting depth5.0 mm1.5 mm7419.9719.840.135.054.920.13
2.0 mm13319.8819.900.025.104.960.14
Peak current5.0 A2.5 mm17420.0420.050.015.064.920.14
3.0 mm24220.0319.940.095.084.970.11

5Setting depth2.0 mm1.5 mm2819.9219.940.022.141.880.26
2.0 mm4119.8319.990.162.121.900.22
Peak current6.0 A2.5 mm7219.9519.890.062.131.860.27
3.0 mm10419.9919.840.152.111.890.22

6Setting depth3.0 mm1.5 mm3619.8819.940.063.142.870.27
2.0 mm6519.8619.840.023.192.880.31
Peak current6.0 A2.5 mm9419.8519.790.063.152.860.29
3.0 mm13419.8419.890.053.222.900.32

7Setting depth4.0 mm1.5 mm5419.8719.890.024.173.840.33
2.0 mm7919.7819.890.114.163.880.28
Peak current6.0 A2.5 mm11519.8719.790.084.183.910.27
3.0 mm18719.9319.790.144.203.900.30

8Setting depth5.0 mm1.5 mm6519.8219.940.125.164.890.27
2.0 mm10719.8719.840.035.194.920.27
Peak current6.0 A2.5 mm14819.5919.740.155.134.870.26
3.0 mm21319.7319.840.115.154.900.25

Ave. error0.075Ave. error0.245

Share and Cite

MDPI and ACS Style

Huang, K.-Y. A Fast Inspection of Tool Electrode and Drilling Depth in EDM Drilling by Detection Line Algorithm. Sensors 2008, 8, 4866-4877. https://doi.org/10.3390/s8084866

AMA Style

Huang K-Y. A Fast Inspection of Tool Electrode and Drilling Depth in EDM Drilling by Detection Line Algorithm. Sensors. 2008; 8(8):4866-4877. https://doi.org/10.3390/s8084866

Chicago/Turabian Style

Huang, Kuo-Yi. 2008. "A Fast Inspection of Tool Electrode and Drilling Depth in EDM Drilling by Detection Line Algorithm" Sensors 8, no. 8: 4866-4877. https://doi.org/10.3390/s8084866

Article Metrics

Back to TopTop