h in the figure by means of the pulse motor 14 39 at the tip of the spindle 15 is fixed the second machining head 16 which drives the machining electrode 18 in the direction shown by arrow h in the figure by the pulse motor 16 39 via the electrode mounting jig 17 as the operation of the second machining head 16 will be described later the description here is based on the assumption that the second machining head is in a still state the movement of the spindle 15 in the direction h by the pulse motor 14 39 of the first machining head 14 is controlled in such a manner that the gap between the machining electrode 18 and the work 13 can be maintained constant with the progress of machining in accordance with predetermined machining conditions such as electrode voltage discharge current etc hereinafter referred to as automatic servo drive in place of the pulse motors 14 39 and 16 39 for driving the first and second machining heads 14 and 16 a hydraulic servo drive unit and other appropriate automatic servo drive units may be used the electrodischarge machining equipment for use in this invention as shown in fig4 a and 4b is capable of setting the angle of the first machining head 14.