Numerical controller

Information

  • Patent Application
  • 20070198125
  • Publication Number
    20070198125
  • Date Filed
    February 21, 2007
    17 years ago
  • Date Published
    August 23, 2007
    17 years ago
Abstract
A numerical controller capable of automatically determining performing/non-performing of specific miscellaneous functions. The specific miscellaneous functions to be performed only when they are called by a macro program are registered in advance. Each time when a macro program call command is read from a program, a call counter having an initial value of “0” is incremented by “1” and each time when a macro program return command is read from the program, the call counter is decremented by “1”. When one of the registered specific miscellaneous function is commanded from the program, such specific miscellaneous function is performed if the value of the call counter has a positive value, and the specific miscellaneous function is inhibited from being performed if the value of the call counter has a value of “0”. The specific miscellaneous function is commanded in a macro program taking an appropriate sequence of operations into account, and thus is properly performed. The command of the specific miscellaneous function without taking the appropriate sequence into account has a possibility of causing a malfunction of the machine when it is performed and thus is inhibited.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a block diagram of a numerical controller according to an embodiment of the present invention; and



FIG. 2 is a flowchart showing an algorism of processing for controlling performing/non-performing of a specific miscellaneous function.


Claims
  • 1. A numerical controller having miscellaneous functions to be performed according to a program, comprising: storage means storing registration of specific miscellaneous functions;discrimination means for discriminating a type of the program in execution when one of the registered specific miscellaneous functions is commanded in the program; andexecution means for selectively performing/not performing the commanded specific miscellaneous function in dependence on the type of the program discriminated by said discrimination means.
  • 2. A numerical controller according to claim 1, wherein the type of the program to be discriminated by said discrimination means is a macro program or a program called by a macro program, and said execution means performs the commanded specific miscellaneous function only when the program in execution is discriminated to be a macro program or a program called in a macro program.
  • 3. A numerical controller according to claim 2, wherein said discrimination means makes an increment of a counter value each time when a macro program calling command is read from the program and makes a decrement of the counter value each time when a macro program return command is read from the program, and discriminates the type of the program in execution based on the counter value when one of the registered specific miscellaneous functions is commanded in the program.
Priority Claims (1)
Number Date Country Kind
044956/2006 Feb 2006 JP national