PURPOSE: To make machining program generation easier in an automatic program generator of a wire-cut electron discharge machine (EDM) by automatically changing the attitude of machining shape inputted according to a part drawing so that the machining shape can be put within a machinable range.
CONSTITUTION: In an automatic program generator, a machining shape stored in a machining shape memory means 12 inputted through a data input means 101 and a machinable range stored previously in a machinable range memory means 103 are compared, and the machining shape is moved with both a rotary movement means 104 and a translation movement means 105, to search a location where the machining shape can be put within the machinable range. For that purpose, the location where the machining shape can be put within the machining range is searched using a center-of-gravity computing means 106, a machinable range center-of-gravity memory means 107, an interference determining means 108 and an interference amount computing means 109. A machining program is then generated with a machining program generating means 110 based on the searched location of the machining shape.
Next Patent: TOOL LOCUS ADJUSTMENT IN NUMERICALLY CONTROLLED MACHINE TOOL