摘要 |
PROBLEM TO BE SOLVED: To provide a numerical controller capable of calculating a command rotational speed of a main spindle so as to minimize a travel time of the main spindle by a feed spindle in tapping.SOLUTION: A numerical controller 1 of a machine tool MC includes an acceleration/deceleration characteristic acquisition unit 11 to acquire predetermined acceleration/deceleration characteristic information I1 showing correspondence relation between a command rotational speed of a main spindle A1 and a settable maximum acceleration, a rotation amount acquisition unit 12 to acquire predetermined rotation amount information I2 showing a rotation amount of the main spindle A1 from a start of a feed operation of the main spindle A1 to an arrival of a tapping tool to the bottom of a hole of a work, a processing time calculation unit 13 to calculate a correspondence relation between the command rotational speed of the main spindle A1 and a processing time that the main spindle A1 requires to achieve the rotation amount on the basis of the acceleration/deceleration characteristic information I1 and the rotation amount information I2, and a speed determination part 14 to determine an optimum value of the command rotational speed of the main spindle A1 so as to minimize a processing time on the basis of the correspondence relation calculated by the processing time calculation unit 13. |