Patent ID: 9529352
Filing Date: 2016-12-27
CPC Classification: G05B

Claim Text:
1. A numerical control device that controls a position and an orientation of a tool with respect to a workpiece, the tool being one of a plurality of tools mounted on a turret lathe, a mounting angle being different for each of the plurality of tools, the numerical control device comprising: a program reading unit configured to read a machining program for machining of the workpiece; an inclined-surface setting unit configured to set an inclined-surface coordinate system with regard to an inclined surface of the workpiece, wherein the inclined surface is a machining surface tilted with respect to a machine coordinate system used as a reference for position control, an indexing angle is a rotation angle of each of a tool-side rotary axis and a workpiece-side rotary axis where the tool used for machining of the inclined surface is oriented perpendicular to the inclined surface, the tool-side rotary axis is a rotary axis serving as a rotation center of the turret lathe, and the workpiece-side rotary axis is a rotary axis serving as a rotation center of the workpiece; an indexing-angle generating unit configured to receive the inclined-surface coordinate system set by the inclined-surface setting unit, to calculate the indexing angle by using the mounting angle, and to generate a move command that instructs rotation of the tool-side rotary axis and the workpiece-side rotary axis so that the orientation corresponding to the calculated indexing angle is achieved; and a moving-amount calculating unit configured to calculate a moving amount for each control cycle in accordance with the move command, wherein the program reading unit outputs, depending on contents of the machining program, an inclined-surface setting command that instructs setting of the inclined-surface coordinate system, an inclined-surface indexing command that instructs calculation of the indexing angle, and a tool selection command that instructs selection of any one of the plurality of tools as the tool, wherein the inclined-surface setting unit sets the inclined-surface coordinate system in accordance with the inclined-surface setting command output from the program reading unit, and wherein the indexing-angle generating unit calculates, in accordance with the inclined-surface indexing command output from the program reading unit, the indexing angle regarding the tool that is selected in accordance with the tool selection command output from the program reading unit.