To easily reset by providing a reset means which resets in such a way as setting a pulse by a manual pulse generator to a rotation command of a main spindle, and synchronizing a feed shaft therewith in abnormality of a numerical controller.
When an accident such as broken of a tap occurs, the mode is switched to a manual mode to temporarily interrupt an operation by a program and a manual pulse generator 1 is operated to generate a manual pulse. The manual pulse is inputted in a pulse multiplexing circuit 2 so as to output a drive pulse of the rotation command, for example, in the inverse direction of the tapping, in the direction for inversely rotating the main spindle. Successively, the tap biting into a work is drawn out by the inverse rotation of the main spindle with the main spindle and the feed shaft synchronized with each other so as to stop the rotation of the main spindle motor 5 and consequently the feed shaft is stopped.
Next Patent: PROCESSING OF SCROLL PLATE AND PROCESSING DEVICE