主权项 |
1. A numerical control device comprising:
a switching unit that switches between a first processing mode in which a first position command for an amplifier, which drives a motor, is generated by performing an interpolation process performed every interpolation cycle and an acceleration/deceleration process on a program command in a program, and a second processing mode in which a position command for the amplifier is generated as a second position command generated every intra-amplifier control cycle by performing an acceleration/deceleration process on a command that is generated every intra-amplifier control cycle, which is a control cycle in the amplifier and is a shorter cycle than the interpolation cycle; a first analysis unit that extracts movement data on a machine tool by analyzing the program command when operating in the first processing mode; an interpolation processing unit that obtains first interpolated data by performing the interpolation process on the movement data when operating in the first processing mode; a second analysis unit that extracts interpolated movement data as second interpolated data by analyzing the program command when operating in the second processing mode; an acceleration/deceleration processing unit that performs the acceleration/deceleration process on the first interpolated data when operating in the first processing mode, and performs the acceleration/deceleration process on the second interpolated data when operating in the second processing mode; and a position command generating unit that generates a first position command for the amplifier by using first interpolated data on which the acceleration/deceleration process is performed when operating in the first processing mode, and generates a second position command for the amplifier by using second interpolated data on which the acceleration/deceleration process is performed when operating in the second processing mode. |