JP2804031B2 - Engine control device - Google Patents

Engine control device

Info

Publication number
JP2804031B2
JP2804031B2 JP62249820A JP24982087A JP2804031B2 JP 2804031 B2 JP2804031 B2 JP 2804031B2 JP 62249820 A JP62249820 A JP 62249820A JP 24982087 A JP24982087 A JP 24982087A JP 2804031 B2 JP2804031 B2 JP 2804031B2
Authority
JP
Japan
Prior art keywords
output
data
engine
signal
check
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP62249820A
Other languages
Japanese (ja)
Other versions
JPH0192554A (en
Inventor
正明 藤沢
州人 中▲つる▼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62249820A priority Critical patent/JP2804031B2/en
Publication of JPH0192554A publication Critical patent/JPH0192554A/en
Application granted granted Critical
Publication of JP2804031B2 publication Critical patent/JP2804031B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、エンジン制御装置に係り、特に制御装置自
身あるいはその制御装置の組込まれたシステムの検査や
自己診断する機能を、あるいは、システムマツチングに
対して好適な機能を、有するエンジン制御装置に関す
る。 〔従来の技術〕 従来のエンジン制御装置においては、例えば特開昭58
−8238号公報に見られるようにその出力の制御は、エン
ジンの運転状態を制御するためのプログラムによつて、
エンジンあるいは車輌の運転状態を示す入力信号にもと
づいて決定されるだけであつた。また、エンジンの運転
状態を制御することを目的としない二次的プログラム
(例えば自己診断用プログラム)を有する場合も、その
エンジン制御装置の出力は、予め組み込まれたその二次
プログラムによつてのみ決まる状態、あるいは、入力信
号の状態にもとづいてその二次プログラムが決定した状
態に制御されるだけあった。 〔発明が解決しようとする問題点〕 上記従来技術においては、エンジン制御装置の出力状
態は、予め組み込まれた制御プログラムによつて、エン
ジンあるいは車輌の運転状態を示す入力状態にもとづい
て一義的に決定されるため、エンジン制御装置の出力を
所定の状態にするには、その制御プログラムに従つて所
定の入力状態を実現してやらなければならなかつた。例
えば、その制御プログラムに所望の出力状態に達するま
での過程に遅れ時間要素がプログラムされている場合に
は、所望の出力状態を実現するためには、その遅れ時間
だけ待つ必要があるし、また、ある入力の過渡状態にお
いてのみ動作するように制御プログラムが組み込まれて
いる場合には、その出力状態を定常的に保持することが
できなかった。そのためエンジン制御装置の出力部のハ
ードウエアのチエツクのためには、そこに組み込まれて
いるソフトウエア(制御プログラム)を熟知している必
要があり、また、チエツクには、上記のように遅れ時間
の故に時間がかかつたり、過渡状態の故に精確な出力状
態をチエツクできない、などの問題があつた。 また、製品開発途上のシステムのマツチングなどの工
程において、所定の入力状態に対応する出力状態を変更
するためには、通常、EPROMに書き込まれている制御プ
ログラムあるいはデータを書き替えなければならず、多
大な時間を要する作業であつた。 本発明の目的は、上記の問題点を解決し、ハードウエ
アのチエツクや制御のマツチングが容易に行えるような
エンジン制御装置を提供することにある。 〔問題点を解決するための手段〕 エンジンあるいは車輌の運転状態を示す信号を入力す
る入力手段と、前記入力された信号に基づいてアクチュ
エータ駆動信号を出力する出力手段を有するエンジン制
御装置において、前記入力手段を介して出力された第1
の出力信号に基づいて、前記エンジンあるいは車輌の制
御を行うための演算処理を行う通常モード制御手段と、
前記通常モード制御手段の演算結果である第2の出力信
号に基づいて、前記アクチュエータの駆動に必要な駆動
信号を形成する出力手段と、前記エンジン制御装置とは
別の外部機器とデータの授受を行う通信手段と、前記通
信手段を介して前記エンジン制御装置内の記憶素子に受
信した前記外部機器からのデータに基づいて、前記エン
ジン制御装置のチェック又はマッチングを行うチェック
モード制御手段と、前記通常モード制御手段と前記チェ
ックモード制御手段とを切換えるモード切換手段を有
し、前記チェックモード制御手段に切換ったときに、前
記第1の出力信号又は前記第2の出力信号に代えて、前
記通信手段を介して得られた外部機器よりのデータを用
いることを特徴とするエンジン制御装置によって、上記
問題は解決される。 〔作用〕 第1図を用いて作用を説明する。 入力手段20は、エンジンあるいは車輌の運転状態を示
す入力信号21を入力して通常モード制御手段30へ出力信
号22を出力し、通常モード制御手段30は、出力信号22に
もとづいてアクチユエータ110の駆動出力を決定して出
力し、出力手段40は、その駆動出力に応じたアクチユエ
ータ駆動信号41をアクチユエータ110に出力する。 一方、外部機器100からは通信手段50は介してデータ5
1を送信し、そのデータにもとづいてチエツクモード制
御手段60はアクチユエータ110の駆動出力を決定して出
力し、出力手段40は上記と同様にその駆動出力に応じた
アクチユエータ駆動信号41をアクチユエータ110に出力
する。 モード切換手段70は、出力信号22およびデータ51にも
とづいて、通常モード制御手段30またはチエツクモード
制御手段60の一方から他方に制御手段を切換える。そし
てチエツクモード制御手段60に切換えられている場合に
は、通信手段50を介して、外部機器100から通常モード
制御手段30,チェックモード制御手段60または出力手段4
0にデータを送信したり、また、逆に、通常モード制御
手段30,チエツクモード制御手段60および出力手段40に
ストアされたデータを外部機器100に送出することがで
きる。 〔実施例〕 以下、本発明の一実施例を第2図〜第9図により説明
する。 第2図は、本発明のエンジン制御装置1と、そのエン
ジン装置1の入力側にチエツク装置6を、またその出力
側にエンジンのアクチユエータを接続した状態を示す図
である。エンジン制御装置1は、プログラムを記憶する
ROM2と、通常各種データを記憶,読み出し、書き込みを
行うRAM3と、ROM2と記憶されたプログラムを実行しRAM3
に記憶されたデータを用いて各種演算を行うCPU4と、CP
U4の演算した結果により各種信号を出力する入出力装置
(I/O)5と、から構成されている。 前記第1図における通常モード制御手段およびチエツ
クモード制御手段のそれぞれは、ROM2,RAM3およびCPU4
から成立つており、それぞれの制御手段の制御プログラ
ムはROM2に書込まれており、それぞれの制御手段で用い
られる信号およびデータはRAM3に記憶され、それぞれの
制御手段によるアクチユエータの駆動出力はCPU4により
演算されて決定されることになる。 I/O5は、また、エンジン制御に必要な各種入力信号
(エンジンパラメータ)の読み込みを行う。例えば第2
図に示すように制御装置1をチエツク装置6に接続した
場合には、I/O5は、エンジンパラメータとしてチエツク
装置6内の回転信号発生器7から発生する回転信号7a,
吸入空気量疑似信号発生器8からの吸入空気量信号8aと
スタートスイツチ9からのスイツチ信号を読み込む。こ
のような読み込まれた信号のデータをRAM3に記憶し、ま
た、RAM3から読み出しを行い、このデータを基にCPU4は
演算を行い、そして演算した結果により、例えば燃料噴
射装置11への通電時間やタイミングを制御するための制
御信号をCPU4からI/O5を通じて出力する。上記の過程
は、前記第1図の通常チエツクモード制御手段によるも
のに該当する。 また、CPU4にはシリアル通信機能(前記第1図の通信
手段に該当)が備えられており、チエツク装置6内に備
えられたデータの送受信装置13(前記第1図の外部機器
に該当)と接続されている。まず、チエツク装置内のシ
リアル通信の開始を示すチエツクスイツチ10からのスイ
ツチ信号10aがCPU4によつて読み込まれる。そして、こ
のシリアル通信機能による通信データの内容は、アドレ
ス,アドレスの内容,チエツクデータ(サム,パリテイ
など)であり、このシリアル通信機能を利用して、送受
信装置13から、例えばRAM3の任意のアドレスへ任意のデ
ータを書き込むことができるし、逆にアドレスを指定し
てRAM3の各種データを送受信装置13へ送り返して、入力
信号およびデータの読み込み状態をチエツクすることも
可能となる。 さらに、送受信装置13からシリアル通信機能を介して
所定のデータ(キーワード)を受信した時に、CPU4は通
常モード制御からチエツクモード制御へ、あるいは、そ
の逆に切換える。チエツクモード制御では、1つ以上の
受信データを用いて出力状態を決定する。これは例え
ば、水温センサから得られる水温データの代りに、通信
機能を介して受信したデータを水温とみなして演算した
り、あるいは、直接に出力制御レジスタヘ所定のデータ
を書込むことによつて、エンジンパラメータは全く無関
係に任意の出力状態を実現したりする、などのように動
作する。 以上のように、通信機能を介して、エンジンパラメー
タに無関係に、任意の出力状態を実現したり、あるい
は、動作状態のモニタをしたりすることにより、チエツ
クの時間を短縮でき、また過渡的な出力状態を定常化し
て精確にみることができるため、エンジン制御装置のハ
ードウエアのチエツクや制御のマツチングを容易に行う
ことができる。 第3図はシリアル通信の動作を示すタイミングチヤー
トである。前記の送受信装置13からCPU4へ送信する場合
を考えると、まず、データ転送のための基本クロツクで
あるクロツク信号13aが、一定周期で送受信装置13から
出力される。このクロツク13aに同期して送信データで
ある送信信号13bが送受信装置13より出力される。この
場合、送信データは“0"のスタートビツトの後、8ビッ
トのデータが出力され、最後に“1"であるストツプビツ
トが出力される。CPU4ではクロツク信号13aの立上りで
データを読み込んでおり、“0"のスタートビツトを検出
したら、次のビツトより8ビツトだけデータを読み込
む。その後“1"のストツプビツトを読み込んでデータの
終了を検知する。以上のように送受信装置13からCPUへ
の送信が行われるが、CPU4から送受信装置13への送信も
同じように行われる。 第4図は、本発明のゼネラルフローチヤートであり、
タスクスケジユーラOCiによれば、エンジンの点火時期
制御について20msec毎に、空燃比(A/F)制御およびシ
リアル通信制御については40msec毎に、データが割込処
理されることを示している。 第5図は、シリアル通信機能を実行するフローチヤー
トを示す図であり、ステツプ14〜ステツプ20でデータの
受信を実行し、また、ステツプ21〜ステツプ27でデータ
の送信を実行する。受信データは、第5図の下部に示す
ように、コマンド,アドレス上位,アドレス下位,デー
タおよびチエツクバイトの5バイト(受信カウントR
COUNT0〜4)からなり、また、送信データは、アドレス
上位,アドレス下位,データおよびチエツクバイトの4
バイト(送信カウントT COUNT0〜3)からなつてお
り、このシリアル通信はCPU4のシリアル通信機能を用い
て行われる。データの受信のフローチヤートについて説
明すると次の通り。ステツプ14…受信許可の確認、ステ
ツプ15…受信データレジスタRDRの内容を読み込み、そ
れを(受信カウントR COUNT)+(受信データバツフ
ア#RDBUF)のアドレスヘストアする、ステツプ16…R
COUNTを1増やす、ステツプ17…R COUNT=4でなけ
ればステツプ14へ、R COUNT=4すなわち受信データ
を読み込んだ時には次のステツプへ、ステツプ18…R
COUNTをクリアする、ステツプ19…受信したデータをバ
ツフアからメモリ(RAM3)の所定のアドレスへ転送す
る。 データの送信は、受信の場合とは逆に送信すべきメモ
リ(RAM3)のアドレスの内容を一旦送信データアドレス
へ全部(T COUNT=3になるまで)セツトし、それか
ら送信を行う。 第6図は、出力チエツクモード(第6図中では特殊出
力モードと記述する)についてのフローチヤートを示す
図である。出力チエツクモード(1)について特に説明
すると、点火時期の計算および設定は、20msec毎のタス
クで行われる。今、通常モードの場合、点火時期は、ス
テツプ31においてエンジンの回転速度や吸気管圧力に基
づいて基本量が決定され、さらにエンジンの運転状態を
示す他の情報により補正されて最終出力値が決定され
る。計算の結果得られた点火時期はステツプ33でI/O5が
有する所定の点火時期レジスタに書き込まれ、そして点
火時期が出力される。もし、今、出力チエツクモードに
なつていたとすると、ステツプ30においてプログラムは
分岐しステツプ32〜33が実行される。すなわち、I/O5の
点火時期レジスタに、RAM3の所定のアドレスの値(点火
時期用チエツク用データ)が読み出されて、それが書込
まれる。この値は、シリアル通信機能を用いて予め所定
の値を書き込んでおくことができるから、これを用いれ
ば、エンジンの回転速度やその他の入力パラメータ、あ
るいは、通常モードのプログラム仕様に関係なく、任意
の点火時期も出力することができる。出力チエツクモー
ド(2)に示す空燃比(A/F)制御についても、上記と
同じように任意の出力を出すことができる。 第7図〜第9図は、通常モードと出力チエツクモード
の切換についての一連のフローチヤートを示す図であ
る。通常モードから出力チエツクモードへの移行は、前
記送受信装置13からCPU4の通信機能を介して入力される
O2センサの入力とキーワードによつて行われる。O2セン
サの入力について、第7図に示すプログラムにより、O2
センサ入力≧3Vが入力されたかどうかをチエツクして、
出力された場合に特殊出力モード設定を示すフラグが設
定される。O2センサが3V以上という条件を入れているの
は、通常の自転車の走行中に誤つて出力チエツクモード
へ移行する可能性をできるだけ少なくするためである。
ちなみにO2センサは普通0〜1Vの電圧しか出力しないの
で、3Vの電圧というのは試験装置でしか実現しないと考
えられるからである。 キーワードを用いるのも同様の考え方であつてO2セン
サのチエツクの後、第7図のプログラムにおいて、WRIT
Eコマンドの受付についてのチエツクが実施されてから
ステツプ40でキーワードのチエツクが実行される。この
キーワードは、RAM3の特定のアドレスに特定のデータが
受信,格納された時に成立したと見なされる。キーワー
ドが成立していた場合、先にチエツクしたO2センサのフ
ラグをステツプ41で確認し、ステツプ40およびステツプ
41でO2センサによる特殊モードのフラグおよびキーワー
ドの成立の両方が確認された場合にのみ、ステツプ42で
出力チエツクモードを許可してそのフラグを設定する。
このフラグ設定によりチエツクモードの制御が可能とな
る。 また、特殊モードのフラグとキーワードのいずれかが
不成立の場合は、ステツプ43で出力チエツクモードを禁
止し、フラグをクリアする。前記第5図のステツプ30で
はこのフラグの有無によりプログラムのフローが分岐さ
れる。 以上、本発明の一実施例について説明したが、もちろ
ん点火時期以外の各種出力についても同様のことを行う
ことができる。また、モードの切換えも、キーワードの
み、あるいは、他の入力との組合せによつて行えること
は明らかである。本実施例では、点火時期を直接指定す
る方法を示したが、例えば、エンジン回転数データとし
てシリアル通信で受信したデータを使い、それ以後の計
算ルーチンは通常モードと共通とするような方法も可能
である。 〔発明の効果〕 本発明は、上記のように構成したこと、特に外部の機
器とデータの授受を行う通信手段と、その通信手段を介
して受信したデータにもとづいてアクチユエータの駆動
出力を決定するチエツクモード制御手段を設けて、エン
ジンあるいは車輌の運転状態を示す信号とは無関係に任
意に出力状態を実現したり、その出力状態をモニタする
ことにより、チエツク時間を短縮でき、また、過渡的な
出力状態を定常化して精確にみることができるため、エ
ンジン制御装置のハードウエアのチエツクや制御のマツ
チングを容易に行うことができるという効果がある。
Description: BACKGROUND OF THE INVENTION The present invention relates to an engine control device, and more particularly, to a function of inspecting or self-diagnosing a control device itself or a system in which the control device is incorporated, or a system control device. The present invention relates to an engine control device having a function suitable for ching. [Prior Art] In a conventional engine control device, for example,
As disclosed in JP-A-8-8238, the output is controlled by a program for controlling the operating state of the engine.
It is only determined based on an input signal indicating the operating state of the engine or the vehicle. Also, when a secondary program (for example, a self-diagnosis program) that is not intended to control the operating state of the engine is provided, the output of the engine control device can be obtained only by the secondary program incorporated in advance. It is merely controlled to the determined state or the state determined by the secondary program based on the state of the input signal. [Problems to be Solved by the Invention] In the above-mentioned prior art, the output state of the engine control device is uniquely determined based on an input state indicating the operation state of the engine or the vehicle by a control program incorporated in advance. Therefore, in order to set the output of the engine control device to a predetermined state, it is necessary to realize a predetermined input state according to the control program. For example, if a delay time element is programmed in the process of reaching the desired output state in the control program, it is necessary to wait for the delay time to realize the desired output state, and However, when a control program is installed so as to operate only in a transient state of a certain input, the output state cannot be constantly maintained. Therefore, in order to check the hardware of the output unit of the engine control device, it is necessary to be familiar with the software (control program) incorporated therein. In addition, the check includes the delay time as described above. For this reason, there have been problems such as that it takes a long time, and that an accurate output state cannot be checked due to a transient state. In addition, in a process such as matching of a system under product development, in order to change an output state corresponding to a predetermined input state, it is usually necessary to rewrite a control program or data written in an EPROM. It was a time-consuming operation. SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and to provide an engine control device capable of easily checking hardware and matching control. [Means for Solving the Problems] In an engine control device having input means for inputting a signal indicating an operating state of an engine or a vehicle, and output means for outputting an actuator drive signal based on the input signal, The first output via the input means
Normal mode control means for performing arithmetic processing for controlling the engine or the vehicle based on the output signal of
An output unit that forms a drive signal necessary for driving the actuator based on a second output signal that is a calculation result of the normal mode control unit, and exchanges data with an external device different from the engine control device. Communication means for performing, a check mode control means for checking or matching the engine control device based on data from the external device received in a storage element in the engine control device via the communication means, Mode switching means for switching between the mode control means and the check mode control means, wherein when the mode is switched to the check mode control means, the communication is performed in place of the first output signal or the second output signal. The above problem is solved by an engine control device characterized by using data from an external device obtained via the means. [Operation] The operation will be described with reference to FIG. The input means 20 receives an input signal 21 indicating the operating state of the engine or the vehicle and outputs an output signal 22 to the normal mode control means 30. The normal mode control means 30 drives the actuator 110 based on the output signal 22. The output is determined and output, and the output means 40 outputs an actuator drive signal 41 corresponding to the drive output to the actuator 110. On the other hand, data 5 is transmitted from the external device 100 through the communication means 50.
1, the check mode control means 60 determines and outputs the drive output of the actuator 110 based on the data, and the output means 40 sends the actuator drive signal 41 corresponding to the drive output to the actuator 110 in the same manner as described above. Output. The mode switching means 70 switches the control means from one of the normal mode control means 30 or the check mode control means 60 to the other based on the output signal 22 and the data 51. When the mode is switched to the check mode control means 60, the normal mode control means 30, the check mode control means 60 or the output means 4 is transmitted from the external device 100 via the communication means 50.
The data stored in the normal mode control means 30, the check mode control means 60, and the data stored in the output means 40 can be transmitted to the external device 100. Embodiment An embodiment of the present invention will be described below with reference to FIGS. FIG. 2 is a diagram showing an engine control device 1 of the present invention, a state in which a check device 6 is connected to an input side of the engine device 1, and an actuator of the engine is connected to an output side thereof. The engine control device 1 stores a program.
ROM2, RAM3 for storing, reading and writing various kinds of data, and ROM3 for executing programs stored in ROM2.
CPU 4 that performs various calculations using the data stored in the
An input / output device (I / O) 5 for outputting various signals according to the result of the U4 operation. Each of the normal mode control means and the check mode control means in FIG.
The control program of each control means is written in ROM2, the signals and data used by each control means are stored in RAM3, and the drive output of the actuator by each control means is calculated by CPU4. It will be decided. The I / O 5 also reads various input signals (engine parameters) necessary for engine control. For example, the second
When the control device 1 is connected to the check device 6 as shown in the figure, the I / O 5 outputs the rotation signals 7a, 7a, which are generated from the rotation signal generator 7 in the check device 6 as engine parameters.
The intake air amount signal 8a from the intake air amount pseudo signal generator 8 and the switch signal from the start switch 9 are read. The data of such a read signal is stored in the RAM 3 and read out from the RAM 3, and the CPU 4 performs a calculation based on the data. A control signal for controlling the timing is output from the CPU 4 through the I / O 5. The above steps correspond to those performed by the normal check mode control means shown in FIG. Further, the CPU 4 is provided with a serial communication function (corresponding to the communication means in FIG. 1), and communicates with the data transmitting / receiving device 13 (corresponding to the external device in FIG. 1) provided in the check device 6. It is connected. First, the CPU 4 reads a switch signal 10a from the check switch 10 indicating the start of serial communication in the check device. The contents of the communication data by the serial communication function are an address, the contents of the address, and the check data (sum, parity, etc.). Any data can be written to the RAM, and conversely, various data in the RAM 3 can be sent back to the transmission / reception device 13 by specifying an address, and the reading state of the input signal and the data can be checked. Further, when receiving predetermined data (keyword) from the transmitting / receiving device 13 via the serial communication function, the CPU 4 switches from the normal mode control to the check mode control or vice versa. In the check mode control, the output state is determined using one or more pieces of received data. For example, instead of the water temperature data obtained from the water temperature sensor, the data received via the communication function is regarded as the water temperature and the calculation is performed, or the predetermined data is directly written to the output control register. The engine parameters operate irrespective of achieving an arbitrary output state. As described above, by realizing an arbitrary output state or monitoring the operation state irrespective of the engine parameters via the communication function, it is possible to shorten the check time, Since the output state can be stabilized and viewed accurately, it is possible to easily check the hardware of the engine control device and match the control. FIG. 3 is a timing chart showing the operation of serial communication. Considering the case of transmission from the transmission / reception device 13 to the CPU 4, first, a clock signal 13a, which is a basic clock for data transfer, is output from the transmission / reception device 13 at a constant period. A transmission signal 13b, which is transmission data, is output from the transmission / reception device 13 in synchronization with the clock 13a. In this case, as the transmission data, 8-bit data is output after a start bit of "0", and a stop bit of "1" is finally output. The CPU 4 reads data at the rising edge of the clock signal 13a, and when detecting a start bit of "0", reads data from the next bit by 8 bits. Thereafter, the stop bit of “1” is read to detect the end of the data. The transmission from the transmission / reception device 13 to the CPU is performed as described above, and the transmission from the CPU 4 to the transmission / reception device 13 is performed in the same manner. FIG. 4 is a general flow chart of the present invention;
According to the task scheduler OCi, it is shown that data is interrupted every 20 msec for engine ignition timing control and every 40 msec for air-fuel ratio (A / F) control and serial communication control. FIG. 5 is a diagram showing a flow chart for executing the serial communication function, in which data is received in steps 14 to 20, and data is transmitted in steps 21 to 27. As shown in the lower part of FIG. 5, the received data consists of a command, an address upper address, an address lower address, data and a check byte of 5 bytes (reception count R
COUNT0 to COUNT4), and the transmission data consists of 4 bits of upper address, lower address, data and check byte.
This serial communication is performed using the serial communication function of the CPU 4. The flowchart for receiving data will be described below. Step 14: Confirmation of reception permission, Step 15: Read the contents of the reception data register RDR and store it in the address of (reception count R COUNT) + (reception data buffer #RDBUF). Step 16 ... R
COUNT is incremented by one, step 17 ... RCOUNT = 4, if not COUNT = 4, go to step 14 when R COUNT = 4, that is, read the received data, step 18 ... R
Clear COUNT, step 19 ... Transfer the received data from the buffer to a predetermined address in the memory (RAM3). In the data transmission, the contents of the address of the memory (RAM3) to be transmitted are once set to the transmission data address (until T COUNT = 3), and then transmitted. FIG. 6 is a flowchart showing the output check mode (in FIG. 6, described as a special output mode). Specifically, the output check mode (1) will be described. The calculation and setting of the ignition timing is performed by a task every 20 msec. Now, in the case of the normal mode, the basic amount of the ignition timing is determined in step 31 based on the rotational speed of the engine and the intake pipe pressure, and further corrected by other information indicating the operating state of the engine to determine the final output value. Is done. The ignition timing obtained as a result of the calculation is written in a predetermined ignition timing register of the I / O 5 in step 33, and the ignition timing is output. If it is now in the output check mode, the program branches at step 30 to execute steps 32-33. That is, the value (predetermined data for the ignition timing check) of the predetermined address of the RAM 3 is read out and written into the ignition timing register of the I / O 5. Since this value can be written in advance using a serial communication function, if this value is used, any value can be used regardless of the engine speed and other input parameters, or the program specifications in the normal mode. Can also be output. In the air-fuel ratio (A / F) control shown in the output check mode (2), any output can be output in the same manner as described above. 7 to 9 show a series of flowcharts for switching between the normal mode and the output check mode. The transition from the normal mode to the output check mode is input from the transmission / reception device 13 via the communication function of the CPU 4.
O 2 is done Te cowpea to the input and the keyword of the sensor. With respect to the input of the O 2 sensor, the O 2
Check if sensor input ≥ 3V is input,
When output is made, a flag indicating the special output mode setting is set. The reason that the condition of the O 2 sensor is 3 V or more is set in order to minimize the possibility of erroneously shifting to the output check mode during normal bicycle running.
Incidentally, since the O 2 sensor normally outputs only a voltage of 0 to 1 V, a voltage of 3 V is considered to be realized only by a test apparatus. A similar idea is to use the keyword. After checking the O 2 sensor, the WRIT
After the check for the reception of the E command is performed, the check of the keyword is executed in step 40. This keyword is considered to be satisfied when specific data is received and stored at a specific address of the RAM 3. If the keyword is not satisfied, and checks the flag of the O 2 sensors checkstop earlier in step 41, step 40 and step
41 only if both the establishment of flags and keywords special mode by the O 2 sensor has been confirmed and sets the flag to allow the output Chietsukumodo at step 42.
By setting this flag, the check mode can be controlled. If either the special mode flag or the keyword is not satisfied, the output check mode is prohibited in step 43 and the flag is cleared. At step 30 in FIG. 5, the program flow branches depending on the presence or absence of this flag. The embodiment of the present invention has been described above. However, the same can be applied to various outputs other than the ignition timing. It is obvious that the mode can be switched by using only the keyword or a combination with another input. In this embodiment, the method of directly specifying the ignition timing has been described. For example, a method may be used in which data received by serial communication is used as engine speed data, and the subsequent calculation routine is common to the normal mode. It is. [Effects of the Invention] The present invention is configured as described above, in particular, a communication means for exchanging data with an external device, and a drive output of the actuator is determined based on data received via the communication means. By providing a check mode control means to realize an output state arbitrarily regardless of the signal indicating the operation state of the engine or the vehicle, or to monitor the output state, it is possible to reduce the check time, Since the output state can be stabilized and viewed accurately, there is an effect that checking of hardware of the engine control device and matching of control can be easily performed.

【図面の簡単な説明】 第1図は本発明のクレーム対応図、第2図は本発明の一
実施例の構成図、第3図はシリアル通信のタイミング
図、第4図は本発明のゼネラルフローチヤート、第5図
はシリアル通信を実行するフローチヤート、第6図は出
力チエツクモードのフローチヤート、第7図〜第9図は
通常モードと出力チエツクモードの切換えフローチヤー
トである。 1……エンジン制御装置、20……入力手段、21……入力
信号、30……通常モード制御手段、40……出力手段、41
……駆動出力、50……通信手段、51……データ、60……
チエツクモード制御手段、70……モード切換え手段、10
0……外部機器、110……アクチユエータ。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram corresponding to claims of the present invention, FIG. 2 is a block diagram of one embodiment of the present invention, FIG. 3 is a timing diagram of serial communication, FIG. 4 is a general diagram of the present invention. FIG. 5 is a flow chart for executing serial communication, FIG. 6 is a flow chart for an output check mode, and FIGS. 7 to 9 are flow charts for switching between a normal mode and an output check mode. DESCRIPTION OF SYMBOLS 1 ... Engine control apparatus, 20 ... Input means, 21 ... Input signal, 30 ... Normal mode control means, 40 ... Output means, 41
…… Drive output, 50 …… Communication means, 51 …… Data, 60 ……
Check mode control means, 70 mode switching means, 10
0: External equipment, 110: Actuator.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 中▲つる▼ 州人 茨城県勝田市大字東石川西古内3085番地 5 日立オートモテイブエンジニアリン グ株式会社内 (56)参考文献 特開 昭56−6134(JP,A) 特開 昭62−157256(JP,A)   ────────────────────────────────────────────────── ─── Continuation of front page    (72) Inventor Chu               3085 No. Higashiishikawa Nishikonai, Katsuta, Ibaraki Prefecture               5 Hitachi Automotive Engineer               Incorporated                (56) References JP-A-56-6134 (JP, A)                 JP-A-62-157256 (JP, A)

Claims (1)

(57)【特許請求の範囲】 1.エンジンあるいは車輌の運転状態を示す信号を入力
する入力手段と、前記入力された信号に基づいてアクチ
ュエータ駆動信号を出力する出力手段を有するエンジン
制御装置において、前記入力手段を介して出力された第
1の出力信号に基づいて、前記エンジンあるいは車輌の
制御を行うための演算処理を行う通常モード制御手段
と、前記通常モード制御手段の演算結果である第2の出
力信号に基づいて、 前記アクチュエータの駆動に必要な駆動信号を形成する
出力手段と、前記エンジン制御装置とは別の外部機器と
データの授受を行う通信手段と、前記通信手段を介して
前記エンジン制御装置内の記憶素子に受信した前記外部
機器からのデータに基づいて、前記エンジン制御装置の
チェック又はマッチングを行うチェックモード制御手段
と、 前記通常モード制御手段と前記チェックモード制御手段
とを切換えるモード切換手段を有し、前記チェックモー
ド制御手段に切換ったときに、前記第1の出力信号又は
前記第2の出力信号に代えて、前記通信手段を介して得
られた外部機器よりのデータを用いることを特徴とする
エンジン制御装置。
(57) [Claims] In an engine control apparatus having an input means for inputting a signal indicating an operation state of an engine or a vehicle and an output means for outputting an actuator drive signal based on the input signal, a first signal output through the input means is provided. A normal mode control means for performing an arithmetic process for controlling the engine or the vehicle based on the output signal of the actuator; and driving the actuator based on a second output signal which is a calculation result of the normal mode control means. An output unit for forming a drive signal necessary for the communication, a communication unit for transmitting and receiving data to and from an external device different from the engine control device, and the communication unit receiving the data to a storage element in the engine control device via the communication unit. Check mode control means for checking or matching the engine control device based on data from an external device, A mode switching unit that switches between the normal mode control unit and the check mode control unit, and when the mode is switched to the check mode control unit, instead of the first output signal or the second output signal, An engine control device using data from an external device obtained through the communication means.
JP62249820A 1987-10-05 1987-10-05 Engine control device Expired - Fee Related JP2804031B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62249820A JP2804031B2 (en) 1987-10-05 1987-10-05 Engine control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62249820A JP2804031B2 (en) 1987-10-05 1987-10-05 Engine control device

Publications (2)

Publication Number Publication Date
JPH0192554A JPH0192554A (en) 1989-04-11
JP2804031B2 true JP2804031B2 (en) 1998-09-24

Family

ID=17198674

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62249820A Expired - Fee Related JP2804031B2 (en) 1987-10-05 1987-10-05 Engine control device

Country Status (1)

Country Link
JP (1) JP2804031B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS566134A (en) * 1979-06-28 1981-01-22 Nissan Motor Co Ltd Diagnostic unit of controller for car
JPS62157256A (en) * 1985-12-27 1987-07-13 Mazda Motor Corp Device for discriminating malfunction of engine

Also Published As

Publication number Publication date
JPH0192554A (en) 1989-04-11

Similar Documents

Publication Publication Date Title
EP0631213B1 (en) Vehicle diagnosis system
JP3505760B2 (en) Vehicle self-diagnosis device
JP3430579B2 (en) Abnormality detection device for vehicle communication system
JP3255693B2 (en) Automotive multi-computer system
KR960705271A (en) Execution of data processing instructions (EXECUTION OF DATA PROCESSING INSTRUCTIONS)
JP2003063327A (en) Electronic controller for vehicle
JP2804031B2 (en) Engine control device
JP3296043B2 (en) Vehicle electronic control unit
JP2000146765A (en) Electronic controller for vehicle
JP3203884B2 (en) Vehicle diagnostic system
JP3267646B2 (en) Data communication device
US6295589B1 (en) Apparatus and method prohibiting RAM diagnosis when other units may access RAM
JPH0735648A (en) Diagnostic system for vehicle
KR970044922A (en) Water temperature diagnosis device and control method when water temperature sensor breaks down
JP3438270B2 (en) Data backup device and vehicle failure diagnosis device in electronic control system
JPH11203208A (en) Short circuit detection method for serial communication line
JP2000076142A (en) Diagnostic device for ram
JP2826781B2 (en) Data transfer method
JPS58197551A (en) Function checking system of on-vehicle digital computer device
JPH10135951A (en) Communication system, image-forming device and fault diagnostic method for the communication system
JPH07306709A (en) Monitor and control data transfer device for vehicle
JP2729184B2 (en) Output synchronization method in control device using a plurality of data processing devices
JPH054357Y2 (en)
JPH01277951A (en) Data transfer equipment
JPH07168727A (en) Fault detecting system of io system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees