Patent ID: 7211762

Claim:
A wire electric discharge machine for performing electric discharge machining by applying voltage between a workpiece and a wire electrode while moving the workpiece on an XY-plane relative to the wire electrode according to a machining program, the workpiece having an upper surface and a lower surface parallel to the upper surface and the wire electrode extending between an upper wire guide and a lower wire guide, said wire electric discharge machine comprising: a workpiece table having a workpiece mounting surface on which the workpiece is mounted such that the upper surface of the workpiece confronts the upper guide; means for detecting positions of at least three points not aligned on a straight line on the upper surface of the workpiece mounted on said workpiece table; means for determining an inclination direction of the upper surface of the workpiece with respect to the XY-plane based on the detected positions of the at least three points; means for adjusting the relative positions of the upper wire guide and lower wire guide on the XY-plane so that the wire electrode extends in a direction parallel to the determined inclination direction; and means for performing electric discharge machining regarding the extending direction of the wire electrode between the upper wire guide and the lower wire guide having the adjusted relative positions as a direction perpendicular to the XY-plane, determining an increment of a position of a machining point that is calculated at each interpolating period on the XY-plane, and correcting position of at least one of the upper wire guide and the lower wire guide on the XY-plane based on the determined inclination direction and the determined increment of the position of the machining point so that a machined shape same as a machining shape designated on the XY-plane by the machining program is obtained.