Patent ID: 6909937

Claim:
A method for optimizing a NC program for operating a numerically controlled machine tool, comprising: making the NC program to be loaded into the numerically controlled machine tool, wherein the NC program comprises a plurality of channels; designating an operation of a workpiece or a tool in the NC program to be transformed into electronic cam data in making the NC program; storing the NC program in a memory in the numerically controlled machine tool; in waiting conducted in the plurality of channels, determining whether an operating time by a selected tool is shortened by changing a command position; executing a timing adjustment to synchronize the plurality of channels; searching the designated operation in the NC program stored in the memory and determining whether it is transformable into electronic cam data; transforming the designated operation into electronic cam data by hypothetically operating the workpiece and the tool as described in the NC program and by referring to machine specific data; making a table for storing the electronic cam data; and replacing the transformed portion of the NC program by a command referring to the table.