CPC G05B 19/402 (2013.01) [B23Q 15/12 (2013.01); G05B 2219/43132 (2013.01)] | 6 Claims |
1. A controller for controlling a machine tool having a first axis for rotating a tool including a plurality of cutting tools and a second axis for rotating a workpiece and simultaneously rotating the first axis and the second axis to perform polygon machining, the controller comprising:
a machining setting storage unit configured to store the number of cutting tools;
a current phase calculation unit configured to calculate phases of the first axis and the second axis rotating before phase alignment;
a machining-allowing phase calculation unit configured to calculate a phase designated by a machining program and a phase when an angle of the first axis is shifted by an interval of the plurality of cutting tools from the phase designated by the machining program;
an optimum phase calculation unit configured to obtain a phase minimizing a necessary time until phase alignment from a plurality of phases calculated by the machining-allowing phase calculation unit; and
a phase alignment control unit configured to control phases so that the first axis and the second axis rotate at phases adjusted to a phase calculated by the optimum phase calculation unit.
|