Patent ID: 7818080

Claim:
In a program writing method of a numerical controller having a written program to command a motion of each of plural axes installed in a cutting machine; said program has a single or plural user set programs calculating a control amount of an identified axis and a single or plural axis driving programs prepared for each axis to be input to said control amount calculated by said user set programs to drive a driving device of each axis; said plural user set programs are independently and in parallel processed where said single or plural user set programs are plural user set programs; each user set program is written to calculate said control amount of single or plural axes identified in random by each user set program, and each axis identified by said user set program is individually identified by only one user set program; and said axis driving program outputs a driving signal to said driving device related to said axis driving program in accordance with said input control amount; said program writing method comprising the steps of: in order to control at least one axis of said controlled axes by plural user set programs, identifying a virtual axis controlled virtually by only one user set program in the second and later user set programs controlling a duplicated axis that is controlled by said plural user set programs; writing said virtual axis in place of said duplicated axis in the second and later user set program; and adding a control amount calculated by said user set program identifying said virtual axis to said correspondent axis driving program as said control amount of said duplicated axis before replacing to said virtual axis.