主权项 |
1. A numerical controller configured to drivingly control a motor of a machine tool in accordance with a machining program, the numerical controller comprising:
a machining continuable time estimation unit configured to estimate and output a machining continuable time before the motor overheats if an output of the motor exceeding a continuous rated output of the motor is continued; a program operation unit configured to execute a command block included in the machining program, thereby drivingly controlling the machining continuable time, and output the currently running block and subsequent command blocks thereof when the machining continuable time is output by the machining continuable time estimation unit; a machining time prediction unit configured to predict respective execution times of command blocks output by the program operation unit; a machining continuable time prediction unit configured to predict the machining continuable time for each of the command blocks, based on the execution times of the command blocks predicted by the machining time prediction unit; an alarm generation block identification unit configured to identify, as an alarm generation block, a command block in which the motor overheats, based on the machining continuable time for each of the command blocks predicted by the machining continuable time prediction unit; a stop block identification unit configured to identify, as a stop block, a command block in which the driving control is allowed to be safely stopped, among the currently running block and the subsequent command blocks thereof and the command blocks preceding the alarm generation block identified by the alarm generation block identification unit; and a display unit configured to display at least the alarm generation block and the stop block, wherein the program operation unit is configured to stop the driving control based on the machining program in the stop block identified by the stop block identification unit. |