Patent attributes
To provide a control device for a machine tool capable of performing thread cutting while reducing the load on the machine tool from the oscillating operation, without extending the cycle time, and capable of reliably shredding chips in a case of performing the non-oscillating operation in the present pass after the oscillating operation in the previous pass. A control device for a machine tool includes: an oscillating operation execution determination unit that determines whether to execute an oscillating operation that causes the cutting tool to oscillate in the radial direction of the workpiece; an oscillation command generation unit that generates an oscillation command of the oscillating operation based on a determination result; a control unit that superimposes the oscillation command on a position command of the feed axis to generate a drive command. The oscillating operation execution determination unit determines to intermittently execute the oscillating operation, and the oscillation command generation unit generates an oscillation command so that a non-oscillating cutting portion of a present pass includes a portion at which oscillating cutting was performed in a previous pass, or so that an oscillating cutting portion of the present pass includes a portion at which non-oscillating cutting was performed in the previous pass.

