JPH1165892A - Control device - Google Patents
Control deviceInfo
- Publication number
- JPH1165892A JPH1165892A JP9222265A JP22226597A JPH1165892A JP H1165892 A JPH1165892 A JP H1165892A JP 9222265 A JP9222265 A JP 9222265A JP 22226597 A JP22226597 A JP 22226597A JP H1165892 A JPH1165892 A JP H1165892A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- signal
- value 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.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
(57)【要約】
【課題】 回路構成が単純で監視回路自身の動作異常の
確認が可能な制御装置を実現する。
【解決手段】 制御回路の異常動作を監視する制御装置
において、目標値信号を読み込み目標値信号と同値の設
定値信号を出力する制御回路と、制御回路に目標値信号
を出力し、目標値信号と設定値信号との値が一致した場
合には計測時間をリセットすると共に目標値信号の値を
変更し、計測時間が一定時間に達した場合には制御回路
にリセット信号を出力する監視回路とを設ける。
(57) [Problem] To provide a control device having a simple circuit configuration and capable of confirming an abnormal operation of a monitoring circuit itself. In a control device for monitoring an 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, outputs a target value signal to the control circuit, and outputs the target value signal A monitoring circuit that resets the measurement time and changes the value of the target value signal when the value of the set value signal and the set value signal match, and outputs a reset signal to the control circuit when the measurement time reaches a certain time. Is provided.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、制御回路の異常動
作を監視する制御装置に関し、特に回路構成が単純で監
視回路自身の動作異常の確認も可能な制御装置に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control device for monitoring an abnormal operation of a control circuit, and more particularly to a control device having a simple circuit configuration and capable of confirming an abnormal operation of the monitor circuit itself.
【0002】[0002]
【従来の技術】従来、フィールド等に設置された制御装
置では、その性質上、制御装置の故障発生時における外
部装置への悪影響等を最小限に抑える必要があった。2. Description of the Related Art Conventionally, in a control device installed in a field or the like, it is necessary to minimize adverse effects on external devices when a failure occurs in the control device due to its nature.
【0003】具体的には、制御装置に接続されたフィー
ルド機器に異常な制御信号を出力したり、システム側の
データバスを閉塞させてしまったり、その他、システム
全体に対してダメージを与える動作等を防ぐ必要があっ
た。[0003] Specifically, an abnormal control signal is output to a field device connected to the control device, a data bus on the system side is blocked, and other operations that damage the entire system are performed. Had to be prevented.
【0004】このため、従来の制御装置ではウォッチド
ッグタイマ(Watch Dog Timer:以下、WDTと呼
ぶ。)等の監視回路を設け、制御装置の異常動作、具体
的にはマイクロプロセッサ等の制御回路の異常動作を検
出する。For this reason, the conventional control device is provided with a monitoring circuit such as a watch dog timer (hereinafter referred to as WDT), and abnormal operation of the control device, specifically, a control circuit such as a microprocessor. Detect abnormal operation.
【0005】もし、前記制御回路の異常動作が検出され
ればWDTが当該制御回路をリセットすると共にシステ
ム側の接続を遮断していた。If an abnormal operation of the control circuit is detected, the WDT resets the control circuit and disconnects the connection on the system side.
【0006】図5はこのような従来の制御装置を示す構
成ブロック図である。図5において1は制御装置を制御
するマイクロプロセッサ等の制御回路、2はアドレスデ
コーダ回路、3は論理積回路、4は従来のWDT等の監
視回路、5はスイッチ回路、100はシステム側のデー
タバス、101はアドレス信号、102はライトイネー
ブル信号、103はチップセレクト信号、104はリセ
ット信号である。FIG. 5 is a block diagram showing the configuration of such a conventional control device. In FIG. 5, 1 is a control circuit such as a microprocessor for controlling a control device, 2 is an address decoder circuit, 3 is an AND circuit, 4 is a monitoring circuit such as a conventional WDT, 5 is a switch circuit, and 100 is data on the system side. A 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】データバス100はスイッチ回路5を介し
て制御回路1に接続され、制御回路1からのアドレス信
号101はアドレスデコーダ回路2に接続される。アド
レスデコーダ回路2の出力であるチップセレクト信号1
03は論理積回路3の一方の入力端子に接続される。The data bus 100 is connected to the control circuit 1 via the switch circuit 5, and an address signal 101 from the control circuit 1 is connected to the address decoder circuit 2. Chip select signal 1 output from address decoder circuit 2
03 is connected to one input terminal of the AND circuit 3.
【0008】また、制御回路1からのライトイネーブル
信号102は論理積回路3の他方の入力端子に接続さ
れ、論理積回路3の出力は監視回路4のタイマリセット
端子に接続される。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】さらに、監視回路4の出力であるリセット
信号104は制御回路1のリセット端子及びスイッチ回
路5の制御端子にそれぞれ接続される。A reset signal 104 output from the monitoring circuit 4 is connected to a reset terminal of the control circuit 1 and a control terminal of the switch circuit 5, respectively.
【0010】ここで、図5に示す従来例の動作を説明す
る。制御回路1はそのプログラム中にアドレスが割り振
られた監視回路4への定期的な書込み動作を行うルーチ
ンが設けられる。Now, 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 periodic writing operation to the monitoring circuit 4 to which an address is assigned during the program.
【0011】一方、監視回路4では内部に設けられたタ
イマ回路で時間を計測して一定時間に達するとリセット
信号104を出力し、監視回路4のタイマリセット端子
が”アクティブ”になると前記タイマ回路で計測してい
る時間をリセットする。On the other hand, the monitoring circuit 4 measures the time by a timer circuit provided therein and outputs a reset signal 104 when a predetermined time is reached. When the timer reset terminal of the monitoring circuit 4 becomes "active", the timer circuit 4 Reset the time measured by.
【0012】もし、制御回路1が正常動作していれば定
期的に監視回路4への書込み処理が行われる。If the control circuit 1 is operating normally, write processing to the monitoring circuit 4 is performed periodically.
【0013】具体的には、制御回路1から監視回路4に
割り振られたアドレス信号101及びデータ信号(図示
せず。)が同期して出力され、ライトイネーブル信号1
02が”ハイレベル”になる。More specifically, an address signal 101 and a data signal (not shown) allocated from the control circuit 1 to the monitoring circuit 4 are synchronously output, and the write enable signal 1
02 becomes “high level”.
【0014】アドレス信号101はアドレスデコーダ回
路2においてデコードされチップセレクト信号103
が”ハイレベル”になるので論理積回路3の出力が”ハ
イレベル”になる。Address signal 101 is decoded by address decoder circuit 2 and chip select signal 103
Becomes "high level", the output of the AND circuit 3 becomes "high level".
【0015】このため、監視回路4のタイマ回路がリセ
ットされリセット信号104が出力されないので、制御
回路1は動作を継続する。Therefore, the timer circuit of the monitoring circuit 4 is reset and the reset signal 104 is not output, so that the control circuit 1 continues to operate.
【0016】もし、制御回路1が異常動作であれば監視
回路4への定期的な書込み処理が行われないことにな
る。If the control circuit 1 operates abnormally, the write processing to the monitoring circuit 4 is not performed periodically.
【0017】このため、監視回路4のタイマ回路のリセ
ットが行われずに一定時間に達してしまい、リセット信
号104が出力される。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】リセット信号104が出力されると制御回
路1はリセットされてその異常動作が強制終了され、ス
イッチ回路5は”off”になりデータバス100との
接続が遮断される。When the reset signal 104 is output, the control circuit 1 is reset and its abnormal operation is forcibly terminated, the switch circuit 5 becomes "off", and the connection with the data bus 100 is cut off.
【0019】この結果、制御機器の故障発生時でも外部
機器への悪影響等を抑えることが可能になる。As a result, even when a failure occurs in the control device, it is possible to suppress adverse effects on external devices.
【0020】[0020]
【発明が解決しようとする課題】しかし、図5に示す従
来例では監視回路4のタイマリセット動作は特定アドレ
スへの書込み動作により行われていた。このため、この
書込み動作中に制御回路1のクロックが停止する状態に
陥ると論理積回路3の出力が”ハイレベル”に固定され
てしまい、監視回路4のタイマ回路がリセットされたま
まになり監視回路4が機能しなくなる。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 stops during this write operation, the output of the AND circuit 3 is fixed at "high level", and the timer circuit of the monitoring circuit 4 remains reset. The monitoring circuit 4 stops functioning.
【0021】また、全アドレスに書込み動作するような
異常動作に陥った場合にも監視回路4のタイマ回路がリ
セットされてしまうので監視回路4は機能しなくなる。Also, when an abnormal operation such as a write operation to all addresses occurs, the timer circuit of the monitoring circuit 4 is reset, so that the monitoring circuit 4 does not function.
【0022】また、最近の制御回路1では記憶回路やI
/O回路等の周辺回路を内部に取り込んだMPU(Micr
oProcessor Unit)が多く、アドレスデコーダ回路3が
不要な場合があり、この場合には監視回路4のためにア
ドレスデコーダ回路3等を設ける必要があり回路部品点
数が多くなってコストアップにつながる。Further, in the recent control circuit 1, a memory circuit and I
MPU that incorporates peripheral circuits such as the I / O circuit (Micr
In some cases, the address decoder circuit 3 is unnecessary, and in this case, it is necessary to provide the address decoder circuit 3 and the like for the monitoring circuit 4, which increases the number of circuit components and leads to an increase in cost.
【0023】さらに、制御回路1からは監視回路4が正
常に動作しているのかを確認する方法がないと言った問
題点があった。従って本発明が解決しようとする課題
は、回路構成が単純で監視回路自身の動作異常の確認が
可能な制御装置を実現することにある。Further, there is a problem that the control circuit 1 has no method for confirming whether the monitoring circuit 4 is operating normally. Therefore, an object of 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】[0024]
【課題を解決するための手段】このような課題を達成す
るために、本発明の第1では、制御回路の異常動作を監
視する制御装置において、目標値信号を読み込み前記目
標値信号と同値の設定値信号を出力する制御回路と、前
記制御回路に前記目標値信号を出力し、前記目標値信号
と前記設定値信号との値が一致した場合には計測時間を
リセットすると共に前記目標値信号の値を変更し、前記
計測時間が一定時間に達した場合には前記制御回路にリ
セット信号を出力する監視回路とを備えたことを特徴す
るものである。According to a first aspect of the present invention, a control device for monitoring an abnormal operation of a control circuit reads a target value signal and outputs a signal having the same value as the target value signal. A control circuit for outputting a set value signal, outputting the target value signal to the control circuit, and resetting a measurement time when the value of the target value signal matches the value of the set value signal, and resetting the target value signal. And a monitoring circuit that outputs a reset signal to the control circuit when the measurement time reaches a predetermined time.
【0025】このような課題を達成するために、本発明
の第2では、本発明の第1において、前記監視回路が前
記目標値信号と前記設定値信号との値の一致を検出する
一致検出回路と、前記制御回路に前記目標値信号を出力
すると共に前記一致検出回路の出力信号に基づき前記目
標値信号の値を変更する目標値設定回路と、時間を計測
して計測時間が一定時間に達した場合に前記リセット信
号を出力すると共に前記一致検出回路の出力信号により
前記計測時間をリセットするタイマ回路とから構成され
たことを特徴するものである。According to a second aspect of the present invention, in the first aspect of the present invention, the monitoring circuit detects a coincidence between the target value signal and the set value signal. A circuit, 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 an output signal of the coincidence detection circuit; and And a timer circuit for outputting the reset signal when the time has reached, and resetting the measurement time in accordance with the output signal of the coincidence detection circuit.
【0026】このような課題を達成するために、本発明
の第3では、本発明の第1及び第2において、前記制御
回路が前記監視回路からの前記目標値信号の定期的な変
化を監視して前記監視回路の異常を判断することを特徴
とするものである。In order to achieve the above object, according to a third aspect of the present invention, in the first and second aspects of the present invention, the control circuit monitors a periodic change of the target value signal from the monitoring circuit. Then, the abnormality of the monitoring circuit is determined.
【0027】このような課題を達成するために、本発明
の第4では、本発明の第1〜第3において、前記設定値
信号及び前記目標値信号が1ビットの信号であることを
特徴とするものである。In order to achieve the above object, a fourth aspect of the present invention is characterized in that in the first to third aspects of the present invention, the set value signal and the target value signal are 1-bit signals. Is what you do.
【0028】このような課題を達成するために、本発明
の第5では、本発明の第4において、前記設定値信号及
び前記目標値信号を前記制御回路の入出力ポートを介し
て授受することを特徴とするものである。In order to achieve the above object, according to a fifth aspect of the present invention, in the fourth aspect of the present invention, the set value signal and the target value signal are transmitted and received via an input / output port of the control circuit. It is characterized by the following.
【0029】[0029]
【発明の実施の形態】以下本発明を図面を用いて詳細に
説明する。図1は本発明に係る制御装置の一実施例を示
す構成ブロック図である。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the drawings. FIG. 1 is a configuration block diagram showing one embodiment of a control device according to the present invention.
【0030】図1において5及び100は図5と同一符
号を付してあり、1aは制御回路、4aは監視回路、1
04aはリセット信号、105は設定値信号、106は
目標値信号である。In FIG. 1, reference numerals 5 and 100 denote the same reference numerals as in FIG. 5, 1a is a control circuit, 4a is a monitoring circuit,
04a is a reset signal, 105 is a set value signal, and 106 is a target value signal.
【0031】データバス100はスイッチ回路5を介し
て制御回路1aに接続され、制御回路1からの設定値信
号105は監視回路4aの入力端子に接続され、監視回
路4aからの目標値信号106は制御回路1aの入力端
子に接続される。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 Connected to the input terminal of control circuit 1a.
【0032】また、監視回路4aの出力であるリセット
信号104aは制御回路1aのリセット端子及びスイッ
チ回路5の制御端子にそれぞれ接続される。The reset signal 104a output from 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】ここで、図1に示す実施例の動作を説明す
る。制御回路1aはそのプログラム中に定期的に目標値
信号106を読み込み、目標値信号106と同値の設定
値信号105を出力するルーチンを設ける。Here, the operation of the embodiment shown in FIG. 1 will be described. The control circuit 1a provides a routine for periodically reading the target value signal 106 during the program and outputting a set value signal 105 having the same value as the target value signal 106.
【0034】一方、監視回路4aでは内部に設けられた
タイマ回路で時間を計測して一定時間に達するとリセッ
ト信号104aを出力し、設定値信号105と目標値信
号106との値が一致した場合には監視回路4a内のタ
イマ回路をリセットすると共に目標値信号106の値を
変更する。On the other hand, the monitoring circuit 4a measures the time by a timer circuit provided therein and outputs a reset signal 104a when a predetermined time is reached. When the value of the set value signal 105 matches the value of the target value signal 106, Resets the timer circuit in the monitoring circuit 4a and changes the value of the target value signal 106.
【0035】もし、制御回路1aが正常動作していれば
定期的に目標値信号106を読み込み、目標値信号10
6と同値の信号を設定値信号105として監視回路4a
に出力する。If the control circuit 1a is operating normally, the target value signal 106 is read periodically and the target value signal
The monitoring circuit 4a uses a signal having the same value as the value 6 as the set value signal 105.
Output to
【0036】監視回路4aは制御回路1aから入力され
た設定値信号105と目標値信号106とを比較してそ
の値が一致した場合には監視回路4a内のタイマ回路を
リセットすると共に目標値信号106の値を変更する。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, resets the timer circuit in the monitoring circuit 4a and resets the target value signal. Change the value of 106.
【0037】このため、監視回路4a内のタイマ回路の
計測時間が一定時間には達しないのでリセット信号10
4aが出力されない。For this reason, since the measurement time of the timer circuit in the monitoring circuit 4a does not reach a predetermined time, the reset signal 10
4a is not output.
【0038】もし、制御回路1aが異常動作であれば定
期的に目標値信号106を読み込み、目標値信号106
と同値の信号を設定値信号105として出力する動作が
行われないことになる。If the control circuit 1a operates abnormally, the target value signal 106 is periodically read and the target value signal 106 is read.
The operation of outputting a signal of the same value as the set value signal 105 is not performed.
【0039】このため、設定値信号105と目標値信号
106とが一致せずに監視回路4a内のタイマ回路が動
作し続けて一定時間に達してしまい、リセット信号10
4aが出力される。For this reason, the set value signal 105 does not match the target value signal 106, the timer circuit in the monitoring circuit 4a continues to operate and reaches a certain time, and the reset signal 10
4a is output.
【0040】リセット信号104aが出力されると制御
回路1aはリセットされてその異常動作が強制終了さ
れ、スイッチ回路5は”off”になりデータバス10
0との接続が遮断される。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 data bus 10 is turned off.
The connection with 0 is cut off.
【0041】また、制御回路1a側では監視回路4aが
正常に動作していれば、制御回路1aが設定値信号10
5の値を変更してから一定時間の後に目標値信号106
が変化するが、監視回路4aが異常動作であれば目標値
信号106の変化が起こらない。On the control circuit 1a side, if the monitoring circuit 4a operates normally, the control circuit 1a outputs the set value signal 10
5 after a certain period of time after changing the value of
However, if the monitoring circuit 4a operates abnormally, the target value signal 106 does not change.
【0042】即ち、制御回路1a側では監視回路4aの
目標値信号106の定期的な変化が無い場合は監視回路
4aの異常と判断することが可能になる。That is, if there is no periodic change in the target value signal 106 of the monitoring circuit 4a, the control circuit 1a can determine that the monitoring circuit 4a is abnormal.
【0043】ここで、さらに、図1に示す実施例を図
2,図3及び図4を用いて詳細に説明する。図2は図1
に示す監視回路4aの具体例を示す構成ブロック図、図
3及び図4は監視回路4aの正常時及び異常時の動作を
説明するタイミング図である。Here, the embodiment shown in FIG. 1 will be described in detail with reference to FIGS. 2, 3 and 4. FIG. 2 shows FIG.
3 is a block diagram showing a specific example of the monitoring circuit 4a, and FIGS. 3 and 4 are timing charts for explaining normal and abnormal operations of the monitoring circuit 4a.
【0044】図2において104a,105及び106
は図1と同一符号を付してあり、6は一致検出回路、7
は目標値設定回路、8はタイマ回路である。In FIG. 2, 104a, 105 and 106
Are given the same reference numerals as in FIG. 1, 6 is a match detection circuit, 7
Is a target value setting circuit, and 8 is a timer circuit.
【0045】設定値信号105は一致検出回路6の一方
の入力端子に接続され、一致検出回路6の出力は目標値
設定回路7の制御入力端子及びタイマ回路8のタイマリ
セット端子にそれぞれ接続される。The set value signal 105 is connected to one input terminal of the match detection circuit 6, and the output of the match 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, respectively. .
【0046】目標値設定回路7の出力は目標値信号10
6として出力されると共に一致検出回路6の他方の入力
端子に接続される。また、タイマ回路8からはリセット
信号104aが出力される。The output of the target value setting circuit 7 is the target value signal 10
6 and connected to the other input terminal of the match detection circuit 6. Further, the reset signal 104a is output from the timer circuit 8.
【0047】また、図3及び図4において(a)は目標
値信号106、(b)は設定値信号105、(c)は一
致検出回路6の出力信号、(d)タイマ回路8の計測時
間、(e)はリセット信号104aである。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, and (d) is the measurement time of the timer circuit 8. , (E) are reset signals 104a.
【0048】例えば、設定値信号105及び目標値信号
106を”1ビット”の信号とし、制御回路1aが正常
動作をする場合を考える。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】図3中”イ”に示すタイミングで目標値設
定回路7が(a)目標値信号106を”1”から”0”
に変更する。制御回路1aは正常に動作しているのでこ
の変更を読み取り、(b)設定値信号105を図3中”
ロ”に示すタイミングで”1”から”0”に変更する。The target value setting circuit 7 (a) changes the target value signal 106 from "1" to "0" at the timing "A" in FIG.
Change to Since the control circuit 1a is operating normally, this change is read, and (b) the set value signal 105 is changed to "
It changes from "1" to "0" at the timing shown in "b".
【0050】この時、一致検出回路6の両入力端子に
は”1”が入力されるので(c)一致検出回路6の出力
は”ハイレベル”になる。このため、(d)タイマ回路
8の計測時間は(c)一致検出回路6の出力信号の立ち
上がりのエッジでリセットされ図3中”ハ”に示すよう
に”0”になる。At this time, since "1" is inputted to both input terminals of the coincidence detecting circuit 6, (c) the output of the coincidence detecting 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 coincidence detection circuit 6 and (c) becomes "0" as shown by "c" in FIG.
【0051】また、(d)タイマ回路8での計測時間が
一定時間に達しないので(e)リセット信号104aは
出力されない。Further, (d) the reset signal 104a is not output because the time measured by the timer circuit 8 does not reach the predetermined time.
【0052】さらに、目標値設定回路7は図3中”ニ”
に示す時間経過後に、図3中”ホ”に示すタイミングで
(a)目標値信号106を”0”から”1”に変更す
る。Further, the target value setting circuit 7 is set to "d" in FIG.
After the lapse of the time shown by (a), the target value signal 106 is changed from "0" to "1" at the timing shown by "e" in FIG.
【0053】前述と同様に図3中”ヘ”に示すタイミン
グで制御回路1aが(b)設定値信号105を”0”か
ら”1”に変更し、(c)一致検出回路6の出力信号の
立ち上がりで(d)タイマ回路8の計測時間をリセット
して行く。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) the output signal of the coincidence detection circuit 6. (D), the measurement time of the timer circuit 8 is reset.
【0054】即ち、制御回路1aが正常動作していれ
ば、(b)設定値信号105が(a)目標値信号106
の変化に追従して変化し、(d)タイマ回路8の計測時
間をリセットし続けて前記計測時間は一定時間に達しな
いので(e)リセット信号104aは出力されない。That is, if the control circuit 1a is operating normally, (b) the set value signal 105 becomes (a) the target value signal 106
(E) the reset signal 104a is not output because the measured time of the timer circuit 8 continues to be reset and the measured time does not reach the fixed time.
【0055】一方、制御回路1aが異常動作をした場合
を考える。図4中”イ”の時点で制御回路1aに故障が
発生した場合には、図4中”ロ”のタイミングで目標値
設定回路7が(a)目標値信号106を”0”から”
1”に変更しても、(b)設定値信号105はその変化
に追従出来ないので”0”のままである。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 point "A" in FIG. 4, the target value setting circuit 7 changes the (a) target value signal 106 from "0" at the timing "B" in FIG.
Even if it is changed to "1", (b) the set value signal 105 remains "0" because it cannot follow the change.
【0056】このため、(c)一致検出回路6の出力
は”ローレベル”のままになり、(d)タイマ回路8の
計測時間をリセットすることができない。Therefore, (c) the output of the coincidence detection circuit 6 remains at "low level", and (d) the measurement time of the timer circuit 8 cannot be reset.
【0057】従って、図4中”ハ”に示すように(d)
タイマ回路8の計測時間が上昇して図4中”ニ”に示す
一定時間に達してしまい、図4中”ホ”に示すタイミン
グでリセット信号104aが出力される。Therefore, as shown in FIG.
The measurement time of the timer circuit 8 increases to reach a certain time indicated by "D" in FIG. 4, and the reset signal 104a is output at a timing indicated by "E" in FIG.
【0058】リセット信号104aが出力されると制御
回路1aはリセットされてその異常動作が強制終了さ
れ、スイッチ回路5は”off”になりデータバス10
0との接続が遮断される。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 data bus 10 is turned off.
The connection with 0 is cut off.
【0059】また、前述と同様に目標値信号106の定
期的な変化が無い場合は監視回路4aが異常であると制
御回路1a側で判断することが可能になる。As described above, if 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】この結果、監視回路4aのタイマ回路8で
時間を計測して一定時間に達するとリセット信号104
aを出力し、設定値信号105と目標値信号106との
値が一致した場合にはタイマ回路8をリセットすると共
に目標値信号106の値を変更することにより、アドレ
スデコーダ回路等の回路構成を用いることなく制御回路
1aの異常動作を検出してリセットすることが可能にな
る。As a result, the time is measured by the timer circuit 8 of the monitoring circuit 4a, and when a certain time is reached, the reset signal 104 is output.
a, and when the value of the set value signal 105 matches the value of the target value signal 106, the timer circuit 8 is reset and the value of the target value signal 106 is changed. The abnormal operation of the control circuit 1a can be detected and reset without using it.
【0061】また、制御回路1a側で目標値信号106
の定期的な変化を監視することにより、監視回路4a自
身の動作異常を確認することが可能になる。Further, the target value signal 106 is
Of the monitoring circuit 4a itself can be confirmed by monitoring the periodical change of.
【0062】さらに、監視回路4aのタイマリセット動
作は特定アドレスへの書込み動作ではないので従来例の
ような問題は生じない。Further, since the timer reset operation of the monitoring circuit 4a is not a write operation to a specific address, there is no problem as in the conventional example.
【0063】特に、制御回路1aは設定値信号105の
値を目標値信号106の値に追従させなければならない
ので制御回路1aが一定状態に固定されるようにな状況
に陥ってもリセット信号104aが出力されることにな
る。In particular, since the control circuit 1a must make the value of the set value signal 105 follow the value of the target value signal 106, even if the control circuit 1a is fixed to a fixed state, the reset signal 104a Is output.
【0064】なお、設定値信号105及び目標値信号1
06を”1ビット”信号とした場合は制御回路1aの出
力ポート及び入力ポートを用いることにより、監視回路
4aとのデータの授受を容易に行うことができる。The set value signal 105 and the target value signal 1
When 06 is a "1 bit" signal, data can be easily exchanged with the monitoring circuit 4a by using the output port and the input port of the control circuit 1a.
【0065】特に、使用可能な入出力ポートの少ない制
御回路1aで監視回路4aを用いる場合には有効的であ
る。This is particularly effective when the monitoring circuit 4a is used in the control circuit 1a having a small number of usable input / output ports.
【0066】また、勿論、設定値信号105及び目標値
信号106は”1ビット”信号ではなく”数ビット”の
信号であっても構わない。Further, needless to say, the set value signal 105 and the target value signal 106 may be signals of "several bits" instead of "1 bit" signals.
【0067】図3及び図4の説明では目標値設定回路7
は一定時間経過後に目標値信号106の値を変更してい
るが、その変更のタイミングは任意で良く、例えば、一
致検出回路6の出力信号の立ち上がりのエッジで目標値
信号106の値を変更さても構わない。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 lapse of a predetermined time. The timing of the change may be arbitrary. For example, the value of the target value signal 106 is changed at the rising edge of the output signal of the coincidence detection circuit 6. No problem.
【0068】また、図4の説明に際してはリセット信号
104aの出力を負論理出力として例示しているが、正
論理出力であっても良い。Although the output of the reset signal 104a is illustrated as a negative logic output in the description of FIG. 4, it may be a positive logic output.
【0069】[0069]
【発明の効果】以上説明したことから明らかなように、
本発明によれば次のような効果がある。監視回路のタイ
マ回路で時間を計測して一定時間に達するとリセット信
号を出力し、設定値信号と目標値信号との値が一致した
場合にはタイマ回路をリセットすると共に目標値信号の
値を変更することにより、また、制御回路側で目標値信
号の定期的な変化を監視することにより、回路構成が単
純で監視回路自身の動作異常の確認が可能な制御装置が
実現できる。As is apparent from the above description,
According to the present invention, the following effects can be obtained. The timer circuit of the monitoring circuit measures the time and outputs a reset signal when a certain time is reached. 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 reset. By making the change, and by monitoring the change of the target value signal periodically on the control circuit side, it is possible to realize a control device having a simple circuit configuration and capable of confirming an abnormal operation of the monitor circuit itself.
【図1】本発明に係る制御装置の一実施例を示す構成ブ
ロック図である。FIG. 1 is a configuration block diagram showing an embodiment of a control device according to the present invention.
【図2】監視回路4aの具体例を示す構成ブロック図で
ある。FIG. 2 is a configuration block diagram illustrating a specific example of a monitoring circuit 4a.
【図3】監視回路4aの正常時の動作を説明するタイミ
ング図である。FIG. 3 is a timing chart for explaining the normal operation of the monitoring circuit 4a.
【図4】監視回路4aの異常時の動作を説明するタイミ
ング図である。FIG. 4 is a timing chart illustrating an operation of the monitoring circuit 4a when an abnormality occurs.
【図5】従来の制御装置の従来例を示す構成ブロック図
である。FIG. 5 is a configuration block diagram illustrating a conventional example of a conventional control device.
1,1a 制御回路 2 アドレスデコーダ回路 3 論理積回路 4,4a 監視回路 5 スイッチ回路 6 一致検出回路 7 目標値設定回路 8 タイマ回路 100 データバス 101 アドレス信号 102 ライトイネーブル信号 103 チップセレクト信号 104,104a リセット信号 105 設定値信号 106 目標値信号 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)
おいて、 目標値信号を読み込み前記目標値信号と同値の設定値信
号を出力する制御回路と、 前記制御回路に前記目標値信号を出力し、前記目標値信
号と前記設定値信号との値が一致した場合には計測時間
をリセットすると共に前記目標値信号の値を変更し、前
記計測時間が一定時間に達した場合には前記制御回路に
リセット信号を出力する監視回路とを備えたことを特徴
する制御装置。1. A control device for monitoring an abnormal operation of a control circuit, comprising: a control circuit for reading a target value signal and outputting a set value signal having the same value as the target value signal; and outputting the target value signal to the control circuit. If the value of the target value signal and the value of the set value signal match, reset the measurement time and change the value of the target value signal, and if the measurement time reaches a certain time, the control circuit And a monitoring circuit for outputting a reset signal to the control device.
る一致検出回路と、 前記制御回路に前記目標値信号を出力すると共に前記一
致検出回路の出力信号に基づき前記目標値信号の値を変
更する目標値設定回路と、 時間を計測して計測時間が一定時間に達した場合に前記
リセット信号を出力すると共に前記一致検出回路の出力
信号により前記計測時間をリセットするタイマ回路とか
ら構成されたことを特徴する特許請求の範囲請求項1記
載の制御装置。2. A match detection circuit for detecting a match between the target value signal and the set value signal, wherein the monitor circuit outputs the target value signal to the control circuit and an output signal of the match detection circuit. A target value setting circuit that changes the value of the target value signal based on the following formula: a reset signal is output when the measurement time reaches a predetermined time by measuring time, and the measurement time is calculated based on an output signal of the coincidence detection circuit. 2. The control device according to claim 1, further comprising a timer circuit for resetting the control signal.
標値信号の定期的な変化を監視して前記監視回路の異常
を判断することを特徴とする特許請求の範囲請求項1及
び請求項2記載の制御装置。3. The control circuit according to claim 1, wherein said control circuit monitors a periodic change of said target value signal from said monitoring circuit to determine an abnormality of said monitoring circuit. 2. The control device according to 2.
ットの信号であることを特徴とする特許請求の範囲請求
項1乃至請求項3記載の制御装置。4. The control device according to claim 1, wherein said set value signal and said target value signal are 1-bit signals.
制御回路の入出力ポートを介して授受することを特徴と
する特許請求の範囲請求項4記載の制御装置。5. The control device according to claim 4, wherein said set value signal and said target value signal are transmitted and received via an input / output port of said control circuit.
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 true JPH1165892A (en) | 1999-03-09 |
| JP3757407B2 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) |
-
1997
- 1997-08-19 JP JP22226597A patent/JP3757407B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP3757407B2 (en) | 2006-03-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6912670B2 (en) | Processor internal error handling in an SMP server | |
| JPH1165892A (en) | Control device | |
| US7774690B2 (en) | Apparatus and method for detecting data error | |
| JP2527251B2 (en) | IC card | |
| JPH0236003B2 (en) | ||
| JP2508305B2 (en) | Initial value determination device | |
| JPH11203173A (en) | Watch dog timer circuit | |
| JPH04283840A (en) | Diagnostic method for information processor | |
| JP2002278800A (en) | Monitor and monitoring method | |
| JP3008914B2 (en) | Semiconductor integrated circuit | |
| JP3035937B2 (en) | Multifunctional telephone | |
| JPS58159129A (en) | Dma controller of microcomputer system | |
| JP2614926B2 (en) | Power control system | |
| US20030167424A1 (en) | Microcomputer capable of identifying instruction executed at abnormal event | |
| JPH0612292A (en) | Microcomputer | |
| JPS58221533A (en) | Remote supervisory and controlling system | |
| JPH0950305A (en) | Programmable controller and failure detection method thereof | |
| JPH06161828A (en) | Processor status monitor | |
| KR20000012543U (en) | System error auto diagnosis circuit | |
| JPS6323598B2 (en) | ||
| JPH02297650A (en) | Receiver | |
| JPH0414699A (en) | EEPROM deactivation prevention device | |
| KR19980011011U (en) | Error occurrence detection circuit that can transmit data | |
| JPH0223446A (en) | Access abnormal termination response method | |
| JPS63263547A (en) | Microcomputer |
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 |