JP3490541B2 - Engine speed detector - Google Patents

Engine speed detector

Info

Publication number
JP3490541B2
JP3490541B2 JP12644695A JP12644695A JP3490541B2 JP 3490541 B2 JP3490541 B2 JP 3490541B2 JP 12644695 A JP12644695 A JP 12644695A JP 12644695 A JP12644695 A JP 12644695A JP 3490541 B2 JP3490541 B2 JP 3490541B2
Authority
JP
Japan
Prior art keywords
engine speed
pulse
engine
data
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP12644695A
Other languages
Japanese (ja)
Other versions
JPH08319875A (en
Inventor
正和 東耕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP12644695A priority Critical patent/JP3490541B2/en
Publication of JPH08319875A publication Critical patent/JPH08319875A/en
Application granted granted Critical
Publication of JP3490541B2 publication Critical patent/JP3490541B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】この発明はクランク軸の回転に同
期して所定クランク角毎に生成されるパルスに基づいて
エンジン回転数を検出する装置に関し、特にエンジンの
4つの作動行程(吸気→圧縮→燃焼→排気)のうちの1
行程分に対応したパルス数に限定して周期演算を行うこ
とにより、1行程中に発生するパルス数の疎密状態を平
均化させ、安定したエンジン回転数を演算することので
きるエンジン回転数検出装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device for detecting an engine speed based on a pulse generated every predetermined crank angle in synchronization with the rotation of a crankshaft, and more particularly to a device for detecting four engine operation strokes (intake → compression). → Combustion → Exhaust) 1 of
An engine speed detecting device capable of calculating a stable engine speed by averaging the sparse / dense states of the number of pulses generated during one stroke by performing the cycle calculation limited to the number of pulses corresponding to the stroke. It is about.

【0002】[0002]

【従来の技術】一般に、エンジン制御装置においては、
運転状態を把握して制御パラメータを決定するために、
常にエンジン回転数を検出している。このため、従来よ
り、たとえば、クランク軸に関連したセンサ手段を設
け、センサ手段からのパルスを計数してエンジン回転数
を演算するエンジン回転数検出装置が提案されている。
2. Description of the Related Art Generally, in an engine control device,
In order to grasp the operating condition and determine the control parameters,
The engine speed is constantly detected. For this reason, conventionally, for example, there has been proposed an engine speed detecting device which is provided with a sensor means related to a crankshaft and counts pulses from the sensor means to calculate an engine speed.

【0003】しかしながら、クランク軸の回転に同期し
て生成されるパルスの計数値(エンジン回転数に対応す
る)は、各エンジン気筒の作動行程に応じて時間的に変
動することが知られている。なぜなら、1つの気筒に注
目すれば、一定期間内のパルス数は、燃焼行程において
最大となり、以下、排気行程、吸気行程、圧縮行程の順
に減少し、圧縮行程において最小となるからである。
However, it is known that the count value of pulses generated in synchronization with the rotation of the crankshaft (corresponding to the engine speed) fluctuates with time according to the operation stroke of each engine cylinder. . This is because, when paying attention to one cylinder, the number of pulses within a certain period becomes maximum in the combustion stroke, and thereafter decreases in the order of exhaust stroke, intake stroke, compression stroke, and becomes minimum in the compression stroke.

【0004】図8は一定期間内に計数されるパルス数N
p(回転数情報)の時間変化を示す特性図である。ここ
では、クランク軸の1回転に対して2行程が行われる4
気筒ディーゼルエンジンの場合を示し、前述のように、
エンジン作動行程は4行程で1サイクルとなり、1サイ
クルの間にクランク軸は2回転することになる。
FIG. 8 shows the number N of pulses counted within a fixed period.
It is a characteristic view which shows the time change of p (rotation speed information). Here, two strokes are performed for one rotation of the crankshaft.
The case of a cylinder diesel engine is shown.
The engine operation stroke is one cycle in four strokes, and the crankshaft makes two revolutions in one cycle.

【0005】また、4気筒エンジンの場合、各気筒は、
#1気筒、#3気筒、#4気筒、#2気筒の順で燃焼行
程(残りの気筒は、それぞれ4行程のうちの他の行程)
となるため、1行程(各気筒の1/2往復分に相当する
1ストローク)毎にパルス数Npはピーク値を示し、次
行程に移行する間にパルス数Npは最小値を示す。した
がって、図8のように、パルス数Npは、エンジン回転
数に応じて周期的に変動し、1行程(クランク軸1/2
回転)中に1つのピーク値を示すことになる。
In the case of a 4-cylinder engine, each cylinder is
Combustion stroke in the order of # 1 cylinder, # 3 cylinder, # 4 cylinder, # 2 cylinder (remaining cylinders are the other strokes out of 4 strokes)
Therefore, the pulse number Np shows a peak value for each stroke (one stroke corresponding to 1/2 reciprocation of each cylinder), and the pulse number Np shows a minimum value during the shift to the next stroke. Therefore, as shown in FIG. 8, the pulse number Np periodically fluctuates in accordance with the engine speed, and one stroke (crankshaft 1/2
During rotation, one peak value will be shown.

【0006】図9は一定期間内のパルス数Npを用いた
従来のエンジン回転数検出装置を概略的に示す構成図で
あり、図において、1はエンジン(図示せず)に直結さ
れて回転駆動されるクランク軸、1aはクランク軸1の
外周に沿って等間隔(所定クランク角毎)に設けられた
磁性体からなる突起である。2は突起1aに対向配置さ
れた電磁ピックアップ等からなるセンサであり、突起1
aが対向する毎にパルスPを出力する。
FIG. 9 is a block diagram schematically showing a conventional engine speed detecting device using a pulse number Np within a fixed period. In the figure, 1 is directly connected to an engine (not shown) and is rotationally driven. The crankshaft 1a is a projection made of a magnetic material, which is provided along the outer circumference of the crankshaft 1 at equal intervals (at predetermined crank angles). Reference numeral 2 denotes a sensor formed of an electromagnetic pickup or the like which is arranged so as to face the protrusion 1a.
A pulse P is output every time a is opposed to.

【0007】30はパルスPに基づいてエンジン回転数
Reを求めるマイクロコンピュータからなるECU(電
子制御ユニット)であり、一定期間内に入力されたパル
スPの数Npを計数するパルス計数手段301と、パル
ス数Npに基づいてエンジン回転数Reを演算する回転
数演算手段302とを備えている。
Reference numeral 30 denotes an ECU (electronic control unit) composed of a microcomputer for obtaining the engine speed Re based on the pulse P, and pulse counting means 301 for counting the number Np of the pulses P input within a fixed period, The engine speed calculation means 302 calculates the engine speed Re based on the pulse speed Np.

【0008】図10は図9内のパルス計数手段301の
動作を示す説明図であり、(a)はエンジン回転数Re
が大きい(パルスPの発生数Npが大きい)場合、
(b)はエンジン回転数Reが小さい(パルスPの発生
数Npが小さい)場合をそれぞれ示す。
FIG. 10 is an explanatory view showing the operation of the pulse counting means 301 in FIG. 9, and FIG. 10 (a) shows the engine speed Re.
Is large (the number Np of generated pulses P is large),
(B) shows the case where the engine speed Re is small (the number Pp of generated pulses P is small).

【0009】図10において、Tはパルス数Npを計数
するための一定期間であり、所望のデータ(パルス数N
p)が得られる程度の時間にあらかじめ設定されてい
る。tcはエンジン回転数Reを演算するタイミング
(微小時間)であり、各演算タイミングtcにおいて
は、直前の一定期間T内で計数されたデータ(パルス数
Np)に基づいてエンジン回転数Reが演算される。
In FIG. 10, T is a fixed period for counting the pulse number Np, and desired data (pulse number Np
The time is set in advance so that p) can be obtained. tc is a timing (minute time) for calculating the engine speed Re, and at each calculation timing tc, the engine speed Re is calculated based on the data (pulse number Np) counted within the immediately preceding constant period T. It

【0010】図10から明らかなように、一定期間T内
で計数されるパルス数Np(パルスPの発生頻度)は、
エンジン回転数Reが大きい場合(a)には大きく、エ
ンジン回転数Reが小さい場合(b)には小さくなる。
また、図10(b)のように、低回転時においては、エ
ンジン作動行程中の回転数変動が大きくなり、パルスP
の発生頻度が1行程中に変動する(図8参照)。
As is apparent from FIG. 10, the number of pulses Np (the frequency of occurrence of the pulse P) counted within the fixed period T is
When the engine speed Re is large (a), it is large, and when the engine speed Re is small (b), it is small.
Further, as shown in FIG. 10 (b), at low rotation speed, the rotation speed fluctuation during the engine operation stroke becomes large, and the pulse P
Occurrence frequency fluctuates during one stroke (see FIG. 8).

【0011】特に、低回転時においては、一定期間T内
で計数されるパルス数Npが著しく減少し、1行程分
(クランク軸1の1/2回転分)に満たない場合もあり
得る。したがって、パルス数Npの計数値は、計数タイ
ミング(一定期間T)に依存して増減し、たとえば、図
8のように、各行程中の燃焼制御時に最大となり、各行
程の過渡時に最小となる。
In particular, when the engine speed is low, the number of pulses Np counted within a certain period T is significantly reduced, and it may be less than one stroke (1/2 rotation of the crankshaft 1). Therefore, the count value of the pulse number Np increases / decreases depending on the count timing (constant period T). For example, as shown in FIG. 8, the count value becomes maximum during combustion control during each stroke, and becomes minimum during transition during each stroke. .

【0012】このように、従来装置においては、パルス
数Npの計数値に基づいてエンジン回転数Reを演算し
ているが、演算タイミングtc(作動行程)毎にパルス
数Npが変化するうえ、計数対象となるパルスPの対応
する行程が不明であるため、正確なエンジン回転数Re
を求めることができない。特に、低回転時においては、
エンジン回転数Reの変動が大きいため、エンジン回転
数Reの演算値に大きな誤差が発生することになる。
As described above, in the conventional device, the engine speed Re is calculated based on the count value of the pulse number Np. However, the pulse number Np changes at each calculation timing tc (operating stroke), and the counting is performed. Since the corresponding stroke of the target pulse P is unknown, the accurate engine speed Re
Can't ask. Especially at low speeds,
Since the fluctuation of the engine speed Re is large, a large error occurs in the calculated value of the engine speed Re.

【0013】[0013]

【発明が解決しようとする課題】従来のエンジン回転数
検出装置は以上のように、一定期間T内で計数されたパ
ルス数Npに基づいてエンジン回転数Reを演算してい
るので、実際のエンジン作動行程中のエンジン回転数
(パルス数Np)が変動することから、1行程中のパル
スPの発生頻度の疎密による影響によって、パルス数N
pの計数値に変動が生じてしまい、結局、エンジン回転
数Reの演算値に誤差を生じるという問題点があった。
また、パルス数Npの変動を抑制しようとすると、その
ための処理装置がさらに必要となり、コストアップにつ
ながるという問題点があった。
As described above, the conventional engine speed detecting device calculates the engine speed Re on the basis of the pulse number Np counted within the fixed period T. Since the engine speed (pulse number Np) during the operation stroke fluctuates, the number of pulses N is affected by the density of the pulses P during one stroke.
There is a problem in that the count value of p fluctuates, and eventually an error occurs in the calculated value of the engine speed Re.
Further, if the fluctuation of the pulse number Np is to be suppressed, a processing device for that purpose is further required, which causes a problem of cost increase.

【0014】この発明は上記のような問題点を解決する
ためになされたもので、1行程分に対応した一定のパル
ス数に限定して周期演算を行うことにより、行程中のパ
ルスの発生頻度の疎密を平均化して安定した回転数を演
算することのできるエンジン回転数検出装置を得ること
を目的とする。
The present invention has been made in order to solve the above problems, and the frequency of pulses during a stroke is generated by performing the periodic calculation by limiting the fixed number of pulses corresponding to one stroke. It is an object of the present invention to obtain an engine speed detecting device capable of averaging sparseness and denseness of the engine and calculating a stable speed.

【0015】[0015]

【課題を解決するための手段】この発明の請求項1に係
るエンジン回転数検出装置は、エンジンのクランク軸に
関連して設けられ、クランク軸の回転に同期してエンジ
ン回転数に比例した周波数のパルスを所定クランク角毎
に出力するセンサ手段と、センサ手段から出力されるパ
ルスに基づいてエンジン回転数を演算するECUとを備
え、ECUは、パルスの各々の時刻差を演算する時刻差
演算手段と、エンジンの作動行程のうちの1行程分に相
当する一定個数の時刻差を総和する総和演算手段と、総
和された時刻差の演算値に基づいてエンジン回転数を演
算する回転数演算手段と、パルスに基づいてエンジン回
転数の低回転状態を判定するための判定手段と、判定結
果に応答してエンジン回転数のデータを固定するデータ
固定手段とを含み、回転数演算手段は、判定結果に応答
して演算機能が禁止されるものである。
An engine speed detecting device according to claim 1 of the present invention is provided in association with a crankshaft of an engine, and has a frequency proportional to the engine speed in synchronization with the rotation of the crankshaft. Is provided for each predetermined crank angle, and an ECU that calculates the engine speed based on the pulse output from the sensor means. The ECU calculates the time difference of each pulse. Means, a sum total calculation means for summing a fixed number of time differences corresponding to one stroke of the engine operation stroke, and a rotation speed calculation means for calculating an engine speed based on the summed time difference calculation value. And the engine times based on the pulse
Judgment means for judging the low rotation number of rotations, and the judgment result
Data that fixes the engine speed data in response to the result
Including the fixing means, the rotation speed calculating means responds to the determination result.
Then, the calculation function is prohibited .

【0016】[0016]

【0017】[0017]

【0018】[0018]

【0019】また、この発明の請求項2に係るエンジン
回転数検出装置は、請求項1において、判定手段は、エ
ンジン回転数の低回転状態のみならず回転数0状態を判
定するための判定しきい値を有し、データ固定手段は、
判定結果に応答して、エンジン回転数を低回転数または
回転数0状態に切り換えるものである。
According to a second aspect of the present invention, there is provided the engine speed detecting device according to the first aspect, wherein the determining means determines not only the low engine speed state but also the engine speed zero state. Has a threshold value, and the data fixing means is
In response to the determination result, the engine speed is switched to the low speed or 0 speed state.

【0020】[0020]

【作用】この発明の請求項1においては、1行程(クラ
ンク軸1/2回転)分に相当する一定個数のパルス検出
期間を演算して、エンジン作動行程中のパルスの発生頻
度の疎密(回転変動)の影響を平均化して抑制すること
により、安定したエンジン回転数を求める。また、時刻
差データが低回転異常値を示す場合、エンジン回転数を
無条件に固定データとして無駄な時間浪費を防止する。
According to the first aspect of the present invention, a certain number of pulse detection periods corresponding to one stroke (1/2 rotation of the crankshaft) are calculated, and the frequency of pulse generation during the engine operation stroke is varied (rotation). A stable engine speed is obtained by averaging and suppressing the influence of (variation). Also, the time
If the difference data indicates a low rotation abnormal value, change the engine speed.
Unconditionally prevent wasted time as fixed data.

【0021】[0021]

【0022】[0022]

【0023】[0023]

【0024】また、この発明の請求項2においては、低
回転異常値の判定しきい値を有し、固定データを低回転
数状態または回転数0状態に切り換え、固定データの信
頼性を向上させる。
Further, according to the second aspect of the present invention, the fixed data has a threshold value for determining an abnormal low rotation speed and the fixed data is switched to the low rotation speed state or the rotation speed 0 state to improve the reliability of the fixed data. .

【0025】[0025]

【実施例】【Example】

実施例1.以下、この発明の実施例1を図について説明
する。図1はこの発明の実施例1を示す機能ブロック図
であり、3はECU30に対応しており、1、1a、
2、PおよびReは前述と同様のものである。この場
合、ECU3は、以下の要素31〜39により構成され
ている。
Example 1. Embodiment 1 of the present invention will be described below with reference to the drawings. First Embodiment FIG. 1 is a functional block diagram showing a first embodiment of the present invention, 3 corresponds to an ECU 30, 1, 1a,
2, P and Re are the same as described above. In this case, the ECU 3 is composed of the following elements 31 to 39.

【0026】31はパルスPが入力される毎に各パルス
間の所要時間すなわち時刻差Δt(i)を演算する時刻
差演算手段、32は時刻差Δt(i)を常に一定個数分
の最新データ列として確保する一定バイト数の確保RA
M、33は確保RAM32内のアドレスを順次移動させ
て常に一定個数の時刻差Δt(i)を確保するためのポ
インタである。
Reference numeral 31 is a time difference calculating means for calculating the time required between the pulses each time the pulse P is input, that is, the time difference Δt (i), and 32 is the latest data of the time difference Δt (i) which is always a fixed number. Secure a certain number of bytes secured as a column RA
M and 33 are pointers for sequentially moving addresses in the securing RAM 32 to secure a fixed number of time differences Δt (i).

【0027】34はエンジンの作動行程のうちの1行程
分に相当する一定個数の時刻差Δt(i)を総和する総
和演算手段、35は総和演算手段34におけるデータ総
和演算数を計数する個数カウンタ、36は時刻差Δt
(i)の総和演算値Tiに基づいてエンジン回転数Re
1を演算する回転数演算手段である。
Reference numeral 34 is a total sum calculating means for summing a fixed number of time differences Δt (i) corresponding to one stroke of the engine operation stroke, and 35 is a number counter for counting the total number of data operations in the total sum calculating means 34. , 36 is the time difference Δt
The engine speed Re based on the sum calculated value Ti of (i)
This is a rotation speed calculation means for calculating 1.

【0028】37はパルスPに基づいてエンジン回転数
の低回転状態を判定するための判定カウンタ(判定手
段)、38は判定カウンタ37の判定結果Dに応答して
エンジン回転数のデータをRe2に固定するデータ固定
手段、39は演算されたエンジン回転数Re1または固
定されたエンジン回転数Re2を最終的なエンジン回転
数Reとして出力するデータ出力手段である。
Reference numeral 37 is a judgment counter (judging means) for judging the low engine speed of the engine speed based on the pulse P, and 38 is data of the engine speed in Re2 in response to the judgment result D of the judgment counter 37. Data fixing means 39 for fixing is a data outputting means for outputting the calculated engine speed Re1 or the fixed engine speed Re2 as the final engine speed Re.

【0029】なお、回転数演算手段36は、低回転状態
を示す判定結果Dに応答して演算機能が禁止される。し
たがって、データ出力手段39は、通常時には演算され
たエンジン回転数Re1を出力し、低回転状態が判定さ
れた場合には、固定されたエンジン回転数Re2を出力
することになる。
The rotation speed calculation means 36 has its calculation function prohibited in response to the determination result D indicating the low rotation state. Therefore, the data output means 39 normally outputs the calculated engine speed Re1 and outputs the fixed engine speed Re2 when the low rotation state is determined.

【0030】また、判定手段37は、エンジン回転数の
低回転状態のみならず回転数0状態を判定するための判
定しきい値(後述する)を有し、データ固定手段38
は、判定結果Dに応答して、エンジン回転数Re2を低
回転数または回転数0状態に切り換えるようになってい
る。
The judging means 37 has a judging threshold value (described later) for judging not only the low engine speed but also the engine speed of 0, and the data fixing means 38.
In response to the determination result D, the engine speed Re2 is switched to the low speed or 0 speed state.

【0031】図2〜図5は図1内のECU3の動作を示
すフローチャートであり、図2は時刻差演算手段31〜
ポインタ33によるパルスPの検出処理動作、図3は総
和演算手段34および個数カウンタ35による確保デー
タの演算処理動作、図4は回転数演算手段36によるエ
ンジン回転数Re1の演算処理動作、図5は判定カウン
タ37およびデータ固定手段38による低回転状態の判
定処理動作を、それぞれ示す。
2 to 5 are flowcharts showing the operation of the ECU 3 in FIG. 1, and FIG. 2 is a time difference calculating means 31 to 31.
Pulse P detection processing by the pointer 33, FIG. 3 is a calculation processing operation of secured data by the sum calculation means 34 and the number counter 35, FIG. 4 is a calculation processing operation of the engine speed Re1 by the rotation speed calculation means 36, and FIG. The determination processing operation of the low rotation state by the determination counter 37 and the data fixing means 38 is shown respectively.

【0032】図6は時刻差演算手段31〜個数カウンタ
35の動作を図式的に示す説明図であり、(a)はエン
ジン回転数Reが大きい(パルスPの発生数Npが大き
い)場合、(b)はエンジン回転数Reが小さい(パル
スPの発生数Npが小さい)場合をそれぞれ示す。
FIG. 6 is an explanatory diagram schematically showing the operation of the time difference calculation means 31 to the number counter 35. FIG. 6A shows the case where the engine speed Re is large (the number Pp of generated pulses Np is large). b) shows the case where the engine speed Re is small (the number Pp of generated pulses P is small).

【0033】図6において、tcは前述と同様の演算タ
イミングであり、Ti11およびTi12はエンジン回
転数Reが大きい場合の総和演算値(一定個数分のパル
ス周期)、Ti21およびTi22はエンジン回転数R
eが小さい場合の総和演算値である。また、ここでは、
クランク軸1に18個の突起1aを設けた場合を想定し
て、一定個数(クランク軸1の1/2回転分に対応した
突起1aの個数)を9個としている。
In FIG. 6, tc is the calculation timing similar to that described above, Ti11 and Ti12 are sum calculation values (a pulse cycle of a fixed number) when the engine speed Re is large, and Ti21 and Ti22 are engine speed R.
It is the sum operation value when e is small. Also here
Assuming that the crankshaft 1 is provided with 18 protrusions 1a, the fixed number (the number of protrusions 1a corresponding to 1/2 rotation of the crankshaft 1) is set to 9.

【0034】図7は確保RAM32内のメモリ空間をポ
インタ33と関連させて示す説明図であり、Zはクラン
ク軸1に設けられた突起1aの数に相当するクランク軸
1の1回転分のパルス数、Z/2は1行程分のパルスP
の数すなわち一定個数、t(i−3)、…、t(i)は
各パルスPの検出時刻である。ポインタ33は、各パル
スPの検出時に、前回の検出時刻t(i−1)からの経
過時間を時刻差Δt(i)として確保RAM32内の現
在アドレスに対応したメモリ空間に格納し、次のアドレ
スに移動するようになっている。
FIG. 7 is an explanatory diagram showing the memory space in the secure RAM 32 in association with the pointer 33, and Z is a pulse for one rotation of the crankshaft 1 corresponding to the number of protrusions 1a provided on the crankshaft 1. Number, Z / 2 is the pulse P for one stroke
, T (i-3), ..., T (i) are the detection times of each pulse P. At the time of detecting each pulse P, the pointer 33 stores the elapsed time from the previous detection time t (i-1) as the time difference Δt (i) in the memory space corresponding to the current address in the secured RAM 32, and It is designed to move to an address.

【0035】次に、図6および図7を参照しながら、図
1に示したこの発明の実施例1の動作について説明す
る。まず、ECU3内の時刻差演算手段31は、時刻t
(i)においてセンサ2からのパルスPを検出したと
き、1つ前のパルスPの検出時刻t(i−1)からの所
要時間を時刻差Δt(i)として計測する。このとき、
時刻差Δt(i)は、以下の式(1)で表わされる。
Next, the operation of the first embodiment of the present invention shown in FIG. 1 will be described with reference to FIGS. 6 and 7. First, the time difference calculation means 31 in the ECU 3 determines the time t
When the pulse P from the sensor 2 is detected in (i), the time required from the detection time t (i-1) of the immediately preceding pulse P is measured as the time difference Δt (i). At this time,
The time difference Δt (i) is represented by the following equation (1).

【0036】 Δt(i)=t(i)−t(i−1) …(1)[0036] Δt (i) = t (i) -t (i-1) (1)

【0037】式(1)で演算された時刻差Δt(i)の
計測量は、ポインタ33が指定した確保RAM32内の
アドレス空間に順次格納される。実際には、後述するよ
うに、前回および今回の各パルス検出時刻が時刻RAM
(図示せず)に一旦取り込まれた後、時刻差Δt(i)
が演算される。続いて、総和演算手段34は、1行程分
の各パルス間の所要時間すなわち時刻差Δt(i)の総
和演算値Tiを、確保RAM32内のデータの合計によ
り、以下の式(2)のように求める。
The measured amount of the time difference Δt (i) calculated by the equation (1) is sequentially stored in the address space in the secure RAM 32 designated by the pointer 33. Actually, as will be described later, the previous and current pulse detection times are the time RAM.
Time difference Δt (i) after being taken into (not shown)
Is calculated. Subsequently, the total sum calculation unit 34 calculates the required time between each pulse for one stroke, that is, the total sum calculation value Ti of the time difference Δt (i) by the sum of the data in the secured RAM 32 as shown in the following formula (2). Ask for.

【0038】Ti=Σ{Δt(k)} …(2)Ti = Σ {Δt (k)} (2)

【0039】但し、式(2)において、時刻差Δt
(k)は、k=i−Z/2+1、…、i−1、i、の範
囲で、Z/2個(一定個数)分のデータが総和される。
なお、時刻差演算手段31によりパルス間の時刻差Δt
(i)を演算し確保RAM32に格納する処理動作は、
パルスPが生成される毎に行われるが、総和演算手段3
4による処理動作は、一定演算周期毎に行われる。これ
により、総和演算値Tiは、常に1行程に相当する一定
個数分のパルス周期を示し、1行程内で変動するパルス
Pの発生頻度の疎密状態が平均化されて、変動による影
響が抑制される。
However, in the equation (2), the time difference Δt
(K) is a range of k = i−Z / 2 + 1, ..., I−1, i, where Z / 2 (constant number) of data are summed up.
The time difference Δt between the pulses is calculated by the time difference calculation means 31.
The processing operation of calculating (i) and storing it in the secured RAM 32 is
The calculation is performed every time the pulse P is generated, but the sum calculation means 3
The processing operation of 4 is performed at regular operation intervals. As a result, the total sum calculated value Ti always indicates a fixed number of pulse cycles corresponding to one stroke, and the density of the occurrence frequency of the pulse P that varies within one stroke is averaged, and the influence of the variation is suppressed. It

【0040】すなわち、エンジン回転数Reが大きい場
合には、図6(a)のように小さい総和演算値Ti11
およびTi12となり、エンジン回転数Reが小さい場
合には、図6(b)のように大きい総和演算値Ti21
およびTi22となり、いずれの場合も安定した値が算
出される。特に、図6(b)のように、エンジン回転数
Reが小さくパルスPの発生頻度が不安定な場合にも、
変動に関係なく安定した総和演算値Ti21およびTi
22が得られる。
That is, when the engine speed Re is large, a small sum operation value Ti11 is obtained as shown in FIG. 6 (a).
And Ti12, and when the engine speed Re is small, a large sum calculation value Ti21 as shown in FIG.
And Ti22, and a stable value is calculated in any case. In particular, as shown in FIG. 6B, even when the engine speed Re is small and the frequency of occurrence of the pulse P is unstable,
Stable sum calculation values Ti21 and Ti regardless of fluctuations
22 is obtained.

【0041】また、このとき、総和演算手段34による
処理は、演算タイミングtcで示すように一定周期毎に
行われるので、図6(b)のように、各演算対象期間す
なわち前々回の総和演算値Ti21と前回の総和演算値
Ti22とが重なり会う場合もあり得る。しかし、図7
のように、確保RAM32内に常に一定個数分のデータ
が格納されているので、総和演算処理動作に何ら支障を
及ぼすことはない。
Further, at this time, since the processing by the sum calculation means 34 is performed at a constant cycle as shown by the calculation timing tc, as shown in FIG. There is a possibility that Ti21 and the previous sum calculation value Ti22 overlap and meet. However, FIG.
As described above, since a fixed number of pieces of data are always stored in the secure RAM 32, there is no hindrance to the summing operation processing operation.

【0042】このように、エンジン作動行程の1行程分
(クランク軸1の1/2回転分)のパルスPを平均化す
ることにより、作動行程内での回転変動による影響を抑
制することができる。また、一定個数のデータ総和演算
処理を行うのみでフィルタ処理演算を行う必要がないの
で、演算精度を向上させることができる。
As described above, by averaging the pulse P for one stroke of the engine operation stroke (1/2 rotation of the crankshaft 1), it is possible to suppress the influence of the rotation fluctuation in the operation stroke. . In addition, since only a fixed number of data summing calculation processes are performed and it is not necessary to perform the filter processing calculation, the calculation accuracy can be improved.

【0043】また、各パルスPの入力所要時間を確保R
AM32内に格納する際、ポインタ33を移動させるこ
とにより、常に一定個数分の最新データ列を確保してお
くことにより、確保RAM32内のデータを移動させる
必要がなく、データ移動処理時間を短くすることができ
る。なお、演算異常の発生を防ぐため、たとえば確保R
AM32内のデータの総和演算処理中においては、パル
スPを検出するための割り込み処理を禁止する。
Also, the time required for inputting each pulse P is secured R
When the data is stored in the AM 32, the pointer 33 is moved to always reserve a certain number of latest data strings, so that it is not necessary to move the data in the secured RAM 32, and the data movement processing time is shortened. be able to. In addition, in order to prevent the occurrence of a calculation abnormality, for example, secure R
During the summation processing of the data in the AM 32, the interrupt processing for detecting the pulse P is prohibited.

【0044】一方、判定カウンタ37は、各パルスPの
発生間隔を参照し、確保RAM32内のデータ異常(オ
ーバーフロー状態)を示す場合に、判定結果Dを出力し
て、データ固定手段38を介して、エンジン回転数を無
条件に固定データRe2とする。すなわち、エンジン回
転数が極端に減少した場合に、異常な回転数を演算する
ことなく、積極的に固定データRe2とする。
On the other hand, the judgment counter 37 refers to the generation interval of each pulse P, and outputs a judgment result D when the data abnormality (overflow state) in the securing RAM 32 is indicated, and the data fixing means 38 is used. , The engine speed is unconditionally fixed data Re2. That is, when the engine speed extremely decreases, the fixed data Re2 is positively set without calculating the abnormal speed.

【0045】また、判定カウンタ37は、パルスPの発
生間隔検出のための判定しきい値を有し、判定しきい値
を越えたか否かにより、固定データを低回転数状態と回
転数なし(0rpm)状態とに切り換える。
Further, the judgment counter 37 has a judgment threshold value for detecting the generation interval of the pulse P, and depending on whether or not the judgment threshold value is exceeded, the fixed data is kept in the low rotation speed state and no rotation speed ( 0 rpm) state.

【0046】以下、図2〜図5を参照しながら、この発
明の実施例1の具体的な制御処理動作について説明す
る。まず、ECU3内の時刻差演算手段31は、クラン
ク軸1に関連したセンサ2からのパルスPに応答して、
パルス検出時の割り込み処理ルーチン(図2)を実行す
る。
The specific control processing operation of the first embodiment of the present invention will be described below with reference to FIGS. First, the time difference calculation means 31 in the ECU 3 responds to the pulse P from the sensor 2 related to the crankshaft 1,
The interrupt processing routine (FIG. 2) at the time of pulse detection is executed.

【0047】すなわち、ステップS210において、各
パルス間の時刻差Δt(i)を演算するのに先立って、
必要な時刻データとなる前回のパルス検出時刻t(i−
1)および今回のパルス検出時刻t(i)を、時刻差演
算手段31内の時刻RAMに取り込む。
That is, in step S210, prior to calculating the time difference Δt (i) between each pulse,
The previous pulse detection time t (i-
1) and the current pulse detection time t (i) are loaded into the time RAM in the time difference calculation means 31.

【0048】また、ステップS212において、確保R
AM32に対するアドレス移動用のポインタ33(図7
参照)をカウント(インクリメント)することにより、
1つ下にシフトされた確保RAM32内のアドレスを示
す処理を行う。これにより、後述するステップS218
において演算される時刻差Δt(i)(=t(i)−t
(i−1))のデータ値は、一定バイト数の確保RAM
32に対してポインタ33が示す最新パルス用のアドレ
スのメモリ空間に格納可能な状態になる。
Further, in step S212, the secured R
A pointer 33 for moving an address to the AM 32 (see FIG. 7).
(Refer) by counting (incrementing)
Processing is performed to indicate the address in the secure RAM 32 that is shifted down by one. As a result, step S218 described below is performed.
Time difference Δt (i) (= t (i) −t
The data value of (i-1)) has a fixed number of bytes of secured RAM.
The pointer 33 is ready to be stored in the memory space of the address for the latest pulse indicated by the pointer 33.

【0049】なお、前述のように、ポインタ33の示す
アドレス位置は、パルスPの検出毎に、次のパルス用の
確保RAM32内のアドレスに順次下方にシフト変更さ
れ、確保RAM32の最下点に達したときには最上点に
戻り、常に確保RAM32内のメモリ空間をサイクリッ
クに指示するように設定されている。
As described above, the address position indicated by the pointer 33 is sequentially shifted downward to the address in the securing RAM 32 for the next pulse every time the pulse P is detected, and is changed to the lowest point of the securing RAM 32. When it reaches, it is set to return to the highest point and always cyclically instruct the memory space in the secure RAM 32.

【0050】このため、ポインタ33の移動ステップS
212に続いて、ステップS214において、ポインタ
33のカウント値(パルス検出時刻のデータ数に依存す
る)が確保RAM32内の所定データ個数(すなわち、
図7内のZ/2)に達したか否かを判定する。もし、判
定結果がNOであって、カウント値が確保RAM32の
バイト数以下(すなわち、確保RAM32の最下点Z/
2またはそれより上)を示していれば、そのままステッ
プS218に進む。
Therefore, the moving step S of the pointer 33 is performed.
Subsequent to 212, in step S214, the count value of the pointer 33 (depending on the number of data at the pulse detection time) is the predetermined number of data in the secure RAM 32 (that is,
It is determined whether Z / 2) in FIG. 7 has been reached. If the determination result is NO and the count value is less than or equal to the number of bytes of the secure RAM 32 (that is, the lowest point Z / of the secure RAM 32).
2 or above), the process directly proceeds to step S218.

【0051】一方、ステップS214の判定結果がYE
Sであって、ポインタ33のカウント値が確保RAM3
2の最下点Z/2より下(大きい値)を示していれば、
ステップS216において、ポインタ33内のポインタ
カウンタをクリアする。これにより、ポインタ33が次
回に示すアドレス位置を確保RAM32の最上点とし、
且つ、少数パルス(低回転)処理における演算禁止フラ
グ(後述する)をクリアした後、ステップS218に進
む。以上のステップS210〜S216により、以下の
時刻差Δt(i)のデータを確保するためのメモリ空間
が確実に割り当てられる。
On the other hand, the determination result of step S214 is YE.
S, the count value of the pointer 33 is secured in the RAM 3
If it is below the lowest point Z / 2 of 2 (larger value),
In step S216, the pointer counter in the pointer 33 is cleared. As a result, the address position indicated by the pointer 33 next time is set as the highest point of the secure RAM 32,
In addition, after clearing a calculation prohibition flag (described later) in the minority pulse (low rotation) processing, the process proceeds to step S218. Through the above steps S210 to S216, the memory space for ensuring the data of the following time difference Δt (i) is surely allocated.

【0052】続いて、ステップS218において、今回
のパルス検出時刻t(i)から前回のパルス検出時刻t
(i−1)を減算し、これをパルス間の所要時間すなわ
ち時刻差Δt(i)として、上記処理ステップS212
でカウントされたポインタ33の示す確保RAM32の
アドレス内に演算結果を格納する。
Subsequently, in step S218, from the current pulse detection time t (i) to the previous pulse detection time t.
(I-1) is subtracted, and this is taken as the required time between pulses, that is, the time difference Δt (i), and the above processing step S212.
The calculation result is stored in the address of the securement RAM 32 indicated by the pointer 33 counted by.

【0053】このとき、移動式のポインタ33は、パル
スPの検出毎に最新パルスに関する時刻差Δt(i)を
確保するためのアドレスを示すので、確保RAM32内
には常に最新データが確実に格納される。また、確保R
AM32には、常に一定パルス数分(1行程分に相当す
るZ/2個)の最新パルス間の時刻差Δt(i)が確保
される。
At this time, since the movable pointer 33 indicates an address for securing the time difference Δt (i) regarding the latest pulse every time the pulse P is detected, the latest data is always stored in the securing RAM 32 without fail. To be done. Also, secure R
The AM 32 always secures a time difference Δt (i) between the latest pulses of a fixed number of pulses (Z / 2 corresponding to one stroke).

【0054】続いて、ステップS220において、次回
のパルス検出時の時刻差演算に使用可能にするために、
今回のパルス検出時刻t(i)を、前回のパルス検出時
刻t(i−1)として時刻RAMに確保する。また、ス
テップS222において、パルス間の時刻差Δt(i)
が正常に確保されたことから、少数パルス(低回転)判
定用のカウンタ(後述する)をクリアする。
Then, in step S220, in order to enable the time difference calculation at the next pulse detection,
The current pulse detection time t (i) is secured in the time RAM as the previous pulse detection time t (i-1). Further, in step S222, the time difference Δt (i) between the pulses is
Has been normally secured, a counter (described later) for determining a small number of pulses (low rotation) is cleared.

【0055】以上のステップS210〜S222からな
る時刻差データ演算ルーチンは、パルスPが検出される
毎に、時刻差演算手段31の割り込み処理により繰り返
し実行され、常に最新の時刻差データ列を確保RAM3
2内に格納する。
The time difference data calculation routine consisting of the above steps S210 to S222 is repeatedly executed by the interrupt processing of the time difference calculation means 31 each time the pulse P is detected, and the latest time difference data string is always secured in the RAM3.
Store in 2.

【0056】次に、総和演算手段34による一定周期の
演算処理ルーチン(図3)について説明する。まず、総
和演算処理中において、パルス検出用の割り込み処理
(図2)が行われて確保RAM32内の時刻差データが
更新されると、総和演算処理に異常が発生するため、総
和演算中には図1の割り込み処理を禁止する必要があ
る。
Next, an arithmetic processing routine (FIG. 3) of a constant cycle by the sum total operation means 34 will be described. First, when the interrupt process for pulse detection (FIG. 2) is performed during the total sum calculation process and the time difference data in the secure RAM 32 is updated, an abnormality occurs in the total sum calculation process. It is necessary to prohibit the interrupt processing of FIG.

【0057】したがって、ステップS310において、
確保RAM32内の時刻差データの総和演算中にはパル
ス検出による割り込み処理(図1)を実行しないよう
に、割り込み禁止処理を行う。続いて、ステップS31
2において、確保RAM32内の時刻差データの総和デ
ータを格納する総和用RAM(図示せず)を初期化し、
また、ステップS314において、確保RAM32内の
データ個数を計数する個数カウンタを初期化する。
Therefore, in step S310,
An interrupt prohibition process is performed so that the interrupt process (FIG. 1) by the pulse detection is not executed during the total calculation of the time difference data in the secure RAM 32. Then, step S31
2, a summing RAM (not shown) for storing sum total data of the time difference data in the secure RAM 32 is initialized,
In step S314, the number counter that counts the number of data in the secure RAM 32 is initialized.

【0058】なお、確保RAM32内の時刻差データ
(確保データ)を総和したデータを格納するための総和
用RAMと、確保データの個数を計数するための個数カ
ウンタとは、ともに総和演算手段34内に設けられてい
るものとする。
The summing RAM for storing the data obtained by summing the time difference data (secured data) in the secured RAM 32 and the number counter for counting the number of secured data are both in the sum calculation means 34. It is assumed to be provided in.

【0059】続いて、ステップS316において、総和
用RAMに確保データを加算し、ステップS318にお
いて、確保データの個数カウンタをカウント(インクリ
メント)する。続いて、ステップS320において、確
保データの個数カウンタの計数値を参照することによ
り、確保データ数(Z/2)の全てが加算終了したか否
かをチェックする。
Succeedingly, in a step S316, the secured data is added to the summing RAM, and in a step S318, the secured data number counter is counted (incremented). Then, in step S320, it is checked by referring to the count value of the secured data number counter whether or not all of the secured data numbers (Z / 2) have been added.

【0060】もし、ステップS320の判定結果がNO
であって、全確保データのカウントがまだ終了していな
ければ、ステップS316に戻って確保データの加算処
理を繰り返す。一方、ステップS320の判定結果がY
ESであって、全確保データの加算が終了していれば、
ステップS322に進み、総和演算が終了したことか
ら、割り込み禁止処理を解除して割り込み許可状態に復
帰させる。
If the decision result in the step S320 is NO.
However, if the counting of all the secured data is not completed yet, the process returns to step S316 and the addition process of the secured data is repeated. On the other hand, the determination result of step S320 is Y
If it is ES and addition of all secured data is completed,
In step S322, since the sum calculation is completed, the interrupt prohibition process is canceled and the interrupt enabled state is restored.

【0061】こうして、確保データの総和演算値を求め
ることで、一定パルス数分(1行程分)のパルス間の所
要時間Ti(=ΣΔt(i))が求められる。総和演算
ルーチン(図3)の終了時点において、総和演算手段3
4内の総和用RAM内には全確保データの総和時間(つ
まり、一定個数前のパルス検出時刻から今回のパルス検
出時刻までの所要時間)が確保されていることになる。
In this way, the required time Ti (= ΣΔt (i)) between pulses for a fixed number of pulses (for one stroke) is obtained by obtaining the total calculated value of the secured data. At the end of the total sum calculation routine (FIG. 3), the total sum calculation means 3
The sum total time of all the secured data (that is, the required time from the pulse detection time before the fixed number of times to the current pulse detection time) is secured in the summing RAM in 4.

【0062】次に、回転数演算手段36によりエンジン
回転数Re1を求めるためのメイン演算処理ルーチン
(図4)について説明する。まず、ステップS410に
おいて、エンジン回転数Re1が演算可能か否かを示す
演算禁止フラグをチェックする。なお、演算禁止フラグ
は、少数パルス(低回転)チェック判定時(後述する)
において、エンジン回転数Reを固定データRe2とし
た場合にセットされる。
Next, the main arithmetic processing routine (FIG. 4) for obtaining the engine speed Re1 by the speed calculating means 36 will be described. First, in step S410, a calculation prohibition flag indicating whether or not the engine speed Re1 can be calculated is checked. The calculation prohibition flag is used when a small number of pulses (low rotation) is checked (described later).
In the case where the engine speed Re is set to the fixed data Re2, the value is set.

【0063】もし、ステップS410の判定結果がYE
Sであって、演算禁止フラグがセットされていれば、エ
ンジン回転数Re1の演算が不可能であるから、図4の
メインルーチンを直ちに終了する。一方、ステップS4
10の判定結果がNOであって、演算禁止フラグがクリ
アされていれば、ステップS412において、一定パル
ス数分のパルス間の所要時間Ti(クランク軸1の1/
2回転分)を2倍し、クランク軸1の1回転分の所要時
間2Tiを求める。
If the determination result of step S410 is YE.
If S and the calculation prohibition flag are set, the calculation of the engine speed Re1 is impossible, so the main routine of FIG. 4 is immediately terminated. On the other hand, step S4
If the determination result of 10 is NO and the calculation prohibition flag is cleared, in step S412, the required time Ti between pulses for a certain number of pulses (1 / the crankshaft 1 /
2 rotations) and the required time 2Ti for one rotation of the crankshaft 1 is calculated.

【0064】なお、前述のように、確保パルス数(Z/
2)は、エンジン作動行程の1行程(クランク軸1の1
/2回転)分のパルス数とする。続いて、ステップS4
14において、ステップS412で演算された1回転分
の所要時間2Tiの逆数をとることにより、以下の式
(3)のように、エンジン回転数Re1の演算値を求め
る。
As described above, the number of secured pulses (Z /
2) is one stroke of the engine operation stroke (1 of the crankshaft 1
(/ 2 rotations). Then, step S4
In step 14, the reciprocal of the required time 2Ti for one rotation calculated in step S412 is calculated to obtain the calculated value of the engine speed Re1 as in the following expression (3).

【0065】Re1=(1/2)/Ti …(3)Re1 = (1/2) / Ti (3)

【0066】上記式(3)のように、一定パルス数分の
パルス間の所要時間Tiを用いた演算により、エンジン
回転数Re1を求めることができる。こうして演算され
たエンジン回転数Re1は、最終的なエンジン回転数R
eとしてデータ出力手段39から出力される。
The engine speed Re1 can be obtained by an operation using the required time Ti between pulses for a certain number of pulses as in the above equation (3). The engine speed Re1 thus calculated is the final engine speed R
It is output from the data output means 39 as e.

【0067】しかしながら、図4の演算処理のみでは、
パルス間の所要時間t(i)がECU3内のフリーラン
ニングカウンタの計測範囲を越えオーバーフローした場
合(つまり、検出対象であるエンジン回転数が極端に減
少または0となった場合)において、一定数の最新パル
ス間の各所要時間Δt(i)が確保されていることか
ら、演算異常を起こすおそれがある。これを防ぐため検
出パルスの数について、少数パルス判定を行う必要があ
る。
However, with only the arithmetic processing of FIG.
When the required time t (i) between pulses exceeds the measurement range of the free running counter in the ECU 3 and overflows (that is, when the engine speed to be detected is extremely reduced or becomes 0), a fixed number of Since each required time Δt (i) between the latest pulses is secured, there is a risk of causing a calculation abnormality. In order to prevent this, it is necessary to make a minority pulse determination on the number of detection pulses.

【0068】したがって、パルスPによる割り込み処理
(図2)、確保RAM32内のデータ総和処理(図3)
およびエンジン回転数演算処理(図4)とは別に、判定
カウンタ37による少数パルス判定処理(図5)を設け
る必要がある。少数パルス判定処理を実行する判定カウ
ンタ37は、その判定処理内においてパルスPの検出時
にクリアされるカウンタを有し、次のパルスPが検出さ
れるまで常にカウントを行うようになっている。
Therefore, the interrupt processing by the pulse P (FIG. 2) and the data sum processing in the secure RAM 32 (FIG. 3)
In addition to the engine speed calculation processing (FIG. 4), it is necessary to provide the minority pulse determination processing (FIG. 5) by the determination counter 37. The determination counter 37 that executes the minority pulse determination process has a counter that is cleared when the pulse P is detected in the determination process, and always counts until the next pulse P is detected.

【0069】次に、判定カウンタ37およびデータ固定
手段38による少数パルス(低回転状態)判定時の処理
ルーチン(図5)について説明する。まず、ステップS
510において、一定のタイミングで、少数パルス用の
判定カウンタ37のカウント(インクリメント)を行
い、ステップS512において、判定カウンタ37のカ
ウント値が低回転数の設定時間を超過しているか否かを
チェックする。
Next, the processing routine (FIG. 5) at the time of determining a small number of pulses (low rotation state) by the determination counter 37 and the data fixing means 38 will be described. First, step S
At 510, the determination counter 37 for small number of pulses is counted (incremented) at a constant timing, and at step S512, it is checked whether or not the count value of the determination counter 37 exceeds the low rotation speed setting time. .

【0070】もし、ステップS512の判定結果DがN
Oであって、カウント値が設定時間を超過していなけれ
ば、図5の判定処理ルーチンを直ちに終了する。一方、
ステップS512の判定結果DがYESであって、カウ
ント値が設定時間を超過していれば、ステップS514
において、カウント値がエンジン回転数Re=0に相当
する第2の設定時間(判定しきい値)を超過しているか
否かをチェックする。
If the determination result D in step S512 is N
If it is O and the count value does not exceed the set time, the determination processing routine of FIG. 5 is immediately terminated. on the other hand,
If the determination result D in step S512 is YES and the count value exceeds the set time, step S514
At, it is checked whether the count value exceeds the second set time (determination threshold value) corresponding to the engine speed Re = 0.

【0071】もし、ステップS514の判定結果DがY
ESであって、カウント値が第2の設定時間を超過して
いれば、ステップS516において、エンジン回転数R
e2を0に固定する。一方、ステップS514の判定結
果DがNOであって、カウント値が第2の設定時間を超
過していなければ、ステップS518において、エンジ
ン回転数Re2を低回転数の固定値に設定する。
If the determination result D in step S514 is Y
If ES and the count value exceeds the second set time, in step S516, the engine speed R
Fix e2 to 0. On the other hand, if the determination result D in step S514 is NO and the count value does not exceed the second set time, in step S518, the engine speed Re2 is set to a fixed low rotation speed value.

【0072】続いて、ステップS520において、少数
パルス(低回転)判定後の通常判定時の確保データの格
納のために、ポインタ33のカウンタの初期化を行う。
このとき、ポインタ33のカウンタは、確保RAM32
内のアドレスの最上点の1つ上(アドレス0に相当)を
示し、正常演算復帰後に、パルス間データの確保RAM
32の最上点からデータ格納動作が始まるようにする。
Subsequently, in step S520, the counter of the pointer 33 is initialized to store the secured data in the normal determination after the minority pulse (low rotation) determination.
At this time, the counter of the pointer 33 is the secure RAM 32.
Shows the uppermost point (corresponding to address 0) of the addresses in the table, and secures data between pulses after normal operation recovery
The data storage operation starts from the highest point of 32.

【0073】最後に、ステップS522において、通常
演算復帰後に、確保RAM32内の所定個数分(1行程
分)のZ/2個のデータ列がそろうまで、総和演算およ
びエンジン回転数演算を禁止とするための演算禁止フラ
グをセットする。このように、判定カウンタ37のカウ
ント数がある一定値(設定時間)に達した場合、低回転
数または回転数なし(0)と判定し、エンジン回転数R
e2のデータを低回転数の固定データまたは0とするこ
とにより、時刻差Δt(i)の計測時のオーバーフロー
による無駄時間を防止することができる。
Finally, in step S522, after the normal operation is restored, the sum operation and the engine speed operation are prohibited until a predetermined number (one stroke) of Z / 2 data strings are prepared in the secure RAM 32. Operation prohibition flag is set. In this way, when the count number of the determination counter 37 reaches a certain value (set time), it is determined that the low rotation speed or no rotation speed (0), and the engine rotation speed R
By setting the data of e2 to fixed data of low rotation speed or 0, it is possible to prevent a dead time due to an overflow at the time of measuring the time difference Δt (i).

【0074】また、低回転判定期間中、および、通常検
出復帰後における1行程間のデータ確保完了までは、エ
ンジン回転数Re1の演算処理を中断することにより、
異常演算結果をエンジン回転数Reとして出力すること
を防止することができる。
Further, by interrupting the calculation processing of the engine speed Re1 during the low rotation speed determination period and until the completion of data acquisition for one stroke after the normal detection return,
It is possible to prevent the abnormal calculation result from being output as the engine speed Re.

【0075】実施例2.なお、上記実施例1では、各パ
ルスPの前回の検出時刻t(i−1)および今回の検出
時刻t(i)を、それぞれ時刻差演算手段31内の時刻
RAMに取り込んだ後、時刻差Δt(i)を演算した
が、前回の検出時刻t(i−1)を保持しておき、今回
のパルス検出と同時に時刻差Δt(i)を確保RAM3
2内に格納してもよい。
Example 2. In the first embodiment, the previous detection time t (i-1) and the current detection time t (i) of each pulse P are fetched into the time RAM in the time difference calculation means 31, and then the time difference is calculated. Although Δt (i) is calculated, the previous detection time t (i−1) is held and the time difference Δt (i) is secured simultaneously with the current pulse detection.
2 may be stored.

【0076】実施例3.また、判定カウンタ37のカウ
ント値を第2の設定時間(判定しきい値)と比較し、2
段階の低回転状態および回転数0状態を判定するように
したが、低回転状態のみを判定して固定のエンジン回転
数Re2を1段階に設定してもよい。
Example 3. Further, the count value of the judgment counter 37 is compared with the second set time (judgment threshold value), and 2
Although the low rotation state and the zero rotation speed state of the stage are determined, the fixed engine rotation number Re2 may be set to one stage by determining only the low rotation state.

【0077】[0077]

【発明の効果】以上のようにこの発明の請求項1によれ
ば、エンジンのクランク軸に関連して設けられ、クラン
ク軸の回転に同期してエンジン回転数に比例した周波数
のパルスを所定クランク角毎に出力するセンサ手段と、
センサ手段から出力されるパルスに基づいてエンジン回
転数を演算するECUとを備え、ECUは、パルスの各
々の時刻差を演算する時刻差演算手段と、エンジンの作
動行程のうちの1行程分に相当する一定個数の時刻差を
総和する総和演算手段と、総和された時刻差の演算値に
基づいてエンジン回転数を演算する回転数演算手段と
パルスに基づいてエンジン回転数の低回転状態を判定す
るための判定手段と、判定結果に応答してエンジン回転
数のデータを固定するデータ固定手段とを含み、回転数
演算手段は、判定結果に応答して演算機能が禁止される
ようにしたので、エンジン作動行程中の回転変動の影響
を平均化して抑制し、機械的部分や回路的部分の改変を
必要とせずに、システムの制御変更のみで安定したエン
ジン回転数を演算精度を損なうことなく求めることがで
きるうえ、時刻差データが低回転異常値を示す場合、エ
ンジン回転数を無条件に固定データとして無駄な時間浪
費を防止することのできるエンジン回転数検出装置が得
られる効果がある。
As described above, according to the first aspect of the present invention, a pulse provided at a crankshaft of an engine and having a frequency proportional to the engine speed in synchronization with the rotation of the crankshaft is used. Sensor means for outputting for each corner,
The ECU includes an ECU that calculates an engine speed based on a pulse output from the sensor unit, and the ECU includes a time difference calculation unit that calculates a time difference between the pulses and one of the operating strokes of the engine. A sum calculation means for summing a corresponding fixed number of time differences, and a rotation speed calculation means for calculating the engine speed based on the calculated sum of the time differences .
Determine low engine speed based on pulse
Determination means and engine rotation in response to the determination result
Including the data fixing means to fix the number data,
The calculation means is prohibited from the calculation function in response to the determination result.
As a result, the influence of rotation fluctuations during the engine operation process is averaged and suppressed , and stable engine rotation speed calculation accuracy can be achieved only by changing the system control without the need to modify the mechanical or circuit parts. If the time difference data shows a low rotation abnormal value,
Unnecessarily waste time as fixed data for engine speed
There is an effect that an engine speed detecting device that can prevent costs can be obtained.

【0078】[0078]

【0079】[0079]

【0080】[0080]

【0081】また、この発明の請求項2によれば、請求
項1において、判定手段は、エンジン回転数の低回転状
態のみならず回転数0状態を判定するための判定しきい
値を有し、データ固定手段は、判定結果に応答して、エ
ンジン回転数を低回転数または回転数0状態に切り換え
るようにしたので、固定データの信頼性を向上させたエ
ンジン回転数検出装置が得られる効果がある。
According to claim 2 of the present invention,
In the item 1 , the determination means has a determination threshold value for determining not only the low engine speed state but also the engine speed 0 state, and the data fixing means responds to the determination result by the engine speed. Since the engine speed is switched to the low rotation speed or the rotation speed of 0, there is an effect that an engine rotation speed detection device with improved reliability of fixed data can be obtained.

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

【図1】 この発明の実施例1を示す機能ブロック図で
ある。
FIG. 1 is a functional block diagram showing a first embodiment of the present invention.

【図2】 この発明の実施例1によるパルス検出時の割
り込み処理ルーチンを示すフローチャートである。
FIG. 2 is a flowchart showing an interrupt processing routine at the time of pulse detection according to the first embodiment of the present invention.

【図3】 この発明の実施例1による確保データの総和
演算ルーチンを示すフローチャートである。
FIG. 3 is a flowchart showing a routine for calculating a sum of secured data according to the first embodiment of the present invention.

【図4】 この発明の実施例1によるエンジン回転数の
メイン演算ルーチンを示すフローチャートである。
FIG. 4 is a flowchart showing an engine speed main calculation routine according to the first embodiment of the present invention.

【図5】 この発明の実施例1による少数パルス判定ル
ーチンを示すフローチャートである。
FIG. 5 is a flowchart showing a minority pulse determination routine according to the first embodiment of the present invention.

【図6】 この発明の実施例1によるパルスおよび総和
期間を時系列的且つ図式的に示す説明図であり、(a)
は高回転時、(b)は低回転時の状態をそれぞれ示す。
FIG. 6 is an explanatory diagram showing a pulse and a summation period according to the first embodiment of the present invention in a time series and diagrammatically, FIG.
Shows the state at the time of high rotation, and (b) shows the state at the time of low rotation.

【図7】 この発明の実施例1によるパルス間の所要時
間を格納するための確保RAMのメモリ空間をポインタ
とともに示す説明図である。
FIG. 7 is an explanatory diagram showing a memory space of a secure RAM for storing a required time between pulses according to the first embodiment of the present invention together with a pointer.

【図8】 一般的なエンジン作動行程における回転数変
動を示す説明図である。
FIG. 8 is an explanatory diagram showing a rotation speed fluctuation in a general engine operation stroke.

【図9】 従来のエンジン回転数検出装置を概略的に示
す構成図である。
FIG. 9 is a configuration diagram schematically showing a conventional engine rotation speed detection device.

【図10】 従来のエンジン回転数検出装置によるパル
スおよび計測期間を時系列的且つ図式的に示す説明図で
あり、(a)は高回転時、(b)は低回転時の状態をそ
れぞれ示す。
FIG. 10 is an explanatory diagram showing a pulse and a measurement period by a conventional engine speed detection device in a time-series and diagrammatic manner, where (a) shows a state at high rotation and (b) shows a state at low rotation. .

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

1 クランク軸、2 センサ、3 ECU、31 時刻
差演算手段、32 確保RAM、33 ポインタ、34
総和演算手段、36 回転数演算手段、37判定カウ
ンタ(判定手段)、38 データ固定手段、D 判定結
果、P パルス、Re エンジン回転数、Re1 演算
されたエンジン回転数、Re2 固定されたエンジン回
転数、Δt(i) 時刻差、Ti、Ti11、Ti1
2、Ti21、Ti22 総和時刻差の演算値、S21
2 ポインタをインクリメントするステップ、S218
時刻差を演算するステップ、S310 割り込み演算
機能を禁止するステップ、S316 時刻差データを総
和演算するステップ、S414 エンジン回転数を演算
するステップ、S512、S514 低回転状態を判定
するステップ、S516 低回転数に固定するステッ
プ、S518 回転数0状態に固定するステップ。
1 crankshaft, 2 sensor, 3 ECU, 31 time difference calculating means, 32 securing RAM, 33 pointer, 34
Total calculation means, 36 rotation speed calculation means, 37 determination counter (judgment means), 38 data fixing means, D determination result, P pulse, Re engine rotation speed, Re1 calculated engine rotation speed, Re2 fixed engine rotation speed , Δt (i) time difference, Ti, Ti11, Ti1
2, Ti21, Ti22 Calculated value of total time difference, S21
2 Step of incrementing pointer, S218
Step for calculating time difference, step for inhibiting S310 interrupt operation function, step for step S316, step for calculating sum of time difference data, step S414 for calculating engine speed, steps S512, S514 step for determining low rotation state, step S516 for low speed Step S518, step S518 fixing step at 0 rpm.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平6−93920(JP,A) 特開 平1−273857(JP,A) 特開 昭59−28666(JP,A) 特開 昭59−540(JP,A) 特開 昭63−241466(JP,A) 特開 昭58−150864(JP,A) 特開 昭60−262056(JP,A) 特開 昭63−235644(JP,A) (58)調査した分野(Int.Cl.7,DB名) F02D 45/00 ─────────────────────────────────────────────────── --- Continuation of the front page (56) References JP-A-6-93920 (JP, A) JP-A-1-273857 (JP, A) JP-A-59-28666 (JP, A) JP-A-59- 540 (JP, A) JP 63-241466 (JP, A) JP 58-150864 (JP, A) JP 60-262056 (JP, A) JP 63-235644 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) F02D 45/00

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 エンジンのクランク軸に関連して設けら
れ、前記クランク軸の回転に同期してエンジン回転数に
比例した周波数のパルスを所定クランク角毎に出力する
センサ手段と、 前記センサ手段から出力されるパルスに基づいて前記エ
ンジン回転数を演算するECUとを備えたエンジン回転
数検出装置において、 前記ECUは、 前記パルスの各々の時刻差を演算する時刻差演算手段
と、 前記エンジンの作動行程のうちの1行程分に相当する一
定個数の前記時刻差を総和する総和演算手段と、 前記総和された時刻差の演算値に基づいて前記エンジン
回転数を演算する回転数演算手段と 前記パルスに基づいて前記エンジン回転数の低回転状態
を判定するための判定手段と、 前記判定結果に応答して前記エンジン回転数のデータを
固定するデータ固定手段とを含み、 前記回転数演算手段は、前記判定結果に応答して演算機
能が禁止される ことを特徴とするエンジン回転数検出装
置。
1. A crankshaft of an engine provided in association with
The engine speed is synchronized with the rotation of the crankshaft.
Outputs a pulse with a proportional frequency at each predetermined crank angle
Sensor means, Based on the pulse output from the sensor means,
Engine rotation with ECU for calculating engine speed
In the number detection device, The ECU is Time difference calculating means for calculating the time difference of each of the pulses
When, The one corresponding to one stroke of the operation stroke of the engine
Summing operation means for summing a fixed number of the time differences, The engine based on the calculated value of the summed time difference
Rotation speed calculation means for calculating the rotation speed, Low rotation state of the engine speed based on the pulse
Determination means for determining In response to the determination result, the engine speed data is
Data fixing means for fixing, The rotation speed calculation means responds to the determination result by a calculation machine.
Noh is prohibited Engine speed detection device characterized by
Place
【請求項2】 前記判定手段は、前記エンジン回転数の
低回転状態のみならず回転数0状態を判定するための判
定しきい値を有し、 前記データ固定手段は、前記判定結果に応答して、前記
エンジン回転数を低回転数または回転数0状態に切り換
える ことを特徴とする請求項1に記載のエンジン回転数
検出装置。
2.The determination means determines whether the engine speed is
Judgment for determining not only the low rotation state but also the 0 rotation state
Has a constant threshold, The data fixing means responds to the determination result with the
Switch the engine speed to low or zero speed
Eru The engine speed according to claim 1, characterized in that
Detection device.
JP12644695A 1995-05-25 1995-05-25 Engine speed detector Expired - Lifetime JP3490541B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12644695A JP3490541B2 (en) 1995-05-25 1995-05-25 Engine speed detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12644695A JP3490541B2 (en) 1995-05-25 1995-05-25 Engine speed detector

Publications (2)

Publication Number Publication Date
JPH08319875A JPH08319875A (en) 1996-12-03
JP3490541B2 true JP3490541B2 (en) 2004-01-26

Family

ID=14935420

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12644695A Expired - Lifetime JP3490541B2 (en) 1995-05-25 1995-05-25 Engine speed detector

Country Status (1)

Country Link
JP (1) JP3490541B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7448360B2 (en) 2005-09-07 2008-11-11 Denso Corporation Controller of internal combustion engine

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008163863A (en) * 2006-12-28 2008-07-17 Yamaha Marine Co Ltd Control device for propulsion machine
JP5490054B2 (en) * 2011-04-28 2014-05-14 三菱電機株式会社 Rotation speed calculation device
EP3249411A1 (en) * 2016-05-27 2017-11-29 Schneider Electric Industries SAS Method and device for determining the rotational speed of an engine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7448360B2 (en) 2005-09-07 2008-11-11 Denso Corporation Controller of internal combustion engine

Also Published As

Publication number Publication date
JPH08319875A (en) 1996-12-03

Similar Documents

Publication Publication Date Title
US5699253A (en) Nonlinear dynamic transform for correction of crankshaft acceleration having torsional oscillations
US4461257A (en) Method and system for controlling engine ignition timing
US5794171A (en) Process for deriving predictive model of crankshaft rotation of a combustion engine
KR20060135038A (en) Engine crankshaft position recognition and tracking method applicable to cam and crankshaft signals with arbitrary patterns
EP0085909B1 (en) Crank angle detecting device for an internal combustion engine
JP2627152B2 (en) Ignition timing control device
EP0757239B1 (en) Misfire detection in an internal combustion engine
JPH0470570B2 (en)
JP3490541B2 (en) Engine speed detector
JP4039295B2 (en) Knock detection device
US6208930B1 (en) Engine control system and method having control routines of different execution priorities
JPH0765556B2 (en) Ignition control device for internal combustion engine
EP2667199B1 (en) Semiconductor data processing apparatus and engine control apparatus
EP0967379B1 (en) Engine speed calculating apparatus
JPH08312445A (en) Discriminating method of misfire during combustion
JP4120030B2 (en) Crank angle sensor and engine misfire diagnostic device
US5752213A (en) Misfire detector with torsional oscillation filtering
US4552110A (en) Electronic ignition control system
KR20000066048A (en) A system and a method of detecting engine misfire, using optimal delayed phase angle
KR20020093970A (en) Rate Detection Method and Rate Detector
JPS61180125A (en) Detecting device for combustion state of internal combustion engine
JPS5967459A (en) Method for detecting engine speed of internal combustion engine
JPS6314766B2 (en)
JPH0586958A (en) Missfire detecting method for internal combustion engine
JP2850444B2 (en) Engine failure detection device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071107

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081107

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081107

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091107

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091107

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101107

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111107

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121107

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121107

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131107

Year of fee payment: 10

EXPY Cancellation because of completion of term