主权项 |
1. A numerical controller configured to detect abnormal interference between targets for interference check in a machine tool, including a tool and a workpiece, based on a machining program, the numerical controller comprising:
a contactable direction setting unit for setting a contactable direction which is a direction in which the tool is allowed to contact the workpiece so as to be able to machine the workpiece; a compensation direction analysis unit for analyzing the machining program to obtain a compensation direction of radius compensation; a contactable direction changing unit configured to change the contactable direction for the tool based on a posture of the tool; and an interference check unit configured to execute an interference check process for detecting an abnormal interference between the tool and the workpiece, based on the compensation direction of radius compensation obtained by the compensation direction analysis unit and the contactable direction changed by the contactable direction changing unit, wherein the interference check unit determines that the interference between the tool and the workpiece is abnormal if the compensation direction of radius compensation is not included in the changed contactable direction for the tool. |