Numerical control device
This numerical control device, capable of easily suppressing an increase in processing time, controls the drive axis of a machine tool on the basis of a processing program including a plurality of movement blocks each specifying a command speed, and comprises a target speed setting unit that sets a target speed obtained by, with respect to two movement blocks to be executed continuously, modifying the command speed of the movement block with a lower command speed in a region adjacent to the other movement block to a value equal to or higher than the lower command speed but equal to or lower than the higher command speed.
1 . A numerical control device that controls a drive axis of a machine tool, based on a machining program that includes a plurality of movement blocks each specifying a command speed, the device comprising a processor, the processor being configured to:
set a target speed acquired by, with respect to two of the movement blocks to be executed consecutively, modifying the command speed of a movement block with a lower command speed in a region adjacent to the other movement block to a value equal to or higher than the lower command speed but equal to or lower than a higher command speed; and
generate a command value such that a speed of the drive axis does not exceed the target speed and adheres to a speed control constraint on at least one of N-th derivative elements of the speed of the drive axis or N-th derivative elements of a composite speed of a plurality of drive axes (where N is any natural number).
2 . The numerical control device according to claim 1 , wherein the processor is further configured to change a distance width or a time width of the adjacent region, based on a difference in the command speed of the two movement blocks to be executed consecutively.
3 . The numerical control device according to claim 2 , wherein the processor is further configured to set the distance width or the time width of the adjacent region, based on a difference in the command speed of the two movement blocks to be executed consecutively and the speed control constraint.
4 . The numerical control device according to claim 1 , wherein the processor is further configured to set the distance width or the time width of the adjacent region to a preset width.