METHOD FOR ELECTRICAL DISCHARGE MACHINING

20220371115 · 2022-11-24

    Inventors

    Cpc classification

    International classification

    Abstract

    A method and device for electrical discharge machining (EDM) a workpiece by means of a train of machining pulses. During the machining time the machining pulses are applied to the working gap between workpiece and electrode. An open voltage is first applied, and it is increased to a second open voltage level if a discharge does not occur within a waiting time d.sub.0, and further increased to a third open voltage level if a discharge does not occur within a second waiting time d.sub.1.

    An average product of the actual open voltages times the partial ignition delays is computed and subtracted from the product of a reference open voltage times the total ignition delay, and the servo setpoint value is adjusted accordingly. The actual axes positions are sampled in real time and the discharge electrical parameters are adjusted accordingly. The discharge electrical parameters can be adjusted according to the duration of d0 and d1.

    Claims

    1. A method for the electrical discharge machining of a workpiece, wherein a plurality of discrete electrical discharge machining pulses are applied to a gap between work piece and electrode, and wherein an open voltage is applied between the electrode and the work piece to induce a discharge, wherein, the open voltage of a present pulse is initially applied at an initial open voltage level U.sub.o0, and said open voltage is increased to a second open voltage level U.sub.o1 if a discharge does not occur within a first waiting time d.sub.0, and said open voltage is further increased to a third open voltage level U.sub.o2 if a discharge does not occur within a second waiting time d.sub.1, and an average of the products sum W.sub.step of the partial open voltages U.sub.o0, U.sub.o1, U.sub.o2 times the partial ignition delays t.sub.d0, t.sub.d1, t.sub.d2 is computed based on a plurality of pulses, and said average products sum W.sub.step is compared with the average product W.sub.tec being the product of a previously set reference open voltage U.sub.0_tec multiplied by the total ignition delay t.sub.dT, and a servo setpoint value for the gap width control is adjusted such as to reduce the gap width if the average products sum W.sub.step is larger than the average product W.sub.tec, and the servo setpoint value is adjusted such as to increase the gap width if the average products sum W.sub.step is smaller than the average product W.sub.tec.

    2. A method for the electrical discharge machining of a workpiece according to claim 1, whrein the servo setpoint value is a servo reference voltage or a servo reference delay or a value derived therefrom.

    3. A method for the electrical discharge machining of a workpiece according to claim 1, wherein the reference open voltage U.sub.0_tec is previously stored in a standard machine database.

    4. A method for the electrical discharge machining of a workpiece according to claim 1, wherein an axis position (X, Y, Z, C) is continuously acquired, and a variation of a gap width is derived from the variation of said axis position.

    5. A method for the electrical discharge machining of a workpiece according to claim 1, wherein one or more of the following parameters are adapted as a function of the axis position: the open voltage U.sub.o, the pulse pause t.sub.o, the current pulse amplitude I, the current pulse shape I.sub.shape.

    6. A method for the electrical discharge machining of a workpiece according to claim 1, wherein a controlled oscillation is superimposed to the axis positions.

    7. A method for the electrical discharge machining of a workpiece according to claim 1, wherein one or more of the following parameters is adapted in real-time as a function of the partial ignition delays t.sub.d0, t.sub.d1 and t.sub.d2: the pulse pause t.sub.o, the pulse current amplitude I, the pulse current shape I.sub.shape.

    8. A method for the electrical discharge machining of a workpiece according to claim 1, wherein a discharge frequency f.sub.d is acquired, and that the servo setpoint value is adjusted in order to keep the process at the work point where the discharge frequency f.sub.d is maximum.

    9. A method for the electrical discharge machining of a workpiece according to claim 1, wherein an advance speed of the electrode into the workpiece is acquired, and that the servo setpoint value is adjusted in order to keep the process at the work point where said advance speed is maximum.

    10. Amethod for the electrical discharge machining of a workpiece according to claim 1, wherein, the open voltage is further increased to an open voltage level U.sub.oi, U.sub.o(i+1), . . . if within a further waiting time d.sub.i, d.sub.(i+1), . . . a discharge does not occur, or it is increased by a single step after a single waiting time.

    Description

    DETAILED DESCRIPTION AND PREFERRED EMBODIMENTS

    [0016] Preferred embodiments of the invention will now be detailed with reference to the attached drawings, in which

    [0017] FIG. 1 is a plot of a typical machining pulse;

    [0018] FIG. 2 is a plot of the typical movement of the machine head with associated EDM pulses;

    [0019] FIG. 3 is an oscilloscope plot of a stepped pulse according the invention as issued from the pulse generator;

    [0020] FIG. 4 is a graph illustrating the electrode wear, the material removal rate and the interelectrode gap width as a function of the machining voltage, as known in the art;

    [0021] FIG. 5 is a plot of the typical movement of the machine head with associated inventive EDM pulses;

    [0022] FIG. 6 is a plot of the voltage acquisition from a stepped pulse (a) and from a stadard pulse (b);

    [0023] FIG. 7 is a block diagram of a gap control loop according to the state of the art;

    [0024] FIG. 8 is a block diagram of the gap control loop according to the invention;

    [0025] FIG. 9 is a block diagram of the gap control loop according to the invention;

    [0026] FIG. 10 is a flow chart of an optimal control algorithm;

    [0027] FIG. 11 is a graph illustrating the Z-axis position of a die sinking machine as a function of time when machining a cavity.

    DESCRIPTION OF THE PREFERRED EMBODIMENTS

    [0028] First, referring to FIG. 1 there is illustrated the voltage and current profile of an ideal EDM pulse (or a so-called normal pulse) as a function of time in a known die-sinking electrical discharge machine, with an anodic-poled machining electrode. Such voltage and current profile is, [0029] at the start of the pulse, the open voltage U.sub.o is attained and maintained during an ignition delay time t.sub.d, [0030] after ignition, the open voltage U.sub.o sharply falls to the discharge voltage U.sub.e, [0031] the machining current I.sub.e flows during the discharge time t.sub.e, [0032] in the pause time t.sub.o and during ignition delay time t.sub.d, no machining current flows and there is no material removal.

    [0033] The material removal occurs during the discharge time t.sub.e, so that ignition delay time t.sub.d and pause time t.sub.o are lost to the machine productivity.

    [0034] As said, the main object of the present invention is to improve the performance and stability of the EDM process, without any loss of reproduction accuracy.

    [0035] Thus, in a method for the electrical discharge machining according to a first embodiment of the present invention, a plurality of discrete electrical discharge machining pulses are applied to a gap between workpiece and electrode, wherein an open voltage is applied between the electrode and the workpiece to induce a discharge, wherein the open voltage of a present pulse is initially applied at an initial open voltage level U.sub.o0, and said open voltage is increased to a second open voltage level U.sub.o1 if a discharge does not occur within a first waiting time d.sub.0, and said open voltage is further increased to a third open voltage level U.sub.02 if a discharge does not occur within a second waiting time d.sub.1, and an average products sum W.sub.step of the partial open voltages U.sub.o0, U.sub.o1, U.sub.o2 times the partial ignition delays t.sub.d0, t.sub.d1, t.sub.d2 is computed based on a plurality of pulses, and said average products sum W.sub.step is compared with the average product W.sub.tec being the product of a previously set reference open voltage U.sub.o_tec multiplied by the total ignition delay t.sub.dT, wherein a servo setpoint value for the gap width control is increased if the average products sum W.sub.step is larger than the average product W.sub.tec, and wherein the servo setpoint value is reduced if the average products sum W.sub.step is smaller than the average product W.sub.tec.

    [0036] The individual steps of the inventive method for electrical discharge machining are now explained in detail.

    [0037] The method includes applying and progressively increasing an open voltage to induce the discharge, as follows: [0038] an initial open voltage level U.sub.o0is first applied to the gap; [0039] If breakdown does not occur within a first waiting time d.sub.0, then said initial open voltage level U.sub.o0is increased to a second open voltage level U.sub.o1; [0040] If breakdown does still not occur within a second waiting time d.sub.1, then said second open voltage level U.sub.o1is increased to a third open voltage level U.sub.o2.

    [0041] In this way the method promotes the breakdown after application of the open voltage, minimizing the unproductive time. FIG. 6a shows the voltage of a typical ideal pulse according the present invention. In comparison, FIG. 6b shows the shape of a typical conventional ideal pulse. Further, FIG. 3 shows an exemplary voltage signal of a pulse according the present invention, as measured by means of an oscilloscope.

    [0042] Since the duration of the ignition delay time t.sub.d is roughly proportional to the interelectrode gap, raising the open voltage allows to force a discharge to occur. The problem of the comparably slow response of the servo system, which cannot adjust the width of the gap in real-time, is thus relieved by progressively increasing open voltage within the same pulse.

    [0043] The breakdown may occur at any time after application of an open voltage. The breakdown may occur in the course of the first waiting time d.sub.0, or in the course the second waiting time d.sub.1 or thereafter. Under circumstances breakdown may not occur at all (open pulse), in which case the open voltage pulse is stopped.

    [0044] Preferably, the waiting times d.sub.0, d.sub.1, etc. are predefined values, or predefined percentages of the maximum open voltage application time t.sub.dmax. For instance, the waiting time d.sub.0 is 10% of t.sub.dmax and the waiting time d.sub.1 is 15% of t.sub.dmax. The maximum open voltage application time t.sub.dmax is for instance 100 μs, means d.sub.0 is 10 μs, and d.sub.1 is 15 μs.

    [0045] However, increasing open voltage U.sub.0, results in wider machining kerf and poor surface roughness. Simply varying the open voltage would also reduce the reproducibility of machining results. For this reason, a setpoint value for the servo control, i.e. for the control of the interelectrode gap width, is then adjusted.

    [0046] In case of an average pulse voltage based servo control, the setpoint value for the servo control is a servo reference voltage, whereas in case of an ignition delay time based servo control, the setpoint value is a servo reference delay.

    [0047] The method according the invention further includes, forming an average products sum W.sub.step, for instance as follows: [0048] For each pulse, the partial open voltages U.sub.oi of a present pulse is multiplied by the respective ignition delay time t.sub.di; [0049] the partial products U.sub.oi*t.sub.di of the actual pulse are added up, e.g.:


    W.sub.step_pulse=(U.sub.o0*t.sub.d0)+(U.sub.o1*t.sub.d1)+(U.sub.o2*t.sub.d2); [0050] lastly, the average sum W.sub.step of a plurality n.sub.d of pulses is formed by adding the partial products W.sub.step_pulse of said plurality of pulses and dividing by the number of the considered number of pulses n.sub.d.

    [00001] w step = 1 n d .Math. i = 1 n d ( w step_pulse )

    [0051] For instance, if the breakdown occurs in the course of the second waiting time d.sub.1, the products sum is:


    W.sub.step_pulse=(U.sub.o0*t.sub.d0)+(U.sub.o1*t.sub.d1)+(U.sub.o2*t.sub.d2)


    t.sub.d0=d.sub.0;t.sub.d2=0

    [0052] Here, the first product includes the partial ignition delay t.sub.d0which corresponds to the entire first waiting time d.sub.0. However, the second product includes the partial ignition delay t.sub.d1 which corresponds only to a part of the second waiting time d.sub.1. Moreover, in this example the third product is zero because the breakdown has already occurred, i.e. t.sub.d2 is zero. For this reason, the partial ignition delays are used to compute the products sum W.sub.step_pulse.

    [0053] Further, the method according the invention includes forming an average product W.sub.tec, being the average product of a previously set reference open voltage U.sub.0_tec multiplied by the total ignition delay t.sub.dT, for a considered number of pulses nd, for instance as follows: [0054] For each pulse, the product W.sub.tec_pulse is computed by multiplying the reference open voltage U.sub.0_tec by the respective total ignition delay t.sub.dT, where the reference open voltage U.sub.0_tec is an open voltage according to a suitable standard machining technology parameter set, and the total ignition delay t.sub.dT equates to the sum of the partial ignition delays, t.sub.dT=(t.sub.d0+t.sub.d1+t.sub.d2); [0055] the average W.sub.tec of a plurality of pulses is formed by adding the partial products W.sub.tec_pulse of said plurality of pulses nd, and dividing by the number of the considered pulses nd.

    [0056] Further, the method according the invention includes comparing the average products sum W.sub.step with the average product W.sub.tec. More specifically, the average products sum W.sub.step is subtracted from the average product W.sub.tec, i.e. W.sub.step−W.sub.tec.

    [0057] Lastly, the servo setpoint value for the gap width control is adjusted as a function of said value W.sub.step−W.sub.tec as follows: [0058] the servo setpoint value is adjusted such as to reduce the gap width if the average products sum W.sub.step is larger than the average product W.sub.tec, means the interelectrode gap is reduced; [0059] the servo setpoint value is adjusted such as to increase the gap width if the average products sum W.sub.step is smaller than the average product W.sub.tec, means interelectrode gap is increased.

    [0060] In substance, the difference of the average products sum W.sub.step and the average product W.sub.tec is used to adjust the servo setpoint value for the gap width control, and thus lastly adjust the gap between electrode and workpiece.

    [0061] For instance, a servo compression COMP is used as a servo setpoint value, for the setting of the servo reference delay or the servo reference voltage. The servo compression COMP is a parameter for adjusting the gap width; high COMP value is to set a small gap, whereas low COMP value represents a large gap.

    [0062] Here, the servo compression COMP is adjusted as a function of the said value of Comp_adj: [0063] the servo compression COMP is increased if the average products sum W.sub.step is larger than the average product W.sub.tec, i.e. Comp_adj is positive; [0064] the servo compression COMP is reduced if the average products sum W.sub.step is smaller than the average product W.sub.tec, i.e. Comp_adj is negative.

    [0065] In the previous example, the value of Comp_adj was computed by subtracting the average products sum W.sub.step from the average product W.sub.tec,


    Comp_adj=W.sub.step−W.sub.tec

    [0066] In an alternative to the previous example, a proportional value Comp_adj_U may be computed as the difference of the average open voltage U.sub.0_step_avg and the reference open voltage U.sub.0_tec:


    Comp_adj_U=U.sub.0_step_avg−U.sub.0_tec

    [0067] Where U.sub.0_step_avg is the average open voltage of the number n.sub.d of considered inventive stepped open voltage pulses, which is computed by dividing the average products sum W.sub.step by total ignition delay t.sub.dT, where t.sub.dT is the sum of the partial ignition delays t.sub.dT=(t.sub.d0+t.sub.d1+t.sub.d2) of all considered pulses n.sub.d. As mentioned earlier, U.sub.0_tec is the reference open voltage, i.e. an open voltage according to a suitable standard machining technology parameter set, which provides well defined machining results, including defined undercut.

    [0068] In this variation, Comp_adj_U, i.e. the difference of the average open voltage U.sub.0_step_avg and the reference open voltage U.sub.0_tec is used to adjust the servo setpoint value for the gap width control. The steps other than the computation of Comp_adj_U remain unchanged.

    [0069] The servo setpoint value for the gap width control is a servo reference voltage or a servo reference delay or a value derived therefrom.

    [0070] The reference open voltages U.sub.0_tec are typically determined and provided by the machine tool manufacturer and is stored and made available in a technology database of the control unit. Thus according the invention, the reference open voltage U.sub.0_tec is previously stored in a standard machine database.

    [0071] According to an embodiment of the invention, an axis position (X, Y, Z, C) is continuously acquired, and a variation of a gap width is derived from the variation of said axis position.

    [0072] This axis position is the instant axis position of tool and/or workpiece, which is individually acquired for each of the axes (Z, X, Y, C). For instance, an exemplary die-sinking EDM machine bears a workpiece on a stationary table, which rests on a machine base, and the translations of the tool electrode are executed by means of three linear axis slides, which are mounted in series on the base, plus a rotating C-axis placed on the machine head, in series with the Z-axis. For the sake of simplicity, we consider only the Z-axis movement which is executed by the machine head which carries the tool electrode. A variation of the Z-axis position dZ=Z.sub.i−Z.sub.i−1 corresponds to a same variation of the gap width in the same axis direction.

    [0073] The Z-axis position of the machine head is continuously sampled, preferably by means of a glass scale LS or by means of the eroding axes rotary encoders E, as shown in FIG. 7 (prior art) and FIG. 8 (invention). This axis position, e.g. referred to the machine vertical axis position Z, does not show the absolute gap width information, since the cavity bottom is not exactly known, and the cavity bottom is continuously eroded. However, the succession of axis positions delineates the relative oscillation (variation of the axis position) around the instant axis position setpoint value. This is a very useful information, since the machining result variations are correlated to this oscillation, as illustrated by FIG. 11. There one can see how the axis position oscillates around the white line showing the ideal steady feed.

    [0074] The instant axis position setpoint value is given, e.g. by the actual servo compression value COMP, and the effective axis position is continuously acquired. A relative gap width is derived from the difference of the axis position setpoint value and the acquired axis position. In this way a large, respectively a small gap width is safely determined, and countermeasures can be enacted. Specifically, certain electrical parameters are adjusted in real time as a function of the actual gap width, whereby the process is enhanced.

    [0075] FIG. 4 is an illustration excerpt from: W.König, F. Klocke, Fertigungsverfahren Abtragen und Generieren, 4. Auflage, Springer, p.40, illustration 2.20, 2007, ISBN 3-540-23492-6. As shown, the relative electrode wear υ and the material removal rate V.sub.W are a function of the gap width S.sub.EK.

    [0076] Therefore, if the gap width varies and no action is taken, variations of these two results will occur, affecting the machining quality.

    [0077] In one embodiment, one or more of the following parameters are adapted as a function of the axis position: [0078] the open voltage U.sub.o, [0079] the pulse pause t.sub.o, [0080] the current pulse amplitude, [0081] the current pulse shape

    [0082] These actions are aiming to counter the effect of the head oscillation around the optimal working point (Figures not true to scale): [0083] the open voltage U.sub.0, that is at least one of the partial open voltages U.sub.o0, U.sub.o1, U.sub.o2, is adapted as a function of the current machine head position, as follows: U.sub.0 is increased if the gap is getting bigger, and decreased if it is getting smaller, as a function of the machine head position (FIG. 5: U.sub.o0″>U.sub.o0′); [0084] the pause times t.sub.o between consecutive machining pulses are adapted as a function of the current machine head position. By reducing the pause time t.sub.o when the gap is big and increasing t.sub.o when the gap is small one can increase the productivity of the process, without increasing the risk of arcing (FIG. 5: t.sub.0″<t.sub.0′); [0085] the current pulse shape I.sub.shape and/or current amplitude I are adapted as a function of the machine current head position, as follows: when the gap is small the tendency towards an higher electrode wear is increased, and the wear occurs mainly at the beginning of the discharge, therefore a moderate initial current slope and a slightly reduced current is applied. When the gap is big, a steeper slope and the nominal current is applied (FIG. 5: I′<I″).

    [0086] By the inventive action the process performance is maintained and enhanced, independently from the machine head oscillations. For this reason, according to an embodiment of the present invention, a controlled oscillation is superimposed to the axis positions. This superimposed micro oscillation consist in a relative movement of the workpiece and electrode at a frequency well above the eigenfrequency of the machine, at an amplitude of 1 to 30 μm, depending on the gap width. The superimposed micro oscillation may be achieved with the machine axes, for instance a machining head moving along the Z-axis, or with an auxiliary device, for instance by means of an electrode holder with piezo-motors actuation, etc. In this way a continuous flushing action is provoked in the gap, which promotes the mixing of the dielectric in the gap and the evacuation of the eroded particles, further improving the process performance.

    [0087] The adaptions to the electrical parameters, such as the initial open voltage U.sub.0, pulse pause time between consecutive pulses t.sub.o (FIG. 5: t.sub.0″<t.sub.0′), current of normal discharge pulses I (FIG. 5: I′<I″), and shape of the current pulse I.sub.shape can be done in real-time, in the course of one control loop, which is typically in the microsecond range.

    [0088] Accordingly, in another embodiment, one or more of the following parameters is adapted in real-time, as a function of the waiting times d.sub.0, and d.sub.1: [0089] the pulse pause t.sub.o, [0090] the pulse current amplitude I, [0091] the pulse current shape I.sub.shape.

    [0092] These parameters can be adjusted with each one or more pulses; the parameter adaptation is thus much faster than what can be done by sampling the axes position.

    [0093] The following function is built for every pulse or as an average of a plurality of pulses:


    Gap_rel=k.sub.a*t.sub.d0+k.sub.b*t.sub.d1+k.sub.c*I*T

    [0094] Where Gap_rel is a value proportional to the Gap width, t.sub.d0 and t.sub.d1 are ignition delays, k.sub.a, k.sub.b and k.sub.c are fitting coefficients, I is the pulse current amplitude, T the pulse lenght, i.e. the applied pulse on-time.

    According to the present embodiment, electrical parameters, e.g. pause time t.sub.o between consecutive pulses, current amplitude of pulses I, shape of current pulses I.sub.shape, are adapted in real-time as a function of Gap_rel, pulse by pulse, as illustrated above (i.e. pause time t.sub.o is decreased if Gap_rel is increased, etc).

    [0095] Referring now to FIG. 7 there is illustrated a gap control loop diagram according to the state of the art. Here only the Z-axis is shown, for simplicity.

    The gap voltage U.sub.Gap is measured by means of a Gap acquisition unit 64, then the ignition delay t.sub.d is extracted 60 from said gap voltage signal, in known manner, and then it is filtered 61, according to e.g. EP 0 333 170. This filtered and averaged ignition delay value is subtracted from a value derived from the compression value COMP 62, then it is further processed, e.g. by a proportional integral derivative transfer function PID 63, and its output ε.sub.o is fed as the new position vector input to the machine interpolator (IPO) that distributes this new position vector to the involved axes.

    [0096] In this way, the actual value of the ignition delay is controlled according to the servo compression COMP.

    [0097] The simplified control law is:


    Delay [%]=(k.sub.offs−COMP*k.sub.comp)*100/k.sub.offs

    e.g., if k.sub.offs=128 and k.sub.comp=2.56 [0098] If COMP=0, Delay=100% (open gap) [0099] If COMP=50, Delay=0% (smallest gap)

    [0100] Where Delay[%] is the ignition delay expressed in percent, k.sub.offs is an offset coefficient, k.sub.comp is an adjusting coefficient, by which the servo compression COMP (servo setpoint value) is set in relation to the ignition delay.

    [0101] Referring to FIG. 9 there is illustrated an alternative gap width control loop diagram according to the invention. In contrast to the control loop shown in FIG. 8, this control loop uses the extracted average pulse voltage as a feedback signal from the process. The gap voltage U.sub.Gap is measured by means of a Gap acquisition unit 64, then the average pulse voltage is extracted 58 from said gap voltage signal, and then it is filtered 59, in known manner. If the average pulse voltage is used to control the gap width instead of the ignition delay, a similar control law is used:


    average pulse voltage[%]=average pulse voltage*100/U.sub.0


    average pulse voltage[%]=(k.sub.offs−COMP*k.sub.comp)*100/k.sub.offs [0102] If COMP=0, Voltage_ave % =100% (open gap=U.sub.0)

    [0103] A third gap width control method, very similar to the one illustrated in FIG. 9, utilizes the gap average voltage feedback signal from the process, instead of the average pulse voltage. This method is beneficial when the duty cycle of the pulses (the rate on time vs off time) is small. In these cases, measuring the total gap average voltage (i.e. including also the off time) delivers more information about the gap contamination.

    [0104] However as mentioned above, in practical applications, increasing the open voltage as shown in FIG. 3 could also increase the undercut, leading to geometric inaccuracy and decreased reproducibility. Thus, one must try to machine using the same average open voltage as in the standard machine database, i.e. the reference open voltage U.sub.0_tec in order to be compatible with the existing application technology and get the same undercut, or even to work by a smaller gap, to increase the copy precision of the EDM process.

    [0105] According to the present invention, an initial open voltage level U.sub.o0 is set to be lower than a reference open voltage U.sub.0_tec of a machining according to the standard machine database, which would generate a known undercut. As mentioned earlier, the initial open voltage U.sub.0O is then gradually increased to promote the breakdown.

    In other words, when replacing a standard machining regime having a reference open voltage U.sub.0_tec of e.g. 100 V by the inventive method, an initial open voltage U.sub.o0 of e.g. 75 V is chosen. One sees that a compromise between increasing the voltage, and thus the machining speed, and keeping the desired small undercut (side gap) is a priority.

    [0106] Referring now to FIG. 6 and FIG. 8, in a preferred embodiment, for every voltage pulse, a Compression adjustment processor unit 80 builds the products W.sub.step of the partial open voltage levels U.sub.o0, U.sub.o1, U.sub.o2 times the partial ignition delays t.sub.d0, t.sub.d1, t.sub.d2:


    W.sub.step=t.sub.d0*U.sub.o0+t.sub.d1*U.sub.o1+t.sub.d2*U.sub.o2

    Here t.sub.d0 and t.sub.d1 may correspond to pre-defined waiting times d.sub.0, and d.sub.1. This means, for instance, that if the breakdown occurs after the second waiting time d.sub.1, then t.sub.d0=d.sub.0, and t.sub.d1=d.sub.1 (see FIG. 3).

    [0107] Similarly, for every voltage pulse, the Compression adjustment processor unit 80 builds the product W.sub.tec of the ignition delay t.sub.dTtimes the open voltage U.sub.0_tec:


    W.sub.tec=t.sub.dT*U.sub.0_tec

    [0108] Where U.sub.0_tec is a desired open voltage, e.g. coming from a standard application technology database. The ignition delay t.sub.dT is the sum of the partial ignition delays of a pulse, t.sub.dT=t.sub.d0+t.sub.d1+t.sub.d2.

    [0109] The values are filtered through a low pass filter, to match the control loop time constant, then Comp_adj is computed:


    Comp_adj=k.sub.1*(W.sub.step−W.sub.tec)

    [0110] Lastly, Comp_adj is added to COMP, as illustrated in the inventive control loop in FIG. 8.

    [0111] In this way, if the open voltage is too high, the servo compression is increased and this brings it towards U.sub.0_tec. If the open voltage is too low, the servo compression is reduced for the same purpose. k.sub.1 is a factor which is optimized in order to keep the undercut produced by using the inventive pulse identical to the one generated using a reference open voltage U.sub.0_tec, according to standard technology.

    [0112] Moreover, according to an alternative embodiment of the present invention, the undercut can be minimized by reducing the referenced open voltage U.sub.0_tec to a very small value.

    [0113] The process control acts at the same time in the mechanical frequency range (the gap width control loop), and in the discharge frequency range, which is about 1000 times faster, by applying the actions disclosed above (adaptions of the electrical parameters).

    [0114] The Comp_adj processing unit 80 adjusts the open voltages, i.e the partial open voltages U.sub.o0, U.sub.o1, U.sub.o2, and/or the waiting times d.sub.0, d.sub.1 in order to make the average value equal to a reference open voltage U.sub.0_tec.

    [0115] Additionally, in order to optimize the machine performance, another aspect of the inventive method includes to adapt, in real time, the servo setpoint value, i.e. the servo compression COMP by means of the Comp processing unit 62.

    [0116] These two algorithms can work at the same time: Comp_adj controlling the open voltages, and the adaptation of the setpoint value of servo compression COMP keeping the EDM process at the optimum working point. This optimum working point is the point where the desired machine performance is highest. Due to the stochastic nature of the process, and the micro- and macroscopic geometric conditions of the cavity, this point changes constantly during the machining.

    [0117] Here applicable algorithms are those known in the state of the art of the optimal control, like: hill climbing method, simplex algorithm, binary search, reinforcement learning, etc. An exemplary, very simplified embodiment of such an optimization algorithm which aims to maximize the frequency of discharges is illustrated in FIG. 10.

    The algorithm assigns a value to setpoint value COMP, waits a settling time t.sub.s for the process to settle, counting e.g. the amount of discharges N.sub.d during this lapse of time, or determining the discharge frequency f.sub.d=N.sub.d/t.sub.s.

    [0118] It will then compare this amount of discharges N.sub.d to a previously acquired one, and, if N.sub.d is higher, change COMP in the same direction, else in the opposite one. Of course, algorithms that are more complex can be applied, as mentioned above.

    [0119] The amount of discharges N.sub.d can be obtained in this way: [0120] Measuring the current pulses by a current sensor; [0121] Converting the current pulses to a digital information, e.g. by a voltage comparator; [0122] Counting digitally the pulses in a lapse of time using known means (e.g. FPGA, digital counter integrated circuit, microcontroller, etc)

    [0123] An alternative method to obtain N.sub.d is as disclosed in EP1918054, using signal 32, illustrated in FIG. 6.

    [0124] Assuming that the generator works in isopulse mode (means the current of every pulse has the same duration t.sub.e), it is advisable to use a discharge frequency f.sub.d as a preferred parameter if the material removal rate must be optimized, since, as disclosed by EP1918054, the material removal is proportional to the discharge frequency f.sub.d.

    [0125] Thus, according to an embodiment of the invention, a discharge frequency f.sub.d is acquired, and that the servo setpoint value is adjusted in order to keep the process at the work point where the discharge frequency fd is maximum.

    [0126] Assuming that the tool electrode wear rate is known, an alternative might be to use an advance speed v.sub.adv of the tool electrode into the workpiece as the parameter to be optimized. The advance speed reflects the removal on both electrodes (i.e. the material removal at workpiece and wearing at the tool electrode), therefore by knowing the wear rate one can deduct the stock removal in the workpiece. The second includes also the tool electrode wear.

    [0127] Thus, according to a further embodiment of the invention, an advance speed v.sub.adv of the electrode into the workpiece is acquired, and that the servo setpoint value is adjusted in order to keep the process at the work point where said advance speed v.sub.adv is maximum.

    [0128] The inventive method has been described exemplarily using a first and a second waiting time d.sub.0 and d.sub.1, with corresponding increase of the open voltage. The method can be extended to additional waiting times d.sub.i and voltage steps U.sub.oi, or to a single one, if required by the application. The latter can be beneficial when machining poorly conductive materials. Thus, according to an embodiment, the open voltage is further increased to open voltage levels U.sub.oi, U.sub.o(i+1), . . . if within a further waiting times d.sub.i, d.sub.(i+1), . . . a discharge does not occur, or it is increased a single time after a single waiting time.

    [0129] Moreover, instead of voltage steps, a voltage ramp or other forms of progressively rising open voltage can be applied. Here W.sub.step_pulse is computed in consideration of the actual open voltage pulse shape, by again summing up the products of partial open voltages times the partial ignition delay times. The other steps for the adjustment of the servo setpoint value remain unchanged.

    [0130] The waiting times d.sub.0, d.sub.1, d.sub.i are preferably predefined values or predefined percentages of the maximum open voltage application time t.sub.dmax. However the optimization of said waiting times is complex. The same is worth for the partial open voltages U.sub.o0, U.sub.o1, U.sub.O2. Preferrably, predefined optimal waiting times are identified using machine learning algorithms such as e.g. Multi-objective black box optimization, with the aim to maximize the discharge frequency f.sub.d, for instance. Here, experiments of the same type, with varying machining conditions, including varying waiting times and/or varying partial open voltages U.sub.o0, U.sub.o1, U.sub.o2 are conducted, and discharge frequency or other parameter indicating the material removal rate is determined, and an ML-algorithm is trained by feeding the varying machining conditions, including varying waiting times and/or varying partial open voltages and the resulting discharge frequency, e.g.

    REFERENTIALS

    [0131] s gap width

    [0132] t.sub.d ignition delay time, or ignition delay

    [0133] t.sub.d0, t.sub.d1, t.sub.d2, t.sub.di partial ignition delay times

    [0134] t.sub.dT total ignition delay

    [0135] t.sub.dmax maximum open voltage application time

    [0136] t.sub.o pulse pause

    [0137] d.sub.0, d.sub.1, d.sub.i waiting times

    [0138] U.sub.o open circuit voltage, open voltage, idle voltage

    [0139] U.sub.o0 initial open voltage level

    [0140] U.sub.o1 second open voltage level

    [0141] U.sub.o2 third open voltage level

    [0142] U.sub.0_tec reference open voltage

    [0143] U.sub.e machining voltage, discharge voltage, burning voltage

    [0144] I.sub.e machining current

    [0145] W.sub.step average product of the partial open voltages U.sub.0, U.sub.1, U.sub.2 times the partial ignition delays t.sub.d0, t.sub.d1, t.sub.d2;

    [0146] W.sub.tec product of the set reference open voltage multiplied by the total ignition delay t.sub.d

    [0147] I.sub.shape pulse current shape

    [0148] COMP compression, servo setpoint value

    [0149] I current amplitude

    [0150] T applied pulse on-time