Patent ID: 8236162

Claim:
An electroerosion machining system, comprising: an electrode configured to machine a desired configuration in a workpiece; a power supply configured to energize the electrode and the workpiece to opposite electrical polarities; an electrolyte supply configured to pass an electrolyte between the electrode and the workpiece; an electroerosion controller connected to and monitoring the power supply; a working apparatus configured to move the electrode relative to the workpiece; and a CNC controller configured to: cooperate with the electroerosion controller to control the working apparatus to move the electrode to machine the workpiece layer by layer according to a plurality of toolpaths predetermined in the CNC controller, calculate a wear value of the electrode after machining one or more of a plurality of layers to determine a compensation value for a next one or more layers of the workpiece, associate the compensation value with each of the next one or more layers, divide the compensation value for each layer to be machined into a plurality of value segments, segment the toolpath of each layer into a plurality of toolpath segments, and use the value segments to compensate for electrode wear along the respective toolpath segments during machining of the workpiece.