Patent ID: 8831768

Claim:
A numerical control device for machining, based on a machining program, a workpiece fixed to a table using a machine tool having a plurality of linear movement axes and at least one rotational movement axis for turning the table, the device comprising: a processor configured to: read an interpolation command included in the machining program; determine whether a coordinate-system transformation command, for transforming the interpolation command from an interpolation command in a non-machine coordinate system into an interpolation command in a machine coordinate system, is attached to the read interpolation command; obtain, in response to determining that the coordinate-system transformation command is not attached to the read interpolation command, a first movement amount corresponding to each of the movement axes in accordance with the read interpolation command; transform, in response to determining that the coordinate-system transformation command is attached to the read interpolation command, the read interpolation command into an interpolation command in the machine coordinate system, to obtain a second movement amount corresponding to each of the movement axes in accordance with the transformed interpolation command; and drive a servo motor corresponding to each of the movement axes based on the first movement amount or the second movement amount, wherein the processor is configured to transform a start-point coordinate and an end-point coordinate in the non-machine coordinate system included in the read interpolation command, to which the coordinate-system transformation command is attached, into a start-point coordinate and an end-point coordinate in the machine coordinate system, respectively.