Patent ID: 8924004

Claim:
A numerical controller that controls a machine tool having at least one rotary axis, the numerical controller comprising: a processor; a memory coupled to the processor, the memory storing instructions for executing on the processor, the memory comprising: a machine condition setting unit configured to set machine conditions including an axis structure and a tool length of the machine tool; a coordinate value obtaining unit configured to obtain instructed coordinate values or actual coordinate values of respective axes at a certain time; a rotation radius calculating unit configured to calculate a rotation radius that is a distance from a rotation center axis of the rotary axis to a control target point, using the machine conditions obtained from the machine condition setting unit and the instructed coordinate values or the actual coordinate values of the respective axes output from the coordinate value obtaining unit; a positioning completion width setting unit configured to set positioning completion widths of the respective axes; and a second positioning completion width calculating unit configured to calculate a second positioning completion width using the rotation radius output from the rotation radius calculating unit and the positioning completion width of the rotary axis obtained from the positioning completion width setting unit; wherein a positioning completion check of the rotary axis is carried out using the second positioning completion width output from the second positioning completion width calculating unit.