CPC B23Q 15/12 (2013.01) [G05B 19/40937 (2013.01); G05B 2219/36186 (2013.01)] | 16 Claims |
1. An NC program generation system including a processor, for generating an NC program for turning process of a workpiece by a lathe including a tool, wherein
the processor is configured to:
receive a before-correction NC program, including a plurality of blocks, that does not take a displacement generated on a workpiece during a turning process for turning process on the workpiece into account;
determine, for each of the plurality of blocks, if a movement instruction is included, the movement instruction including information to move the tool in an axial direction of a rotation axis of a fixing unit of the lathe for fixing the workpiece on the lathe;
on a condition that the movement instruction is included, determine whether a movement path of the tool used during the turning process from the movement instruction is greater than a predetermined value;
on a condition that the movement path is greater than the predetermined value, divide the movement path into a plurality of unit paths, and on a condition that the movement path is less than or equal to the predetermined value, the movement path is determined as a unit path;
calculate, for each of the plurality of unit paths and the unit path, a displacement generated on the workpiece at a plurality of machining positions during the turning process;
calculate, on the basis of the displacement generated on the workpiece at the plurality of machining positions, a corrected unit path of the tool used during the turning process,
wherein the corrected unit path includes coordinates in a radial direction;
determine, on the basis of the corrected unit path, a corrected movement path; and
generate an NC program for moving the tool along the determined corrected movement path.
|