Patent attributes
A controller of a machine tool includes: a position command calculation unit which calculates a position command for relatively moving a workpiece and a tool; an oscillation operation execution determination unit which analyzes a machining program and which determines whether or not an oscillation operation of relatively oscillating the workpiece and the tool is performed in a machining block; an oscillation operation intermittent execution determination unit which determines, when it is determined that the oscillation operation is performed, in the machining block, based on the state of the machine tool, whether the oscillation operation is enabled or disabled so as to determine whether or not the oscillation operation is intermittently performed; an oscillation command calculation unit which calculates, when it is determined that the oscillation operation is enabled, an oscillation command for relatively oscillating the workpiece and the tool; and an adder which adds the position command and the oscillation command together.

