The invention relates to a method and a generator for generating a time sequence of discharge pulses for EDM machining wherein a pulse capacitor (22) for generating the discharge pulse is charged with a charging voltage (U_chrg) and then discharged into the spark gap. The pulse capacitor (22) after being discharged is recharged with a charging voltage (U_chrg) having the same polarity as that of the residual voltage (U_end) remaining at the pulse capacitor (22) after its discharge. Thereafter, the pulse capacitor (22) is discharged with a discharge pulse into the spark gap, wherein the polarity of the discharge pulse is independent of the polarity of the charging voltage (U_chrg) at the pulse capacitor (22) after its recharge. |