A wire electric discharge machine for turning tool machining that performs machining of an edge part of a turning tool to which a tip is attached by moving a wire electrode relative to a table on which the turning tool is placed, in accordance with a machining program, the wire electric discharge machine comprising:
- a measurement unit configured to measure a height from a reference face on a plurality of points on a route of the machining program;
- an error calculation unit configured to calculate a height error of a surface of the tip with respect to a reference rake face having no tip-attaching error, on the basis of the height that is measured by the measurement unit;
- a correction amount calculation unit that calculates a correction amount on each measurement point on the basis of the error on each measurement point that is calculated and a taper angle of the wire electrode in performance of machining that is instructed by the machining program, so that a position, on a horizontal plane, of the edge part of the turning tool accords with a position, on the horizontal plane, of an edge part of the reference rake face;
- and
- a control unit configured to control movement of the wire electrode relative to the turning tool on the basis of the correction amount that is calculated by the correction amount calculation unit.