| CPC B23H 1/022 (2013.01) [G05F 1/46 (2013.01)] | 5 Claims |

|
1. An electric discharge machine, comprising:
a DC power supply that is connected in series with a machining gap formed by a workpiece and a tool electrode and supplies a current to the machining gap;
a main switching element comprising a switching transistor provided in series between the DC power supply and the machining gap;
a polarity switching circuit that comprises a positive switching element and a reverse switching element, wherein the positive switching element comprises a switching transistor provided between a positive side of the DC power supply and the workpiece and a switching transistor provided between a negative side of the DC power supply and the tool electrode, and the reverse switching element comprises a switching transistor provided between the negative side of the DC power supply and the workpiece and a switching transistor provided between the positive side of the DC power supply and the tool electrode;
a pulse generator that performs straight polarity machining by switching the main switching element and the positive switching element on/off at a predetermined switching frequency in a state where the reverse switching element is off, and performs reverse polarity machining by switching the main switching element and the reverse switching element on/off at the switching frequency in a state where the positive switching element is off;
a detector that is connected to the workpiece or the tool electrode and detects an interpolar voltage in the machining gap; and
a discharge controller that comprises:
a classifier configured to determine an operation pattern of current machining is a first pattern that the positive switching element is on during the straight polarity machining, a second pattern that the positive switching element is off during the straight polarity machining, a third pattern that the reverse switching element is on during the reverse polarity machining, or a fourth pattern that the reverse switching element is off during the reverse polarity machining based on a command to turn on/off the main switching element, and
a storage and a calculator, wherein the storage stores a coefficient indicating a removal quantity per discharge count for each of the first to fourth operation patterns, and the calculator calculates the discharge count from the interpolar voltage and estimates the removal quantity from a sum of multiplying the discharge count and the corresponding coefficient according to the first to fourth operation patterns.
|