PURPOSE: To correct an axis movement command of a PERT program automatically so that the same operation as corrected operation is performed when axis movement for correcting the command track of the PERT program is performed.
CONSTITUTION: A storage part 11 for respective axis movement command blocks stores information specifying a block including an axis movement command. A manual interruption axis movement information storage control part 13 stores information specifying a manual interruption axis movement quantity and the block. A manual interruption axis movement command addition control part 15 takes out the information specifying the block after machining ends, and adds the axis movement quantity corresponding to the information, specifying the block, to the same block of the PERT program after converting it into a manual interruption program command, thereby rewriting the PERT program. A manual interruption axis movement command function generation part 16 generates a function prior to other program commands in the same block to provide a manual interruption program command function.