JPH08177607A - Rewriting method of control quantity computing map for internal combustion engine controller and its device - Google Patents

Rewriting method of control quantity computing map for internal combustion engine controller and its device

Info

Publication number
JPH08177607A
JPH08177607A JP6324925A JP32492594A JPH08177607A JP H08177607 A JPH08177607 A JP H08177607A JP 6324925 A JP6324925 A JP 6324925A JP 32492594 A JP32492594 A JP 32492594A JP H08177607 A JPH08177607 A JP H08177607A
Authority
JP
Japan
Prior art keywords
control
map
rewriting
internal combustion
combustion engine
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
JP6324925A
Other languages
Japanese (ja)
Inventor
Atsufumi Kinoshita
敦文 木下
Norio Sato
憲夫 佐藤
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.)
Mahle Electric Drive Systems Co Ltd
Original Assignee
Kokusan Denki 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 Kokusan Denki Co Ltd filed Critical Kokusan Denki Co Ltd
Priority to JP6324925A priority Critical patent/JPH08177607A/en
Publication of JPH08177607A publication Critical patent/JPH08177607A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To provide a rewriting method of a control quantity computing map for a internal combustion engine controller by which the contents of the map can be rewritten during the operation of the internal combustion engine. CONSTITUTION: An external terminal device 22 is connected to CPU of an internal combustion engine controller 2 through a serial interface 20, and communication is carried out between the internal combustion engine controller and the external terminal device to write data into EEPROM 12e. One map stored in a control data memory means consisting of EEPROM 12e is set up as a rewriting object map, and only one target value to prescribe one map point included in the rewriting object map is set up as once rewriting object. The new value of the target value being the object of rewriting is transmitted from the external terminal device 22 to the internal combustion engine controller 2 during the operation of the internal combustion engine, and the rewriting of the target value being the object of rewriting is thereby executed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、内燃機関の所定の制御
対象をマイクロコンピュータを用いて制御する内燃機関
用制御装置の制御量演算用マップ書替方法及び該方法を
実施するために用いる制御量演算用マップ書替装置に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control amount calculation map rewriting method for an internal combustion engine control device for controlling a predetermined controlled object of an internal combustion engine by using a microcomputer, and a control used for implementing the method. The present invention relates to a map rewriting device for quantity calculation.

【0002】[0002]

【従来の技術】近年内燃機関においては、排気ガスの成
分、燃費、騒音、出力等、所定の条件を満たすことが要
求される項目が多くなっており、各種の制御条件に応じ
て制御することが必要な制御対象が多くなっている。例
えば点火装置を用いた内燃機関においては、機関の点火
時期を回転数やスロットルバルブの開度(スロットル開
度)等に応じて制御することが必要とされる。またイン
ジェクタを用いて燃料を供給する内燃機関においては、
スロットル開度、機関の回転数、加速度、吸気温度、大
気圧等に応じて燃料の噴射時期や噴射時間を制御するこ
とが必要とされる。更に機関の排気タイミングを制御す
るバルブが設けられている場合には、該バルブの開度を
回転数やスロットル開度に応じて制御することが必要と
される。また吸気タイミングを制御するように回転数や
スロットル開度に応じて吸気バルブを制御することが必
要とされる場合もある。
2. Description of the Related Art In recent years, in internal combustion engines, many items are required to meet predetermined conditions such as exhaust gas components, fuel consumption, noise, output, etc., and control must be performed according to various control conditions. The number of control targets that are required is increasing. For example, in an internal combustion engine using an ignition device, it is necessary to control the ignition timing of the engine according to the rotational speed, the opening of a throttle valve (throttle opening), and the like. In an internal combustion engine that supplies fuel using an injector,
It is necessary to control the fuel injection timing and injection time according to the throttle opening, engine speed, acceleration, intake air temperature, atmospheric pressure and the like. Further, when a valve for controlling the exhaust timing of the engine is provided, it is necessary to control the opening degree of the valve according to the rotation speed and the throttle opening degree. In some cases, it is necessary to control the intake valve according to the rotation speed and the throttle opening so as to control the intake timing.

【0003】機関の点火時期、燃料の噴射時間、排気タ
イミング、吸気タイミング等に対して要求される特性は
機関により相違し、車両に搭載される機関の場合には、
車種に応じてこれらの特性を変えることが必要とされ
る。
The characteristics required for engine ignition timing, fuel injection time, exhaust timing, intake timing, etc. differ from engine to engine. In the case of an engine mounted on a vehicle,
It is necessary to change these characteristics according to the vehicle type.

【0004】最近これらの制御対象を制御するためにマ
イクロコンピュータを用いることが多くなっている。一
般にマイクロコンピュータを用いた内燃機関用制御装置
では、内燃機関の付属機器の内、与えられる駆動信号の
位相及び(または)大きさに応じて制御量(動作時期ま
たは動作量)が変化する少なくとも1つの機器を制御対
象とし、所定の制御条件と制御量の目標値との関係を与
える複数のマップポイントのそれぞれを規定する制御条
件の値と制御量の目標値とをマップデータとして集積し
た構造を有する制御量演算用マップを記憶した制御デー
タ記憶手段と、制御条件の検出値に対する制御量の目標
値を前記マップを用いて演算して制御量を演算された目
標値に一致させるように制御する内燃機関制御手段を実
現するための制御プログラムを記憶した制御プログラム
記憶手段とを設けて、制御プログラムを実行させること
により制御対象の制御量を制御する。
Recently, a microcomputer is often used to control these controlled objects. Generally, in a control device for an internal combustion engine using a microcomputer, at least one of the auxiliary devices of the internal combustion engine, whose control amount (operation timing or operation amount) changes in accordance with the phase and / or the magnitude of a given drive signal. A structure in which the values of the control conditions and the target values of the control amounts that define each of a plurality of map points that give the relationship between the predetermined control conditions and the target values of the control amounts are accumulated as map data And a control data storage unit that stores a control amount calculation map, and a control amount target value for a detected value of a control condition is calculated using the map to control the control amount to match the calculated target value. A control program storing means for storing a control program for realizing the internal combustion engine control means is provided, and the control target is executed by executing the control program. To control the control amount.

【0005】マイクロコンピュータは、各種のセンサか
らシリアルインターフェースを介して制御条件を取り込
むとともに、機関の回転数を検出し、機関の回転数及び
各種の制御条件に対して、燃料の噴射時間、点火時期、
排気バルブの開度等を演算して、噴射指令信号、点火信
号、バルブを駆動する駆動信号等を発生する。
The microcomputer takes in control conditions from various sensors through a serial interface, detects the engine speed, and injects fuel injection time and ignition timing with respect to the engine speed and various control conditions. ,
The opening degree of the exhaust valve and the like are calculated to generate an injection command signal, an ignition signal, a drive signal for driving the valve, and the like.

【0006】従来の内燃機関用制御装置においては、こ
れらの演算を行わせるための制御データ(演算用のマッ
プを定めるためのデータや演算の際に用いる定数等のデ
ータ)と制御プログラムとがマイクロコンピュータのR
OMに記憶され、逐次入力されるデータや逐次演算され
るデータがRAMに記憶されていた。
In a conventional control device for an internal combustion engine, control data (data for defining a map for calculation and data such as constants used in the calculation) for performing these calculations and a control program are micro. Computer R
The data stored in the OM and sequentially input or sequentially calculated is stored in the RAM.

【0007】このような構成では、制御データ及び制御
プログラムを書き替えることができないため、通常仕様
の機関をレース仕様に変更する際やモデルチェンジ等の
際に制御特性を変更する必要が生じた場合には、ROM
自体を交換する必要がある。ところが一般の内燃機関で
は、制御装置に耐振性と耐候性とをもたせるために、R
OMを基板に半田付けして、制御装置のユニットを樹脂
モールド等により密封しているため、ROMだけを交換
することはできず、制御特性の変更に対応するためには
ユニット全体を交換する必要があり、不経済であった。
In such a configuration, the control data and the control program cannot be rewritten, so that it is necessary to change the control characteristics when changing the engine of the normal specification to the race specification or when changing the model. In the ROM
Need to replace itself. However, in a general internal combustion engine, in order to provide the control device with vibration resistance and weather resistance, R
Since the OM is soldered to the board and the unit of the control device is sealed by resin molding or the like, it is not possible to replace only the ROM, and it is necessary to replace the entire unit in order to respond to changes in control characteristics. It was uneconomical.

【0008】そこで、本発明者は先に、内燃機関用制御
装置のマイクロコンピュータに、内容の書替えが可能な
不揮発性メモリ(以下EEPROMともいう。)を外部
メモリとして設けて、制御データ及び制御プログラムを
該不揮発性メモリに記憶させるとともに、不発性メモリ
の内容を書替えるための通信プログラムをマイクロコン
ピュータ内に設けられたROMに記憶させておいて、外
部端末装置とマイクロコンピュータとの間で通信を行わ
せることにより、制御プログラム及び制御データを書替
えることができるようにした内燃機関用制御装置を提案
した。
Therefore, the inventor previously provided a non-volatile memory (hereinafter also referred to as an EEPROM) whose contents can be rewritten in the microcomputer of the internal combustion engine control device as an external memory to control data and control programs. Is stored in the non-volatile memory, and a communication program for rewriting the contents of the non-volatile memory is stored in the ROM provided in the microcomputer to enable communication between the external terminal device and the microcomputer. A control device for an internal combustion engine is proposed in which the control program and control data can be rewritten by executing the control.

【0009】このように構成すれば、外部端末装置とマ
イクロコンピュータとの間で通信を行わせることにより
制御データの書替えと制御プログラムの書替えとを行う
ことができるため、制御特性の変更を容易に行うことが
できる。またROMを交換する必要がないため、内燃機
関用制御装置を構成するユニットを樹脂モールド等によ
り密封して装置に耐振性と耐候性とを持たせることがで
きる。
According to this structure, since the control data and the control program can be rewritten by communicating between the external terminal device and the microcomputer, the control characteristics can be easily changed. It can be carried out. Further, since it is not necessary to replace the ROM, it is possible to seal the unit constituting the control device for the internal combustion engine with a resin mold or the like to give the device vibration resistance and weather resistance.

【0010】マイクロコンピュータを用いた内燃機関用
制御装置において、燃料の噴射時間や点火時期、あるい
は排気バルブの開度等の制御量を制御する場合、機関の
回転数、スロットル開度、吸気温度等の各種の制御条件
に対して、各制御量の目標値を演算する必要がある。こ
れらの演算はあらかじめEEPROMに記憶されたマッ
プを用いて行われる。各制御量の目標値の演算に用いる
マップは、所定の制御条件と制御量の目標値との関係
(例えば回転数と点火時期との関係)を与えるもので、
各変数に対する制御量の特性曲線の折れ点(または特性
曲線上に所定の間隔をおいて設定した定点)をマップポ
イントとして、各マップポイントを規定する制御条件の
値と目標値とを集積した構造を有するものである。
In a control device for an internal combustion engine using a microcomputer, when controlling a control amount such as a fuel injection time, an ignition timing or an opening of an exhaust valve, the engine speed, throttle opening, intake air temperature, etc. It is necessary to calculate the target value of each controlled variable for each of the various control conditions. These calculations are performed using maps stored in the EEPROM in advance. The map used to calculate the target value of each control amount gives the relationship between the predetermined control condition and the target value of the control amount (for example, the relationship between the rotation speed and the ignition timing).
A structure in which control point values and target values that define each map point are integrated using map breakpoints (or fixed points that are set at predetermined intervals on the characteristic curve) of the characteristic curve of the controlled variable for each variable. Is to have.

【0011】例えば、機関の点火時期を回転数及びスロ
ットル開度に対して制御する場合には、点火時期と回転
数とスロットル開度との間の関係を与える3次元マップ
が用いられる。この3次元マップを作成する際には、例
えば点火時期と回転数との間の関係を与える点火時期対
回転数特性曲線を種々のスロットル開度の値に対して用
意し、各スロットル開度に対する点火時期対回転数特性
曲線上の各折れ点(マップポイント)の座標をメモリに
記憶させる。
For example, when controlling the ignition timing of the engine with respect to the rotational speed and the throttle opening, a three-dimensional map is used which gives a relationship between the ignition timing, the rotational speed and the throttle opening. When creating this three-dimensional map, for example, an ignition timing vs. rotational speed characteristic curve that gives a relationship between the ignition timing and the rotational speed is prepared for various throttle opening values, and The coordinates of each break point (map point) on the ignition timing vs. rotational speed characteristic curve are stored in a memory.

【0012】図9(A)及び(B)は、一例として、2
サイクル機関のスロットル開度θthが80°及び60°
のときの点火時期θi 対回転数N特性の例を示したもの
である。実際には同様の特性曲線がスロットル開度θth
の更に他の値40°,20°,…等に対して多数作成さ
れる。この場合、各特性曲線毎に1つのマップが作成さ
れ、一連のスロットル開度θthの値80°,60°,…
に対するマップがそれぞれ、マップ1、マップ2、…マ
ップnのように作成されて、各マップのマップポイント
の座標がEEPROMの所定の領域に記憶される。マッ
プ1、マップ2、…マップnをEEPROMに記憶させ
る場合のデータの割り付けは例えば図8の通りである。
即ち、この例のマップ1においては、該マップ1に割り
当てられた領域の先頭番地から、図9(A)の特性曲線
上のマップポイントaの回転数、マップポイントaの点
火時期、マップポイントbの回転数、マップポイントb
の点火時期、…のように、回転数が高い方から順に各マ
ップポイントを規定する情報(各マップポイントの座標
を与える制御条件及び制御量の目標値)が記憶される。
またマップ2においては、該マップ2に割り当てられた
領域の先頭番地から順に、図9(B)の特性曲線上のマ
ップポイントa´の回転数、マップポイントa´の点火
時期、マップポイントb´の回転数、マップポイントb
´の点火時期、…のように各マップポイントを規定する
情報が記憶される。同様に、マップ3〜マップnがそれ
ぞれEEPROMの所定の領域に記憶され、マップ1〜
マップnにより機関の回転数と点火時期とスロットル開
度との間の関係を与える3次元マップが構成される。
FIGS. 9A and 9B show, as an example, 2
The throttle opening θth of the cycle engine is 80 ° and 60 °
9 shows an example of an ignition timing θi vs. rotational speed N characteristic at the time. Actually, the same characteristic curve is used for the throttle opening θth
Many other values of 40 °, 20 °, etc. are created. In this case, one map is created for each characteristic curve, and a series of values of the throttle opening θth 80 °, 60 °, ...
.., map n, and the coordinates of the map points of each map are stored in a predetermined area of the EEPROM. Data allocation when the map 1, map 2, ... Map n are stored in the EEPROM is as shown in FIG.
That is, in the map 1 of this example, the rotation speed of the map point a, the ignition timing of the map point a, the map point b on the characteristic curve of FIG. Number of rotations, map point b
Information that defines each map point (control conditions that give the coordinates of each map point and the target value of the control amount) is stored in order from the one with the highest rotation speed.
Further, in the map 2, the rotation speed of the map point a ′, the ignition timing of the map point a ′, and the map point b ′ on the characteristic curve of FIG. 9B are sequentially arranged from the head address of the area assigned to the map 2. Number of rotations, map point b
Information that defines each map point, such as the ignition timing of ', is stored. Similarly, Map 3 to Map n are stored in predetermined areas of the EEPROM, and Map 1 to Map n are stored.
The map n constitutes a three-dimensional map that gives the relationship between the engine speed, the ignition timing, and the throttle opening.

【0013】図示の例では、各回転数及び点火時期のそ
れぞれに対して2バイト分のメモリが割り当てられ、各
マップポイントに対して4バイト分のメモリが使われて
いる。ここで1バイトを1データとし、各マップを構成
するマップポイントの数が8であるとすると、1つのマ
ップを構成するデータ数は、8×4=32となる。
In the example shown in the figure, 2 bytes of memory are allocated to each rotational speed and ignition timing, and 4 bytes of memory are used for each map point. If 1 byte is 1 data and the number of map points forming each map is 8, the number of data forming one map is 8 × 4 = 32.

【0014】従来の方法で上記のマップを構成するデー
タを、EEPROMに書き込む際、または書き替える際
には、パーソナルコンピュータ等からなる外部端末装置
を内燃機関用制御装置のマイクロコンピュータに接続
し、図10に示したようなフォーマットで外部端末装置
からマイクロコンピュータに、マップ1、マップ2、…
マップnの順でデータを送る。
When writing or rewriting the data constituting the above map in the conventional method, an external terminal device such as a personal computer is connected to the microcomputer of the internal combustion engine control unit, In the format as shown in FIG. 10, Map 1, Map 2, ...
Send data in the order of map n.

【0015】従来の方法でパーソナルコンピュータから
マイクロコンピュータを通してEEPROMにデータを
書き込む際には、例えば図10(A)に示すようなフォ
ーマットで、シリアルインターフェースを通して通信が
行なわれる。図10(A)に示した通信のフォーマット
は、インテルHEXフォーマットとして広く採用されて
いるもので、このフォーマットでは、各マップの送信の
最初に、先ず1バイトのデータとしてレコードマー
ク「:」(コロン)を送る。次いで、今回送信するマッ
プに含まれるデータの数(今の例では8×4=32)を
16進数に変換して1バイトの情報として送り、今回送
信するマップを割り付ける領域の先頭番地を2バイトの
情報として送る。次に今回送信するマップが最後のマッ
プであるか否かを示す情報「レコードタイプ」を、1バ
イトの情報として送る。今回送信するマップが最後のマ
ップである場合には、レコードタイプを「01」とし、
それ以外のマップである場合には、レコードタイプを
「00」とする。その後EEPROMに割り付ける順に
マップポイントaの回転数、マップポイントaの点火時
期、マップポイントbの回転数、マップポイントbの点
火時期、…のように、各マップポイントの情報をそれぞ
れ2バイトの情報(16進数)として送信する。全ての
マップポイントの情報を送信した後、「データ数」の情
報から最後のマップポイントの情報[図9(A)のマッ
プを送信する際にはマップポイントhの点火時期]まで
の数値の総和を0から引いた値の下位の1バイトを「チ
ェックサム」として送信する。更に送信するマップがあ
る場合には、上記と同じように「:」から「チェックサ
ム」までの情報を送信する。
When data is written from the personal computer to the EEPROM through the microcomputer by the conventional method, communication is performed through the serial interface in the format shown in FIG. 10A, for example. The communication format shown in FIG. 10 (A) is widely adopted as the Intel HEX format. In this format, a record mark “:” (colon) is first recorded as 1-byte data at the beginning of transmission of each map. ) Is sent. Next, the number of data included in the map to be transmitted this time (8 × 4 = 32 in this example) is converted to hexadecimal and sent as 1-byte information, and the start address of the area to which the map to be transmitted this time is allocated is 2 bytes. Sent as information. Next, information "record type" indicating whether or not the map transmitted this time is the last map is transmitted as 1-byte information. If the map sent this time is the last map, set the record type to "01",
In the case of other maps, the record type is set to "00". After that, the information of each map point is 2 bytes of information such as the number of revolutions of the map point a, the ignition timing of the map point a, the number of revolutions of the map point b, the ignition timing of the map point b, ... It is transmitted as a hexadecimal number). After transmitting the information of all the map points, the sum of the numerical values from the information of "the number of data" to the information of the last map point [the ignition timing of the map point h when transmitting the map of FIG. 9 (A)] The lower 1 byte of the value obtained by subtracting from is transmitted as a "checksum". If there is a map to be transmitted, the information from ":" to "checksum" is transmitted in the same manner as above.

【0016】受信側では、受信した各マップポイントの
情報を与えるデータを、指定された先頭番地から順にE
EPROMに書き込んでいき、指定された数のデータを
書き込んだ後、受信側で演算したチェックサムの値を、
最後に送信されたチェックサムの値と比較して、両者が
一致したときに、通信に誤りがなかったと判定する。チ
ェックサムが一致しない場合には、通信に誤りがあった
ものとして書き込みを無効とし、再度通信を行なわせ
る。
On the receiving side, the data giving the information of each received map point is E sequentially from the designated start address.
After writing to the EPROM and writing the specified number of data, the checksum value calculated on the receiving side is
When the checksum value transmitted at the end is compared with each other, it is determined that there is no error in communication when the two match. If the checksums do not match, it is determined that there is an error in communication, writing is invalidated, and communication is performed again.

【0017】内燃機関を運転する際には、スロットル開
度が検出されたときに、マップが作成されたスロットル
開度の内、検出値に最も近い2つのスロットル開度を検
索して、検索した2つのスロットル開度に対してそれぞ
れ作成されたマップを用いて補間法によりそのスロット
ル開度における各回転数の点火時期を演算する。
When the internal combustion engine is operated, when the throttle opening is detected, the two throttle openings that are closest to the detected value are searched for among the throttle openings for which maps have been created. The ignition timing of each rotation speed at the throttle opening is calculated by the interpolation method using the maps created for the two throttle openings.

【0018】例えばスロットル開度80°、60°、4
0°、…に対して点火時期対回転数特性を与えるマップ
が作成されている場合に、スロットル開度が70°であ
ることが検出されたとする。この場合には、スロットル
開度80°に対するマップ1と、スロットル開度60°
に対するマップ2とを用いて、それぞれのマップからそ
の時の回転数における点火時期を補間法により演算し、
次いでスロットル開度80°に対するマップから演算し
た点火時期と、スロットル開度60°に対するマップか
ら演算した点火時期とを用いて、補間法により70°に
おける点火時期を演算する。
For example, the throttle opening is 80 °, 60 °, 4
It is assumed that it is detected that the throttle opening degree is 70 ° when the map that gives the ignition timing-rotational speed characteristic to 0 °, ... Is created. In this case, map 1 for throttle opening 80 ° and throttle opening 60 °
Using the map 2 with respect to, the ignition timing at the rotational speed at that time is calculated from each map by the interpolation method,
Next, the ignition timing at 70 ° is calculated by the interpolation method using the ignition timing calculated from the map for the throttle opening 80 ° and the ignition timing calculated from the map for the throttle opening 60 °.

【0019】また多数のスロットル開度に対してマップ
が作成されている場合には、検出されたスロットル開度
に最も近いスロットル開度に対して作成されたマップを
用いて各回転数における点火時期を補間演算し、スロッ
トル開度に対する補間演算は省略する方法をとることも
できる。
When a map is created for a large number of throttle openings, the map created for the throttle opening closest to the detected throttle opening is used to determine the ignition timing at each rotational speed. It is also possible to adopt a method in which the interpolation calculation is performed and the interpolation calculation for the throttle opening is omitted.

【0020】各点火時期のデータは、その時の回転数で
機関の基準の回転角度位置から点火時期に相当する回転
角度位置まで機関が回転するのに要する時間(その間に
計数すべきクロックパルスの数)の形で演算される。こ
の場合、内燃機関用制御装置を構成するマイクロコンピ
ュータは、機関に取り付けられた信号発電機が特定の回
転角度位置で発生するパルス信号から機関の回転角度に
関する情報を得て、基準の回転角度位置を検出したとき
に演算された点火時期の計測(クロックパルスの計数)
を開始し、演算された点火時期が計測された時に点火回
路に点火信号を与える。点火回路は、点火信号が与えら
れた時に点火用の高電圧を発生して、該高電圧を所定の
気筒の点火プラグに印加し、該点火プラグに火花を生じ
させて点火動作を行なわせる。
The data of each ignition timing is the time required for the engine to rotate from the reference rotational angle position of the engine to the rotational angle position corresponding to the ignition timing at the rotational speed at that time (the number of clock pulses to be counted during that time). ) Is calculated. In this case, the microcomputer that constitutes the control device for the internal combustion engine obtains the information about the rotation angle of the engine from the pulse signal generated by the signal generator attached to the engine at the specific rotation angle position, and determines the reference rotation angle position. Ignition timing calculated when the ignition is detected (clock pulse counting)
Is started, and an ignition signal is given to the ignition circuit when the calculated ignition timing is measured. The ignition circuit generates a high voltage for ignition when an ignition signal is given, applies the high voltage to an ignition plug of a predetermined cylinder, and causes a spark in the ignition plug to perform an ignition operation.

【0021】上記の説明では、点火時期を制御する場合
を例にとったが、燃料の噴射時間などの制御量を各種の
制御条件に対して制御する場合にも、各種の制御条件と
制御量の目標値との関係を与えるマップが作成されて、
該マップにより各制御条件に対する制御量の目標値が演
算され、実際の制御量を演算された目標値に一致させる
ように制御対象が駆動される。
In the above description, the case where the ignition timing is controlled has been taken as an example. However, even when the control amount such as the fuel injection time is controlled in accordance with various control conditions, various control conditions and control amounts are used. The map that gives the relationship with the target value of
A target value of the control amount for each control condition is calculated from the map, and the controlled object is driven so that the actual control amount matches the calculated target value.

【0022】[0022]

【発明が解決しようとする課題】上記のように、制御デ
ータ及び制御プログラムを記憶する手段としてEEPR
OMを用いて、外部端末装置と内燃機関用制御装置を構
成するマイクロコンピュータとの間で通信を行わせるこ
とにより、制御プログラム及び制御データを書替え得る
ようにすると、マップを構成するデータを種々書き替え
て、実際に内燃機関の出力、加速性能、排気ガス成分な
どの特性を測定することにより、機関にとって最適のマ
ップを決定することができ、内燃機関の調整を容易に行
わせることができる。特にレース用の内燃機関では、機
関の特性をレース当日のコンディションに適合するよう
に調整することが望ましいが、上記のように構成してお
けば、現地で内燃機関用制御装置に外部端末装置を接続
してマップの書替えを行うことができるため、機関の特
性を当日のコンディションに合った最適の特性に調整す
ることが可能になる。
As described above, the EEPR is a means for storing the control data and the control program.
When the OM is used to communicate between the external terminal device and the microcomputer constituting the control device for the internal combustion engine so that the control program and the control data can be rewritten, various data constituting the map can be written. Instead, by actually measuring the characteristics of the internal combustion engine, such as the output, acceleration performance, exhaust gas component, etc., the optimum map for the engine can be determined, and the internal combustion engine can be easily adjusted. Especially for internal combustion engines for racing, it is desirable to adjust the characteristics of the engine so as to match the conditions of the race day, but if configured as described above, the external terminal device may be installed in the control device for internal combustion engine locally. Since it is possible to connect and rewrite the map, it is possible to adjust the characteristics of the engine to the optimum characteristics that match the conditions of the day.

【0023】この場合、機関が運転されている状態でE
EPROMの書き替えを行なうことができれば、機関の
出力や加速性能等の特性と点火時期や燃料噴射時間、あ
るいは排気バルブの開度等との間の関係を素早く知るこ
とができるため、最適のマップを決定するのに要する時
間を短くすることができる。
In this case, when the engine is operating, E
If the EPROM can be rewritten, it is possible to quickly know the relationship between the characteristics of the engine output, acceleration performance, etc. and the ignition timing, fuel injection time, exhaust valve opening, etc. The time required to determine can be shortened.

【0024】しかしながら、一般にEEPROMにデー
タを書き込む際には、比較的長い時間(最大で1バイト
当り10msec)がかかるため、図10(A)に示したよ
うな一般に採用されているフォーマットでシリアルイン
ターフェースを通して通信を行わせることによりデータ
の書き込みを行った場合には、各マップを書き込むため
に必要な処理時間が非常に長くなり、機関の動作中にデ
ータの書き替えを行わせることは困難である。
However, generally, it takes a relatively long time (up to 10 msec per 1 byte) to write data in the EEPROM, so that the serial interface in the generally adopted format as shown in FIG. When data is written by communicating through the data, the processing time required to write each map becomes very long, and it is difficult to rewrite the data while the engine is operating. .

【0025】例えば、機関が1000rpm の比較的低い
回転数で回転しているとした場合でも、1回転に要する
時間は僅か60msecであり、この60msecの間に、機関
を制御するために必要なプログラムを実行させる必要が
ある。機関の動作中にEEPROMの書き替えをも行わ
せるためには、この60msecの間に、機関の制御に必要
なプログラムに加えて、更に通信用プログラムをも実行
させる必要がある。ところが、EEPROMに1バイト
のデータを書き込むためには最大で10msecを必要とす
るため、図10(A)の通信フォーマットを用いて、前
述のようにマップポイントの数が8で、データ数が32
(=8×4)のマップを書き替えるためには320msec
を必要とすることになり、機関を動作させたままでマッ
プのデータの書き替えを行うことは到底不可能になる。
For example, even if the engine is rotating at a relatively low rotation speed of 1000 rpm, the time required for one rotation is only 60 msec, and during this 60 msec, the program necessary for controlling the engine is required. Need to be executed. In order to rewrite the EEPROM during the operation of the engine, it is necessary to execute a communication program in addition to the program necessary for controlling the engine during the 60 msec. However, since writing a byte of data to the EEPROM requires a maximum of 10 msec, using the communication format of FIG. 10A, the number of map points is 8 and the number of data is 32 as described above.
320 msec to rewrite (= 8 × 4) map
Therefore, it becomes impossible to rewrite map data while the engine is operating.

【0026】上記の理由で、従来の内燃機関用制御装置
では、制御データの書き替えを機関を停止させた状態で
行う必要があった。そのため、マップと機関の実際の特
性との関係を知るためには、一旦機関を停止させた後に
マップの書き替えを行い、その後機関を始動させて各種
の特性を測定する作業を何度も繰り返す必要があり、最
適のマップ(制御データ)を決定するまでに要する時間
が非常に長くかかるという問題があった。
For the above reason, in the conventional control device for the internal combustion engine, it is necessary to rewrite the control data while the engine is stopped. Therefore, in order to know the relationship between the map and the actual characteristics of the engine, stop the engine once, rewrite the map, then start the engine and repeat the work of measuring various characteristics many times. However, there is a problem that it takes a very long time to determine the optimum map (control data).

【0027】本発明の目的は、機関の動作中に制御デー
タの書き替えを行うことができるようにして、最適のマ
ップを決定するのに要する処理時間を短くすることがで
きるようにした内燃機関用制御装置の制御量演算用マッ
プ書替方法及び該方法を実施するために用いる制御量演
算用マップ書替装置を提供することにある。
An object of the present invention is to make it possible to rewrite the control data during the operation of the engine so that the processing time required to determine the optimum map can be shortened. Provided is a control amount calculation map rewriting method for a control device for control, and a control amount calculation map rewriting device used for implementing the method.

【0028】[0028]

【課題を解決するための手段】本発明に係わる方法は、
内燃機関の付属機器の内、与えられる駆動信号の位相及
び(または)大きさに応じて制御量(動作時期または動
作量)が変化する少なくとも1つの機器を制御対象と
し、内容の書替えが可能な不揮発性メモリからなってい
て所定の制御条件と制御量の目標値との関係を与える複
数のマップポイントのそれぞれを規定する制御条件の値
と制御量の目標値とをマップデータとして集積した構造
を有する制御量演算用マップを少なくとも1つ含む制御
データを記憶した制御データ記憶手段と、制御条件の検
出値に対する制御量の目標値をマップを用いて演算して
制御量を演算された目標値に一致させるように制御する
内燃機関制御手段を実現するための制御プログラムを記
憶した制御プログラム記憶手段と、前記制御プログラム
を実行するCPUとを備えた内燃機関用制御装置のマッ
プデータの少なくとも一部を書替える方法である。
The method according to the present invention comprises:
Of the accessories of the internal combustion engine, at least one of which the control amount (operation timing or operation amount) changes according to the phase and / or the magnitude of the given drive signal is targeted for control, and the content can be rewritten. A structure in which the values of the control conditions and the target values of the control amounts that define each of a plurality of map points that provide a relationship between the predetermined control conditions and the target values of the control amounts and that are composed of non-volatile memory are integrated as map data. A control data storage means for storing control data including at least one control amount calculation map, and a target value of the control amount for the detected value of the control condition are calculated using the map to obtain the control amount as the calculated target value. Control program storage means for storing a control program for realizing an internal combustion engine control means for controlling so as to match, and a CPU for executing the control program A method of changing writing at least a part of the map data for an internal combustion engine controller having.

【0029】本発明においては、コンピュータからなる
外部端末装置をシリアルインターフェースを介して内燃
機関用制御装置のCPUに接続し、内燃機関用制御装置
と外部端末装置との間で通信を行わせることにより不揮
発性メモリへのデータの書き込みを行わせるようにして
おく。
According to the present invention, an external terminal device comprising a computer is connected to the CPU of the internal combustion engine control device via a serial interface, and communication is performed between the internal combustion engine control device and the external terminal device. Data is written to the nonvolatile memory in advance.

【0030】そして、制御データ記憶手段に記憶されて
いる1つのマップを書替対象マップとして、該書替対象
マップに含まれる1つのマップポイントを規定する目標
値のみを1回の書替えの対象とし、内燃機関の動作中に
外部端末装置から内燃機関用制御装置に書替えの対象と
した目標値の新たな値を送信して、書替対象とした目標
値の書替えを行わせる。
Then, one map stored in the control data storage means is set as a rewriting target map, and only a target value defining one map point included in the rewriting target map is set as one rewriting target. During the operation of the internal combustion engine, a new target value to be rewritten is transmitted from the external terminal device to the internal combustion engine control device to rewrite the target value to be rewritten.

【0031】本発明の好ましい態様においては、マップ
を書替える際に、先ず内燃機関用制御装置から外部端末
装置に制御データ記憶手段の記憶内容を送信して、該制
御データ記憶手段の記憶内容を外部端末装置内の受信デ
ータ記憶手段に記憶させ、該受信データ記憶手段に記憶
されたマップの内の1つのマップを書替対象マップとし
て、該書替対象マップの内容を外部端末装置に表示させ
る。
In a preferred aspect of the present invention, when rewriting the map, first, the internal control unit for internal combustion engine transmits the stored contents of the control data storing unit to the external terminal unit, and the stored contents of the control data storing unit are stored. The content is stored in the reception data storage means in the external terminal device, and one of the maps stored in the reception data storage means is set as the rewriting target map, and the contents of the rewriting target map are displayed on the external terminal device. .

【0032】また制御条件の現在値を内燃機関用制御装
置から外部端末装置に随時送信させ、外部端末装置に表
示された書替対象マップに含まれる複数のマップポイン
トの内、内燃機関用制御装置から外部端末装置に送信さ
れた制御条件の現在値に最も近い制御条件により規定さ
れる1つのマップポイントの目標値を書替えの対象とす
る。そして、書替対象マップを識別するための識別コー
ドと書替えの対象とした目標値の新たな値とを内燃機関
の動作中に外部端末装置から内燃機関用制御装置に送信
して、書替対象とした目標値の書替えを行わせる。
Further, the current value of the control condition is transmitted from the internal combustion engine control device to the external terminal device at any time, and the internal combustion engine control device is selected from a plurality of map points included in the rewriting target map displayed on the external terminal device. The target value of one map point defined by the control condition that is the closest to the current value of the control condition transmitted from the external terminal device to the external terminal device is subject to rewriting. Then, the identification code for identifying the rewriting target map and the new value of the target value as the rewriting target are transmitted from the external terminal device to the internal combustion engine control device during the operation of the internal combustion engine, and the rewriting target Let the target value be rewritten.

【0033】図2に示したように、本発明に係わる制御
量演算用マップ書替装置は、内燃機関の付属機器の内、
与えられる駆動信号の位相及び(または)大きさに応じ
て制御量(動作時期または動作量)が変化する少なくと
も1つの機器を制御対象とし、内容の書替えが可能な不
揮発性メモリからなっていて所定の制御条件と制御量の
目標値との関係を与える複数のマップポイントのそれぞ
れを規定する制御条件の値と制御量の目標値とをマップ
データとして集積した構造を有する制御量演算用マップ
を少なくとも1つ含む制御データを記憶した制御データ
記憶手段2Aと、制御条件の検出値に対する制御量の目
標値を前記マップを用いて演算して制御量を演算された
目標値に一致させるように制御する内燃機関制御手段を
実現するための制御プログラムを記憶した制御プログラ
ム記憶手段(図2には図示せず。)と、制御プログラム
を実行するCPUとを備えた内燃機関用制御装置2のマ
ップデータの少なくとも一部を書替える装置である。
As shown in FIG. 2, the map rewriting device for calculating the controlled variable according to the present invention includes:
At least one device whose control amount (operation timing or amount) changes according to the phase and / or magnitude of a given drive signal is targeted for control, and is composed of a non-volatile memory whose content can be rewritten. At least a control amount calculation map having a structure in which the values of the control conditions that define each of the plurality of map points that give the relationship between the control conditions and the target values of the control amounts and the target values of the control amounts are accumulated as map data. A control data storage unit 2A storing one control data and a target value of the control amount for the detected value of the control condition are calculated by using the map, and the control amount is controlled so as to match the calculated target value. Control program storage means (not shown in FIG. 2) that stores a control program for realizing the internal combustion engine control means, and a CPU that executes the control program A book changing device at least a portion of the map data for an internal combustion engine controller 2 having a.

【0034】本発明においては、コンピュータからなる
外部端末装置22をシリアルインターフェースを通して
内燃機関用制御装置2に接続する。
In the present invention, the external terminal device 22 comprising a computer is connected to the internal combustion engine control device 2 through a serial interface.

【0035】外部端末装置22には、制御データ記憶手
段2Aの記憶内容を外部端末装置22に送信することを
指令する制御データ送信指令を内燃機関用制御装置2に
与える制御データ送信指令手段22Bと、書替対象マッ
プのマップデータの書替えを実行することを指令する書
替指令を内燃機関用制御装置2に与える書替指令手段2
2Cと、制御データ送信指令に応じて内燃機関用制御装
置から外部端末装置に送信された制御データを記憶する
受信データ記憶手段22Dと、受信データ記憶手段に記
憶された制御データに含まれるマップのうち、少なくと
も一部のマップデータを書替える必要があるマップを書
替対象マップとして該書替対象マップのマップデータを
表示する書替対象マップ表示手段22Eと、内燃機関用
制御装置から送信される制御条件の現在値を受信して、
書替対象マップを構成する複数のマップポイントのそれ
ぞれの制御条件の中から受信された制御条件の現在値に
最も近い値を有する制御条件を検索し、検索した制御条
件のマップポイントを書替対象マップポイントとして特
定する書替対象マップポイント特定手段22Fと、書替
対象マップポイントの目標値を変化させて新たな値とし
た書替用データを発生させる書替用データ発生手段22
Gと、書替用データが発生したときに、送信するデータ
の先頭であることを示すレコードマークと書替対象マッ
プを特定するための識別コードと書替対象マップポイン
トの制御条件の値と書替用データとしての目標値の新た
な値とを内燃機関用制御装置に順次送信する書替用デー
タ送信手段22Hとを設ける。
The external terminal device 22 includes control data transmission command means 22B for giving a control data transmission command to the internal combustion engine control device 2 to instruct the external terminal device 22 to transmit the stored contents of the control data storage means 2A. , A rewriting command means 2 for giving a rewriting command to the rewriting target map to the internal combustion engine control device 2 for instructing rewriting of map data
2C, a reception data storage unit 22D that stores the control data transmitted from the internal combustion engine control device to the external terminal device in response to the control data transmission command, and a map included in the control data stored in the reception data storage unit. Of these, at least a part of the map data needs to be rewritten as a rewriting target map, and the rewriting target map display means 22E for displaying the map data of the rewriting target map is transmitted from the internal combustion engine control device. Receive the current value of the control condition,
From the control conditions of each of the multiple map points that make up the rewriting target map, search for the control condition that has the value closest to the current value of the received control condition, and rewrite the map point of the searched control condition. Rewriting target map point specifying means 22F for specifying as a map point and rewriting data generating means 22 for changing the target value of the rewriting target map point to generate rewriting data as a new value.
G, a record mark indicating the beginning of the data to be transmitted when rewriting data occurs, an identification code for specifying the rewriting target map, and the value of the control condition of the rewriting target map point and the writing Rewriting data transmitting means 22H for sequentially transmitting the new target value as the replacement data and the internal combustion engine control device are provided.

【0036】また内燃機関用制御装置2には、外部端末
装置から制御データ送信指令が与えられたときに制御デ
ータ記憶手段の内容を外部端末装置に送信する制御デー
タ送信手段2Bと、制御対象の制御量の現在値及び制御
条件の現在値を含む機関側の現状データを外部端末装置
に送信する現状データ送信手段2Dと、外部端末装置か
ら送信された書替用データを受信して記憶する書替用デ
ータ記憶手段2Eと、内燃機関用制御装置に外部端末装
置が接続されていることが確認されていて該外部端末装
置が前記書替指令を発生しているときに前記制御データ
記憶手段に記憶されたマップの書替対象マップポイント
の目標値の書替えを行うマップ書替手段2Fと内燃機関
制御手段2Gとを順次実行させ、外部端末装置が接続さ
れていないときには内燃機関制御手段2Gのみを実行さ
せるように動作モードを切り換える動作モード切替手段
2Hとを設ける。
Further, the internal combustion engine control device 2 includes a control data transmission means 2B for transmitting the contents of the control data storage means to the external terminal device when a control data transmission command is given from the external terminal device, and a control target A current data transmission means 2D for transmitting the current data of the engine side including the current value of the controlled variable and the current value of the control condition to the external terminal device, and a document for receiving and storing the rewriting data transmitted from the external terminal device. When it is confirmed that an external terminal device is connected to the replacement data storage means 2E and the internal combustion engine control device and the external terminal device is issuing the rewrite command, the control data storage means is stored in the control data storage device. When the map rewriting unit 2F and the internal combustion engine control unit 2G that rewrite the target value of the stored map rewriting target map point are sequentially executed, and the external terminal device is not connected It provided the operation mode switching means 2H for switching the operation mode so as to execute only the internal combustion engine control unit 2G.

【0037】上記マップ書替手段2Fには、制御データ
記憶手段に記憶されているマップの中から識別コードに
より特定された書替対象マップを検索するマップ検索手
段2Jと、検索された書替対象マップを構成する複数の
マップポイントの制御条件の中から書替対象マップポイ
ントを検索するマップポイント検索手段2Kと、検索さ
れた書替対象マップポイントの目標値が書替用データの
目標値と異なるときに、制御データ記憶手段に記憶され
ている書替対象マップポイントの目標値を書替用データ
の目標値に書き替えるマップポイント書替手段2Lとを
設けておく。
The map rewriting means 2F includes a map retrieving means 2J for retrieving a rewriting target map specified by an identification code from maps stored in the control data storage means, and a rewriting target retrieved. The map point search means 2K for searching the rewriting target map point from the control conditions of the plurality of map points forming the map, and the target value of the searched rewriting target map point is different from the target value of the rewriting data. At this time, there is provided map point rewriting means 2L for rewriting the target value of the rewriting target map point stored in the control data storage means to the target value of the rewriting data.

【0038】[0038]

【作用】上記のように、制御データ記憶手段に記憶され
ている1つのマップを書替対象マップとして、該書替対
象マップに含まれる1つのマップポイントを規定する目
標値のみを1回の書替えの対象とすると、1回の書替え
に要する時間を短くすることができるため、内燃機関の
動作中に外部端末装置から内燃機関用制御装置に書替え
の対象とした目標値の新たな値を送信して、書替対象と
した目標値の書替えを行わせることができる。内燃機関
を動作させながマップデータを書替えると、その結果が
直ちに機関の特性の測定結果に現れるため、マップデー
タを種々変化させてみることにより、最適のマップを容
易に決定することができる。
As described above, one map stored in the control data storage means is used as a rewriting target map, and only the target value defining one map point included in the rewriting target map is rewritten once. Since it is possible to reduce the time required for one rewriting, the external terminal device transmits a new target value for rewriting to the internal combustion engine control device while the internal combustion engine is operating. Thus, it is possible to rewrite the target value to be rewritten. If the map data is rewritten while the internal combustion engine is not operating, the result immediately appears in the measurement result of the engine characteristics. Therefore, by changing the map data variously, the optimum map can be easily determined. .

【0039】特に、内燃機関用制御装置から外部端末装
置に現在の制御条件の値を送信して、制御条件の現在の
値に最も近いマップポイントを書替対象マップポイント
とし、そのマップポイントの制御量の目標値を書替える
ようにすると、例えば機関に動力計を接続して、機関の
回転数を書き替え対象とするマップポイントの回転数に
保った状態で、マップデータの書替えを行わせることに
より、マップデータが機関の出力にどのように反映され
るのかを直ちに知ることができるため、最適マップの決
定を短時間で行わせることができる。
Particularly, the current control condition value is transmitted from the internal combustion engine control device to the external terminal device, the map point closest to the current control condition value is set as the rewriting target map point, and the control of the map point is performed. If the target value of quantity is rewritten, for example, connect a dynamometer to the engine, and rewrite the map data while keeping the engine speed at the map point speed to be rewritten. Thus, it is possible to immediately know how the map data is reflected in the output of the engine, so that the optimum map can be determined in a short time.

【0040】[0040]

【実施例】図1は本発明の実施例のハードウェアの構成
を示したもので、同図において1は2サイクル内燃機
関、2は内燃機関用制御装置である。本実施例では、内
燃機関用制御装置2が、内燃機関1の点火時期、燃料の
噴射時間及び排気バルブの開度を、機関の回転数、スロ
ットル開度及び変速機のギアポジションとに対して制御
するものとする。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a hardware configuration of an embodiment of the present invention. In FIG. 1, 1 is a two-cycle internal combustion engine, and 2 is an internal combustion engine controller. In the present embodiment, the internal combustion engine control device 2 determines the ignition timing of the internal combustion engine 1, the fuel injection time, and the exhaust valve opening with respect to the engine speed, the throttle opening, and the gear position of the transmission. Shall be controlled.

【0041】内燃機関1は、吸気マニホールド1Aと排
気マニホールド1Bとを有していて、吸気マニホールド
1Aにスロットルバルブ3が取り付けられ、スロットル
バルブ3よりも下流側の位置にインジェクタ4が取り付
けられている。内燃機関の排気ポートには、排気のタイ
ミングを調整するための排気バルブ5が取り付けられ、
内燃機関のシリンダ1Cには点火プラグ6が取り付けら
れている。
The internal combustion engine 1 has an intake manifold 1A and an exhaust manifold 1B, a throttle valve 3 is attached to the intake manifold 1A, and an injector 4 is attached downstream of the throttle valve 3. . An exhaust valve 5 for adjusting exhaust timing is attached to an exhaust port of the internal combustion engine,
A spark plug 6 is attached to a cylinder 1C of the internal combustion engine.

【0042】内燃機関1の出力軸1Dにはフライホイー
ル磁石発電機7の回転子が取り付けられ、この回転子の
ヨークを構成するフライホイール7aの外周部にリラク
タ7a1が形成されている。内燃機関のケース等に設けら
れた取り付け部にパルサ(信号発電子)8が取り付けら
れ、パルサ8の磁極部がリラクタ7a1に対向させられて
いる。パルサ8はリラクタ7a1に対向する磁極部を先端
に有する鉄心と該鉄心に巻回された信号コイルと該鉄心
に磁束を流す永久磁石とを備えた周知のもので、リラク
タ7a1がパルサ8の磁極部に対向する際及び該対向を終
える際にそれぞれパルサ8から極性が異なるパルス状の
信号が出力される。パルサ8の出力信号は、内燃機関の
回転角度や回転速度等の回転情報を得るための信号とし
て、内燃機関用制御装置2のパルサ信号入力部9に入力
されている。
A rotor of a flywheel magnet generator 7 is attached to an output shaft 1D of the internal combustion engine 1, and a reluctor 7a1 is formed on an outer peripheral portion of a flywheel 7a which constitutes a yoke of the rotor. A pulsar (signal generator) 8 is attached to a mounting portion provided in a case of the internal combustion engine, and a magnetic pole portion of the pulsar 8 faces the reluctor 7a1. The pulsar 8 is a well-known one having an iron core having a magnetic pole portion facing the reluctor 7a1 at its tip, a signal coil wound around the iron core, and a permanent magnet that causes a magnetic flux to flow through the iron core. The pulser 8 outputs pulse-shaped signals having different polarities when facing the part and when finishing the facing. The output signal of the pulsar 8 is input to the pulsar signal input unit 9 of the internal combustion engine control device 2 as a signal for obtaining rotation information such as the rotation angle and the rotation speed of the internal combustion engine.

【0043】スロットルバルブ3にはポテンショメータ
等からなるスロットルセンサが取り付けられ、該センサ
から得られるスロットル開度信号が内燃機関用制御装置
2のスロットル開度信号入力部10に入力されている。
A throttle sensor such as a potentiometer is attached to the throttle valve 3, and a throttle opening signal obtained from the sensor is input to a throttle opening signal input unit 10 of the internal combustion engine control device 2.

【0044】内燃機関1の出力軸と負荷との間に取り付
けられた変速機には、ギアポジションを検出するギアポ
ジションセンサが取り付けられていて、該ギアポジショ
ンセンサから得られるギアポジション信号が、内燃機関
用制御装置2のギアポジション信号入力部11に入力さ
れている。
The transmission mounted between the output shaft of the internal combustion engine 1 and the load is equipped with a gear position sensor for detecting a gear position, and a gear position signal obtained from the gear position sensor is used as an internal combustion engine. It is input to the gear position signal input unit 11 of the engine control device 2.

【0045】更に機関の吸気温度を検出する温度セン
サ、冷却水温度を検出する温度センサ、大気圧を検出す
る気圧センサ等が設けられる場合もあるが、その場合に
は各センサに対して入力部(インターフェース)が設け
られる。
Further, a temperature sensor for detecting the intake air temperature of the engine, a temperature sensor for detecting the cooling water temperature, an atmospheric pressure sensor for detecting the atmospheric pressure, etc. may be provided. In that case, an input unit is provided for each sensor. (Interface) is provided.

【0046】内燃機関用制御装置2は、CPU12a、
ROM12b、RAM12c、タイマ12d、及び書替
えが可能な不揮発性メモリ(EEPROM)12eを有
するマイクロコンピュータ12と、噴射制御部13と、
点火制御部14と、排気バルブ制御部15とを備えてい
る。
The internal combustion engine controller 2 includes a CPU 12a,
A microcomputer 12 having a ROM 12b, a RAM 12c, a timer 12d, and a rewritable non-volatile memory (EEPROM) 12e, and an injection control unit 13,
An ignition control unit 14 and an exhaust valve control unit 15 are provided.

【0047】CPU12aは入出力ポートA1 〜A5 を
有していて、入出力ポートA1 ,A2 及びA3 にはそれ
ぞれパルサ信号入力部9、スロットル開度信号入力部1
0及びギアポジション信号入力部11の出力信号が入力
されている。また入出力ポートA4 にはシリアルインタ
フェース20が接続され、シリアルインタフェース20
の信号入力線20a,信号出力線20b及び接地線20
cはそれぞれコネクタ21を介してパーソナルコンピュ
ータからなる外部端末装置22につながる通信線の信号
出力線22a,信号入力線22b及び接地線22cに接
続されている。コネクタ21は、シリアルインタフェー
ス側の信号入力線20a、信号出力線20b及び接地線
20cにそれぞれ接続された接点21a1,21b1及び2
1c1と検出接点21d1とを備えた第1のコネクタ21A
と、外部端末装置22側の信号出力線22a,信号入力
線22b及び接地線22cにそれぞれ対応する接点21
a2,21b2及び21c2と検出接点21d2とを備えた第2
のコネクタ21Bとを備えていて、第1のコネクタ21
Aに第2のコネクタ21Bを接続した際に接点21a1,
21b1,21c1及び21d1にそれぞれ接点21a2,21
b2,21c2及び21d2が接続されるようになっている。
検出用接点21d1はCPUの入出力ポートA5 に接続さ
れるとともに抵抗Rを通して図示しない電源に接続され
ている。また検出用接点21d2は外部端末装置22側の
接地線22cに接続されている。
The CPU 12a has input / output ports A1 to A5. The pulsar signal input section 9 and the throttle opening signal input section 1 are connected to the input / output ports A1, A2 and A3, respectively.
0 and the output signal of the gear position signal input unit 11 are input. The serial interface 20 is connected to the input / output port A4, and the serial interface 20
Signal input line 20a, signal output line 20b, and ground line 20
c is connected via a connector 21 to a signal output line 22a, a signal input line 22b and a ground line 22c which are communication lines connected to an external terminal device 22 composed of a personal computer. The connector 21 has contacts 21a1, 21b1 and 2 respectively connected to the signal input line 20a, the signal output line 20b and the ground line 20c on the serial interface side.
First connector 21A including 1c1 and detection contact 21d1
And contact points 21 respectively corresponding to the signal output line 22a, the signal input line 22b, and the ground line 22c on the external terminal device 22 side.
Second with a2, 21b2 and 21c2 and detection contact 21d2
21B of the first connector 21
When the second connector 21B is connected to A, the contact 21a1,
21b1, 21c1 and 21d1 respectively have contacts 21a2, 21
b2, 21c2 and 21d2 are connected.
The detection contact 21d1 is connected to the input / output port A5 of the CPU and is connected to a power source (not shown) through the resistor R. The detection contact 21d2 is connected to the ground wire 22c on the external terminal device 22 side.

【0048】本実施例において、コネクタ21の検出接
点21d1及び21d2は、内燃機関用制御装置2に外部端
末装置22が接続されているか否かを検出するために設
けられている。第1のコネクタ21Aに第2のコネクタ
21Bが接続されていない状態では、検出接点21d1が
非接地状態であるため、CPUの入力ポートA5 の電位
は高レベルの状態にある。第1及び第2のコネクタ21
A及び21Bが接続されると検出接点21d1が検出接点
21d2を通して接地されるため、入力ポートA5 の電位
が零になる。この実施例では、入力ポートA5 の電位が
高レベルの状態にあるときに外部端末装置22が接続さ
れていないと判定し、入力ポートA5 の電位が零になっ
たときに外部端末装置22が接続されていると判定す
る。本実施例では、コネクタ21A,21Bの接点21
d1及び21d2と抵抗Rとにより外部端末検出手段が構成
されている。
In this embodiment, the detection contacts 21d1 and 21d2 of the connector 21 are provided to detect whether or not the external terminal device 22 is connected to the internal combustion engine control device 2. When the second connector 21B is not connected to the first connector 21A, the potential of the input port A5 of the CPU is at a high level because the detection contact 21d1 is not grounded. First and second connector 21
When A and 21B are connected, the detection contact 21d1 is grounded through the detection contact 21d2, so that the potential of the input port A5 becomes zero. In this embodiment, it is determined that the external terminal device 22 is not connected when the potential of the input port A5 is at a high level, and the external terminal device 22 is connected when the potential of the input port A5 becomes zero. It is determined that it has been done. In this embodiment, the contacts 21 of the connectors 21A and 21B are
The external terminal detecting means is constituted by d1 and 21d2 and the resistor R.

【0049】本実施例では、所定の制御条件と制御量の
目標値との関係を与える複数のマップポイントのそれぞ
れを規定する制御条件の値と制御量の目標値とをマップ
データとして集積した構造を有する制御量演算用マップ
と、制御条件の検出値に対する制御量の目標値を上記マ
ップを用いて演算して制御量を演算された目標値に一致
させるように制御する内燃機関制御手段を実現するため
の制御プログラムとがEEPROM12eに記憶され、
該EEPROM12eにより、制御データ記憶手段と制
御プログラム記憶手段とが実現されている。
In the present embodiment, the structure in which the values of the control condition and the target value of the control amount that define each of the plurality of map points that give the relationship between the predetermined control condition and the target value of the control amount are accumulated as map data. And an internal combustion engine control means for calculating a control amount calculation map having the following, and controlling the target value of the control amount with respect to the detected value of the control condition by using the map to control the control amount so as to match the calculated target value. And a control program for doing so are stored in the EEPROM 12e,
A control data storage means and a control program storage means are realized by the EEPROM 12e.

【0050】ここで、従来技術についての説明で挙げた
例と同様に、機関の点火時期と回転数とスロットル開度
との関係を与える3次元マップを用いて、点火時期を回
転数とスロットル開度とに対して制御する場合を例にと
ると、種々のスロットル開度における点火時期と回転数
との関係を与える特性曲線は、例えば図9(A),
(B)に示した通りであり、EEPROM12eに記憶
される3次元マップの割り付けは図8に示した通りであ
る。
Here, similarly to the example given in the description of the prior art, the ignition timing is set to the rotation speed and the throttle opening by using a three-dimensional map which gives the relationship between the engine ignition timing, the rotation speed and the throttle opening. Taking the case of controlling the engine speed with respect to the engine speed as an example, a characteristic curve that gives the relationship between the ignition timing and the rotational speed at various throttle opening is, for example, as shown in FIG.
As shown in FIG. 8B, the allocation of the three-dimensional map stored in the EEPROM 12e is as shown in FIG.

【0051】ROM12bには、外部端末装置22と内
燃機関用制御装置2との間で通信を行わせるための通信
用プログラムが記憶され、該ROMにより通信用プログ
ラム記憶手段が実現される。
The ROM 12b stores a communication program for communicating between the external terminal device 22 and the internal combustion engine control device 2, and the ROM implements a communication program storage means.

【0052】EEPROM12eに書込みを行う際に
は、図示のように、外部端末装置22をシリアルインタ
ーフェース20を介してCPU12aに接続し、外部端
末装置22とCPU12aとの間で通信を行わせる。
When writing to the EEPROM 12e, as shown in the figure, the external terminal device 22 is connected to the CPU 12a via the serial interface 20, and communication is performed between the external terminal device 22 and the CPU 12a.

【0053】本実施例においては、内燃機関の停止中に
図10(A)に示すフォーマットで外部端末装置22と
内燃機関用制御装置2との間で通信を行わせてEEPR
OM12eに書込みを行う第1の書込動作モードと、図
10(B)に示すフォーマットで外部端末装置22と内
燃機関用制御装置2との間で通信を行わせて内燃機関の
動作中にEEPROM12eの書替えを行う第2の書込
動作モードとを行わせる。
In the present embodiment, while the internal combustion engine is stopped, communication is performed between the external terminal device 22 and the internal combustion engine control device 2 in the format shown in FIG.
A first write operation mode for writing to the OM 12e and communication between the external terminal device 22 and the internal combustion engine controller 2 in the format shown in FIG. The second write operation mode for rewriting is performed.

【0054】そのため外部端末装置22には、図2に示
したように、書込データ送信指令手段22Aと、制御デ
ータ送信指令手段22Bと、書替指令手段22Cと、受
信データ記憶手段22Dと、書替対象マップ表示手段2
2Eと、書替対象マップポイント特定手段22Fと、書
替用データ発生手段22Gと、書替用データ送信手段2
2Hと、書込データ発生手段22Jとを設けておく。
Therefore, in the external terminal device 22, as shown in FIG. 2, the write data transmission command means 22A, the control data transmission command means 22B, the rewrite command means 22C, the reception data storage means 22D, and Rewriting target map display means 2
2E, rewriting target map point specifying means 22F, rewriting data generating means 22G, and rewriting data transmitting means 2
2H and write data generating means 22J are provided.

【0055】また内燃機関用制御装置2には、制御デー
タ記憶手段2Aと、制御データ送信手段2Bと、書込デ
ータ送信手段2Cと、現状データ送信手段2Dと、書替
用データ記憶手段2Eと、マップ書替手段2Fと、内燃
機関制御手段2Gと、動作モード切替手段2Hとを設け
ておく。マップ書替手段2Fは、マップ検索手段2J
と、マップポイント検索手段2Kと、マップポイント書
替手段2Lとにより構成する。
In the internal combustion engine control device 2, the control data storage means 2A, the control data transmission means 2B, the write data transmission means 2C, the current data transmission means 2D, and the rewriting data storage means 2E are provided. A map rewriting means 2F, an internal combustion engine control means 2G, and an operation mode switching means 2H are provided. The map rewriting means 2F is the map search means 2J.
And map point retrieving means 2K and map point rewriting means 2L.

【0056】外部端末装置22に設ける手段の内、書込
データ送信指令手段22Aは、内燃機関の停止中に制御
プログラムや制御データ等の書込データ(制御データ記
憶手段2Aに書込むデータ)を送信することを指令する
書込データ送信指令を内燃機関用制御装置2に与える手
段であり、制御データ送信指令手段22Bは、制御デー
タ記憶手段の記憶内容を外部端末装置22に送信するこ
とを指令する制御データ送信指令を内燃機関用制御装置
2に与える手段である。また書替指令手段22Cは、書
替対象マップのマップデータの書替えを実行することを
指令する書替指令を内燃機関用制御装置2に与える手段
である。
Of the means provided in the external terminal device 22, the write data transmission command means 22A outputs write data (data to be written in the control data storage means 2A) such as control programs and control data while the internal combustion engine is stopped. The control data transmission command means 22B is a means for giving a write data transmission command for instructing the transmission to the internal combustion engine control device 2, and the control data transmission command means 22B commands the transmission of the stored contents of the control data storage means to the external terminal device 22. It is a means for giving a control data transmission command to the internal combustion engine control device 2. The rewriting instruction means 22C is means for giving a rewriting instruction to the internal combustion engine control device 2 to instruct to rewrite the map data of the rewriting target map.

【0057】これら、書込データ送信指令手段22A、
制御データ送信指令手段22B、書替指令手段22Cは
例えば、外部端末装置22に設けられているキーボード
22Kの操作により所定の指令値を送信する手段により
実現される。
These write data transmission command means 22A,
The control data transmission instruction means 22B and the rewriting instruction means 22C are realized by means for transmitting a predetermined instruction value by operating a keyboard 22K provided in the external terminal device 22, for example.

【0058】受信データ記憶手段22Dは、制御データ
送信指令に応じて内燃機関用制御装置2から外部端末装
置22に送信された制御データを記憶する手段で、この
手段は、外部端末装置に設けられているRAMにより構
成される。
The reception data storage means 22D is means for storing the control data transmitted from the internal combustion engine control device 2 to the external terminal device 22 in response to the control data transmission command. This means is provided in the external terminal device. Configured RAM.

【0059】書替対象マップ表示手段22Eは、受信デ
ータ記憶手段に記憶された制御データに含まれるマップ
のうち、少なくとも一部のマップデータを書替える必要
があるマップを書替対象マップとして該書替対象マップ
のマップデータを表示する手段で、この手段は、例え
ば、外部端末装置22に設けられたディスプレイと、内
燃機関用制御装置2から外部端末装置に送信されたマッ
プの内、キーボードの操作により書替対象マップとして
選択されたマップを、その各マップポイント間を直線で
補完した形でディスプレイ上に表示する手段とにより実
現される。
The rewriting target map display means 22E uses, as a rewriting target map, a map for which at least a part of the map data included in the control data stored in the received data storage means needs to be rewritten. A means for displaying the map data of the map to be replaced, which means, for example, a display provided in the external terminal device 22 and a keyboard operation among the maps transmitted from the internal combustion engine control device 2 to the external terminal device. And a means for displaying the map selected as the rewriting target map on the display in a form in which the respective map points are complemented by straight lines.

【0060】例えば、スロットル開度が80°のときの
点火時期と回転数との関係を与えるマップを書替えの対
象とする場合には、図9(A)に示すようなグラフをデ
ィスプレイ上に表示させる。
For example, when the map giving the relationship between the ignition timing and the rotational speed when the throttle opening is 80 ° is to be rewritten, a graph as shown in FIG. 9A is displayed on the display. Let

【0061】書替対象マップポイント特定手段22F
は、内燃機関用制御装置2から送信された制御条件の現
在値を受信して、書替対象マップを構成する複数のマッ
プポイントのそれぞれの制御条件の中から受信された制
御条件の現在値に最も近い値を有する制御条件を検索し
て検索した制御条件のマップポイントを書替対象マップ
ポイントとして特定する手段である。この特定手段は、
例えば、内燃機関用制御装置2から外部端末装置22に
送信された制御条件の現在値と、書替対象マップを構成
する各マップポイントの制御条件の値との差を演算し
て、内燃機関用制御装置2から送信された制御条件の現
在値との差が最も小さい制御条件により規定されるマッ
プポイントを書替対象マップポイントとして特定する手
段により実現される。
Rewriting target map point specifying means 22F
Receives the current value of the control condition transmitted from the internal-combustion-engine control device 2, and uses the current value of the control condition received from the control conditions of the plurality of map points forming the rewriting target map. It is a means for searching the control condition having the closest value and specifying the map point of the searched control condition as the rewriting target map point. This identification means
For example, by calculating a difference between the current value of the control condition transmitted from the internal combustion engine control device 2 to the external terminal device 22 and the value of the control condition of each map point forming the rewriting target map, It is realized by means for specifying the map point defined by the control condition having the smallest difference from the current value of the control condition transmitted from the control device 2 as the rewriting target map point.

【0062】特定された書替対象マップポイントは、デ
ィスプレイ上の該当箇所に、丸印等の適当な印が付され
た形で表示されるようにしておく。例えば、図9(A)
のマップを書替対象マップとする場合に、マップポイン
トh,f,d,b…をそれぞれ規程する回転数(制御条
件)が1000rpm ,2000rpm ,3000rpm ,4
000rpm ,…であるとし、内燃機関用制御装置2から
送信された回転数(制御条件)の現在値が3200rpm
であるとした場合には、マップポイントdを書替対象マ
ップポイントとして特定し、該マップポイントdに丸印
等の印をつける。
The specified rewriting target map point is displayed in a form in which an appropriate mark such as a circle is attached to the corresponding portion on the display. For example, FIG. 9 (A)
When the map No. is set as the rewriting target map, the rotational speeds (control conditions) that regulate the map points h, f, d, b ... Are 1000 rpm, 2000 rpm, 3000 rpm, and 4 respectively.
000 rpm, ..., The current value of the rotation speed (control condition) transmitted from the internal combustion engine controller 2 is 3200 rpm.
If it is, the map point d is specified as the rewriting target map point, and the map point d is marked with a circle or the like.

【0063】書替用データ発生手段22Gは、書替対象
マップポイントの目標値を変化させて新たな値とした書
替用データを発生させる手段で、この手段は、書替対象
マップポイントを規定する制御量の目標値θi をキーボ
ートの操作により±Δθずつ変化させて、書替えに用い
る目標値の新たな値を発生させる。
The rewriting data generating means 22G is means for changing the target value of the rewriting target map point to generate rewriting data having a new value. This means defines the rewriting target map point. The target value θi of the control amount to be changed is changed by ± Δθ by operating the keyboard to generate a new target value used for rewriting.

【0064】例えば図9のマップポイントdの点火時期
の目標値を変更する場合には、キーボードの上下のスク
ロールキー(矢印キー)を押す毎に書替対象マップポイ
ントdにおける点火時期θi の目標値を+0.5°また
は−0.5°ずつ変化させて、マップポイントdの点火
時期の目標値の書替え後の値を書替用データとして発生
させる。
For example, when the target value of the ignition timing at the map point d in FIG. 9 is changed, the target value of the ignition timing θi at the rewritten target map point d is pushed every time the up and down scroll keys (arrow keys) of the keyboard are pressed. Is changed by + 0.5 ° or −0.5 °, and the rewritten value of the target value of the ignition timing at the map point d is generated as rewriting data.

【0065】書替用データ送信手段22Hは、書替用デ
ータが発生したときに、書替対象マップポイントの制御
条件の値と書替用データとしての目標値の新たな値と
を、図10(B)に示したフォーマットで内燃機関用制
御装置に順次送信する手段である。
When the rewriting data is generated, the rewriting data transmitting means 22H displays the control condition value of the rewriting target map point and the new target value as the rewriting data in FIG. This is means for sequentially transmitting to the internal combustion engine control device in the format shown in (B).

【0066】図10(B)のフォーマットでは、先ず送
信するデータの先頭であることを示すレコードマーク
と、書替対象マップを特定するための識別コード(マッ
プNO)と、1つの書替対象マップポイントの書替用デ
ータである制御条件(例えば回転数)の値と目標値(例
えば点火時期)の新たな値とを外部端末装置22から内
燃機関用制御装置に順次送信する。
In the format of FIG. 10B, first, a record mark indicating the beginning of the data to be transmitted, an identification code (map NO) for specifying the rewriting target map, and one rewriting target map The value of the control condition (for example, the number of revolutions) which is the data for rewriting the point and the new value of the target value (for example, the ignition timing) are sequentially transmitted from the external terminal device 22 to the control device for the internal combustion engine.

【0067】また書込データ発生手段22Jは、内燃機
関の停止中にEEPROM12eに書込むデータ(制御
プログラムや制御データ)を発生させる手段で、この手
段は例えば、外部入力装置から入力された書込データを
外部端末装置のRAMに一旦記憶させる手段と、該書込
データを読み出して順次出力する手段とにより構成され
る。
The write data generating means 22J is means for generating data (control program or control data) to be written in the EEPROM 12e while the internal combustion engine is stopped. This means is, for example, a write input from an external input device. It is configured by means for temporarily storing data in the RAM of the external terminal device and means for reading the write data and sequentially outputting it.

【0068】内燃機関用点火装置2に設ける手段の内、
制御データ記憶手段2Aは、前述のように、制御量演算
用のマップを含む制御データを記憶したもので、EEP
ROM12eにより実現される。
Among the means provided in the internal combustion engine ignition device 2,
As described above, the control data storage means 2A stores control data including a map for control amount calculation.
It is realized by the ROM 12e.

【0069】制御データ送信手段2Bは、外部端末装置
22から制御データ送信指令が与えられたときに内燃機
関用制御装置のROMに記憶された通信用プログラムを
実行させてEEPROM12eに記憶されている制御デ
ータ(マップデータ及び各種の定数、演算式等)を外部
端末装置22に送信する手段である。この通信は、図1
0(A)に示した一般的なフォーマットにより行わせ
る。
The control data transmitting means 2B executes the communication program stored in the ROM of the internal combustion engine control device when the control data transmission command is given from the external terminal device 22 to execute the control stored in the EEPROM 12e. It is means for transmitting data (map data and various constants, arithmetic expressions, etc.) to the external terminal device 22. This communication is shown in Figure 1.
It is performed by the general format shown in 0 (A).

【0070】書込データ送信手段2Cは、外部端末装置
22から書込データ送信指令が与えられたときに、内燃
機関用制御装置のROM12bに記憶された通信用プロ
グラムを実行させることにより外部端末装置22と内燃
機関用制御装置2との間で通信を行わせ、書込データ発
生手段22Jが発生する書込データを図10(A)に示
したフォーマットで順次送信してEEPROMに書き込
む手段である。
The write data transmitting means 2C executes the communication program stored in the ROM 12b of the internal combustion engine control device when the write data transmission command is given from the external terminal device 22 to thereby execute the external terminal device. 22 for communicating between the internal combustion engine control device 2 and the internal combustion engine controller 2, and the write data generated by the write data generating means 22J is sequentially transmitted in the format shown in FIG. .

【0071】現状データ送信手段2Dは、制御対象の制
御量(点火時期、噴射時間、排気バルブの角度等)の現
在値及び制御条件(回転数、スロットル開度、その他各
種センサの出力)の現在値を含む機関側の現状データを
随時外部端末装置22に送信する手段で、この手段は例
えばタイマが所定の時間(例えば4msec)を計測する毎
に実行される割り込みルーチンにより実現される。この
現状データの送信は、図10(A)に示したフォーマッ
トで行わせる。
The current data transmission means 2D is the current value of the controlled variable (ignition timing, injection time, exhaust valve angle, etc.) to be controlled and the current control conditions (rotation speed, throttle opening, and other various sensor outputs). A means for transmitting the current data on the engine side including a value to the external terminal device 22 at any time, and this means is realized by an interrupt routine executed every time a timer measures a predetermined time (for example, 4 msec). The transmission of this current data is performed in the format shown in FIG.

【0072】書替用データ記憶手段2Eは、外部端末装
置22から送信された書替用データを受信して記憶する
手段で、この手段は例えば、外部端末装置22から順次
送信されてくる書替用データを一旦記憶するバッファメ
モリと、全てのデータが受信されたときに該バッファメ
モリに記憶されたデータをRAMの特定の領域に記憶さ
せる手段とにより構成される。
The rewriting data storage means 2E is means for receiving and storing rewriting data transmitted from the external terminal device 22, and this means is, for example, rewriting sequentially transmitted from the external terminal device 22. It comprises a buffer memory for temporarily storing the data for use, and a means for storing the data stored in the buffer memory in a specific area of the RAM when all the data is received.

【0073】動作モード切替手段2Hは、内燃機関用制
御装置2に外部端末装置22が接続されていることが確
認されていて該外部端末装置が書替指令を発生している
ときに制御データ記憶手段2Aに記憶されたマップの書
替対象マップポイントの目標値の書替えを行うマップ書
替手段2Fと内燃機関制御手段2Gとを順次実行させ、
外部端末装置22が接続されていないときには内燃機関
制御手段2Gのみを実行させるように動作モードを切り
換える手段である。
The operation mode switching means 2H stores the control data when it is confirmed that the external terminal device 22 is connected to the internal combustion engine control device 2 and the external terminal device issues a rewrite command. The map rewriting means 2F for rewriting the target value of the map rewriting target map points stored in the means 2A and the internal combustion engine control means 2G are sequentially executed,
It is a means for switching the operation mode so that only the internal combustion engine control means 2G is executed when the external terminal device 22 is not connected.

【0074】上記マップ書替手段2Fは、制御データ記
憶手段2Aに記憶されているマップの中から識別コード
(マップNO.)により特定された書替対象マップを検
索するマップ検索手段2Jと、検索された書替対象マッ
プを構成する複数のマップポイントの制御条件の中から
書替対象マップポイントを検索するマップポイント検索
手段2Kと、検索された書替対象マップポイントの目標
値が書替用データの目標値と異なるときに、制御データ
記憶手段に記憶されている書替対象マップポイントの目
標値を書替用データの目標値に書き替えるマップポイン
ト書替手段2Lとにより構成できる。
The map rewriting means 2F and the map retrieving means 2J for retrieving the rewriting target map specified by the identification code (map NO.) From the maps stored in the control data storage means 2A. The map point searching means 2K for searching the rewriting target map point from the control conditions of the plurality of map points forming the rewriting target map, and the target value of the searched rewriting target map point are the rewriting data. And the target value of the rewriting target map point stored in the control data storing means when the target value is different from the target value of the rewriting data, the map point rewriting means 2L can be used.

【0075】本実施例において、EEPROM12eに
制御データと制御プログラムとを書込む際、及び制御デ
ータと制御プログラムとを変更するためにEEPROM
の書替えを行う際には、書込データ送信指令手段22A
により書込データ送信指令を発生させることにより、動
作モードを第1の書込動作モードとして、内燃機関を停
止させた状態で、ROM12bに記憶された通信用プロ
グラムを実行させることによって、図10(A)に示し
た通信フォーマットで、従来と同様な方法により、外部
端末装置22からCPU12aにデータを送信して、E
EPROM12eの所定の領域に各マップや制御プログ
ラムを書き込む。
In this embodiment, the EEPROM 12e is used to write the control data and the control program, and to change the control data and the control program.
When rewriting the data, the write data transmission command means 22A
10 by executing the communication program stored in the ROM 12b with the operation mode set to the first write operation mode and the internal combustion engine stopped with the write data transmission command generated by In the communication format shown in A), data is transmitted from the external terminal device 22 to the CPU 12a by a method similar to the conventional method, and E
Each map and control program are written in a predetermined area of the EPROM 12e.

【0076】また内燃機関の動作中にマップの書替えを
行う場合には、動作モードを第2の書込動作モードとし
て、本発明に係わる方法でEEPROMへの書込みを行
う。この第2の書込動作モードにおいては、EEPRO
M12eに記憶されている1つのマップのみを書替対象
マップとし、該書替対象マップに含まれる1つのマップ
ポイントを規定する目標値のみを1回の書替えの対象と
して、機関の動作中に、外部端末装置から内燃機関用制
御装置に書替えの対象とした目標値の新たな値を送信し
て、書替対象とした目標値の書替えを行わせる。
When the map is rewritten during the operation of the internal combustion engine, the operation mode is set to the second writing operation mode, and writing to the EEPROM is performed by the method according to the present invention. In this second write operation mode, EEPRO
Only one map stored in the M12e is set as a rewriting target map, and only a target value defining one map point included in the rewriting target map is set as one rewriting target during the operation of the engine. An external terminal device transmits a new target value to be rewritten to the internal combustion engine control device to rewrite the target value to be rewritten.

【0077】本実施例において、図2に示した各手段を
実現するためにEEPROM12eに記憶させておく制
御プログラムのアルゴリズムを示すフローチャートの一
例を図3ないし図7に示した。なおこれらのフローチャ
ートにおいて、「ECU」は図1の内燃機関用制御装置
2を意味し、「PC」は外部端末装置22を意味してい
る。
In this embodiment, an example of a flow chart showing an algorithm of the control program stored in the EEPROM 12e for realizing the respective means shown in FIG. 2 is shown in FIGS. In these flowcharts, "ECU" means the internal combustion engine control device 2 of FIG. 1, and "PC" means the external terminal device 22.

【0078】図3はメインルーチンのアルゴリズムを示
したもので、このメインルーチンでは、先ず各部のイニ
シャライズ(初期化)を行い、フラグ1を0とした後、
外部端末装置22から「0」,「1」または「2」の1
バイトの指令値が受信されたか否かを判別する。これら
の1バイトの指令値は外部端末装置から内燃機関用制御
装置2に与える特定の指令を意味するものであり、
「0」は、内燃機関の停止中にEEPROM12eに書
き込むデータを外部端末装置2から内燃機関用制御装置
2に送信することを指令する書込データ送信指令であ
る。また「1」はEEPROM12eに記憶されている
制御データを外部端末装置に送信することを指令する制
御データ送信指令であり、「2」は書替対象マップのマ
ップデータの書替えを実行することを指令する書替指令
である。これらの指令は、外部端末装置22のキーボー
ド22Kの操作により、内燃機関用制御装置2に与えら
れる。
FIG. 3 shows an algorithm of the main routine. In this main routine, first, each part is initialized (initialized), the flag 1 is set to 0, and then the flag 1 is set to 0.
1 from "0", "1" or "2" from the external terminal device 22
Determine if the command value of the byte was received. These 1-byte command values mean a specific command given from the external terminal device to the internal combustion engine control device 2,
“0” is a write data transmission command for instructing the external terminal device 2 to transmit the data to be written in the EEPROM 12e while the internal combustion engine is stopped. Further, "1" is a control data transmission command for instructing to transmit the control data stored in the EEPROM 12e to the external terminal device, and "2" is an instruction for executing rewriting of the map data of the rewriting target map. It is a rewrite command to do. These commands are given to the internal combustion engine control device 2 by operating the keyboard 22K of the external terminal device 22.

【0079】内燃機関用制御装置2が受信した1バイト
の指令値が「0」(書込データ送信指令)である場合に
は、内燃機関用制御装置2のROMに記憶された通信用
プログラムにより、図10(A)のフォーマットで外部
端末装置22から内燃機関用制御装置2に書込データ
(EEPROMに書き込む制御プログラム及び制御デー
タの少なくとも一方)の送信を行わせる。
When the 1-byte command value received by the internal combustion engine control device 2 is "0" (write data transmission command), the communication program stored in the ROM of the internal combustion engine control device 2 is used. In the format of FIG. 10A, the external terminal device 22 is caused to transmit the write data (at least one of the control program and the control data to be written in the EEPROM) to the internal combustion engine control device 2.

【0080】内燃機関用制御装置2が受信した1バイト
の指令値が「1」(制御データ送信指令)である場合に
は、内燃機関用制御装置2から外部端末装置22に制御
データの送信を行わせる。
When the 1-byte command value received by the internal combustion engine control device 2 is "1" (control data transmission command), control data is transmitted from the internal combustion engine control device 2 to the external terminal device 22. Let it be done.

【0081】内燃機関用制御装置2が受信した1バイト
の指令値が「2」である場合には、フラグ1を1として
外部端末装置からの1バイトの指令値の受信を待機する
状態に戻る。
When the 1-byte command value received by the internal-combustion-engine control device 2 is "2", the flag 1 is set to 1 to return to the state of waiting for the reception of the 1-byte command value from the external terminal device. .

【0082】内燃機関用制御装置2が1バイトの指令値
を受信しないときには、CPU12aのポートA5 の状
態を見て、該ポートA5 の電位が高レベルの状態(外部
端末装置が接続されていない状態)にあるときには、点
火時期の制御と、排気バルブの制御と、燃料の噴射時間
の制御とに必要な処理(点火時期の演算、排気バルブの
開度の演算、燃料の噴射時間の演算等)を行わせる。
When the internal-combustion-engine control device 2 does not receive the 1-byte command value, the state of the port A5 of the CPU 12a is checked and the potential of the port A5 is at a high level (when the external terminal device is not connected). ), Processing required for ignition timing control, exhaust valve control, and fuel injection time control (calculation of ignition timing, calculation of exhaust valve opening, calculation of fuel injection time, etc.) To perform.

【0083】ポートA5 の電位が零のときには、フラグ
1が1であるか否かを検出して、フラグ1が1でない場
合には1バイトの指令値の受信を待機する状態に戻り、
フラグ1が1である場合には、図5に示すルーチンMO
NITを実行させた後、点火時期、排気バルブ及び燃料
の噴射時間の制御を行わせる。
When the potential of the port A5 is zero, it is detected whether or not the flag 1 is 1, and when the flag 1 is not 1, the state returns to the state of waiting for the reception of the command value of 1 byte,
When the flag 1 is 1, the routine MO shown in FIG.
After executing the NIT, the ignition timing, the exhaust valve, and the fuel injection time are controlled.

【0084】図4は、外部端末装置22から内燃機関用
制御装置2に図10(B)のフォーマットで書替用デー
タが送信される際に、内燃機関用制御装置2が外部端末
装置22から1バイトのデータを受信する毎に実行され
る割込みルーチンで、この割込みルーチンでは、1バイ
トのデータを受信する毎に、該データを受信用バッファ
RAMに記憶させる。書替用データの最後の1バイトの
データを受信した後、受信用バッファRAMの内容をR
AM12cの所定の領域Aに記憶させ、フラグ2を1と
してメインルーチンに戻る。
FIG. 4 shows that when the external terminal device 22 transmits rewriting data to the internal combustion engine control device 2 in the format shown in FIG. This interrupt routine is executed every time 1-byte data is received. In this interrupt routine, each time 1-byte data is received, the data is stored in the reception buffer RAM. After receiving the last 1-byte data of the rewriting data, the contents of the receiving buffer RAM are R
It is stored in a predetermined area A of the AM 12c, the flag 2 is set to 1, and the process returns to the main routine.

【0085】図5のルーチンMONITでは、先ずフラ
グ2が1であるか否か(書替用データが受信されている
か否か)を判定し、フラグ2が1である場合には、該フ
ラグ2を0にした後,書替用データに含まれる識別コー
ド(マップNO.)を参照して該識別コードにより識別
されるマップを検索し、検索したマップの先頭番地を検
出する。
In the routine MONIT of FIG. 5, it is first determined whether or not the flag 2 is 1 (whether or not the rewriting data is received). If the flag 2 is 1, the flag 2 is determined. After setting 0 to 0, the identification code (map No.) included in the rewriting data is referred to search the map identified by the identification code, and the leading address of the searched map is detected.

【0086】次いで検索したマップの中に外部端末装置
から受信した制御条件(この例では回転数)の値と同じ
制御条件があるか否かを判定する。その結果、同じ回転
数がある場合には、その回転数が記憶されている番地の
次の番地のデータ(制御量の目標値)が書替用データに
含まれる目標値と同一であるか否かを判定し、同一でな
い場合には、EEPROM12eの該当番地(書替えの
対象としている目標値が記憶されている番地)に書替用
データとしての目標値を書き込む。書替対象とする目標
値が記憶されている番地の内容が書替用データとしての
目標値と同一であるときには、EEPROMへの書込み
を行わずにメインルーチンに戻る。
Then, it is determined whether or not the map retrieved has the same control condition as the value of the control condition (the number of revolutions in this example) received from the external terminal device. As a result, when the same rotation speed is present, whether or not the data (target value of control amount) at the next address of the address at which the rotation speed is stored is the same as the target value included in the rewriting data. If they are not the same, the target value as the rewriting data is written in the corresponding address of the EEPROM 12e (the address in which the target value to be rewritten is stored). When the content of the address in which the target value to be rewritten is stored is the same as the target value as the rewriting data, the process returns to the main routine without writing to the EEPROM.

【0087】図6はパルサ信号が入力される毎に実行さ
れる外部割込みルーチンを示したもので、このルーチン
では先ずパルサ信号の発生間隔から機関の回転数を演算
して該回転数をRAMに記憶させた後、メインルーチン
で既に演算されている点火時期の計測値を点火時期計測
用のコンペアレジスタに入れる。コンペアレジスタは、
点火時期の計測値をクロックパルスを計数しているカウ
ンタの計数値と比較して、点火時期の計測値が計測され
たときに点火信号Vi を発生させる。点火信号Vi が発
生すると点火制御部14が点火用の高電圧を発生し、点
火プラグ6に火花を生じさせて機関を点火する。
FIG. 6 shows an external interrupt routine executed each time a pulser signal is input. In this routine, first, the engine speed is calculated from the pulse generator signal generation interval and the engine speed is stored in RAM. After storing, the measured value of the ignition timing already calculated in the main routine is put in the compare register for measuring the ignition timing. The compare register is
The measurement value of the ignition timing is compared with the count value of the counter counting the clock pulse, and the ignition signal Vi is generated when the measurement value of the ignition timing is measured. When the ignition signal Vi is generated, the ignition control unit 14 generates a high voltage for ignition and causes the spark plug 6 to generate a spark to ignite the engine.

【0088】なおメインルーチンでは、各スロットル開
度における回転数と点火時期との間の関係を与えるマッ
プを用いて各スロットル開度及び回転数における点火時
期を演算する。この点火時期のデータは、パルサ信号に
より検出される機関の基準回転角度位置から点火時期に
相当する回転角度位置(点火位置)まで、そのときの回
転数で回転するのに要する時間の形で演算される。
In the main routine, the ignition timing at each throttle opening and rotation speed is calculated using a map that gives the relationship between the rotation speed and ignition timing at each throttle opening. This ignition timing data is calculated in the form of the time required to rotate at the rotation speed at that time from the reference rotation angle position of the engine detected by the pulser signal to the rotation angle position (ignition position) corresponding to the ignition timing. To be done.

【0089】図7は内燃機関用制御装置2のマイクロコ
ンピュータに設けられているタイマが信号を発生する毎
に実行されるタイマ割込みルーチンを示している。タイ
マはクロックパルスを計数することにより常時時間を計
測していて、一定の時間(本実施例では4msec)を計測
する毎に信号を発生して図7の割込みルーチンを実行さ
せる。この割込みルーチンでは、排気バルブの開度を演
算された値に保つように該排気バルブを駆動するDCサ
ーボモータに駆動信号を与えた後、回転数、スロットル
開度、吸気温度等の制御条件と、点火時期、インジェク
タからの燃料の噴射時間、排気バルブの開度等の各種の
制御対象の制御量の現在値を、ROMに記憶された通信
用プログラムを実行させることにより、図10(A)に
示したフォーマットで、機関の現状データとして外部端
末装置に送信する。
FIG. 7 shows a timer interrupt routine executed every time a timer provided in the microcomputer of the internal combustion engine controller 2 generates a signal. The timer constantly measures time by counting clock pulses, and generates a signal every time a fixed time (4 msec in this embodiment) is measured to execute the interrupt routine of FIG. In this interrupt routine, after a drive signal is given to the DC servo motor that drives the exhaust valve so that the exhaust valve opening is maintained at a calculated value, control conditions such as the rotational speed, the throttle opening, and the intake air temperature are set. , The ignition timing, the fuel injection time from the injector, the current values of the controlled variables of various controlled objects such as the opening of the exhaust valve, and the like are executed by executing the communication program stored in the ROM. It is transmitted to the external terminal device as the current data of the institution in the format shown in.

【0090】本実施例において、内燃機関の動作中にマ
ップの書替えを行う際には、先ず外部端末装置22から
内燃機関用制御装置2に与える1バイトの指令値を
「1」として、制御データ送信指令を与える。1バイト
の指令値「1」が受信されたときには、内燃機関用制御
装置2から外部端末装置2に、EEPROM12eに記
憶されている全ての制御データを送信して、EEPRO
M12eに記憶されたものと同一の制御データを外部端
末装置22の受信データ記憶手段を構成するRAMに記
憶させる。
In this embodiment, when the map is rewritten during the operation of the internal combustion engine, first, the 1-byte command value given from the external terminal device 22 to the internal combustion engine control device 2 is set to "1" and the control data is set. Give a send command. When the 1-byte command value "1" is received, the control device 2 for internal combustion engine transmits all the control data stored in the EEPROM 12e to the external terminal device 2, and the EEPROM
The same control data as that stored in M12e is stored in the RAM constituting the received data storage means of the external terminal device 22.

【0091】外部端末装置22のRAMに制御データを
記憶させた後、制御データ記憶手段に記憶されている1
つのマップを書替対象マップとして、該書替対象マップ
の内容を外部端末装置のディスプレイに表示させる。書
替対象マップの選択は、キーボードの操作により行わせ
る。ここでは、スロットル開度が80°のときの点火時
期と回転数との間の関係を与えるマップを書替対象マッ
プとし、この書替対象マップを図9(A)に示すような
折れ線グラフの形でディスプレイ上に表示させるものと
する。またEEPROMにおけるマップの割り付けは図
8のメモリマップに示されている通りであるとする。
After the control data is stored in the RAM of the external terminal device 22, the data stored in the control data storage means 1
One map is used as a rewriting target map, and the contents of the rewriting target map are displayed on the display of the external terminal device. The rewriting target map is selected by operating the keyboard. Here, the map that gives the relationship between the ignition timing and the rotational speed when the throttle opening is 80 ° is the rewriting target map, and this rewriting target map is a line graph as shown in FIG. 9A. Shall be displayed on the display in the form. Further, it is assumed that map allocation in the EEPROM is as shown in the memory map of FIG.

【0092】次に、キーボードの操作により外部端末装
置22から内燃機関用制御装置2に書替指令の指令値
「2」を与える。
Next, the command value "2" of the rewriting command is given from the external terminal device 22 to the internal combustion engine control device 2 by operating the keyboard.

【0093】内燃機関用制御装置2側からは、一定の時
間(この例では4msec)毎に図7の割り込みルーチンを
実行させることにより機関の現状データを外部端末装置
に送信する。
From the internal combustion engine control device 2 side, the current routine data of the engine is transmitted to the external terminal device by executing the interrupt routine of FIG. 7 at regular intervals (4 msec in this example).

【0094】外部端末装置22では、ディスプレイに表
示された書替対象マップに含まれる複数のマップポイン
トa,b,c,…の内、外部端末装置に送信された制御
条件の現在値に最も近い制御条件により規定される1つ
のマップポイントの目標値を書替えの対象とし、ディス
プレイ上で書替えの対象とするマップポイントに印をつ
ける。
In the external terminal device 22, of the plurality of map points a, b, c, ... Included in the rewriting target map displayed on the display, the one closest to the current value of the control condition transmitted to the external terminal device. The target value of one map point defined by the control condition is set as the rewriting target, and the map point to be rewritten is marked on the display.

【0095】例えば、図9(A)のマップを書替対象マ
ップとする場合に、内燃機関用制御装置2から送信され
た回転数(制御条件)の現在値が3200rpm である場
合には、マップポイントdを書替対象マップポイントと
して特定し、該マップポイントdに丸印等の印をつけ
る。
For example, when the map shown in FIG. 9A is used as the rewriting target map and the current value of the rotation speed (control condition) transmitted from the internal combustion engine controller 2 is 3200 rpm, the map The point d is specified as the rewriting target map point, and a mark such as a circle is put on the map point d.

【0096】ここでキーボードを操作することにより、
書替対象マップポイントの目標値(この例では点火時
期)を+Δθ(例えば+0.5°)または−Δθ(例え
ば−0.5°)ずつ変化させて、書替用データを発生さ
せ、この書替用データを図10(B)に示すフォーマッ
トで内燃機関用制御装置2に送信する。内燃機関用制御
装置では、この書替用データを受信して、書替用データ
記憶手段(RAM)に記憶させる。
By operating the keyboard here,
By changing the target value (ignition timing in this example) of the rewriting target map point by + Δθ (for example + 0.5 °) or −Δθ (for example −0.5 °), rewriting data is generated, and this rewriting data is generated. The replacement data is transmitted to the internal combustion engine control device 2 in the format shown in FIG. The control device for the internal combustion engine receives the rewriting data and stores it in the rewriting data storage means (RAM).

【0097】既に書替指令が与えられていて、図3のメ
インルーチンでフラグ1が「1」であるため、図5のル
ーチンが実行され、制御データ記憶手段2Aに記憶され
ているマップの中から書替対象マップが検索される。こ
の検索は、制御データに記憶されているマップにつけら
れている番号の中から、図10(B)のフォーマットで
内燃機関用制御装置2に書替用データを送信する際に2
番目に送信される識別コード(マップNO.)に該当す
るマップNO.を探すことにより行う。書替対象マップ
が検索された後、書替対象マップのマップポイントa,
b,…の中から書替対象マップポイントを規定する制御
条件(この例ではマップポイントdの回転数=3000
rpm )を検索し、検索したマップポイントdの回転数の
次に記憶されているマップポイントdの目標値(点火時
期)を書替用データとしての新たな目標値と比較する。
その結果、両者が異なる場合には、EEPROM12e
のマップポイントdの目標値が記憶されていた番地に書
替用データとしての新たな目標値を書き込む。
Since the rewrite command has already been given and the flag 1 is "1" in the main routine of FIG. 3, the routine of FIG. 5 is executed and the map stored in the control data storage means 2A is executed. The map to be rewritten is searched from. This search is performed when the rewriting data is transmitted to the internal combustion engine control device 2 in the format of FIG. 10B from the numbers attached to the map stored in the control data.
Map No. corresponding to the identification code (map No.) transmitted next. By looking for. After the map to be rewritten is searched, the map point a of the map to be rewritten,
The control condition that defines the map point to be rewritten from among b, ... (In this example, the rotation speed of the map point d = 3000)
rpm) is searched, and the target value (ignition timing) of the map point d stored next to the searched number of revolutions of the map point d is compared with a new target value as rewriting data.
As a result, if the two are different, the EEPROM 12e
A new target value as rewriting data is written in the address in which the target value of the map point d of 1 was stored.

【0098】このようにして書替対象マップポイントの
目標値を書替えた後、内燃機関制御手段を実行させて、
点火時期の制御、排気バルブの開度の制御、燃料の噴射
時間の制御等の各種の制御対象の制御を行わせる。
After rewriting the target value of the map point to be rewritten in this way, the internal combustion engine control means is executed,
Control of various control objects such as ignition timing control, exhaust valve opening control, fuel injection time control, etc. is performed.

【0099】この制御においては、マイクロコンピュー
タ12が、スロットルセンサ、パルサ及びギアポジショ
ンセンサから与えられる情報に基づいて、各スロットル
開度、回転数(パルサの出力信号の発生周期から演算す
る)及びギアポジションにおける燃料噴射時間と点火時
期とを演算し、パルサ信号により基準回転角度位置が計
測されたときに点火時期の計測値及び噴射時間の計測値
をそれぞれ点火時期計測用のコンペアレジスタ及び噴射
時間計測用のコンペアレジスタに入れて、点火時期及び
噴射時間の計測を開始させるとともに、出力ポートB1
から噴射制御部13に噴射指令信号Vj を与える。噴射
時間の計測が終了したときに噴射指令信号Vj の出力を
停止させ、点火時期が計測されたときに点火時期を定め
る点火信号Vi を出力ポートB2 から点火制御部14に
与える。
In this control, the microcomputer 12 uses the throttle sensor, pulser, and gear position sensor to provide information on each throttle opening, rotation speed (calculated from the generation cycle of the pulser output signal), and gear. The fuel injection time and the ignition timing at the position are calculated, and the measured value of the ignition timing and the measured value of the injection time are respectively measured when the reference rotation angle position is measured by the pulser signal, and the compare register for measuring the ignition timing and the injection time are measured. Put it in the compare register for the engine and start measuring the ignition timing and injection time, and output port B1
Supplies the injection command signal Vj to the injection control unit 13. When the measurement of the injection time is completed, the output of the injection command signal Vj is stopped, and when the ignition timing is measured, the ignition signal Vi which determines the ignition timing is supplied from the output port B2 to the ignition control unit 14.

【0100】マイクロコンピュータはまた各回転数、ス
ロットル開度及びギアポジションにおける排気バルブの
開度を演算して、その開度を与えるバルブ開度信号Vθ
を出力ポートB3 に出力する。
The microcomputer also calculates the opening of the exhaust valve at each rotational speed, throttle opening, and gear position, and gives a valve opening signal Vθ for giving the opening.
To the output port B3.

【0101】噴射制御部13はマイクロコンピュータ1
2の出力ポートB1 から噴射指令信号Vj が与えられた
ときにインジェクタ4に駆動電流を与える。インジェク
タ4は、駆動電流が所定の値に達したときにそのバルブ
を開いて図示しない燃料ポンプから与えられている燃料
を吸気マニホールド1A内に噴射する。
The injection control unit 13 is the microcomputer 1
When the injection command signal Vj is given from the output port B1 of No. 2, a drive current is given to the injector 4. The injector 4 opens its valve when the drive current reaches a predetermined value, and injects fuel supplied from a fuel pump (not shown) into the intake manifold 1A.

【0102】点火制御部14は、点火信号Vi が与えら
れたときに点火用の高電圧を発生する点火回路を備えて
いて、点火信号Vi が与えられたときに、点火プラグ6
に点火用の高電圧を印加して点火動作を行わせる。
The ignition control section 14 is provided with an ignition circuit for generating a high voltage for ignition when the ignition signal Vi is given, and when the ignition signal Vi is given, the ignition plug 6 is provided.
A high voltage for ignition is applied to and the ignition operation is performed.

【0103】排気バルブ制御部15は、マイクロコンピ
ュータ12のCPU12aの出力ポートB3 から与えら
れるバルブ開度信号Vθに応じて排気バルブ5に取り付
けられた図示しないアクチュエータに駆動電流を与えて
排気バルブ5を演算された開度まで変位させる。
The exhaust valve control section 15 applies a drive current to an actuator (not shown) attached to the exhaust valve 5 in accordance with a valve opening signal Vθ supplied from the output port B3 of the CPU 12a of the microcomputer 12 to drive the exhaust valve 5 to operate. Displace to the calculated opening.

【0104】外部端末装置22が外されていて、CPU
12aのポートA5 の電位が高レベルの状態にあるとき
には、内燃機関制御手段のみを実行させ、機関の定常運
転を行わせる。
When the external terminal device 22 is removed, the CPU
When the potential of the port A5 of 12a is at a high level, only the internal combustion engine control means is executed and the engine is operated steadily.

【0105】このように、本実施例の第2の書替動作モ
ードにおいては、書替対象マップの1つのマップポイン
トのみを書替の対象として、この書替対象マップポイン
トのデータのみを書き替えるため、内燃機関の制御に要
する時間に対して問題にならない時間で1回の書替えを
行わせることができる。従って、内燃機関の動作中に書
替対象マップポイントの目標値の書替えを行うことがで
きる。本実施例では、書替対象マップポイントを規定す
る制御条件を、制御条件の現在値に最も近い値とするた
め、書替対象マップポイントの目標値を書替えると、そ
の結果が直ちに動作中の機関の特性に反映される。従っ
て、例えば機関に動力計を接続して、機関の回転数を一
定に保った状態でマップの書替を行わせることにより、
マップデータの書替えによる機関の出力の変化を直ちに
知ることができ、最適のマップデータを短時間で決定す
ることができる。
As described above, in the second rewriting operation mode of the present embodiment, only one map point of the rewriting target map is the rewriting target, and only the data of this rewriting target map point is rewritten. Therefore, rewriting can be performed once within a time that does not cause a problem with respect to the time required to control the internal combustion engine. Therefore, the target value of the rewriting target map point can be rewritten during the operation of the internal combustion engine. In the present embodiment, the control condition defining the rewriting target map point is set to the value closest to the current value of the control condition. Therefore, when the target value of the rewriting target map point is rewritten, the result is immediately in operation. It is reflected in the characteristics of the institution. Therefore, for example, by connecting a dynamometer to the engine and letting the engine rewrite the map while keeping the engine speed constant,
The change in the output of the engine due to the rewriting of map data can be immediately known, and the optimum map data can be determined in a short time.

【0106】上記の実施例では、制御条件の現在値に最
も近い値を有する制御条件により規定されるマップポイ
ントを書替の対象とするようにしたが、他の方法により
書替対象マップポイントを指定するようにすることもで
きる。例えば、書替えの対象とするマップポイントを外
部端末装置のキーボードにより決定するようにしてもよ
い。
In the above embodiment, the map point defined by the control condition having the value closest to the current value of the control condition is set as the rewriting target, but the map point to be rewritten is set by another method. It can be specified. For example, the map points to be rewritten may be determined by the keyboard of the external terminal device.

【0107】上記の実施例では、図3のメインルーチン
において、内燃機関用制御装置から外部端末装置に制御
データを送信する過程により、制御データ送信手段が実
現され、図7のタイマ割込みルーチンにおいて各データ
の現在値を外部端末装置に送信する過程により、現状デ
ータ送信手段が実現される。
In the above embodiment, the control data transmitting means is realized by the process of transmitting the control data from the internal combustion engine control device to the external terminal device in the main routine of FIG. The current data transmission means is realized by the process of transmitting the current value of the data to the external terminal device.

【0108】また図4の割り込みルーチンにより、書替
用データ記憶手段が実現され、図3のメインルーチンに
おいて、指令値「2」が与えられたときにフラグ1を
「1」にする過程と、ポートA5 の電位を判定する過程
と、フラグ1の内容を判定する過程とにより、動作モー
ド切換手段が実現される。
Further, the interruption routine of FIG. 4 realizes the rewriting data storage means, and in the main routine of FIG. 3, the process of setting the flag 1 to “1” when the command value “2” is given, The operation mode switching means is realized by the process of determining the potential of the port A5 and the process of determining the content of the flag 1.

【0109】更に、図5のルーチンMONITのマップ
NO.を検索する過程によりマップ検索手段が実現さ
れ、検索したマップの中から受信した回転数と同じ回転
数があるか否かを判定する過程により、マップポイント
検索手段が実現される。また図5のルーチンにおいて、
検出した回転数の次の番地のデータが受信したデータと
同じか否かを判定して、同じでない場合にEEPROM
に受信したデータを書込む過程により、マップポイント
書替手段が実現される。
Further, the map NO. Of the routine MONIT of FIG. The map point searching means is realized by the process of searching for, and the map point searching means is realized by the process of determining whether or not there is the same rotation speed as the received rotation speed from the searched map. In addition, in the routine of FIG.
It is determined whether the data at the address next to the detected rotation speed is the same as the received data, and if not, the EEPROM
The map point rewriting means is realized by the process of writing the received data.

【0110】上記の実施例ではスロットル開度、回転数
及び変速機のギアポジションに応じて点火時期、燃料噴
射時間、及び排気バルブの開度を制御しているが、吸気
温度、大気圧等の他の条件を更に加える場合もあり、制
御対象毎に制御条件を異ならせる場合もある。例えば、
点火時期を回転数に応じて制御し、燃料噴射時間をスロ
ットル開度、吸気温度及び大気圧に応じて制御する場合
もある。
In the above embodiment, the ignition timing, the fuel injection time and the exhaust valve opening are controlled according to the throttle opening, the rotational speed and the gear position of the transmission. Other conditions may be added, and the control conditions may be different for each controlled object. For example,
In some cases, the ignition timing is controlled according to the rotation speed, and the fuel injection time is controlled according to the throttle opening, intake air temperature and atmospheric pressure.

【0111】上記の実施例では、コネクタ21A及び2
1Bの1つの接点を検出接点として利用して外部端末装
置が接続されているか否かを検出する外部端末検出手段
を構成したが、外部端末装置の接続の有無を検出するた
めのスイッチを別個に設けて、コネクタ21Aと21B
とを接続した際に、コネクタの一部により該スイッチが
動作させられて自動的にオンまたはオフするように構成
することにより、外部端末装置の接続の有無を検出する
ようにしてもよい。更に外部端末装置のキーボードの操
作により、外部端末装置が接続されていることを確認す
る信号を発生させるようにしてもよい。
In the above embodiment, the connectors 21A and 2A
Although the external terminal detecting means for detecting whether or not the external terminal device is connected by using one contact point of 1B as a detection contact point, a switch for detecting the presence or absence of the connection of the external terminal device is separately provided. Provided with connectors 21A and 21B
When the and are connected, the switch may be operated by a part of the connector to automatically turn on or off, so that the presence or absence of the connection of the external terminal device may be detected. Further, a signal for confirming that the external terminal device is connected may be generated by operating the keyboard of the external terminal device.

【0112】上記の実施例では、燃料の噴射開始時期を
一定(パルサが信号を発生した時)として、噴射時間の
みを制御しているが、燃料の噴射開始時期及び噴射時間
の双方を制御するようにすることもできる。
In the above embodiment, only the injection time is controlled with the fuel injection start timing being constant (when the pulser generates a signal), but both the fuel injection start timing and the injection time are controlled. You can also do so.

【0113】上記の実施例では、点火装置、燃料噴射装
置及び排気バルブを制御対象としているが、更に他の付
属機器を制御対象とする場合にも本発明を適用できるの
はもちろんである。
In the above embodiment, the ignition device, the fuel injection device and the exhaust valve are controlled, but the present invention can be applied to the case where other accessory devices are controlled.

【0114】[0114]

【発明の効果】以上のように、本発明によれば、制御デ
ータ記憶手段に記憶されている1つのマップを書替対象
マップとして、該書替対象マップに含まれる1つのマッ
プポイントを規定する目標値のみを1回の書替えの対象
とするようにしたので、1回の書き替えに要する時間を
短くすることができ、内燃機関の動作中に外部端末装置
から内燃機関用制御装置に書替えの対象とした目標値の
新たな値を送信して、書替対象とした目標値の書替えを
行わせることができる。従って、内燃機関を動作させな
がマップデータを書替えて、機関の特性の測定結果を見
ることにより、最適のマップを容易に決定することがで
き、マップの決定に要する時間を従来よりも大幅に短縮
することができる。
As described above, according to the present invention, one map stored in the control data storage means is used as a rewriting target map, and one map point included in the rewriting target map is defined. Since only the target value is set as the target of one rewriting, the time required for one rewriting can be shortened, and the rewriting from the external terminal device to the internal combustion engine control device can be performed during the operation of the internal combustion engine. A new target value to be rewritten can be transmitted to rewrite the target value to be rewritten. Therefore, while operating the internal combustion engine, it is possible to easily determine the optimum map by rewriting the map data and observing the measurement results of the characteristics of the engine. It can be shortened.

【0115】特に、請求項2及び3に記載した発明によ
れば、内燃機関用制御装置から外部端末装置に現在の制
御条件の値を送信して、制御条件の現在の値に最も近い
マップポイントを書替対象マップポイントとし、そのマ
ップポイントの制御量の目標値を書替えるので、内燃機
関に例えば動力計を接続して、制御条件を書替え対象と
するマップポイントの制御条件の値に保った状態で、マ
ップデータの書替えを行わせることにより、マップデー
タが機関の出力にどのように反映されるのかを直ちに知
ることができ、最適マップの決定を短時間で行わせるこ
とができる。
In particular, according to the inventions set forth in claims 2 and 3, the internal control unit for the internal combustion engine transmits the current value of the control condition to the external terminal device, and the map point closest to the current value of the control condition is transmitted. Is set as the map point to be rewritten, and the target value of the control amount of the map point is rewritten. Therefore, for example, a dynamometer is connected to the internal combustion engine, and the control condition is kept at the value of the control condition of the map point to be rewritten By rewriting the map data in this state, it is possible to immediately know how the map data is reflected in the output of the engine, and the optimum map can be determined in a short time.

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

【図1】本発明の実施例のハードウェアの構成を示した
ブロック図である。
FIG. 1 is a block diagram showing a hardware configuration of an exemplary embodiment of the present invention.

【図2】本発明に係わる書替装置の構成例を示したブロ
ック図である。
FIG. 2 is a block diagram showing a configuration example of a rewriting device according to the present invention.

【図3】本発明の実施例で各機能実現手段を実現するた
めに用いるプログラムのメインルーチンのアルゴリズム
を示したフローチャートである。
FIG. 3 is a flow chart showing an algorithm of a main routine of a program used for realizing each function realizing means in the embodiment of the present invention.

【図4】本発明の実施例において内燃機関用制御装置が
外部端末装置からの信号を受信する毎に実行される割込
みルーチンのアルゴリズムを示したフローチャートであ
る。
FIG. 4 is a flowchart showing an algorithm of an interrupt routine executed every time the control device for an internal combustion engine receives a signal from an external terminal device in the embodiment of the present invention.

【図5】本発明の実施例においてメモリの書替えを行う
際に実行されるルーチンのアルゴリズムを示したフロー
チャートである。
FIG. 5 is a flowchart showing an algorithm of a routine executed when rewriting the memory in the embodiment of the present invention.

【図6】本発明の実施例においてパルサが信号を発生し
たときに実行される割込みルーチンのアルゴリズムを示
したフローチャートである。
FIG. 6 is a flowchart showing an algorithm of an interrupt routine executed when the pulser generates a signal in the embodiment of the present invention.

【図7】本発明の実施例においてタイマが一定の時間を
計測するごとに実行される割込みルーチンのアルゴリズ
ムを示したフローチャートである。
FIG. 7 is a flowchart showing an algorithm of an interrupt routine executed every time the timer measures a certain time in the embodiment of the present invention.

【図8】EEPROMにおけるメモリの割付けの一例を
示したメモリマップである。
FIG. 8 is a memory map showing an example of memory allocation in the EEPROM.

【図9】(A)及び(B)はそれぞれ異なるスロットル
開度に対する点火時期対回転数特性の一例を示した線図
である。
9 (A) and 9 (B) are diagrams showing examples of ignition timing vs. rotational speed characteristics for different throttle openings.

【図10】(A)は従来から用いられている通信フォー
マットを示した説明図である。(B)は本発明の方法で
用いる通信フォーマットを示した説明図である。
FIG. 10A is an explanatory diagram showing a communication format that has been conventionally used. (B) is an explanatory view showing a communication format used in the method of the present invention.

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

1 内燃機関 2 内燃機関用制御装置 3 スロットルバルブ 4 インジェクタ 5 排気バルブ 6 点火プラグ 8 パルサ 9 パルサ信号入力部 10 スロットル開度信号入力部 11 ギアポジション信号入力部 12 マイクロコンピュータ 12a CPU 12b ROM 12c RAM 12d タイマ 12e EEPROM 2A 制御データ記憶手段 2B 制御データ送信手段 2C 書込データ送信手段 2D 現状データ送信手段 2E 書替用データ記憶手段 2F マップ書替手段 2G 内燃機関制御手段 2H 動作モード切換手段 2J マップ検索手段 2K マップポイント検索手段 2L マップポイント書替手段 22A 書込データ送信指令手段 22B 制御データ送信指令手段 22C 書替指令手段 22D 受信データ記憶手段 22E 書替対象マップ表示手段 22F 書替対象マップポイント特定手段 22G 書替用データ発生手段 22H 書替用データ送信手段 22J 書込データ発生手段 1 Internal Combustion Engine 2 Control Device for Internal Combustion Engine 3 Throttle Valve 4 Injector 5 Exhaust Valve 6 Spark Plug 8 Pulser 9 Pulser Signal Input Section 10 Throttle Opening Signal Input Section 11 Gear Position Signal Input Section 12 Microcomputer 12a CPU 12b ROM 12c RAM 12d Timer 12e EEPROM 2A Control data storage means 2B Control data transmission means 2C Write data transmission means 2D Current data transmission means 2E Rewriting data storage means 2F Map rewriting means 2G Internal combustion engine control means 2H Operation mode switching means 2J Map retrieval means 2K map point search means 2L map point rewriting means 22A write data transmission command means 22B control data transmission command means 22C rewriting command means 22D received data storage means 22E rewriting target map display hand 22F rewrite target map point specifying unit 22G rewriting data generation means 22H rewriting data transmission means 22J write data generating means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 内燃機関の付属機器の内、与えられる駆
動信号の位相及び(または)大きさに応じて制御量(動
作時期または動作量)が変化する少なくとも1つの機器
を制御対象とし、内容の書替えが可能な不揮発性メモリ
からなっていて所定の制御条件と制御量の目標値との関
係を与える複数のマップポイントのそれぞれを規定する
制御条件の値と制御量の目標値とをマップデータとして
集積した構造を有する制御量演算用マップを少なくとも
1つ含む制御データを記憶した制御データ記憶手段と、
制御条件の検出値に対する制御量の目標値を前記マップ
を用いて演算して制御量を演算された目標値に一致させ
るように制御する内燃機関制御手段を実現するための制
御プログラムを記憶した制御プログラム記憶手段と、前
記制御プログラムを実行するCPUとを備えた内燃機関
用制御装置の前記マップデータの少なくとも一部を書替
える制御量演算用マップ書替方法であって、 コンピュータからなる外部端末装置をシリアルインター
フェースを通して前記内燃機関用制御装置のCPUに接
続して、前記内燃機関用制御装置と前記外部端末装置と
の間で通信を行わせることにより前記不揮発性メモリへ
のデータの書き込みを行わせるようにしておき、 前記制御データ記憶手段に記憶されている1つのマップ
を書替対象マップとして、該書替対象マップに含まれる
1つのマップポイントを規定する目標値のみを1回の書
替えの対象とし、 内燃機関の動作中に前記外部端末装置から内燃機関用制
御装置に書替えの対象とした目標値の新たな値を送信し
て、書替対象とした目標値の書替えを行わせることを特
徴とする内燃機関用制御装置の制御量演算用マップ書替
方法。
1. A control target is at least one device of an auxiliary device of an internal combustion engine, the control amount (operation timing or amount) of which changes according to the phase and / or magnitude of a given drive signal. Of the control condition and the target value of the control amount that define each of a plurality of map points that provide a relationship between the predetermined control condition and the target value of the control amount. Control data storing means for storing control data including at least one control amount calculation map having a structure integrated as
Control storing a control program for realizing an internal combustion engine control means for calculating a target value of a control amount with respect to a detected value of a control condition by using the map and controlling the control amount to match the calculated target value. A control amount calculation map rewriting method for rewriting at least a part of the map data of an internal combustion engine control device including a program storage means and a CPU that executes the control program, the external terminal device comprising a computer. Is connected to the CPU of the internal combustion engine control device through a serial interface, and communication is performed between the internal combustion engine control device and the external terminal device so that data is written to the nonvolatile memory. In this way, one map stored in the control data storage means is set as a rewriting target map, and the rewriting is performed. Only the target value that defines one map point included in the elephant map is the target of one-time rewriting, and the target value that is the target of the rewriting from the external terminal device to the internal combustion engine control device is updated while the internal combustion engine is operating. A control value calculation map rewriting method for an internal combustion engine control device, characterized in that a target value that is a rewriting target is rewritten by transmitting a specific value.
【請求項2】 内燃機関の付属機器の内、与えられる駆
動信号の位相及び(または)大きさに応じて制御量(動
作時期または動作量)が変化する少なくとも1つの機器
を制御対象とし、内容の書替えが可能な不揮発性メモリ
からなっていて所定の制御条件と制御量の目標値との関
係を与える複数のマップポイントのそれぞれを規定する
制御条件の値と制御量の目標値とをマップデータとして
集積した構造を有する制御量演算用マップを少なくとも
1つ含む制御データを記憶した制御データ記憶手段と、
制御条件の検出値に対する制御量の目標値を前記マップ
を用いて演算して制御量を演算された目標値に一致させ
るように制御する内燃機関制御手段を実現するための制
御プログラムを記憶した制御プログラム記憶手段と、前
記制御プログラムを実行するCPUとを備えた内燃機関
用制御装置の前記マップデータの少なくとも一部を書替
える制御量演算用マップ書替方法であって、 コンピュータからなる外部端末装置をシリアルインター
フェースを通して前記内燃機関用制御装置のCPUに接
続して、前記内燃機関用制御装置と前記外部端末装置と
の間で通信を行わせることにより前記不揮発性メモリへ
のデータの書き込みを行わせるようにしておき、 前記内燃機関用制御装置から外部端末装置に制御データ
記憶手段の記憶内容を送信して該制御データ記憶手段の
記憶内容を外部端末装置の受信データ記憶手段に記憶さ
せ、 前記受信データ記憶手段に記憶された制御データに含ま
れるマップの内の1つのマップを書替対象マップとし
て、該書替対象マップの内容を外部端末装置に表示さ
せ、 制御条件の現在値を前記内燃機関用制御装置から外部端
末装置に送信させ、 前記外部端末装置に表示された書替対象マップの複数の
マップポイントの内、外部端末装置に送信された制御条
件の現在値に最も近い制御条件により規定される1つの
マップポイントの目標値を書替えの対象とし、 前記書替対象マップを識別するための識別コードと書替
えの対象とした目標値の新たな値とを内燃機関の動作中
に前記外部端末装置から内燃機関用制御装置に送信し
て、書替対象とした目標値の書替えを行わせることを特
徴とする内燃機関用制御装置の制御量演算用マップ書替
方法。
2. At least one of the auxiliary equipment of an internal combustion engine, whose control amount (operation timing or operation amount) changes according to the phase and / or the magnitude of a given drive signal, is controlled, Of the control condition and the target value of the control amount that define each of a plurality of map points that provide a relationship between the predetermined control condition and the target value of the control amount. Control data storing means for storing control data including at least one control amount calculation map having a structure integrated as
Control storing a control program for realizing an internal combustion engine control means for calculating a target value of a control amount with respect to a detected value of a control condition by using the map and controlling the control amount to match the calculated target value. A control amount calculation map rewriting method for rewriting at least a part of the map data of an internal combustion engine control device including a program storage means and a CPU that executes the control program, the external terminal device comprising a computer. Is connected to the CPU of the internal combustion engine control device through a serial interface, and communication is performed between the internal combustion engine control device and the external terminal device to write data to the nonvolatile memory. In this way, the control device for the internal combustion engine transmits the stored contents of the control data storage means to the external terminal device, The storage content of the control data storage means is stored in the reception data storage means of the external terminal device, and one of the maps included in the control data stored in the reception data storage means is set as a rewriting target map, The contents of the map to be rewritten is displayed on the external terminal device, the current value of the control condition is transmitted from the control device for the internal combustion engine to the external terminal device, and a plurality of map points of the rewriting target map displayed on the external terminal device are displayed. Among these, the target value of one map point defined by the control condition closest to the current value of the control condition transmitted to the external terminal device is the target of rewriting, and an identification code for identifying the rewriting target map. A new value of the target value to be rewritten is transmitted from the external terminal device to the internal combustion engine control device during the operation of the internal combustion engine, and the target value to be rewritten is rewritten. Control amount calculation map rewriting method for an internal combustion engine control apparatus characterized by causing.
【請求項3】 内燃機関の付属機器の内、与えられる駆
動信号の位相及び(または)大きさに応じて制御量(動
作時期または動作量)が変化する少なくとも1つの機器
を制御対象とし、内容の書替えが可能な不揮発性メモリ
からなっていて所定の制御条件と制御量の目標値との関
係を与える複数のマップポイントのそれぞれを規定する
制御条件の値と制御量の目標値とをマップデータとして
集積した構造を有する制御量演算用マップを少なくとも
1つ含む制御データを記憶した制御データ記憶手段と、
制御条件の検出値に対する制御量の目標値を前記マップ
を用いて演算して制御量を演算された目標値に一致させ
るように制御する内燃機関制御手段を実現するための制
御プログラムを記憶した制御プログラム記憶手段と、前
記制御プログラムを実行するCPUとを備えた内燃機関
用制御装置の前記マップデータの少なくとも一部を書替
える制御量演算用マップ書替装置であって、 コンピュータからなる外部端末装置がシリアルインター
フェースを介して前記内燃機関用制御装置のCPUに接
続され、 前記外部端末装置は、 前記制御データ記憶手段の記憶内容を前記外部端末装置
に送信することを指令する制御データ送信指令を前記内
燃機関用制御装置に与える制御データ送信指令手段と、 書替対象マップのマップデータの書替えを実行すること
を指令する書替指令を前記内燃機関用制御装置に与える
書替指令手段と、 前記制御データ送信指令に応じて前記内燃機関用制御装
置から外部端末装置に送信された制御データを記憶する
受信データ記憶手段と、 前記受信データ記憶手段に記憶された制御データに含ま
れるマップのうち、少なくとも一部のマップデータを書
替える必要があるマップを書替対象マップとして該書替
対象マップのマップデータを表示する書替対象マップ表
示手段と、 前記内燃機関用制御装置から送信される制御条件の現在
値を受信して、書替対象マップの複数のマップポイント
のそれぞれの制御条件の中から受信された制御条件の現
在値に最も近い値を有する制御条件を検索し、検索した
制御条件のマップポイントを書替対象マップポイントと
して特定する書替対象マップポイント特定手段と、 前記書替対象マップポイントの目標値を変化させて新た
な値とした書替用データを発生させる書替用データ発生
手段と、 前記書替用データが発生したときに、送信するデータの
先頭であることを示すレコードマークと書替対象マップ
を特定するための識別コードと前記書替対象マップポイ
ントの制御条件の値と書替用データとしての目標値の新
たな値とを内燃機関用制御装置に順次送信する書替用デ
ータ送信手段とを備え、 前記内燃機関用制御装置は、 前記外部端末装置から前記制御データ送信指令が与えら
れたときに前記制御データ記憶手段の内容を外部端末装
置に送信する制御データ送信手段と、 制御条件の現在値を含む機関側の現状データを外部端末
装置に送信する現状データ送信手段と、 前記外部端末装置から送信された書替用データを受信し
て記憶する書替用データ記憶手段と、 前記内燃機関用制御装置に外部端末装置が接続されてい
ることが確認されていて該外部端末装置が前記書替指令
を発生しているときに前記制御データ記憶手段に記憶さ
れたマップの書替対象マップポイントの目標値の書替え
を行うマップ書替手段と前記内燃機関制御手段とを順次
実行させ、前記外部端末装置が接続されていないときに
は前記内燃機関制御手段のみを実行させるように動作モ
ードを切り換える動作モード切替手段とを備え、 前記マップ書替手段は、 前記制御データ記憶手段に記憶されているマップの中か
ら前記識別コードにより特定された書替対象マップを検
索するマップ検索手段と、 検索された書替対象マップを構成する複数のマップポイ
ントの制御条件の中から前記書替対象マップポイントを
検索するマップポイント検索手段と、 検索された書替対象マップポイントの目標値が前記書替
用データの目標値と異なるときに、制御データ記憶手段
に記憶されている書替対象マップポイントの目標値を書
替用データの目標値に書き替えるマップポイント書替手
段とを備えていることを特徴とする内燃機関用制御装置
の制御量演算用マップ書替装置。
3. At least one of the auxiliary equipment of the internal combustion engine, whose control amount (operation timing or operation amount) changes according to the phase and / or the magnitude of a given drive signal, is set as a control target. Of the control condition and the target value of the control amount that define each of a plurality of map points that provide a relationship between the predetermined control condition and the target value of the control amount. Control data storing means for storing control data including at least one control amount calculation map having a structure integrated as
Control storing a control program for realizing an internal combustion engine control means for calculating a target value of a control amount with respect to a detected value of a control condition by using the map and controlling the control amount to match the calculated target value. A map rewriting device for calculating a control amount for rewriting at least a part of the map data of an internal combustion engine control device comprising a program storage means and a CPU for executing the control program, the external terminal device comprising a computer Is connected to the CPU of the control device for an internal combustion engine via a serial interface, and the external terminal device issues a control data transmission command for instructing to transmit the storage content of the control data storage means to the external terminal device. Control data transmission command means to be given to the control device for the internal combustion engine, and rewriting the map data of the rewriting target map Rewriting command means for giving a rewriting command for instructing the internal combustion engine control device, and reception for storing control data transmitted from the internal combustion engine control device to the external terminal device in response to the control data transmission command. A map data of the rewriting target map, which is a rewriting target map, in which at least a part of the map data included in the control data stored in the reception data storage unit is required to be rewritten. Rewriting target map display means for displaying, and the current value of the control condition transmitted from the internal combustion engine control device, and received from the respective control conditions of the plurality of map points of the rewriting target map. The control condition having the value closest to the current value of the control condition is searched, and the map point of the searched control condition is specified as the rewriting target map point. Rewriting target map point specifying means, rewriting data generating means for changing the target value of the rewriting target map point to generate rewriting data having a new value, and when the rewriting data is generated The record mark indicating the beginning of the data to be transmitted, the identification code for identifying the rewriting target map, the value of the control condition of the rewriting target map point, and the new target value as the rewriting data. And a rewriting data transmitting means for sequentially transmitting the value to the internal combustion engine control device, wherein the internal combustion engine control device stores the control data when the control data transmission command is given from the external terminal device. A control data transmitting means for transmitting the contents of the means to the external terminal device, a current data transmitting means for transmitting the engine side current data including the current values of the control conditions to the external terminal device, Rewriting data storage means for receiving and storing rewriting data transmitted from the external terminal device, and the external terminal device has been confirmed to be connected to the internal combustion engine control device, and the external terminal device has been confirmed. Is executing the rewriting command, the map rewriting means for rewriting the target value of the map rewriting target map point stored in the control data storage means and the internal combustion engine control means are sequentially executed. And an operation mode switching unit that switches the operation mode so that only the internal combustion engine control unit is executed when the external terminal device is not connected, and the map rewriting unit is stored in the control data storage unit. Map retrieving means for retrieving the rewriting target map specified by the identification code from among the existing maps, and a plurality of markers forming the retrieved rewriting target map. Map point retrieval means for retrieving the rewriting target map point from the control conditions of the rewriting point, and the control data when the target value of the retrieved rewriting target map point is different from the target value of the rewriting data. Map point rewriting means for rewriting the target value of the rewriting target map point stored in the memory means to the target value of the rewriting data, and calculating the control amount of the control device for the internal combustion engine. Map rewriting device.
JP6324925A 1994-12-27 1994-12-27 Rewriting method of control quantity computing map for internal combustion engine controller and its device Pending JPH08177607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6324925A JPH08177607A (en) 1994-12-27 1994-12-27 Rewriting method of control quantity computing map for internal combustion engine controller and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6324925A JPH08177607A (en) 1994-12-27 1994-12-27 Rewriting method of control quantity computing map for internal combustion engine controller and its device

Publications (1)

Publication Number Publication Date
JPH08177607A true JPH08177607A (en) 1996-07-12

Family

ID=18171148

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6324925A Pending JPH08177607A (en) 1994-12-27 1994-12-27 Rewriting method of control quantity computing map for internal combustion engine controller and its device

Country Status (1)

Country Link
JP (1) JPH08177607A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09317548A (en) * 1996-05-23 1997-12-09 Daihatsu Motor Co Ltd Reference position learning method for throttle valve
JPH11190681A (en) * 1997-10-16 1999-07-13 Robert Bosch Gmbh Determination method and device of characteristic value
KR100667481B1 (en) * 2000-03-02 2007-01-10 주식회사 현대오토넷 Software version up apparatus of an engine control unit in vehicles
KR100749667B1 (en) * 2006-07-06 2007-08-14 현대중공업 주식회사 System and method for engine condition diagnosis from crankshaft angular speed
JP2018127901A (en) * 2017-02-06 2018-08-16 株式会社デンソー Electronic control device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09317548A (en) * 1996-05-23 1997-12-09 Daihatsu Motor Co Ltd Reference position learning method for throttle valve
JPH11190681A (en) * 1997-10-16 1999-07-13 Robert Bosch Gmbh Determination method and device of characteristic value
KR100667481B1 (en) * 2000-03-02 2007-01-10 주식회사 현대오토넷 Software version up apparatus of an engine control unit in vehicles
KR100749667B1 (en) * 2006-07-06 2007-08-14 현대중공업 주식회사 System and method for engine condition diagnosis from crankshaft angular speed
JP2018127901A (en) * 2017-02-06 2018-08-16 株式会社デンソー Electronic control device

Similar Documents

Publication Publication Date Title
US4425890A (en) Spark timing control apparatus for use with a internal combustion engine
JP2693884B2 (en) Internal combustion engine control device
US4811713A (en) Vehicle engine controller
US6968268B2 (en) Misfire detector for an internal combustion engine
JPS639093B2 (en)
JP2002115598A (en) Load detecting method, control method, ignition timing control method and ignition timing control apparatus for internal combustion engine
JPH08177607A (en) Rewriting method of control quantity computing map for internal combustion engine controller and its device
CN100398803C (en) Position correction controller of rotary body
JPH0932627A (en) Control data rewriting method and device for control device of internal combustion engine
US6216669B1 (en) Control system for an internal combustion engine
US4508084A (en) Method for controlling a fuel metering system of an internal combustion engine
EP0866222A3 (en) Ignition timing control system for industrial engines
CA2242275C (en) Engine governor for repetitive load cycle applications
KR19990014125A (en) Engine control apparatus and control method thereof
US5093793A (en) Method of transferring signals within electronic control system for internal combustion engines
JPH07127518A (en) Control device for internal combustion engine
JPH0727036A (en) Control device for internal combustion engine
JPH06173739A (en) Control system for measuring fuel of internal combustion engine
JPS6321816B2 (en)
JPH08189449A (en) Engine controller post-installed in vehicle
JP2512789B2 (en) Engine fuel control device
JPH0531251Y2 (en)
JPH04342857A (en) Electronic control device of internal combustion engine
JPS60122237A (en) Electronic engine controller
JP2002364435A (en) Fuel injection type engine

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20020813