JPH0610789B2 - Anomaly detection device using microcomputer - Google Patents
Anomaly detection device using microcomputerInfo
- Publication number
- JPH0610789B2 JPH0610789B2 JP1183065A JP18306589A JPH0610789B2 JP H0610789 B2 JPH0610789 B2 JP H0610789B2 JP 1183065 A JP1183065 A JP 1183065A JP 18306589 A JP18306589 A JP 18306589A JP H0610789 B2 JPH0610789 B2 JP H0610789B2
- Authority
- JP
- Japan
- Prior art keywords
- abnormality
- memory
- abnormal
- time
- abnormal state
- 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 - Lifetime
Links
- 238000001514 detection method Methods 0.000 title claims description 15
- 230000002159 abnormal effect Effects 0.000 claims description 78
- 230000015654 memory Effects 0.000 claims description 71
- 230000005856 abnormality Effects 0.000 claims description 58
- 230000004044 response Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 14
- 238000000034 method Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 238000002485 combustion reaction Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 230000007257 malfunction Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 239000000498 cooling water Substances 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 208000019901 Anxiety disease Diseases 0.000 description 1
- 230000036506 anxiety Effects 0.000 description 1
- 230000012447 hatching Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000004092 self-diagnosis Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Landscapes
- Combined Controls Of Internal Combustion Engines (AREA)
- Alarm Systems (AREA)
Description
【発明の詳細な説明】 概要 本発明は、異常が発生していないにもかかわらず、たと
えばランダムアクセスメモリのストア内容が変化するい
わゆるRAM値化けのような誤動作によって、異常が発
生したものと誤って検出することを防ぐようにしたマイ
クロコンピュータを用いる異常検出装置であり、異常状
態が予め定める第1時間W1(たとえば1.0秒間)継
続したとき異常発生と判断する。複数の各項目毎に異常
かどうかを検出する異常状態検出手段の出力を、第1異
常継続検出手段によって予め定める第2時間W2(たと
えば0.8秒、W2<W1)継続したかどうかを各項目
に検出し、第2時間、異常状態が継続した後に、第2異
常継続検出手段によってさらに予め定める第3時間W3
(たとえば0.2秒、W1=W2+W3)だけ継続した
かどうかを検出し、こうして合計2つの第1および第2
異常継続検出手段によって異常状態が検出されたときに
異常発生と判断し、その異常が発生したことを表す情報
を、レジスタの各項目毎に対応したストアセルにストア
し、このレジスタのストアセルのストア内容は、判断手
段によって正しいかどうかを判断する。こうして第1異
常継続検出手段の誤動作によって、各項目の異常が生じ
ていないにもかかわらず、異常が発生したものとして誤
って検出することを防ぐことができる。The present invention erroneously determines that an abnormality has occurred due to a malfunction such as a so-called garbled RAM value in which the contents stored in a random access memory change even though no abnormality has occurred. It is an abnormality detection device that uses a microcomputer to prevent the detection by the above. When an abnormal state continues for a predetermined first time W1 (for example, 1.0 second), it is determined that an abnormality has occurred. Whether or not the output of the abnormal state detecting means for detecting whether or not each of the plurality of items is abnormal is continued for the second time W2 (for example, 0.8 seconds, W2 <W1) predetermined by the first abnormal continuation detecting means. After the abnormal state continues for the second time after being detected in the item, the third abnormal time W3 further predetermined by the second abnormal continuation detecting means.
It detects if it lasted (eg 0.2 seconds, W1 = W2 + W3) and thus a total of two first and second
When an abnormal condition is detected by the abnormal continuation detecting means, it is determined that an abnormality has occurred, information indicating that the abnormality has occurred is stored in the store cell corresponding to each item of the register, and the store cell of this register is stored. Whether or not the contents of the store are correct is judged by the judgment means. In this way, it is possible to prevent the malfunction of the first abnormality continuation detection unit from erroneously detecting that an abnormality has occurred, even though no abnormality has occurred in each item.
産業上の利用分野 本発明は、たとえば内燃機関の制御を行う装置などの異
常状態を、マイクロコンピュータを用いて検出するため
の装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device for detecting an abnormal state of a device for controlling an internal combustion engine using a microcomputer.
従来の技術 内燃機関等の制御において、マイクロコンピュータが使
用されるのに伴い、その機能を利用して様々な付加機能
が追加されており、そのなかの1つに自己診断機能があ
る。内燃機関を例にとると、センサ、アクチュエータの
動作を監視し、異常を検知すれば運転者に警告を出す
か、もしくは異常を記憶しておき、整備工場等で所定の
操作を行えば、その異常内容が表示されるというもので
ある。この機能によって、異常検知および異常部品の特
定が速やかに行え、メンテナンス性および信頼性が向上
している。2. Description of the Related Art With the use of microcomputers in the control of internal combustion engines and the like, various additional functions have been added by utilizing their functions, and one of them is a self-diagnosis function. Taking an internal combustion engine as an example, the operation of sensors and actuators is monitored, and if an abnormality is detected, a warning is given to the driver, or the abnormality is stored in advance, and if a predetermined operation is performed in a maintenance shop, the The content of the abnormality is displayed. This function enables quick detection of abnormalities and identification of abnormal parts, improving maintainability and reliability.
しかし一方で、もし何らかの誤動作(たとえばノイズ等
によるRAM値化け)で誤って異常と検知すれば、運転
者に不要な不安感を抱かせ、異常でもない高価な部品を
交換することになってしまう。However, on the other hand, if some malfunction (for example, a RAM value is garbled due to noise or the like) is mistakenly detected as an abnormality, the driver will feel unnecessary anxiety, and expensive parts that are not abnormal will be replaced. .
第12図〜第14図を参照して、或る先行技術を説明す
る。この先行技術では、内燃機関の制御を行うにあた
り、異常項目記憶用のランダムアクセスメモリRX1〜
RX3が備えられ、さらにこれらのメモリRX1〜RX
3の監視用に、もう1つのランダムアクセスメモリRS
UMが設けられ、メモリRX1〜RX3のストア内容が
ノイズなどによって変化するいわゆるRAM値化けを生
じたか同化を検出することができるように構成される。Some prior art will be described with reference to FIGS. In this prior art, when controlling an internal combustion engine, random access memories RX1 to RX1 for storing abnormal items are used.
RX3 is provided, and these memories RX1 to RX are further provided.
Another random access memory RS for monitoring 3
A UM is provided and configured to detect whether or not so-called RAM garbled in which the stored contents of the memories RX1 to RX3 change due to noise or the like has occurred.
メモリRX1〜RX3の各8ビットのストアセルは、最
大24項目の異常状態を検出するために用いられる。各
メモリRX1〜RX3は、第0ビット〜第7ビットのス
トアセルを有している。今たとえば、第12図の斜線を
施して示すように、メモリRX2の第6ビットに対応す
る項目、たとえば冷却水温度のセンサの検査項目が異常
であるものと検出されたとき、そのメモリRX2の第6
ビットに論理「1」をセットすると同時に、もしもセッ
トする前の第6ビットが論理0であるからば、メモリR
SUMに64(=26)を加算する。このことによって
メモリRSUMの値は、メモリRX1〜RX3の合計値
となる。Each 8-bit store cell of the memories RX1 to RX3 is used to detect an abnormal state of up to 24 items. Each of the memories RX1 to RX3 has 0th to 7th bit store cells. For example, as shown by hatching in FIG. 12, when it is detected that the item corresponding to the sixth bit of the memory RX2, for example, the inspection item of the cooling water temperature sensor is abnormal, the memory RX2 of the memory RX2 is detected. Sixth
At the same time that the bit is set to logic "1", and if the sixth bit before being set is logic 0, the memory R
Add 64 (= 2 6 ) to SUM. As a result, the value of the memory RSUM becomes the total value of the memories RX1 to RX3.
したがってメモリRX1〜RX3とメモリRSUMとを
定期的にチェックして、所定の関係が保たれていないと
き、メモリRX1〜RX3またはRSUMが何らかの原
因で誤って書換えられ、したがってRAM値化けが生じ
たことが判る。このときには、メモリRX1〜RX3お
よびRSUMのストア内容をクリアして、誤った情報を
消去して不具合を防ぐことができる。Therefore, the memories RX1 to RX3 and the memory RSUM are regularly checked, and when the predetermined relationship is not maintained, the memories RX1 to RX3 or RSUM are erroneously rewritten for some reason, and thus the RAM value is garbled. I understand. At this time, the stored contents of the memories RX1 to RX3 and RSUM can be cleared and erroneous information can be erased to prevent a problem.
このような動作を第13図を参照して説明する。この第
13図に示される動作は、一定周期、たとえば50ms
ec毎に実行される。メモリRX2の第6ビットの異常
判定にあたり、ステップn1からステップn2に移り、
そのメモリRX2の第6ビットに対応する項目の異常条
件が成立しないとき、すなわち正常であれば、ステップ
n8でカウンタの内容を零とする。異常条件が成立して
いれば、ステップn3において、そのカウンタの内容を
1だけインクリメントする。Such operation will be described with reference to FIG. The operation shown in FIG. 13 has a fixed period, for example, 50 ms.
It is executed every ec. Upon judging the abnormality of the 6th bit of the memory RX2, the process moves from step n1 to step n2,
When the abnormal condition of the item corresponding to the sixth bit of the memory RX2 is not satisfied, that is, when the condition is normal, the content of the counter is set to zero in step n8. If the abnormal condition is satisfied, the content of the counter is incremented by 1 in step n3.
ステップn4では、カウンタの内容が1秒以上継続した
かどうかを検出し、異常状態が1秒以上続いたときに
は、ステップn5においてメモリRX2の第6ビットが
論理「1」であるかどうかが判断され、論理「0」であ
れば、ステップn6において論理「1」に書換え、すな
わち正常から異常になったものとし、ステップn7では
メモリRSUMの内容に、26を加算する。In step n4, it is detected whether or not the content of the counter has continued for 1 second or more. If the abnormal state continues for 1 second or more, it is determined in step n5 whether the 6th bit of the memory RX2 is logic "1". If it is a logic "0", it is assumed that the logic "1" is rewritten in step n6, that is, it has changed from normal to abnormal, and in step n7, 2 6 is added to the content of the memory RSUM.
第14図を参照して、RAM値化けかどうかを判断する
にあたり、ステップ1からステップ2に移り、メモ
リRX1〜RX3の各ストアセルに2値情報を加算した
値が、メモリRSUMの内容に等しいかどうかを判断
し、等しくないのであれば、RAM値化けが生じたもの
と判断し、ステップ〜6において全てのメモリRX
1〜RX3,RSUMのストア内容を零にリセットす
る。Referring to FIG. 14, in determining whether the RAM value is garbled, the process proceeds from step 1 to step 2, and the value obtained by adding the binary information to each store cell of the memories RX1 to RX3 is equal to the content of the memory RSUM. If it is not equal, it is determined that the RAM value is garbled, and all the memory RX is determined in steps to 6.
1 to RX3, reset the stored contents of RSUM to zero.
発明が解決すべき課題 このような先行技術では、異常項目記憶用のメモリRX
1〜RX3およびその監視用メモリRSUMのRAM値
化けの対策はなされているけれども、たとえば異常発生
の判定を行う構成に対する対策は行われていない。上述
の先行技術では、第13図のステップn4において、或
る状態が1秒以上続けば、異常発生と判定しているけれ
ども、そのカウンタが何らかの原因で大きな値に書換え
られると、異常が発生していないにもかかわらず、異常
発生と判定されてしまう。DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention In such a prior art, a memory RX for storing an abnormal item is provided.
1 to RX3 and its monitoring memory RSUM have been taken as measures against garbled RAM values, but no measures have been taken against, for example, a configuration for determining abnormality occurrence. In the above-mentioned prior art, in step n4 of FIG. 13, if a certain state continues for 1 second or more, it is determined that an abnormality has occurred, but if the counter is rewritten to a large value for some reason, an abnormality occurs. Even though it is not, it is determined that an abnormality has occurred.
この問題を解決するために、メモリRX1〜RX3の各
ストアセル毎にそれぞれ設けられているカウンタに、そ
れらの各カウンタを監視するためのランダムアクセスメ
モリを設けることも考えられるけれども、そのようにす
ると、記憶容量が増加し、また処理が複雑になる。In order to solve this problem, it is conceivable to provide a random access memory for monitoring each of the counters provided for each store cell of the memories RX1 to RX3, but this is done. The storage capacity increases and the processing becomes complicated.
本発明の目的は、異常状態を正確に検出し、しかも記憶
容量が増大することを抑制し、処理が簡便であるマイク
ロコンピュータを用いる異常検出装置を提供することで
ある。An object of the present invention is to provide an abnormality detection device using a microcomputer that accurately detects an abnormal state, suppresses an increase in storage capacity, and is simple in processing.
課題を解決するための手段 本発明は、予め定める第1時間W1だけ異常状態が継続
して検出されたとき、異常発生と判断するマイクロコン
ピュータを用いる異常検出装置において、 異常かどうかを検出すべき複数の多項目毎に、各項目毎
の異常状態を検出する手段と、 異常状態検出手段の出力が、予め定める第2時間W2だ
け継続したかどうかを検出するための各項目毎に設けら
れる第1異常継続検出手段と、 第1異常継続検出手段の出力に応答し、その第1異常継
続検出手段によって異常状態が第2時間W2だけ継続し
た後に、さらに予め定める第3の時間W3だけ継続した
かどうかを検出し、各項目に共通に設けられ、前記第2
時間と第3時間との和が前記第1時間W1に定められ
る、そのような第2異常継続検出手段と、 各項目毎に対応したストアセルを有するメモリと、 第2異常継続検出手段の出力に応答し、異常状態が第2
および第3の時間にわたって継続したとき、その異常状
態を表す情報を、その異常状態は生じた項目に対応する
ストアセルにストアさせる手段と、 前記メモリのストアセルのストア内容が正しいかどうか
を判断する手段とを含むことを特徴とするマイクロコン
ピュータを用いる異常検出装置である。Means for Solving the Problems The present invention should detect whether or not there is an abnormality in an abnormality detection device that uses a microcomputer that determines that an abnormality has occurred when an abnormal state is continuously detected for a predetermined first time W1. For each of a plurality of multiple items, a unit for detecting an abnormal state for each item, and a unit provided for each item for detecting whether or not the output of the abnormal state detection unit has continued for a predetermined second time W2 1 Abnormality continuation detecting means and in response to the outputs of the first abnormal continuation detecting means, the abnormal state continues by the first abnormal continuation detecting means for a second time W2, and then continues for a predetermined third time W3. Whether or not it is provided in common for each item, the second
The sum of the time and the third time is set to the first time W1, the second abnormal continuation detecting means, the memory having the store cell corresponding to each item, and the output of the second abnormal continuation detecting means. In response to an abnormal condition
And a means for storing information indicating the abnormal state in the store cell corresponding to the item in which the abnormal state has occurred, and determining whether or not the stored content of the store cell of the memory is correct when continuing for a third time. An abnormality detection device using a microcomputer, which includes:
作用 本発明に従えば、異常かどうかを検出すべき複数の各項
目毎に、異常状態検出手段を設けるとともに、レジスタ
は、各項目に対応したストアセルを有する。第1異常継
続検出手段は、異常状態検出手段の出力に応答し、それ
によって検出された異常状態が予め定める第2時間W2
だけ継続したかどうかを検出し、この第1異常継続検出
手段は各項目毎に設けられる。第2異常継続検出手段
は、各項目毎の第1異常継続検出手段が、異常状態の第
2時間W2継続した後に、さらに予め定める第3時間W
3(W1=W2+W3)継続したかどうかを検出する。
第2異常継続検出手段は、各項目に共通に設けられ、こ
れによって構成が簡略化される。Operation According to the present invention, an abnormal state detecting means is provided for each of a plurality of items for which whether or not an abnormality is detected, and the register has a store cell corresponding to each item. The first abnormal continuation detecting means is responsive to the output of the abnormal state detecting means, and the abnormal state detected thereby is predetermined for the second time W2.
The first abnormal continuation detecting means is provided for each item. The second abnormality continuation detecting means further determines a predetermined third time W after the first abnormality continuation detecting means for each item continues for the second time W2 of the abnormal state.
3 (W1 = W2 + W3) is detected.
The second abnormality continuation detecting means is provided in common for each item, thereby simplifying the configuration.
第2異常継続検出手段の出力に基づき、異常状態が、第
2および第3の時間のわたって、すなわち第1時間中、
継続したとき、その項目について異常状態が発生したも
のと判断し、メモリの対応するストアセルに異常状態を
表す情報をストアする。レジスタのストアセルのストア
内容は、判断手段によって正しいかどうかを、たとえば
定期的に、検出される。On the basis of the output of the second abnormality continuation detecting means, the abnormal state is over the second and third time periods, that is, during the first time period,
When it continues, it is determined that an abnormal state has occurred for the item, and information indicating the abnormal state is stored in the corresponding store cell of the memory. Whether or not the stored content of the store cell of the register is correct is detected by the judging means, for example, periodically.
実施例 第1図は、本発明の一実施例の全体のブロック図であ
る。内燃機関の運転状態は、複数のセンサS1〜S24
によって検出される。これらのセンサS1〜S24の出
力は、アナログ/デジタル変換器1を介して、また入力
インタフェイス2を介して、マイクロコンピュータによ
って実現される処理回路3に与えられる。この処理回路
3にはランダムアクセスメモリ4が備えられ、電源5に
よって常時電力付勢され、そのランダムアクセスメモリ
4のストア内容が保持される。処理回路3において、セ
ンサS1〜S24によって検出された項目について、異
常が発生しているものと判断されると、異常発生表示器
6によってそのことが表示される。Embodiment FIG. 1 is an overall block diagram of an embodiment of the present invention. The operating state of the internal combustion engine is determined by a plurality of sensors S1 to S24.
Detected by. The outputs of these sensors S1 to S24 are given to the processing circuit 3 realized by the microcomputer via the analog / digital converter 1 and via the input interface 2. The processing circuit 3 is provided with a random access memory 4 and is constantly energized by a power source 5 to hold the stored contents of the random access memory 4. In the processing circuit 3, when it is determined that an abnormality has occurred in the item detected by the sensors S1 to S24, the abnormality occurrence display 6 displays the fact.
第2図は、第1図に示される処理回路3の構成を説明す
るための簡略化したブロック図である。センサS1〜S
24の出力は、異常状態検出手段E1〜E24に個別的
に与えられ、これらの各項目毎に異常かどうかが検出さ
れる。異常状態検出手段E1〜E24の出力は、カウン
タC1〜C24によってその継続する時間が検出され
る。各カウンタC1〜C24の出力は、切換えスイッチ
7によって選択的に切換えられて、もう1つのカウンタ
A1に与えられ、そのカウンタA1の出力と切換えスイ
ッチ7の出力とは、ANDゲートG1に与えられて、異
常状態が発生したものとして、処理が行われる。カウン
タC1〜C24を総括的に参照符Cで表す。FIG. 2 is a simplified block diagram for explaining the configuration of the processing circuit 3 shown in FIG. Sensors S1 to S
The output of 24 is individually given to the abnormal state detecting means E1 to E24, and it is detected for each of these items whether or not there is an abnormality. The outputs of the abnormal state detecting means E1 to E24 are detected by the counters C1 to C24 for the duration of time. The output of each of the counters C1 to C24 is selectively switched by the changeover switch 7 and is given to the other counter A1, and the output of the counter A1 and the output of the changeover switch 7 are given to the AND gate G1. The process is performed assuming that an abnormal state has occurred. The counters C1 to C24 are generally denoted by the reference symbol C.
この実施例では、センサS1〜S24によって検出され
る状態が、異常状態検出手段E1〜E24によって異常
状態であると判断されたとき、その異常状態が、予め定
める第1時間W1(たとえば1.0sec)だけ継続し
たとき、異常発生と判断する。カウンタCは、異常状態
が予め定める第2時間W2(たとえば0.8sec)だ
け継続するかどうかを検出し、これらのカウンタC1〜
C24は、センサS1〜S24毎に設けられる。カウン
タA1はこれらの各項目に共通に設けられており、カウ
ンタCによって異常状態が第2時間W2継続した後、さ
らに、予め定める第3時間W3(たとえば0.2se
c、W1=W2+W3)だけ継続するかどうかが検出さ
れる。こうして異常状態が第1時間W1以上継続したと
き、ANDゲートG1から異常状態が発生したことを表
す信号が導出され、異常時の予め定めた処理動作、たと
えば表示が行われることになる。第2図に示される概略
的な構成に関して、以下に、さらに詳述する。In this embodiment, when the state detected by the sensors S1 to S24 is determined to be an abnormal state by the abnormal state detection means E1 to E24, the abnormal state is a predetermined first time W1 (for example, 1.0 sec). ), It is judged that an abnormality has occurred. The counter C detects whether or not the abnormal state continues for a predetermined second time W2 (for example, 0.8 sec), and these counters C1 to C1.
C24 is provided for each of the sensors S1 to S24. The counter A1 is provided in common for each of these items, and after the abnormal state is continued by the counter C for the second time W2, the counter A1 is further set for a predetermined third time W3 (for example, 0.2 sec).
c, W1 = W2 + W3) is detected. In this way, when the abnormal state continues for the first time W1 or more, a signal indicating that the abnormal state has occurred is derived from the AND gate G1, and a predetermined processing operation in the abnormal state, for example, display is performed. The schematic configuration shown in FIG. 2 will be described in more detail below.
第3図は、処理回路3に備えられる構成要素を示すブロ
ック図である。合計3つのランダムアクセスメモリRX
1〜RX3は、第0ビット〜第7ビットのストアセルを
それぞれ有しており、各ストアセルはセンサS1〜S2
4の各検出項目に個別的に対応している。さらにまたラ
ンダムアクセスメモリRSUMが備えられ、これはメモ
リRX1〜RX3の監視用であり、このメモリRSUM
もまた合計8ビットのストアセルを有し、メモリRX1
〜RX3によって表される2値数値を加算してストアす
る。FIG. 3 is a block diagram showing components included in the processing circuit 3. Total of 3 random access memories RX
1 to RX3 each have a 0th to 7th bit store cell, and each store cell is a sensor S1 to S2.
It corresponds to each of the four detection items individually. Furthermore, a random access memory RSUM is provided, which is for monitoring the memories RX1 to RX3, and this memory RSUM
Also has a total of 8 bits of store cells and has memory RX1
~ The binary numbers represented by RX3 are added and stored.
ランダムアクセスメモリRX4は、合計24の検査すべ
き項目のうち、第1時間W1以上、異常が継続して初め
て異常が発生したものと判断する項目に個別的に対応す
るストアセルを有し、たとえば24個のストアセルを有
していてもよく、あるいはそれ未満のストアセルを有し
ていてもよく、この実施例では、たとえば8個とする。
このような継続検出すべき項目は、たとえば内燃機関の
冷却水温度および吸気温度などであってもよい。The random access memory RX4 has a store cell that individually corresponds to an item that is determined to have occurred abnormally for the first time W1 or more for the first time W1 or more out of a total of 24 items to be inspected. It may have 24 store cells or less store cells, for example, 8 in this embodiment.
Such items to be continuously detected may be, for example, the cooling water temperature and the intake air temperature of the internal combustion engine.
処理回路3はまた、カウンタCと、レジスタAと、レジ
スタBと、カウンタA1とを備える。メモリRX4はカ
ウンタA1操作用のランダムアクセスメモリであって、
初期値は全てのストアセルが論理「0」であり、処理動
作における前回に、異常検出をしているかどうかを判断
するために用いられる。カウンタA1は、別途設けたル
ーチンによって、予め定める時間、たとえば4msec
毎に零から最大FFまでインクリメントされるカウンタ
である。前述のメモリRX4は、この実施例では、たと
えば検出すべき8項目に対応して8つのストアセルが備
えられているものとして、以下の説明を行う。The processing circuit 3 also includes a counter C, a register A, a register B, and a counter A1. The memory RX4 is a random access memory for operating the counter A1,
The initial value is a logic "0" for all the store cells, and is used to determine whether or not the abnormality is detected the last time in the processing operation. The counter A1 has a predetermined time, for example, 4 msec, set by a routine provided separately.
It is a counter that increments from zero to a maximum FF every time. In the present embodiment, the above-described memory RX4 will be described below assuming that eight store cells are provided corresponding to eight items to be detected, for example.
このメモリRX4において異常と判断する項目について
は、第1時間W1以上の異常状態の継続によって異常が
発生したものと判定し、このためにカウンタCとカウン
タA1とを用いる。したがってカウンタCまたはA1の
いずれか少なくとも一方がノイズなどによってRAM値
化けを生じても、直ちに異常発生と判断してメモリRX
4の対応するストアセルに異常発生情報をストアするこ
とが防がれる。これらのカウンタC,A1のうち、1つ
のカウンタA1は、第2時間W2以上の継続で異常状態
発生と判断する複数項目について共通であり、これによ
って大幅なストア容量の低減を可能にする。With respect to the item that is determined to be abnormal in the memory RX4, it is determined that the abnormality has occurred due to the continuation of the abnormal state for the first time W1 or more, and therefore the counter C and the counter A1 are used. Therefore, even if at least one of the counter C and A1 has a garbled RAM value due to noise or the like, it is immediately determined that an abnormality has occurred, and the memory RX
It is possible to prevent the abnormality occurrence information from being stored in the corresponding store cell of No. 4. Of these counters C and A1, one counter A1 is common for a plurality of items that are determined to be in an abnormal state when the second time W2 or more continues, thereby enabling a significant reduction in store capacity.
第4図は第3図に示される各構成要素の動作を説明する
ための波形図であり、第5図はその異常状態が発生した
ことを判断するための動作を説明するためのフローチャ
ートである。これらの図面を参照して、たとえばメモリ
RX2の第6ビットに対応する検出項目について、第1
時間W1以上の異常状態の継続によって異常が発生した
ものと判断する場合の動作を述べる。FIG. 4 is a waveform diagram for explaining the operation of each component shown in FIG. 3, and FIG. 5 is a flow chart for explaining the operation for judging that the abnormal state has occurred. . With reference to these drawings, for example, regarding the detection item corresponding to the 6th bit of the memory RX2,
The operation when it is determined that an abnormality has occurred due to the continuation of the abnormal state for the time W1 or more will be described.
第5図に示される動作は、たとえば50msec毎に行
われる。ステップg1からステップg2に移り、このメ
モリRX2の第6ビットに対応するセンサS15の出力
が異常検出手段E15によって異常状態であるものと判
断されていないとき、すなわち正常であるときには、ス
テップg12でカウンタCは第4図(1)に示されるよ
うに零とされる。異常検出手段E15によって異常であ
るものと検出されたときにはステップg3に移り、カウ
ンタCの内容を1だけインクリメントする。The operation shown in FIG. 5 is performed, for example, every 50 msec. When the output of the sensor S15 corresponding to the 6th bit of the memory RX2 is not judged to be in the abnormal state by the abnormality detecting means E15, that is, when the output is normal, the counter is counted in step g12. C is made zero as shown in FIG. 4 (1). When the abnormality detecting means E15 detects an abnormality, the process proceeds to step g3, and the content of the counter C is incremented by 1.
ステップg4では、後述する演算処理用ため、メモリR
X2の第6ビットに対応させたレジスタBの第0ビット
に20(二論理「1」)をストアする。ステップg5で
は、カウンタCのストア内容をCとするとき、(C−
0.8sec)を演算する。ステップg6では、後述す
るカウンタA1に内容チェックを行う。ステップg6a
では、カウンタCの内容が0.8sec未満であるかを
判断し、0.8sec未満であれば、次にステップg7
に移る。ステップg7では、カウンタA1のストア内容
が0.2sec以上であるかを判断し、そうであれば異
常が発生したものと判断し、ステップg8に移る。ステ
ップg8では、このセンサS15に対応するメモリRX
2の第6ビットのストアセルの論理が「1」であるか否
かが判断され、そうでないときにはステップg9で論理
「1」にストアする。At step g4, the memory R is used for the arithmetic processing described later.
2 0 (two logic “1”) is stored in the 0th bit of the register B corresponding to the 6th bit of X2. In step g5, when the stored content of the counter C is C, (C-
0.8 sec) is calculated. At step g6, the contents of the counter A1 described later are checked. Step g6a
Then, it is determined whether the content of the counter C is less than 0.8 sec, and if it is less than 0.8 sec, then step g7
Move on to. In step g7, it is determined whether the stored content of the counter A1 is 0.2 sec or more, and if so, it is determined that an abnormality has occurred, and the process proceeds to step g8. At step g8, the memory RX corresponding to this sensor S15
It is determined whether or not the logic of the 2nd 6th bit store cell is "1". If not, it is stored in the logic "1" in step g9.
ステップg10では、メモリRX1〜RX3のストアセ
ルのストア内容が正しいかどうかを判断するために、メ
モリRSUMのストア内容に前述の第6ビットに対応す
る値26を加算して更新する。このメモリRX2の第6
ビットに論理「1」をストアする動作は、第4図(4)
に示されるとおりである。At step g10, in order to determine whether the stored contents of the store cells of the memories RX1 to RX3 are correct, the stored contents of the memory RSUM are updated by adding the value 26 corresponding to the above-mentioned sixth bit. The sixth of this memory RX2
The operation of storing a logical "1" in a bit is shown in Fig. 4 (4).
As shown in.
第6図は、第4図(2)で示されるカウンタA1が正常
に動作しているかどうかをチェックするための動作を説
明するためのフローチャートである。ステップr1から
ステップr2に移り、カウンタCのストア内容をCとす
るとき、(C−0.8)が零以上であるかを判断し、そ
うでなけば、その検査項目について正常であるものと判
断し、ステップr3に移る。ここで用いられるレジスタ
Bは、単なる演算のために 用いられるものであり、そのレジスタBの各セルの反転
は第7図に示されているとおりである。メモリRX4
とレジスタBの反転とのANDをステップr3におい
て求め、その第0ビットのメモリRX4のストアセルに
ANDの論理演算結果(この実施例では論理「0」)を
ストアする。FIG. 6 is a flow chart for explaining the operation for checking whether the counter A1 shown in FIG. 4 (2) is operating normally. When the stored content of the counter C is set to C, it is determined whether (C-0.8) is zero or more, and otherwise, it is determined that the inspection item is normal. Judgment, and it moves to step r3. The register B used here is used only for an arithmetic operation, and the inversion of each cell of the register B is as shown in FIG. Memory RX4
AND of the inversion of the register B is obtained in step r3, and the logical operation result of AND (logic "0" in this embodiment) is stored in the store cell of the 0th bit memory RX4.
したがってステップr2からステップr3を実行する動
作は、正常時および異常が発生してから0.8秒未満の
間において実行される。ステップr2から次に述べるス
テップr8では、メモリRX4の第0ビットが論理
「1」になったとき、すなわち異常状態が0.8秒継続
したとき、カウンタA1をリセットする動作が示されて
いる。このメモリRX4の第0ビットのストア内容は、
第4図(3)に示されている。Therefore, the operation of executing steps r2 to r3 is executed in the normal state and within less than 0.8 seconds after the abnormality occurs. From step r2 to step r8 described next, the operation of resetting the counter A1 is shown when the 0th bit of the memory RX4 becomes the logic "1", that is, when the abnormal state continues for 0.8 seconds. The stored contents of the 0th bit of this memory RX4 are
This is shown in FIG. 4 (3).
カウンタCのストア内容が0.8秒、異常として継続す
ると、ステップr2からステップr5に移る。ステップ
r5では、メモリRX4のストア内容をレジスタAに転
送する。初めてステップr5が実行されるとき、レジス
タAの第8図に示される第0ビットは論理「0」となっ
ている。ステップr6では、レジスタAとレジスタBと
のANDが論理演算される。第8図に示されるようにこ
れらのレジスタA,BのANDの演算結果のうち、第0
ビットXが論理「0」であれば、その結果を論理「0」
とし、Xが論理「1」であれば、その結果を論理「1」
であるものと判断する。このレジスタA,BのAND論
理演算結果によって、その論理演算結果の第0ビットの
内容Xが論理「0」であれば、ステップr7においてカ
ウンタA1を零にクリアし、その後、このカウンタA1
がインクリメントされて刻時動作が行われる。ステップ
r2〜r8が最初に実行された後においては、レジスタ
A,BのAND論理演算結果の第0ビットは論理「1」
であり、すなわち前回も異常であったものと判断され、
ステップr8に移る。If the content stored in the counter C continues to be abnormal for 0.8 seconds, the process moves from step r2 to step r5. At step r5, the contents stored in the memory RX4 are transferred to the register A. When step r5 is executed for the first time, the 0th bit shown in FIG. 8 of the register A has a logic "0". In step r6, the AND operation of the registers A and B is logically operated. As shown in FIG. 8, among the operation results of AND of these registers A and B, the 0th
If bit X is logical "0", the result is logical "0"
If X is a logical "1", the result is a logical "1".
It is determined that If the content X of the 0th bit of the logical operation result is logical "0" by the AND logical operation result of the registers A and B, the counter A1 is cleared to zero in step r7, and then the counter A1
Is incremented and the clocking operation is performed. After the steps r2 to r8 are first executed, the 0th bit of the AND logic operation result of the registers A and B is the logic "1".
That is, it was judged that the previous time was also abnormal,
Move to step r8.
ステップr8では、第9図に示されるように、メモリR
X4とレジスタBとの各ストアセルのOR論演算を行
い、その結果をメモリRX4にストアする。この第9図
においてXは、論理「0」または論理「1」を意味す
る。OR論理演算結果がストアされたメモリRX4の第
0ビットは論理「1」とされることによって、それに対
応するセンサS15によって検出される内燃機関の水温
が異常になったものと判断され、異常発生が検出され
る。At step r8, as shown in FIG.
The OR logic operation of each store cell of X4 and the register B is performed, and the result is stored in the memory RX4. In FIG. 9, X means a logic "0" or a logic "1". The 0th bit of the memory RX4, in which the OR logical operation result is stored, is set to logic "1", whereby it is determined that the water temperature of the internal combustion engine detected by the sensor S15 corresponding thereto has become abnormal, and an abnormality occurs. Is detected.
要約すると、カウンタCにおいて異常状態が第2時間W
2である0.8秒継続した後には、カウンタA1で刻時
動作を行うために、最初にステップr7においてカウン
タA1を零にリセットし、それ以後は、ステップr7に
移らずに、ステップr6からステップr8に移り、カウ
ンタA1は、前述のように別のルーチンでインクリメン
トされて刻時動作される。このカウンタA1が第3時間
である0.2秒以上経過したときには、前述のように第
5図のステップg7において異常が発生したものと判定
されて次のステップg8が実行される。In summary, the abnormal state of the counter C is the second time W.
After 0.8 seconds, which is 2, the counter A1 first resets the counter A1 to zero in order to perform the timekeeping operation with the counter A1, and thereafter, from step r6, without moving to step r7. Moving to step r8, the counter A1 is incremented and clocked by another routine as described above. When the counter A1 has passed the third time of 0.2 seconds or more, it is determined that an abnormality has occurred in step g7 of FIG. 5 as described above, and the next step g8 is executed.
上述の実施例では、RAM値化けを検出するためにメモ
リRX1〜RX3の2値数値を加算して求め、その結果
が、メモリRSUMの内容と一致しているかどうかを判
断するように構成されたけれども、本発明の他の実施例
として、第10図および第11図に示される構成によっ
てRAM値化けをチェックするようにしてもよい。第1
0図に示されるように前述のメモリRX1〜RX3の他
に、さらにメモリRX11〜RX31を設ける。メモリ
RX1と同一の内容は、対応するメモリRX11にスト
アされ、以下同様にRX2,RX3の各ストア内容はR
X21,RX31にもまたストアされる。In the above-described embodiment, the binary numerical values of the memories RX1 to RX3 are added to detect the garbled RAM value, and it is determined whether or not the result matches the content of the memory RSUM. However, as another embodiment of the present invention, the RAM garbled value may be checked by the configuration shown in FIGS. 10 and 11. First
As shown in FIG. 0, in addition to the memories RX1 to RX3 described above, memories RX11 to RX31 are further provided. The same contents as the memory RX1 are stored in the corresponding memory RX11, and the contents stored in RX2 and RX3 are the same as R in the same manner.
It is also stored in X21 and RX31.
第11図(1)においてステップu1からステップu2
に移り、異常発生と判定された後には、ステップu3に
おいて、その異常発生に対応するたとえばメモリRX2
の第6ビットのストアセルを論理「1」とし、ステップ
u4ではメモリRX2に対応するもう1つのメモリRX
21の第6ビットを論理「1」とする。Step (u1) to step (u2) in FIG. 11 (1)
After it is determined that an abnormality has occurred, in step u3, for example, the memory RX2 corresponding to the abnormality has been detected.
The store cell of the 6th bit of is set to logic "1", and in step u4, another memory RX corresponding to the memory RX2 is stored.
The sixth bit of 21 is set to logic "1".
第11図(2)においてステップv1からステップv2
に移り、RAM値化けを検出するために、メモリRX1
とそれに対応するメモリRX11とのストア内容が一致
しているかどうかを判断する。一致していれば次にステ
ップv3に移り、メモリRX2とそれに対応するメモリ
RX21との各ストア内容が一致しているかどうかが判
断される。一致していればステップv4に移り、メモリ
RX3とRX31のストア内容が一致しているかどうか
が判断される。ステップv2,v3,v4のいずれか1
つにおいて一致していないときには、RAM値化けが発
生したものと判断し、ステップv5〜ステップv10に
おいてメモリRX1〜RX3,RX11〜RX31のス
トア内容を零にリセットする。こうして再度、異常発生
の検出を行う。Step (v1) to step (v2) in FIG. 11 (2)
Then, in order to detect the garbled RAM value, the memory RX1
It is determined whether or not the stored contents of the memory RX11 and the corresponding memory RX11 match. If they match, then the process moves to step v3, and it is determined whether the stored contents of the memory RX2 and the corresponding memory RX21 match. If they match, the process moves to step v4, and it is determined whether the stored contents of the memories RX3 and RX31 match. Any one of steps v2, v3, v4
If the two values do not match, it is determined that the RAM value is garbled, and the stored contents of the memories RX1 to RX3 and RX11 to RX31 are reset to zero in steps v5 to v10. In this way, the abnormality occurrence is detected again.
発明の効果 以上のように本発明によれば、異常を検出するとき、各
項目毎に第1異常継続検出手段が設けられ、この第1異
常継続検出手段の出力に応答して、さらに異常状態が継
続したかどうかを検出するための第2異常継続検出手段
を各項目に共通に設けるようにしたので、異常状態を正
確に検出することができるとともに、構成の簡略化を図
ることができ、処理を簡便にすることができる。As described above, according to the present invention, when an abnormality is detected, the first abnormality continuation detecting means is provided for each item, and in response to the output of the first abnormality continuation detecting means, the abnormal state is further detected. Since the second abnormality continuation detecting means for detecting whether or not has continued is provided in common for each item, the abnormal state can be accurately detected and the configuration can be simplified. The processing can be simplified.
第1図は本発明の一実施例のブロック図、第2図は本発
明の一実施例の構成を簡略化して示し、理解を容易にす
るためのブロック図、第3図は処理回路3に備えられて
いる構成要素を示すブロック図、第4図はこれらの構成
要素の動作を説明するための波形図、第5図は異常発生
を検出するための動作を説明するためのフローチャー
ト、第6図はカウンタA1のチェックを行うための動作
を説明するためのフローチャート、第7図は第6図にお
けるステップr3を説明するためのブロック図、第8図
は第6図のステップr5,r6の動作を説明するための
ブロック図、第9図は第6図のステップr8の動作を説
明するためのブロック図、第10図はRAM値化けを検
出するための他の実施例の簡略化したブロック図、第1
1図はRAM値化けを検出するための第10図に示され
る実施例の動作を説明するためのフローチャート、第1
2図は先行技術の簡略化したブロック図、第13図およ
び第14図は第12図に示された先行技術の動作を説明
するためのフローチャートである。 1……アナログ/デジタル変換器、2……入力インタフ
ェイス、3……処理回路、4……メモリ、S1〜S24
……センサ、E1〜E24……異常状態検出手段、C,
C1〜C24……カウンタ、A1……カウンタ、A,B
……レジスタ、RX1〜RX4……メモリ、RSUM…
…メモリFIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a simplified diagram of the configuration of an embodiment of the present invention, and is a block diagram for easy understanding, and FIG. 3 is a processing circuit 3. FIG. 4 is a block diagram showing the components provided, FIG. 4 is a waveform diagram for explaining the operation of these components, FIG. 5 is a flow chart for explaining the operation for detecting the abnormality occurrence, and FIG. FIG. 7 is a flow chart for explaining the operation for checking the counter A1, FIG. 7 is a block diagram for explaining step r3 in FIG. 6, and FIG. 8 is operation for steps r5 and r6 in FIG. FIG. 9 is a block diagram for explaining the operation of FIG. 6, FIG. 9 is a block diagram for explaining the operation of step r8 in FIG. 6, and FIG. 10 is a simplified block diagram of another embodiment for detecting RAM garbled. , First
FIG. 1 is a flow chart for explaining the operation of the embodiment shown in FIG. 10 for detecting garbled RAM values,
2 is a simplified block diagram of the prior art, and FIGS. 13 and 14 are flowcharts for explaining the operation of the prior art shown in FIG. 1 ... Analog / digital converter, 2 ... input interface, 3 ... processing circuit, 4 ... memory, S1 to S24
...... Sensors, E1 to E24 ...... Abnormal state detection means, C,
C1 to C24 ... Counter, A1 ... Counter, A, B
...... Register, RX1 to RX4 ...... Memory, RSUM ...
…memory
Claims (1)
続して検出されたとき、異常発生と判断するマイクロコ
ンピュータを用いる異常検出装置において、 異常かどうかを検出すべき複数の各項目毎に、各項目毎
の異常状態を検出する手段と、 異常状態検出手段の出力が、予め定める第2時間W2だ
け継続したかどうかを検出するための各項目毎に設けら
れる第1異常継続検出手段と、 第1異常継続検出手段の出力に応答し、その第1異常継
続検出手段によって異常状態が第2時間W2だけ継続し
た後に、さらに予め定める第3の時間W3だけ継続した
かどうかを検出し、各項目に共通に設けられ、前記第2
時間と第3時間との和が前記第1時間W1に定められ
る、そのような第2異常継続検出手段と、 各項目毎に対応したストアセルを有するメモリと、 第2異常継続検出手段の出力に応答し、異常状態が第2
および第3の時間にわたって継続したとき、その異常状
態を表す情報を、その異常状態が生じた項目に対応する
ストアセルにストアさせる手段と、 前記メモリのストアセルのストア内容が正しいかどうか
を判断する手段とを含むことを特徴とするマイクロコン
ピュータを用いる異常検出装置。1. An abnormality detecting device using a microcomputer that determines that an abnormality has occurred when an abnormal state is continuously detected for a predetermined first time W1 for each of a plurality of items for which whether or not abnormality is to be detected. A means for detecting an abnormal state for each item, and a first abnormal continuation detecting means provided for each item for detecting whether or not the output of the abnormal state detection means has continued for a predetermined second time W2 In response to the output of the first abnormal continuation detecting means, the first abnormal continuation detecting means detects whether or not the abnormal state continues for a second time W2 and then continues for a predetermined third time W3. It is provided in common for each item, and the second
The sum of the time and the third time is set to the first time W1, the second abnormal continuation detecting means, the memory having the store cell corresponding to each item, and the output of the second abnormal continuation detecting means. In response to an abnormal condition
And a means for storing the information indicating the abnormal state in the store cell corresponding to the item in which the abnormal state has occurred, and determining whether the stored content of the store cell of the memory is correct, when continuing for the third time. An abnormality detection device using a microcomputer, which comprises:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1183065A JPH0610789B2 (en) | 1989-07-15 | 1989-07-15 | Anomaly detection device using microcomputer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1183065A JPH0610789B2 (en) | 1989-07-15 | 1989-07-15 | Anomaly detection device using microcomputer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0348340A JPH0348340A (en) | 1991-03-01 |
| JPH0610789B2 true JPH0610789B2 (en) | 1994-02-09 |
Family
ID=16129135
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1183065A Expired - Lifetime JPH0610789B2 (en) | 1989-07-15 | 1989-07-15 | Anomaly detection device using microcomputer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0610789B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3842709B2 (en) | 2002-09-06 | 2006-11-08 | 本田技研工業株式会社 | Intake air amount calculation device for internal combustion engine |
-
1989
- 1989-07-15 JP JP1183065A patent/JPH0610789B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0348340A (en) | 1991-03-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9159178B2 (en) | In-vehicle control system and in-vehicle control apparatus | |
| JP4103606B2 (en) | Time-series freeze frame data creation method and vehicle control apparatus | |
| JP7524356B2 (en) | Hardware-Based Sensor Analytics | |
| JPH0610789B2 (en) | Anomaly detection device using microcomputer | |
| US20190042381A1 (en) | Processor with non-intrusive self-testing | |
| JP2000146765A (en) | Vehicle electronic control unit | |
| JP2554282B2 (en) | Fault diagnosis device for sequence controller | |
| US11726853B2 (en) | Electronic control device | |
| JP2001175494A (en) | System and method for doubly diagnosing normality of arithmetic processing of microprocessor | |
| JPH06342387A (en) | Fault information gathering system of information processor | |
| JP2503980B2 (en) | Memory diagnostic circuit | |
| JP2001127620A (en) | Timer with self-diagnostic function | |
| JP6813963B2 (en) | Operating status recording system and operating status recording method | |
| JPS59140519A (en) | Controller for robot | |
| JP2005210332A (en) | Timer counter and its operation program | |
| JPS6051136B2 (en) | Data error detection method | |
| JPS5833758A (en) | Programmable controller | |
| JPS5918741B2 (en) | Automatic diagnosis method | |
| JPH1021121A (en) | Microcomputer device | |
| JPH02110337A (en) | Diagnostic apparatus for breakdown of vehicle | |
| JPH08263302A (en) | Interrupt monitoring controller | |
| JP2024530327A (en) | Hardware-Based Sensor Analytics | |
| JP2004013394A (en) | Diagnostic device | |
| JPH1011317A (en) | Digital control device | |
| JPH0721093A (en) | Abnormality monitoring method for direct memory access device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080209 Year of fee payment: 14 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090209 Year of fee payment: 15 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090209 Year of fee payment: 15 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100209 Year of fee payment: 16 |
|
| EXPY | Cancellation because of completion of term | ||
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100209 Year of fee payment: 16 |