摘要 |
PURPOSE:To simplify a program and to eliminate a program miss by executing a subprogram and machining data in a machining data stored device selectively by a program selection logic circuit when a machining program is executed. CONSTITUTION:The machining program which has a main program and the subprogram is stored in a numerical controller. Machining depth other than standard depth is stored in a memory 4 and the standard machining depth is stored in a memory 5. A decision circuit 1 judges the end of the subroutine under the command of M99 and its decision output is inputted to AND gates 14, 15, and 16 through an inverter 17. A counter 2 counts the number A of times of machining by the subprogram accessed in the center drill machining of a command G81 or the tap machining, etc., of a command G84. When (i) set by a decision device 3 matches with the contents A of the counter 2, the machining depth different from the standard machining depth is read out of the memory 4 and when it is not the set value (i), the standard machining depth is read out of the memory 5. Thus, a program miss is eliminated.
|