JP3757407B2 - Control device - Google Patents

Control device Download PDF

Info

Publication number
JP3757407B2
JP3757407B2 JP22226597A JP22226597A JP3757407B2 JP 3757407 B2 JP3757407 B2 JP 3757407B2 JP 22226597 A JP22226597 A JP 22226597A JP 22226597 A JP22226597 A JP 22226597A JP 3757407 B2 JP3757407 B2 JP 3757407B2
Authority
JP
Japan
Prior art keywords
circuit
value signal
signal
target value
control circuit
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.)
Expired - Fee Related
Application number
JP22226597A
Other languages
Japanese (ja)
Other versions
JPH1165892A (en
Inventor
健 本郷
俊介 林
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP22226597A priority Critical patent/JP3757407B2/en
Publication of JPH1165892A publication Critical patent/JPH1165892A/en
Application granted granted Critical
Publication of JP3757407B2 publication Critical patent/JP3757407B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、制御回路の異常動作を監視する制御装置に関し、特に回路構成が単純で監視回路自身の動作異常の確認も可能な制御装置に関する。
【0002】
【従来の技術】
従来、フィールド等に設置された制御装置では、その性質上、制御装置の故障発生時における外部装置への悪影響等を最小限に抑える必要があった。
【0003】
具体的には、制御装置に接続されたフィールド機器に異常な制御信号を出力したり、システム側のデータバスを閉塞させてしまったり、その他、システム全体に対してダメージを与える動作等を防ぐ必要があった。
【0004】
このため、従来の制御装置ではウォッチドッグタイマ(Watch Dog Timer:以下、WDTと呼ぶ。)等の監視回路を設け、制御装置の異常動作、具体的にはマイクロプロセッサ等の制御回路の異常動作を検出する。
【0005】
もし、前記制御回路の異常動作が検出されればWDTが当該制御回路をリセットすると共にシステム側の接続を遮断していた。
【0006】
図5はこのような従来の制御装置を示す構成ブロック図である。図5において1は制御装置を制御するマイクロプロセッサ等の制御回路、2はアドレスデコーダ回路、3は論理積回路、4は従来のWDT等の監視回路、5はスイッチ回路、100はシステム側のデータバス、101はアドレス信号、102はライトイネーブル信号、103はチップセレクト信号、104はリセット信号である。
【0007】
データバス100はスイッチ回路5を介して制御回路1に接続され、制御回路1からのアドレス信号101はアドレスデコーダ回路2に接続される。アドレスデコーダ回路2の出力であるチップセレクト信号103は論理積回路3の一方の入力端子に接続される。
【0008】
また、制御回路1からのライトイネーブル信号102は論理積回路3の他方の入力端子に接続され、論理積回路3の出力は監視回路4のタイマリセット端子に接続される。
【0009】
さらに、監視回路4の出力であるリセット信号104は制御回路1のリセット端子及びスイッチ回路5の制御端子にそれぞれ接続される。
【0010】
ここで、図5に示す従来例の動作を説明する。制御回路1はそのプログラム中にアドレスが割り振られた監視回路4への定期的な書込み動作を行うルーチンが設けられる。
【0011】
一方、監視回路4では内部に設けられたタイマ回路で時間を計測して一定時間に達するとリセット信号104を出力し、監視回路4のタイマリセット端子が”アクティブ”になると前記タイマ回路で計測している時間をリセットする。
【0012】
もし、制御回路1が正常動作していれば定期的に監視回路4への書込み処理が行われる。
【0013】
具体的には、制御回路1から監視回路4に割り振られたアドレス信号101及びデータ信号(図示せず。)が同期して出力され、ライトイネーブル信号102が”ハイレベル”になる。
【0014】
アドレス信号101はアドレスデコーダ回路2においてデコードされチップセレクト信号103が”ハイレベル”になるので論理積回路3の出力が”ハイレベル”になる。
【0015】
このため、監視回路4のタイマ回路がリセットされリセット信号104が出力されないので、制御回路1は動作を継続する。
【0016】
もし、制御回路1が異常動作であれば監視回路4への定期的な書込み処理が行われないことになる。
【0017】
このため、監視回路4のタイマ回路のリセットが行われずに一定時間に達してしまい、リセット信号104が出力される。
【0018】
リセット信号104が出力されると制御回路1はリセットされてその異常動作が強制終了され、スイッチ回路5は”off”になりデータバス100との接続が遮断される。
【0019】
この結果、制御機器の故障発生時でも外部機器への悪影響等を抑えることが可能になる。
【0020】
【発明が解決しようとする課題】
しかし、図5に示す従来例では監視回路4のタイマリセット動作は特定アドレスへの書込み動作により行われていた。このため、この書込み動作中に制御回路1のクロックが停止する状態に陥ると論理積回路3の出力が”ハイレベル”に固定されてしまい、監視回路4のタイマ回路がリセットされたままになり監視回路4が機能しなくなる。
【0021】
また、全アドレスに書込み動作するような異常動作に陥った場合にも監視回路4のタイマ回路がリセットされてしまうので監視回路4は機能しなくなる。
【0022】
また、最近の制御回路1では記憶回路やI/O回路等の周辺回路を内部に取り込んだMPU(MicroProcessor Unit)が多く、アドレスデコーダ回路3が不要な場合があり、この場合には監視回路4のためにアドレスデコーダ回路3等を設ける必要があり回路部品点数が多くなってコストアップにつながる。
【0023】
さらに、制御回路1からは監視回路4が正常に動作しているのかを確認する方法がないと言った問題点があった。
従って本発明が解決しようとする課題は、回路構成が単純で監視回路自身の動作異常の確認が可能な制御装置を実現することにある。
【0024】
【課題を解決するための手段】
このような課題を達成するために、本発明の第1では、
制御回路の異常動作を監視する制御装置において、
目標値信号を読み込み前記目標値信号と同値の設定値信号を出力する制御回路と、
前記制御回路に前記目標値信号を出力し、前記目標値信号と前記設定値信号との値が一致した場合には計測時間をリセットすると共に前記目標値信号の値を変更し、前記計測時間が一定時間に達した場合には前記制御回路にリセット信号を出力する監視回路と
を備えたことを特徴するものである。
【0025】
このような課題を達成するために、本発明の第2では、
本発明の第1において、
前記監視回路が
前記目標値信号と前記設定値信号との値の一致を検出する一致検出回路と、
前記制御回路に前記目標値信号を出力すると共に前記一致検出回路の出力信号に基づき前記目標値信号の値を変更する目標値設定回路と、
時間を計測して計測時間が一定時間に達した場合に前記リセット信号を出力すると共に前記一致検出回路の出力信号により前記計測時間をリセットするタイマ回路とから構成されたことを特徴するものである。
【0026】
このような課題を達成するために、本発明の第3では、
本発明の第1及び第2において、
前記制御回路が前記監視回路からの前記目標値信号の定期的な変化を監視して前記監視回路の異常を判断することを特徴とするものである。
【0027】
このような課題を達成するために、本発明の第4では、
本発明の第1〜第3において、
前記設定値信号及び前記目標値信号が1ビットの信号であることを特徴とするものである。
【0028】
このような課題を達成するために、本発明の第5では、
本発明の第4において、
前記設定値信号及び前記目標値信号を前記制御回路の入出力ポートを介して授受することを特徴とするものである。
【0029】
【発明の実施の形態】
以下本発明を図面を用いて詳細に説明する。図1は本発明に係る制御装置の一実施例を示す構成ブロック図である。
【0030】
図1において5及び100は図5と同一符号を付してあり、1aは制御回路、4aは監視回路、104aはリセット信号、105は設定値信号、106は目標値信号である。
【0031】
データバス100はスイッチ回路5を介して制御回路1aに接続され、制御回路1からの設定値信号105は監視回路4aの入力端子に接続され、監視回路4aからの目標値信号106は制御回路1aの入力端子に接続される。
【0032】
また、監視回路4aの出力であるリセット信号104aは制御回路1aのリセット端子及びスイッチ回路5の制御端子にそれぞれ接続される。
【0033】
ここで、図1に示す実施例の動作を説明する。制御回路1aはそのプログラム中に定期的に目標値信号106を読み込み、目標値信号106と同値の設定値信号105を出力するルーチンを設ける。
【0034】
一方、監視回路4aでは内部に設けられたタイマ回路で時間を計測して一定時間に達するとリセット信号104aを出力し、設定値信号105と目標値信号106との値が一致した場合には監視回路4a内のタイマ回路をリセットすると共に目標値信号106の値を変更する。
【0035】
もし、制御回路1aが正常動作していれば定期的に目標値信号106を読み込み、目標値信号106と同値の信号を設定値信号105として監視回路4aに出力する。
【0036】
監視回路4aは制御回路1aから入力された設定値信号105と目標値信号106とを比較してその値が一致した場合には監視回路4a内のタイマ回路をリセットすると共に目標値信号106の値を変更する。
【0037】
このため、監視回路4a内のタイマ回路の計測時間が一定時間には達しないのでリセット信号104aが出力されない。
【0038】
もし、制御回路1aが異常動作であれば定期的に目標値信号106を読み込み、目標値信号106と同値の信号を設定値信号105として出力する動作が行われないことになる。
【0039】
このため、設定値信号105と目標値信号106とが一致せずに監視回路4a内のタイマ回路が動作し続けて一定時間に達してしまい、リセット信号104aが出力される。
【0040】
リセット信号104aが出力されると制御回路1aはリセットされてその異常動作が強制終了され、スイッチ回路5は”off”になりデータバス100との接続が遮断される。
【0041】
また、制御回路1a側では監視回路4aが正常に動作していれば、制御回路1aが設定値信号105の値を変更してから一定時間の後に目標値信号106が変化するが、監視回路4aが異常動作であれば目標値信号106の変化が起こらない。
【0042】
即ち、制御回路1a側では監視回路4aの目標値信号106の定期的な変化が無い場合は監視回路4aの異常と判断することが可能になる。
【0043】
ここで、さらに、図1に示す実施例を図2,図3及び図4を用いて詳細に説明する。図2は図1に示す監視回路4aの具体例を示す構成ブロック図、図3及び図4は監視回路4aの正常時及び異常時の動作を説明するタイミング図である。
【0044】
図2において104a,105及び106は図1と同一符号を付してあり、6は一致検出回路、7は目標値設定回路、8はタイマ回路である。
【0045】
設定値信号105は一致検出回路6の一方の入力端子に接続され、一致検出回路6の出力は目標値設定回路7の制御入力端子及びタイマ回路8のタイマリセット端子にそれぞれ接続される。
【0046】
目標値設定回路7の出力は目標値信号106として出力されると共に一致検出回路6の他方の入力端子に接続される。また、タイマ回路8からはリセット信号104aが出力される。
【0047】
また、図3及び図4において(a)は目標値信号106、(b)は設定値信号105、(c)は一致検出回路6の出力信号、(d)タイマ回路8の計測時間、(e)はリセット信号104aである。
【0048】
例えば、設定値信号105及び目標値信号106を”1ビット”の信号とし、制御回路1aが正常動作をする場合を考える。
【0049】
図3中”イ”に示すタイミングで目標値設定回路7が(a)目標値信号106を”1”から”0”に変更する。制御回路1aは正常に動作しているのでこの変更を読み取り、(b)設定値信号105を図3中”ロ”に示すタイミングで”1”から”0”に変更する。
【0050】
この時、一致検出回路6の両入力端子には”1”が入力されるので(c)一致検出回路6の出力は”ハイレベル”になる。このため、(d)タイマ回路8の計測時間は(c)一致検出回路6の出力信号の立ち上がりのエッジでリセットされ図3中”ハ”に示すように”0”になる。
【0051】
また、(d)タイマ回路8での計測時間が一定時間に達しないので(e)リセット信号104aは出力されない。
【0052】
さらに、目標値設定回路7は図3中”ニ”に示す時間経過後に、図3中”ホ”に示すタイミングで(a)目標値信号106を”0”から”1”に変更する。
【0053】
前述と同様に図3中”ヘ”に示すタイミングで制御回路1aが(b)設定値信号105を”0”から”1”に変更し、(c)一致検出回路6の出力信号の立ち上がりで(d)タイマ回路8の計測時間をリセットして行く。
【0054】
即ち、制御回路1aが正常動作していれば、(b)設定値信号105が(a)目標値信号106の変化に追従して変化し、(d)タイマ回路8の計測時間をリセットし続けて前記計測時間は一定時間に達しないので(e)リセット信号104aは出力されない。
【0055】
一方、制御回路1aが異常動作をした場合を考える。図4中”イ”の時点で制御回路1aに故障が発生した場合には、図4中”ロ”のタイミングで目標値設定回路7が(a)目標値信号106を”0”から”1”に変更しても、(b)設定値信号105はその変化に追従出来ないので”0”のままである。
【0056】
このため、(c)一致検出回路6の出力は”ローレベル”のままになり、(d)タイマ回路8の計測時間をリセットすることができない。
【0057】
従って、図4中”ハ”に示すように(d)タイマ回路8の計測時間が上昇して図4中”ニ”に示す一定時間に達してしまい、図4中”ホ”に示すタイミングでリセット信号104aが出力される。
【0058】
リセット信号104aが出力されると制御回路1aはリセットされてその異常動作が強制終了され、スイッチ回路5は”off”になりデータバス100との接続が遮断される。
【0059】
また、前述と同様に目標値信号106の定期的な変化が無い場合は監視回路4aが異常であると制御回路1a側で判断することが可能になる。
【0060】
この結果、監視回路4aのタイマ回路8で時間を計測して一定時間に達するとリセット信号104aを出力し、設定値信号105と目標値信号106との値が一致した場合にはタイマ回路8をリセットすると共に目標値信号106の値を変更することにより、アドレスデコーダ回路等の回路構成を用いることなく制御回路1aの異常動作を検出してリセットすることが可能になる。
【0061】
また、制御回路1a側で目標値信号106の定期的な変化を監視することにより、監視回路4a自身の動作異常を確認することが可能になる。
【0062】
さらに、監視回路4aのタイマリセット動作は特定アドレスへの書込み動作ではないので従来例のような問題は生じない。
【0063】
特に、制御回路1aは設定値信号105の値を目標値信号106の値に追従させなければならないので制御回路1aが一定状態に固定されるようにな状況に陥ってもリセット信号104aが出力されることになる。
【0064】
なお、設定値信号105及び目標値信号106を”1ビット”信号とした場合は制御回路1aの出力ポート及び入力ポートを用いることにより、監視回路4aとのデータの授受を容易に行うことができる。
【0065】
特に、使用可能な入出力ポートの少ない制御回路1aで監視回路4aを用いる場合には有効的である。
【0066】
また、勿論、設定値信号105及び目標値信号106は”1ビット”信号ではなく”数ビット”の信号であっても構わない。
【0067】
図3及び図4の説明では目標値設定回路7は一定時間経過後に目標値信号106の値を変更しているが、その変更のタイミングは任意で良く、例えば、一致検出回路6の出力信号の立ち上がりのエッジで目標値信号106の値を変更さても構わない。
【0068】
また、図4の説明に際してはリセット信号104aの出力を負論理出力として例示しているが、正論理出力であっても良い。
【0069】
【発明の効果】
以上説明したことから明らかなように、本発明によれば次のような効果がある。
監視回路のタイマ回路で時間を計測して一定時間に達するとリセット信号を出力し、設定値信号と目標値信号との値が一致した場合にはタイマ回路をリセットすると共に目標値信号の値を変更することにより、また、制御回路側で目標値信号の定期的な変化を監視することにより、回路構成が単純で監視回路自身の動作異常の確認が可能な制御装置が実現できる。
【図面の簡単な説明】
【図1】本発明に係る制御装置の一実施例を示す構成ブロック図である。
【図2】監視回路4aの具体例を示す構成ブロック図である。
【図3】監視回路4aの正常時の動作を説明するタイミング図である。
【図4】監視回路4aの異常時の動作を説明するタイミング図である。
【図5】従来の制御装置の従来例を示す構成ブロック図である。
【符号の説明】
1,1a 制御回路
2 アドレスデコーダ回路
3 論理積回路
4,4a 監視回路
5 スイッチ回路
6 一致検出回路
7 目標値設定回路
8 タイマ回路
100 データバス
101 アドレス信号
102 ライトイネーブル信号
103 チップセレクト信号
104,104a リセット信号
105 設定値信号
106 目標値信号
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a control device that monitors an abnormal operation of a control circuit, and more particularly to a control device that has a simple circuit configuration and can also check an abnormal operation of the monitoring circuit itself.
[0002]
[Prior art]
Conventionally, in a control device installed in a field or the like, due to the nature of the control device, it has been necessary to minimize adverse effects on external devices when a failure occurs in the control device.
[0003]
Specifically, it is necessary to prevent abnormal operations such as outputting abnormal control signals to field devices connected to the control device, blocking the data bus on the system side, and damaging the entire system. was there.
[0004]
For this reason, a conventional control device is provided with a monitoring circuit such as a watch dog timer (hereinafter referred to as WDT) to control abnormal operation of the control device, specifically, abnormal operation of a control circuit such as a microprocessor. To detect.
[0005]
If an abnormal operation of the control circuit is detected, the WDT resets the control circuit and cuts off the connection on the system side.
[0006]
FIG. 5 is a block diagram showing the configuration of such a conventional control apparatus. In FIG. 5, 1 is a control circuit such as a microprocessor for controlling the control device, 2 is an address decoder circuit, 3 is a logical product circuit, 4 is a conventional monitoring circuit such as WDT, 5 is a switch circuit, and 100 is data on the system side. The bus 101 is an address signal, 102 is a write enable signal, 103 is a chip select signal, and 104 is a reset signal.
[0007]
The data bus 100 is connected to the control circuit 1 through the switch circuit 5, and the address signal 101 from the control circuit 1 is connected to the address decoder circuit 2. A chip select signal 103 which is an output of the address decoder circuit 2 is connected to one input terminal of the AND circuit 3.
[0008]
The write enable signal 102 from the control circuit 1 is connected to the other input terminal of the AND circuit 3, and the output of the AND circuit 3 is connected to the timer reset terminal of the monitoring circuit 4.
[0009]
Further, the reset signal 104 that is the output of the monitoring circuit 4 is connected to the reset terminal of the control circuit 1 and the control terminal of the switch circuit 5.
[0010]
Here, the operation of the conventional example shown in FIG. 5 will be described. The control circuit 1 is provided with a routine for performing a regular write operation to the monitoring circuit 4 to which an address is assigned in the program.
[0011]
On the other hand, the monitoring circuit 4 measures the time with an internal timer circuit and outputs a reset signal 104 when a certain time is reached, and measures the timer circuit when the timer reset terminal of the monitoring circuit 4 becomes “active”. To reset the time.
[0012]
If the control circuit 1 is operating normally, write processing to the monitoring circuit 4 is performed periodically.
[0013]
Specifically, an address signal 101 and a data signal (not shown) allocated from the control circuit 1 to the monitoring circuit 4 are output in synchronization, and the write enable signal 102 becomes “high level”.
[0014]
The address signal 101 is decoded by the address decoder circuit 2 and the chip select signal 103 becomes “high level”, so that the output of the AND circuit 3 becomes “high level”.
[0015]
For this reason, since the timer circuit of the monitoring circuit 4 is reset and the reset signal 104 is not output, the control circuit 1 continues to operate.
[0016]
If the control circuit 1 is operating abnormally, the periodic writing process to the monitoring circuit 4 is not performed.
[0017]
For this reason, the timer circuit of the monitoring circuit 4 is not reset and reaches a certain time, and the reset signal 104 is output.
[0018]
When the reset signal 104 is output, the control circuit 1 is reset and the abnormal operation is forcibly terminated, the switch circuit 5 is turned “off”, and the connection with the data bus 100 is cut off.
[0019]
As a result, it is possible to suppress adverse effects on external devices even when a failure occurs in the control device.
[0020]
[Problems to be solved by the invention]
However, in the conventional example shown in FIG. 5, the timer reset operation of the monitoring circuit 4 is performed by a write operation to a specific address. For this reason, if the clock of the control circuit 1 is stopped during the write operation, the output of the AND circuit 3 is fixed to “high level”, and the timer circuit of the monitoring circuit 4 remains reset. The monitoring circuit 4 does not function.
[0021]
In addition, even when an abnormal operation such as writing to all addresses occurs, the timer circuit of the monitoring circuit 4 is reset, so that the monitoring circuit 4 does not function.
[0022]
Further, in recent control circuits 1, there are many MPUs (MicroProcessor Units) incorporating peripheral circuits such as memory circuits and I / O circuits, and the address decoder circuit 3 may be unnecessary. In this case, the monitoring circuit 4 Therefore, it is necessary to provide the address decoder circuit 3 and the like, and the number of circuit parts increases, leading to an increase in cost.
[0023]
Further, there is a problem that the control circuit 1 has no method for confirming whether the monitoring circuit 4 is operating normally.
Therefore, the problem to be solved by the present invention is to realize a control device having a simple circuit configuration and capable of confirming an abnormal operation of the monitoring circuit itself.
[0024]
[Means for Solving the Problems]
In order to achieve such a problem, in the first aspect of the present invention,
In a control device that monitors abnormal operation of a control circuit,
A control circuit that reads a target value signal and outputs a set value signal having the same value as the target value signal;
The target value signal is output to the control circuit, and when the target value signal and the set value signal match, the measurement time is reset and the value of the target value signal is changed. And a monitoring circuit that outputs a reset signal to the control circuit when a predetermined time is reached.
[0025]
In order to achieve such a problem, in the second aspect of the present invention,
In the first of the present invention,
A coincidence detection circuit for detecting a coincidence of values between the target value signal and the set value signal;
A target value setting circuit that outputs the target value signal to the control circuit and changes the value of the target value signal based on the output signal of the coincidence detection circuit;
A timer circuit that measures time and outputs the reset signal when the measurement time reaches a certain time and resets the measurement time by an output signal of the coincidence detection circuit is characterized in that .
[0026]
In order to achieve such a problem, in the third aspect of the present invention,
In the first and second aspects of the present invention,
The control circuit monitors a periodic change in the target value signal from the monitoring circuit to determine abnormality of the monitoring circuit.
[0027]
In order to achieve such a problem, in the fourth aspect of the present invention,
In the first to third aspects of the present invention,
The set value signal and the target value signal are 1-bit signals.
[0028]
In order to achieve such a problem, in the fifth aspect of the present invention,
In the fourth of the present invention,
The set value signal and the target value signal are exchanged through an input / output port of the control circuit.
[0029]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an embodiment of a control apparatus according to the present invention.
[0030]
In FIG. 1, 5 and 100 are assigned the same reference numerals as in FIG. 5, 1a is a control circuit, 4a is a monitoring circuit, 104a is a reset signal, 105 is a set value signal, and 106 is a target value signal.
[0031]
The data bus 100 is connected to the control circuit 1a via the switch circuit 5, the set value signal 105 from the control circuit 1 is connected to the input terminal of the monitoring circuit 4a, and the target value signal 106 from the monitoring circuit 4a is the control circuit 1a. Connected to the input terminal.
[0032]
The reset signal 104a, which is the output of the monitoring circuit 4a, is connected to the reset terminal of the control circuit 1a and the control terminal of the switch circuit 5, respectively.
[0033]
Here, the operation of the embodiment shown in FIG. 1 will be described. The control circuit 1 a provides a routine for periodically reading the target value signal 106 in the program and outputting the set value signal 105 having the same value as the target value signal 106.
[0034]
On the other hand, the monitoring circuit 4a measures the time with a timer circuit provided therein, and outputs a reset signal 104a when a predetermined time is reached, and monitors when the set value signal 105 and the target value signal 106 match. The timer circuit in the circuit 4a is reset and the value of the target value signal 106 is changed.
[0035]
If the control circuit 1a is operating normally, the target value signal 106 is periodically read, and a signal having the same value as the target value signal 106 is output to the monitoring circuit 4a as the set value signal 105.
[0036]
The monitoring circuit 4a compares the set value signal 105 input from the control circuit 1a with the target value signal 106, and when the values match, the timer circuit in the monitoring circuit 4a is reset and the value of the target value signal 106 is set. To change.
[0037]
For this reason, since the measurement time of the timer circuit in the monitoring circuit 4a does not reach a certain time, the reset signal 104a is not output.
[0038]
If the control circuit 1a operates abnormally, the target value signal 106 is periodically read, and the operation of outputting a signal having the same value as the target value signal 106 as the set value signal 105 is not performed.
[0039]
For this reason, the set value signal 105 and the target value signal 106 do not coincide with each other, the timer circuit in the monitoring circuit 4a continues to operate and reaches a certain time, and the reset signal 104a is output.
[0040]
When the reset signal 104a is output, the control circuit 1a is reset and its abnormal operation is forcibly terminated, the switch circuit 5 is turned off, and the connection with the data bus 100 is cut off.
[0041]
On the control circuit 1a side, if the monitoring circuit 4a operates normally, the target value signal 106 changes after a predetermined time since the control circuit 1a changes the value of the set value signal 105. However, the monitoring circuit 4a If the operation is abnormal, the target value signal 106 does not change.
[0042]
That is, on the control circuit 1a side, when there is no periodic change in the target value signal 106 of the monitoring circuit 4a, it can be determined that the monitoring circuit 4a is abnormal.
[0043]
Here, the embodiment shown in FIG. 1 will be described in detail with reference to FIGS. FIG. 2 is a configuration block diagram showing a specific example of the monitoring circuit 4a shown in FIG. 1, and FIGS. 3 and 4 are timing diagrams for explaining the operation of the monitoring circuit 4a in normal and abnormal states.
[0044]
2, 104a, 105 and 106 are assigned the same reference numerals as in FIG. 1, 6 is a coincidence detection circuit, 7 is a target value setting circuit, and 8 is a timer circuit.
[0045]
The set value signal 105 is connected to one input terminal of the coincidence detection circuit 6, and the output of the coincidence detection circuit 6 is connected to the control input terminal of the target value setting circuit 7 and the timer reset terminal of the timer circuit 8.
[0046]
The output of the target value setting circuit 7 is output as a target value signal 106 and is connected to the other input terminal of the coincidence detection circuit 6. The timer circuit 8 outputs a reset signal 104a.
[0047]
3 and 4, (a) is the target value signal 106, (b) is the set value signal 105, (c) is the output signal of the coincidence detection circuit 6, (d) the measurement time of the timer circuit 8, (e ) Is a reset signal 104a.
[0048]
For example, consider a case where the set value signal 105 and the target value signal 106 are “1 bit” signals and the control circuit 1a operates normally.
[0049]
The target value setting circuit 7 changes (a) the target value signal 106 from “1” to “0” at the timing indicated by “A” in FIG. Since the control circuit 1a is operating normally, this change is read, and (b) the set value signal 105 is changed from “1” to “0” at the timing indicated by “B” in FIG.
[0050]
At this time, since “1” is input to both input terminals of the coincidence detection circuit 6, (c) the output of the coincidence detection circuit 6 becomes “high level”. Therefore, (d) the measurement time of the timer circuit 8 is reset at the rising edge of the output signal of the (c) coincidence detection circuit 6 and becomes “0” as indicated by “c” in FIG.
[0051]
Further, (d) since the measurement time in the timer circuit 8 does not reach a certain time, (e) the reset signal 104a is not output.
[0052]
Further, the target value setting circuit 7 changes the target value signal 106 from “0” to “1” at the timing indicated by “e” in FIG. 3 after the time indicated by “d” in FIG. 3 elapses.
[0053]
As described above, the control circuit 1a changes (b) the set value signal 105 from “0” to “1” at the timing indicated by “f” in FIG. 3, and (c) at the rising edge of the output signal of the coincidence detection circuit 6. (D) The measurement time of the timer circuit 8 is reset.
[0054]
That is, if the control circuit 1a is operating normally, (b) the set value signal 105 changes following (a) the change in the target value signal 106, and (d) the timer circuit 8 continues to reset the measurement time. Since the measurement time does not reach a certain time, (e) the reset signal 104a is not output.
[0055]
On the other hand, consider the case where the control circuit 1a operates abnormally. If a failure occurs in the control circuit 1a at the time of "b" in FIG. 4, the target value setting circuit 7 changes the target value signal 106 from "0" to "1" at the timing of "b" in FIG. Even if it is changed to "(b)", the set value signal 105 remains "0" because it cannot follow the change.
[0056]
For this reason, (c) the output of the coincidence detection circuit 6 remains “low level”, and (d) the measurement time of the timer circuit 8 cannot be reset.
[0057]
Accordingly, as shown by “c” in FIG. 4, (d) the measurement time of the timer circuit 8 increases and reaches a certain time indicated by “d” in FIG. 4, and at the timing indicated by “e” in FIG. A reset signal 104a is output.
[0058]
When the reset signal 104a is output, the control circuit 1a is reset and its abnormal operation is forcibly terminated, the switch circuit 5 is turned off, and the connection with the data bus 100 is cut off.
[0059]
Similarly to the above, when there is no periodic change in the target value signal 106, the control circuit 1a can determine that the monitoring circuit 4a is abnormal.
[0060]
As a result, the timer circuit 8 of the monitoring circuit 4a measures the time and outputs a reset signal 104a when a predetermined time is reached. When the set value signal 105 and the target value signal 106 match, the timer circuit 8 is turned off. By resetting and changing the value of the target value signal 106, it is possible to detect and reset the abnormal operation of the control circuit 1a without using a circuit configuration such as an address decoder circuit.
[0061]
In addition, by monitoring the change in the target value signal 106 on the control circuit 1a side, it becomes possible to confirm the abnormal operation of the monitoring circuit 4a itself.
[0062]
Further, since the timer reset operation of the monitoring circuit 4a is not a write operation to a specific address, the problem as in the conventional example does not occur.
[0063]
In particular, since the control circuit 1a must cause the value of the set value signal 105 to follow the value of the target value signal 106, the reset signal 104a is output even if the control circuit 1a falls into a fixed state. Will be.
[0064]
When the set value signal 105 and the target value signal 106 are “1 bit” signals, data can be easily exchanged with the monitoring circuit 4a by using the output port and input port of the control circuit 1a. .
[0065]
This is particularly effective when the monitoring circuit 4a is used in the control circuit 1a that has few usable input / output ports.
[0066]
Of course, the set value signal 105 and the target value signal 106 may be “several bits” signals instead of “1 bit” signals.
[0067]
In the description of FIGS. 3 and 4, the target value setting circuit 7 changes the value of the target value signal 106 after a predetermined time has elapsed. However, the timing of the change may be arbitrary, for example, the output signal of the coincidence detection circuit 6 The value of the target value signal 106 may be changed at the rising edge.
[0068]
In the description of FIG. 4, the output of the reset signal 104a is illustrated as a negative logic output, but may be a positive logic output.
[0069]
【The invention's effect】
As is apparent from the above description, the present invention has the following effects.
When the timer circuit of the monitoring circuit measures the time and reaches a certain time, a reset signal is output, and when the set value signal and the target value signal match, the timer circuit is reset and the value of the target value signal is set. By changing the value and monitoring the periodic change of the target value signal on the control circuit side, it is possible to realize a control device having a simple circuit configuration and capable of confirming an operation abnormality of the monitoring circuit itself.
[Brief description of the drawings]
FIG. 1 is a configuration block diagram showing an embodiment of a control device according to the present invention.
FIG. 2 is a block diagram showing a specific example of a monitoring circuit 4a.
FIG. 3 is a timing chart for explaining the normal operation of the monitoring circuit 4a.
FIG. 4 is a timing chart for explaining the operation when the monitoring circuit 4a is abnormal.
FIG. 5 is a block diagram showing a conventional example of a conventional control device.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1,1a Control circuit 2 Address decoder circuit 3 AND circuit 4, 4a Monitoring circuit 5 Switch circuit 6 Match detection circuit 7 Target value setting circuit 8 Timer circuit 100 Data bus 101 Address signal 102 Write enable signal 103 Chip select signal 104, 104a Reset signal 105 Set value signal 106 Target value signal

Claims (5)

制御回路の異常動作を監視する制御装置において、
目標値信号を読み込み前記目標値信号と同値の設定値信号を出力する制御回路と、
前記制御回路に前記目標値信号を出力し、前記目標値信号と前記設定値信号との値が一致した場合には計測時間をリセットすると共に前記目標値信号の値を変更し、前記計測時間が一定時間に達した場合には前記制御回路にリセット信号を出力する監視回路と
を備えたことを特徴する制御装置。
In a control device that monitors abnormal operation of a control circuit,
A control circuit that reads a target value signal and outputs a set value signal having the same value as the target value signal;
The target value signal is output to the control circuit, and when the target value signal and the set value signal match, the measurement time is reset and the value of the target value signal is changed. A control device comprising: a monitoring circuit that outputs a reset signal to the control circuit when a predetermined time is reached.
前記監視回路が
前記目標値信号と前記設定値信号との値の一致を検出する一致検出回路と、
前記制御回路に前記目標値信号を出力すると共に前記一致検出回路の出力信号に基づき前記目標値信号の値を変更する目標値設定回路と、
時間を計測して計測時間が一定時間に達した場合に前記リセット信号を出力すると共に前記一致検出回路の出力信号により前記計測時間をリセットするタイマ回路とから構成されたことを特徴する
特許請求の範囲請求項1記載の制御装置。
A coincidence detection circuit for detecting a coincidence of values between the target value signal and the set value signal;
A target value setting circuit that outputs the target value signal to the control circuit and changes the value of the target value signal based on the output signal of the coincidence detection circuit;
A timer circuit that measures time and outputs the reset signal when the measurement time reaches a certain time, and resets the measurement time by an output signal of the coincidence detection circuit. The control device according to claim 1.
前記制御回路が前記監視回路からの前記目標値信号の定期的な変化を監視して前記監視回路の異常を判断することを特徴とする
特許請求の範囲請求項1及び請求項2記載の制御装置。
3. The control device according to claim 1, wherein the control circuit monitors a periodic change of the target value signal from the monitoring circuit to determine an abnormality of the monitoring circuit. .
前記設定値信号及び前記目標値信号が1ビットの信号であることを特徴とする特許請求の範囲請求項1乃至請求項3記載の制御装置。4. The control device according to claim 1, wherein the set value signal and the target value signal are 1-bit signals. 前記設定値信号及び前記目標値信号を前記制御回路の入出力ポートを介して授受することを特徴とする
特許請求の範囲請求項4記載の制御装置。
5. The control device according to claim 4, wherein the set value signal and the target value signal are exchanged through an input / output port of the control circuit.
JP22226597A 1997-08-19 1997-08-19 Control device Expired - Fee Related JP3757407B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22226597A JP3757407B2 (en) 1997-08-19 1997-08-19 Control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22226597A JP3757407B2 (en) 1997-08-19 1997-08-19 Control device

Publications (2)

Publication Number Publication Date
JPH1165892A JPH1165892A (en) 1999-03-09
JP3757407B2 true JP3757407B2 (en) 2006-03-22

Family

ID=16779684

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22226597A Expired - Fee Related JP3757407B2 (en) 1997-08-19 1997-08-19 Control device

Country Status (1)

Country Link
JP (1) JP3757407B2 (en)

Also Published As

Publication number Publication date
JPH1165892A (en) 1999-03-09

Similar Documents

Publication Publication Date Title
US6912670B2 (en) Processor internal error handling in an SMP server
US5864656A (en) System for automatic fault detection and recovery in a computer system
US7246257B2 (en) Computer system and memory control method thereof
US7774690B2 (en) Apparatus and method for detecting data error
JP2000194455A (en) Data processor and its data processing method
JP3757407B2 (en) Control device
JPH10105422A (en) Control circuit of protecting device
WO2004003714A2 (en) Circuit for detection of internal microprocessor watchdog device execution and method for resetting microprocessor system
JPH11259340A (en) Reactivation control circuit for computer
JPH0354652A (en) Trouble locating method for input/output port
JP2508305B2 (en) Initial value determination device
JPH0236003B2 (en)
KR100194979B1 (en) Determination of Operation Mode of Redundant Processor System
JP2004062389A (en) Circuit for detecting abnormal operation of memory, integrated circuit, and method of detecting abnormal operation
JPH0581138A (en) Microprogram controller
JP2002278800A (en) Monitor and monitoring method
JPH0421993A (en) Storage device
KR960003096B1 (en) Error detecting circuit
JP2002073375A (en) Software operation monitoring method in system that contains microcomputer
JPH0887431A (en) Abnormality detecting device for central processing unit
JPH025119A (en) Power supply control system
JPH03105514A (en) Detecting/resetting circuit for cut-off of power supply
JPH0950305A (en) Programmable controller and fault detection method therefor
JPH0612292A (en) Microcomputer
JPH09212201A (en) Control circuit for production facility

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051111

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20051205

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051218

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100113

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100113

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110113

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120113

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120113

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130113

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140113

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees