Machine tool control device
Provided is a machine tool control device that makes it possible to alleviate shock generated in a machine tool during an oscillation cutting process. A control device 1 for a machine tool that carries out a process by relatively oscillating a tool and a workpiece is provided with: an oscillation command generation unit 13 that generates an oscillation command on the basis of an oscillation condition; an oscillation start/end determination unit 14 that determines start/end of oscillation on the basis of the oscillation command; and a position speed control unit 18 that relatively oscillates the tool and the workpiece on the basis of a superimposed command generated by superimposing the oscillation command on a moving command according to a determination result of the oscillation start/end determination unit 14 . The oscillation start/end determination unit 14 determines start/end of oscillation when the absolute value of the oscillation command is no greater than a predetermined value.
1 . A control device for a machine tool that performs machining while causing a tool and a workpiece to oscillate relative to each other, the control device comprising a processor configured to perform:
generating an oscillation command based on an oscillation condition;
determining a start/end of oscillation based on the oscillation command;
causing the tool and the workpiece to oscillate relative to each other based on a superimposition command generated by superimposition of the oscillation command on a movement command according to a result of determination; and
determining the start/end of oscillation in a case where an absolute value of the oscillation command is a specified value or less, and determining a timing of start/end of oscillation such that an amount of deviation of the timing of start/end of oscillation determined, from a timing of a start/end of oscillation specified by a machining program is within a predetermined range.
2 . The control device for the machine tool according to claim 1 , wherein the processor is configured to further perform:
calculating an oscillation amplitude based on the oscillation condition;
calculating the oscillation command based on the oscillation amplitude; and
determining the start/end of oscillation based on the oscillation amplitude.
3 . The control device for the machine tool according to claim 1 , wherein the processor is configured to further perform:
calculating an oscillation phase based on the oscillation condition;
generating the oscillation command based on the oscillation phase; and
determining the start/end of oscillation based on the oscillation phase.
4 . The control device for the machine tool according to claim 1 , wherein the processor is configured to further perform determining the start/end of oscillation at an oscillation phase at which the oscillation command is 0.
5 . The control device for the machine tool according to claim 1 , wherein the processor is configured to further perform determining that oscillation starts in a case where the start of oscillation is notified by an external signal and a predetermined oscillation start condition is satisfied, and determining that oscillation ends in a case where the end of oscillation is notified by an external signal and a predetermined oscillation end condition is satisfied.
6 . The control device for the machine tool according to claim 1 , wherein the processor is configured to further perform calculating a superimposition command compensation amount based on the superimposition command and compensating the superimposition command by addition of the calculated compensation amount to the superimposition command.