JPH0893544A - Diagnostic data storing system - Google Patents

Diagnostic data storing system

Info

Publication number
JPH0893544A
JPH0893544A JP6254464A JP25446494A JPH0893544A JP H0893544 A JPH0893544 A JP H0893544A JP 6254464 A JP6254464 A JP 6254464A JP 25446494 A JP25446494 A JP 25446494A JP H0893544 A JPH0893544 A JP H0893544A
Authority
JP
Japan
Prior art keywords
data
diagnostic data
abnormality
update
priority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6254464A
Other languages
Japanese (ja)
Inventor
Sanae Hirata
佐奈恵 平田
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.)
Denso Corp
Original Assignee
NipponDenso Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NipponDenso Co Ltd filed Critical NipponDenso Co Ltd
Priority to JP6254464A priority Critical patent/JPH0893544A/en
Publication of JPH0893544A publication Critical patent/JPH0893544A/en
Pending legal-status Critical Current

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

PURPOSE: To prevent erroneous diagnosis even when power supply is cut off while the abnormality diagnostic data having low priority is being forcibly renewed to the abnormality diagnostic data having high priority. CONSTITUTION: Various kinds of diagnostic data are periodically renewed and stored into a frame of a memory, and renewing of the diagnostic data is prohibited after an abnormality is generated. After that, when an abnormality having priority higher than that of an abnormality stored in the frame is generated, the renewing prohibiting state of the frame date is temporarily released, and the frame data is forcibly renewed to the abnormality diagnostic date having high priority. In this case, the frame data is initialized by a value (for example, 0) capable of being discriminated from the diagnostic data prior to renewing of the data, and then the frame data is renewed. Accordingly, even if the power supply is cut off in the course of the renewing processing, whether the frame data is a real diagnostic data (an initial value) or the data not renewed and remaining caused by cutting off of power supply can be easily discriminated from the value of the data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、機器の異常の有無を監
視するダイアグノーシス(自己診断装置)に用いられる
診断データ記憶システムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a diagnostic data storage system used for diagnostics (self-diagnosis device) for monitoring the presence or absence of abnormalities in equipment.

【0002】[0002]

【従来の技術】例えば、近年の電子制御化が進んだ自動
車においては、エンジン,排出ガス関連装置等の車載機
器の動作状況に異常が発生していないか否かをダイアグ
ノーシスによって常時監視し、異常発生時には警告灯等
によって運転者にその異常を知らせると共に、異常発生
時の診断データ(各種センサデータ,制御データ)をメ
モリに保存し、サービス工場でメモリから診断データを
読み出すことで、異常原因を正確に把握できるようにし
ている。
2. Description of the Related Art For example, in automobiles which have been advanced in electronic control in recent years, it is constantly monitored by diagnostics whether or not there is an abnormality in the operating conditions of in-vehicle devices such as engines and exhaust gas-related devices. When an error occurs, the driver is notified of the error by a warning light, etc., and the diagnostic data (various sensor data, control data) when the error occurs is stored in the memory, and the diagnostic data is read from the memory at the service factory. So that you can know exactly.

【0003】このようなダイアグノーシスにおいて、異
常発生時の診断データをメモリに保存する方法は、特開
昭62−142849号公報,特開昭63−90738
号公報に示すように、機器の異常を診断するのに必要な
診断データを常時一定周期でメモリに更新記憶してゆ
き、異常が発生したときに以後の診断データの更新を禁
止(フリーズ)することで、異常発生時の診断データを
メモリに保持させるようになっている。
In such diagnosis, a method of storing diagnostic data when an abnormality occurs in a memory is disclosed in JP-A-62-142849 and JP-A-63-90738.
As shown in Japanese Patent Publication, diagnostic data necessary for diagnosing a device abnormality is constantly updated and stored in a memory at a constant cycle, and when an error occurs, the subsequent update of diagnostic data is prohibited (freeze). As a result, the diagnostic data at the time of occurrence of an abnormality is held in the memory.

【0004】しかしながら、このような診断データ記憶
方法では、一旦、何等かの異常が発生して診断データの
更新が禁止されてしまうと、その後、これよりも重大な
異常が発生しても、その診断データをメモリに保存する
ことができないという欠点がある。
However, in such a diagnostic data storage method, if some abnormality occurs once and updating of the diagnostic data is prohibited, even if a more serious abnormality occurs thereafter, that The disadvantage is that diagnostic data cannot be stored in memory.

【0005】そこで、この欠点を解消するために、本出
願人は、特開平6−66197号公報に示すように、異
常の重大度に応じて診断データ更新の優先度をつけ、優
先度の高い異常の診断データと低い異常の診断データと
をメモリの別々の記憶領域に更新記憶し、優先度の低い
異常の診断データの更新が禁止された後でも、別の記憶
領域で、優先度の高い異常の診断データを更新記憶でき
るようにしたものを提案している。
Therefore, in order to solve this drawback, the present applicant assigns a priority of updating the diagnostic data according to the severity of the abnormality as shown in Japanese Patent Laid-Open No. 6-66197, and the priority is high. The abnormality diagnosis data and the low abnormality diagnosis data are updated and stored in separate storage areas of the memory, and even after the update of the low-priority abnormality diagnosis data is prohibited, the high priority is set in another storage area. It is proposed that the diagnostic data of abnormality can be updated and stored.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記構
成では、異常の優先度に応じて複数の診断データ記憶領
域を必要とするので、メモリ容量を大幅に増大しなけれ
ばならず、最近の重要な技術的課題である低コスト化の
要求に反する。
However, in the above configuration, a plurality of diagnostic data storage areas are required according to the priority of abnormality, so that the memory capacity must be greatly increased, which is an important issue in recent years. It goes against the demand for cost reduction, which is a technical issue.

【0007】これを解決するため、本発明者は、優先度
の低い異常が発生した後に、優先度が高い異常が発生し
たときに、優先度の低い異常の診断データを優先度の高
い異常の診断データに強制的に更新するようにすれば良
いと考えている。
In order to solve this, the present inventor, when an abnormality with a high priority occurs after an abnormality with a low priority occurs, the present inventor sets the diagnostic data of the abnormality with a low priority as an abnormality with a high priority. I think that it is better to forcefully update the diagnostic data.

【0008】しかしながら、この場合には、診断データ
の更新途中に、イグニッションスイッチがオフされて電
源供給が遮断されると、メモリの診断データ記憶領域の
一部に未だデータ更新の終了していない部分が残ってし
まい、却って誤った診断データを与えてしまうという不
具合が発生する。これを避けるために、イグニッション
スイッチのオフ後も暫く電源供給を続けるリレー回路を
設けることも考えられるが、これではハード構成が複雑
化して低コスト化の要求に反する。
However, in this case, if the ignition switch is turned off and the power supply is cut off during the updating of the diagnostic data, the portion of the diagnostic data storage area of the memory where the data update is not yet completed. Will remain, which will give a wrong diagnostic data. In order to avoid this, it may be possible to provide a relay circuit that continues to supply power for a while even after the ignition switch is turned off. However, this complicates the hardware configuration and goes against the demand for cost reduction.

【0009】本発明はこのような事情を考慮してなされ
たものであり、従ってその目的は、優先度の高い異常を
優先させながら優先度の異なる異常の診断データを同じ
記憶領域に記憶できると共に、診断データの更新途中に
電源供給が遮断された場合でも、それをデータの値から
判断することができて、誤診断を防止することができる
診断データ記憶システムを提供することにある。
The present invention has been made in view of the above circumstances, and therefore an object thereof is to make it possible to store diagnostic data of abnormalities of different priorities in the same storage area while giving priority to abnormalities of high priority. It is an object of the present invention to provide a diagnostic data storage system capable of determining the data value even when the power supply is cut off during updating of the diagnostic data and preventing erroneous diagnosis.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するため
に、本発明の請求項1の診断データ記憶システムは、機
器の異常を診断するのに必要な診断データを繰り返し更
新記憶する記憶手段を備え、前記機器の異常が発生した
ときに以後の診断データの更新を禁止することにより異
常発生時の診断データを保持するようにしたものにおい
て、前記機器の異常の重大度に応じて診断データ更新の
優先度を判定する優先度判定手段と、前記記憶手段に記
憶されている異常よりも優先度が高い異常が発生したと
きに前記診断データの更新禁止状態を一時的に解除して
優先度の高い異常の診断データに強制的に更新する優先
データ更新手段と、前記診断データを更新する際にそれ
に先立って前記記憶手段の診断データ記憶領域を前記診
断データと区別可能な値で初期化する初期化手段とを備
えた構成としたものである。
In order to achieve the above object, the diagnostic data storage system according to claim 1 of the present invention comprises a storage means for repeatedly updating and storing diagnostic data necessary for diagnosing an abnormality of a device. In order to retain the diagnostic data at the time of occurrence of an abnormality by prohibiting the subsequent update of the diagnostic data when the abnormality of the equipment occurs, the diagnostic data is updated according to the severity of the abnormality of the equipment. Priority determining means for determining the priority of the diagnostic data, and when an abnormality having a higher priority than the abnormality stored in the storage means occurs, the update prohibition state of the diagnostic data is temporarily released to Priority data updating means forcibly updating to diagnostic data of high abnormality, and the diagnostic data storage area of the storage means can be distinguished from the diagnostic data prior to updating the diagnostic data. Such is obtained by a structure in which a initializing means for initializing the value.

【0011】この場合、請求項2のように、前記診断デ
ータを更新する際に重要度の高いデータの順に更新する
ようにしても良い。更に、請求項3のように前記初期化
手段により前記記憶手段の診断データ記憶領域を初期化
する際に重要度の低いデータの順に初期化するようにし
ても良い。また、請求項4のように、前記記憶手段の診
断データの更新が最後のアドレスまで正常に終了したか
否かを判定するデータ更新正常終了判定手段を設けても
良い。
In this case, as in claim 2, when the diagnostic data is updated, the data may be updated in order of importance. Further, when the initialization means initializes the diagnostic data storage area of the storage means, the initialization may be performed in the order of data having a low degree of importance. Further, as in claim 4, a data update normal end determination means for determining whether or not the update of the diagnostic data in the storage means has been normally completed up to the last address may be provided.

【0012】この構成において、請求項5のように、前
記データ更新正常終了判定手段により、データ更新が最
後のアドレスまで正常に終了していないと判定された場
合には、前記記憶手段に記憶されている異常の優先度と
同等若しくはそれより高い優先度の異常が発生したとき
に前記診断データの更新禁止状態を一時的に解除して診
断データを強制的に更新するようにしても良い。
In this structure, when the data update normal end determination means determines that the data update is not normally completed up to the last address, the data is stored in the storage means. It is also possible to temporarily cancel the update prohibition state of the diagnostic data and forcibly update the diagnostic data when an abnormality with a priority equal to or higher than the priority of the present abnormality occurs.

【0013】また、請求項6のように、前記データ更新
正常終了判定手段は、前記記憶手段の診断データ記憶領
域のうちデータ更新が最後に行われるアドレスに記憶さ
れているデータを見ることによってデータ更新が最後の
アドレスまで正常に終了したか否かを判定するようにし
ても良い。
According to a sixth aspect of the present invention, the data update normal termination determining means determines whether or not the data stored in the diagnostic data storage area of the storage means is stored at an address where the data update is performed last. It may be possible to determine whether the update has been normally completed up to the last address.

【0014】[0014]

【作用】上述した請求項1の構成によれば、診断データ
を繰り返し記憶手段に更新記憶し、前記機器の異常が発
生したときに以後の診断データの更新を禁止することに
より異常発生時の診断データを記憶手段に保持させる。
この後、別の異常が発生した場合には、その異常の重大
度に応じて診断データ更新の優先度を優先度判定手段に
より判定し、前記記憶手段に記憶されている異常よりも
優先度が高い異常が発生したときに、優先データ更新手
段により前記診断データの更新禁止状態を一時的に解除
して、記憶手段に記憶されている診断データを優先度の
高い異常の診断データに強制的に更新する。この際、デ
ータ更新に先立って、初期化手段により記憶手段の診断
データ記憶領域を診断データと区別可能な値で初期化し
た上で、診断データを更新する。従って、この更新処理
の途中で、万一、電源供給が遮断されたとしても、診断
データ記憶領域に記憶されているデータが、本当の診断
データであるのか、電源供給遮断により未更新で残され
たデータ(初期値)であるのかをデータの値から容易に
判別することができ、誤診断を防止することができる。
この場合でも、電源供給遮断前に更新が完了した診断デ
ータについては信頼でき、このデータを利用して異常原
因をある程度推定可能である。
According to the above-mentioned structure of the first aspect, the diagnostic data is repeatedly stored in the storage means, and when the abnormality of the device occurs, the diagnostic data at the time of the abnormality is prohibited by prohibiting the update of the diagnostic data thereafter. The data is held in the storage means.
After that, when another abnormality occurs, the priority of the diagnostic data update is determined by the priority determination means according to the severity of the abnormality, and the priority is higher than that of the abnormality stored in the storage means. When a high abnormality occurs, the priority data updating means temporarily cancels the update prohibition state of the diagnostic data, and the diagnostic data stored in the storage means is forced to be the diagnostic data of the high priority abnormality. Update. At this time, prior to updating the data, the initializing means initializes the diagnostic data storage area of the storage means with a value that can be distinguished from the diagnostic data, and then updates the diagnostic data. Therefore, even if the power supply is cut off in the middle of this updating process, whether the data stored in the diagnostic data storage area is true diagnostic data or remains unupdated due to the power supply cutoff. It is possible to easily discriminate whether or not the data is the initial data, and it is possible to prevent erroneous diagnosis.
Even in this case, the diagnostic data updated before the power supply is cut off is reliable, and the cause of the abnormality can be estimated to some extent using this data.

【0015】この場合、請求項2のように、診断データ
を更新する際に重要度の高いデータの順に更新するよう
にすれば、更新処理の途中で、万一、電源供給が遮断さ
れたとしても、重要度の高いデータは既に更新済みであ
り、被害が最小限にとどめられる。
In this case, if the diagnostic data is updated in the order of the most important data when the diagnostic data is updated, the power supply may be cut off during the update process. However, the data of high importance has already been updated, and the damage can be minimized.

【0016】更に、請求項3のように、初期化手段によ
り記憶手段の診断データ記憶領域を初期化する際に重要
度の低いデータの順に初期化するようにすれば、初期化
処理の途中で、万一、電源供給が遮断されたとしても、
重要度の高いデータは初期化されずに最後まで残ってお
り、被害が最小限にとどめられる。
Further, when the diagnostic data storage area of the storage means is initialized by the initialization means in the order of the data having lower importance, the initialization processing may be performed in the middle of the initialization process. In the unlikely event that the power supply is cut off,
Highly important data is not initialized and remains until the end, so damage is minimized.

【0017】また、請求項4では、データ更新正常終了
判定手段が記憶手段の診断データの更新が最後のアドレ
スまで正常に終了したか否かを判定する。これにより、
データ更新が最後のアドレスまで正常に終了していない
場合には、これを自動的に判定することができる。但
し、データ更新が最後のアドレスまで正常に終了したか
否かの判定は、人が行うようにしても良い。
Further, in claim 4, the data update normal end determining means determines whether or not the update of the diagnostic data in the storage means has been normally completed up to the last address. This allows
If the data update is not normally completed up to the last address, this can be automatically determined. However, a person may determine whether or not the data update is normally completed up to the last address.

【0018】この場合、請求項5では、データ更新正常
終了判定手段により、データ更新が最後のアドレスまで
正常に終了していないと判定された場合には、記憶手段
に記憶されている異常の優先度と同等若しくはそれより
高い優先度の異常が発生したときに、診断データの更新
禁止状態を一時的に解除して診断データを強制的に更新
する。これにより、データ更新が途中で終わってしまっ
た場合には、再度、優先度に応じて診断データを更新し
直すことができる。
In this case, if the data update normal end determining means determines that the data update has not normally ended up to the last address, the abnormality priority stored in the storage means is given priority. When an abnormality having a priority equal to or higher than the priority occurs, the update prohibition state of the diagnostic data is temporarily released and the diagnostic data is forcibly updated. As a result, when the data update ends midway, the diagnostic data can be updated again according to the priority.

【0019】また、請求項6では、データ更新正常終了
判定手段が記憶手段の診断データ記憶領域のうちデータ
更新が最後に行われるアドレスに記憶されているデータ
を見ることによってデータ更新が最後のアドレスまで正
常に終了したか否かを判定する。つまり、データ更新が
最後に行われるアドレスのデータが初期値のままであれ
ば、データ更新が最後のアドレスまで行われなかったと
判定され、そうでなければ、全てのデータ更新が正常終
了と判定される。
According to a sixth aspect of the present invention, the data update normal end determining means looks at the data stored at the address where the data update is performed last in the diagnostic data storage area of the storage means. It is determined whether or not the process ends normally. In other words, if the data at the address where the data is updated last remains the initial value, it is determined that the data has not been updated up to the last address, and if not, it is determined that all data updates have been completed normally. It

【0020】[0020]

【実施例】以下、本発明をV型エンジン搭載の自動車の
ダイアグノーシス(自己診断装置)に適用した一実施例
を図面に基づいて説明する。まず、図1及び図2に基づ
いてエンジン制御系システム全体の概略構成を説明す
る。エンジン11の吸気ポート12に接続された吸気管
13の上流側にはエアフローメータ14が設けられ、こ
のエアフローメータ14で測定した吸入空気流量がポテ
ンショメータ15で電圧信号に変換されて出力される。
また、エアフローメータ14の下流側には吸入空気温度
を検出する吸気温センサ16とスロットル弁17が設け
られ、このスロットル弁17の開度がスロットルセンサ
18によって検出される。更に、吸気ポート12の近傍
には燃料噴射弁19が設けられている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to a diagnosis (self-diagnosis device) of an automobile equipped with a V-type engine will be described below with reference to the drawings. First, a schematic configuration of the entire engine control system system will be described with reference to FIGS. 1 and 2. An air flow meter 14 is provided on the upstream side of an intake pipe 13 connected to an intake port 12 of the engine 11, and an intake air flow rate measured by the air flow meter 14 is converted into a voltage signal by a potentiometer 15 and output.
An intake air temperature sensor 16 for detecting the intake air temperature and a throttle valve 17 are provided on the downstream side of the air flow meter 14, and the opening degree of the throttle valve 17 is detected by a throttle sensor 18. Further, a fuel injection valve 19 is provided near the intake port 12.

【0021】一方、エンジン11の排気ポート20に接
続された排気管21には、排出ガス中の酸素濃度を検出
するO2 センサ22や排出ガス浄化触媒23が設けられ
ている。また、エンジン11を冷却するウォータジャケ
ット24には、冷却水温を検出する水温センサ25が取
り付けられている。また、エンジン11の各シリンダの
点火プラグ26に高圧電流を配給するディストリビュー
タ27には、特定気筒のクランク角基準位置を判別する
ための気筒判別センサ28と、エンジン回転数に応じた
周波数のパルス信号を出力する回転角センサ29が設け
られている。上記ディストリビュータ27にはイグナイ
タ30の高圧二次電流が供給される。
On the other hand, an exhaust pipe 21 connected to the exhaust port 20 of the engine 11 is provided with an O 2 sensor 22 for detecting the oxygen concentration in the exhaust gas and an exhaust gas purifying catalyst 23. A water temperature sensor 25 that detects the cooling water temperature is attached to the water jacket 24 that cools the engine 11. The distributor 27, which distributes a high voltage current to the spark plug 26 of each cylinder of the engine 11, includes a cylinder discrimination sensor 28 for discriminating a crank angle reference position of a specific cylinder, and a pulse signal having a frequency corresponding to the engine speed. A rotation angle sensor 29 that outputs is output. The high voltage secondary current of the igniter 30 is supplied to the distributor 27.

【0022】尚、図1には図示されていないが、この実
施例のエンジン11はV型エンジンであるため、吸排気
系がAバンクとBバンクの2系統あり、図2に示すよう
に、エアフローメータ14のポテンショメータ15やO
2 センサ22が2個ずつ設けられている。
Although not shown in FIG. 1, since the engine 11 of this embodiment is a V-type engine, there are two systems of intake and exhaust systems, A bank and B bank. As shown in FIG. Air flow meter 14 potentiometer 15 and O
Two 2 sensors 22 are provided.

【0023】一方、エンジン11を制御する制御ユニッ
ト31は、図2に示すように、各種センサデータをマル
チプレクサ32,A/D変換回路33,波形成形回路3
4,入出力ポート35,36,データバス45を介して
CPU37に読み込んで演算し、その演算により求めた
制御信号を出力ポート38,39,40から駆動回路4
1,42,33に出力して、警告灯等の異常警告手段4
4,イグナイタ30,燃料噴射弁19の動作を制御す
る。
On the other hand, the control unit 31 for controlling the engine 11, as shown in FIG. 2, receives various sensor data from the multiplexer 32, the A / D conversion circuit 33, and the waveform shaping circuit 3.
4, the input / output ports 35 and 36, and the data bus 45 are read into the CPU 37 for calculation, and the control signal obtained by the calculation is output from the output ports 38, 39 and 40 to the drive circuit 4
1, 42, 33 to output an abnormality warning means 4 such as a warning light.
4, controlling operations of the igniter 30 and the fuel injection valve 19.

【0024】この制御ユニット31には、CPU37に
クロックを与える発振回路46,RAM47,スタンバ
イRAM48(記憶手段),ROM49が設けられてい
る。上記RAM47は、データを一時的に記憶する揮発
性メモリであり、スタンバイRAM48は、バックアッ
プ電源付きのRAM(EEPROMでも可)であり、イ
グニッションスイッチ(IG)のオフにより制御ユニッ
ト31への電源供給が遮断されたときにも記憶データが
保持される書換え可能な不揮発性メモリである。また、
ROM49には、各種のエンジン制御プログラムの他、
図3〜図7に示す自己診断機能(ダイアグノーシス)の
プログラムが記憶されている。この自己診断プログラム
を実行することにより、異常が検出されたときには、警
告灯等の異常警告手段44によってその異常を運転者に
知らせると共に、異常発生時の診断データは後述するよ
うにスタンバイRAM48の診断データ記憶領域(フレ
ーム)に記憶保持される。異常発生時の診断データをス
タンバイRAM48から読み出す場合には、制御ユニッ
ト31の相互通信回路50に外部から故障診断装置51
をコネクタ等で接続すれば、故障診断装置51で異常発
生時の診断データを読み出して、異常の発生状況を解析
できるようになっている。
The control unit 31 is provided with an oscillation circuit 46 for giving a clock to the CPU 37, a RAM 47, a standby RAM 48 (storage means), and a ROM 49. The RAM 47 is a volatile memory that temporarily stores data, and the standby RAM 48 is a RAM with backup power supply (which may be EEPROM). Power is supplied to the control unit 31 by turning off the ignition switch (IG). It is a rewritable non-volatile memory that retains stored data even when it is cut off. Also,
In the ROM 49, in addition to various engine control programs,
A program for the self-diagnosis function (diagnosis) shown in FIGS. 3 to 7 is stored. When an abnormality is detected by executing this self-diagnosis program, the abnormality warning means 44 such as a warning light notifies the driver of the abnormality, and the diagnostic data at the time of the abnormality is diagnosed in the standby RAM 48 as described later. It is stored and held in the data storage area (frame). When the diagnostic data at the time of occurrence of an abnormality is read from the standby RAM 48, the failure diagnostic device 51 is externally provided to the mutual communication circuit 50 of the control unit 31.
Is connected by a connector or the like, the failure diagnosis device 51 can read the diagnostic data at the time of occurrence of an abnormality and analyze the occurrence state of the abnormality.

【0025】次に、制御ユニット31によって実行され
る図3〜図7の自己診断プログラムについて説明する。
図3は燃料系の異常を検出するルーチンであり、例えば
128m秒ごとに周期的に実行される。このルーチンで
は、まず、ステップ301,302で、空燃比補正係数
FAFが上限値若しくは下限値であるか否かを判定す
る。ここで、空燃比補正係数FAFは、O2 センサ22
の出力を積分・スキップ処理して求められた値である。
上記ステップ301,302で、空燃比補正係数FAF
が上限値又は下限値のいずれかであると判定されると、
その状態が10秒続いたか否かを判定し(ステップ30
4)、10秒続けば、燃料系の異常が発生したものとみ
なして燃料系異常フラグを通常のRAM47の所定アド
レスにセットする(ステップ304)。しかし、空燃比
補正係数FAF=上・下限値の状態が10秒以内に終わ
れば、ステップ303の判定が「No」となり、燃料系
異常フラグをセットせずに本ルーチンを終了する。ま
た、ステップ301,302で、空燃比補正係数FAF
が上限値,下限値のいずれでもないと判定されれば、燃
料系異常フラグをクリアして(ステップ305)、本ル
ーチンを終了する。
Next, the self-diagnosis program of FIGS. 3 to 7 executed by the control unit 31 will be described.
FIG. 3 is a routine for detecting an abnormality in the fuel system, which is periodically executed, for example, every 128 milliseconds. In this routine, first, in steps 301 and 302, it is determined whether the air-fuel ratio correction coefficient FAF is the upper limit value or the lower limit value. Here, the air-fuel ratio correction coefficient FAF is calculated by the O 2 sensor 22.
Is the value obtained by integrating and skipping the output of.
In the above steps 301 and 302, the air-fuel ratio correction coefficient FAF
Is determined to be either the upper limit value or the lower limit value,
It is determined whether or not the state has continued for 10 seconds (step 30
4) After continuing for 10 seconds, it is considered that the fuel system abnormality has occurred, and the fuel system abnormality flag is set to a predetermined address of the normal RAM 47 (step 304). However, if the state of the air-fuel ratio correction coefficient FAF = upper / lower limit value ends within 10 seconds, the determination in step 303 becomes “No”, and this routine is ended without setting the fuel system abnormality flag. Further, in steps 301 and 302, the air-fuel ratio correction coefficient FAF
If it is determined that is neither the upper limit nor the lower limit, the fuel system abnormality flag is cleared (step 305) and this routine is ended.

【0026】一方、図4はスロットルセンサ18の異常
を検出するルーチンであり、例えば64m秒ごとに周期
的に実行される。このルーチンでは、まず、ステップ4
01,402で、スロットルセンサ18から出力される
スロットル開度信号が正常範囲内(0.1V<スロット
ル開度信号≦4.9V)であるか否か判定し、この範囲
内にあれば、スロットルセンサ18は正常であるので、
ステップ405に進んで、通常のRAM47中のスロッ
トルセンサフェイルカウンタをクリアすると共に、スロ
ットルセンサフェイルフラグもクリアする(ステップ4
06)。一方、スロットル開度信号が正常範囲外であれ
ば、ステップ403に進んで、その状態が500m秒続
いたか否かを判定し、500m秒続けば、スロットルセ
ンサ18の異常が発生したものとみなしてスロットルセ
ンサ異常フラグを通常のRAM47中にセットする(ス
テップ404)。しかし、スロットル開度信号が正常範
囲外の状態が500m秒以内に終われば、ステップ40
3の判定が「No」となり、スロットルセンサ異常フラ
グをセットせずに本ルーチンを終了する。
On the other hand, FIG. 4 shows a routine for detecting an abnormality in the throttle sensor 18, which is periodically executed, for example, every 64 msec. In this routine, first, step 4
At 01 and 402, it is determined whether or not the throttle opening signal output from the throttle sensor 18 is within a normal range (0.1 V <throttle opening signal ≦ 4.9 V). Since the sensor 18 is normal,
In step 405, the throttle sensor fail counter in the normal RAM 47 is cleared and the throttle sensor fail flag is also cleared (step 4).
06). On the other hand, if the throttle opening signal is out of the normal range, the routine proceeds to step 403, where it is judged whether or not the state has continued for 500 msec. If it continues for 500 msec, it is considered that the abnormality of the throttle sensor 18 has occurred. The throttle sensor abnormality flag is set in the normal RAM 47 (step 404). However, if the state where the throttle opening signal is out of the normal range ends within 500 ms, step 40
The determination of No. 3 is "No", and this routine is terminated without setting the throttle sensor abnormality flag.

【0027】次に、スタンバイRAM48内の診断デー
タ記憶領域(以下「フレーム」という)に更新記憶され
る診断データについて説明する。この実施例における診
断データとしては、図8に示すように、例えば、エンジ
ン回転数,エンジン水温,車速,エンジン負荷(Aバン
ク),エンジン負荷(Bバンク),吸入空気温度,燃料
系学習値(Aバンク),燃料系学習値(Bバンク),空
燃比補正係数FAF(Aバンク),空燃比補正係数FA
F(Bバンク)がフレームの各アドレスに更新記憶され
る(以下これらの診断データを総称して「フレームデー
タ」という)。フレームの先頭のアドレスには、異常の
種類を示す異常コードが記憶される。この異常コードの
値は、図9に示すように、例えばスロットルセンサ異常
であれば“0121”となり、燃料系異常であれば“0
300”となる。この異常コードは、異常の重大度、つ
まり更新記憶の優先度を判定するデータとしても用いら
れる。この実施例では、フレームデータは、重要度の高
いデータほど上位のアドレスに記憶され、データ更新時
に、重要度の高いデータの順に更新されるようになって
いる。
Next, the diagnostic data updated and stored in the diagnostic data storage area (hereinafter referred to as "frame") in the standby RAM 48 will be described. As the diagnostic data in this embodiment, as shown in FIG. 8, for example, engine speed, engine water temperature, vehicle speed, engine load (A bank), engine load (B bank), intake air temperature, fuel system learning value ( A bank), fuel system learning value (B bank), air-fuel ratio correction coefficient FAF (A bank), air-fuel ratio correction coefficient FA
F (B bank) is updated and stored at each address of the frame (hereinafter, these diagnostic data are collectively referred to as "frame data"). An abnormal code indicating the type of abnormality is stored in the address at the head of the frame. As shown in FIG. 9, the value of this abnormality code is, for example, "0121" when the throttle sensor is abnormal and "0" when the fuel system is abnormal.
This abnormal code is also used as data for determining the severity of abnormality, that is, the priority of update storage. In this embodiment, frame data is stored at higher addresses as data of higher importance. Therefore, when updating the data, the data is updated in the order of importance.

【0028】このフレームデータは、図5に示すルーチ
ンを周期的に実行することにより、例えば64m秒ごと
に最新の診断データに更新され(ステップ502)、そ
の後、異常コードが記憶された時点、つまり何等かの異
常が発生した時点で、以後のフレームデータの更新が禁
止され、フリーズされる(ステップ501)。
This frame data is updated to the latest diagnostic data every 64 msec, for example, by periodically executing the routine shown in FIG. 5 (step 502), and thereafter, at the time when the abnormal code is stored, that is, When any abnormality occurs, the subsequent frame data update is prohibited and is frozen (step 501).

【0029】ところで、従来のものは、一旦、何等かの
異常が発生してフレームデータがフリーズされてしまう
と、その後、これよりも重大な異常が発生しても、フレ
ームデータを更新することができないという欠点があっ
た。
By the way, in the conventional system, once some abnormality occurs and the frame data is frozen, the frame data can be updated even if a more serious abnormality occurs thereafter. There was a drawback that I could not.

【0030】そこで、この実施例では、上記欠点を解消
するため、図6に示す優先データ更新処理ルーチンを例
えば64m秒ごとに周期的に実施することにより、優先
度の高い異常が発生したときに診断データの更新禁止状
態(フレームデータのフリーズ)を一時的に解除してフ
レームデータを優先度の高い異常の診断データに更新す
る。更に、データ更新が最後のアドレスまで正常に終了
していない(つまりフリーズフレームデータ異常)と判
定された場合には、フレームに記憶されている異常の優
先度と同等若しくはそれより高い優先度の異常が発生し
たときに、フレームデータのフリーズを一時的に解除し
てフレームデータを強制的に更新する。以下、この優先
データ更新処理ルーチンの処理の流れを図6のフローチ
ャートに従って説明する。
Therefore, in this embodiment, in order to solve the above-mentioned drawback, the priority data update processing routine shown in FIG. 6 is periodically executed, for example, every 64 msec, so that an abnormality of high priority occurs. The update prohibition state (freezing of frame data) of the diagnostic data is temporarily released, and the frame data is updated to the diagnostic data of the abnormality of high priority. Further, when it is determined that the data update is not normally completed up to the last address (that is, the freeze frame data error), an error having a priority equal to or higher than the priority of the error stored in the frame. When is generated, the freeze of the frame data is temporarily released and the frame data is forcibly updated. The processing flow of this priority data update processing routine will be described below with reference to the flowchart of FIG.

【0031】まず、ステップ601で、優先度の高い異
常コードがフレームの先頭アドレスに記憶されているか
否かによって優先度の高い異常発生時のフレームデータ
が既にフリーズ済みか否かを判定する。この実施例で
は、異常の優先度を異常コードの種類によって判定し、
スロットルセンサ異常(異常コード=0121)より
も、燃料系異常(異常コード=0300)の方が優先度
が高いと判定する。優先度の高い異常のコードが未だ記
憶されていない場合には、ステップ601の判定が「N
o」となってステップ602に進むが、優先度の高い異
常のコードが既に記憶済みであれば、ステップ601の
判定が「Yes」となってステップ612に進む。
First, in step 601, it is determined whether or not the frame data at the time of occurrence of the abnormality of high priority has already been frozen depending on whether or not the abnormality code of high priority is stored at the head address of the frame. In this embodiment, the priority of abnormality is determined by the type of abnormality code,
It is determined that the priority of the fuel system abnormality (abnormality code = 0300) is higher than that of the throttle sensor abnormality (abnormality code = 0121). If the abnormal code of high priority is not yet stored, the determination in step 601 is "N".
However, if the abnormal code with high priority has already been stored, the determination in step 601 becomes “Yes” and the process proceeds to step 612.

【0032】(1)優先度の高い異常のフレームデータ
が未だフリーズされていない場合ステップ602に進ん
で、優先度の高い異常が発生しているか否かを、図3の
燃料系異常検出ルーチンの説明で述べた燃料系異常フラ
グにより判定し、発生していなければ、ステップ603
に進んで、優先度の低い異常コードが記憶されているか
否かによって優先度の低い異常発生時のフレームデータ
が既にフリーズ済みか否かを判定する。優先度の低い異
常コードも記憶されていなければ、ステップ604に進
んで、優先度の低い異常が発生しているか否かを、図4
のスロットルセンサ異常検出ルーチンの説明で述べたス
ロットルセンサフェイルフラグにより判定し、発生して
いなければ、フレームデータをフリーズせずに、本ルー
チンを終了する。もし、上述したステップ604で、優
先度の低い異常が発生していると判定されれば、ステッ
プ605に進んで、異常コードをフレームの先頭のアド
レスに記憶し、優先度の低い異常が発生したときのフレ
ームデータをフリーズする。
(1) When the frame data of the high-priority abnormality has not been frozen yet, the routine proceeds to step 602, where it is determined whether the high-priority abnormality has occurred in the fuel system abnormality detection routine of FIG. It is determined by the fuel system abnormality flag described in the explanation, and if it has not occurred, step 603.
Then, it is determined whether or not the frame data at the time of occurrence of the low-priority abnormality has already been frozen depending on whether or not the low-priority abnormality code is stored. If the abnormal code with the low priority is not stored, the process proceeds to step 604 to check whether or not the abnormal code with the low priority has occurred.
This determination is made by the throttle sensor fail flag described in the explanation of the throttle sensor abnormality detection routine of No., and if it has not occurred, this routine is terminated without freezing the frame data. If it is determined in step 604 described above that a low-priority abnormality has occurred, the flow proceeds to step 605, where the abnormality code is stored at the beginning address of the frame, and a low-priority abnormality has occurred. Freeze the frame data when.

【0033】一方、上述したステップ603で、優先度
の低い異常コードを記憶済みと判定されれば、ステップ
606に進んで、フリーズフレームデータが正常か否か
を判定する。つまり、フレームデータの更新途中に、イ
グニッションスイッチ(IG)のオフにより電源がオフ
され、図9(c)に示すように、フレームデータの一部
に未だデータ更新の終了していない部分が残っているか
否かを判定する。データ更新が最後まで正常に終了して
いれば、上記ステップ606の判定が「Yes」とな
り、本ルーチンを終了する。つまり、優先度の低い異常
のフレームデータが正常な状態で記憶済みであれば、そ
の後に、優先度の高い異常が発生するまで、フリーズフ
レームデータは更新されず、保持される。
On the other hand, if it is determined in step 603 described above that the abnormal code with low priority has been stored, the process proceeds to step 606 to determine whether the freeze frame data is normal. That is, while the frame data is being updated, the power is turned off by turning off the ignition switch (IG), and as shown in FIG. 9C, a part of the frame data has not yet been updated. It is determined whether or not there is. If the data update is normally completed to the end, the determination in step 606 is “Yes”, and this routine is ended. That is, if the abnormal frame data with the low priority is already stored in the normal state, the freeze frame data is not updated and held until the abnormal with the high priority occurs thereafter.

【0034】これに対し、上記ステップ606で、フリ
ーズフレームデータが異常と判定されれば、ステップ6
07に進み、優先度の低い異常が発生していれば、ステ
ップ608に進んで、異常コードを初期化(クリア)し
て、フリーズ状態を一時的に解除すると共に、フレーム
データを初期化する。ここで、“初期化”とは、図9
(a)に示すようにフレームの各アドレスに書き込まれ
た値を図9(b)に示すように診断データと区別可能な
値に書き換えることを意味し、この実施例では、全ての
アドレスのデータを“0”クリアするようにしている。
但し、“初期化”は“0”クリアに限定されず、診断デ
ータと区別可能な値であれば、どの様な値で初期化して
も良い。上記ステップ608で、フレームデータをクリ
アした後、ステップ609に進んで、発生した優先度の
低い異常に対応する異常コードの記憶とフレームデータ
の更新を行い、フレームデータをフリーズする。尚、フ
リーズフレームデータが異常と判定された場合でも、優
先度の低い異常が発生していなければ、ステップ607
の判定が「No」となり、フレームデータの更新を行わ
ずに、本ルーチンを終了する。
On the other hand, if it is determined in step 606 that the freeze frame data is abnormal, step 6
If the abnormality of low priority has occurred in 07, the routine proceeds to step 608 to initialize (clear) the abnormality code to temporarily cancel the freeze state and initialize the frame data. Here, "initialization" means that
This means that the value written in each address of the frame as shown in FIG. 9A is rewritten to a value that can be distinguished from the diagnostic data as shown in FIG. 9B. In this embodiment, the data of all addresses is rewritten. Is cleared to "0".
However, “initialization” is not limited to “0” clear, and any value may be used as long as it can be distinguished from the diagnostic data. After clearing the frame data in step 608, the process proceeds to step 609 to store the abnormal code corresponding to the generated low priority abnormality and update the frame data to freeze the frame data. Even if the freeze frame data is determined to be abnormal, if an abnormality with low priority has not occurred, step 607.
The determination is “No”, and this routine ends without updating the frame data.

【0035】一方、優先度の高い異常が初めて発生した
場合には、ステップ601,602を経てステップ61
0へ進み、優先度の低い異常コードを記憶済みか否かを
判定し、記憶済みでなければ、ステップ605に進み、
異常コードを記憶してフレームデータをフリーズする。
これに対し、上記ステップ610で、優先度の低い異常
コードを記憶済みと判定されれば、ステップ611に進
んで、異常コードをクリアして、フリーズ状態を一時的
に解除すると共に、フレームデータをクリアする。この
際、図9(a)に示すようなフレームデータは、図9
(b)に示すように重要度の低いアドレス(この実施例
では最下位のアドレス)のデータからクリアされる。こ
の後、ステップ615に進み、発生した優先度の高い異
常に対応する異常コードの記憶とフレームデータの更新
を行い、フレームデータをフリーズして、本ルーチンを
終了する。
On the other hand, when a high-priority abnormality occurs for the first time, steps 601, 602 and step 61 are executed.
The process proceeds to 0 to determine whether or not the abnormal code with low priority has been stored. If not stored, the process proceeds to step 605.
Store the abnormal code and freeze the frame data.
On the other hand, if it is determined in step 610 that the abnormal code with low priority has been stored, the process proceeds to step 611, the abnormal code is cleared, the freeze state is temporarily released, and the frame data is saved. clear. At this time, the frame data as shown in FIG.
As shown in (b), it is cleared from the data of the address of low importance (the lowest address in this embodiment). After that, the process proceeds to step 615, the abnormal code corresponding to the generated high-priority abnormality is stored, the frame data is updated, the frame data is frozen, and this routine is ended.

【0036】(2)優先度の高い異常のフレームデータ
が既にフリーズ済みの場合この場合には、ステップ60
1の判定が「Yes」となってステップ612に進み、
フリーズフレームデータが正常か否かを判定し、正常で
あれば、本ルーチンを終了して、優先度の高い異常のフ
リーズフレームデータを更新せずに保持する。もし、フ
リーズフレームデータが異常であれば、ステップ613
に進んで、優先度の高い異常が発生しているか否かを判
定し、発生していなければ、本ルーチンを終了する。一
方、優先度の高い異常が発生している場合には、ステッ
プ614に進んで、異常コードをクリアして、フリーズ
状態を一時的に解除すると共に、フレームデータをクリ
アする。次いで、ステップ615に進み、異常コードの
記憶とフレームデータの更新を行い、フレームデータを
フリーズする。
(2) When abnormal high-priority frame data has already been frozen In this case, step 60
The judgment of 1 is “Yes” and the process proceeds to step 612.
It is determined whether or not the freeze frame data is normal. If the freeze frame data is normal, this routine is ended, and the abnormal freeze frame data with high priority is held without being updated. If the freeze frame data is abnormal, step 613.
Then, it is determined whether or not a high-priority abnormality has occurred, and if not, this routine is terminated. On the other hand, if a high-priority abnormality has occurred, the process proceeds to step 614, the abnormality code is cleared, the freeze state is temporarily released, and the frame data is cleared. Next, in step 615, the abnormal code is stored, the frame data is updated, and the frame data is frozen.

【0037】以上説明した優先データ更新処理ルーチン
の各ステップの処理は、特許請求の範囲で言う“優先度
判定手段”,“優先データ更新手段”,“初期化手段”
としての役割を果たす。
The processing of each step of the priority data update processing routine described above is "priority determining means", "priority data updating means", "initializing means".
Play a role as.

【0038】尚、前述したステップ606,612にお
けるフリーズフレームデータの正常・異常の判定は図7
に示すルーチンによって行われる。このルーチンは、特
許請求の範囲で言う“データ更新正常終了判定手段”と
しての役割を果たし、ステップ701で、異常コードの
記憶無し(CODE=$0000)と判定されれば、未
だフレームデータはフリーズされていないので、以下の
処理を行わずに本ルーチンを終了する。一方、異常コー
ドが記憶されている場合には、ステップ702に進ん
で、フレームの最終アドレスに記憶されるデータFAF
Bが“0”であるか否かを判定し、“0”であれば、図
9(c)に示すように、データ更新中に電源がオフされ
てデータ更新が途中で終わってしまっているので、フリ
ーズフレームデータの異常と判定する(ステップ70
3)。もし、FAFBが“0”でなければ、データ更新
がフレームの最終アドレスまで終了しているので、フリ
ーズフレームデータは正常と判定する(ステップ70
3)。
The judgment of normality / abnormality of the freeze frame data in the above-mentioned steps 606 and 612 is carried out by referring to FIG.
It is performed by the routine shown in. This routine plays a role as "data update normal end determination means" in the claims, and if it is determined in step 701 that no abnormal code is stored (CODE = $ 0000), the frame data is still frozen. Since this has not been done, this routine is terminated without performing the following processing. On the other hand, if the abnormal code is stored, the process proceeds to step 702, and the data FAF stored at the final address of the frame is stored.
It is determined whether or not B is "0", and if it is "0", the power is turned off during the data update and the data update ends midway as shown in FIG. 9C. Therefore, it is determined that the freeze frame data is abnormal (step 70).
3). If FAFB is not "0", it means that the freeze frame data is normal because the data update is completed up to the final address of the frame (step 70).
3).

【0039】以上説明した実施例によれば、優先度の低
い異常が発生した後に、優先度が高い異常が発生した場
合には、優先度の低い異常の診断データを優先度の高い
異常の診断データに強制的に更新するようにしたので、
1つのフレームに優先度の異なる異常の診断データを更
新記憶することができ、メモリ容量を少なくすることが
できる。しかも、優先度の低い異常の診断データを優先
度の高い異常の診断データに更新する場合には、データ
更新に先立って、フレームを診断データと区別可能な値
で初期化した後に診断データを更新するようにしたの
で、図9(c)に示すように、データ更新処理の途中
で、万一、電源(IG)がオフされたとしても、フレー
ムデータが、本当の診断データであるのか、電源オフに
より未更新で残されたデータ(初期値)であるのかをデ
ータの値から容易に判別することができて、誤診断を防
止することができる。この場合でも、電源オフ前に更新
が完了したデータ[図9の(c)の例ではCODE,N
E,THW]については信頼でき、このデータを利用し
て異常原因をある程度推定可能である。
According to the embodiment described above, when a high priority abnormality occurs after a low priority abnormality, the low priority abnormality diagnosis data is diagnosed as the high priority abnormality. I forced to update the data, so
It is possible to update and store abnormality diagnosis data having different priorities in one frame, and to reduce the memory capacity. In addition, when updating diagnostic data for abnormalities with low priority to diagnostic data for abnormalities with high priority, the diagnostic data is updated after initializing the frame with a value that can be distinguished from the diagnostic data, prior to updating the data. Therefore, as shown in FIG. 9C, even if the power supply (IG) is turned off in the middle of the data update process, whether the frame data is the real diagnostic data, It is possible to easily determine from the value of the data whether it is the data (initial value) left unupdated by turning off, and it is possible to prevent erroneous diagnosis. Even in this case, the data that has been updated before the power is turned off [CODE, N in the example of (c) of FIG.
[E, THW] is reliable, and the cause of abnormality can be estimated to some extent using this data.

【0040】しかも、この実施例では、重要度の高い診
断データほどフレームの上位のアドレスに記憶して、デ
ータ更新時に重要度の高いデータの順に更新するように
したので、更新処理の途中で、万一、電源がオフされた
としても、重要度の高いデータは既に更新済みであり、
被害が最小限にとどめられる利点がある。しかしなが
ら、本発明は、診断データを重要度の高い順に更新する
ものに限定されるものではなく、重要度の高い順に更新
しない場合でも、本発明の所期の目的は十分に達成でき
る。
Moreover, in this embodiment, the diagnostic data of higher importance is stored in the higher address of the frame, and when the data is updated, the data of higher importance is updated in order. Even if the power is turned off, data of high importance has already been updated,
The advantage is that the damage is minimized. However, the present invention is not limited to updating the diagnostic data in the descending order of importance, and the intended purpose of the invention can be sufficiently achieved even if the diagnostic data is not updated in the descending order of importance.

【0041】更に、この実施例では、フレームデータを
初期化(クリア)する際に重要度の低いデータの順に初
期化するようにしたので、初期化処理の途中で、万一、
電源がオフされたとしても、重要度の高いデータは初期
化されずに最後まで残っており、被害が最小限にとどめ
られる利点がある。しかしながら、本発明は、フレーム
データを重要度の低い順に初期化するものに限定される
ものではなく、重要度の低い順に初期化しない場合で
も、本発明の所期の目的は十分に達成できる。
Further, in this embodiment, when the frame data is initialized (cleared), the data having the lowest importance is initialized in the order of importance.
Even if the power is turned off, the data of high importance remains uninitialized until the end, which has the advantage of minimizing damage. However, the present invention is not limited to initialization of frame data in ascending order of importance, and the intended purpose of the present invention can be sufficiently achieved even if the frame data is not initialized in an order of importance.

【0042】また、この実施例では、フレームデータの
うちデータ更新が最後に行われるアドレス(最下位のア
ドレス)に記憶されているデータを見ることによってデ
ータ更新が最後のアドレスまで正常に終了したか否かを
判定するようにしたので、フレームデータの正常・異常
の判定を簡単・迅速且つ正確に行うことができる。
Further, in this embodiment, whether the data update is normally completed up to the last address by checking the data stored in the address (the lowest address) of the frame data where the data update is finally performed. Since it is determined whether or not the frame data is normal, it is possible to easily, quickly and accurately determine whether the frame data is normal or abnormal.

【0043】しかも、データ更新が最後のアドレスまで
正常に終了していないと判定された場合には、フレーム
に記憶されている異常の優先度と同等若しくはそれより
高い優先度の異常が発生したときに、診断データの更新
禁止状態(フレームデータのフリーズ)を一時的に解除
して診断データを強制的に更新するようにしたので、デ
ータ更新が途中で終わってしまった場合には、再度、優
先度に応じて診断データを更新し直すことができる。
Moreover, when it is determined that the data update has not been normally completed up to the last address, when an abnormality with a priority equal to or higher than the priority of the abnormality stored in the frame occurs. In addition, since the update prohibition state (freezing of frame data) of the diagnostic data is temporarily canceled and the diagnostic data is forcibly updated, if the data update ends in the middle, priority is given again. The diagnostic data can be updated again at any time.

【0044】尚、この実施例では、スロットルセンサ異
常と燃料系異常とを例示して説明したが、失火等の他の
エンジン異常や、排出ガス浄化装置,エアバッグシステ
ム等のエンジン以外の車載機器の異常を診断データとし
て記憶するようにしても良く、勿論、自動車以外の種々
の機器の自己診断装置(ダイアグノーシス)に本発明を
適用して実施できることは言うまでもない。
In this embodiment, the abnormality in the throttle sensor and the abnormality in the fuel system have been described as examples, but other engine abnormalities such as misfires and vehicle-mounted devices other than the engine such as the exhaust gas purifying device and the airbag system. It is needless to say that the present invention can be applied to a self-diagnosis device (diagnosis) of various devices other than automobiles and can be stored as diagnostic data.

【0045】また、上記実施例では、優先度が高いか低
いかの2段階だけであったが、優先度を3段階以上に分
類するようにしても良い。
Further, in the above-mentioned embodiment, there are only two steps of high priority and low priority, but the priority may be classified into three or more steps.

【0046】[0046]

【発明の効果】以上の説明から明らかなように、本発明
の請求項1の構成によれば、1つの診断データ記憶領域
に優先度の異なる異常の診断データを更新記憶すること
ができ、メモリ容量を少なくすることができる。しか
も、データ更新に先立って、診断データ記憶領域を診断
データと区別可能な値で初期化した後に診断データを更
新するようにしたので、データ更新処理の途中で、万
一、電源供給が遮断されたとしても、診断データ記憶領
域に記憶されているデータが、本当の診断データである
のか、電源供給遮断により未更新で残されたデータ(初
期値)であるのかをデータの値から容易に判別すること
ができて、誤診断を防止することができる。
As is apparent from the above description, according to the configuration of claim 1 of the present invention, it is possible to update and store the diagnostic data of abnormalities having different priorities in one diagnostic data storage area. The capacity can be reduced. Moreover, prior to the data update, the diagnostic data storage area is initialized with a value that can be distinguished from the diagnostic data, and then the diagnostic data is updated, so that the power supply should be cut off during the data update process. Even if the data is stored in the diagnostic data storage area, it is easy to determine from the data value whether it is the real diagnostic data or the data (initial value) left unupdated due to the power supply cutoff. It is possible to prevent misdiagnosis.

【0047】しかも、請求項2では、データ更新時に重
要度の高いデータの順に更新するようにしたので、更新
処理の途中で、万一電源供給が遮断されたとしても、重
要度の高いデータは既に更新済みであり、被害を最小限
にとどめることができる。
Further, according to the second aspect, since the data of higher importance is updated in the order of updating the data, even if the power supply is cut off in the middle of the updating process, the data of high importance is It has already been updated and the damage can be minimized.

【0048】更に、請求項3では、診断データ記憶領域
を初期化する際に重要度の低いデータの順に初期化する
ようにしたので、初期化処理の途中で、万一、電源供給
が遮断されたとしても、重要度の高いデータは初期化さ
れずに最後まで残っており、被害を最小限にとどめるこ
とができる。
Further, in the third aspect, when the diagnostic data storage area is initialized, the data having the lowest importance is initialized in order, so that the power supply should be cut off during the initialization process. Even if you do so, the data of high importance is not initialized and remains until the end, and the damage can be minimized.

【0049】また、請求項4では、診断データの更新が
最後のアドレスまで正常に終了したか否かを判定するよ
うにしたので、記憶されているデータが正常であるか否
かの判定を人手によらず自動的に判定することができ
る。
Further, in claim 4, since it is determined whether or not the update of the diagnostic data is normally completed up to the last address, it is manually determined whether or not the stored data is normal. It can be automatically determined regardless of.

【0050】しかも、請求項5では、データ更新が最後
のアドレスまで正常に終了していないと判定された場合
には、診断データ記憶領域に記憶されている異常の優先
度と同等若しくはそれより高い優先度の異常が発生した
ときに、診断データの更新禁止状態を一時的に解除して
診断データを強制的に更新することができて、フレーム
データ異常を正常な状態に直すことができる。
Further, in claim 5, when it is determined that the data update is not normally completed up to the last address, the priority of the abnormality stored in the diagnostic data storage area is equal to or higher than the priority of the abnormality. When an abnormality of priority occurs, the diagnostic data update prohibition state can be temporarily canceled to forcibly update the diagnostic data, and the frame data abnormality can be corrected to a normal state.

【0051】また、請求項6では、診断データ記憶領域
のうちデータ更新が最後に行われるアドレスに記憶され
ているデータを見ることによってデータ更新が最後のア
ドレスまで正常に終了したか否かを判定するようにした
ので、記憶されている診断データの正常・異常の判定を
簡単・迅速且つ正確に行うことができる。
In the sixth aspect, it is determined whether or not the data update is normally completed up to the last address by looking at the data stored in the address where the data update is finally performed in the diagnostic data storage area. Therefore, the normality / abnormality of the stored diagnostic data can be determined easily, quickly and accurately.

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

【図1】本発明の一実施例におけるエンジン制御系シス
テム全体の概略構成を示す図
FIG. 1 is a diagram showing a schematic configuration of an entire engine control system system according to an embodiment of the present invention.

【図2】制御系の電気的構成を示すブロック図FIG. 2 is a block diagram showing an electrical configuration of a control system.

【図3】燃料系異常検出ルーチンの処理の流れを示すフ
ローチャート
FIG. 3 is a flowchart showing a flow of processing of a fuel system abnormality detection routine.

【図4】スロットルセンサ異常検出ルーチンの処理の流
れを示すフローチャート
FIG. 4 is a flowchart showing a processing flow of a throttle sensor abnormality detection routine.

【図5】フレームデータ更新処理ルーチンの処理の流れ
を示すフローチャート
FIG. 5 is a flowchart showing a processing flow of a frame data update processing routine.

【図6】優先データ更新処理ルーチンの処理の流れを示
すフローチャート
FIG. 6 is a flowchart showing a processing flow of a priority data update processing routine.

【図7】フリーズフレームデータ正常・異常判定ルーチ
ンの処理の流れを示すフローチャート
FIG. 7 is a flowchart showing the flow of processing of a freeze frame data normality / abnormality determination routine.

【図8】フレーム内の各アドレスに更新記憶される診断
データの種類を示すメモリマップ
FIG. 8 is a memory map showing types of diagnostic data updated and stored at each address in a frame.

【図9】フレームデータのクリア・更新と電源(IG)
オフとの関係を説明する図
[Figure 9] Clear / update of frame data and power supply (IG)
Diagram explaining the relationship with OFF

【符号の説明】[Explanation of symbols]

11…エンジン、31…制御ユニット、47…RAM、
48…スタンバイRAM(記憶手段)、51…故障診断
装置。
11 ... Engine, 31 ... Control unit, 47 ... RAM,
48 ... Standby RAM (storage means), 51 ... Failure diagnosis device.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 機器の異常を診断するのに必要な診断デ
ータを繰り返し更新記憶する記憶手段を備え、前記機器
の異常が発生したときに以後の診断データの更新を禁止
することにより異常発生時の診断データを保持するよう
にした診断データ記憶システムにおいて、 前記機器の異常の重大度に応じて診断データ更新の優先
度を判定する優先度判定手段と、 前記記憶手段に記憶されている異常よりも優先度が高い
異常が発生したときに前記診断データの更新禁止状態を
一時的に解除して優先度の高い異常の診断データに強制
的に更新する優先データ更新手段と、 前記診断データを更新する際にそれに先立って前記記憶
手段の診断データ記憶領域を前記診断データと区別可能
な値で初期化する初期化手段とを備えた診断データ記憶
システム。
1. When an abnormality occurs by providing a storage unit for repeatedly updating and storing diagnostic data necessary for diagnosing an abnormality of the equipment, and prohibiting the update of the diagnostic data thereafter when the abnormality of the equipment occurs. In the diagnostic data storage system configured to hold the diagnostic data of, the priority determination means for determining the priority of the diagnostic data update according to the severity of the abnormality of the device, and the abnormality stored in the storage means. Also, when an abnormality with a high priority occurs, the update prohibition state of the diagnostic data is temporarily released to forcibly update the diagnostic data of the abnormality with a high priority, and the diagnostic data is updated. Prior to that, the diagnostic data storage system comprises an initialization means for initializing the diagnostic data storage area of the storage means with a value distinguishable from the diagnostic data.
【請求項2】 前記診断データを更新する際に重要度の
高いデータの順に更新するようにしたことを特徴とする
請求項1に記載の診断データ記憶システム。
2. The diagnostic data storage system according to claim 1, wherein when the diagnostic data is updated, the data having higher importance is updated in order.
【請求項3】 前記初期化手段により前記記憶手段の診
断データ記憶領域を初期化する際に重要度の低いデータ
の順に初期化するようにしたことを特徴とする請求項1
又は2に記載の診断データ記憶システム。
3. The initialization data is initialized in the order of data of lower importance when the diagnostic data storage area of the storage device is initialized by the initialization device.
Or the diagnostic data storage system according to 2.
【請求項4】 前記記憶手段の診断データの更新が最後
のアドレスまで正常に終了したか否かを判定するデータ
更新正常終了判定手段を設けたことを特徴とする請求項
1乃至3のいずれかに記載の診断データ記憶システム。
4. The data update normal termination determining means for determining whether or not the update of the diagnostic data in the storage means has been normally completed up to the last address. The diagnostic data storage system described in 1.
【請求項5】 前記データ更新正常終了判定手段によ
り、データ更新が最後のアドレスまで正常に終了してい
ないと判定された場合には、前記記憶手段に記憶されて
いる異常の優先度と同等若しくはそれより高い優先度の
異常が発生したときに、前記診断データの更新禁止状態
を一時的に解除して診断データを強制的に更新するよう
にしたことを特徴とする請求項4に記載の診断データ記
憶システム。
5. If the data update normal end determination means determines that the data update is not normally completed up to the last address, it is equal to or higher than the priority of the abnormality stored in the storage means. 5. The diagnosis according to claim 4, wherein when an abnormality with a higher priority than that occurs, the update prohibition state of the diagnostic data is temporarily released and the diagnostic data is forcibly updated. Data storage system.
【請求項6】 前記データ更新正常終了判定手段は、前
記記憶手段の診断データ記憶領域のうちデータ更新が最
後に行われるアドレスに記憶されているデータを見るこ
とによってデータ更新が最後のアドレスまで正常に終了
したか否かを判定することを特徴とする請求項4に記載
の診断データ記憶システム。
6. The data update normal end determination means is normally up to the last address by looking at the data stored at the address where the data update is performed last in the diagnostic data storage area of the storage means. The diagnostic data storage system according to claim 4, wherein it is determined whether or not the process has ended.
JP6254464A 1994-09-21 1994-09-21 Diagnostic data storing system Pending JPH0893544A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6254464A JPH0893544A (en) 1994-09-21 1994-09-21 Diagnostic data storing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6254464A JPH0893544A (en) 1994-09-21 1994-09-21 Diagnostic data storing system

Publications (1)

Publication Number Publication Date
JPH0893544A true JPH0893544A (en) 1996-04-09

Family

ID=17265397

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6254464A Pending JPH0893544A (en) 1994-09-21 1994-09-21 Diagnostic data storing system

Country Status (1)

Country Link
JP (1) JPH0893544A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990050088A (en) * 1997-12-16 1999-07-05 정몽규 How to improve malfunction of control device
KR100507064B1 (en) * 2002-04-26 2005-08-08 현대자동차주식회사 Method for data frame checking when engine start in vehicle
JP2006274852A (en) * 2005-03-28 2006-10-12 Fujitsu Ten Ltd Drive recorder and its data memory method
JP2006336564A (en) * 2005-06-02 2006-12-14 Fujitsu Ten Ltd Electronic controller and data storage method for electronic control device
JP2009166625A (en) * 2008-01-15 2009-07-30 Nsk Ltd Electric power steering device
US7788005B2 (en) 2007-08-03 2010-08-31 Denso Corporation Electronic control system and method for vehicle diagnosis
JP5273753B1 (en) * 2012-07-12 2013-08-28 ヤマハ発動機株式会社 Vehicle information management system.
US9202320B2 (en) 2009-05-26 2015-12-01 Toyota Jidosha Kabushiki Kaisha Event information collecting system for vehicle and method for collecting event information on vehicle
EP2685432A3 (en) * 2012-07-12 2018-01-17 Yamaha Hatsudoki Kabushiki Kaisha Vehicle information management system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990050088A (en) * 1997-12-16 1999-07-05 정몽규 How to improve malfunction of control device
KR100507064B1 (en) * 2002-04-26 2005-08-08 현대자동차주식회사 Method for data frame checking when engine start in vehicle
JP2006274852A (en) * 2005-03-28 2006-10-12 Fujitsu Ten Ltd Drive recorder and its data memory method
JP2006336564A (en) * 2005-06-02 2006-12-14 Fujitsu Ten Ltd Electronic controller and data storage method for electronic control device
US7788005B2 (en) 2007-08-03 2010-08-31 Denso Corporation Electronic control system and method for vehicle diagnosis
US8412405B2 (en) 2007-08-03 2013-04-02 Denso Corporation Electronic control system and method for vehicle diagnosis
JP2009166625A (en) * 2008-01-15 2009-07-30 Nsk Ltd Electric power steering device
US9202320B2 (en) 2009-05-26 2015-12-01 Toyota Jidosha Kabushiki Kaisha Event information collecting system for vehicle and method for collecting event information on vehicle
JP5273753B1 (en) * 2012-07-12 2013-08-28 ヤマハ発動機株式会社 Vehicle information management system.
US8825341B2 (en) 2012-07-12 2014-09-02 Yamaha Hatsudoki Kabushiki Kaisha Vehicle information management system
EP2685432A3 (en) * 2012-07-12 2018-01-17 Yamaha Hatsudoki Kabushiki Kaisha Vehicle information management system

Similar Documents

Publication Publication Date Title
US4780826A (en) Failure judgment system for sensors installed in engine
US5696676A (en) Self-diagnosis apparatus for vehicles
US6112150A (en) Fault recognition system and method for an internal combustion engine
JPS61261145A (en) Trouble diagnoser for vehicles
WO1994004809A1 (en) Self-diagnosing apparatus of vehicle
US9008898B2 (en) In-vehicle electronic control unit, diagnosis tool and diagnosis system
US5299550A (en) Detecting device and method of an abnormality in an air-fuel ratio control system
CN111636954B (en) Heavy diesel vehicle and engine aftertreatment anti-cheating method and system thereof
US6018944A (en) System and method for monitoring a catalytic converter using adaptable indicator threshold
JPH0893544A (en) Diagnostic data storing system
JP3932514B2 (en) Noise detection method for vehicle fuel level sensor
JPH0331041A (en) Self diagnostic device for vehicle
JP6432356B2 (en) Electronic control unit
US5465613A (en) Self-diagnosing apparatus for motor vehicles
JP2000282930A (en) Failure diagnosing device of engine temperature sensing means
JP2007062632A (en) Electronic control unit and storing method of data for abnormality generated time storage
US6421625B1 (en) Method for checking analog sensors
JP2004044407A (en) Troubleshooting control device for vehicle
JP3419060B2 (en) Diagnostic device for vehicles
JP3362488B2 (en) Vehicle diagnostic device and vehicle diagnostic method
JP2502968B2 (en) Vehicle control device
JP3807097B2 (en) Vehicle control device
JP2775008B2 (en) In-vehicle control device
JPH10227724A (en) Electronic controller for vehicle
JPH0742602A (en) Memory backup power supply monitor in on-vehicle electric apparatus