Renjie Ji, Yonghong Liu, Xiaopeng Li and Xin Dong: Experimental Design of EDM Pulse Generator Based On VB and SCM
Renjie Ji, Yonghong Liu, Xiaopeng Li and Xin Dong: Experimental Design of EDM Pulse Generator Based On VB and SCM
Abstract. Pulse generator is the key equipment of electrical discharge machining (EDM).
Considering the disadvantage of the traditional EDM pulse generator, a new pulse generator based on
VB and SCM is designed. The simulation and serial communication with SCM are achieved, and the
pulse width, pulse period, and phase sequence difference can be adjusted by the upper computer at a
wide range. The simulation experiment results show that the pulse parameter can be adjusted
conveniently, and the effects of the pulse parameter on the process performance can be understood
easily.
Introduction
Electrical discharge machining (EDM) is a kind of machining process that removes material
utilizing electrical energy and thermal energy, and it has been rapidly developed due to its huge
advantage in machining hard cutting material, special and complicated parts [1,2]. Pulse generator
provides energy to the discharge gap to remove material, so it is the key equipment that directly
influences the machining speed, machining precision, machining stability, surface roughness of the
workpiece and electrode wear ratio in EDM [3,4]. The common pulse generator in EDM is the
transistor pulse generator, and the pulse signal is produced by resistors and capacitors when they
charge or discharge. However, the pulse signal can only be gradually adjusted, and the pulse width
and pulse period cannot be adjusted independently. Thus, it is hard to adjust each pulse parameter
accurately according to the EDM request.
The PWM signal, whose frequency, duty ratio and phase sequence difference can be adjusted, is
produced by the AT89C52 SCM to drive the MOSFET in this paper. Furthermore, VB language is
used to program the controlling interface of the pulse generator, the simulation and serial
communication with SCM are achieved, and the pulse width, pulse period, and phase sequence
difference can be randomly adjusted at a wide range. As a result, the pulse parameters can be adjusted
conveniently during EDM, and the effects of the pulse parameter on the process performance can be
understood easily.
pwm1=pwm2+pwm;
pwm2=pwm3+pwm;
pwm1(2,3)++
Y
0<pwm1(2,3)<mk? Set P1(2,3) high
N
Y
mk≤pwm1(2,3)≤zq? Set P1(2,3) low Theinterrupt
End serial
ti
N
Y
pwm1(2,3)≥zq? pwm1(2,3)=0
N N N
Pulse width? Pulse period? Phase sequence?
Y Y Y
End interrupt
be drawn. The interface mainly contains variable setting, variable adjustment, result show, serial
communication, serial adjustment, etc.
The use of this interface is as follows: input the expected pulse width, pulse period and phase
sequence difference whose unit is ms, in the ‘Variable Setting’ case; adjust the variable in the
‘Variable Adjustment’ case and select button 1 or 0.2 as the step; click the ‘Compute’ button, and the
theoretical duty ratio and frequency would be shown in the ‘Result Show’ case; click the ‘Plot’ button,
and the theoretical PWM wave would be shown in the ‘Wave Display’ case; set the baud rate, parity
bit, data bit, stop bit and COM port in the ‘SCM Communication’ case; click the ‘Open Serial Port’
button, the serial port will show ‘on’, ‘Data can be transmitted now’ prompt case will occur; and the
pulse width, pulse period and phase sequence difference can be transmitted and received in the ‘Serial
Communication’ case.
and the sixth port is used to export the signal. Q1 and Q2 are IRF250 which is a kind of fast on-off
MOSFET. R0 is the current limiting resistor. V2 is the adjustable voltage.
The pulse width, pulse period and phase sequence difference of the SCM can be adjusted by the
upper computer, and the voltage waveform on R0 can be measured. The results of the experiment are
shown in Fig. 5. It can be seen from this figure that the upper computer can adjust the pulse generator
accurately.
3 3 3 3
5 8
18 18
(a) (b)
Fig. 5 Voltage waveform of the current-limiting resistor with different pulse parameter settings:
(a) pulse width of 3ms, pulse period of 18ms, phase sequence difference of 5ms (b) pulse width
of 3ms, pulse period of 18ms, phase sequence difference of 8ms.
Conclusions
The multi-channel PWM signals are developed based on the AT89C52 SCM in this paper. The
pulse width, pulse period and phase sequence difference can be adjusted by the upper computer at a
wide range. VB is used to program the controlling interface of the pulse generator, the simulation and
serial communication with SCM are achieved, and the pulse width, pulse period, and phase sequence
difference can be randomly adjusted conveniently. The simulation experiment results show that the
pulse generator can be adjusted accurately by the upper computer.
Acknowledgements
The work is partially supported by a grant from the National Natural Science Foundation of China
(Grant No. 51205411), a grant from Shandong Provincial Natural Science Foundation of China
(Grant No. ZR2012EEL15), a grant from the Fundamental Research Funds for the Central
Universities (Grant No. 11CX04031A), a grant from Taishan Scholar project of Shandong Province
(TS20110823), and a grant from Science and Technology Development Project of Shandong
Province (2011GHY11520).
References
[1] Y.F. Chen, Y.J. Lin, Y.C. Lin, S.L. Chen and L.R. Hsu: Proc Inst Mech Eng Part B J Eng Manuf
Vol. 224 (2010), p. 195
[2] S. Clijsters, K. Liu, D. Reynaerts and B. Lauwers: J Mater Process Technol Vol. 210 (2010), p.
631
[3] N. Mohd Abbas, D.G. Solomon and M. Fuad Bahari: Int J Mach Tools Manuf Vol. 47 (2007), p.
1214
[4] J.C. Liu, J.C. Bai and Y.F. Guo: Non-traditional Machining (China Machine Press, China 2009)