JPH03214301A - Fault diagnostic method for numerical controller - Google Patents

Fault diagnostic method for numerical controller

Info

Publication number
JPH03214301A
JPH03214301A JP2010028A JP1002890A JPH03214301A JP H03214301 A JPH03214301 A JP H03214301A JP 2010028 A JP2010028 A JP 2010028A JP 1002890 A JP1002890 A JP 1002890A JP H03214301 A JPH03214301 A JP H03214301A
Authority
JP
Japan
Prior art keywords
ladder program
output signal
signal
input signal
designated
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
JP2010028A
Other languages
Japanese (ja)
Inventor
Masuo Ogura
小倉 万寿夫
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.)
Fanuc Corp
Original Assignee
Fanuc Corp
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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP2010028A priority Critical patent/JPH03214301A/en
Publication of JPH03214301A publication Critical patent/JPH03214301A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain the labor saving of a fault recovery work and to shorten its time by storing in advance a ladder program of a PMG (programmable machine controller) in a memory, executing the ladder program by varying an input signal of this ladder program one by one and operating a designated output signal. CONSTITUTION:When a fault is generated in a numerical controller 10 having a PC (programmable controller), which output signal does not operate is designated. Also, an internal signal of the PC is stored in a memory 13 in advance, and in order to specify an input signal for giving a variation to a designated output signal designated previously (that is, the designated output signal is operated), a ladder program is executed. Also, as a means for checking an abnormal input signal, whenever one piece of ladder program input signal is varied, a cycle of the ladder program is executed several times. In the same way, it is executed until the designated output signal operates, and the abnormal input signal is displayed on a fault diagnostic screen. In such a way, the labor saving of a fault recovery work is attained and its time can be shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は数値制御装置の故障診断方法に関し、特にメモ
リに格納したPC(プログラマブル・コントローラ)の
内部信号をシミュレートすることにより故障を診断する
数値制御装置の故障診断方法に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a method for diagnosing a failure of a numerical control device, and in particular a method for diagnosing a failure by simulating internal signals of a PC (programmable controller) stored in a memory. The present invention relates to a method for diagnosing a failure of a numerical control device.

〔従来の技術〕[Conventional technology]

数値制御装置の故障の際に、故障箇所を特定するには制
御装置及び機械の構成を充分に熟知している者が、どの
出力信号が動作しなかったかを調べ、この出力信号に関
連する入力信号を一つ一つ検討する必要がある。したが
って、迅速に故障を修理するには優秀な技術者を必要と
する。
In the event of a failure in a numerical control device, in order to identify the location of the failure, a person who is fully familiar with the configuration of the control device and machine should check which output signal did not operate and identify the input related to this output signal. It is necessary to consider each signal one by one. Therefore, excellent technicians are required to quickly repair failures.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかし、従来の数値制御装置の故障診断方法では、技術
者がラダープログラムを読みながらどの入力信号が原因
で出力信号が動作しなかったかを調べていた。この方法
では技術者の熟練と感に頼る部分が多く、修理に要する
時間もバラソヰ、かつ修理後の信頼性の点でも万全でな
いという問題がある。
However, in the conventional failure diagnosis method for numerical control devices, engineers read a ladder program to determine which input signal caused the output signal to malfunction. This method relies heavily on the skill and intuition of the technician, and there are problems in that the time required for repair varies, and the reliability after repair is not perfect.

本発明はこのような点に鑑みてなされたものであり、メ
モリに格納したPCの内部信号をシミュレートすること
により故障を診断する数値制御装置の故障診断方法を提
供することを目的とする。
The present invention has been made in view of these points, and an object of the present invention is to provide a method for diagnosing a failure of a numerical control device by simulating internal signals of a PC stored in a memory.

〔課題を解決するための手段〕[Means to solve the problem]

本発明では上記課題を解決するために、PC(プログラ
マブル・コントローラ)を有する数値制御装置の故障診
断方法において、故障発生時に前記PCの内部信号をメ
モリに格納し、指定された指定信号に関連する前記PC
内のラグプログラムの関連信号を1個毎に変化させて、
前記ラダープログラムを実行し、前記指定信号が変化す
るまで、前記のラダープロクラムを実行し、前記指定信
号が変化したときに、変化させた関連信号を表示画面に
表示し、異常信号を発見して、故障診断を行う数値制御
装置の故障診断方法が、提供される。
In order to solve the above-mentioned problems, the present invention provides a fault diagnosis method for a numerical control device having a PC (programmable controller). The PC
By changing the related signals of the lag program in each one,
The ladder program is executed until the specified signal changes, and when the specified signal changes, the changed related signal is displayed on a display screen, and an abnormal signal is detected. , a method for diagnosing a failure of a numerical control device is provided.

〔作用〕[Effect]

PCを有する数値制御装置において、故障が発生した時
にどの出力信号が動作しないかを指定する。また、PC
の内部信号をメモリに格納しておき、先に指定した指定
出力信号に変化(すなわち、指定出力信号を動作させる
)を与える入力信号を特定するためにラダープログラム
を実行させる。
In a numerical control device having a PC, specify which output signal does not operate when a failure occurs. Also, PC
The internal signals of are stored in a memory, and a ladder program is executed to specify an input signal that causes a change in the previously designated designated output signal (that is, causes the designated output signal to operate).

異常人力信号を調べる手段として、ラダープログラム入
力信号を1個変化させる毎にラダープログラl、のサイ
クルを数回実行させる。同様にして、指定出力信号が動
作するまで行い、異常入力信号を故障診断用画面に表示
させる。
As a means for checking abnormal human input signals, the ladder program I is executed several times each time the ladder program input signal changes by one. The process is repeated in the same manner until the specified output signal is activated, and the abnormal input signal is displayed on the failure diagnosis screen.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面に基づいて説明する。 Hereinafter, one embodiment of the present invention will be described based on the drawings.

第4図は本発明を実施するための数値制御装置のハード
ウエアのブロック図である。図において、数値制御装置
プロセッサ11は数値制御装置10全体を制御する。P
MC (プログラマブル・マシン・コントローラ)プロ
セッサ12は、Mi能、S機能、T機能等の指令を受け
て、ラダー用メモリ13に格納されたラダープログラム
によってこの指令を解読処理し、工作機械20を制御す
る出力信号を出力回路18から出力する。また、工作機
械20側からのリミットスイッチ信号(人力信号)ある
いは機械操作盤からのスイッチ信号(入力信号)を受け
て、ラダープログラムで処理し、工作機械20側を制御
する出力信号を出力する。
FIG. 4 is a block diagram of the hardware of a numerical control device for implementing the present invention. In the figure, a numerical control device processor 11 controls the entire numerical control device 10. P
The MC (programmable machine controller) processor 12 receives commands such as Mi function, S function, T function, etc., decodes and processes the commands using the ladder program stored in the ladder memory 13, and controls the machine tool 20. An output signal is output from the output circuit 18. It also receives a limit switch signal (human input signal) from the machine tool 20 side or a switch signal (input signal) from the machine operation panel, processes it with a ladder program, and outputs an output signal for controlling the machine tool 20 side.

状態記憶メモリ14はラダー用メモリ13の実行状態の
人出力信号データ等をすべて格納するメモリである。
The state storage memory 14 is a memory that stores all the human output signal data and the like of the execution state of the ladder memory 13.

グラフィック制御回路15は状態記憶メモリ14に格納
されたデータの転送を受けてこのデータを表示信号に変
換し、表示装置16に送り、表示装置16はこれを表示
する。表示装置16はCRT、液晶表示装置等が使用さ
れる。キーボード17は各種のデータを入力するのに使
用される。
The graphic control circuit 15 receives the data stored in the state storage memory 14, converts the data into a display signal, and sends it to the display device 16, which displays it. As the display device 16, a CRT, liquid crystal display, or the like is used. The keyboard 17 is used to input various data.

入出力回路18及び19は工作機械20側との入出力信
号の入出力を行う。すなわち工作機械20側のリミット
スイッチ信号(入力信号)、機械操作盤のスイッチ信号
(人力信号)を受け、これをPMCプロセッサ12が読
み取る。図では入力信号の発信源の例としてスイッチ2
2を表している。また、工作機械20側の空圧アクチュ
エイタ等を制御する出力信号をPMCプロセッサI2か
ら受けて、工作機械20側に出力する。図では出力信号
の制御対象の例としてリレー21を表している。
The input/output circuits 18 and 19 input and output input/output signals to and from the machine tool 20 side. That is, the PMC processor 12 receives limit switch signals (input signals) from the machine tool 20 and switch signals (human input signals) from the machine operation panel, and reads them. In the figure, switch 2 is an example of the input signal source.
It represents 2. It also receives an output signal for controlling the pneumatic actuator and the like on the machine tool 20 side from the PMC processor I2 and outputs it to the machine tool 20 side. In the figure, a relay 21 is shown as an example of an object to be controlled by the output signal.

上記説明では本発明に直接関係するハードウエアのブロ
ックのみを説明し、システムプログラムが格納されてい
るROMメモリや電源切断後も保存すべきデータを格納
している不揮発性メモリ等は省略してある。
In the above explanation, only the hardware blocks directly related to the present invention are explained, and the ROM memory where the system program is stored and the non-volatile memory where the data that should be saved even after the power is turned off are omitted. .

第2図は本発明の一実施例における故障診断方法の説明
用ラダープログラムである。図において、左端の数字は
プログラムの行番号を表し、MOO〜MO5及びMO 
QC−MO 2C,SPF,SPV,MFINは信号名
称を表している。また、右端の備考には各行の動作を記
してある。
FIG. 2 is a ladder program for explaining a fault diagnosis method in an embodiment of the present invention. In the figure, the numbers at the left end represent the line numbers of the program, including MOO to MO5 and MO
QC-MO 2C, SPF, SPV, and MFIN represent signal names. In addition, the notes on the right side describe the operation of each line.

例として、ラダープログラムの実行により、M機能によ
る機械側の制御を行ったところ、M完了(MFIN)の
出力信号(Go.l)が動作しなかったとする。アドレ
スGはPMCから数値制御装置(NC)への出力信号を
表す。異常人力信号の発見手段として、数値制御装置(
 N C )からのM磯能指令である入力信号MOOの
状態を反転させる。次に、ラダープログラムのサイクル
を数回実行する。同様に入力信号M O D Cを変化
させてラダープログラ1・を実行し、続いて人力信ヒM
O1を変化さけてラダープログラムを実行する。このよ
うに、人力信号を順次変化させ、その都度ラダープログ
ラムのザイクルを数回実行する。m+3行目のSPFを
変化させてラダープログラムのサイクルの実行を行った
ところ、MFINが動作したとすれば、求める異常人力
信号はXlO.1である。アドレスXは機械側からPM
Cへの入力信号を表す。以上説明したように、指定出力
信号が勧作するまで入力信号を一つづつ変化させながら
ラダープログラムのサイクルを数回実行し、指定出力信
号を動作させた人力信号を発見するのである。
As an example, assume that when the machine side is controlled by the M function by executing the ladder program, the M completion (MFIN) output signal (Go.l) does not operate. Address G represents an output signal from the PMC to the numerical controller (NC). A numerical control device (
The state of the input signal MOO, which is the M Isono command from N C ), is inverted. Next, run the ladder program cycles several times. In the same way, change the input signal M O D C and execute ladder program 1.
Execute the ladder program while avoiding changing O1. In this way, the human input signal is sequentially changed, and cycles of the ladder program are executed several times each time. If the ladder program cycle is executed by changing the SPF at line m+3, and if MFIN operates, the abnormal human power signal to be sought is XlO. It is 1. Address X is PM from the machine side
represents the input signal to C. As explained above, the ladder program cycle is executed several times while changing the input signals one by one until the specified output signal is activated, and the human input signal that activated the specified output signal is discovered.

第3図は本発明の一実施例における故障診断用画面であ
る。この故障診断用画面1は故障発生時に数値制御装置
10の表示装置16から選択された画面である。ソフト
キー(例えばメモリ転送キー)を押すと、グラフィック
制御回路15は状態記憶メモリ14格納されたデータを
表示信号に変換し、表示装置16に送り、表示装置16
はこれを故障診断用画面として表示する。
FIG. 3 is a failure diagnosis screen in one embodiment of the present invention. This fault diagnosis screen 1 is a screen selected from the display device 16 of the numerical control device 10 when a fault occurs. When a soft key (for example, a memory transfer key) is pressed, the graphics control circuit 15 converts the data stored in the state storage memory 14 into a display signal and sends it to the display device 16.
displays this as a fault diagnosis screen.

数値制御装置プロセッサ11と.PMCプロセッサ12
の制御のもとで、指定出力信号を動作させる異常人力信
号が発見されると関連情報は故障診断用画面に表示され
る。表示例を次に示す。
Numerical controller processor 11 and . PMC processor 12
Under the control of the system, when an abnormal human input signal that activates a specified output signal is discovered, related information is displayed on a fault diagnosis screen. A display example is shown below.

指定出力信号  MPIN   G0.1異常人力信号
  SPF    X10.1指定出力信号:故障時に
動作しなかった出力信号MFIN:M完了信号 Go.1:PMCから数値制御装置への出力信号異常入
力信号:指定出力信号を動作させる入力信号 SPF :主軸時計方向回転信号 X10.1:PMCから機械側への出力信号第1図(a
)及び(b)は本発明の数値制御装置の故障診断方法フ
ローチャートである。図において、Sに続く数値はステ
ップ番号を示す。
Designated output signal MPIN G0.1 Abnormal human power signal SPF X10.1 Designated output signal: Output signal that did not operate at the time of failure MFIN: M completion signal Go. 1: Abnormal output signal from the PMC to the numerical control device Input signal: Input signal that operates the specified output signal SPF: Spindle clockwise rotation signal X10.1: Output signal from the PMC to the machine side Figure 1 (a
) and (b) are flowcharts of a method for diagnosing a failure of a numerical control device according to the present invention. In the figure, the number following S indicates the step number.

〔S1〕故障が発生し、出力信号が動作しない。[S1] A failure occurs and the output signal does not operate.

〔S2〕数値制御装置の表示装置から故障診断用画面を
選択する。
[S2] Select a failure diagnosis screen from the display device of the numerical control device.

〔53〕表示装置の故障診断用画面のソフトキを押し、
状態記憶メモリからラダープログラムのデータを転送さ
せ、グラフィック制御回路を介して故障診断用画面に診
断状況を表示させる。
[53] Press the soft key on the display device fault diagnosis screen,
Ladder program data is transferred from the state storage memory, and the diagnosis status is displayed on the fault diagnosis screen via the graphic control circuit.

〔S4〕キーボードから故障時に動作しない出力信号を
指定する。
[S4] Specify the output signal that will not operate in the event of a failure from the keyboard.

〔S5〕ラダープログラムの入力信号に番号を付けるた
め、最初の番号Nを1とする。
[S5] In order to number the input signals of the ladder program, the first number N is set to 1.

〔S6〕ラダープログラムN=1の入力信号を1なら0
に、または、0なら1に変化させる。
[S6] If input signal of ladder program N=1 is 1, then 0
or, if it is 0, change it to 1.

〔S7〕ラダープログラム入力信号の番号を1増加する
。N=N+1。
[S7] Increase the number of the ladder program input signal by 1. N=N+1.

〔S8〕ラダープログラムのサイクルを数回実行させる
[S8] Execute the ladder program cycle several times.

[S9)S4で指定した指定出力信号が動作したかどう
かを調べ、動作しなければS6に戻る。
[S9] Check whether the specified output signal specified in S4 has operated, and if it has not operated, return to S6.

CS10’J指定出力信号を動作させた異常入力信号を
故障診断画面に表示する。
The abnormal input signal that activated the CS10'J designated output signal is displayed on the fault diagnosis screen.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明では故障時に動作しない出
力信号に関係する異常人力信号を発見するために、PM
Cのラダープログラムをメモリに格納しておき、このラ
ダープログラムの入力信号を一つづつ変化させてラダー
プログラムを実行し指定出力信号を動作甘し約だので、
数値制御装置の故障修復作業において、故障箇所の特定
を自動的に行うことにより故障修復作業の省力化と時間
の短縮がはかられる。
As explained above, in the present invention, PM
Store the C ladder program in memory, change the input signals of this ladder program one by one, run the ladder program, and adjust the specified output signal.
In troubleshooting work for a numerical control device, by automatically identifying the location of the fault, labor and time can be saved in the troubleshooting work.

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

第1図(a)及び(b)は本発明の数値制御装置の故障
診断方法のフローチャート、 第2図は本発明の実施例における故障診断方法の説明用
ラダープログラム、 第3図は本発明の実施例における故障診断用画面、 第4図は本発明を実施するための数値制御装置のハード
ウエアのブロック図である。 1    故障診断用画面 10    数値制御装置 11    0NCプロセッサ 12    PMCプロセッサ ラダー用メモリ 状態記憶メモリ CRT制御装置 表示器 キーボード 出力回路 入力回路 数値制御装置 工作機械 リ レー スイッチ
FIGS. 1(a) and (b) are flowcharts of the failure diagnosis method for a numerical control device of the present invention, FIG. 2 is a ladder program for explaining the failure diagnosis method in an embodiment of the present invention, and FIG. Fault diagnosis screen in the embodiment. FIG. 4 is a block diagram of the hardware of the numerical control device for implementing the present invention. 1 Failure diagnosis screen 10 Numerical control device 11 0NC processor 12 PMC processor Ladder memory status memory CRT Control device display Keyboard output circuit Input circuit Numerical control device Machine tool relay switch

Claims (2)

【特許請求の範囲】[Claims] (1)PC(プログラマブル・コントローラ)を有する
数値制御装置の故障診断方法において、故障発生時に前
記PCの内部信号をメモリに格納し、 指定された指定信号に関連する前記PC内のラダープロ
グラムの関連信号を1個毎に変化させて、前記ラダープ
ログラムを実行し、 前記指定信号が変化するまで、前記のラダープログラム
を実行し、 前記指定信号が変化したときに、変化させた関連信号を
表示画面に表示し、 異常信号を発見して、故障診断を行う数値制御装置の故
障診断方法。
(1) In a fault diagnosis method for a numerical control device having a PC (programmable controller), when a fault occurs, an internal signal of the PC is stored in a memory, and a ladder program in the PC is associated with a specified designated signal. Execute the ladder program while changing the signals one by one; execute the ladder program until the specified signal changes; and when the specified signal changes, display the changed related signals on the screen. A method for diagnosing failures in numerical control equipment by displaying abnormal signals and diagnosing failures.
(2)前記PCは数値制御装置内に内蔵されたPMC(
プログラマブル・マシン・コントローラ)であることを
特徴とする請求項1記載の数値制御装置の故障診断方法
(2) The PC has a built-in PMC (
2. The method of diagnosing a failure of a numerical control device according to claim 1, wherein the method is a programmable machine controller.
JP2010028A 1990-01-19 1990-01-19 Fault diagnostic method for numerical controller Pending JPH03214301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010028A JPH03214301A (en) 1990-01-19 1990-01-19 Fault diagnostic method for numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010028A JPH03214301A (en) 1990-01-19 1990-01-19 Fault diagnostic method for numerical controller

Publications (1)

Publication Number Publication Date
JPH03214301A true JPH03214301A (en) 1991-09-19

Family

ID=11738942

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010028A Pending JPH03214301A (en) 1990-01-19 1990-01-19 Fault diagnostic method for numerical controller

Country Status (1)

Country Link
JP (1) JPH03214301A (en)

Similar Documents

Publication Publication Date Title
JP2608593B2 (en) Failure diagnosis method
US4633384A (en) Sequence abnormality check system in programmable controller
JPH03214301A (en) Fault diagnostic method for numerical controller
JP2003131709A (en) Control display system, control program and recording medium storing the program
JPS61114833A (en) System of displaying graphical state of operation of injection molding machine
JPH0577143A (en) Failure diagnosis device for automated line
JPH0326130A (en) Controller
JPH07314284A (en) Ladder program/circuit verifying device
JPS5942884B2 (en) Sequence control program debugging device
JPS6261963B2 (en)
JPH09230923A (en) Simulation device
JPS6249518A (en) Trouble diagnosis unit for programmable controller
JP3127528B2 (en) Vending machine input / output check device
JPS5875203A (en) Sequence controller of double structure
JPH0268606A (en) Cnc diagnosing system
JPS61813A (en) Deciding system for faulty area of sequence controller
JP4313872B2 (en) Plant control apparatus and plant control system
JP2989621B2 (en) Diagnostic display device for machine tools
WO1992021073A1 (en) Method for debugging sequential program
JPH0883108A (en) Debugging tool for programmable controller
JPH0245803A (en) Automatic preparing method for sequence program
JPH0830301A (en) Redundancy control system and maintaining method for the same
JPH11184509A (en) System and method for control
JPH08286734A (en) Programmable display device
JPH0217509A (en) Cad cam device