JPH02226307A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH02226307A
JPH02226307A JP1045262A JP4526289A JPH02226307A JP H02226307 A JPH02226307 A JP H02226307A JP 1045262 A JP1045262 A JP 1045262A JP 4526289 A JP4526289 A JP 4526289A JP H02226307 A JPH02226307 A JP H02226307A
Authority
JP
Japan
Prior art keywords
machine
memory
processor
input
display
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
JP1045262A
Other languages
Japanese (ja)
Inventor
Koichi Iguchi
井口 功一
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1045262A priority Critical patent/JPH02226307A/en
Publication of JPH02226307A publication Critical patent/JPH02226307A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Numerical Control (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To quickly clear up the cause of abnormality of a machine by storing control information of the machine and operation results of a programmable controller in a storage means and displaying stored contents at the time of input of an instruction. CONSTITUTION:A processor 1 successively reads out a programmable controller (PC) program 5 and reads out the state signal of the machine written in a memory 4 and performs prescribed operation. The processor 1 discriminates whether the machine is abnormal or not at the time of executing the PC program 5, and the processor 1 starts a PC data storage control part 10 when the machine is abnormal. The PC data storage control part 10 copies stored contents of the memory 4 to a memory 11. When an operator inputs an instruction to display stored contents of the memory 11, a PC data display control part 12 displays them on a CRT 2. Thus, the cause of abnormality of the machine is quickly cleared up.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は数値制御装置(以下、CNCという)に関し、
さらに詳しくは数値制御装置による機械制御時に発生し
た異常状態の情報を収集し、表示する数値制御装置に関
する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a numerical control device (hereinafter referred to as CNC),
More specifically, the present invention relates to a numerical control device that collects and displays information on abnormal conditions that occur during machine control by the numerical control device.

[従来の技術] 第5図はCNCに内蔵した従来のプログラマブルコント
ローラ(以下、PCという)の構成図である。第5図に
おいて、(1)はCNCを制御するプロセッサ、(2)
はCNCの状態を表示するCRT、(3)はキーボード
、(4)はPC用のプログラムを記憶しているメモリ、
(5)はユーザが作成したPC用のプログラムを記憶し
ているメモリ、(6)はCNC外部からの信号を入出力
するためのインタフェースである機械信号入出力装置、
(7)はPCデータ表示装置、(8)は他の周辺装置、
(9)は機械の強電盤である。
[Prior Art] FIG. 5 is a configuration diagram of a conventional programmable controller (hereinafter referred to as PC) built into a CNC. In FIG. 5, (1) is a processor that controls the CNC, (2)
is a CRT that displays the CNC status, (3) is a keyboard, (4) is a memory that stores programs for the PC,
(5) is a memory that stores programs for the PC created by the user; (6) is a machine signal input/output device that is an interface for inputting and outputting signals from outside the CNC;
(7) is a PC data display device, (8) is another peripheral device,
(9) is the machine's powerful electrical panel.

次に、従来のCNCの動作について説明する。Next, the operation of the conventional CNC will be explained.

機械信号入出力装置(6)は機械の強電盤(9)から機
械の状態信号が常時入力されている。
The machine signal input/output device (6) constantly receives machine status signals from the machine's power panel (9).

プロセッサ(1)は機械信号入出力装置(6)より機械
の状態信号を読み込み、メモリ(4)に書き込む。
A processor (1) reads machine status signals from a machine signal input/output device (6) and writes them into a memory (4).

次いで、プロセッサ(1)はユーザ作成のPCプログラ
ムをメモリ(5)から順次読み出すとともに、メモリ(
4)に書き込んだ機械の状態信号を読み出して演算を行
ない、演算結果をメモリ(4)に書き込む。
Next, the processor (1) sequentially reads user-created PC programs from the memory (5), and
The machine status signal written in 4) is read out and arithmetic is performed, and the result of the arithmetic operation is written in the memory (4).

さらに、プロセッサ(1)はメモリ(4)に書き込まれ
た演算結果を機械信号入出力装置(6)又は他の周辺装
置(8)に出力する。機械信号入出力装置(6)は入力
された信号を強電盤(9)に出力し、機械の制御を行う
。又、他の周辺装置(8)はプロセッサ(1)から受は
取った信号に基づいて、各機能の制御を行なう。
Further, the processor (1) outputs the calculation results written in the memory (4) to the mechanical signal input/output device (6) or other peripheral device (8). The machine signal input/output device (6) outputs the input signal to the power board (9) to control the machine. Further, other peripheral devices (8) control each function based on signals received from the processor (1).

なお、オペレータがメモリ(4)に書き込まれた機械の
状態信号及びメモリ(5)に記憶されているPCプログ
ラムに基づいて、プロセッサ(1)が演算した結果を見
るときは、キーボード(3)を操作して特定信号を入力
する。
In addition, when the operator wants to view the results calculated by the processor (1) based on the machine status signals written in the memory (4) and the PC program stored in the memory (5), the operator presses the keyboard (3). Operate to input a specific signal.

プロセッサ(1)は特定信号の入力を判断すると、PC
データ表示制御部(7)を起動して、CRT(2)にメ
モリ(4)の記憶内容を表示させる。第6図はCRT 
(2)の表示例を示す図である。第6図において、(1
3)はオフ状態のA接点、(14)はオフ状態のコイル
、(15)はオン状態のA接点、(16)はオン状態の
コイルである。
When the processor (1) determines that a specific signal has been input, the processor (1)
The data display control section (7) is started to display the contents of the memory (4) on the CRT (2). Figure 6 shows CRT
It is a figure which shows the example of a display of (2). In Figure 6, (1
3) is the A contact in the OFF state, (14) is the coil in the OFF state, (15) is the A contact in the ON state, and (16) is the coil in the ON state.

[発明が解決しようとする課題] ところで、上記構成の従来のCNCは、機械に異常が発
生し、オペレータがそのときのPCデータをCRT (
2)に表示しても、PCデータは常に書き換えられるの
で、異常発生時のデータが保存されていないので、機械
の異常発生原因の解明に時間がかかるという問題点があ
った。
[Problems to be Solved by the Invention] By the way, in the conventional CNC with the above configuration, when an abnormality occurs in the machine, the operator transfers the PC data at that time to the CRT (
Even if displayed in 2), since the PC data is constantly rewritten, the data at the time of the abnormality is not saved, so there is a problem that it takes time to find out the cause of the abnormality in the machine.

本発明は上記問題点を解決するためになされたもので、
機械に異常が発生したときのPCデータを記憶し、その
PCデータを表示できる数値制御装置を提供することを
目的とする。
The present invention has been made to solve the above problems,
It is an object of the present invention to provide a numerical control device capable of storing PC data when an abnormality occurs in a machine and displaying the PC data.

[課題を解決するための手段] 本発明に係る数値制御装置は、少なくとも数値制御装置
によって制御される機械の制御情報及びプログラマブル
コントローラの演算結果を記憶する記憶手段と、機械の
異常を示す外部信号が入力されたときは、この外部信号
が入力されたときにおける、機械の制御情報及びプログ
ラマブルコントローラの演算結果を記憶手段に記憶させ
る記憶制御手段と、外部信号が入力されたときにおける
、記憶手段の記憶内容を表示させる命令を入力する命令
入力手段と、記憶内容を表示させる命令が入力されたと
きは、外部信号が入力されたときにおける記憶手段の記
憶内容を表示する表示制御手段とを備えている。
[Means for Solving the Problems] A numerical control device according to the present invention includes a storage means for storing at least control information of a machine controlled by the numerical control device and calculation results of a programmable controller, and an external signal indicating an abnormality of the machine. When the external signal is input, the storage control means stores the control information of the machine and the calculation result of the programmable controller in the storage means when the external signal is input; A command input means for inputting a command to display the stored contents, and a display control means for displaying the stored contents of the storage means when an external signal is input when the command to display the stored contents is inputted. There is.

[作 用] 上記構成の数値制御装置は、外部信号が入力されると、
記憶制御手段が機械の制御情報及びプログラマブルコン
トローラの演算結果を記憶手段に記憶させる。
[Function] The numerical control device with the above configuration, when an external signal is input,
The storage control means stores control information of the machine and calculation results of the programmable controller in the storage means.

このとき、命令入力手段により外部信号が入力されたと
きにおける、記憶手段の記憶内容を表示させる命令が入
力されると、表示制御手段が外部信号が入力されたとき
における記憶手段の記憶内容を表示する。
At this time, when a command to display the stored contents of the storage means at the time when the external signal was inputted by the command input means is input, the display control means displays the stored contents of the storage means at the time when the external signal was inputted. do.

[実施例] 以下、本発明の一実施例を添付図面を参照して詳細に説
明する。
[Example] Hereinafter, an example of the present invention will be described in detail with reference to the accompanying drawings.

第1図は本発明の一実施例に係る数値制御装置のブロッ
ク図である。なお、第1図において第5図と同様の機能
を果たす部分については同一の符号を付し、その説明は
省略する。
FIG. 1 is a block diagram of a numerical control device according to an embodiment of the present invention. Note that in FIG. 1, parts that perform the same functions as those in FIG. 5 are designated by the same reference numerals, and the explanation thereof will be omitted.

又、第1図において、(10)はPCデータ記憶制御部
、(11)はpcデータ記憶制御部(lO)がpcデー
タを書き込むメモリ、(12)はメモリ(11)に記憶
されたpcデータをCRT (2)に表示するpc記記
憶デー2示示制御である。
In FIG. 1, (10) is a PC data storage control unit, (11) is a memory into which the PC data storage control unit (lO) writes PC data, and (12) is a PC data stored in the memory (11). This is PC memory data 2 display control to display on CRT (2).

次に、第1図に示した数値制御装置の動作について、第
2図、第3図及び第4図のフローチャートを参照して説
明する。なお、第2図はメモリ(5)に記憶されている
PCプログラムの処理を示すフローチャート、第3図は
PCデータ記憶制御部(10)の処理を示すフローチャ
ート、第4図はPCC記憶デー2示示制御(12)の処
理を示すフローチャートである。
Next, the operation of the numerical control device shown in FIG. 1 will be explained with reference to the flowcharts in FIGS. 2, 3, and 4. In addition, FIG. 2 is a flowchart showing the processing of the PC program stored in the memory (5), FIG. 3 is a flowchart showing the processing of the PC data storage control unit (10), and FIG. 4 is a flowchart showing the processing of the PC data storage controller (10). It is a flowchart which shows the process of control (12).

(1)ステップ81〜S2 プロセッサ(1)は機械信号入出力装置(6)から機械
の状態信号を読み取り、メモリ(4)に書き込む(ステ
ップSl)。
(1) Steps 81 to S2 The processor (1) reads the machine status signal from the machine signal input/output device (6) and writes it into the memory (4) (Step Sl).

プロセッサ(1)はPCプログラム(5)を順次読み出
すとともに、メモリ(4)に書き込まれている機械の状
態信号を読み出して、所定の演算を行なう(ステップS
2)。
The processor (1) sequentially reads the PC program (5), reads the machine status signal written in the memory (4), and performs a predetermined calculation (step S).
2).

(2)ステップ83〜S4.87〜SIOプロセツサ(
1)はPCプログラム(5)の実行に際して、機械が異
常であるかどうかを判断する(ステップS3)。
(2) Steps 83 to S4.87 to SIO processor (
1) determines whether the machine is abnormal when executing the PC program (5) (step S3).

この判断はプロセッサ(1)がメモリ(4)に書き込ま
れた信号がある状態のときは、機械が異常であると判断
するように、PCプログラムを作成しておくことにより
行なう。
This determination is made by creating a PC program so that when the processor (1) has a signal written in the memory (4), it determines that the machine is abnormal.

機械が異常であるときは、プロセッサ(1)はPCデー
タ記憶制御部(10)を起動する(ステップ84)。P
Cデータ記憶制御部(10)は自己が起動されたときは
(ステップS7)、メモリ(4)の記憶内容をメモリ(
11)にコピーする(ステップS8)。
If the machine is abnormal, the processor (1) activates the PC data storage controller (10) (step 84). P
When the C data storage control unit (10) is activated (step S7), the C data storage control unit (10) stores the stored contents of the memory (4) in the memory (
11) (step S8).

操作者がキーボード(3)により所定の操作を行なって
、メモリ(11)の記憶内容を表示させる命令を入力す
ると、プロセッサ(1)はPCデータ表示制御部(12
)に表示要求を出力する。
When the operator performs a predetermined operation on the keyboard (3) and inputs a command to display the stored contents of the memory (11), the processor (1) causes the PC data display control unit (12
) outputs the display request.

PCデータ表示制御部(12)はプロセッサ(1)より
表示要求されると(ステップS7)、機械に異常が発生
したときにおけるPCデータをメモリ(11)から読み
出して、第6図に示すようなフォーマットでCRT (
2)に表示させる。
When the PC data display control unit (12) receives a display request from the processor (1) (step S7), it reads the PC data from the memory (11) at the time when an abnormality occurred in the machine, and displays the data as shown in FIG. Format CRT (
2).

(3)ステップ85〜S6 プロセッサ(1)はPCプログラム(5)の終りまで演
算を行なうと(ステップS5)、その演算結果を機械信
号入出力装置(6)又は他の周辺装置(8)に出力し、
機械の制御を行なう(ステップ8B)。
(3) Steps 85 to S6 When the processor (1) performs calculations to the end of the PC program (5) (step S5), the processor (1) sends the calculation results to the mechanical signal input/output device (6) or other peripheral devices (8). output,
The machine is controlled (step 8B).

[発明の効果] 以上説明したように本発明によれば、外部信号が入力さ
れたときに、記憶制御手段が機械の制御情報及びプログ
ラマブルコントローラの演算結果を記憶手段に記憶させ
ておき、命令入力手段により外部信号が入力されたとき
における記憶手段の記憶内容を表示させる命令が入力さ
れると、表示制御手段が外部信号が入力されたときにお
ける記憶手段の記憶内容を表示するようにしたので、機
械に異常が発生したときに、その原因を究明して、機械
の復旧を速やかにでき、機械稼動率が著しく向上する数
値制御装置が得られるという効果を奏する。
[Effects of the Invention] As explained above, according to the present invention, when an external signal is input, the storage control means stores machine control information and the calculation results of the programmable controller in the storage means, and inputs a command. When the means inputs a command to display the stored contents of the storage means at the time when the external signal was inputted, the display control means displays the stored contents of the storage means at the time when the external signal was inputted. When an abnormality occurs in a machine, the cause can be investigated and the machine can be quickly restored, resulting in a numerical control device that significantly improves the operating rate of the machine.

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

第1図は本発明の一実施例に係る数値制御装置のブロッ
ク構成図、第2図、第3図及び第4図は第1図に示した
数値制御装置の動作を示すフローチャート、第5図は従
来の数値制御装置のブロック構成図、第6図はPCデー
タの表示例を示す図である。 各図中、1はプロセッサ、2はCRT、3はキーボード
、4.5.11はメモリ、6は機械信号入出力装置、7
はPCデータ表示制御部、8は他の周辺装置、9は強電
盤、IOはPCデータ記憶制御部、12はPCC記憶デ
ー2示示制御である。 なお、各図中同一符号は同−又は相当部分を示すもので
ある。
FIG. 1 is a block configuration diagram of a numerical control device according to an embodiment of the present invention, FIGS. 2, 3, and 4 are flow charts showing the operation of the numerical control device shown in FIG. 1, and FIG. 6 is a block diagram of a conventional numerical control device, and FIG. 6 is a diagram showing an example of displaying PC data. In each figure, 1 is a processor, 2 is a CRT, 3 is a keyboard, 4.5.11 is a memory, 6 is a mechanical signal input/output device, and 7
8 is a PC data display control unit, 8 is another peripheral device, 9 is a power board, IO is a PC data storage control unit, and 12 is a PCC storage data 2 display control. Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 少なくとも数値制御装置によって制御される機械の制御
情報及びプログラマブルコントローラの演算結果を記憶
する記憶手段と、前記機械の異常を示す外部信号が入力
されたときは、該外部信号が入力されたときにおける、
前記機械の制御情報及び前記プログラマブルコントロー
ラの演算結果を前記記憶手段に記憶させる記憶制御手段
と、前記外部信号が入力されたときにおける、前記記憶
手段の記憶内容を表示させる命令を入力する命令入力手
段と、前記記憶内容を表示させる命令が入力されたとき
は、該外部信号が入力されたときにおける記憶手段の記
憶内容を表示させる表示制御手段と、を備えたことを特
徴とする数値制御装置。
A storage means for storing at least control information of a machine controlled by a numerical control device and calculation results of a programmable controller, and when an external signal indicating an abnormality of the machine is input, when the external signal is input;
storage control means for storing control information of the machine and calculation results of the programmable controller in the storage means; and command input means for inputting a command to display the stored contents of the storage means when the external signal is input. and, when a command to display the stored content is input, display control means for displaying the stored content of the storage means when the external signal is input.
JP1045262A 1989-02-28 1989-02-28 Numerical controller Pending JPH02226307A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1045262A JPH02226307A (en) 1989-02-28 1989-02-28 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1045262A JPH02226307A (en) 1989-02-28 1989-02-28 Numerical controller

Publications (1)

Publication Number Publication Date
JPH02226307A true JPH02226307A (en) 1990-09-07

Family

ID=12714377

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1045262A Pending JPH02226307A (en) 1989-02-28 1989-02-28 Numerical controller

Country Status (1)

Country Link
JP (1) JPH02226307A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03152602A (en) * 1989-11-10 1991-06-28 Fuji Electric Co Ltd Programming device for programmable controller
JP2015225392A (en) * 2014-05-26 2015-12-14 ファナック株式会社 Numerical control device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03152602A (en) * 1989-11-10 1991-06-28 Fuji Electric Co Ltd Programming device for programmable controller
JP2015225392A (en) * 2014-05-26 2015-12-14 ファナック株式会社 Numerical control device
US10114360B2 (en) 2014-05-26 2018-10-30 Fanuc Corporation Numerical controller

Similar Documents

Publication Publication Date Title
JPS60262204A (en) Programmable controller
JPH02226307A (en) Numerical controller
JPS5860318A (en) Programmable controller
JPH01244502A (en) Pc program display system
JPH04105101A (en) Abnormality processing form setting method for controller
JPS58221405A (en) Programmable controller
JPH08286734A (en) Programmable display device
JP3134878B2 (en) Programmable controller
JPS6334604A (en) Programmable controller
JP2776443B2 (en) Programmable controller
JPH08263245A (en) Display picture preparing device for programmable display
JPH08272405A (en) Sequence controller
JPH0447405A (en) Programing device for programmable controller
JPS62143108A (en) Data recorder
JPH03222007A (en) Programmable controller
JPH0811073A (en) Robot controller
JPH0816217A (en) Device for monitoring operation state of programmable controller
JPH02228703A (en) Programmable controller
JPH02253305A (en) Signal tracing system for programmable controller
JPS62254205A (en) Debug device
JPH0469904B2 (en)
JPH04306707A (en) Decentralized controller
JPH08286602A (en) Map display device
JPH10105226A (en) Programmable display device
JPS59119413A (en) Programmable controller