JPS62274435A - Diagnostic system for computer system - Google Patents

Diagnostic system for computer system

Info

Publication number
JPS62274435A
JPS62274435A JP61119663A JP11966386A JPS62274435A JP S62274435 A JPS62274435 A JP S62274435A JP 61119663 A JP61119663 A JP 61119663A JP 11966386 A JP11966386 A JP 11966386A JP S62274435 A JPS62274435 A JP S62274435A
Authority
JP
Japan
Prior art keywords
control
diagnostic
program
computer system
diagnostic program
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
JP61119663A
Other languages
Japanese (ja)
Inventor
Kazuya Kishi
岸 和也
Kikuo Tomosawa
友澤 菊雄
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP61119663A priority Critical patent/JPS62274435A/en
Publication of JPS62274435A publication Critical patent/JPS62274435A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To quickly find a trouble and cope with it if the trouble occurs during control, by storing a control program and a diagnostic program in a memory and executing the diagnostic program by an interruption while executing the control program to perform the diagnosis and the processing of a computer. CONSTITUTION:A computer system 1 is provided with a central processing unit 2, a readable and writable memory (RAM) 3 where various control data are stored, and a ROM 4 where the control program and the diagnostic program are stored. When the power source of the system 1 is turned on in case of the malfunction of R/W (read/write) of the RAM 3 in this system 1, the central processing unit 2 starts executing instructions in order from address 0 of the ROM 4. The control is started to find the abnormality in a certain address by checking R/W of the RAM, and the processing which copes with it is performed.

Description

【発明の詳細な説明】 3、発明の詳細な説明 〔産業上の利用分野〕 本発明はコンピュータシステムの診断方式に関し、特に
各種制御システムに組み込まれているマイクロコンピュ
ータの診断方式に関するものである。
Detailed Description of the Invention 3. Detailed Description of the Invention [Field of Industrial Application] The present invention relates to a diagnostic method for computer systems, and particularly to a diagnostic method for microcomputers incorporated in various control systems.

〔従来技術〕[Prior art]

近頃ディジタル回路を用いた各種制御機器において、各
種の制御プログラムが格納されたメモリを具備するマイ
クロコンピュータが組み込まれるようになった。該制御
機器に置いては、制御プログラムを実行することにより
、各種制御を行なっている。そしてこのような制御機器
はその性格上マイクロコンビ二一タが正確に動作してい
るか否かを診断する必要がある。
Recently, microcomputers equipped with memories storing various control programs have been incorporated into various control devices using digital circuits. The control device performs various controls by executing a control program. Due to the nature of such control equipment, it is necessary to diagnose whether or not the microcomputers are operating correctly.

従来このようなマイクロコンピュータの診断方法として
大きく分けて2種類の診断方法がある。
Conventionally, there are two types of diagnostic methods for such microcomputers.

その一つの診断方法はコンピュータシステムに予めその
診断用のプログラムを盛り込んでおき、外部からある信
号を与えその信号により制御用のプログラムから診断用
のプログラムに移行許せ、該診断用のプログラムを実行
させてコンピュータの診断を行なうものである。
One of the diagnostic methods is to preload a diagnostic program into the computer system, apply a certain signal from the outside, use that signal to allow the control program to transition to the diagnostic program, and run the diagnostic program. It is used to diagnose computers.

もう一つの診断方法は、コンピュータシステムの外部か
ら強制的にデータバスを変化させ、外部に用意された診
断用のプログラムに処理を移行させてコンピュータシス
テムの診断を行なうもので<1 第2図は上記後者のコンピュータシステム診断のシステ
ム構成の一例を示すブロック図である。
Another diagnostic method is to forcibly change the data bus from outside the computer system and transfer the processing to an externally prepared diagnostic program to diagnose the computer system. FIG. 2 is a block diagram showing an example of a system configuration for the latter computer system diagnosis.

同図において、21はマイクロコンピュータを用いた制
御機器、22は外部に用意されたコンピュータ診断部で
ある。制御機器21は中央演算処理装置21−1及び各
種制御プログラムが格納されたROM(リードオンリメ
モリ)21−2等を具備し、コンピュータ診断部22は
制御機器21の中央演算処理装置21−1に診断を強制
的に命令するチェッカー22−1及び診断用プログラム
が格納きれたROM22−2等を具備する。チェッカー
22−1からの信号によりデータバス23を変化させ、
ROM22−2に格納されている診断用プログラムを直
接実行させて診断を行なうものである。
In the figure, 21 is a control device using a microcomputer, and 22 is a computer diagnostic section provided externally. The control device 21 includes a central processing unit 21-1 and a ROM (read-only memory) 21-2 in which various control programs are stored, and the computer diagnostic section 22 is connected to the central processing unit 21-1 of the control device 21. It includes a checker 22-1 for forcibly commanding diagnosis, a ROM 22-2 in which a diagnostic program is stored, and the like. Changing the data bus 23 by the signal from the checker 22-1,
Diagnosis is performed by directly executing a diagnostic program stored in the ROM 22-2.

また、第3図は上記後者のコンピュータシステム診断の
システム構成の他の例を示すブロック図である。同図に
おいて、第2図と同一符号を付した部分は同一部分を示
す。制御機器21は診断用プログラムを一時的に格納す
る一時記憶部(RAM(ランダムアクセスメモリ))2
1−3を具備し、コンピュータ診断部22には転送プロ
グラムを格納するROM22−3を具備する。チェツ2
F−22−1からの信号により、ROM22−3に格納
されを転送プログラムを実行しROM22−2に格納さ
れた診断用プログラムを一時記憶部21−3に転送した
後、該一時記憶部21−3に格納された診断用プログラ
ムにジャンプ許せ該診断用プログラムを実行啓せて診断
を行なう。
FIG. 3 is a block diagram showing another example of the system configuration for the latter computer system diagnosis. In this figure, parts given the same reference numerals as those in FIG. 2 indicate the same parts. The control device 21 includes a temporary storage unit (RAM (random access memory)) 2 that temporarily stores a diagnostic program.
1-3, and the computer diagnostic section 22 is equipped with a ROM 22-3 for storing a transfer program. Chetsu 2
In response to the signal from F-22-1, the transfer program stored in the ROM 22-3 is executed and the diagnostic program stored in the ROM 22-2 is transferred to the temporary storage section 21-3, and then the temporary storage section 21-3 is transferred. Jump to the diagnostic program stored in 3 and execute the diagnostic program to perform diagnosis.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら上記前者の方法は、即ちコンピュータシス
テム内に診断用のプログラムを持つ場合は、もし誤って
診断用プログラムに入った場合制御不能になるという恐
れがある。−劣後者の内、第2図に示す外部に用意した
診断用プログラムを直接実行させる場合は、必ずデータ
バス23が接続きれなければならず、診断の条件(温度
、湿度)等によってはこの方法がとれないこともあると
いう欠点があった。また、第3図のように一時記憶部2
1−3に診断用プログラム転送して実行する場合も上記
前者と同様、もし誤って診断用プログラムに入った場合
制御不能になるという恐れがある。きらに上記従来の診
断方法においては、いずれも制御中に不具合いが生じて
も認識することができないという欠点がある。
However, in the former method, if the computer system has a diagnostic program, there is a risk that control will be lost if the computer system enters the diagnostic program by mistake. - Of the latter, when directly executing a diagnostic program prepared externally as shown in Figure 2, the data bus 23 must be connected, and depending on the diagnostic conditions (temperature, humidity), etc. The disadvantage was that it sometimes could not be removed. In addition, as shown in Fig. 3, the temporary storage section 2
Similarly to the former case, when the diagnostic program is transferred to the computer 1-3 and executed, there is a risk that control will be lost if the diagnostic program is entered by mistake. However, all of the conventional diagnostic methods described above have the disadvantage that even if a malfunction occurs during control, it cannot be recognized.

本発明は上述の点に鑑みてなされたもので、誤って診断
用プログラムが走り、制御不能になるという問題点と、
温度や湿度等の環境に影響を受けずにしかも制御中いつ
不具合が生じてもすばやく発見し対処できるコンピュー
タシステムの診断方式を提供することにある。
The present invention has been made in view of the above-mentioned problems, and the problem is that the diagnostic program is run by mistake and becomes uncontrollable.
To provide a diagnostic method for a computer system that is not affected by the environment such as temperature and humidity, and can quickly discover and deal with any malfunction that may occur during control.

〔問題点を解決するための手段〕[Means for solving problems]

上記問題点を解決するため本発明は、各種プログラムを
格納するメモリを具備するコンピュータシステムの診断
方式において、本来の制御を行なう制御プログラム中の
適当な場所に診断用プログラムを盛り込み制御プログラ
ムを実行しながら制御に支障をきたさないで診断ができ
るようにした。
In order to solve the above-mentioned problems, the present invention is a method for diagnosing a computer system that is equipped with a memory that stores various programs.The present invention includes a diagnostic program at an appropriate location in the control program that performs the original control and executes the control program. However, it is now possible to perform diagnosis without interfering with control.

rツノ1−IT?1 上記の如く構成することにより、上記従来例のように誤
って診断用プログラムが走り、制御不能になったり、温
度や湿度等の環境の影響を受は診断が不可能になったり
するという問題点は除去され、制御中に一不具・合が・
生′び・た;場合もすばやく発見し対処できる。   
 7、 〔実施例〕 第4図は本発明に係るコンピュータシステムの診断方式
を適用するコンピュータシステムの構成を示すブロック
図である。同図において、1は各種制御機器に使用され
るマイクロコンピュータで代表されるコンピュータシス
テムであり、該コンピュータシステムは中央処理装置2
、各種制御データを格納する読み出し書き込み可能なメ
モリ(RAM)3、制御プログラム及び診断用プログラ
ムを格納するROM4を具備する。中央演算処理装置2
、RAM3、ROM4は、バス5により接続され、他に
入出力インターフェース(図示せず)等を具備している
r Tsuno 1-IT? 1. With the configuration as described above, the problem is that the diagnostic program may run incorrectly as in the conventional example described above, resulting in loss of control, or diagnosis may become impossible due to the influence of the environment such as temperature and humidity. Points are removed and any faults/occurrences are detected during control.
You can quickly detect and deal with emergencies.
7. [Embodiment] FIG. 4 is a block diagram showing the configuration of a computer system to which the computer system diagnosis method according to the present invention is applied. In the figure, 1 is a computer system typified by a microcomputer used in various control devices, and the computer system includes a central processing unit 2.
, a readable/writable memory (RAM) 3 for storing various control data, and a ROM 4 for storing control programs and diagnostic programs. Central processing unit 2
, RAM3, and ROM4 are connected by a bus 5, and are also provided with an input/output interface (not shown).

上記構成のコンピュータシステムにおいて、今コンピュ
ータシステム1が正常に動作していると、第1図に示す
ように電源を投入すると(ステップ101)、コンピュ
ータシステム1は立ち上がり(ステップ102)、RO
M4の0番地から順に命令を実行し始める。ROM4の
中には制御プログラムと診断用プログラムが混在して格
納されているから、ステップ103〜105に示すよう
に制御プログラム1〜3を実行する。ステップ106に
おいて、コンピュータシステム1の制御が多忙か否かを
判断し゛、多忙である場合は制御を優先させ制御を続行
きせるが、多忙でない場合はステップ107において、
診断用プログラムを゛実行する。
In the computer system with the above configuration, if the computer system 1 is currently operating normally, when the power is turned on (step 101) as shown in FIG.
Instructions begin to be executed sequentially from address 0 of M4. Since the control program and the diagnostic program are stored together in the ROM 4, the control programs 1 to 3 are executed as shown in steps 103 to 105. In step 106, it is determined whether or not the control of the computer system 1 is busy. If it is busy, the control is given priority and the control is continued; however, if it is not busy, in step 107,
Run the diagnostic program.

今、例えばコンピュータシステム1のRAM3のR/W
(読み出し/書き込み)が誤動作しているとする。前記
と同じようにコンピュータシステム1に電源を投入する
と、中央処理装置2はROM4のO番地から順に命令を
実行し始める。そして制御を開始し、ある番地に存在す
るRAMのR/Wのチェックで異常をみつけそれに対処
する文理を行なう。
Now, for example, R/W of RAM3 of computer system 1
Suppose that (read/write) is malfunctioning. When the computer system 1 is powered on in the same way as described above, the central processing unit 2 starts executing instructions sequentially from address O of the ROM 4. Then, control is started, and an abnormality is found by checking the R/W of the RAM existing at a certain address, and a countermeasure is taken to deal with it.

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

以上説明したように本発明によれば、メモリに制御用プ
ログラムと診断用プログラムを混在許せて格納し、前記
制御プログラムを実行しながら割り込みにより前記診断
用プログラムを実行してコンピュータの診断及び処理を
行なうから、従来のように誤って診断用プログラムが走
り、制御不能になったり、温度や湿度等の環境の影響を
受は診断が不可能になったりするという問題点は除去き
れ、制御中に不具合が生じた場合もすばやく発見し対処
できるという優れた効果を有する。
As explained above, according to the present invention, a control program and a diagnostic program are stored in a memory in a mixed manner, and the diagnostic program is executed by an interrupt while the control program is being executed, thereby diagnosing and processing the computer. This eliminates the conventional problem of the diagnostic program running incorrectly, resulting in loss of control, or the diagnosis becoming impossible due to the influence of the environment such as temperature and humidity. This has an excellent effect in that even if a problem occurs, it can be quickly discovered and dealt with.

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

第1図は本発明に係るコンピュータシステムの診断方式
の処理のながれを示すフローチャート、第2図、第3図
は従来のコンピュータ診断システムを示すブロック図、
第4図は本発明に係るコンピュータシステムの診断方式
を適用するコンピュータシステムの構成を示すブロック
図である。 図中、1・・・・コンピュータシステム、2・・・・中
央処理装置、3・・・・RAM、4・・・・ROM、5
・・・・バス。
FIG. 1 is a flowchart showing the processing flow of a diagnostic method of a computer system according to the present invention, FIGS. 2 and 3 are block diagrams showing a conventional computer diagnostic system,
FIG. 4 is a block diagram showing the configuration of a computer system to which the computer system diagnosis method according to the present invention is applied. In the figure, 1...computer system, 2...central processing unit, 3...RAM, 4...ROM, 5
····bus.

Claims (1)

【特許請求の範囲】[Claims] 各種プログラムを格納するメモリを具備するコンピュー
タの診断方式において、前記メモリに制御用プログラム
と診断用プログラムを混在させて格納し、前記制御プロ
グラムを実行しながら割り込みにより前記診断用プログ
ラムを実行してコンピュータの診断及び処理を行なうこ
とを特徴とするコンピュータシステムの診断方式。
In a diagnostic method for a computer equipped with a memory for storing various programs, a control program and a diagnostic program are stored in the memory in a mixed manner, and the diagnostic program is executed by an interrupt while the control program is being executed. A diagnostic method for a computer system characterized by performing diagnosis and processing.
JP61119663A 1986-05-23 1986-05-23 Diagnostic system for computer system Pending JPS62274435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61119663A JPS62274435A (en) 1986-05-23 1986-05-23 Diagnostic system for computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61119663A JPS62274435A (en) 1986-05-23 1986-05-23 Diagnostic system for computer system

Publications (1)

Publication Number Publication Date
JPS62274435A true JPS62274435A (en) 1987-11-28

Family

ID=14766986

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61119663A Pending JPS62274435A (en) 1986-05-23 1986-05-23 Diagnostic system for computer system

Country Status (1)

Country Link
JP (1) JPS62274435A (en)

Similar Documents

Publication Publication Date Title
JPS62274435A (en) Diagnostic system for computer system
JPS6363935B2 (en)
JPH10228395A (en) Abnormality diagnostic device for controller
JPH0223432A (en) Self-diagnostic system
JPH01310422A (en) Resetting circuit for microcomputer
JPH0244436A (en) Information processing monitoring system
JPH01166145A (en) Cpu monitor
JPS63147243A (en) Method for monitoring trace information for multi-processor system
JPH04105151A (en) Input/output controller
JPH0751609Y2 (en) Failure information storage circuit of programmable controller
JPS5943768B2 (en) Channel device initial startup method
JPH04296938A (en) Computer device
JPH036618A (en) Abnormality detecting circuit for stack pointer
JPS63106840A (en) Data processor unit
JPH03100736A (en) Patrol diagnostic device
JPH01144133A (en) System for diagnozing computer system
JPS627582B2 (en)
JPS63167947A (en) Ram alternating method
JPH03108045A (en) Error monitor circuit for data bus device
JPH01102646A (en) Processor control system
JPS63153647A (en) Diagnostic system in input/output device in computer system
JPH0215353A (en) Abnormality setting system at specific address
JPH0458337A (en) Device diagnostic system
JP2000184064A (en) Fault data retaining system
JPS63131234A (en) Diagnosis control system