JPH09222911A - Method for diagnosing fault for nc machine tool and device therefor - Google Patents

Method for diagnosing fault for nc machine tool and device therefor

Info

Publication number
JPH09222911A
JPH09222911A JP5413896A JP5413896A JPH09222911A JP H09222911 A JPH09222911 A JP H09222911A JP 5413896 A JP5413896 A JP 5413896A JP 5413896 A JP5413896 A JP 5413896A JP H09222911 A JPH09222911 A JP H09222911A
Authority
JP
Japan
Prior art keywords
program
failure
failure diagnosis
function control
machine tool
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5413896A
Other languages
Japanese (ja)
Inventor
Ikuo Harada
郁雄 原田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Makino Milling Machine Co Ltd
Original Assignee
Makino Milling Machine Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Makino Milling Machine Co Ltd filed Critical Makino Milling Machine Co Ltd
Priority to JP5413896A priority Critical patent/JPH09222911A/en
Publication of JPH09222911A publication Critical patent/JPH09222911A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To eliminate necessity to change a fault diagnostic program even when any function control program is added or changed. SOLUTION: Based on a fault generate signal to be outputted when any fault is generated at an NC machine tool 7, a fault diagnostic processing part 13 receives a fault diagnostic program 25 from a program storage part 11 and starts executing this program and, according to a combination list, part programs consisting of a function control program 1 under operating are retroactively executed based on the combination list so that the operation of a most significant main program is stopped. At the same time, a fault number and a fault level are read from the part program and, corresponding to these fault number and fault level, fault diagnostic processing is performed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、NC工作機械およ
びその付属装置で発生した故障を診断するNC工作機械
の故障診断方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an NC machine tool failure diagnosing method and apparatus for diagnosing a failure occurring in an NC machine tool and its accessory device.

【0002】[0002]

【従来の技術】一般にNCフライス盤、マシニングセン
タ、NC放電加工機などのNC工作機械は、NC工作機
械の機能を制御する機能制御プログラムが予め記憶さ
れ、NC工作機械の動作を制御している。そのNC工作
機械の動作の故障を診断するための故障診断プログラム
も記憶されており、故障診断が自動的に行われるように
なっている。この故障診断プログラムは機能制御プログ
ラムと1対1に対応した故障診断を行っていた。そのた
めに、機能制御プログラムに追加、変更があると故障診
断プログラムも追加、変更しなければならなかった。例
えば、特開平6−110508号公報には、生産ライン
で発生した故障の原因を画面を見ながら容易に究明でき
る生産管理装置が開示されている。この生産管理装置
は、故障発生認識手段によって故障の発生が認識された
場合に、故障の内容がグループ別に階層構造化されてい
る最上位のノードをオンさせて、通常は故障発生の有無
を最上位のノードのオン、オフ状態によって判別し、オ
ン状態のノードをその階層構造の末端に向かって順に辿
り、故障の原因を究明するものである。つまり、制御プ
ログラムに対応した故障内容がグループ別に階層構造化
されているので、全ての故障内容の情報を検索しなくて
も、故障の原因が究明できるものである。
2. Description of the Related Art Generally, an NC machine tool such as an NC milling machine, a machining center or an NC electric discharge machine has a function control program for controlling the function of the NC machine tool stored therein in advance to control the operation of the NC machine tool. A failure diagnosis program for diagnosing a failure in the operation of the NC machine tool is also stored, and the failure diagnosis is automatically performed. This failure diagnosis program carries out failure diagnosis in a one-to-one correspondence with the function control program. Therefore, when the function control program is added or changed, the failure diagnosis program must be added or changed. For example, Japanese Unexamined Patent Publication No. 6-110508 discloses a production management device that can easily find the cause of a failure that has occurred in a production line while looking at a screen. When the failure occurrence recognizing means recognizes the occurrence of a failure, this production control device turns on the highest-level node in which the details of the failure are hierarchically organized by group, and normally determines whether or not the failure has occurred. It is determined by the ON / OFF state of the upper node, and the nodes in the ON state are sequentially traced toward the end of the hierarchical structure to investigate the cause of the failure. In other words, since the failure content corresponding to the control program is hierarchically structured for each group, the cause of the failure can be clarified without searching for all the failure content information.

【0003】[0003]

【発明が解決しようとする課題】前述の従来の技術に記
載した技術をNC工作機械に適用すると、NC工作機械
の機能制御プログラムと故障診断プログラムとは1対1
に対応させて作成する必要があり、機能制御プログラム
に追加、変更があると故障診断プログラムも追加、変更
しなければならないので、故障診断プログラムの追加、
変更に手間がかかるという問題があった。また、特開平
6−110508号公報の技術も機能制御プログラムを
変更すると故障内容の階層構造も変更しなければならな
いので、これも故障診断プログラムの追加、変更に手間
がかかってしまうという問題があった。
When the technique described in the above-mentioned conventional technique is applied to an NC machine tool, the function control program and the failure diagnosis program of the NC machine tool have a one-to-one correspondence.
It is necessary to create it according to the above, and if there is a change or addition to the function control program, the failure diagnosis program must also be added or changed.
There was a problem that it took time to change. Also, in the technique disclosed in Japanese Patent Laid-Open No. 6-110508, when the function control program is changed, the hierarchical structure of the failure content also has to be changed, which also causes a problem that it takes time to add and change the failure diagnosis program. It was

【0004】そこで上述の問題点に鑑みて、本発明は機
能制御プログラムの追加、変更があっても故障診断プロ
グラムを変更する必要がなく、機能制御プログラムを構
成するパートプログラムから故障番号と故障レベルの両
方、またはそのどちらか一方を読み取り、その故障番
号、故障レベルに応じて故障診断処理を行うNC工作機
械の故障診断方法および装置を提供することを目的とす
る。
In view of the above problems, the present invention eliminates the need to change the failure diagnosis program even if the function control program is added or changed, and the failure number and the failure level can be selected from the part programs constituting the function control program. It is an object of the present invention to provide a NC machine tool failure diagnosis method and apparatus that reads both or both of them and performs failure diagnosis processing according to the failure number and failure level.

【0005】[0005]

【課題を解決するための手段】上記課題を解決するため
に本発明は、NC工作機械およびその付属装置で発生し
た故障を診断するNC工作機械の故障診断方法におい
て、前記NC工作機械の機能毎に作成された複数の機能
制御プログラムと、前記機能制御プログラムを構成する
複数のパートプログラムの組合せをパートプログラムの
動作順に示した組合せリストと、故障発生時に故障診断
処理を行う故障診断プログラムとを予め記憶し、前記N
C工作機械で故障が発生したときに出力される故障発生
信号に基づいて前記故障診断プログラムの実行を開始さ
せ、前記故障診断プログラムによって、動作中の機能制
御プログラムからプロセス番号を読み取り、そのプロセ
ス番号に対応した組合せリストに従ってパートプログラ
ムを遡って、パートプログラムの最上位にあるメインプ
ログラムの動作を停止するとともに、前記パートプログ
ラムから故障番号および故障レベルの少なくとも一方の
読み取りを行い、前記故障診断プログラムで読み取った
故障番号、故障レベルに応じて、機能制御プログラムの
動作を続行させる、作業者の指示を待つ、停止させるな
どの故障診断処理を行うようにしたNC工作機械の故障
診断方法を提供する。
In order to solve the above-mentioned problems, the present invention provides an NC machine tool failure diagnosis method for diagnosing a failure that has occurred in an NC machine tool and its accessory device. In advance, a plurality of function control programs, a combination list showing a combination of a plurality of part programs constituting the function control program in the order of operation of the part programs, and a failure diagnosis program for performing failure diagnosis processing when a failure occurs in advance. Remember, the N
C. Execution of the failure diagnosis program is started based on a failure occurrence signal output when a failure occurs in the machine tool, the process code is read from the function control program in operation by the failure diagnosis program, and the process number is read. The part program is traced back in accordance with the combination list corresponding to, the operation of the main program at the top of the part program is stopped, and at least one of the failure number and the failure level is read from the part program, and the failure diagnosis program Provided is a failure diagnosis method for an NC machine tool which performs a failure diagnosis process such as continuing the operation of a function control program, waiting for an instruction from an operator, or stopping according to the read failure number and failure level.

【0006】また、NC工作機械およびその付属装置で
発生した故障を診断するNC工作機械の故障診断装置に
おいて、前記NC工作機械の機能毎に作成された複数の
機能制御プログラムと、前記機能制御プログラムを構成
する複数のパートプログラムの組合せをパートプログラ
ムの動作順に示した組合せリストと、故障発生時に故障
診断処理を行う故障診断プログラムとを予め記憶する機
能制御プログラム記憶部と、前記NC工作機械で故障が
発生したときに出力される故障発生信号に基づいて前記
故障診断プログラムの実行を開始して、前記故障診断プ
ログラムによって動作中の機能制御プログラムからプロ
セス番号を読み取り、そのプロセス番号に対応した組合
せリストに従ってパートプログラムを遡って、パートプ
ログラムの最上位にあるメインプログラムの動作を停止
させるとともに、前記パートプログラムから故障番号お
よび故障レベルの少なくとも一方の読み取りを行い、そ
の故障番号、故障レベルに応じて、機能制御プログラム
の動作を続行させる、作業者の指示を待つ、停止させる
などの故障診断処理を行う故障診断処理部とを具備した
NC工作機械の故障診断装置が提供される。
Further, in the NC machine tool failure diagnosis apparatus for diagnosing a failure occurring in the NC machine tool and its accessory device, a plurality of function control programs created for each function of the NC machine tool and the function control program. And a function control program storage unit that stores in advance a combination list that shows a combination of a plurality of part programs that make up a part program in the order of operation of the part programs, a failure diagnosis program that performs failure diagnosis processing when a failure occurs, and a failure in the NC machine tool. When the failure diagnosis program is output, the failure diagnosis program is started to execute, the process number is read from the function control program operating by the failure diagnosis program, and the combination list corresponding to the process number is read. According to the top of the part program An instruction by the operator to stop the operation of a certain main program, read at least one of the failure number and the failure level from the part program, and continue the operation of the function control program according to the failure number and the failure level. Provided is a failure diagnosis device for an NC machine tool, which is provided with a failure diagnosis processing unit that performs failure diagnosis processing such as waiting and stopping.

【0007】[0007]

【作用】本発明は、NC工作機械で故障が発生したとき
に出力される故障発生信号に基づいて故障診断処理部で
故障診断プログラムの実行を開始して、動作中の機能制
御プログラムを構成するパートプログラムを組合せリス
トに従って遡り、パートプログラムの最上位にあるメイ
ンプログラムの動作を停止させ、前記パートプログラム
から故障番号と故障レベルの両方、故障番号または故障
レベルの一方の読み取りを行い、その故障番号、故障レ
ベルに応じて故障診断処理を行う。
According to the present invention, the failure diagnosis processing unit starts the execution of the failure diagnosis program based on the failure occurrence signal output when a failure occurs in the NC machine tool, and constitutes the function control program in operation. The part program is traced back in accordance with the combination list, the operation of the main program at the top of the part program is stopped, both the failure number and the failure level, the failure number or one of the failure levels is read from the part program, and the failure number is read. The failure diagnosis processing is performed according to the failure level.

【0008】[0008]

【発明の実施の形態】以下に、本発明の実施の形態につ
いて図面に沿って説明する。図1は、本発明の実施の一
形態を示すNC工作機械の故障診断装置の構成ブロック
図である。図2は、本発明の実施の一形態の故障診断方
法を示すフローチャートである。図3は、本発明の実施
の一形態における機能制御プログラムと故障診断プログ
ラムとの関係の具体例を示す構成ブロック図である。図
4は、本発明の実施の一形態における機能制御プログラ
ムを構成するパートプログラムの組合せと故障診断プロ
グラムとの結合を示した説明図である。図5は、本発明
の実施の形態の表示部への画面表示の一例を示す例示図
である。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a configuration block diagram of a fault diagnosis device for an NC machine tool showing an embodiment of the present invention. FIG. 2 is a flowchart showing the failure diagnosis method according to the embodiment of the present invention. FIG. 3 is a configuration block diagram showing a specific example of the relationship between the function control program and the failure diagnosis program in the embodiment of the present invention. FIG. 4 is an explanatory diagram showing a combination of a combination of part programs forming a function control program and a failure diagnosis program according to the embodiment of the present invention. FIG. 5 is an exemplary diagram showing an example of screen display on the display unit according to the embodiment of the present invention.

【0009】まず、図1を参照して実施の一形態の構成
を説明する。自動プログラミング装置1からNC加工プ
ログラムが出力され、DNC装置3で受け取って工具デ
ータなどの加工に必要な加工データを付け加えてインタ
ーフェース5を介してNC工作機械7にNC加工プログ
ラムおよび加工データを送出して、所望の加工を行うよ
うにしている。DNC装置3の各機能は、プログラム記
憶部11から機能制御プログラム21をDNC装置3に
読み取って、実行することにより動作する。
First, the configuration of one embodiment will be described with reference to FIG. The NC machining program is output from the automatic programming device 1, and the NC machining program and the machining data are sent to the NC machine tool 7 via the interface 5 by adding the machining data such as tool data received by the DNC device 3 to the machining program. The desired processing is performed. Each function of the DNC device 3 operates by reading the function control program 21 from the program storage unit 11 into the DNC device 3 and executing it.

【0010】プログラム記憶部11は、DNC装置3の
機能を制御するための複数の機能制御プログラム21
と、その機能制御プログラム21を構成するパートプロ
グラムの組合せをパートプログラムの動作順に示した組
合せリスト23と、故障が発生したときに故障診断処理
を行う故障診断プログラム25とが記憶されている。機
能制御プログラム21は、DNC装置3の機能毎に作成
され、作業者が操作するために必要な画面を表示するメ
インプログラムと、メインプログラムから指令された機
能を動作させるために組み合わされた複数のパートプロ
グラムとから構成されている。組合せリスト23は、各
機能毎に作成される機能制御プログラム21を構成する
複数のパートプログラムの組合せをパートプログラムの
動作順に示したリストで、それぞれの組合せリストには
プロセス番号が付けられている。
The program storage unit 11 includes a plurality of function control programs 21 for controlling the functions of the DNC device 3.
A combination list 23 showing combinations of part programs constituting the function control program 21 in the order of operation of the part programs, and a failure diagnosis program 25 for performing failure diagnosis processing when a failure occurs are stored. The function control program 21 is created for each function of the DNC device 3, and includes a main program for displaying a screen necessary for an operator to operate and a plurality of combined programs for operating the functions instructed by the main program. It consists of a part program. The combination list 23 is a list showing a combination of a plurality of part programs constituting the function control program 21 created for each function in the order of operation of the part programs, and each combination list is given a process number.

【0011】故障診断処理部13は、プログラム記憶部
11に予め記憶されている故障診断プログラム25を読
み取って、NC工作機械7で故障が発生した場合に出力
される故障発生信号を受けて、故障診断プログラム25
の実行を開始させ、前記故障診断プログラム25によっ
て動作中の機能制御プログラム21からプロセス番号を
読み取り、そのプロセス番号に対応した組合せリスト2
3に従ってパートプログラムを遡って、パートプログラ
ムの最上位にあるメインプログラムの動作を停止させ、
パートプログラムから故障番号および故障レベル、また
はどちらか一方の読み取りを行って、その読み取った故
障番号、故障レベルに応じて機能制御プログラムの動作
を続行させる、作業者の指示を待つ、停止させるなどの
故障診断処理を行う。また、表示部9にはDNC装置3
から作業者が必要な操作をするための画面表示データが
送出されて、操作画面が表示される。
The failure diagnosis processing unit 13 reads a failure diagnosis program 25 stored in advance in the program storage unit 11, receives a failure occurrence signal output when a failure occurs in the NC machine tool 7, and fails. Diagnostic program 25
Is started, the process number is read from the function control program 21 in operation by the failure diagnosis program 25, and the combination list 2 corresponding to the process number is read.
Go back to the part program according to 3 and stop the operation of the main program at the top of the part program,
Read the failure number and / or failure level from the part program, and continue the operation of the function control program according to the read failure number and failure level, wait for the operator's instruction, stop, etc. Perform fault diagnosis processing. The display unit 9 also includes the DNC device 3
The screen display data for the operator to perform the necessary operation is transmitted from the device, and the operation screen is displayed.

【0012】故障診断処理部13で実行される故障診断
プログラム25の動作について図2を参照して説明す
る。DNC装置3またはNC工作機械7で故障が発生し
たときに出力される故障発生信号を受けて(ステップS
1)、その故障発生信号に基づいて故障診断処理部13
で故障診断プログラムの実行を開始する(ステップS
2)。次に、動作中の機能制御プログラムからその機能
制御プログラムのプロセス番号を読み取る(ステップS
3)。プログラム記憶部11からその読み取ったプロセ
ス番号に対応する組合せリスト読み取って、その組合せ
リストに従って機能制御プログラムを構成するパートプ
ログラムを順に遡って、パートプログラムの最上位にあ
るメインプログラムの動作を停止する(ステップS
4)。
The operation of the failure diagnosis program 25 executed by the failure diagnosis processing unit 13 will be described with reference to FIG. In response to a failure occurrence signal output when a failure occurs in the DNC device 3 or the NC machine tool 7 (step S
1), the failure diagnosis processing unit 13 based on the failure occurrence signal
To start executing the failure diagnosis program (step S
2). Then, the process number of the function control program is read from the operating function control program (step S
3). The combination list corresponding to the read process number is read from the program storage unit 11, the part programs forming the function control program are traced back in order according to the combination list, and the operation of the main program at the top of the part programs is stopped ( Step S
4).

【0013】次に、直前に動作していた機能制御プログ
ラムのパートプログラムから故障番号および故障レベ
ル、またはどちらか一方を読み取る(ステップS5)。
その読み取った故障番号、故障レベルによって、機能制
御プログラムの動作をそのまま続行する、作業者の指示
を待つ、停止させるなどの故障診断処理を行う(ステッ
プS6)。また、機能制御プログラムのプロセス番号か
ら機能制御プログラム名称を読み取り(ステップS
7)、読み取った機能制御プログラム名称、ステップS
5で読み取った故障番号および故障レベルを表示部9に
表示する(ステップS8)。
Next, the failure number and / or the failure level is read from the part program of the function control program that was operating immediately before (step S5).
Depending on the read failure number and failure level, failure diagnosis processing such as continuing the operation of the function control program as it is, waiting for an operator's instruction, or stopping is performed (step S6). The function control program name is read from the process number of the function control program (step S
7), read function control program name, step S
The failure number and the failure level read in 5 are displayed on the display unit 9 (step S8).

【0014】機能制御プログラム21の具体例としてD
NC装置3のファイル読み取り機能の構成を図3に示
す。このファイル読み取り機能を構成するメインプログ
ラムおよびパートプログラムは、DNC画面表示プログ
ラム211、状態チェックプログラム212、ファイル
オープンプログラム213、ファイル読み取りプログラ
ム214からなる。まず、DNC画面表示プログラム2
11が実行されてDNC装置3の操作に必要な操作画面
が表示部9に表示される。この操作画面からファイル読
み取り機能を指令すると、状態チェックプログラム21
2の実行が開始され、DNC装置3の状態チェックを行
う。次に、DNC装置3の状態チェックが完了するとフ
ァイルオープンプログラム213の実行が開始されて、
複数のNC加工プログラムが記憶されているDNC装置
3の記憶装置から指令されたファイルを見つけ出す。指
令されたファイルが見つけ出されて、ファイルオープン
が完了するとファイル読み取りプログラム214の実行
が開始され、指令されたファイルを読み取る。
As a concrete example of the function control program 21, D
The configuration of the file reading function of the NC device 3 is shown in FIG. The main program and the part program constituting this file reading function are composed of a DNC screen display program 211, a status check program 212, a file open program 213, and a file read program 214. First, the DNC screen display program 2
11 is executed, and the operation screen necessary for operating the DNC device 3 is displayed on the display unit 9. When the file reading function is instructed from this operation screen, the status check program 21
2 is started, and the state of the DNC device 3 is checked. Next, when the status check of the DNC device 3 is completed, execution of the file open program 213 is started,
The commanded file is found from the storage device of the DNC device 3 in which a plurality of NC machining programs are stored. When the commanded file is found and the file opening is completed, the execution of the file reading program 214 is started to read the commanded file.

【0015】このファイル読み取り中にファイル読み取
り不可や読み取り形式の不一致などの故障が発生したと
きに、DNC装置3から出力される故障発生信号に基づ
いて故障診断プログラム25の実行を開始する。故障診
断プログラム25は、ファイル読み取り機能制御プログ
ラムのプロセス番号を読み取って、プログラム記憶部1
1に記憶されている組合せリスト23によって、ファイ
ル読み取りプログラム214から順に遡ってDNC画面
表示プログラムの動作を停止させる。次に、ファイル読
み取りプログラム214から故障番号と故障レベルとを
読み取って、故障番号と故障レベルに応じて作業者の指
示を待つ状態とする。また、表示部9には機能制御プロ
グラム名称、故障番号および故障レベルを表示する。表
示部9に表示される内容については後述する。
When a failure such as file read failure or read format mismatch occurs during this file reading, the failure diagnostic program 25 is started to be executed based on the failure occurrence signal output from the DNC device 3. The failure diagnosis program 25 reads the process number of the file read function control program, and the program storage unit 1
According to the combination list 23 stored in No. 1, the operation of the DNC screen display program is stopped in the order from the file reading program 214. Next, the failure number and the failure level are read from the file reading program 214, and a state is waited for the operator's instruction according to the failure number and the failure level. Further, the display unit 9 displays the function control program name, the failure number and the failure level. The contents displayed on the display unit 9 will be described later.

【0016】以上は、ファイル読み取りプログラム21
4が実行されているときに故障が発生した場合について
述べたが、DNC画面表示プログラム211、状態チェ
ックプログラム212、ファイルオープンプログラム2
13の実行中に故障が発生した場合も、図3の破線で示
すように故障診断プログラム25が機能制御プログラム
のプロセス番号を読み取り、そのプロセス番号に対応し
た組合せリストによって順に遡って、DNC画面表示プ
ログラム211を停止させて、故障が発生したときに動
作していたパートプログラムから、故障番号と故障レベ
ルの読み取りを行い、その読み取った故障番号および故
障レベルに応じて作業者の指示待ちや動作の停止などの
故障診断処理を行う。
The above is the file reading program 21.
Although the case where a failure occurred while 4 was being executed was described, the DNC screen display program 211, the status check program 212, the file open program 2
Even when a failure occurs during execution of 13, the failure diagnostic program 25 reads the process number of the function control program as shown by the broken line in FIG. 3, and the sequence is traced back in sequence by the combination list corresponding to the process number, and the DNC screen display is performed. The program 211 is stopped, the failure number and the failure level are read from the part program that was operating when the failure occurred, and the operator waits for an instruction from the operator or the operation according to the read failure number and failure level. Performs failure diagnosis processing such as stopping.

【0017】図4は、機能制御プログラム中のメインプ
ログラムとパートプログラムの結合を示している。各パ
ートプログラムは、それぞれ故障番号と故障レベルを持
っている。また、これらのメインプログラムと各パート
プログラムとのつながりは、各パートプログラムに書か
れている次に動作をつなげるためのパートプログラムの
プログラム番号に基づいて結合されている。まず、メイ
ンプログラムからの指令によってパートプログラム1の
実行が開始され、パートプログラム1の動作が完了する
とパートプログラム2の実行が開始されて、パートプロ
グラム2の動作が完了するとパートプログラム3の実行
が開始される。例えば、パートプログラム3の動作中に
故障が発生したとき、故障診断プログラムはパートプロ
グラム3に結合してパートプログラムを順に遡って、メ
インプログラムを停止させて、パートプログラム3から
故障番号と故障レベルとを読み取り、故障診断プログラ
ムで故障診断処理を行っている。
FIG. 4 shows the combination of the main program and the part program in the function control program. Each part program has its own failure number and failure level. Further, the connection between these main programs and each part program is linked based on the program number of the part program for connecting the next operation written in each part program. First, the execution of the part program 1 is started by a command from the main program, the execution of the part program 2 is started when the operation of the part program 1 is completed, and the execution of the part program 3 is started when the operation of the part program 2 is completed. To be done. For example, when a failure occurs during the operation of the part program 3, the failure diagnosis program is linked to the part program 3, the part programs are traced back in order, the main program is stopped, and the failure number and the failure level are output from the part program 3. Is read and the failure diagnosis processing is performed by the failure diagnosis program.

【0018】図5に、表示部9の故障診断画面の一例を
示す。故障診断画面には、機能制御プログラムのプロセ
ス番号から見つけ出したプログラム名称を表示する機能
制御プログラム名称表示部91と、機能制御プログラム
のパートプログラムから読み取った機械の故障に対応し
た故障番号を表示する故障番号表示部92と、故障レベ
ルを表示する故障レベル表示部93とがある。この故障
レベルとしては、無視、注意、警告、中止などが表示さ
れる。また、故障の原因となったリミットスイッチ、ソ
レノイドなどのアクチュエータの名称やプログラムの中
断原因をメッセージとしてメッセージ表示部94に表示
する。また、これらの条件によって作業者がその後の処
理をどのようにするかを選択するためのソフトキーでな
る後処理選択スイッチ95が設けられている。また、故
障番号に対応した故障の詳細と復旧方法または対処方法
が記憶されていて、作業者が必要に応じて参照できるよ
うになるヘルプスイッチ96が設けられている。
FIG. 5 shows an example of the failure diagnosis screen of the display unit 9. On the failure diagnosis screen, a function control program name display section 91 that displays the program name found from the process number of the function control program, and a failure that displays the failure number corresponding to the machine failure read from the part program of the function control program There are a number display section 92 and a failure level display section 93 for displaying the failure level. As the failure level, ignore, caution, warning, stop, etc. are displayed. In addition, the name of the actuator such as the limit switch or solenoid that caused the failure and the cause of the interruption of the program are displayed on the message display unit 94 as a message. Further, a post-processing selection switch 95, which is a soft key for the operator to select how to perform subsequent processing according to these conditions, is provided. Further, a help switch 96 is provided in which details of the failure corresponding to the failure number and a recovery method or a coping method are stored so that the operator can refer to the information when necessary.

【0019】また、DNC装置3の機能は加工スケジュ
ール機能、データ通信、状態モニタなどがあり、プログ
ラム記憶部11にはそれらそれぞれの機能毎に機能制御
プログラム21が複数個記憶されている。他の実施の形
態として、例えば、NC工作機械の自動工具交換機能の
動作中に工具交換アームの動作が一定時間内に完了しな
かったために故障となってしまった場合、工具交換機能
の機能制御プログラムを構成する複数のパートプログラ
ムで、交換アームの動作を制御しているパートプログラ
ムから順に遡って、工具交換機能の動作を停止して直前
に動作していたパートプログラムから故障番号および故
障レベルを読み取って、その故障番号、故障レベルなど
を表示部に表示して、作業者が故障内容を確認できる。
このように本発明の故障診断処理は、NCNC工作機械
の他の故障診断にも汎用的に適用できるものである。
The functions of the DNC device 3 include a machining schedule function, data communication, a state monitor, etc., and the program storage unit 11 stores a plurality of function control programs 21 for each of these functions. As another embodiment, for example, when the automatic tool change function of the NC machine tool is in operation and the operation of the tool change arm has not been completed within a certain period of time, which causes a failure, the function control of the tool change function is performed. In the multiple part programs that make up the program, trace back in order from the part program that controls the operation of the exchange arm, stop the operation of the tool change function, and then specify the failure number and failure level from the part program that was operating immediately before. The operator can check the details of the failure by reading it and displaying the failure number and failure level on the display unit.
As described above, the failure diagnosis processing of the present invention can be generally applied to other failure diagnosis of NCNC machine tools.

【0020】[0020]

【発明の効果】以上説明したように、本発明によれば、
機能制御プログラムを構成する各パートプログラムに故
障番号、故障レベルを予め書き込み、故障診断プログラ
ムが故障発生時に動作していたパートプログラムから故
障番号、故障レベルを読み取るとともに、組合せリスト
を順に遡ってパートプログラムの最上位のメインプログ
ラムを検索し、そのメインプログラムの動作を停止させ
るように構成したので、故障に対して標準的な故障診断
が行える。つまり、1つの汎用的な故障診断プログラム
を用意しておけば、機能制御プログラムと1対1に対応
した故障診断プログラムを用意しなくても、全ての機能
制御プログラムの故障診断が同じ方法で行え、故障診断
を実行した時の作業者の操作が統一されて、操作性が向
上する。また、機能制御プログラムを追加、変更すると
きに、故障診断プログラムを変更しなくても各パートプ
ログラムに対応する故障番号と故障レベルとが書かれて
いるので、その故障番号、故障レベルに応じた故障診断
処理が可能となる。すなわち、機能制御プログラムを追
加、変更するときに、故障診断プログラムを変更する必
要がないので、機能制御プログラムの追加、変更するご
とに故障診断プログラムを変更する手間がなくなる。
As described above, according to the present invention,
The failure number and failure level are written in advance in each part program that constitutes the function control program, and the failure number and failure level are read from the part program that was running when the failure diagnostic program occurred, and the combination program is traced back in order. Since the main program of the highest level is searched and the operation of the main program is stopped, standard failure diagnosis can be performed for the failure. In other words, if one general-purpose fault diagnosis program is prepared, the fault diagnosis of all function control programs can be performed in the same way without preparing a fault diagnosis program corresponding to the function control program on a one-to-one basis. The operator's operation when the failure diagnosis is executed is unified, and the operability is improved. Further, when the function control program is added or changed, the failure number and the failure level corresponding to each part program are written without changing the failure diagnosis program. Fault diagnosis processing becomes possible. That is, since it is not necessary to change the failure diagnosis program when adding or changing the function control program, there is no need to change the failure diagnosis program each time the function control program is added or changed.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施の一形態を示すNC工作機械の故
障診断装置の構成ブロック図である。
FIG. 1 is a configuration block diagram of a fault diagnosis device for an NC machine tool showing an embodiment of the present invention.

【図2】本発明の実施の一形態の故障診断方法を示すフ
ローチャートである。
FIG. 2 is a flowchart showing a failure diagnosis method according to an embodiment of the present invention.

【図3】図1における機能制御プログラムと故障診断プ
ログラムとの関係の具体例を示す構成ブロック図であ
る。
FIG. 3 is a configuration block diagram showing a specific example of a relationship between a function control program and a failure diagnosis program in FIG.

【図4】図1における機能制御プログラムを構成するパ
ートプログラムの組合せと故障診断プログラムとの結合
を示した説明図である。
FIG. 4 is an explanatory diagram showing a combination of a combination of part programs constituting the function control program in FIG. 1 and a failure diagnosis program.

【図5】本発明の実施の一形態の表示部への画面表示の
例示図である。
FIG. 5 is a view showing an example of screen display on the display unit according to the embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 自動プログラミング装置 3 DNC装置 5 インターフェース 7 NC工作機械 9 表示部 11 プログラム記憶部 13 故障診断処理部 21 機能制御プログラム 23 組合せリスト 25 故障診断プログラム 1 Automatic Programming Device 3 DNC Device 5 Interface 7 NC Machine Tool 9 Display Unit 11 Program Storage Unit 13 Fault Diagnosis Processing Unit 21 Function Control Program 23 Combination List 25 Fault Diagnosis Program

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 NC工作機械およびその付属装置で発生
した故障を診断するNC工作機械の故障診断方法におい
て、 前記NC工作機械の機能毎に作成された複数の機能制御
プログラムと、前記機能制御プログラムを構成する複数
のパートプログラムの組合せをパートプログラムの動作
順に示した組合せリストと、故障発生時に故障診断処理
を行う故障診断プログラムとを予め記憶し、 前記NC工作機械で故障が発生したときに出力される故
障発生信号に基づいて前記故障診断プログラムの実行を
開始させ、 前記故障診断プログラムによって、動作中の機能制御プ
ログラムからプロセス番号を読み取り、そのプロセス番
号に対応した組合せリストに従ってパートプログラムを
遡って、パートプログラムの最上位にあるメインプログ
ラムの動作を停止するとともに、前記パートプログラム
から故障番号および故障レベルの少なくとも一方の読み
取りを行い、 前記故障診断プログラムで読み取った故障番号、故障レ
ベルに応じて、機能制御プログラムの動作を続行させ
る、作業者の指示を待つ、停止させるなどの故障診断処
理を行うようにしたことを特徴とするNC工作機械の故
障診断方法。
1. A failure diagnosis method for an NC machine tool for diagnosing a failure occurring in an NC machine tool and its accessory device, comprising: a plurality of function control programs created for each function of the NC machine tool; and the function control program. A combination list showing a combination of a plurality of part programs constituting a part program in the order of operation of the part programs and a failure diagnosis program for performing failure diagnosis processing when a failure occurs are stored in advance, and output when a failure occurs in the NC machine tool. The execution of the failure diagnosis program is started based on a failure occurrence signal, the process code is read from the function control program in operation by the failure diagnosis program, and the part program is traced back in accordance with the combination list corresponding to the process number. , The operation of the main program at the top of the part program At the same time as stopping, reading at least one of the failure number and the failure level from the part program, and instructing the operator to continue the operation of the function control program according to the failure number and the failure level read by the failure diagnosis program. A failure diagnosis method for an NC machine tool, characterized by performing a failure diagnosis process such as waiting or stopping.
【請求項2】 NC工作機械およびその付属装置で発生
した故障を診断するNC工作機械の故障診断装置におい
て、 前記NC工作機械の機能毎に作成された複数の機能制御
プログラムと、前記機能制御プログラムを構成する複数
のパートプログラムの組合せをパートプログラムの動作
順に示した組合せリストと、故障発生時に故障診断処理
を行う故障診断プログラムとを予め記憶する機能制御プ
ログラム記憶部と、 前記NC工作機械で故障が発生したときに出力される故
障発生信号に基づいて前記故障診断プログラムの実行を
開始して、前記故障診断プログラムによって動作中の機
能制御プログラムからプロセス番号を読み取り、そのプ
ロセス番号に対応した組合せリストに従ってパートプロ
グラムを遡って、パートプログラムの最上位にあるメイ
ンプログラムの動作を停止させるとともに、前記パート
プログラムから故障番号および故障レベルの少なくとも
一方の読み取りを行い、その故障番号、故障レベルに応
じて、機能制御プログラムの動作を続行させる、作業者
の指示を待つ、停止させるなどの故障診断処理を行う故
障診断処理部と、を具備したことを特徴とするNC工作
機械の故障診断装置。
2. An NC machine tool failure diagnosis apparatus for diagnosing a failure that has occurred in an NC machine tool and its accessory device, wherein a plurality of function control programs created for each function of the NC machine tool and the function control program. And a function control program storage unit that stores in advance a combination list that shows a combination of a plurality of part programs that constitute the part program in the order of operation of the part programs, a failure diagnosis program that performs failure diagnosis processing when a failure occurs, and a failure in the NC machine tool. When the failure diagnosis program is output, the failure diagnosis program is started to execute, the process number is read from the function control program operating by the failure diagnosis program, and the combination list corresponding to the process number is read. And go back to the top of the part program according to The operator is instructed to stop the operation of the main program, read at least one of the failure number and the failure level from the part program, and continue the operation of the function control program according to the failure number and the failure level. A failure diagnosis device for an NC machine tool, comprising: a failure diagnosis processing unit that performs failure diagnosis processing such as waiting and stopping.
【請求項3】 前記故障診断処理部は、さらに動作中の
機能制御プログラムの名称、前記パートプログラムから
読み取った故障番号および故障レベルのうち少なくとも
1つを表示部に表示するようにした請求項2に記載のN
C工作機械の故障診断装置。
3. The fault diagnosis processing unit further displays at least one of a name of a function control program in operation, a fault number read from the part program, and a fault level on the display unit. N described in
C Machine tool failure diagnosis device.
JP5413896A 1996-02-16 1996-02-16 Method for diagnosing fault for nc machine tool and device therefor Pending JPH09222911A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5413896A JPH09222911A (en) 1996-02-16 1996-02-16 Method for diagnosing fault for nc machine tool and device therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5413896A JPH09222911A (en) 1996-02-16 1996-02-16 Method for diagnosing fault for nc machine tool and device therefor

Publications (1)

Publication Number Publication Date
JPH09222911A true JPH09222911A (en) 1997-08-26

Family

ID=12962220

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5413896A Pending JPH09222911A (en) 1996-02-16 1996-02-16 Method for diagnosing fault for nc machine tool and device therefor

Country Status (1)

Country Link
JP (1) JPH09222911A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006218618A (en) * 2005-02-08 2006-08-24 Mikron Agie Charmilles Ag Inspection method of device for working instruments
US11378493B1 (en) 2020-12-24 2022-07-05 Industrial Technology Research Institute Method for motion test and control host of movable machinery
CN115981240A (en) * 2023-03-22 2023-04-18 中科航迈数控软件(深圳)有限公司 Method, device, equipment and medium for determining fault reason of numerical control machine tool
WO2023173692A1 (en) * 2022-03-17 2023-09-21 北京华卓精科科技股份有限公司 Grading control method for workpiece table, system, device, and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006218618A (en) * 2005-02-08 2006-08-24 Mikron Agie Charmilles Ag Inspection method of device for working instruments
US11378493B1 (en) 2020-12-24 2022-07-05 Industrial Technology Research Institute Method for motion test and control host of movable machinery
WO2023173692A1 (en) * 2022-03-17 2023-09-21 北京华卓精科科技股份有限公司 Grading control method for workpiece table, system, device, and storage medium
CN115981240A (en) * 2023-03-22 2023-04-18 中科航迈数控软件(深圳)有限公司 Method, device, equipment and medium for determining fault reason of numerical control machine tool

Similar Documents

Publication Publication Date Title
GB2232514A (en) Programmable controller
US6442436B1 (en) Multi-tasking system, recording medium in which program thereof is recorded, and processing device
EP0171435B1 (en) Numerical control method
EP0089193B1 (en) Method and apparatus for displaying ladder diagrams
JPH0259901A (en) Fault diagnosing system
JP3306832B2 (en) Programmable controller with operator message transmission function
JPH0553641A (en) Screen display method and man-machine interface device for process control system
US6711448B2 (en) Setting display apparatus for a programmable controller
JPH1020921A (en) Numerical controller
JPH103307A (en) Numerical controller
JPH09222911A (en) Method for diagnosing fault for nc machine tool and device therefor
JP4542494B2 (en) Programmable display device, debugging support program, and debugging device control method
US20020173860A1 (en) Integrated control system
US7073124B1 (en) Display drafting apparatus and system therefor
EP0092312B1 (en) Method and apparatus for displaying ladder diagrams
JP2003022109A (en) Numerical controller
KR20010081784A (en) Embroidery machine that has a working save function and embroidery control method of it
JP3170154B2 (en) SFC program development equipment
JP3460747B2 (en) Numerical control unit
JP2002120125A (en) Automatic return system of tool exchange device and method
JP2526935B2 (en) Screen display method for display device for control device
CN111065976A (en) Factory automation system, controller and control method
GB2244828A (en) Programmable controller
JPH0749705A (en) Fault diagnostic system for programmable controller
JPH0863218A (en) Program constitution display system