Patent ID: 10338570

Abstract:
A numerical controller capable of finely designating a restart condition for look-ahead for a program after suppression of the look-ahead is configured to sequentially read out and analyze commands for blocks of a program, perform look-ahead processing to save the result of the analysis in a buffer, and execute the commands for the blocks looked ahead based on the analysis result saved in the buffer, thereby controlling a machine, and is provided with a function of stopping the look-ahead processing when a block into which a code for stopping look-ahead is inserted is read out from the program. The numerical controller is characterized by being provided with a restart condition determination unit, configured to determine whether or not a look-ahead restart condition commanded by the code for stopping look-ahead is satisfied, and a look-ahead preceding restart unit, configured to restart the look-ahead processing if it is determined by the restart condition determination unit that the restart condition is satisfied, and in that the restart condition is a condition related to the state of the machine.