A generator for generating
processing pulses at the
electrode gap (3) of a device for electrochemically
machining workpieces (1), comprising a power supply device (7) and switching devices (9) for pulse-wise connection of the power supply device (7) to connecting cables (5, 6) that are led to the
electrode gap (3), with a circuit (8, 9, 13, 15) for increasing the steepness of the edges (25, 27) of current pulses flowing through the
electrode gap (3) by recuperating
field energy stored in the connecting cables (5, 6) during the pulses, wherein the circuit (8, 9, 13, 15) is provided for recuperating
field energy stored as a result of the
inductance (10) of the connecting cables (5, 6) and for recuperating the
field energy by charging a
capacitor (13) by a current that the
inductance (10) generates after the connecting cables (5, 6) have been separated from the power supply device (7) by the switching device (9). and the circuit (8,9,13,15) comprises a
diode (8) preventing the
discharge of the
capacitor (13) via the power supply device (7), characterized in that the connecting cables (5, 6), the power supply device (7), the
capacitor (13) and the
diode (8) are connected in series in such a way that they are arranged on a common current path at least for the current flowing during the recuperation of the field energy stored in the connecting cables (5, 6).