1 Introduction

Titanium alloys, known as light metal materials of the 21st century, have attracted many attentions in aircraft, atomic energy, marine, and medical equipment industries because of excellent mechanical, chemical, and other properties of titanium alloys [1]. However, titanium alloys are difficult-to-cut materials for traditional machining technics to fabricate them effectively and economically because of high melting points around 1400–1600°C and low elasticity modules of titanium alloys, and it may become even worse when the shapes of work parts interfere with tool paths [2]. The rapid accumulation of cutting heat results in poor dimensional accuracies and surface integrities of the workpiece [3].

Due to the low specific heat coefficient and thermal conductivity of titanium alloys, the rapid increase of local temperature during processing also led to rapid wear of a tool and reducing its service life. At the same time, because the elastic modulus of titanium alloy was low, it was easy to produce strong friction between tool and workpiece, which intensified tool’s wear and reduced processing quality [4]. The strong alloying tendency or chemical reactivity of titanium alloys with most tool materials caused wear, welding, and smearing of machining tools on interacting surfaces, leading to rapid destructions of tool overcutting or premature failures and poor surface finishes [5]. Therefore, many researchers had been looking for effective methods to process titanium alloys through unconventional processing techniques [6].

Electrical discharge machining (EDM) relies on pulse discharges between electrodes to generate a certain amount of heat, 10,000°C–12,000°C, which melts and vaporizes machined surface materials and removes chips, the separated materials from the workpiece, out of gap between electrode and workpiece [7]. Meanwhile, that an electrode and a workpiece in working do not directly contact each other in machining thereby eliminates the mechanical stress, chatter, and vibration problems during a machining process and alleviates the difficulties due to the low elasticity modules in machining titanium alloys.

Scholars using EDM have conducted numerous studies on titanium alloys. Wang et al. [8] researched an EDM fuzzy control system to carry out machining micro-hole on titanium alloy material. The results showed that the method improved the stability and efficiency of the process. Vibro-assisted EDM was helpful to develop more efficient deep slot EDM. This is proved by Tsai et al. [9], and they found that the material removal rate of vibro-assisted EDM was better than that of non-vibro-assisted EDM with copper and copper-tungsten electrodes. Yu et al. [10] proposed a high-efficiency and high-quality EDM and atomic machining combined process that first uses graphite electrode EDM to machine titanium alloys and then used abrasive flow machining (AFM) to polish the machined surface. This method greatly improved the surface quality of the small group of holes in the titanium alloy by EDM and improved the processing efficiency. Gu et al. [11] studied a way of EDM processing titanium alloys with bundled die-cutting electrodes. The feasibility of strapping electrodes for processing titanium alloys was studied, and the effect of solid die-cutting electrodes on EDM performance was compared. Wang et al. [12] proposed a new type of ultra-high-speed electric discharge machining, milling, and arc composite machining titanium alloy; this method, as reported, could machine difficult-to-machine materials efficiently.

The studies mentioned above, as reported, had improved EDM performance in machining titanium alloys. However, from the perspective of EDM mechanism, narrow gap distances and high discharging frequencies of EDM coupled with the low heat conductivity of titanium alloy often led to a fast rise of temperature in gap local liquid after pulse discharges. High temperatures in gap might cause local dielectric liquid breakdown strength decrease and the deionization of dielectric liquid incomplete after discharges. If that happened, it was highly possible that next pulses penetrated at this area of the decreased liquid breakdown strength and the discharging pulses afterwards turned out to be arcing pulses, damaging the machined workpiece surface and wearing electrode, and even worse, the process became unstable. Therefore, really solving the hard-to-cut problem by EDM needed to study from the crux of the mechanism and improve EDM operation. Specifically, the key to improving the poor machining stability is to find ways of keeping gap liquid breakdown strength suitable for efficient discharging and meanwhile avoiding arcing pulses in machining.

Avoiding gap liquid to lose its breakdown strength in gap in a machining process was a prerequisite and essential condition for stably machining titanium alloys by EDM. This paper first analyzed in detail the reasons of making gap liquid breakdown strength decline in machining and then came up with a proposition to keep gap liquid breakdown strength strong while in machining. Finally, put forward a feasible way, that is, to build a multivariable adaptive control system greatly increasing EDM Tool operational functions to accomplish the proposition. To be specific, three variables in an EDM Tool, namely, gap servo-voltage which was proportional to gap distance, electrode-discharging time which decided the amounts of debris produced per electrode discharging cycle, and pulse-off time which was crucial for gap liquid deionization after pulse discharges, were selected for the purpose. To keep gap liquid breakdown strength in machining titanium alloys, the three control variables had to be timely regulated to reach an appropriate gap distance, suitable amounts of debris accumulated in gap, and a proper pulse-off time for complete liquid deionization after pulse discharges.

The technically proposed scheme of a multivariable adaptive control system provided an effective way as a methodology in machining titanium alloys. The innovation approach exhibited overwhelmingly advantages over the commonly used EDM Tools in machining titanium alloys, mainly on the aspects of operation stableness with no side flushing and with no human attendance, high machining efficiency, and low electrode wear. Meanwhile, the methodology in this paper also provided an idea of solving the problems of severe tool wear, high machining costs, etc. which were the bottlenecks restricting the high-efficiency and high-quality cutting of titanium alloy parts for decades.

This paper was organized as follows. Section 1 gives the introduction. Section 2 gives a detailed analysis of the influential factors towards liquid breakdown strength. Section 3 technically proposes a multiple-variable adaptively control system to help electrical discharge machining titanium alloys. Section 4 verifies the feasibility of electrical discharging titanium alloy aided by the multivariable adaptive control system. Section 5 provides conclusions.

2 Analysis of gap liquid breakdown strength in machining titanium alloys

In an electrical discharge machining (EDM) process, there are five kinds of discharging pulses in gap, shown in Fig. 1: spark pulses, transient-arc pulses, stable-arc pulses, short pulses, and open pulses. In these pulses, open pulses are not discharging pulses. Spark pulse is a discharging pulse with a special feature of delay time, transient-arc pulse also is a discharging pulse with little delay time and discharges with voltage variations of high frequency, stable-arc pulse is a discharging pulse with little delay time and voltage variations of reduced frequencies, and short pulse is a discharging pulse as well whose voltage is the lowest among discharging pulses with voltage variations of further reduced frequencies. The interval between two discharge pulses is called pulse-off time whose function is to deionize the gap liquid after pulse discharges. Spark pulses and transient-arc pulses are effective discharge pulses, while stable-arc pulses and short pulses are deleterious discharge pulses, generally called arcing pulses. Pulses were discriminated by comparing sampled gap voltage and current with thresholds through pulse discrimination criteria [13].

Fig. 1
figure 1

Five kinds of discharging pulses

2.1 Conditions of machining titanium alloys

Because titanium is an active metal element, it combines with the carbon element decomposed from heated dielectric fluid by local high-temperature workpiece surface in gap to form titanium carbide (TiC) in subsurface layer of the workpiece [14]. Because the melting point of TiC is 3150 ° C, it is difficult to melt and remove the combination and thus hinders the EDM process [15]. Therefore, it is suggested to adopt positive polarity machining titanium alloys that the positive of Tool power is connected to workpiece instead of commonly used negative polarity machining, because the heat generated by electron bombarding workpiece surface is much less than the heat generated by positive ion bombarding workpiece surface. In this case, little titanium carbide (TiC) is formed in processes.

Condition 1 : workpiece is connected to the positive of Tool power and electrode is connected to the negative of Tool power so that the created amounts of TiC combination are little since the heat generated by electron bombarding the workpiece surface is greatly less than the heat generated by positive ion bombarding the workpiece surface.

The raised high temperature of the gap local liquid by molten part of workpiece surface often makes liquid deionization of the local discharge area incomplete after pulse discharges, because of the low thermo-conductivity feature of titanium alloys, if pulse-off time is not long enough. From experiments in machining titanium alloys, it is suggested to set pulse-off time n times longer than the time of the pulse-on time.

Condition 2 : in a stable and efficient machining process, the deionization is a prerequisite for the machining and it must be sufficient or complete.

Dielectric liquid breakdown strength in gap is not a constant but kept on changing in machining. When the strength is strong enough, most of discharging pulses are effective discharge pulses. When the strength lowers to some extent due to the increased amount of chips in gap, discharging pulses become arcing pulses, and the machining has to be stopped. Therefore, the liquid breakdown strength is a decisive factor in machining.

Condition 3 : the breakdown strength in gap must be maintained properly in efficient and stably machine titanium alloys.

Condition 1 and condition 2 are easy to be met, and condition 3 is the key to stably and efficiently machining titanium alloys.

2.2 Analysis of gap liquid breakdown strength

1. Essentially, the breakdown strength of the dielectric liquid in gap determined what kinds of discharging pulses in gap.

If the breakdown strength of gap liquid is strong, most of discharging pulses are spark pulses. If the breakdown strength of the dielectric liquid is medium, most of discharging pulses are transient arc pulses; and if the breakdown strength of the dielectric liquid is weak, most of the discharging pulses are stable arc pulses or short pulses. Therefore, the liquid breakdown strength in machining is the key to determine the kinds of discharging pulses in gap.

2. The breakdown strength of the dielectric liquid is mainly affected by three factors, namely, gap distance, the amount of chips accumulated in gap, and the extent of liquid deionization in gap after discharges.

  1. 1.

    Gap distance is a main factor to determine gap dielectric liquid breakdown strength. A long gap distance ensures the dielectric liquid breakdown strength strong, and it is difficult for pulses to penetrate the gap. The pulses in the gap are mainly open pulses or spark pulses with relatively long delay times or both kinds. A medium-sized distance also means a lowered liquid breakdown strength. The pulses are mainly spark pulses with a little delay time or transient arc pulses or both kinds. A further lowered gap distance often leads to transient arc pulses or stable arc pulses or short pulses depended on the specific dielectric liquid breakdown strength in gap. Therefore, what kinds of pulses or a specific ratio of any kind of discharging pulses in a time can be obtained by adjusting gap distance. In other words, gap distance decides the discharging extent of pulses.

  2. 2.

    If gap distance is unchanged in machining in an electrode discharging cycle, gap liquid breakdown strength is still changing in an electrode-discharging cycle, because chips are produced in the electrode-discharging time of the cycle, which is a main part of electrode discharging cycle in Fig. 2. Most of the chips produced are moved out of gap by explosion forces of pulse discharging and electrode retraction movements. The ever-increasing amount of chips in gap in the electrode-discharging time directly lowers gap liquid breakdown strength on the assumption that gap liquid deionization is complete after pulse discharges. In this case, electrode-discharging time is a determinate factor to decide the amount of chips left in gap; in other words, electrode-discharging time is a crucial factor as well to decide gap liquid breakdown strength. Gap environment state below refers to the gap liquid breakdown strength at the end of electrode-discharging time.

    Fig. 2
    figure 2

    Schematic illustration of tool discharging cycle

  3. 3.

    Gap liquid deionization is a process of recovery from gap liquid ionized state after discharges of a pulse to liquid deionization state in the period of pulse-off time. A pulse cycle is composed of pulse-on time and pulse-off time. It is obviously seen in Fig. 3 that after each discharging pulse there is a negative gap voltage at the beginning of pulse-off time. The negative gap voltage specifies the ionized gap liquid. When gap voltage reaches zero in the end of pulse-off time, the deionization of gap liquid is complete; if gap voltage does not reach zero in the end of pulse-off time, the deionization of gap liquid is incomplete. Most of the gap voltages recover from the negative to zero in pulse-off times, as shown in Fig. 3. However, there are two examples of incomplete liquid deionization, indicated in Fig. 3. The incomplete liquid deionization also decreases the breakdown strength of gap liquid. The consequence of incomplete liquid deionization is that the followed discharging pulse increases the possibility to be a transient arc pulse or an arc pulse or a stable arc pulse. So, incomplete gap liquid deionization decreases liquid breakdown strength.

    Fig. 3
    figure 3

    Gap liquid complete and incomplete deionization after discharges

3. Electrode-discharging time determines the amounts of chips produced in an electrode discharging cycle and thereafter decides gap environment situation, gap distance ensures the discharging extent of a pulse and decides pulse-discharging efficiencies, and pulse-off time guarantees gap liquid deionization which is the prerequisite for EDM. Amount of chips in gap, gap distance, and gap liquid deionization, put together, determine gap liquid breakdown strength. Since it is difficult to measure gap distance but gap distance is proportional to gap servo-voltage, gap distance measurement can be replaced by measurement of gap servo-voltage. In other words, electrode-discharging time which decides the amount of chips in gap is in charge of gap environment situation, gap servo-voltage which is in charge of discharging extent of pulses, and pulse-off time which is in charge of gap liquid deionization can be employed and timely controlled together to obtain suitable liquid breakdown strengths for a stable and efficient process in machining titanium alloys.

Proposition: Tool parameters, electrode-discharging time, gap servo-voltage, and pulse-off time, selected as control variables, must be timely adjusted for maintaining a proper liquid breakdown strength for an efficient machining process and in the meantime avoiding arcing pulses.

An adaptive control system could accomplish this proposition. Therefore, a multiple-variable adaptive control system had to be built in this regard.

3 Multiple-variable adaptive control system

3.1 Machining indexes

Definition 1: machining state y m(t) at time t is defined to be a ratio of the number of deleterious discharging pulses to the number of whole pulses in a series of discharging pulses.

A small machining state ym(t) signifies that most of discharging pulses are spark pulses with long delays. A larger machining state ym(t) signifies that most of discharging pulses are spark pulses with little delays, or transient arc pulses, or both in gap. A further large machining state ym(t) signifies that most of discharging pulses are stable arc pulses, or short pulses, or both. From Definition 1, machining state ym(t) is a statistical index to quantify the kinds of pulses and discharging extent of pulses. Therefore, a machining process can be digitalized by a series of machining states.

A stable interval is defined to be

$${\vartheta}_1=\left(0,{\epsilon}_1\right),{\epsilon}_1<1.$$
(1)

Because different materials have different melting points, the values of ϵ1 in machining different materials are different and determined by experiments. A machining is stable when machining state ym(t) is in the interval ϑ, ym(t) ∈ ϑ1; the machining becomes unstable, machining state ym(t) is out of it and at this time arcing pulses dominate in gap. Therefore, to maintain a stable and fast machining, machining state ym(t) has to be restricted in ϑ1.

A gap environment state is a machining situation in the end of electrode-discharging time, quantified breakdown strength of gap liquid. If a gap environment state is a large one indicating that the dielectric liquid is easy to be penetrated and the gap environment is not fit for the machining because, it is highly possible that discharging pulses are mostly arcing pulses in this gap environment. If a gap environment state was small, it indicates that gap environment is fit for the machining and most of discharging pulses are spark pulses or transient arc pulses. Further explorations of machining processes reveal that gap environment is strongly correlated with machining states and thereby the state of gap environment should be derived from machining states.

Definition 2: gap environment state y e(t), a quantified gap environment, is defined to be a correlation function of current and previous machining states ym(t), ym(t − 1), ⋯, ym(t − m),

$${\mathrm{y}}_{\mathrm{e}}\left(\mathrm{t}\right)={\mathrm{f}}_{\mathrm{corr}}\left({\mathrm{y}}_{\mathrm{m}}\left(\mathrm{t}\right),{\mathrm{y}}_{\mathrm{m}}\left(\mathrm{t}-1\right),\cdots, {\mathrm{y}}_{\mathrm{m}}\left(\mathrm{t}-\mathrm{m}\right)\right)$$
(2)

where ym(t − m) denotes a machining state at time t−m.

Gap environment also refers to the workability of the dielectric liquid in the gap. As there is a stable interval ϑ2 for machining state ym(t), correspondingly, there is also a rational interval. A stable interval of gap environment is defined to be

$${\vartheta}_2=\left(0,{\epsilon}_2\right),{\epsilon}_2<1.$$
(3)

The values of ϵ2 in machining different materials are different and determined by experiments. ϵ2 is the upper limit of the interval out of which gap environment is not fit for machining where arcing pulses dominate the gap and machining is unstable. A machining process was fit for machining when gap environment state ye(t) is in the interval ϑ2, ye(t) ∈ ϑ2. The larger the gap environment state ye(t) is in the rational interval ϑ2, the weaker is the breakdown strength of dielectric liquid and the more easily a pulse penetrates the gap and vice versa; and the process becomes worse when gap environment state ye(t) is out of it. Therefore, to maintain a sound machining process, gap environment state ye(t) has to be restricted in ϑ2.

3.2 EDM process model and gap environment model

An EDM process had been proven to be definite a non-linear process [16]. This process could be approximated by a timely linear model in which the structure of the model was linear, but the parameters of the model were timely varying with time in machining [17]. In an EDM process, many factors will influence machining situations. These factors are mainly divided into internal factors and external factors. Internal factors include power setting and machine servo setting; the former includes pulse current, pulse voltage, and pulse-on time. The latter includes gap servo-voltage, pulse-off time, electrode discharge-time, electrode jumping speed, and height. External factors include different electrode materials and workpiece materials, machined depths, discharging positions, and flushing conditions.

Both EDM process model and gap environment model consisted of a deterministic part and a random part. An impulse transfer function described the deterministic part and a transfer function which was a filtered white noise described the random part [17].

An EDM process mathematical model was

$${y}_m(t)=\frac{B_{m1}\ (q)}{A_{m1}(q)}u(t)+\frac{C_{m1}(q)}{D_{m1}(q)}{e}_1(t)$$
(4)

where q is a forward shift operator, Am1(q), Bm1(q), Cm1(q), and Dm1(q) are polynomials of q, \({A}_{m1}(q)=1+{a}_{\mathrm{m}1}{q}^{-1}+\ldots +{a}_{mn_a}{q}^{-m{n}_a}\), \({B}_{m1}(q)={b}_{\mathrm{m}1}{q}^{-1}+{b}_{\mathrm{m}2}{q}^{-2}+\ldots +{b}_{m{n}_b}{q}^{-{mn}_b}\), \({C}_{m1}(q)=1+{c}_{\mathrm{m}1}{q}^{-1}+\ldots +{c}_{mn_c}{q}^{-{mn}_c}\), and \({D}_{m1}(q)=1+{d}_{\mathrm{m}1}{q}^{-1}+\ldots +{d}_{mn_d}{q}^{-{mn}_d}\), and in this EDM process model, e1(t) is a white noise with zero mean and variance \({\sigma}_1^2\) [16].

An EDM environment mathematical model was

$${y}_e(t)=\frac{B_{e1}\ (q)}{A_{e1}(q)}u(t)+\frac{C_{e1}(q)}{D_{e1}(q)}{e}_2(t)$$
(5)

where q was a forward shift operator, Ae1(q), Be1(q), Ce1(q), and De1(q) were polynomials of q, \({A}_{\mathrm{e}1}(q)=1+{a}_{\mathrm{e}1}{q}^{-1}+\ldots +{a}_{{\mathrm{e}n}_a}{q}^{-{\mathrm{e}n}_a}\), \({B}_{\mathrm{e}1}(q)={b}_{\mathrm{e}1}{q}^{-1}+{b}_{\mathrm{e}2}{q}^{-2}+\ldots +{b}_{{\mathrm{e}n}_b}{q}^{-{\mathrm{e}n}_b}\), \({C}_{\mathrm{e}1}(q)=1+{c}_{\mathrm{e}1}{q}^{-1}+\ldots +{c}_{{\mathrm{e}n}_c}{q}^{-{\mathrm{e}\mathrm{nv}n}_c}\), and \({D}_{\mathrm{e}1}(q)=1+{d}_{\mathrm{e}1}{q}^{-1}+\ldots +{d}_{\mathrm{e}{n}_d}{q}^{-{\mathrm{e}n}_d}\), and in this EDM process model, e2(t) is a white noise with zero mean and variance \({\sigma}_2^2\).

Next, let the parameter vectors be

$${\theta}_1=\left[{\mathrm{b}}_{\mathrm{m}1}\cdots {\mathrm{b}}_{{\mathrm{m}n}_b}\ {\mathrm{a}}_{\mathrm{m}1}\cdots {\mathrm{a}}_{{\mathrm{m}n}_a}\ {\mathrm{c}}_{\mathrm{m}1}\cdots {\mathrm{c}}_{{\mathrm{m}n}_c}\ {\mathrm{d}}_{\mathrm{m}1}\cdots {\mathrm{d}}_{{\mathrm{m}n}_d}\right]\mathrm{T}$$
(6)
$${\theta}_2=\left[{\mathrm{b}}_{\mathrm{e}1}\cdots {\mathrm{b}}_{{\mathrm{e}n}_b}\ {\mathrm{a}}_{\mathrm{e}1}\cdots {\mathrm{a}}_{{\mathrm{e}n}_a}\ {\mathrm{c}}_{\mathrm{e}1}\cdots {\mathrm{c}}_{{\mathrm{e}n}_c}\ {\mathrm{d}}_{\mathrm{e}1}\cdots {\mathrm{d}}_{{\mathrm{e}n}_d}\right]\mathrm{T}$$
(7)

In order to minimize the weighted least squares criterion, we used the recursive least squares algorithm to estimate the parameters of the above polynomials [17],

$${\hat{\theta}}_1(t)=\arg \underset{\theta_1}{\min}\sum_{k=1}^t{\beta}_1\left(t,k\right){\left[{y}_m(t)(k)-{\varphi}_1^T(k){\theta}_1\right]}^2$$
(8)
$${\hat{\theta}}_2(t)=\arg \underset{\theta_2}{\min}\sum_{k=1}^t{\beta}_2\left(t,k\right){\left[{y}_e(t)(k)-{\varphi}_2^T(k){\theta}_2\right]}^2$$
(9)

\({\hat{\theta}}_i(t),i=1,2\) were the vectors, which contained the estimate parameters of the polynomials in Eqs. (3) and (4), βi(t, k) = λi(t)t − k, i = 1, 2, 0 ≤ k ≤ t − 1, λi(t), i = 1, 2, were forgetting factors and βi(t, t) = 1, φi(t), i = 1, 2, contained lagged input and output variables.

The timely parameters of the process model, in Eqs. (4) and (5) were recursively estimated by least-square algorithm [18],

$$\left\{\begin{array}{c}{\hat{\theta}}_i(t)={\hat{\theta}}_i\left(t-1\right)+L(t)\left[{y}_i(t)(t)-{\varphi}_i^T(t){\hat{\theta}}_i\left(t-1\right)\right]\\ {}{L}_i(t)=\frac{P_i\left(t-1\right){\varphi}_i(t)}{\lambda_i(t)+{\varphi}_i^T(t){P}_i\left(t-1\right){\varphi}_i(t)}\\ {}{P}_i(t)=\frac{1}{\lambda_i(t)}\left[{P}_i\left(t-1\right)-\frac{P_i\left(t-1\right){\varphi}_i(t){\varphi}_i^T(t){P}_i\left(t-1\right)}{\lambda_i(t)+{\varphi}_i^T(t){P}_i\left(t-1\right){\varphi}_i(t)}\right]\end{array}\right.i=1,2$$
(10)

where y1(t) = ym(t), y2(t) = ye(t).

Both models could be used for online applications. The two models in Eqs. (4) and (5) were further simplified as

$${A}_m(q){y}_m(t)={B}_m(q){u}_1(t)+{C}_m(q){e}_1(t)$$
(11)

where Am(q) = Am1(q)Dm1(q), Bm(q) = Bm1(q)Dm1(q), and Cm(q) = Am1(q)Cm1(q); and

$${A}_e(q){y}_e(t)={B}_e(q){u}_2(t)+{C}_e(q){e}_2(t)$$
(12)

where Ae(q) = Ae1(q)De1(q), Be(q) = Be1(q)De1(q), and Ce(q) = Ae1(q)Ce1(q).

3.3 Control laws

The prime role of gap distance is to determine the discharging extent of a pulse which directly influences machining efficiency and stableness in machining. At present, it is unpractical to measure gap distance in dielectric liquid, especially timely varied gap distances in a process. However, the value of gap servo-voltage is linearly proportional to a gap distance. In this case, gap servo-voltage can be used to replace gap distance to decide the discharging extent of a pulse.

Definition 3: machining state expectancy yme is defined to be an ideal machining state that governs pulse discharging extents, as well as a machining stableness, yme ∈ ϑ1, and yme < ϵ1.

In a machining process, if machining state ym(t) rises over a defined machining state expectancy yme, gap servo-voltage which determines gap distance, then increases to a calculated value, leading to an enlarged gap distance to lower discharging extents of pulses. Machining state ym(t) is then forced to decrease. Conversely, if machining state ym(t) is lower than the defined machining state expectancy yme, gap servo-voltage then decreases to a calculated value, leading to a shortened gap distance to increase discharging extents of pulses. Machining state ym(t) is then forced to increase. In this way, machining state ym(t) fluctuates around a machining state expectancy yme. The machining state expectancy yme has to be selected properly so that machining state ym, fluctuating around the machining state expectancy yme, can be kept in the range ϑ1.

Lemma 1: gap servo-voltage U sv(t) performs the function to reduce the error between the machining state ym(t) and a machining state expectancy yme. Then, it follows

$$\left\{{U}_{sv}(t):{y}_m(t)\propto \frac{K_1}{U_{sv}(t)};s.t\left(\left|{y}_m(t)-{y}_{me}\right|\to 0\right)\right\}$$
(13)

where K 1 is a constant.

Except that machining states are changing all the time in a machining process, gap environment is also changing because of the variation of dielectric liquid breakdown strength affected by the varied amount of chips left in gap. Most of the chips produced are moved out of gap by spark explosion forces and electrode retraction movements. The amount of chips left in gap affect dielectric liquid breakdown strength directly. More chips in gap cause the liquid breakdown strength decrease and vice versa. That is not to say that gap situation with no chips in gap is the best for machining. On the contrary, there is an optimal liquid breakdown strength for discharging or a certain amount of chips in gap. We call this gap environment situation “gap environment state expectancy” indexed by yee.

Definition 4: gap environment state expectancy yee is defined to be an ideal gap environment for a stable machining process, yee ∈ ϑ2, and yee < ϵ2.

In a machining situation, if gap environment is so harsh that environment state ye(t) is larger than expected environment state yee because of too many amounts of metal chips in gap resulting in liquid breakdown strength decreases, electrode-discharging time then decreases to produce less amounts of chips in a shortened discharging time. Under such circumstance, spark explode forces and higher frequent electrode withdraw movements than before together help moving produced chips out of gap more to lessen the amount of chips in gap. Less amount of chips in gap ensures recovery of the liquid breakdown strength. Conversely, if gap environment is so fine that environment state ye(t) is smaller than an expected environment state yee because of less amounts of chips in gap resulting in liquid breakdown strength stronger, electrode-discharging time then elongates its discharging time to produce larger amounts of chips in gap to decrease the liquid breakdown strength in gap. In this way, gap environment state ye(t) fluctuated around gap environment state yee. In this way, gap liquid breakdown strength is maintained fit for a stable machining process.

Lemma 2: electrode-discharging time TDN(t) performs the function to reduce the error between the gap environment state ye(t) and a gap environment state expectancy yee. Then, it follows

$$\left\{{T}_{DN}(t):{y}_e(t)\propto {K}_2\ast {T}_{DN}(t);s.t\left(\left|{y}_e(t)-{\mathrm{y}}_{\mathrm{ee}}\right|\to 0\right)\right\}$$
(14)

where K 2 is a constant.

Lemma 3: pulse-off time TOFF(t) performs the function to reduce the error between the machining state ym(t) and a machining state expectancy yme. Then, it follows

$$\left\{{T}_{OFF}(t):{y}_m(t)\propto \frac{K_3}{T_{OFF}(t)};s.t\left(\left|{y}_m(t)-{y}_{me}\right|\to 0\right)\right\}$$
(15)

where K 3 is a constant.

Lemma 1 and Lemma 3 in Eqs. (13) and (15) are similar in form that gap servo-voltage and pulse-off time are all required to regulate according to machining state, but they perform different functions that gap servo-voltage is in charge of the discharging extent of a pulse and pulse-off time gap liquid deionization. Pulse-off time fluctuates as the same way as gap-servo-voltage does, but based on n times longer of a pulse-on time to guarantee the complete deionization of gap liquid after discharges.

Theorem: the control laws for the multivariate adaptive control system are derived by minimizing the variances of the errors of \(\left({y}_i\left(t+2\right)-{\hat{y}}_i\left(\left(t+2|t\right)\right.\right)\),

$${u}_i(t)=\frac{C_i}{B_i}{y}_{ie}+\frac{A_i-{C}_i}{B_i}{y}_i(t),i=1,2$$
(16)

so that the errors are white noises with the variance \({\sigma}_i^2\), i = 1, 2, where i = 1 refer to machining state, y1(t + 2) = ym(t + 2) is the machining state at time t + 2, \({\hat{y}}_1\left(\left.t+2\right|t\right)={\hat{y}}_m\left(\left(\left.t+2\right|t\right)\right)\) is estimated two-step ahead machining state with the known machining state ym(t); i = 2 refer to gap environment state, y2(t + 2) = ye(t + 2) is gap environment state at time t + 2, \({\hat{y}}_2\left(\left.t+2\right|t\right)={\hat{y}}_e\left(\left.t+2\right|t\right)\) is estimated two-step ahead gap environment state with the known gap environment state ye(t); y1e = yme, y2e = yee.

Proof:

From Eqs. (3) and (4), if two-step ahead predictive control is adopted, d0 = deg Ai − deg Bi = 2, it follows

$${y}_i\left(t+2\right)=\frac{q^2{B}_i}{A_i}{u}_i(t)+\frac{C_i}{A_i}{e}_i\left(t+2\right)=\frac{q^2{B}_i}{A_i}{u}_i(t)+{e}_i\left(t+2\right)+\frac{C_i-{A}_i}{A_i}{e}_i\left(t+2\right)={e}_i\left(t+2\right)+\frac{q^2{B}_i}{A_i}{u}_i(t)+\frac{q^2\left({C}_i-{A}_i\right)}{A_i}{e}_i(t)$$
(17)

It can be obtained by Eqs. (11) and (12) that

$${e}_i(t)=\frac{A_i}{C_i}{y}_i(t)-\frac{B_i}{C_i}{u}_i(t)$$
(18)

Substituting Eq. (18) into Eq. (17),

$${y}_i\left(t+2\right)={e}_i\left(t+2\right)+\frac{q^2{B}_i}{A_i}{u}_i(t)+\frac{q^2\left({C}_i-{A}_i\right)}{A_i}\left[\frac{A_i}{C_i}{y}_i(t)-\frac{B_i}{C_i}{u}_i(t)\right]={e}_i\left(t+2\right)+\frac{q^2{B}_i}{A_i}{u}_i(t)+\frac{q^2\left({C}_i-{A}_i\right)}{C_i}{y}_i(t)-\frac{q^2{B}_i\left({C}_i-{A}_i\right)}{A_i{C}_i}{u}_i(t)=\frac{B_i}{C_i}{q}^2{u}_i(t)+\frac{q^2\left({C}_i-{A}_i\right)}{C_i}{y}_i(t)+{e}_i\left(t+2\right)$$
(19)

Let

$${\hat{y}}_i\left(\left(\left.t+2\right|t\right)\right.=\frac{B_i}{C_i}{q}^2{u}_i(t)+\frac{q^2\left({C}_i-{A}_i\right)}{C_i}{y}_i(t)$$
(20)

Then,

$${y}_i\left(t+2\right)={\hat{y}}_i\left(\left(\left.t+2\right|t\right)\right.+{e}_i\left(t+2\right)$$
(21)

and let

$${\hat{y}}_i\left(\left(\left.t+2\right|t\right)\right.={y}_{ie}$$
(22)

From Eq. (20),

$${u}_i(t)=\frac{B_i}{C_i}{y}_{ie}+\frac{A_i-{C}_i}{B_i}{y}_i(t)$$
(23)

and

$${y}_i\left(t+2\right)-{\hat{y}}_i\left(\left(\left.t+2\right|t\right)\right.={e}_i\left(t+2\right).$$

In summary, the error of \(\left({y}_i\left(t+2\right)-{\hat{y}}_i\left(\left(\left.t+2\right|t\right)\right.\right)\) is white noise with variance \({\sigma}_i^2\).

Pulse-off time TOFF(t) is regulated according to the varied machining state, the same way as gap servo-voltage does. Pulse-off time TOFF(t) is also required to be n times larger than pulse-on time TON in machining titanium alloys from condition 2. It followed

$${T}_{OFF}(t)=n\times {T}_{ON}+{k}_4\times {U}_{SV}(t)$$
(24)

where TON is a constant, k4 is also a proportional constant.

3.4 Multivariable adaptive control system for EDM

A schematic diagram of the multivariable adaptive EDM is shown in Fig. 4. A machining state expectancy yme is fed into the upper adaptive control system. The computed gap servo-voltage Usv(t) from the control law in Eq. (16) forces machining state ym(t) to approach machining state expectancy yme so that the expected discharging extent of pulses can be obtained.

Fig. 4
figure 4

Schematic diagram of EDM multivariate adaptive control system

Theoretically, pulse-off time TOFF(t) is regulated according to machining state ym(t) as well, with the consideration of condition 2. Simply, pulse-off time TOFF(t) is got in Eq. (24).

A gap environmental state expectancy yee is fed into the lower adaptive control system. Likewise, the computed electrode discharging time TDN(t) from the control law in Eq. (16) forces environment state ye(t) to approach gap environment state expectancy yee, and the expected gap environment situation can be reached.

4 Verification test

A verification test was carried out to verify the performance of electrical discharge machining Ti-6Al-4V, aided by the multivariable adaptive control system. The experiment was to process a through-hole with a graphite electrode of diameter ∅16 without side flushing and human attendance. The test was operated in a closed machining situation where the chips were moved out of gap only in upward direction in the whole machining process. Table 1 lists the electrode and workpiece measurements and requirements.

Table 1 Electrode and workpiece measurements and requirements

Machining parameter settings are listed in Table 2. The polarity was set negative from condition 1, and pulse-on time was set 80 μs for the consideration of machining efficiency in negative polarity. Because the electrode diameter was ∅16 mm, the current was specifically set 30 A for the match, and pulse voltage was set 200 V for pulse easily penetrating gap. Electrode discharge time, gap voltage, and pulse off were selected as variables timely regulated in the process.

Table 2 Parameter settings of machining Ti-6Al-4V by adaptive servo-voltage

From Eq. (26), it was known that the variations of pulse _ off were similar to the variations of gap servo-voltage, and so it was not necessary to show the variations of pulse _ off in figures.

Figure 5 consisted 4 subplots. 1 × 1 subplot showed the variations of gap environment in the whole process, 2 × 1 subplots showed timely regulated electrode-discharging time in the whole process, 1 × 2 subplot showed the variations of machining states in the whole process, and 2 × 2 subplot showed the timely regulated the variations of gap servo voltage.

Fig. 5
figure 5

The entire process of machining Ti-6Al-4V

The gap environment state in this closed machining situation experienced huge distinctive variations from a healthy environment of few chips in gap at beginning to a hostile environment of too many chips left in gap in the end, because it was more and more difficult to move produced chips along upward direction out of the continuously deepened blind hole. To handle this kind of complex situation, it was suggested that gap environment state expectancy yee had to be changed smaller after the machining experienced a length of distance so that input discharging energy could match up with machining environment. As shown in 1 × 1 subplot of Fig. 5, the entire process was roughly divided into four subprocesses by four different state expectancy yee1, yee2, yee3, and yee4. Because gap environment became more and more severe in machining, gap environment state expectancies had to be smaller in accordance, that was, yee1 > yee2 > yee3 > yee4, to gradually lessen electrode-discharging times to produce less chips in order to maintain a proper liquid breakdown strength (healthy environment) for discharging.

The 1 × 2 subplot of Fig. 5 was a display of machining state variations in the process. Theoretically, machining state interval was (0, 1], and gap servo-voltage interval was (0–150]. Practically, gap servo-voltage interval was set [20, 150]. If accumulated chips left in gap led to the decrease of gap liquid breakdown strength, the amplitude of the variations of machining state ym(t) which varied around machining state expectancy yme to track it was likely to go beyond ϑ1. In this case, machining state expectancy yme was suggested to lower down so that the amplitude of machining state ym(t) was still in the stable interval ϑ1. Therefore, machining state expectancy yme had to be matched up with gap environment state expectancy yee. Likewise, in 1×2 subplot of Fig. 5, there were also four machining state expectancies yme1, yme2, yme3, yme4 in the four subprocesses, and yme1 > yme2, > yme3 > yme4. In this subplot, it was obvious that variations of machining state underwent from small values to large ones, but still in ϑ1. We specifically chose (a), (b), (c), (d) parts in four subprocesses for a clear exhibition. The 2 × 2 subplot of Fig. 5 was a display of gap servo-voltage values regulated to force machining state ym(t) to track machining state expectancy yme.

Figure 6 shows the incipient stage of the process. At this stage, because it was easy to move chips out of gap, the gap liquid breakdown strength was strong. The environment state expectancy yee was chosen the largest yee1 so that electrode-discharging time, shown in 1 × 2 subplot, was regulated in Eq. (16) according to the varied environment states in 1 × 1 subplot as large as it could to reach optimal machining environment. Electrode-discharging time varied in the range [60, 63]. Meanwhile, because machining state expectancy yme was also chosen the largest one yme1, gap servo-voltage was computed in Eq. (11) to be less than or equal to 20, the inferior limit of gap servo-voltage which practically decided the smallest gap distance. The smallest gap distance determined the highest discharging extents of pulses to increase machining state.

Fig. 6
figure 6

Part a in the first subprocess

The largest electrode-discharging time, lowest gap servo-voltage, and smallest pulse-off time decided the highest machining efficiency in the process that was the steepest slope of machining-depth curve indicated in Fig. 6.

Figure 7 part b shows the detailed machining situation in the second subprocess in which environment state expectancy yee equaled to yee2 and machining state expectancy yme equaled to yme2. As yee2 < yee1 and yme2 < yme1, less input discharging energy and smaller discharging extent of a pulse were required in the second subprocess than those in the first subprocess. In this case, electrode-discharging time was computed in the range [48 51], shown in 2 × 1 subplot, and there were a few gap servo-voltages larger than 20, though most of gap servo voltages were computed still less or equal to 20 in the 2 × 2 subplot. The machining efficiency in this subprocess was a little slower than that in the first subprocess because of decreased electrode-discharging time and a few gap servo voltages >20. The decreased machining efficiency represented by the slope of machining-depth curve could be observed in the second subprocess less than the slope of machining-depth curve in the 1st subprocess.

Fig. 7
figure 7

Part b in the 2nd subprocess

In the 3rd subprocess, more and more chips left in gap resulting in gap liquid breakdown strength decrease, because it was difficult to move out the produced chips due to the long-machined distance. To keep the gap environment suitable for discharging, the input discharging energy represented by electrode-discharging time had to lessen to match up with the decreased liquid breakdown strength. Part c representatively showed machining situation in the 3rd subprocess. yee = yee3 < yee2 forced electrode-discharging time varying in the range [21, 35], shown in the 2×1 subplot of Fig. 8, which was much less than the range [48 51] in the 2×1 subplot of Fig. 8 for the decreased liquid breakdown strength. Though the variations of machining states in 1×2 of Fig. 8 were a little more violent than the variations of machining states in the 1×2 subplot of Fig. 8, it was still tolerable for the fact that most of gap servo-voltage were less than or equal to 20 in the 1×2 subplot of Fig. 8.

Fig. 8
figure 8

Part c in the 3rd subprocess

In the final subprocess, even more chips were left in gap because of even longer upward machined distance, leading to gap liquid breakdown strength continuously decreased; the gap was easier to be penetrated by pulse voltages. However, yee = yee4 < yee3 forced electrode-discharging time varying in the range [17, 23] shown in the 2×1 subplot of Fig. 9 to input less discharging energy. In this case, the range of gap environment state variations changed little seen in the 1×1 subplots of Figs. 7, 8, and 9. In other words, gap environments were maintained well, suitable for machining, by adaptively regulating electrode discharging time according to the different gap environment state expectancies and varied gap environment states in different subprocesses. At this stage yme = yme4 < yme3, the smallest machining state expectancies, among yme1, yme2, yme3, yme4, forced gap servo-voltage to enlarge to increase gap distance for lessening discharging extents of pulses. So, machining states were forced to keep in the stable interval ϑ1 by adaptively regulating gap servo voltage.

Fig. 9
figure 9

Part d in the 4th subprocess

Figure 10 depicts the machining depth with time. Considering the fact of unavoidable electrode wear in machining titanium alloy Ti-6Al-4V, the machining depth was set 135 mm though the machined depth of the through-hole was 114 mm. The slope of the machining depth curve tanα represented the machining efficiency. In the 1st subprocess, there were two slopes, tanα1 in 0–50 minutes and tanα2 in 50–550 minutes. In the incipient stage 0–50 minutes, since both yee = yee1 and yme = yme1 were the largest, and produced chips were easy to be exploded out of gap by pulse discharges and electrode retraction movements, electrode discharging time was computed around 63 which was the largest in the process, gap servo-voltages computed less than or equal to 20 which was the smallest value, and pulse-off time was also the smallest from Eq. (26). On such an occasion, machining efficiency is the largest in the process. In Fig. 10, α1 > α2 > α3 > α4 > α5 demonstrated that machining efficiency lowered as the machining depth of the blind hole deepened. However, except two machining efficiencies tanα1 and tanα2 in the 1st subprocess, the machining efficiency changed small in a subprocess followed.

Fig. 10
figure 10

Machined depth curve

Since the workpiece was connected to the positive of Tool power and the graphite electrode was connected to the negative of Tool power, electrode wear was unavoidable. After the through-hole was made, the electrode wear ratio was calculated to be

$$\mathrm{Electrode}\ \mathrm{wear}\ \mathrm{ratio}=\frac{{\mathrm{Volumn}}_{\mathrm{worn}-\mathrm{out}}\mathrm{of}\ \mathrm{electrode}}{{\mathrm{Volumn}}_{\mathrm{machined}}\mathrm{of}\ \mathrm{workpiece}}\times 100\%=\frac{5.268\times {10}^3}{24.317\times {10}^3}\times 100\%=21.664\%$$

Figure 11 shows the clamping of Ti-6Al-4V workpiece and the machined through-hole, cut apart by wired EDM. From Fig. 11, it could be seen that side discharges during the machining caused the actual size of the processed workpiece (16.48 mm) to be larger than the electrode size (16 mm). The machining capability of the system was verified through the 114 mm through-hole machining TC4 experiment. From the calculation results of the final machining time and electrode wears, it could be concluded that the established multivariable adaptive electric discharge machining control system could achieve efficient and low wear machining of titanium alloys.

Fig. 11
figure 11

Machined through-hole cut apart by wired EDM

5 Conclusions

The main difficulty of machining titanium alloys by EDM is the fast rise of local liquid temperature in gap after pulse discharges due to the low specific heat coefficient and thermal conductivity of titanium alloys. The raised temperature of gap liquid usually leads to a decline of gap liquid breakdown strength which is the reason to cause arcing pulses in machining. The low thermal conductivity of titanium alloys is the inherent property which can be hardly changed, and the only way to settle the hard-to-cut problem by EDM is to seek a method to keep gap liquid breakdown strength not go down so fast but still be suitable for effective pulse discharges.

To this end, this paper listed three conditions to be met and came up with a proposition to machining titanium alloys and innovatively created a multivariable adaptive control system to accomplish the proposition. Some major conclusions were listed below:

  1. (1)

    Gap liquid breakdown strength was the decisive factor in electrical discharge machining titanium alloys and affected by three factors, gap distance, chips left in gap, and gap liquid deionization after pulse discharges.

Gap distance determined the discharging extent of pulses. However, the gap liquid breakdown strength was still changing because of chips produced in gap in electrode-discharging time. Incomplete or complete gap liquid deionization after pulse discharges also influenced gap liquid breakdown strength.

  1. (2)

    It developed a new multivariable adaptive control system in which gap servo-voltage proportional to gap distance decided the discharging extent of pulses, electrode-discharging time decided gap environment state which was directly affected by produced chips in gap, and pulse-off time decided the deionization of gap liquid after pulse discharges.

  2. (3)

    To testify EDM operation in machining titanium alloy Ti-6Al-4V aided by the newly developed multivariable adaptive control system, it machined a through-hole of 114 mm with the diameter 16 mm of a graphite electrode and with no side flushing and no human attendance. The machining was conducted in a closed machining situation in which generated chips were moved out only in upward direction. The machining efficiency did not change much in the whole process, and electrode wear ratio was 21.664%.

  3. (4)

    The machining results showed that the multivariable adaptive control system could help EDM to achieve high machining efficiency and low electrode wear. The problem of low conductivity of titanium alloys easily causing gap liquid breakdown strength decline was settled by the approach in this paper. This multivariable adaptive EDM system qualified for machining titanium alloys.