摘要 |
PROBLEM TO BE SOLVED: To provide a technique capable of moving a tool unit up to right before a limit value while avoiding interference with other machine elements without making any expensive interference check.SOLUTION: A machine tool includes: a cutter holder 10 provided with a tool unit TU1 for processing a work; operation control means U1 of controlling an operation of the tool unit TU1 according to a plurality of commands CM1 described in an NC program P2; and movement limiting means U2 of inhibiting the tool unit TU1 from entering a set entry inhibition range A1. The plurality of commands CM1 include a limit value setting command CM2 for calculating and setting, as the entry inhibition range A1, a limit value LM1 of a position of the tool unit TU1 where interference with a machine element E1 having entered a movable range of the tool unit TU1 can be avoided. The operation control means U1 calculates and sets the limit value LM1 as the entry inhibition range A1 when the limit value setting command CM2 is read out of the NC program P2. |