ahead suppression unit 120 stops the suppression of look ahead thereupon the look ahead analysis unit 100 restarts program look ahead as these procedures are performed the touch sensor can be checked before the movement of the z axis is completed thus by using the numerical controller with the above described configuration an operation to u201c check the touch sensor or execute the macro statement in the vicinity of the end point of the z axis u201d can be achieved so that the cycle time can be reduced as compared with the case where a prior art is used fig5 shows a schematic functional block diagram according to another embodiment in the case where the extended look ahead function of the present invention is mounted as the system program in the numerical controller 1 shown in fig1 the numerical controller 1 shown in fig5 is a numerical controller corresponding to a high speed look ahead suppression command e g g04 1 and comprises a look ahead analysis suspension unit 104 look ahead analysis restart determination unit 105 and look ahead analysis restart unit 106 in addition to the individual function means of the numerical controller described with reference to fig2 a look ahead analysis unit 100 code analysis unit 101 and execution data generation unit 103 of the present embodiment are generally operated in the same manner as those of the numerical controller described with reference to fig2 on receiving the command from the code analysis unit 101 the restart condition analysis unit 102 analyzes the code that stops look ahead and based on the result of the analysis.