JP4882528B2 - Control device for electric power steering device - Google Patents

Control device for electric power steering device Download PDF

Info

Publication number
JP4882528B2
JP4882528B2 JP2006161243A JP2006161243A JP4882528B2 JP 4882528 B2 JP4882528 B2 JP 4882528B2 JP 2006161243 A JP2006161243 A JP 2006161243A JP 2006161243 A JP2006161243 A JP 2006161243A JP 4882528 B2 JP4882528 B2 JP 4882528B2
Authority
JP
Japan
Prior art keywords
abnormality
initial
data
detection
normal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006161243A
Other languages
Japanese (ja)
Other versions
JP2007015683A (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.)
NSK Ltd
Original Assignee
NSK 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 NSK Ltd filed Critical NSK Ltd
Priority to JP2006161243A priority Critical patent/JP4882528B2/en
Publication of JP2007015683A publication Critical patent/JP2007015683A/en
Application granted granted Critical
Publication of JP4882528B2 publication Critical patent/JP4882528B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、操舵系に対して操舵補助力を付与する電動機を有する操舵補助制御機構と、この補助制御操舵機構の異常を検出する異常検出手段と、この異常検出手段で前記操舵補助制御舵機構の異常を検出したときに、前記異常解析データを記憶手段に記憶する異常データ格納手段とを備えた電動パワーステアリング装置の制御装置に関する。   The present invention relates to a steering assist control mechanism having an electric motor for applying a steering assist force to a steering system, an abnormality detection means for detecting an abnormality of the auxiliary control steering mechanism, and the steering assist control steering mechanism using the abnormality detection means. The present invention relates to a control device for an electric power steering apparatus comprising abnormality data storage means for storing the abnormality analysis data in a storage means when an abnormality is detected.

従来の電動パワーステアリング装置の制御装置としては、例えばトルクセンサの故障解析に利用可能なデータを検出するデータ検出手段と、データ検出手段で検出されたデータを一時記憶する一時記憶手段と、一時記憶手段に記憶されたデータのうち操舵補助力指令が規定値を超えたときのデータ、すなわち、運転者によるハンドル操作が実際に行われたときのデータのみを保存用メモリに書き込むことにより、故障解析に不要なデータを排除し、有用なデータのみを保存して保存用メモリの容量を節約し、また、保存用メモリを上書き用のメモリと永久保存用の不揮発メモリとによって構成し、一時記憶手段に記憶されたデータの大きさが設定範囲を超えた場合、つまり、何らかの異常が生じている可能性が大きい場合に限って永久保存用の不揮発メモリに追加保存するようにした電動パワーステアリング用トルクセンサが知られている(例えば、特許文献1参照)。
特開2000−337977号公報(第1頁、第11頁、図12)
As a control device for a conventional electric power steering apparatus, for example, a data detection means for detecting data usable for failure analysis of a torque sensor, a temporary storage means for temporarily storing data detected by the data detection means, and a temporary storage Failure analysis by writing only the data when the steering assist command exceeds the specified value among the data stored in the means, that is, the data when the steering wheel is actually operated by the driver to the storage memory Unnecessary data is saved, only useful data is saved to save storage memory capacity, and the storage memory is composed of overwriting memory and non-volatile memory for permanent storage, and temporary storage means For permanent storage only when the size of the data stored in exceeds the set range, that is, when there is a high possibility that some abnormality has occurred. Electric power steering torque sensor so as to add stored in non-volatile memory is known (e.g., see Patent Document 1).
Japanese Unexamined Patent Publication No. 2000-337777 (first page, eleventh page, FIG. 12)

しかしながら、上記特許文献1に記載の従来例にあっては、何らかの異常が生じている可能性が大きい場合に限って永久保存用の不揮発メモリに解析データを記憶するようにしているが、この永久保存用の不揮発メモリの保存可能個数を超えると永久保存用の不揮発メモリ内で上書きが行われることになり、初期解析データが消去されてしまうという未解決の課題がある。   However, in the conventional example described in Patent Document 1, analysis data is stored in the permanent storage nonvolatile memory only when there is a high possibility that some abnormality has occurred. When the storable number of storage nonvolatile memories is exceeded, overwriting is performed in the permanent storage nonvolatile memory, and there is an unsolved problem that the initial analysis data is erased.

すなわち、ユーザーがトルクセンサの故障に気がついてからディーラーや修理工場に修理を依頼する場合に、修理作業中を含めて異常が永久保存用メモリの保存可能回数を超えた場合には、最初の解析データが上書きされてしまい解析に必要な初期異常データが失われてしまい、異常解析に支障をきたすという未解決の課題がある。
そこで、本発明は、上記従来例の未解決の課題に着目してなされたものであり、故障解析に必要とする初期異常解析データを確実に保存することができる電動パワーステアリング装置の制御装置を提供することを目的としている。
That is, when a user notices a failure of the torque sensor and asks a dealer or repair shop to repair, if the abnormality exceeds the number of times that can be stored in the permanent storage memory, including during repair work, the first analysis is performed. There is an unresolved problem that the initial anomaly data necessary for the analysis is lost because the data is overwritten, and the anomaly analysis is hindered.
Therefore, the present invention has been made paying attention to the unsolved problems of the above conventional example, and provides a control device for an electric power steering device that can reliably store initial abnormality analysis data necessary for failure analysis. It is intended to provide.

上記目的を達成するために、請求項1に係る電動パワーステアリング装置の制御装置は、操舵系に対して操舵補助力を付与する電動機を備えた操舵補助制御機構と、該操舵補助制御機構の作動開始時の異常を検出する初期異常検出手段と、前記操舵制御機構の作動開始後の異常を常時検出する常時異常検出手段と、前記初期異常検出手段及び前記常時異常検出手段で異常を検出したときに、当該異常を解析する時系列データを含む異常解析データを記憶手段に記憶する異常データ格納手段とを備え、前記記憶手段は、前記初期異常検出手段及び前記常時異常検出手段に個別に対応して、前記異常解析データの上書きを禁止する初期異常用及び常時異常用の上書き禁止記憶領域と、前記異常解析データを上書き記憶する初期異常用及び常時異常用の上書き許容記憶領域とを備え、前記異常データ格納手段は、前記初期異常検出手段で検出した操舵補助制御機構の異常が最初の異常解析データであるときに、前記初期異常用上書き禁止記憶領域に記憶し、2回目以降の初期異常解析データであるときに、前記初期異常用上書き許容記憶領域に記憶し、前記常時異常検出手段で検出した操舵補助制御機構の異常が最初の異常解析データであるときに、前記常時異常用上書き禁止記憶領域に記憶し、2回目以降の常時異常解析データであるときに、前記常時異常用上書き許容記憶領域に記憶するように構成されていることを特徴としている。 In order to achieve the above object, a control device for an electric power steering apparatus according to claim 1 includes a steering assist control mechanism including an electric motor that applies a steering assist force to a steering system, and the operation of the steering assist control mechanism. When an abnormality is detected by an initial abnormality detecting means for detecting an abnormality at the start, a constant abnormality detecting means for always detecting an abnormality after the operation of the steering control mechanism is started, and an initial abnormality detecting means and the constant abnormality detecting means. An abnormality data storage means for storing abnormality analysis data including time series data for analyzing the abnormality in the storage means, and the storage means individually corresponds to the initial abnormality detection means and the normal abnormality detection means. The overwriting prohibition storage area for initial abnormality and normal abnormality for prohibiting overwriting of the abnormality analysis data, and for initial abnormality and constant abnormality for overwriting and storing the abnormality analysis data And the abnormal data storage means stores the initial abnormality overwriting prohibition storage area when the abnormality of the steering assist control mechanism detected by the initial abnormality detection means is initial abnormality analysis data. When the initial abnormality analysis data is stored for the second and subsequent times, the abnormality of the steering assist control mechanism stored in the initial abnormality overwriting storage area and detected by the normal abnormality detection means is the first abnormality analysis data. Sometimes it is stored in the always-abnormal overwrite prohibition storage area, and is stored in the always-abnormal overwrite-permitted storage area when it is the second and subsequent always-abnormality analysis data. .

また、請求項に係る電動パワーステアリング装置の制御装置は、請求項1の発明において、前記異常データ格納手段は、異常検出される前後における所定時間の間の異常解析用データを時系列で保持するように構成されていることを特徴としている。
さらに、請求項に係る電動パワーステアリング装置の制御装置は、請求項の発明において、前記異常解析用データは、継続した異常状態を検出する第1の所定時間でなる検出期間の時系列データと、前記検出期間の終了時から第2の所定時間までの確定期間の時系列データとで構成されていることを特徴としている。
According to a second aspect of the present invention, there is provided the control device for the electric power steering apparatus according to the first aspect , wherein the abnormality data storage means holds abnormality analysis data for a predetermined time before and after the abnormality is detected in time series. It is characterized by being configured.
In addition, the controller of an electric power steering apparatus according to claim 3, characterized in that in the invention of claim 2, wherein the abnormality analysis data is time-series detection period comprising a first predetermined time to detect the continued abnormal state It is characterized by comprising data and time-series data of a fixed period from the end of the detection period to a second predetermined time.

なおさらに、請求項に係る電動パワーステアリング装置の制御装置は、請求項1乃至3の何れか1つの発明において、前記初期異常検出手段は、前記操舵補助制御機構に含まれるトルク検出手段の初期異常検出、前記操舵補助制御機構に含まれる制御手段の初期異常検出、前記操舵補助制御機構に含まれる電流検出手段の初期異常検出、前記操舵補助制御機構に含まれる電動モータの初期異常検出、電源系統の初期異常検出及び前記記憶装置の初期異常検出の何れか1つ又は複数を行うように構成されていることを特徴としている。 Still further, a control device for an electric power steering apparatus according to a fourth aspect is the invention according to any one of the first to third aspects, wherein the initial abnormality detection means is a torque detection means included in the steering assist control mechanism. Initial abnormality detection, initial abnormality detection of the control means included in the steering assist control mechanism, initial abnormality detection of the current detection means included in the steering assist control mechanism, initial abnormality detection of the electric motor included in the steering assist control mechanism, One or more of the initial abnormality detection of the power supply system and the initial abnormality detection of the storage device are configured to be performed.

また、請求項に係る電動パワーステアリング装置の制御装置は、請求項乃至の何れか1つの発明において、前記常時異常検出手段は、前記操舵補助制御機構に含まれるトルク検出手段の常時異常検出、前記操舵補助制御機構に含まれる制御手段の常時異常検出、前記操舵補助制御機構に含まれる電流検出手段の常時異常検出、前記操舵補助制御機構に含まれる電動モータの常時異常検出、前記操舵補助制御機構に含まれる車速検出手段の常時異常検出及び電源系統の常時異常検出の何れか1つ又は複数を行うように構成されていることを特徴としている。 The control device for an electric power steering apparatus according to claim 5, in any one invention of claims 1 to 4, wherein the constant abnormality detecting means is always abnormality of the torque detection means included in said steering assist control mechanism Detection, continuous abnormality detection of the control means included in the steering assist control mechanism, constant abnormality detection of the current detection means included in the steering assist control mechanism, constant abnormality detection of the electric motor included in the steering assist control mechanism, the steering The auxiliary control mechanism is configured to perform any one or a plurality of constant abnormality detection of the vehicle speed detection means and constant abnormality detection of the power supply system.

さらに、請求項に係る電動パワーステアリング装置の制御装置は、請求項乃至の何れか1つの発明において、前記初期異常用上書き禁止記憶領域及び常時異常用上書き禁止記憶領域に最初に記憶されたデータ量を管理するデータ量管理手段と、次に異常解析データが生成されたときに、前記データ量管理手段で管理するデータ量に基づいて当該異常解析データを格納可能であるか否かを判定し、格納可能であるときに新たな異常解析データを初期異常用上書き禁止記憶領域及び常時異常用上書き禁止記憶領域に追加記憶する記憶データ追加手段とを備えていることを特徴としている。
さらにまた、請求項に係る電動パワーステアリング装置の制御装置は、請求項の発明において、前記データ管理手段は前記初期異常用上書き禁止記憶領域及び常時異常用上書き禁止記憶領域に記憶されているデータ量を不揮発性メモリに格納して管理するように構成されていることを特徴としている。
Furthermore, the control apparatus for an electric power steering apparatus according to claim 6, in any one invention of claims 1 to 5, initially stored in said initial abnormality overwrite prohibition storage area and always anomaly overwrite prohibition storage area Data amount management means for managing the data amount, and whether or not the abnormality analysis data can be stored based on the data amount managed by the data amount management means when the abnormality analysis data is next generated It is characterized by comprising storage data adding means for determining and storing new abnormality analysis data in the initial abnormality overwriting prohibition storage area and the normal abnormality overwriting prohibition storage area when it can be determined and stored.
Furthermore, in the control device for an electric power steering apparatus according to claim 7 , in the invention of claim 6 , the data management means is stored in the initial abnormality overwrite prohibition storage area and the constant abnormality overwrite prohibition storage area. The data amount is stored and managed in a nonvolatile memory.

求項に係る発明によれば、初期異常検出手段で、操舵補助制御機構の作動開始時の異常を検出すると共に、常時異常検出手段で、操舵補助制御機構の作動開始後の異常を検出し、これら初期異常検出手段及び常時異常検出手段で検出した異常を個別に初期異常用上書き禁止記憶領域,初期異常用上書き許容記憶領域及び常時異常用上書き禁止記憶領域,常時異常用上書き許容領域に記憶することができ、操舵補助制御機構の作動開始時の初期診断による異常検出時の異常解析データと作動開始後の常時診断による異常検出時の異常解析データとを個別に記憶することができ、異常発生時の異常解析を正確に行うことができるという効果が得られる。 According to the invention of Motomeko 1, the initial abnormal detection unit, and detects the operation start time of the abnormality of the steering assist control mechanism, an always abnormality detecting means, detecting an abnormality of the after start of operation of the steering assist control mechanism The abnormality detected by the initial abnormality detection means and the normal abnormality detection means is individually set in the initial abnormality overwrite prohibition storage area, the initial abnormality overwrite allowable storage area, the constant abnormality overwrite overwrite storage area, and the normal abnormality overwrite permission area. It is possible to store the abnormality analysis data at the time of abnormality detection by the initial diagnosis at the start of operation of the steering assist control mechanism and the abnormality analysis data at the time of abnormality detection by the continuous diagnosis after the operation start, The effect that the abnormality analysis at the time of abnormality occurrence can be performed accurately is obtained.

さらに、請求項に係る発明によれば、異常データ格納手段で異常検出される前後における所定時間の間の異常解析データを時系列で保持するようにしたので、異常に至る経過及びその後の状態を時系列データから正確に判断することができるという効果が得られる。
さらにまた、請求項に係る発明によれば、時系列データとして異常発生に至る第1の所定時間内における検出期間の時系列データと、検出期間から第2の所定時間までの確認期間の時系列データとで構成されているので、異常を検出する過程のデータ変化を確実に解析することができるという効果が得られる。
Furthermore, according to the invention according to claim 2 , since abnormality analysis data for a predetermined time before and after an abnormality is detected by the abnormality data storage means is held in time series, the process leading to the abnormality and the subsequent state Can be accurately determined from the time-series data.
Furthermore, according to the invention of claim 3 , the time-series data of the detection period within the first predetermined time leading to the occurrence of abnormality as the time-series data and the time of the confirmation period from the detection period to the second predetermined time Since it is composed of series data, there is an effect that it is possible to reliably analyze data changes in the process of detecting anomalies.

なおさらに、請求項に係る発明では、初期異常検出手段で、初期異常検出態様として、前記操舵補助制御機構に含まれるトルク検出手段の初期異常検出、前記操舵補助制御機構に含まれる制御手段の初期異常検出、前記操舵補助制御機構に含まれる電流検出手段の初期異常検出、前記操舵補助制御機構に含まれる電動モータの初期異常検出、電源系統の初期異常検出及び前記記憶装置の初期異常検出の何れか1つ又は複数を行うので、操舵補助制御機構に作動開始時に生じる異常を正確に検出することができるという効果が得られる。 Still further, in the invention according to claim 4 , the initial abnormality detection means detects the initial abnormality of the torque detection means included in the steering assist control mechanism and the control means included in the steering assist control mechanism as an initial abnormality detection mode. Initial abnormality detection, detection of initial abnormality of current detecting means included in the steering assist control mechanism, detection of initial abnormality of electric motor included in the steering assist control mechanism, detection of initial abnormality of power supply system, and detection of initial abnormality of the storage device Since any one or more are performed, the effect that the abnormality which arises at the time of an operation start to a steering auxiliary control mechanism can be detected correctly is acquired.

また、請求項に係る発明によれば、常時異常検出手段で、常時異常検出として、前記常時異常検出手段は、前記操舵補助制御機構に含まれるトルク検出手段の常時異常検出、前記操舵補助制御機構に含まれる制御手段の常時異常検出、前記操舵補助制御機構に含まれる電流検出手段の常時異常検出、前記操舵補助制御機構に含まれる電動モータの常時異常検出、前記操舵補助制御機構に含まれる車速検出手段の常時異常検出及び電源系統の常時異常検出の何れか1つ又は複数を行うようにしているので、操舵補助制御機構に作動開始後に生じる異常を正確に検出することができるという効果が得られる。 According to the fifth aspect of the present invention, as the normal abnormality detection means, the normal abnormality detection means detects the normal abnormality of the torque detection means included in the steering auxiliary control mechanism, and the steering auxiliary control. Included in the steering assist control mechanism, detection of constant abnormality of the control means included in the mechanism, detection of constant abnormality of the current detection means included in the steering assist control mechanism, detection of constant abnormality of the electric motor included in the steering assist control mechanism, Since any one or more of the normal abnormality detection of the vehicle speed detection means and the normal abnormality detection of the power supply system are performed, there is an effect that the abnormality that occurs after the steering auxiliary control mechanism starts operating can be accurately detected. can get.

さらに、請求項に係る発明によれば、初期用及び常時用上書き禁止記憶領域に記憶される異常解析データのデータ量をデータ量管理手段で管理し、異常解析データのデータ量が少なく次に異常解析データが発生したときに、この異常解析データを上書き禁止領域に記憶可能であるときに、新たな異常解析データを追加記憶するので、初期用及び常時用上書き禁止記憶領域の記憶容量を有効活用することができるという効果が得られる。
さらにまた、請求項に係る発明によれば、データ量管理手段が初期異常用及び常時異常用上書き禁止記憶領域に記憶されているデータ量を不揮発性メモリに格納して管理するので、データ量が消失することなく正確なデータ管理を行うことができる。
Further, according to the invention of claim 6 , the data amount of the abnormality analysis data stored in the initial and always overwrite prohibition storage area is managed by the data amount management means, and the data amount of the abnormality analysis data is small. When abnormality analysis data occurs, new abnormality analysis data is additionally stored when this abnormality analysis data can be stored in the overwrite-protected area, so the storage capacity of the initial and permanent overwrite-protected storage areas is effective. The effect that it can be utilized is acquired.
Furthermore, according to the invention of claim 7 , since the data amount managing means stores and manages the data amount stored in the initial abnormality and always abnormal overwrite prohibition storage area in the nonvolatile memory, the data amount Data management can be performed without loss of data.

以下、本発明の実施の形態を図面に基づいて説明する。
図1は、本発明に一実施形態を示す概略構成図であって、図中、1は、ステアリングホイールであり、このステアリングホイール1に運転者から作用される操舵力が入力軸2aと出力軸2bとを有するステアリングシャフト2に伝達される。このステアリングシャフト2は、入力軸2aの一端がステアリングホイール1に連結され、他端は操舵トルク検出手段としての操舵トルクセンサ3を介して出力軸2bの一端に連結されている。ここで、操舵トルクセンサ3は、メイントルクセンサ3mとサブトルクセンサ3sと、両トルクセンサ3m及び3sに供給されるセンサ電圧が正常であるか否かを監視してセンサ電圧が異常であるときに例えば論理値"1"の電圧異常検出信号SAを出力するセンサ電圧監視部3wとで構成されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a schematic configuration diagram showing an embodiment of the present invention. In the figure, 1 is a steering wheel, and a steering force applied to the steering wheel 1 from a driver is an input shaft 2a and an output shaft. And 2b to the steering shaft 2. The steering shaft 2 has one end of the input shaft 2a connected to the steering wheel 1 and the other end connected to one end of the output shaft 2b via a steering torque sensor 3 as steering torque detecting means. Here, the steering torque sensor 3 monitors whether the sensor voltage supplied to the main torque sensor 3m, the sub torque sensor 3s, and the torque sensors 3m and 3s is normal, and the sensor voltage is abnormal. The sensor voltage monitoring unit 3w outputs a voltage abnormality detection signal SA having a logical value “1”.

そして、出力軸2bに伝達された操舵力は、ユニバーサルジョイント4を介してロアシャフト5に伝達され、さらに、ユニバーサルジョイント6を介してピニオンシャフト7に伝達される。このピニオンシャフト7に伝達された操舵力はステアリングギヤ8を介してタイロッド9に伝達され、図示しない転舵輪を転舵させる。ここで、ステアリングギヤ8は、ピニオンシャフト7に連結されたピニオン8aとこのピニオン8aに噛合するラック8bとを有するラックアンドピニオン形式に構成され、ピニオン8aに伝達された回転運動をラック8bで直進運動に変換している。   The steering force transmitted to the output shaft 2 b is transmitted to the lower shaft 5 via the universal joint 4 and further transmitted to the pinion shaft 7 via the universal joint 6. The steering force transmitted to the pinion shaft 7 is transmitted to the tie rod 9 via the steering gear 8 and steers steered wheels (not shown). Here, the steering gear 8 is configured in a rack and pinion type having a pinion 8a connected to the pinion shaft 7 and a rack 8b meshing with the pinion 8a, and the rotational motion transmitted to the pinion 8a is linearly moved by the rack 8b. It has been converted to movement.

ステアリングシャフト2の出力軸2bには、操舵補助力を出力軸2bに伝達する操舵補助機構10が連結されている。この操舵補助機構10は、出力軸2bに連結した減速ギヤ11と、この減速ギヤ11に連結された操舵補助力を発生する電動機としての電動モータ13とを備えている。
操舵トルクセンサ3は、ステアリングホイール1に付与されて入力軸2aに伝達された操舵トルクを検出するもので、例えば、操舵トルクを入力軸2a及び出力軸2b間に介挿した図示しないトーションバーの捩れ角変位に変換し、この捩れ角変位をポテンショメータで検出するように構成されている。このトルクセンサ3は、図2に示すように、入力される操舵トルクが零のときには、所定の中立電圧V0 となり、この状態から右切りすると、操舵トルクの増加に応じて中立電圧V0 より増加する電圧となり、操舵トルクが零の状態から左切りすると操舵トルクの増加に応じて中立電圧V0 より減少する電圧となるトルク検出値Tを出力するように構成されている。
A steering assist mechanism 10 for transmitting a steering assist force to the output shaft 2b is connected to the output shaft 2b of the steering shaft 2. The steering assist mechanism 10 includes a reduction gear 11 connected to the output shaft 2 b and an electric motor 13 as an electric motor that generates a steering assist force connected to the reduction gear 11.
The steering torque sensor 3 detects the steering torque applied to the steering wheel 1 and transmitted to the input shaft 2a. For example, the steering torque sensor 3 is a torsion bar (not shown) in which the steering torque is interposed between the input shaft 2a and the output shaft 2b. It is configured to convert to a torsional angular displacement and detect the torsional angular displacement with a potentiometer. The torque sensor 3, as shown in FIG. 2, when the steering torque input is zero, a predetermined neutral voltage V 0 becomes, when the right turn from this state, the neutral voltage V 0 in accordance with the increase of the steering torque When the steering torque is turned to the left from a state where the steering torque is zero, a torque detection value T that is a voltage that decreases from the neutral voltage V 0 as the steering torque increases is output.

このトルクセンサ3から出力されるトルク検出値Tm及びTsは、制御装置14に入力される。この制御装置14には、バッテリ15からキースイッチ16を介して電源が供給されていると共に、トルク検出値Tm及びTsの他に車速センサ17で検出した車速検出値V及び電動モータ13に流れる駆動電流検出値IMDも入力され、入力されるトルク検出値Tm及び車速検出値Vに応じた操舵補助力を電動モータ13で発生する操舵補助指令値IM *を算出し、算出した操舵補助指令値IM *とモータ電流検出値IMDとにより、電動モータ13に供給する駆動電流をフィードバック制御する。 The torque detection values Tm and Ts output from the torque sensor 3 are input to the control device 14. The controller 14 is supplied with power from the battery 15 via the key switch 16, and in addition to the torque detection values Tm and Ts, the vehicle speed detection value V detected by the vehicle speed sensor 17 and the drive that flows through the electric motor 13. A current detection value I MD is also input, a steering assist command value I M * for generating a steering assist force in the electric motor 13 according to the input torque detection value Tm and the vehicle speed detection value V is calculated, and the calculated steering assist command The drive current supplied to the electric motor 13 is feedback-controlled by the value I M * and the motor current detection value I MD .

制御装置14は、図3に示すように、トルク検出値Tm及びTsと車速検出値Vとに基づいて所定の演算を行ってモータ駆動信号Ir及びモータ方向信号Dsを出力するメイン及びサブMCU(Micro Controller Unit)101及び102と、メインMCU101から出力されるモータ駆動信号Ir及びモータ方向信号Dsに基づいて電動モータ13を駆動するモータ駆動回路110と、キースイッチ16に接続されてモータ駆動回路110への電源供給を制御するリレー111と、モータ電流IMDを検出するモータ電流検出回路112と、モータ電流IMDとモータ駆動回路18から電動モータ13に供給するモータ端子電圧VM とに基づいてモータ角速度ωを推定するモータ角速度推定回路113と、メインMCU101及びサブMCU102の近傍の温度を検出する温度センサ114とを備えている。 As shown in FIG. 3, the control device 14 performs a predetermined calculation based on the torque detection values Tm and Ts and the vehicle speed detection value V, and outputs a motor drive signal Ir and a motor direction signal Ds ( (Micro Controller Unit) 101 and 102, a motor drive circuit 110 for driving the electric motor 13 based on the motor drive signal Ir and the motor direction signal Ds output from the main MCU 101, and the motor drive circuit 110 connected to the key switch 16. a relay 111 for controlling the power supply to a motor current detection circuit 112 for detecting a motor current I MD, based from the motor current I MD and the motor drive circuit 18 to the motor terminal voltage V M supplied to the electric motor 13 A motor angular speed estimation circuit 113 for estimating the motor angular speed ω, and the main MCU 101 And a temperature sensor 114 for detecting the temperature in the vicinity of the fine sub MCU 102.

メインMCU101は、相互監視するために自己監視用のウォッチドッグタイマ(WDT)101m及びサブ用のウォッチドッグタイマ(WDT)101sを内蔵しており、サブMCU102も相互監視するために自己監視用のウォッチドッグタイマ(WDT)102s及びメイン用のウォッチドッグタイマ(WDT)102mを内装している。そして、サブMCU102はメイン用のウォッチドッグタイマ102mがタイムアップしたときにメインCPU101がプログラム暴走等による異常であると判断してモータ駆動禁止信号Mpをモータ駆動回路110に出力してモータ13の駆動を停止させると共に、リレー111にオフ信号を出力する。   The main MCU 101 includes a self-monitoring watchdog timer (WDT) 101m and a sub watchdog timer (WDT) 101s for mutual monitoring, and the sub MCU102 also performs self-monitoring watch. A dog timer (WDT) 102s and a main watch dog timer (WDT) 102m are provided. Then, the sub MCU 102 determines that the main CPU 101 is abnormal due to program runaway or the like when the main watchdog timer 102m is up, and outputs a motor drive inhibition signal Mp to the motor drive circuit 110 to drive the motor 13. And an off signal is output to the relay 111.

メインMCU101及びサブMCU102は、共にトルク検出値Tm及びTs、車速検出値V、電流検出値IMD、モータ角速度ωに基づいてモータ駆動信号IMM及びIMSを生成するが、メインMCU101からのモータ駆動信号IMMのみがモータ駆動回路110に入力され、サブMCU102で算出されたモータ駆動信号IMSは監視用に使用される。このため、サブMCU102では、自己が算出したモータ駆動信号IMSとメインMCU101が算出したモータ駆動信号IMMとを比較して両者の偏差が所定範囲内であるときにはメインMCU101が正常であると判断するが、偏差が所定範囲外となったときにはメインMCU101が異常であると判断してモータ駆動禁止信号Mpをモータ駆動回路110に出力すると共に、リレー111にオフ信号を出力する。 Both the main MCU 101 and the sub MCU 102 generate motor drive signals I MM and I MS based on the torque detection values Tm and Ts, the vehicle speed detection value V, the current detection value I MD , and the motor angular velocity ω. only the drive signal I MM is input to the motor driving circuit 110, the motor drive signal I MS calculated in sub MCU102 is used for monitoring. Therefore, the sub MCU 102, determines that the time deviation between compares the motor driving signal I MM to the motor drive signal I MS and main MCU101 itself are calculated is calculated is within a predetermined range main MCU101 is normal However, when the deviation is out of the predetermined range, the main MCU 101 is determined to be abnormal, and the motor drive inhibition signal Mp is output to the motor drive circuit 110 and the off signal is output to the relay 111.

ここで、メインMCU101には、図3に示すように、両MCUで実行する操舵補助制御処理プログラム、異常検出処理プログラム等を格納するROM(リードオンリメモリ)130と、トルク検出値T、モータ電流検出値IMD及びモータ角速度ω等の検出データや、MCUで実行する操舵補助制御処理及び異常検出処理の処理過程で必要とするデータや処理結果を記憶するRAM(ランダムアクセスメモリ)131とを内蔵していると共に、操舵補助機構の異常検出時に異常解析データを記憶する電気的に消去可能なEEPROM132が少なくとも内蔵され、さらに警報を発する警報装置133が接続されている。また、サブMCU102には、操舵補助制御処理プログラム等を格納するROM130、MCUで実行する操舵補助制御処理等の処理過程で必要とするデータや処理結果を記憶するRAM131とを少なくとも内蔵している。 Here, as shown in FIG. 3, the main MCU 101 includes a ROM (Read Only Memory) 130 for storing a steering assist control processing program, an abnormality detection processing program, etc. executed by both MCUs, a torque detection value T, and a motor current. Built-in RAM (Random Access Memory) 131 for storing detection data such as detection value IMD and motor angular velocity ω, data necessary for steering assist control processing and abnormality detection processing executed by MCU, and processing results In addition, at least an electrically erasable EEPROM 132 that stores abnormality analysis data when an abnormality is detected in the steering assist mechanism is incorporated, and an alarm device 133 that issues an alarm is connected. In addition, the sub MCU 102 includes at least a ROM 130 for storing a steering assist control processing program and the like, and a RAM 131 for storing data and processing results required in a process such as a steering assist control process executed by the MCU.

ここで、EEPROM132は、図4に示すように、工場出荷時のように異常検出処理を開始してから操舵補助制御装置の作動開始時の初期異常検出処理及び操舵補助制御装置の作動開始後の常時異常検出処理で最初に発生した異常解析データ(車速検出値V、操舵トルク検出値T、モータ電流検出値IMD)を初期異常解析データ及び常時異常解析データとして記憶する上書き禁止記憶領域MA1及びMB1を形成した上書き禁止用EEPROM132a1及び132b1と、2回目以降の初期異常解析データ及び常時異常解析データを記憶する上書き許容記憶領域MA2及びMB2を形成した上書き許容用EEPROM132a2及び132b2とで構成されている。 Here, as shown in FIG. 4, the EEPROM 132 starts the abnormality detection process at the time of shipment from the factory and then starts the initial abnormality detection process at the start of the operation of the steering auxiliary control device and the operation after the operation of the steering auxiliary control device is started. Overwrite prohibition storage area MA1 for storing abnormality analysis data (vehicle speed detection value V, steering torque detection value T, motor current detection value I MD ) first generated in the normal abnormality detection process as initial abnormality analysis data and normal abnormality analysis data Overwrite-prohibiting EEPROMs 132a1 and 132b1 in which MB1 is formed and overwrite-permitted EEPROMs 132a2 and 132b2 in which overwrite-permitted storage areas MA2 and MB2 for storing the second and subsequent initial abnormality analysis data and constant abnormality analysis data are formed. .

また、メインMCU101及びサブMCU102で実行する操舵補助制御処理は、図5に示すように、先ず、ステップS1で、操舵トルクセンサ3のメイントルクセンサ3mで検出したトルク検出値Tmを読込み、次いでステップS2に移行して、トルク検出値Tmから中立電圧V0 を減算して操舵トルクTr(=T−V0 )を算出する。次いで、ステップS3に移行して、車速センサ17で検出した車速検出値Vを読込み、次いでステップS4に移行して、操舵トルクTr及び車速検出値Vに基づいて図6に示す操舵補助指令値算出マップを参照して、モータ電流指令値となる操舵補助指令値IM *を算出する。 Further, as shown in FIG. 5, the steering assist control process executed by the main MCU 101 and the sub MCU 102 first reads the torque detection value Tm detected by the main torque sensor 3m of the steering torque sensor 3 in step S1, and then performs step In S2, the neutral torque V 0 is subtracted from the detected torque value Tm to calculate the steering torque Tr (= T−V 0 ). Next, the process proceeds to step S3, where the vehicle speed detection value V detected by the vehicle speed sensor 17 is read, and then the process proceeds to step S4, where the steering assist command value calculation shown in FIG. 6 is performed based on the steering torque Tr and the vehicle speed detection value V. With reference to the map, a steering assist command value I M * which is a motor current command value is calculated.

ここで、操舵補助指令値算出マップは、図6に示すように、横軸に操舵トルク検出値Tをとり、縦軸に操舵補助指令値IM *をとり、車速検出値Vをパラメータとした特性線図で構成され、操舵トルクTsが"0"から正方向に増加して第1の設定値Ts1に達するまでの間は車速検出値Vにかかわらず比較的緩い勾配で延長する直線部L1と、操舵トルクTaが第1の設定値Ts1より増加したときに、車速検出値Vが比較的速い状態では、比較的緩やかな勾配で延長する直線部L2及びL3と操舵トルク検出値Tsが第1の設定値Ts1より大きい第2の設定値Ts2に近傍で横軸と平行となる直線部L4及びL5と、車速検出値Vが遅い状態では、比較的勾配の大きい直線部L6及びL7と、これら直線部L6及びL7より勾配の大きい直線部L8及びL9と、直線部L8より勾配の大きい直線部L10と、直線部L9及びL10の終端から横軸と平行に延長する直線部L11及びL12とで構成される4本の特性線が形成され、同様に操舵トルクTsが負方向に増加する場合には、上記と原点を挟んで点対象となる4本の特性線が形成された構成を有する。 Here, as shown in FIG. 6, the steering assist command value calculation map has the steering torque detection value T on the horizontal axis, the steering assist command value I M * on the vertical axis, and the vehicle speed detection value V as a parameter. A straight line portion L1 that is configured by a characteristic diagram and extends with a relatively gentle gradient regardless of the vehicle speed detection value V until the steering torque Ts increases in the positive direction from “0” and reaches the first set value Ts1. When the steering torque Ta increases from the first set value Ts1, the straight line portions L2 and L3 that extend with a relatively gentle gradient and the steering torque detection value Ts become the first when the vehicle speed detection value V is relatively fast. Straight line portions L4 and L5 that are parallel to the horizontal axis in the vicinity of the second set value Ts2 that is greater than the set value Ts1 of 1, and in a state where the vehicle speed detection value V is slow, the straight line portions L6 and L7 having a relatively large gradient, A straight line with a larger gradient than these straight line portions L6 and L7. Four characteristic lines formed by the portions L8 and L9, the straight portion L10 having a larger gradient than the straight portion L8, and the straight portions L11 and L12 extending in parallel with the horizontal axis from the ends of the straight portions L9 and L10 are formed. Similarly, when the steering torque Ts increases in the negative direction, there are four characteristic lines that are point targets with the above and the origin in between.

次いで、ステップS5に移行して、モータ角速度推定回路20で推定したモータ加速度ωを読込み、次いでステップS6に移行して、モータ角速度ωに慣性ゲインKi を乗算して、モータ慣性を加減速させるトルクを操舵トルクTrから排除し、慣性感のない操舵感覚を得るための慣性補償制御用の慣性補償値Ii (=Ki ・ω)を算出すると共に、操舵補助指令値IM *の絶対値に摩擦係数ゲインKf を乗算して、動力伝達部や電動モータの摩擦が操舵力に影響することを排除するため摩擦補償制御用の摩擦補償値If (=Kf ・IM *)を算出する。ここで、摩擦補償値If の符号は操舵トルクTrの符号とこの操舵トルクTrにより操舵の切り増し/切り戻しを判定する操舵方向信号とに基づいて決定する。 Next, the processing proceeds to step S5, reads the motor acceleration omega estimated by the motor angular velocity estimation circuit 20, and then proceeds to step S6, by multiplying the inertia gain K i to the motor angular velocity omega, is the motor inertia acceleration The inertia compensation value I i (= K i · ω) for inertia compensation control for obtaining the steering sensation without inertia is calculated by removing the torque from the steering torque Tr, and the absolute value of the steering assist command value I M * is calculated. Friction compensation value I f (= K f · I M * ) for friction compensation control in order to eliminate the influence of the friction of the power transmission unit and the electric motor on the steering force by multiplying the value by the friction coefficient gain K f Is calculated. Here, the sign of the friction compensation value If is determined on the basis of the sign of the steering torque Tr and the steering direction signal for determining whether the steering is increased / returned based on the steering torque Tr.

次いで、ステップS7に移行して、操舵トルクTrを微分演算処理してアシスト特性不感帯での安定性確保、静摩擦の補償を行うセンタ応答性改善指令値Irを算出し、ステップS8に移行して、算出した慣性補償値Ii 、摩擦補償値If 及びセンタ応答性改善指令値Irを操舵補助指令値IM *に加算して操舵補助補償値IM *′(=IM *+Ii +If +Ir)を算出し、次いでステップS9に移行して、操舵補助補償値IM *′を微分してフィードフォワード制御用の微分値Idを算出する。 Next, the process proceeds to step S7, the steering torque Tr is subjected to differential calculation processing to calculate the center response improvement command value Ir for ensuring stability in the assist characteristic dead zone and compensating for static friction, and the process proceeds to step S8. The calculated inertia compensation value I i , friction compensation value If and center response improvement command value Ir are added to the steering assist command value I M * to obtain the steering assist compensation value I M * ′ (= I M * + I i + I f + Ir) is calculated, and then the process proceeds to step S9 to differentiate the steering assist compensation value I M * ′ to calculate a differential value Id for feedforward control.

次いで、ステップS10に移行して、モータ電流検出値IMDを読込み、次いでステップS11に移行して、操舵補助補償値IM *′からモータ電流検出値IMDを減算して電流偏差ΔIを算出し、次いでステップS12に移行して、電流偏差ΔIを比例演算処理して比例補償制御用の比例値ΔIpを算出し、次いでステップS13に移行して、電流偏差ΔIを積分演算処理して積分補償制御用の積分値ΔIiを算出し、次いでステップS14に移行して、微分値Id、比例値ΔIp及び積分値ΔIiを加算することによりモータ駆動電流IMj(j=M,S)(=Id+ΔIp+ΔIi)を算出してからステップS15に移行する。
このステップS15では、前記ステップS14で算出したモータ駆動電流IM をモータ駆動回路18に出力してから前記ステップS1に戻る。
Next, the process proceeds to step S10, the motor current detection value IMD is read, and then the process proceeds to step S11, where the current deviation ΔI is calculated by subtracting the motor current detection value IMD from the steering assist compensation value I M * ′. Then, the process proceeds to step S12, where the current deviation ΔI is proportionally calculated to calculate a proportional value ΔIp for proportional compensation control, and then the process proceeds to step S13, where the current deviation ΔI is integrated and processed to integrate compensation. An integral value ΔIi for control is calculated, and then the process proceeds to step S14, and the motor drive current I Mj (j = M, S) (= Id + ΔIp + ΔIi) is obtained by adding the differential value Id, the proportional value ΔIp, and the integral value ΔIi. Is calculated, and then the process proceeds to step S15.
In step S15, the motor drive current I M calculated in step S14 is output to the motor drive circuit 18, and the process returns to step S1.

また、メインMCU101では、図7に示す操舵補助制御機構の異常を検出する異常検出処理を実行する。この異常検出処理は、例えばキースイッチ16をオン状態として制御装置14に電源が投入されたときに実行開始され、先ず、ステップS31でイグニッションスイッチ(図示せず)がオン状態であるか否かを判定し、これがオフ状態であるときには操舵補助制御装置が非作動状態であるものと判断してイグニッションスイッチがオン状態となるまで待機し、イグニッションスイッチがオン状態であるときにはステップS32に移行して、図8に示す初期異常検出処理を起動してからステップS33に移行する。   Further, the main MCU 101 executes an abnormality detection process for detecting an abnormality of the steering assist control mechanism shown in FIG. This abnormality detection process is started, for example, when the key switch 16 is turned on and the control device 14 is turned on. First, in step S31, it is determined whether an ignition switch (not shown) is on. When it is in an off state, it is determined that the steering assist control device is in an inoperative state and waits until the ignition switch is in an on state. When the ignition switch is in an on state, the process proceeds to step S32. After the initial abnormality detection process shown in FIG. 8 is started, the process proceeds to step S33.

このステップS33では、初期異常検出処理が終了したか否かを判定し、初期異常検出処理が終了していないときにはこれが終了するまで待機し、初期異常検出処理が終了したときにはステップS34に移行する。
このステップS34では、図10に示す常時異常検出処理を起動してからステップS35に移行して、イグニッションスイッチがオフ状態となったか否かを判定し、イグニッションスイッチがオン状態を継続しているときにはこれがオフ状態となるまで待機し、イグニッションスイッチがオフ状態となるとステップS36に移行して、常時異常検出処理を停止してから前記ステップS31に戻る。
In step S33, it is determined whether or not the initial abnormality detection process has been completed. If the initial abnormality detection process has not been completed, the process waits until the initial abnormality detection process has been completed, and the process proceeds to step S34 when the initial abnormality detection process has been completed.
In step S34, the normal abnormality detection process shown in FIG. 10 is started, and then the process proceeds to step S35 to determine whether or not the ignition switch is turned off. When the ignition switch is kept on, The system waits until it is turned off. When the ignition switch is turned off, the process proceeds to step S36, where the normal abnormality detection process is stopped and then the process returns to step S31.

初期異常検出処理は、所定のメインプログムに対する所定時間例えば2ms毎のタイマ割込処理として実行され、図8に示すように、先ず、ステップS41で、RAM131の書込と読込のベリファイを行って両者が一致するか否かを判定することにより、RAM131が正常であるか否かを判定し、RAM131が異常であるときにはステップS42に移行して、上書き禁止用EEPROM132a1の上書き禁止記憶領域MA1に最初の初期異常解析データが記憶されているか否かを表すEEPROM132a1及び132b2のうち正常なROMに記憶された初期データ判別フラグFTAが最初の初期異常解析データ記憶されていることを表す"1"にセットされているか否かを判定し、初期データ判別フラグFTAが"0"にリセットされているときには、上書き記憶領域MA1に最初の初期異常解析データが記憶されていないものと判断して、ステップS43に移行する。 The initial abnormality detection process is executed as a timer interruption process for a predetermined time, for example, every 2 ms, for a predetermined main program. As shown in FIG. 8, first, in step S41, the RAM 131 is verified for writing and reading. To determine whether or not the RAM 131 is normal. If the RAM 131 is abnormal, the process proceeds to step S42, and the first overwriting prohibition storage area MA1 of the overwriting prohibiting EEPROM 132a1 is determined. The initial data discrimination flag FTA stored in the normal ROM of the EEPROMs 132a1 and 132b2 indicating whether or not the initial abnormality analysis data is stored is set to “1” indicating that the first initial abnormality analysis data is stored. The initial data discrimination flag FTA is reset to “0”. If it is determined that the initial initial abnormality analysis data is not stored in the overwrite storage area MA1, the process proceeds to step S43.

このステップS43では、RAM131が異常であることを表すRAM異常コマンドを上書き禁止記憶領域MA1に書込み、次いでステップS44に移行し、EEPROM132a1及び132b2のうち正常なROMに記憶されている初期データ判別フラグFTAを"1"にセットしてから前記ステップ45に移行して、予め設定した初期異常検出処理時間が経過したか否かを判定し初期異常検出処理時間が経過していないときにはタイマ割込処理を終了して所定のメインプログラムに復帰し、初期異常検出処理時間が経過したときには初期異常検出処理を終了する。
また、ステップS42の判定結果が、初期データ判別フラグFTAが"1"にセットされているときには、ステップS46に移行して、RAM131が異常であることを表すRAM異常コマンドを上書き許容用EEPROM132a2に形成した上書き許容記憶領域MA2に記憶してから前記ステップS45に移行する。
In step S43, a RAM abnormality command indicating that the RAM 131 is abnormal is written to the overwrite prohibition storage area MA1, and then the process proceeds to step S44, where the initial data determination flag FTA stored in the normal ROM of the EEPROMs 132a1 and 132b2 is stored. Is set to “1” and then the process proceeds to step 45 to determine whether or not the preset initial abnormality detection processing time has elapsed. If the initial abnormality detection processing time has not elapsed, the timer interrupt processing is performed. When the initial abnormality detection processing time has elapsed, the initial abnormality detection process is terminated.
If the initial data determination flag FTA is set to “1” as a result of determination in step S42, the process proceeds to step S46, and a RAM abnormality command indicating that the RAM 131 is abnormal is formed in the overwrite-allowing EEPROM 132a2. After storing the data in the overwritable storage area MA2, the process proceeds to step S45.

一方、前記ステップS41の判定結果が、RAM131が正常であるときには、ステップS47に移行して、EEPROM132a1〜132b2のサムチェックを行い、不一致であるか否かを検出することにより、EEPROM132a1〜132b2が正常であるか否かを判定し、EEPROM132a1〜132b2の何れかが異常であるときにはステップS48に移行して、初期データ判別フラグFTAが"1"にセットされているか否かを判定し、これが"0"にセットされているときには、ステップS49に移行して、異常となったEEPROMが初期異常上書き禁止用EEPROM132a1であるか否かを判定し、初期異常上書き禁止用EEPROM132a1が正常であるときには、ステップS50に移行して、異常となったEEPROM132a2,132b1及び132b2の何れかが異常であることを表すEEPROM異常コマンドを初期異常上書き禁止用EEPROM132a1に記憶してからステップS51に移行して、初期データ判別フラグFTAを"1"にセットしてから前記ステップS45に移行し、初期異常上書き禁止用EEPROM132a1が異常であるときにはステップS52に移行して、初期異常上書き許容用EEPROM132a2に初期異常上書き禁止用EEPROM132a1が異常であることを表すEEPROM異常コマンドを記憶してからステップS53に移行して、異常警報信号を警報回路133に出力してから前記ステップS45に移行する。   On the other hand, when the determination result of step S41 is normal, the RAM 131 is normal, the process proceeds to step S47, the sum of the EEPROMs 132a1 to 132b2 is checked, and it is detected whether or not the EEPROMs 132a1 to 132b2 are inconsistent. If any of the EEPROMs 132a1 to 132b2 is abnormal, the process proceeds to step S48 to determine whether or not the initial data determination flag FTA is set to “1”. When it is set to "", the process proceeds to step S49 to determine whether or not the abnormal EEPROM is the initial abnormal overwriting prohibition EEPROM 132a1, and when the initial abnormal overwriting prohibition EEPROM 132a1 is normal, the step S50 is performed. E that became abnormal An EEPROM abnormality command indicating that one of the EPROMs 132a2, 132b1 and 132b2 is abnormal is stored in the initial abnormality overwriting prohibition EEPROM 132a1, and then the process proceeds to step S51 where the initial data determination flag FTA is set to "1". When the initial abnormal overwriting prohibition EEPROM 132a1 is abnormal, the process proceeds to step S52, and an EEPROM abnormal command indicating that the initial abnormal overwriting prohibition EEPROM 132a1 is abnormal is sent to the initial abnormal overwriting permission EEPROM 132a2. After storing, the process proceeds to step S53, and after outputting an abnormal alarm signal to the alarm circuit 133, the process proceeds to step S45.

また、ステップS48の判定結果が、初期データ判別フラグFTAが"1"にセットされているときには、ステップS54に移行して、異常となったEEPROMが初期異常上書き許容用EEPROM132a2であるか否かを判定し、初期異常上書き許容用EEPROM132a2ではないときにはステップS55に移行して、異常となったEEPROMを表すEEPROM異常コマンドを初期異常上書き許容用EEPROM132a2に記憶してから前記ステップS45に移行し、初期異常上書き許容用EEPROM132a2が異常であるときにはステップS56に移行して、常時異常上書き許容用EEPROM132b2に初期異常上書き許容用EEPROM132の異常を表すEEPROM異常コマンドを記憶してからステップS57に移行して、異常警報信号を警報回路133に出力してから前記ステップS45に移行する。   If the initial data determination flag FTA is set to “1” as a result of determination in step S48, the process proceeds to step S54 to determine whether or not the abnormal EEPROM is the initial abnormal overwriting allowance EEPROM 132a2. If it is determined that the EEPROM is not the initial abnormality overwriting allowance EEPROM 132a2, the process proceeds to step S55, and the EEPROM abnormality command indicating the abnormal EEPROM is stored in the initial abnormality overwriting allowance EEPROM 132a2, and then the process proceeds to step S45. When the overwriting-permitted EEPROM 132a2 is abnormal, the process proceeds to step S56, and an EEPROM abnormality command indicating an abnormality of the initial abnormal overwriting-permitted EEPROM 132 is stored in the always-abnormal overwriting-permitted EEPROM 132b2, and then step S5. Proceeds to transitions from outputs an abnormality warning signal to the alarm circuit 133 to the step S45.

一方、ステップS47の判定結果が、EEPROM132a1〜132b1が正常であるときには、ステップS58に移行して、自己用ウォッチドッグタイマ101mが所定時間内にクリアコマンドが生成されずにタイムアップしたか否かを判定することによりメインMCU101が正常であるか否かを判定し、メインMCU101が異常であるときにはステップS59に移行して、前述したステップS42〜S44及びS46の処理と同様の処理を行って、初期データ判別フラグFTAの状態に応じて初期上書き禁止用EEPROM132a1又は初期上書き許容用EEPROM132a2にメインMCU101が異常であることを表すメインMCU異常コマンドを記憶する異常記憶処理を実行してから前記ステップS45に移行する。   On the other hand, if the determination result in step S47 is normal for the EEPROMs 132a1 to 132b1, the process proceeds to step S58 to determine whether the self-watchdog timer 101m has timed up without generating a clear command within a predetermined time. It is determined whether or not the main MCU 101 is normal. If the main MCU 101 is abnormal, the process proceeds to step S59, and the same processes as those in steps S42 to S44 and S46 described above are performed, Depending on the state of the data discrimination flag FTA, an abnormal storage process for storing a main MCU abnormality command indicating that the main MCU 101 is abnormal is executed in the initial overwriting prohibition EEPROM 132a1 or the initial overwriting permission EEPROM 132a2, and then the process proceeds to step S45. To do.

また、前記ステップS58の判定結果が、メインMCU101が正常であるときにはステップS60に移行して、サブ用ウォッチドッグタイマ101sが所定時間内にサブMCU102でクリアコマンドが生成されずにタイムアップしたか否かを判定することによりサブMCU102が正常であるか否かを判定し、サブMCU102が異常であるときにはステップS61に移行して、前述したステップS42〜S44及びS46の処理と同様の処理を行って、初期データ判別フラグFTAの状態に応じて初期上書き禁止用EEPROM132a1又は初期上書き許容用EEPROM132a2にサブMCU102が異常であることを表すサブMCU異常コマンドを記憶する異常記憶処理を実行してから前記ステップS45に移行する。   If the result of the determination in step S58 is that the main MCU 101 is normal, the process proceeds to step S60, and whether or not the sub watchdog timer 101s has timed up without generating a clear command in the sub MCU 102 within a predetermined time. It is determined whether or not the sub MCU 102 is normal. If the sub MCU 102 is abnormal, the process proceeds to step S61, and the same processes as those in steps S42 to S44 and S46 described above are performed. After executing the abnormal storage process for storing the sub MCU abnormal command indicating that the sub MCU 102 is abnormal in the initial overwriting prohibition EEPROM 132a1 or the initial overwriting permission EEPROM 132a2 in accordance with the state of the initial data determination flag FTA, step S45 is performed. Migrate to

さらに、前記ステップS60の判定結果が、サブMCU102が正常であるときには、ステップS62に移行して、温度センサ114で検出したMCU近傍温度が予め設定した正常温度範囲内である正常であるか否かを判定し、MCU近傍温度が正常温度範囲外であるときにはステップS63に移行して、前述したステップS42〜S44及びS46の処理と同様の処理を行って、初期データ判別フラグFTAの状態に応じて初期上書き禁止用EEPROM132a1又は初期上書き許容用EEPROM132a2に温度センサ114の検出温度を記憶する異常記憶処理を実行してから前記ステップS45に移行する。   Furthermore, when the determination result of step S60 is that the sub MCU 102 is normal, the process proceeds to step S62, and whether or not the MCU vicinity temperature detected by the temperature sensor 114 is normal within a preset normal temperature range. If the temperature near the MCU is outside the normal temperature range, the process proceeds to step S63, and the same processes as the processes of steps S42 to S44 and S46 described above are performed, according to the state of the initial data determination flag FTA. After executing the abnormal storage process for storing the temperature detected by the temperature sensor 114 in the initial overwriting prohibition EEPROM 132a1 or the initial overwriting permission EEPROM 132a2, the process proceeds to step S45.

さらにまた、前記ステップS62の判定結果が、MCU近傍温度が正常温度範囲内でなって正常であるときにはステップS64に移行して、メイントルクセンサ3m及びサブトルクセンサ3sのトルク検出値Tm及びTsとセンサ電圧監視部3wから出力される電圧異常検出信号SAを読込んでからステップS65に移行する。
このステップS65では、トルク検出値Tm及びTsに基づいて下記(1)式の演算を行ってトルク偏差ΔTを算出する。
ΔT=|Tm−Ts| …………(1)
Furthermore, when the determination result of the step S62 is normal when the temperature near the MCU is within the normal temperature range, the process proceeds to step S64, where the torque detection values Tm and Ts of the main torque sensor 3m and the sub torque sensor 3s are detected. After reading the voltage abnormality detection signal SA output from the sensor voltage monitoring unit 3w, the process proceeds to step S65.
In step S65, the torque deviation ΔT is calculated by performing the calculation of the following equation (1) based on the detected torque values Tm and Ts.
ΔT = | Tm−Ts | (1)

次いで、ステップS66に移行して、算出したトルク偏差ΔTが予め設定した設定値ΔTs以下である正常状態であるか否かを判定し、ΔT≦ΔTsであって正常状態であるときにはステップS67に移行して、後述するトルク異常検出中フラグFTを"0"にリセットし、次いでステップS68に移行してRAM131に格納されている時系列データを消去してから後述するステップS70に移行し、ΔT>ΔTsであって異常状態であるときにはステップS69に移行して、設定された検出期間及び確定期間を設定してトルクセンサ3の異常を検出する図9に示すトルクセンサ異常検出記憶処理を行ってから前記ステップS45に移行する。   Next, the process proceeds to step S66, where it is determined whether or not the calculated torque deviation ΔT is a normal state that is equal to or smaller than a preset set value ΔTs. If ΔT ≦ ΔTs and the normal state is satisfied, the process proceeds to step S67. Then, a torque abnormality detection flag FT, which will be described later, is reset to “0”, and then the process proceeds to step S68 to erase the time series data stored in the RAM 131, and then the process proceeds to step S70 described later, and ΔT> When ΔTs is in an abnormal state, the process proceeds to step S69, and after performing the torque sensor abnormality detection storage process shown in FIG. 9 for detecting the abnormality of the torque sensor 3 by setting the set detection period and fixed period. Control goes to step S45.

ステップS70では、トルクセンサ電源監視部3wから入力される電圧異常検出信号SAを読込み、これが論理値"0"である正常であるか否かを判定し、電圧異常検出信号SAが論理値"1"であるときにはステップS71に移行して、前述したステップS42〜S44及びS46の処理と同様の処理を行って、初期データ判別フラグFTAの状態に応じて初期上書き禁止用EEPROM132a1又は初期上書き許容用EEPROM132a2にトルクセンサ電源が異常であることを表すトルクセンサ電源異常コマンドを記憶する異常記憶処理を実行してから前記ステップS45に移行する。   In step S70, the voltage abnormality detection signal SA input from the torque sensor power supply monitoring unit 3w is read to determine whether or not the voltage abnormality detection signal SA is a logical value “0”, and the voltage abnormality detection signal SA is a logical value “1”. If "", the process proceeds to step S71, and the same processes as the processes of steps S42 to S44 and S46 described above are performed, and the initial overwrite prohibition EEPROM 132a1 or the initial overwrite permission EEPROM 132a2 depending on the state of the initial data determination flag FTA. After executing an abnormality storage process for storing a torque sensor power supply abnormality command indicating that the torque sensor power supply is abnormal, the process proceeds to step S45.

さらに、前記ステップS70の判定結果が、トルクセンサ電源が正常であるときには、ステップS72に移行して、バッテリ電圧Vbが予め設定された正常電圧範囲外である状態を所定時間継続していない正常であるか否か判定し、バッテリ電圧Vbが正常電圧範囲外であるときには前述したステップS42〜S44及びS46の処理と同様の処理を行って、初期データ判別フラグFTAの状態に応じて初期上書き禁止用EEPROM132a1又は初期上書き許容用EEPROM132a2にバッテリ電圧Vbを記憶する異常記憶処理を実行してから前記ステップS45に移行する。   Furthermore, when the determination result of step S70 indicates that the torque sensor power supply is normal, the process proceeds to step S72, where the state in which the battery voltage Vb is outside the preset normal voltage range has not been continued for a predetermined time. When the battery voltage Vb is out of the normal voltage range, the same processing as the processing of steps S42 to S44 and S46 described above is performed, and initial overwriting prohibition is performed according to the state of the initial data determination flag FTA. After executing the abnormal storage process for storing the battery voltage Vb in the EEPROM 132a1 or the initial overwriting permission EEPROM 132a2, the process proceeds to step S45.

前記ステップS69のトルクセンサ異常検出記憶処理は、図9に示すように、先ず、ステップS691で、トルク異常検出中フラグFTが"0"にリセットされているか否かを判定し、これが"0"にリセットされているときにはステップS692に移行して、検出期間継続カウント値N1を"0"にクリアすると共に、検出期間中であるか確定期間中であることを表す期間状態フラグFSを検出期間を表す"0"にリセットしてからステップS693に移行して、トルク異常検出中フラグFTを"1"にセットしてから前記ステップS45に移行する。   In the torque sensor abnormality detection storage process in step S69, as shown in FIG. 9, first, in step S691, it is determined whether or not the torque abnormality detection flag FT is reset to “0”. When the period is reset to step S692, the detection period continuation count value N1 is cleared to "0", and the period state flag FS indicating that the period is in the detection period or the determination period is set in the detection period. The process proceeds to step S693 after resetting to "0", and the torque abnormality detecting flag FT is set to "1", and then the process proceeds to step S45.

一方、ステップS691の判定結果が、トルク異常検出中フラグFTが"1"にセットされているときにはステップS694に移行して、期間状態フラグFSが"1"にセットされているか否かを判定し、これが"0"にリセットされているときには検出期間中であると判断してステップS695に移行する。
このステップS695では、現在の検出期間継続カウント値N1に"1"をインクリメントして新たな検出期間継続カウント値N1を算出してからステップS696に移行し、検出期間継続カウント値N1が検出期間の終了を表す設定値N1sに達したか否かを判定し、N1<N1sであるときには検出期間中であるものと判断してステップS697に移行して、メイントルク検出値Tm、サブトルク検出値Ts、モータ電流検出値IMD及び車速検出値Vを時系列データとしてRAM131に一時記憶してから前記ステップS45に移行する。
On the other hand, if the determination result in step S691 is that the torque abnormality detection flag FT is set to “1”, the process proceeds to step S694 to determine whether or not the period state flag FS is set to “1”. When this is reset to “0”, it is determined that it is in the detection period, and the process proceeds to step S695.
In this step S695, "1" is incremented to the current detection period continuation count value N1 to calculate a new detection period continuation count value N1, and then the process proceeds to step S696, where the detection period continuation count value N1 is the detection period. It is determined whether or not the set value N1s representing the end has been reached. If N1 <N1s, it is determined that the detection period is in progress, and the process proceeds to step S697, where the main torque detection value Tm, the sub torque detection value Ts, migrating motor current detection value I MD and the vehicle speed detection value V from the temporarily stored in the RAM131 as time-series data in the step S45.

また、ステップS696の判定結果がN1≧N1sであるときには検出期間の終了時点に達してトルクセンサ3が異常であること検出してステップS698に移行して、期間状態フラグFSを"1"にセットしてからステップS699に移行し、確定期間継続カウント値N2を"0"にクリアしてから前記ステップS697に移行する。
一方、前記ステップS684の判定結果が、期間状態フラグFSが"1"にセットされているものであるときにはステップS700に移行して、現在の確定期間継続カウント値N2に"1"をインクリメントして新たな確定期間継続カウント値N2を算出してからステップS701に移行する。
When the determination result in step S696 is N1 ≧ N1s, it is detected that the torque sensor 3 is abnormal because the end of the detection period is reached, the process proceeds to step S698, and the period state flag FS is set to “1”. Then, the process proceeds to step S699, and after the confirmation period continuation count value N2 is cleared to “0”, the process proceeds to step S697.
On the other hand, when the determination result of step S684 is that the period state flag FS is set to “1”, the process proceeds to step S700, and “1” is incremented to the current fixed period continuation count value N2. After calculating a new fixed period continuation count value N2, the process proceeds to step S701.

このステップS701では、ステップS700で算出した確定期間継続カウント値N2が確定期間の終了を表す設定値N2sに達したか否かを判定し、N2<N2sであるときには確定期間が終了していないものと判断して前記ステップS697に移行し、N2≧N2sであるときには確定期間が終了してトルクセンサ3の異常が確定したものと判断してステップS702に移行し、上書き禁止用EEPROM132a1の上書き禁止記憶領域MA1に最初の初期異常解析データが記憶されているか否かを表す初期データ判別フラグFTAが最初の初期異常解析データ記憶されていることを表す"1"にセットされているか否かを判定し、初期データ判別フラグFTAが"0"にリセットされているときには、上書き記憶領域MA1に最初の初期異常解析データが記憶されていないものと判断して、ステップS703に移行する。   In this step S701, it is determined whether or not the fixed period continuation count value N2 calculated in step S700 has reached a set value N2s representing the end of the fixed period. If N2 <N2s, the fixed period has not ended. The process proceeds to step S697, and when N2 ≧ N2s, it is determined that the determination period has ended and the abnormality of the torque sensor 3 has been determined, the process proceeds to step S702, and the overwrite prohibition memory of the overwrite prohibition EEPROM 132a1 is determined. It is determined whether or not the initial data determination flag FTA indicating whether or not the first initial abnormality analysis data is stored in the area MA1 is set to “1” indicating that the first initial abnormality analysis data is stored. When the initial data discriminating flag FTA is reset to “0”, the initial initial discrepancy is stored in the overwrite storage area MA1. It is determined that the normal analysis data is not stored, and the process proceeds to step S703.

このステップS703では、RAM131に記憶されているメイントルク検出値Tm及びサブトルク検出値Tsの時系列データを上書き禁止記憶領域MA1に書込み、次いでステップS704に移行し、RAM131に記憶されている時系列データを消去し、次いでステップS705に移行して、初期データ判別フラグFTAを"1"にセットしてから前記ステップS45に移行する。   In this step S703, the time series data of the main torque detection value Tm and the sub torque detection value Ts stored in the RAM 131 is written into the overwrite prohibition storage area MA1, and then the process proceeds to step S704, where the time series data stored in the RAM 131 is stored. Then, the process proceeds to step S705, the initial data determination flag FTA is set to "1", and then the process proceeds to step S45.

また、前記ステップS702の判定結果が、初期データ判別フラグFTAが"1"にセットされているときには、ステップS706に移行して、RAM131に記憶されているメイントルク検出値Tm及びサブトルク検出値Tsの時系列データを上書き許容用EEPROM132a2に形成した上書き許容記憶領域MA2に記憶してからステップS707に移行し、RAM131に格納されている時系列データを消去してから前記ステップS45に移行する。   When the initial data determination flag FTA is set to “1” as a result of determination in step S702, the process proceeds to step S706, where the main torque detection value Tm and the sub torque detection value Ts stored in the RAM 131 are set. After the time series data is stored in the overwrite-allowable storage area MA2 formed in the overwrite-allowable EEPROM 132a2, the process proceeds to step S707, and the time-series data stored in the RAM 131 is erased, and then the process proceeds to step S45.

また、図8のステップS73の異常検出記憶処理でもバッテリ電圧Vbについて上記ステップS691〜S707と同様の処理を行って、バッテリ電圧Vbを検出期間及び確定期間で時系列データをRAM131に記憶し、バッテリ電圧異常が確定したときにRAM131に記憶されているバッテリ電圧の時系列データを初期データ判別フラグFTAの状態に応じて上書き禁止用EEPROM132a1又は上書き許容用EEPROM132a2に記憶する。   Also, in the abnormality detection storage process of step S73 of FIG. 8, the battery voltage Vb is processed in the same manner as the above steps S691 to S707, and the battery voltage Vb is stored in the RAM 131 in the detection period and the determination period. When the voltage abnormality is determined, the time series data of the battery voltage stored in the RAM 131 is stored in the overwrite prohibition EEPROM 132a1 or the overwrite permission EEPROM 132a2 according to the state of the initial data determination flag FTA.

また、常時異常検出処理は、図10に示すように、先ず、ステップS81で、EEPROM132a1〜132b2の書込み時に書込みと読込みのベリファイを行って、両者が一致する正常であるか否かを検出することにより、EEPROM132a1〜132b2が正常であるか否かを判定し、EEPROM132a1〜132b2の何れかが異常であるときにはステップS82に移行して、初期データ判別フラグFTBが"1"にセットされているか否かを判定し、これが"0"にセットされているときには、ステップS83に移行して、異常となったEEPROMが常時異常上書き禁止用EEPROM132b1であるか否かを判定し、常時異常上書き禁止用EEPROM132b1が正常であるときには、ステップS85に移行して、異常となったEEPROM132a2,132b1及び132b2の何れかが異常であることを表すEEPROM異常コマンドを常時異常上書き禁止用EEPROM132b1に記憶してからステップS85に移行して、初期データ判別フラグFTBを"1"にセットしてからタイマ割込処理を終了して所定のメインプログラムに復帰し、常時異常上書き禁止用EEPROM132b1が異常であるときにはステップS86に移行して、常時異常上書き許容用EEPROM132b2に常時異常上書き禁止用EEPROM132b1が異常であることを表すEEPROM異常コマンドを記憶してからステップS87に移行して、異常警報信号を警報回路133に出力してからタイマ割込処理を終了して所定のメインプログラムに復帰する。   As shown in FIG. 10, in the normal abnormality detection process, first, in step S81, verification of writing and reading is performed at the time of writing to the EEPROMs 132a1 to 132b2, and it is detected whether or not both are normal. Thus, it is determined whether or not the EEPROMs 132a1 to 132b2 are normal. If any of the EEPROMs 132a1 to 132b2 is abnormal, the process proceeds to step S82, and whether or not the initial data determination flag FTB is set to “1”. When this is set to "0", the process proceeds to step S83, where it is determined whether the abnormal EEPROM is the always abnormal overwrite prohibiting EEPROM 132b1, and the always abnormal overwrite prohibiting EEPROM 132b1 is If it is normal, the process proceeds to step S85, where the abnormality The EEPROM abnormal command indicating that one of the EEPROMs 132a2, 132b1 and 132b2 is abnormal is stored in the abnormal overwriting prohibiting EEPROM 132b1, and then the process proceeds to step S85, and the initial data determination flag FTB is set to "1". After setting, the timer interrupt process is terminated and the program returns to the predetermined main program. When the abnormal overwriting prohibition EEPROM 132b1 is abnormal, the process proceeds to step S86, and the normal abnormal overwriting allowance EEPROM 132b2 is always used for prohibiting abnormal overwriting. After storing the EEPROM abnormality command indicating that the EEPROM 132b1 is abnormal, the process proceeds to step S87, the abnormality alarm signal is output to the alarm circuit 133, the timer interruption process is terminated, and the process returns to the predetermined main program. .

また、ステップS82の判定結果が、初期データ判別フラグFTBが"1"にセットされているときには、ステップS88に移行して、異常となったEEPROMが常時異常上書き許容用EEPROM132b2であるか否かを判定し、常時異常上書き許容用EEPROM132b2ではないときにはステップS89に移行して、異常となったEEPROMを表すEEPROM異常コマンドを常時異常上書き許容用EEPROM132b2に記憶してからタイマ割込処理を終了して所定のメインプログラムに復帰し、常時異常上書き許容用EEPROM132b2が異常であるときにはステップS90に移行して、初期異常上書き許容用EEPROM132a2に常時異常上書き許容用EEPROM132b2の異常を表すEEPROM異常コマンドを記憶してからステップS91に移行して、異常警報信号を警報回路133に出力してからタイマ割込処理を終了して所定のメインプログラムに復帰する。   If the initial data determination flag FTB is set to "1" as a result of determination in step S82, the process proceeds to step S88, and it is determined whether or not the abnormal EEPROM is always an abnormal overwriting allowance EEPROM 132b2. If it is determined that the EEPROM is not always overwritable overwriting EEPROM 132b2, the process proceeds to step S89, an EEPROM overwhelming command indicating the abnormal EEPROM is stored in the overwhelming overwriting overwhelming EEPROM 132b2, and the timer interrupt process is terminated and predetermined. When the normal overwriting allowance EEPROM 132b2 is abnormal, the process proceeds to step S90, and the initial abnormal overwriting allowance EEPROM 132a2 is transferred to the initial abnormal overwriting allowance EEPROM 132b2. Shifts from stores command in step S91, the From and outputs an abnormality warning signal to the alarm circuit 133 to end the timer interrupt processing returns to the predetermined main program.

一方、ステップS81の判定結果が、EEPROM132a1〜132b1が正常であるときには、ステップS92に移行して、自己用ウォッチドッグタイマ101mが所定時間内にクリアコマンドが生成されずにタイムアップしたか否かを判定することによりメインMCU101が正常であるか否かを判定し、メインMCU101が異常であるときにはステップS93に移行して、前述した図8に示す初期異常検出処理におけるステップS42〜S44及びS46の処理と同様の処理を行って、初期データ判別フラグFTBの状態に応じて常時上書き禁止用EEPROM132b1又は常時上書き許容用EEPROM132b2にメインMCU101が異常であることを表すメインMCU異常コマンドを記憶する異常記憶処理を実行してからタイマ割込処理を終了して所定のメインプログラムに復帰する。   On the other hand, if the determination result in step S81 is that the EEPROMs 132a1 to 132b1 are normal, the process proceeds to step S92 to determine whether or not the self watchdog timer 101m has timed out without generating a clear command within a predetermined time. It is determined whether or not the main MCU 101 is normal. If the main MCU 101 is abnormal, the process proceeds to step S93, and the processes of steps S42 to S44 and S46 in the initial abnormality detection process shown in FIG. The abnormality storage process for storing the main MCU abnormality command indicating that the main MCU 101 is abnormal in the always overwriting prohibiting EEPROM 132b1 or the always overwriting permissible EEPROM 132b2 according to the state of the initial data determination flag FTB is performed. Do you run To end the timer interrupt processing returns to the predetermined main program.

また、前記ステップS92の判定結果が、メインMCU101が正常であるときにはステップS94に移行して、サブ用ウォッチドッグタイマ101sが所定時間内にサブMCU102でクリアコマンドが生成されずにタイムアップしたか否かを判定することによりサブMCU102が正常であるか否かを判定し、サブMCU102が異常であるときにはステップS103に移行して、前述した図8のステップS42〜S44及びS46の処理と同様の処理を行って、初期データ判別フラグFTBの状態に応じて常時上書き禁止用EEPROM132b1又は常時上書き許容用EEPROM132b2にサブMCU102が異常であることを表すサブMCU異常コマンドを記憶する異常記憶処理を実行してからタイマ割込処理を終了して所定のメインプログラムに復帰する。   If the result of determination in step S92 is that the main MCU 101 is normal, the process proceeds to step S94, and whether or not the sub watchdog timer 101s has timed up without generating a clear command in the sub MCU 102 within a predetermined time. Whether or not the sub MCU 102 is normal is determined. When the sub MCU 102 is abnormal, the process proceeds to step S103, and the same process as the process of steps S42 to S44 and S46 of FIG. After executing the abnormal storage processing for storing the sub MCU abnormality command indicating that the sub MCU 102 is abnormal in the always overwriting prohibition EEPROM 132b1 or the always overwriting permissible EEPROM 132b2 according to the state of the initial data determination flag FTB. End timer interrupt processing To return to the main program.

さらに、前記ステップS94の判定結果が、サブMCU102が正常であるときには、ステップS96に移行して、メインMCU101及びサブMCU102で演算した操舵補助補償値IM *′が略一致するか否かを判定して両MCU101及び102の指令値演算が正常であるか否かを判定し、両者の操舵補助補償値IM *′が所定値以上相違するときにはメインMCU101の指令値演算が異常であると判断してステップS97に移行し、前述した図8のステップS42〜S44及びS46の処理と同様の処理を行って、初期データ判別フラグFTBの状態に応じて常時上書き禁止用EEPROM132b1又は常時上書き許容用EEPROM132b2にメインMCU101の指令値演算が異常であることを表すメインMCU指令値演算異常コマンドを記憶する異常記憶処理を実行してからタイマ割込処理を終了して所定のメインプログラムに復帰する。 Further, when the determination result of step S94 is that the sub MCU 102 is normal, the process proceeds to step S96, where it is determined whether or not the steering assist compensation value I M * ′ calculated by the main MCU 101 and the sub MCU 102 substantially matches. Then, it is determined whether or not the command value calculation of both MCUs 101 and 102 is normal. When the steering assist compensation value I M * ′ of the both is different by a predetermined value or more, it is determined that the command value calculation of the main MCU 101 is abnormal. Then, the process proceeds to step S97, and the same processes as the processes of steps S42 to S44 and S46 of FIG. 8 described above are performed, and the always overwrite prohibiting EEPROM 132b1 or the always overwrite permitting EEPROM 132b2 depending on the state of the initial data discrimination flag FTB. The main MCU command value calculation indicating that the command value calculation of the main MCU 101 is abnormal After executing the abnormal storage process for storing the abnormal command, the timer interrupt process is terminated and the process returns to the predetermined main program.

さらに、前記ステップS96の判定結果が、指令値演算が正常であるときには、ステップS98に移行して、モータ電流検出回路112で検出したモータ電流IMDが所定値異常を所定時間継続していないか否かを検出して、モータ電流IMDが正常であるか否かを判定し、モータ電流IMDが過電流異常であるときにはステップS99に移行して、前述した図8のステップS42〜S44及びS46の処理と同様の処理を行って、初期データ判別フラグFTBの状態に応じて常時上書き禁止用EEPROM132b1又は常時上書き許容用EEPROM132b2に異常となったモータ電流IMDの値を記憶する異常記憶処理を実行してからタイマ割込処理を終了して所定のメインプログラムに復帰する。 Furthermore, the determination of the step S96 is, when the command value computation is normal, the process proceeds to step S98, whether the motor current I MD detected by the motor current detecting circuit 112 is not continued for the predetermined time period a predetermined abnormalities by detecting whether the motor current I MD is equal to or normal, when the motor current I MD is overcurrent abnormality proceeds to step S99, steps S42~S44 and of FIG. 8 described above performing S46 in the process and the same processing, the abnormality storage process of storing the value of the motor current I MD, which becomes abnormal always overwrite prohibition EEPROM132b1 or constantly overwrite allowable for EEPROM132b2 in accordance with the state of the initial data discriminating flag FTB After execution, the timer interrupt process is terminated and the process returns to a predetermined main program.

さらにまた、上記ステップS98の判定結果が、モータ電流IMDが正常であるときにはステップS100に移行して、モータ駆動回路110の駆動電源異常、モータ中性点異常、位置信号検出用電源異常、位置検出用ホールIC異常等が発生していないモータ制御系が正常であるか否かを判定し、モータ制御系に異常が発生している場合には、ステップS101に移行して、前述した図8のステップS42〜S44及びS46の処理と同様の処理を行って、初期データ判別フラグFTBの状態に応じて常時上書き禁止用EEPROM132b1又は常時上書き許容用EEPROM132b2に異常の原因を表す異常コマンドを記憶する異常記憶処理を実行してからタイマ割込処理を終了して所定のメインプログラムに復帰する。 Furthermore, when the determination result in step S98 is that the motor current IMD is normal, the process proceeds to step S100, where the drive power of the motor drive circuit 110 is abnormal, the motor neutral point is abnormal, the position signal detection power is abnormal, the position It is determined whether or not the motor control system in which the detection Hall IC abnormality or the like has not occurred is normal. If an abnormality has occurred in the motor control system, the process proceeds to step S101, and the above-described FIG. The processing similar to the processing in steps S42 to S44 and S46 is performed, and an abnormal command indicating the cause of the abnormality is stored in the constantly overwriting prohibiting EEPROM 132b1 or the constantly overwriting permitting EEPROM 132b2 according to the state of the initial data determination flag FTB. After executing the storage process, the timer interrupt process is terminated and the process returns to a predetermined main program.

なおさらに、ステップS100の判定結果が、モータ制御系が正常であるときには、ステップS102に移行し、温度センサ114で検出したMCU近傍温度が予め設定した正常温度範囲内である正常であるか否かを判定し、MCU近傍温度が正常温度範囲外であるときにはステップS103に移行して、前述した図8のステップS42〜S44及びS46の処理と同様の処理を行って、初期データ判別フラグFTBの状態に応じて常時上書き禁止用EEPROM132b1又は常時上書き許容用EEPROM132b2に温度センサ114の検出温度を記憶する異常記憶処理を実行してからタイマ割込処理を終了して所定のメインプログラムに復帰する。   Still further, if the determination result in step S100 is normal, the control proceeds to step S102, and whether or not the temperature near the MCU detected by the temperature sensor 114 is normal within a preset normal temperature range. When the temperature near the MCU is outside the normal temperature range, the process proceeds to step S103, and the same processes as the processes of steps S42 to S44 and S46 of FIG. 8 described above are performed, and the state of the initial data determination flag FTB is determined. In response to this, an abnormal storage process for storing the temperature detected by the temperature sensor 114 is executed in the always overwrite prohibiting EEPROM 132b1 or the always overwrite permitting EEPROM 132b2, and then the timer interrupt process is terminated to return to a predetermined main program.

また、前記102の判定結果が、MCU近傍温度が正常温度範囲内でなって正常であるときにはステップS104に移行して、メイントルクセンサ3m及びサブトルクセンサ3sのトルク検出値Tm及びTsとセンサ電圧監視部3wから出力される電圧異常検出信号SAを読込んでからステップS105に移行する。
このステップS105では、メイントルクセンサ3mで検出したメイントルク検出値Tmが予め設定された上限値Tmsu〜下限値Tmslの正常範囲内であるか否かを判定し、正常範囲外であるときには、ステップS106に移行して、前述した図9の異常検出記憶処理と同様に、検出期間及び確定期間を設定すると共に、RAM131にメイントルク検出値Tmを時系列データとして記憶し、さらにトルク異常検出中フラグFTをトルク異常検出中フラグFTmに置換すると共に、初期データ判別フラグFTAを初期データ判別フラグFTBに置換した異常検出記憶処理を行ってからタイマ割込処理を終了してメインプログラムに復帰する。
On the other hand, if the determination result of 102 is normal when the temperature near the MCU is within the normal temperature range, the process proceeds to step S104, and the torque detection values Tm and Ts of the main torque sensor 3m and the sub torque sensor 3s and the sensor voltage are transferred. After reading the voltage abnormality detection signal SA output from the monitoring unit 3w, the process proceeds to step S105.
In this step S105, it is determined whether or not the main torque detection value Tm detected by the main torque sensor 3m is within the normal range of the preset upper limit value Tmsu to the lower limit value Tmsl. In S106, the detection period and the confirmation period are set, and the main torque detection value Tm is stored as time-series data in the RAM 131 as in the abnormality detection storage process of FIG. After replacing the FT with a torque abnormality detection flag FTm and performing the abnormality detection storing process with the initial data determination flag FTA replaced with the initial data determination flag FTB, the timer interruption process is terminated and the process returns to the main program.

さらに、ステップS105の判定結果が、メイントルクセンサ3mが正常であるときには、ステップS107に移行して、トルク異常検出中フラグFTmを"0"にリセットし、次いでステップS108に移行して、RAM131に記憶されている時系列データを消去してからステップS109に移行する。
このステップS109では、サブトルクセンサ3sで検出したメイントルク検出値Tsが予め設定された上限値Tssu〜下限値Tsslの正常範囲内であるか否かを判定し、正常範囲外であるときには、ステップS110に移行して、前述した図9の異常検出記憶処理と同様に、検出期間及び確定期間を設定すると共に、RAM131にサブトルク検出値Tsを時系列データとして記憶し、さらにトルク異常検出中フラグFTをトルク異常検出中フラグFTsに置換すると共に、初期データ判別フラグFTAを初期データ判別フラグFTBに置換した異常検出記憶処理を行ってからタイマ割込処理を終了してメインプログラムに復帰する。
Further, when the determination result of step S105 is that the main torque sensor 3m is normal, the process proceeds to step S107, the torque abnormality detecting flag FTm is reset to “0”, then the process proceeds to step S108, and the RAM 131 is stored. After erasing the stored time series data, the process proceeds to step S109.
In this step S109, it is determined whether or not the main torque detection value Ts detected by the sub torque sensor 3s is within a normal range of the preset upper limit value Tssu to the lower limit value Tssl. In S110, similarly to the above-described abnormality detection storage process of FIG. 9, the detection period and the confirmation period are set, the sub torque detection value Ts is stored in the RAM 131 as time series data, and the torque abnormality detection flag FT is further stored. Is replaced with the torque abnormality detection flag FTs, and the abnormality detection storage process is performed in which the initial data determination flag FTA is replaced with the initial data determination flag FTB, and then the timer interruption process is terminated and the process returns to the main program.

また、ステップS109の判定結果が、サブトルクセンサ3sが正常であるときには、ステップS111に移行して、トルク異常検出中フラグFTsを"0"にリセットし、次いでステップS112に移行して、RAM131に記憶されている時系列データを消去してからステップS113に移行する。
このステップS113では、トルク検出値Tm及びTsに基づいて前記(1)式の演算を行ってトルク偏差ΔTを算出し、次いでステップS114に移行して、算出したトルク偏差ΔTが予め設定した設定値ΔTs以下である正常状態であるか否かを判定し、ΔT>ΔTsであって異常状態であるときにはステップS115に移行して、前述した図9の異常検出記憶処理と同様の検出期間及び確定期間を設定すると共に、初期データ判別フラグFTAを初期データ判別フラグFTBに置換したトルクセンサ異常検出記憶処理を行ってからタイマ割込処理を終了して所定のメインプログラムに復帰し、ΔT≦ΔTsであって正常状態であるときにはステップS116に移行して、トルク異常検出中フラグFTを"0"にリセットし、次いでステップS117に移行してRAM131に格納されている時系列データを消去してから後述するステップS118に移行する。
If the result of determination in step S109 is that the sub torque sensor 3s is normal, the process proceeds to step S111, the torque abnormality detection flag FTs is reset to “0”, then the process proceeds to step S112, and the RAM 131 is stored. After erasing the stored time series data, the process proceeds to step S113.
In this step S113, the torque deviation ΔT is calculated by performing the calculation of the equation (1) based on the torque detection values Tm and Ts, and then the process proceeds to step S114, where the calculated torque deviation ΔT is a preset set value. It is determined whether or not the normal state is equal to or less than ΔTs. When ΔT> ΔTs and the abnormal state is detected, the process proceeds to step S115, and the detection period and the determination period are the same as those in the abnormality detection storage process of FIG. Is set, the initial data determination flag FTA is replaced with the initial data determination flag FTB, the torque sensor abnormality detection storage process is performed, the timer interrupt process is terminated, and the process returns to the predetermined main program. ΔT ≦ ΔTs When it is normal, the routine proceeds to step S116, where the torque abnormality detecting flag FT is reset to “0”, and then step S1. The process proceeds to 17 to erase the time series data stored in the RAM 131, and then the process proceeds to step S118 described later.

このステップS118では、トルクセンサ電源監視部3wから入力される電圧異常検出信号SAを読込み、これが論理値"0"である正常であるか否かを判定し、電圧異常検出信号SAが論理値"1"であるときにはステップS119に移行して、前述した図8のステップS42〜S44及びS46の処理と同様の処理を行って、初期データ判別フラグFTBの状態に応じて常時上書き禁止用EEPROM132b1又は常時上書き許容用EEPROM132b2にトルクセンサ電源が異常であることを表すトルクセンサ電源異常コマンドを記憶する異常記憶処理を実行してからタイマ割込処理を終了して所定のメインプログラムに復帰する。   In step S118, the voltage abnormality detection signal SA input from the torque sensor power supply monitoring unit 3w is read to determine whether or not the voltage abnormality detection signal SA is a logical value “0”, and the voltage abnormality detection signal SA is a logical value. When it is 1 ″, the process proceeds to step S119, and the same processing as the processing of steps S42 to S44 and S46 of FIG. 8 described above is performed, and the EEPROM 132b1 for always overwriting prohibition or the constant data depending on the state of the initial data discrimination flag FTB After executing an abnormal storage process for storing a torque sensor power supply abnormality command indicating that the torque sensor power supply is abnormal in the overwriting-permitted EEPROM 132b2, the timer interruption process is terminated and the process returns to a predetermined main program.

さらに、前記ステップS118の判定結果が、トルクセンサ電源が正常であるときには、ステップS120に移行して、バッテリ電圧Vbが予め設定された正常電圧範囲外を所定時間継続していない正常であるか否かを判定し、バッテリ電圧Vbが異常であるときには前述した図8のステップS42〜S44及びS46の処理と同様の処理を行って、初期データ判別フラグFTBの状態に応じて常時上書き禁止用EEPROM132b1又は常時上書き許容用EEPROM132b2にバッテリ電圧Vbを記憶する異常記憶処理を実行してからタイマ割込処理を終了して所定のメインプログラムに復帰する。   Furthermore, when the determination result of step S118 indicates that the torque sensor power supply is normal, the process proceeds to step S120, where it is normal whether the battery voltage Vb has not continued outside the preset normal voltage range for a predetermined time. When the battery voltage Vb is abnormal, the same processing as the processing of steps S42 to S44 and S46 of FIG. 8 described above is performed, and the overwriting prohibiting EEPROM 132b1 or the constantly overwriting prohibiting EEPROM 132b1 or After executing the abnormal storage process for storing the battery voltage Vb in the always overwritable EEPROM 132b2, the timer interrupt process is terminated and the process returns to a predetermined main program.

さらにまた、ステップS120の判定結果が、バッテリ電圧Vbが正常であるときにはステップS122に移行して、車速センサ17から車速異常信号が入力されているか否かによって車速センサ17が正常であるか否かを判定し、車速センサ17が異常であるときにはステップS123に移行して、サンプリング周期が100msで検出期間60secに設定され確定期間が省略された図9のステップS691〜ステップS699と同様の処理を行う異常検出記憶処理を行ってからタイマ割込処理を終了して所定のメインプログラムに復帰する。
なお、上記常時異常検出処理では、異常検出記憶処理を行う場合に、後の異常解析を容易とするために時系列データとしてメイントルク検出値Tm、サブトルク検出値Ts、モータ駆動信号IM 、車速検出値Vを組として記憶する。
Furthermore, when the determination result of step S120 is that the battery voltage Vb is normal, the process proceeds to step S122, and whether or not the vehicle speed sensor 17 is normal depending on whether or not a vehicle speed abnormality signal is input from the vehicle speed sensor 17. When the vehicle speed sensor 17 is abnormal, the process proceeds to step S123, and processing similar to that in steps S691 to S699 in FIG. 9 is performed in which the sampling period is set to 100 ms, the detection period is set to 60 sec, and the determination period is omitted. After performing the abnormality detection storage process, the timer interrupt process is terminated and the process returns to a predetermined main program.
In the normal abnormality detection process, when the abnormality detection storage process is performed, the main torque detection value Tm, the sub-torque detection value Ts, the motor drive signal I M , the vehicle speed are used as time series data to facilitate later abnormality analysis. The detected value V is stored as a set.

この図5及び図7〜図10の処理において、図5の処理と操舵補助機構10とで操舵補助制御機構が構成され、S41、S47、S58、S60、S62、S64〜S66、S70、S72、S81、S92、S94、S96、S98、S100、S102、S104、S105、S109、S112、S114、S118、S120、S122の処理が異常検出手段に対応し、ステップS42〜S44、S48〜S57、S59、S61、S63〜S65、S67〜S69、S71、S73、図9の処理、S82〜S91、S93、S95、S97、S99、S101、S106〜S108、S110〜S112、S115、S119、S121、S123の処理が異常データ格納手段に対応している。   5 and 7 to 10, the steering assist control mechanism is configured by the process of FIG. 5 and the steering assist mechanism 10, and S41, S47, S58, S60, S62, S64 to S66, S70, S72, The processes of S81, S92, S94, S96, S98, S100, S102, S104, S105, S109, S112, S114, S118, S120, and S122 correspond to the abnormality detection means, and steps S42 to S44, S48 to S57, S59, S61, S63 to S65, S67 to S69, S71, S73, processing of FIG. 9, S82 to S91, S93, S95, S97, S99, S101, S106 to S108, S110 to S112, S115, S119, S121, S123 Corresponds to the abnormal data storage means.

次に、上記実施形態の動作を説明する。
今、製作工場で電動パワーステアリング装置の制御装置の組み付けが完了して出荷段階では、EEPROM132を構成する初期異常上書き禁止用EEPROM132a1、初期異常上書き許容用EEPROM132a2、及び常時異常上書き禁止用EEPROM132b1、常時異常上書き許容用EEPROM132b2には異常解析データが全く記録されていないクリア状態とすると共に、異常状態フラグAF、初期データ判別フラグFTA,FTB、トルク異常検出中フラグFT、期間状態フラグFS等の各種フラグを共に"0"にリセットしておく。
Next, the operation of the above embodiment will be described.
Now, after the assembly of the control device of the electric power steering device is completed at the manufacturing factory, the initial abnormality overwriting prohibition EEPROM 132a1, the initial abnormality overwriting permission EEPROM 132a2 and the constant abnormality overwriting prohibition EEPROM 132b1 constituting the EEPROM 132 are always abnormal. The overwriting-permitted EEPROM 132b2 is in a clear state in which no abnormality analysis data is recorded, and various flags such as an abnormal state flag AF, initial data determination flags FTA and FTB, a torque abnormality detecting flag FT, a period state flag FS, and the like are set. Both are reset to "0".

この出荷状態から車両の使用を開始するために、キースイッチをオン状態とすることにより、制御装置14に電源が投入されて、メインMCU101で図5及び図7〜図9の処理が実行開始され、同時にサブMCU102で図5の処理が実行開始される。 このとき、メインMCU101では、イグニッションスイッチがオン状態となったときに、電源投入時に先ず図8に示す初期異常検出処理が実行され、RAM131、EEPROM132a1,132a2及び132b1,132b2、メインMCU101、サブMCU102が正常であるか否かが判定されると共に、MCU近傍温度が正常であるか否か、トルクセンサ3mが正常であるか否かの初期診断が行われ、この初期診断で各部が正常であるときには、図5の操舵補助制御処理及び図10の常時異常検出処理が実行される。   In order to start using the vehicle from this shipping state, by turning on the key switch, the control device 14 is powered on, and the main MCU 101 starts executing the processes of FIGS. 5 and 7 to 9. At the same time, the processing of FIG. At this time, in the main MCU 101, when the ignition switch is turned on, the initial abnormality detection process shown in FIG. 8 is first executed when the power is turned on. The RAM 131, the EEPROMs 132a1, 132a2, and 132b1, 132b2, the main MCU 101, and the sub MCU 102 It is determined whether or not it is normal, and an initial diagnosis is performed as to whether or not the temperature near the MCU is normal and whether or not the torque sensor 3m is normal. When each part is normal in this initial diagnosis, The steering assist control process in FIG. 5 and the constant abnormality detection process in FIG. 10 are executed.

図5の操舵補助制御処理では、操舵トルクセンサ3で検出したトルク検出値Tから中立電圧V0 を減算して操舵トルクTsを算出し(ステップS2)、次いで車速センサ17から車速検出値Vを読込み(ステップS3)、操舵トルクTsと車速検出値Vとに基づいて図6に示す操舵補助指令値算出マップを参照して操舵補助指令値IM *を算出する(ステップS4)。 5, the steering torque Ts is calculated by subtracting the neutral voltage V 0 from the torque detection value T detected by the steering torque sensor 3 (step S2), and then the vehicle speed detection value V is obtained from the vehicle speed sensor 17. Based on the reading (step S3), the steering assist command value I M * is calculated with reference to the steering assist command value calculation map shown in FIG. 6 based on the steering torque Ts and the vehicle speed detection value V (step S4).

一方、モータ角速度推定回路20で推定したモータ角速度ωを読込み(ステップS5)、このモータ角速度ωに基づいて慣性補償制御用の慣性補償値Ii を算出すると共に、摩擦補償制御用の摩擦補償値If を算出し(ステップS6)、さらに操舵トルクTsを微分演算してセンタ応答性改善指令値Ir を算出し(ステップS7)、これら慣性補償値Ii、摩擦補償値If 及びセンタ応答性改善補償値Ir を操舵補助指令値IM *に加算して操舵補助補償値IM *′を算出する(ステップS8)。 On the other hand, the motor angular velocity ω estimated by the motor angular velocity estimation circuit 20 is read (step S5), the inertia compensation value I i for inertia compensation control is calculated based on the motor angular velocity ω, and the friction compensation value for friction compensation control is calculated. calculating the I f (step S6), and further the steering torque Ts differential operation to calculate a center response improving command value I r (step S7), and these inertia compensation value I i, friction compensation value I f and the center response The steering assist compensation value I M * ′ is calculated by adding the performance improvement compensation value I r to the steering assist command value I M * (step S8).

そして、操舵補助補償値IM *′を微分演算処理してフィードフォワード制御における微分補償制御用の微分値Idを算出し(ステップS9)、次いで、モータ電流補正値IMAを減算して電流偏差ΔIを算出し(ステップS10)、算出した電流偏差ΔIを比例演算処理して比例補償制御用の比例値ΔIpを算出すると共に、積分演算処理して積分補償制御用の積分値ΔIiを算出し(ステップS11,S12)、次いで、微分値Id、比例値ΔIp及び積分値ΔIiを加算してモータ駆動信号IM を算出する(ステップS13)。 The steering assist compensation value I M * ′ is differentiated to calculate a differential value Id for differential compensation control in feedforward control (step S9), and then the motor current correction value I MA is subtracted to obtain a current deviation. ΔI is calculated (step S10), the calculated current deviation ΔI is proportionally calculated to calculate a proportional value ΔIp for proportional compensation control, and the integral calculation processing is performed to calculate an integral value ΔIi for integral compensation control ( Next, the differential value Id, the proportional value ΔIp, and the integral value ΔIi are added to calculate the motor drive signal I M (step S13).

このとき、図7の異常検出処理で、操舵補助制御系で異常を検出しておらず、異常状態フラグAFが"0"にリセットされているものとすると、ステップS16に移行して、算出したモータ駆動信号IM をモータ駆動回路110に出力することにより、モータ駆動回路110から電動モータ13に駆動電流を供給して、この電動モータ13でステアリングホイール1に作用された操舵トルクに応じた操舵補助力を発生させ、これを減速ギヤ11を介して出力軸2bに伝達する。 At this time, if no abnormality is detected in the steering assist control system in the abnormality detection process of FIG. 7 and the abnormal state flag AF is reset to “0”, the process proceeds to step S16 and is calculated. By outputting the motor drive signal I M to the motor drive circuit 110, a drive current is supplied from the motor drive circuit 110 to the electric motor 13, and the steering according to the steering torque applied to the steering wheel 1 by the electric motor 13. An auxiliary force is generated and transmitted to the output shaft 2 b via the reduction gear 11.

このとき、車両が停車している状態でステアリングホイール1を操舵する所謂据え切り状態では、図6に示す操舵補助指令値算出マップの特性線の勾配が大きいことにより、小さい操舵トルクTsで大きな操舵補助指令値IM *を算出するので、電動モータ13で大きな操舵補助力を発生して軽い操舵を行うことができる。 一方、車両が発進して、所定車速以上となると、図6に示す操舵補助指令値算出マップの特性線の勾配が小さくなることにより、大きな操舵トルクTsでも小さな操舵補助指令値IM *を算出するので、電動モータ13で発生する操舵補助力が小さくなり、ステアリングホイール1の操舵が軽くなりすぎることを抑制して最適な操舵を行うことができる。 At this time, in a so-called stationary state in which the steering wheel 1 is steered while the vehicle is stopped, a large steering angle with a small steering torque Ts is obtained due to the large gradient of the characteristic line of the steering assist command value calculation map shown in FIG. Since the auxiliary command value I M * is calculated, a large steering assist force can be generated by the electric motor 13 to perform light steering. On the other hand, when the vehicle starts and exceeds the predetermined vehicle speed, the gradient of the characteristic line of the steering assist command value calculation map shown in FIG. 6 is reduced, so that a small steering assist command value I M * is calculated even with a large steering torque Ts. Therefore, the steering assist force generated by the electric motor 13 is reduced, and the steering of the steering wheel 1 can be suppressed from becoming too light and optimal steering can be performed.

一方、図10の常時異常検出処理では、所定時間毎のタイマ割込処理として実行されることにより、EEPROM132a1〜132b2、メインMCU101、サブMCU102が正常であるか否かを判定すると共に、メインMCU101での指令値演算が正常であるか否か、モータ電流IMが正常であるか否か、モータ制御系が正常であるか、MCU近傍温度が正常であるか否か、トルクセンサ3mが正常であるか否か、バッテリ電圧Vbが正常であるか否か、車速センサ17が正常であるか否かを常時判定する。 On the other hand, in the normal abnormality detection process of FIG. 10, it is determined whether or not the EEPROMs 132 a 1 to 132 b 2, the main MCU 101, and the sub MCU 102 are normal by being executed as a timer interrupt process at predetermined time intervals. Whether the command value calculation is normal, whether the motor current I M is normal, whether the motor control system is normal, whether the temperature near the MCU is normal, the torque sensor 3m is normal It is always determined whether or not the battery voltage Vb is normal and whether or not the vehicle speed sensor 17 is normal.

そして,常時異常検出処理で異常が検出されない場合には、図5の操舵補助制御処理の実行が継続される。
この操舵補助制御機構が正常な状態から例えば操舵トルクセンサ3のメイントルクセンサ3mに短絡や断線等が発生して、操舵トルク検出値Tが正常範囲外に逸脱する状態となると、図10の処理において、ステップS105からステップS106に移行して、図9と同様の処理を実行して、所定時間の検出期間内にメイントルク検出値Tm、サブトルク検出値Ts、モータ電流IM、車速Vが所定のサンプリング周期でRAM131に時系列データとして記憶され、その後所定時間の確定期間内で同様にメイントルク検出値Tm、サブトルク検出値Ts、モータ電流IM、車速Vが所定のサンプリング周期でRAM131に時系列データとして記憶される。
If no abnormality is detected in the normal abnormality detection process, the steering assist control process in FIG. 5 is continued.
When the steering assist control mechanism is in a normal state, for example, when a short circuit or disconnection occurs in the main torque sensor 3m of the steering torque sensor 3, the detected steering torque value T deviates from the normal range. in shifts from step S105 to step S106, and executes the same processing as FIG. 9, the main torque detection value within the detection period of a predetermined time Tm, the sub torque detection value Ts, the motor current I M, the vehicle speed V is a predetermined Are stored as time-series data in the RAM 131 at the sampling period, and the main torque detection value Tm, the sub-torque detection value Ts, the motor current I M , and the vehicle speed V are similarly stored in the RAM 131 at the predetermined sampling period. Stored as series data.

そして、確定期間が終了したときに、初めての異常であるときには初期データ判別フラグFTBが"0"にリセットされているので、図4に示すように時系列データが常時異常上書き禁止用EEPROM132b1に記憶され、最初に自己の異常又は他の異常が発生して初期データ判別フラグFTBが"1"にセットされているときには、時系列データを常時異常上書許容用EEPROM132b2に記憶する。   When the determination period ends, the initial data determination flag FTB is reset to “0” when it is the first abnormality, so that the time series data is always stored in the abnormal overwriting prohibition EEPROM 132b1 as shown in FIG. When the initial abnormality or other abnormality first occurs and the initial data determination flag FTB is set to “1”, the time series data is always stored in the abnormal overwriting allowance EEPROM 132b2.

同様に、常時異常検出処理の実行中に、サブトルクセンサ3sに正常範囲外となる異常が発生したり、メイントルク検出値Tm及びサブトルク検出値Tsの偏差ΔTが所定値ΔTsを超える異常が発生したりしたときには、上記と同様に図9の異常検出記憶処理を行って検出期間及び確定期間の時系列データが初期データ判別フラグFTBの状態に応じて常時異常上書き禁止用EEPROM132b1又は常時異常上書き許容用EEPROM132b2に記憶される。   Similarly, during execution of the normal abnormality detection process, an abnormality that falls outside the normal range occurs in the sub torque sensor 3s, or an abnormality in which the deviation ΔT between the main torque detection value Tm and the sub torque detection value Ts exceeds the predetermined value ΔTs. 9 is performed, the abnormality detection storing process of FIG. 9 is performed in the same manner as described above, and the time series data of the detection period and the confirmation period is always abnormal overwriting prohibition EEPROM 132b1 or always abnormal overwriting permitted depending on the state of the initial data determination flag FTB. Is stored in the EEPROM 132b2.

一方、常時異常検出処理中に、メインMCU101、サブMCU102、メインMCU101の指令値演算、モータ電流IM、モータ制御系、MCU近傍温度、バッテリ電圧Vbに異常が発生した場合には、その異常が発生した時点で、初期データ判別フラグFTBの状態に応じて発生した異常を表す異常コマンドが常時異常上書き禁止用EEPROM132a1又は常時異常上書き許容用EEPROM132b2に記憶される。 On the other hand, if an abnormality occurs in the command value calculation of the main MCU 101, sub MCU 102, main MCU 101, motor current I M , motor control system, MCU vicinity temperature, or battery voltage Vb during the normal abnormality detection process, the abnormality is detected. At the time of occurrence, an abnormal command indicating an abnormality that has occurred according to the state of the initial data determination flag FTB is stored in the always abnormal overwrite prohibiting EEPROM 132a1 or the always abnormal overwrite allowing EEPROM 132b2.

このように、常時異常検出処理では、出荷後に最初に発生した異常については常時異常上書き禁止用EEPROM132b1に時系列データ、異常コマンド、異常検出値の何れかで記憶され、その後の上書きが禁止されるので、操舵補助制御装置が作動状態で発生する最初の異常が確実に保持され、その後に発生する異常については上書き許容用EEPROM132b2に上書き記憶される。   As described above, in the always-abnormality detection process, the first abnormality that occurs after shipment is stored in the always-overwrite-inhibiting EEPROM 132b1 as time series data, an abnormality command, or an abnormality detection value, and subsequent overwriting is prohibited. Therefore, the first abnormality that occurs when the steering assist control device is in operation is reliably held, and the abnormality that occurs thereafter is overwritten and stored in the overwriting permission EEPROM 132b2.

このため、操舵補助制御装置に異常が発生した場合の解析を行う場合に、EEPROM132b1及び132b2に記憶されている異常解析用データを読出すことにより、最初の異常発生が何でるかを確実に把握することができると共に、その後の異常についても上書き記憶されているが他の異常が発生しているか否かを把握することができる。
同様にして、図8の初期異常検出処理で、最初に異常が発生したときには初期異常上書き禁止用EEPROM132a1に時系列データ、異常コマンド及び異常検出値の何れかが記憶され、2度目以降の異常が発生したときには初期異常上書き許容用EEPROM132a2に上書き記憶される。
Therefore, when performing the analysis of the case where abnormality occurs in the steering assist control, EEPROM132b1 and by reading the abnormality analysis data stored in 132b2, reliably Oh Luke what initial abnormality occurrence While being able to grasp, it is also possible to grasp whether or not other abnormality has occurred although subsequent abnormality is also overwritten and stored.
Similarly, in the initial abnormality detection process of FIG. 8, when an abnormality occurs for the first time, any of time-series data, abnormality command and abnormality detection value is stored in the initial abnormality overwriting prohibition EEPROM 132a1, and the abnormality after the second time is detected. When it occurs, it is overwritten and stored in the initial abnormal overwriting allowance EEPROM 132a2.

このため、操舵制御装置に電源が投入された初期状態で発生する異常を初期異常上書き禁止用EEPROM132a1及び初期異常上書き許容用EEPROM132a2に確実に記憶することができ、異常解析を正確に行うことができる。
このように、上記実施形態によると、初期異常検出処理及び常時異常検出処理の2つの異常検出処理で、異常を検出したときに個別の上書き禁止用EEPROM132a1,132a2及び132b1,132b2に時系列データ、異常コマンド、異常検出値の何れかを記憶するので、操舵補助制御装置の異常が初期状態に発生したものかその後の操舵補助装置の作動状態に発生したものかを正確に把握することができ、異常解析をより正確に行うことができる。
Therefore, the abnormality that occurs in the initial state when the power is turned on to the steering control device can be reliably stored in the initial abnormality overwriting prohibition EEPROM 132a1 and the initial abnormality overwriting allowance EEPROM 132a2, and the abnormality analysis can be performed accurately. .
As described above, according to the above-described embodiment, when the abnormality is detected by the two abnormality detection processes of the initial abnormality detection process and the normal abnormality detection process, the time-series data is stored in the individual overwrite prohibiting EEPROMs 132a1, 132a2, and 132b1, 132b2. Since either the abnormality command or the abnormality detection value is stored, it is possible to accurately grasp whether the abnormality of the steering assist control device has occurred in the initial state or the operation state of the steering assist device thereafter, Abnormality analysis can be performed more accurately.

しかも、ユーザーが操舵補助制御機構の異常を検知して、ディーラー等に修理を依頼した場合に、修理先で再度操舵補助制御処理を起動させて異常確認を行った場合に再度異常が発生した場合に、このときに収集される異常解析データは上書き許容用EEPROM132a2又は132b2に上書き記憶されることになり、上書き禁止用EEPROM132a1及び132b1に記憶されている初期異常解析データは上書きされることなく確実に保持される。   In addition, when the user detects an abnormality in the steering assist control mechanism and requests a repair from a dealer or the like, the abnormality occurs again when the steering assist control process is started again at the repair destination and the abnormality is confirmed. In addition, the abnormality analysis data collected at this time is overwritten and stored in the overwriting-permitted EEPROM 132a2 or 132b2, and the initial abnormality analysis data stored in the overwriting-prohibiting EEPROMs 132a1 and 132b1 is surely not overwritten. Retained.

なお、上記実施形態においては、上書き禁止用EEPROM132a1及び132b1と上書き許容用EEPROM132a2及び132b2とを夫々1つずつ設ける場合について説明したが、これに限定されるものではなく、各EEPROM132a1、132a2、132b1及び132b2を夫々複数個設けるようにしてもよく、各EEPROM132a1、132a2、132b1及び132b2は同数設ける場合に限らず、個別に任意の個数を設けるようにしてもよい。   In the above embodiment, the case where the overwrite prohibiting EEPROMs 132a1 and 132b1 and the overwrite permitting EEPROMs 132a2 and 132b2 are provided one by one has been described. However, the present invention is not limited to this. A plurality of 132b2 may be provided, and the number of EEPROMs 132a1, 132a2, 132b1, and 132b2 is not limited to the same number, and any number may be provided individually.

さらに、上記実施形態においては、上書き禁止用EEPROM132a1及び132b1については完全に上書きを禁止する場合について説明したが、これに限定されるものではなく、時系列データ以外の異常コマンド又は異常検出値を記憶する場合には、これらのデータ量が少ないので、上書きするデータ量を不揮発性メモリに蓄積する上書きデータ管理部を設け、この上書きデータ管理部で上書き禁止用EEPROM132a1及び132b1の記憶量が最大となるまでの間は記憶を継続するようにすることもできる。   Furthermore, in the above-described embodiment, the case where the overwrite prohibition EEPROM 132a1 and 132b1 is completely prohibited from being overwritten has been described. However, the present invention is not limited to this, and an abnormal command or abnormality detection value other than time series data is stored. In this case, since these data amounts are small, an overwrite data management unit for storing the data amount to be overwritten in the non-volatile memory is provided, and this overwrite data management unit maximizes the storage amount of the overwrite prohibiting EEPROMs 132a1 and 132b1. It is also possible to continue the memory until.

すなわち、図11に示すように、メインMCU101に新たにデータ管理用EEPROM132cを設けると共に、メインMCU101で、図12に示すように、上書き禁止用EEPROM132a1及び132b1に記憶するデータ量を管理するデータ書込管理処理を実行する。このデータ書込管理処理は、所定時間(例えば2msec)毎のタイマ割込処理として実行され、先ず、ステップS201で、上書き禁止用EEPROM132a1及び132b1へのデータ書込状態か否かを判定し、上書き禁止用EEPROM132a1及び132b1へのデータ書込状態ではないときにはそのままタイマ割込処理を終了して所定のメインプログラムに復帰する。ステップS201の判定結果が、上書き禁止用EEPROM132a1及び132b1へのデータ書込状態であるときにはステップS202に移行して、書込対象が上書き禁止用EEPROM132a1であるか否かを判定し、書込対象が上書き禁止用EEPROM132a1であるときにはステップS203に移行して、初期データ判別フラグFTAが“1”であるか否かを判定し、この初期データ判別フラグFTAが“0”であるときにはステップS204に移行して、新たに設けたデータ管理用EEPROMのEEPROM132a1用のデータ量記憶領域に記憶されているデータ量Da1を読込み、次いでステップS205に移行して、読込んだデータ量Da1にこれから書込むデータ量daを加算して新たなデータ量Da1(=Da1+da)を算出する。   That is, as shown in FIG. 11, a data management EEPROM 132c is newly provided in the main MCU 101, and the main MCU 101 performs data writing for managing the amount of data stored in the overwrite prohibition EEPROMs 132a1 and 132b1, as shown in FIG. Execute management processing. This data write management process is executed as a timer interrupt process every predetermined time (for example, 2 msec). First, in step S201, it is determined whether or not data is being written to the overwrite prohibiting EEPROMs 132a1 and 132b1, and overwriting is performed. When the data is not being written to the prohibition EEPROMs 132a1 and 132b1, the timer interrupt process is terminated as it is, and the process returns to a predetermined main program. When the determination result in step S201 is the data write state to the overwrite prohibition EEPROMs 132a1 and 132b1, the process proceeds to step S202 to determine whether or not the write target is the overwrite prohibition EEPROM 132a1. If it is the overwrite prohibiting EEPROM 132a1, the process proceeds to step S203 to determine whether or not the initial data determination flag FTA is “1”. If the initial data determination flag FTA is “0”, the process proceeds to step S204. Then, the data amount Da1 stored in the data amount storage area for the EEPROM 132a1 of the newly provided data management EEPROM is read, then the process proceeds to step S205, and the data amount da to be written to the read data amount Da1. To obtain a new data amount Da1 (= D 1 + da) is calculated.

次いで、ステップS206に移行して、算出したデータ量Da1が上書き禁止用EEPROM132a1の許容データ量Dasに達したか否かを判定し、Da1≦DasであるときにはステップS207に移行して、新たな異常データを上書き禁止用EEPROM132a1に書込んでからタイマ割込処理を終了して所定のメインプログラムに復帰する。
一方、ステップS206の判定結果がDa1>Dasであるときには、ステップS208に移行して、初期データ判別フラグFTAを“1”にセットしてからステップS209に移行して新たな異常データを上書き許容用EEROM132a2に書込んでからタイマ割込処理を終了して所定のメインプログラムに復帰する。
また、前記ステップS203の判定結果が、初期データ判別フラグFTAが“1”であるときには、直接ステップS209に移行する。
Next, the process proceeds to step S206, where it is determined whether or not the calculated data amount Da1 has reached the allowable data amount Das of the overwriting prohibition EEPROM 132a1. If Da1 ≦ Das, the process proceeds to step S207 to detect a new abnormality. After the data is written to the overwriting prohibition EEPROM 132a1, the timer interrupt process is terminated and the process returns to a predetermined main program.
On the other hand, when the determination result in step S206 is Da1> Das, the process proceeds to step S208, the initial data determination flag FTA is set to “1”, and then the process proceeds to step S209 for overwriting new abnormal data. After writing to the EEPROM 132a2, the timer interrupt process is terminated and the program returns to a predetermined main program.
If the determination result in step S203 is that the initial data determination flag FTA is “1”, the process directly proceeds to step S209.

さらに、前記ステップS202の判定結果が、書込対象が上書き禁止用EEPROM132b1であるときには、ステップS210に移行して、初期データ判別フラグFTBが“1”であるか否かを判定し、この初期データ判別フラグFTBが“0”であるときにはステップS211に移行して、新たに設けたデータ管理用EEPROMのEEPROM132b1用のデータ量記憶領域に記憶されているデータ量Db1を読込み、次いでステップS212に移行して、読込んだデータ量Db1にこれから書込むデータ量dbと加算して新たなデータ量Db1(=Db1+db)を算出する。   Further, when the determination result in step S202 is that the write target is the overwriting prohibition EEPROM 132b1, the process proceeds to step S210, where it is determined whether or not the initial data determination flag FTB is “1”. When the determination flag FTB is “0”, the process proceeds to step S211, the data amount Db1 stored in the data amount storage area for the EEPROM 132b1 of the newly provided data management EEPROM is read, and then the process proceeds to step S212. The new data amount Db1 (= Db1 + db) is calculated by adding the read data amount Db1 to the data amount db to be written.

次いで、ステップS213に移行して、算出したデータ量Db1が上書き禁止用EEPROM132b1の許容データ量Dbsに達したか否かを判定し、Db1≦DbsであるときにはステップS214に移行して、新たな異常データを上書き禁止用EEPROM132b1に書込んでからタイマ割込処理を終了して所定のメインプログラムに復帰する。   Next, the process proceeds to step S213, where it is determined whether or not the calculated data amount Db1 has reached the allowable data amount Dbs of the overwriting prohibition EEPROM 132b1. If Db1 ≦ Dbs, the process proceeds to step S214, and a new abnormality is detected. After the data is written to the overwriting prohibition EEPROM 132b1, the timer interrupt process is terminated and the process returns to a predetermined main program.

一方、ステップS213の判定結果がDb1>Dbsであるときには、ステップS215に移行して、初期データ判別フラグFTBを“1”にセットしてからステップS216に移行して新たな異常データを上書き許容用EEROM132b2に書込んでからタイマ割込処理を終了して所定のメインプログラムに復帰する。
また、前記ステップS210の判定結果が、初期データ判別フラグFTBが“1”であるときには、直接ステップS216に移行する。
On the other hand, when the determination result in step S213 is Db1> Dbs, the process proceeds to step S215, the initial data determination flag FTB is set to “1”, and then the process proceeds to step S216 for overwriting new abnormal data. After writing to the EEPROM 132b2, the timer interrupt process is terminated and the program returns to a predetermined main program.
If the determination result in step S210 is that the initial data determination flag FTB is “1”, the process directly proceeds to step S216.

このように、データ書込管理処理で、初期データ判別フラグFTA及びFTBを管理することにより、上書き禁止用EEPROM132a1及び132b1の記憶容量に空きがある場合には、これら上書き禁止用EEPROM132a1及び132b1に異常データを順次書込み、上書き禁止用EEPROM132a1及び132b1が満杯となった状態で、異常データを上書き許容用EEPROM132a2及び132b2に書込むことにより、多くの異常データを上書きすることなく保存することができる。この場合、上書き禁止用EEPROM132a1及び132b1に、解析データとして重要な前述した時系列データを記憶する時系列データ記憶領域を確保しておき、この時系列データ記憶領域には他の異常データの書込を禁止し、他の異常データは時系列データ記憶領域以外の記憶領域にその記憶容量が満杯となるまで記憶するようにすることもできる。このためには、上書き禁止用EEPROM132a1及び132b1に書込むデータが時系列データであるか否かを判別すると共に、時系列データ記憶領域に初回の時系列データが記憶されているか否かを判別することにより、時系列データであるときに、初回の時系列データを時系列データ記憶領域に記憶し、次の時系列データであるときには他の記憶領域の残り容量に応じて記憶するか否かを判断すればよい。
この場合には、時系列データを含む異常以外の異常が発生した場合には、複数の異常を上書き禁止用EEPROM132a1及び132b1に記憶することができ、複合異常が発生した場合の異常解析をより正確に行うことができる。
As described above, by managing the initial data determination flags FTA and FTB in the data write management process, if there is a free storage capacity in the overwrite prohibition EEPROMs 132a1 and 132b1, the overwrite prohibition EEPROMs 132a1 and 132b1 are abnormal. By writing the data sequentially and writing abnormal data to the overwrite-allowing EEPROMs 132a2 and 132b2 in a state where the overwrite-inhibiting EEPROMs 132a1 and 132b1 are full, a large amount of abnormal data can be stored without being overwritten. In this case, a time-series data storage area for storing the above-described time-series data important as analysis data is secured in the overwriting-prohibiting EEPROMs 132a1 and 132b1, and other abnormal data is written in this time-series data storage area. The other abnormal data can be stored in a storage area other than the time-series data storage area until the storage capacity is full. For this purpose, it is determined whether or not the data to be written into the overwrite prohibiting EEPROMs 132a1 and 132b1 is time-series data, and whether or not the first time-series data is stored in the time-series data storage area. Thus, when it is time-series data, the first time-series data is stored in the time-series data storage area, and when it is the next time-series data, it is stored according to the remaining capacity of the other storage area. Just judge.
In this case, when an abnormality other than the abnormality including the time series data occurs, a plurality of abnormalities can be stored in the overwriting prohibition EEPROMs 132a1 and 132b1, and the abnormality analysis when the composite abnormality occurs is more accurately performed. Can be done.

また、図3に示すように、修理先で、異常診断装置29をメインMCU101に接続して、メインMCU101で図13に示すデータ転送処理を行うことにより、上書き禁止用EEPROM132a1,132b1及び上書き許容用EEPROM132a2,132b2に記憶されている初期異常解析データ及び常時異常解析データを読出して、正確な異常解析を行うことができる。この異常解析を終了したときには、異常診断装置29から初期データ判別フラグFTA及びFTBを"0"にリセットするリセット信号をメインMCU101に入力することにより、上書き禁止用EEPROM132a1及び132b1に初期異常解析データの書込が可能となる。   Further, as shown in FIG. 3, the abnormality diagnosis device 29 is connected to the main MCU 101 at the repair destination, and the main MCU 101 performs the data transfer process shown in FIG. It is possible to read out the initial abnormality analysis data and the normal abnormality analysis data stored in the EEPROMs 132a2 and 132b2 and perform accurate abnormality analysis. When this abnormality analysis is completed, a reset signal for resetting the initial data determination flags FTA and FTB to “0” is input from the abnormality diagnosis device 29 to the main MCU 101, whereby the initial abnormality analysis data is stored in the overwriting prohibition EEPROMs 132a1 and 132b1. Writing becomes possible.

ここで、データ転送処理は、図13に示すように、メインMCU101に異常診断装置29が接続されているときに所定時間(例えば2msec)毎のタイマ割込処理として実行開始され、先ず、ステップS220で、異常診断装置29からデータ転送要求が入力されたか否かを判定し、データ転送要求が入力されたときには、ステップS221に移行して、上書き禁止用EEPROM132a1,132b1及び上書き許容用EEPROM132a2,132b2に記憶されている初期異常解析データ及び常時異常解析データを読出して、異常診断装置29に転送してからタイマ割込処理を終了する。   Here, as shown in FIG. 13, the data transfer process is started as a timer interrupt process at predetermined time intervals (for example, 2 msec) when the abnormality diagnosis device 29 is connected to the main MCU 101. First, step S220 is performed. Then, it is determined whether or not a data transfer request has been input from the abnormality diagnosis device 29. When a data transfer request has been input, the process proceeds to step S221, where the overwriting prohibition EEPROMs 132a1 and 132b1 and the overwriting permission EEPROMs 132a2 and 132b2 are transferred. The stored initial abnormality analysis data and normal abnormality analysis data are read out and transferred to the abnormality diagnosis device 29, and then the timer interruption process is terminated.

また、前記ステップS220の判定結果が、データ転送要求が入力されていないときにはステップS222に移行して、リセット信号が入力されたか否かを判定し、リセット信号が入力されていないときには、そのままタイマ割込処理を終了し、リセット信号が入力されたときにはステップS223に移行して、正常なEEPROM132a1〜132b2に記憶されている初期データ判別フラグFTA及びFTBを"0"にリセットしてからタイマ割込処理を終了して所定のメインプログラムに復帰する。   If the determination result in step S220 indicates that no data transfer request has been input, the process proceeds to step S222 to determine whether a reset signal has been input. If no reset signal has been input, the timer allocation is continued. When the reset signal is input, the process proceeds to step S223, and the initial data determination flags FTA and FTB stored in the normal EEPROMs 132a1 to 132b2 are reset to “0”, and then the timer interrupt process is performed. To return to a predetermined main program.

この図13のデータ転送処理において、ステップS222及び223の処理がフラグリセット手段に対応している。
さらには、EEPROM132a〜132b2を着脱可能として、これらを取り外してから異常診断装置29に装着して異常解析を行うと共に、異常診断装置29でフラグFTA及びFTBのリセットを行うようにしてもよい。この場合には、異常診断装置29がフラグリセット手段に対応する。
In the data transfer process of FIG. 13, the processes in steps S222 and 223 correspond to the flag reset means.
Further, the EEPROMs 132a to 132b2 may be detachable, and after removing them, the EEPROM 132a to 132b2 may be attached to the abnormality diagnosis device 29 to perform abnormality analysis, and the abnormality diagnosis device 29 may reset the flags FTA and FTB. In this case, the abnormality diagnosis device 29 corresponds to the flag reset means.

さらにまた、上記実施形態においては、モータ駆動電流IM を中央処理装置32で実行するソフトウェア処理によって算出する場合について説明したが、これに限定されるものではなく、操舵補助指令値演算器、センタ応答性改善回路、慣性補償器、摩擦補償器、微分補償器、減算器、比例演算器、積分演算器、加算器等を組み合わせたハードウェアによってモータ駆動電流IM を算出するようにしてもよい。 Furthermore, in the above embodiment, the case where the motor drive current I M is calculated by software processing executed by the central processing unit 32 has been described, but the present invention is not limited to this, and the steering assist command value calculator, center The motor drive current I M may be calculated by hardware combining a response improvement circuit, an inertia compensator, a friction compensator, a differential compensator, a subtractor, a proportional calculator, an integral calculator, an adder, and the like. .

なおさらに、上記実施形態においては、記憶手段としてEEPROMを適用した場合について説明したが、これに限定されるものではなく、フラッシュメモリ等の任意の不揮発性メモリを適用することができる。また、EEPROMに書込む時系列データの種別は発生する異常に応じて任意に設定することができる。
また、メインMCU101における初期異常検出処理及び常時異常検出処理で電動パワーステアリング装置の正常な動作に影響を与える異常を検出したときに、図5の操舵補助制御処理を終了させるようにしてもよい。
さらに、上記実施形態においてはメインMCU101でのみ初期異常検出処理及び常時異常検出処理を行う場合について説明したが、これに限定されるものではなく、サブMCU102でもEEPROMを設けて初期異常検出処理及び常時異常検出処理を行うようにしてもよい。
In the above embodiment, the case where the EEPROM is applied as the storage means has been described. However, the present invention is not limited to this, and any nonvolatile memory such as a flash memory can be applied. The type of time-series data written to the EEPROM can be arbitrarily set according to the abnormality that occurs.
Further, the steering assist control process of FIG. 5 may be terminated when an abnormality that affects the normal operation of the electric power steering apparatus is detected by the initial abnormality detection process and the constant abnormality detection process in the main MCU 101.
Furthermore, in the above-described embodiment, the case where the initial abnormality detection process and the constant abnormality detection process are performed only by the main MCU 101 has been described. However, the present invention is not limited to this, and the sub MCU 102 is also provided with an EEPROM to perform the initial abnormality detection process and the constant abnormality detection process. An abnormality detection process may be performed.

本発明の一実施形態を示す概略構成図である。It is a schematic structure figure showing one embodiment of the present invention. 操舵トルクセンサで検出されるトルク検出信号の特性線図である。FIG. 6 is a characteristic diagram of a torque detection signal detected by a steering torque sensor. 図1のコントローラの具体的構成を示すブロック図である。FIG. 2 is a block diagram illustrating a specific configuration of the controller in FIG. 1. EEPROMの構成を示す説明図である。It is explanatory drawing which shows the structure of EEPROM. メイン及びサブMCUで実行する操舵補助制御処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the steering assistance control processing procedure performed with main and sub MCU. 操舵補助指令値算出マップを示す特性線図である。It is a characteristic diagram which shows a steering assistance command value calculation map. メインMCUで実行する異常検出処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the abnormality detection process procedure performed with main MCU. 初期異常検出処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of an initial stage abnormality detection process procedure. トルクセンサ異常検出記憶処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of a torque sensor abnormality detection memory | storage process procedure. 常時異常検出処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of a normal abnormality detection process sequence. EEPROMの他の構成を示す説明図である。It is explanatory drawing which shows the other structure of EEPROM. メインMCUで実行するデータ書込管理処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the data write management processing procedure performed with main MCU. メインMCUで実行するデータ転送処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the data transfer processing procedure performed with main MCU.

符号の説明Explanation of symbols

1…ステアリングホイール、2…ステアリングシャフト、3…操舵トルクセンサ、3m…メイントルクセンサ、3s…サブトルクセンサ、8…ステアリングギヤ、13…電動モータ、14…制御装置、15…バッテリ、16…キースイッチ、17…車速センサ、101…メインMCU、102…サブMCU、110…モータ駆動回路、112…モータ電流検出回路、113…モータ角速度推定回路、114温度センサ、130…ROM、131…RAM、132a1…初期異常上書き禁止用EEPROM,132a2…初期異常上書き許容用EEPROM、132b1…常時異常上書き禁止用EEPROM,132b2…常時異常上書き許容用EEPROM   DESCRIPTION OF SYMBOLS 1 ... Steering wheel, 2 ... Steering shaft, 3 ... Steering torque sensor, 3m ... Main torque sensor, 3s ... Sub torque sensor, 8 ... Steering gear, 13 ... Electric motor, 14 ... Control device, 15 ... Battery, 16 ... Key Switch, 17 ... Vehicle speed sensor, 101 ... Main MCU, 102 ... Sub MCU, 110 ... Motor drive circuit, 112 ... Motor current detection circuit, 113 ... Motor angular velocity estimation circuit, 114 Temperature sensor, 130 ... ROM, 131 ... RAM, 132a1 ... EEPROM for initial abnormal overwrite prohibition, 132a2 ... EEPROM for initial abnormal overwrite allowance, 132b1 ... EEPROM for always abnormal overwrite prohibition, 132b2 ... EEPROM for always abnormal overwrite overwrite

Claims (7)

操舵系に対して操舵補助力を付与する電動機を備えた操舵補助制御機構と、該操舵補助制御機構の作動開始時の異常を検出する初期異常検出手段と、前記操舵制御機構の作動開始後の異常を常時検出する常時異常検出手段と、前記初期異常検出手段及び前記常時異常検出手段で異常を検出したときに、当該異常を解析する時系列データを含む異常解析データを記憶手段に記憶する異常データ格納手段とを備え、
前記記憶手段は、前記初期異常検出手段及び前記常時異常検出手段に個別に対応して、前記異常解析データの上書きを禁止する初期異常用及び常時異常用の上書き禁止記憶領域と、前記異常解析データを上書き記憶する初期異常用及び常時異常用の上書き許容記憶領域とを備え、
前記異常データ格納手段は、前記初期異常検出手段で検出した操舵補助制御機構の異常が最初の異常解析データであるときに、前記初期異常用上書き禁止記憶領域に記憶し、2回目以降の初期異常解析データであるときに、前記初期異常用上書き許容記憶領域に記憶し、前記常時異常検出手段で検出した操舵補助制御機構の異常が最初の異常解析データであるときに、前記常時異常用上書き禁止記憶領域に記憶し、2回目以降の常時異常解析データであるときに、前記常時異常用上書き許容記憶領域に記憶するように構成されていることを特徴とする電動パワーステアリング装置の制御装置。
A steering assist control mechanism having an electric motor for applying a steering assist force to the steering system, an initial abnormality detecting means for detecting an abnormality at the start of operation of the steering assist control mechanism, and An abnormality that constantly detects abnormality, and an abnormality that stores abnormality analysis data including time-series data for analyzing the abnormality when the abnormality is detected by the initial abnormality detection means and the normal abnormality detection means. Data storage means,
The storage means corresponds to the initial abnormality detection means and the normal abnormality detection means individually, and overwrite storage prohibition areas for initial abnormality and normal abnormality for prohibiting overwriting of the abnormality analysis data, and the abnormality analysis data With an overwritable storage area for initial abnormality and always abnormality for overwriting storage,
The abnormality data storage means, when the abnormality of the initial abnormality detected by the detecting means steering assist control mechanism is the first abnormality analysis data, stored in said initial abnormality overwrite prohibition storage area, the second and subsequent initial abnormality When it is analysis data, it is stored in the initial abnormality overwriting storage area, and when the abnormality of the steering assist control mechanism detected by the normal abnormality detection means is the first abnormality analysis data, the overwriting prohibition for normal abnormality is prohibited. A control device for an electric power steering apparatus, wherein the control device is configured to store in a storage area and to store in the always-abnormal overwrite permitting storage area when the abnormality analysis data is the second and subsequent normal abnormality analysis data .
前記異常データ格納手段は、異常検出される前後における所定時間の間の異常解析用データを時系列で保持するように構成されていることを特徴とする請求項1に記載の電動パワーステアリング装置の制御装置。 2. The electric power steering apparatus according to claim 1, wherein the abnormality data storage unit is configured to hold abnormality analysis data for a predetermined time before and after an abnormality is detected in time series . Control device. 前記異常解析用データは、継続した異常状態を検出する第1の所定時間でなる検出期間の時系列データと、前記検出期間の終了時から第2の所定時間までの確定期間の時系列データとで構成されていることを特徴とする請求項2に記載の電動パワーステアリング装置の制御装置。 The abnormality analysis data includes time-series data of a detection period that is a first predetermined time for detecting a continuous abnormal state, and time-series data of a fixed period from the end of the detection period to a second predetermined time. in the control device for an electric power steering apparatus according to be composed in claim 2, wherein. 前記初期異常検出手段は、前記操舵補助制御機構に含まれるトルク検出手段の初期異常検出、前記操舵補助制御機構に含まれる制御手段の初期異常検出、前記操舵補助制御機構に含まれる電流検出手段の初期異常検出、前記操舵補助制御機構に含まれる電動モータの初期異常検出、電源系統の初期異常検出及び前記記憶装置の初期異常検出の何れか1つ又は複数を行うように構成されていることを特徴とする請求項1乃至3の何れか1項に記載の電動パワーステアリング装置の制御装置。 The initial abnormality detection means includes an initial abnormality detection of a torque detection means included in the steering assist control mechanism, an initial abnormality detection of a control means included in the steering assist control mechanism, and an electric current detection means included in the steering assist control mechanism. It is configured to perform any one or more of initial abnormality detection, initial abnormality detection of an electric motor included in the steering assist control mechanism, initial abnormality detection of a power supply system, and initial abnormality detection of the storage device. 4. The control device for an electric power steering apparatus according to claim 1 , wherein the control apparatus is an electric power steering apparatus. 前記常時異常検出手段は、前記操舵補助制御機構に含まれるトルク検出手段の常時異常検出、前記操舵補助制御機構に含まれる制御手段の常時異常検出、前記操舵補助制御機構に含まれる電流検出手段の常時異常検出、前記操舵補助制御機構に含まれる電動モータの常時異常検出、前記操舵補助制御機構に含まれる車速検出手段の常時異常検出及び電源系統の常時異常検出の何れか1つ又は複数を行うように構成されていることを特徴とする請求項1乃至の何れか1項に記載の電動パワーステアリング装置の制御装置。 The constant abnormality detection means includes a constant abnormality detection of a torque detection means included in the steering assist control mechanism, a constant abnormality detection of a control means included in the steering assist control mechanism, and a current detection means included in the steering assist control mechanism. One or a plurality of detections of normal abnormality, detection of normal abnormality of the electric motor included in the steering assist control mechanism, detection of normal abnormality of the vehicle speed detection means included in the steering auxiliary control mechanism, and detection of normal abnormality of the power supply system are performed. control device for an electric power steering apparatus according that you have been configured to any one of claims 1 to 4, characterized as. 前記初期異常用上書き禁止記憶領域及び常時異常用上書き禁止記憶領域に最初に記憶されたデータ量を管理するデータ量管理手段と、次に異常解析データが生成されたときに、前記データ量管理手段で管理するデータ量に基づいて当該異常解析データを格納可能であるか否かを判定し、格納可能であるときに新たな異常解析データを初期異常用上書き禁止記憶領域及び常時異常用上書き禁止記憶領域に追加記憶する記憶データ追加手段とを備えていることを特徴とする請求項1乃至5の何れか1項に記載の電動パワーステアリング装置の制御装置。 Data amount management means for managing the amount of data initially stored in the initial abnormality overwrite prohibition storage area and the constant abnormality overwrite prohibition storage area, and when the abnormality analysis data is generated next, the data amount management means It is determined whether or not the abnormality analysis data can be stored based on the amount of data managed in, and when it can be stored, the new abnormality analysis data is stored in the initial abnormality overwrite prohibition storage area and the constant abnormality overwrite prohibition storage. control device for an electric power steering apparatus according to any one of claims 1 to 5, characterized that you have a storage data adding means for adding stored in the area. 前記データ量管理手段は前記初期異常用上書き禁止記憶領域及び常時異常用上書き禁止記憶領域に記憶されているデータ量を不揮発性メモリに格納して管理するように構成されていることを特徴とする請求項に記載の電動パワーステアリング装置の制御装置。 The data amount managing means is configured to store and manage a data amount stored in the initial abnormality overwrite prohibition storage area and the constant abnormality overwrite prohibition storage area in a nonvolatile memory. The control apparatus of the electric power steering apparatus according to claim 6 .
JP2006161243A 2005-06-10 2006-06-09 Control device for electric power steering device Expired - Fee Related JP4882528B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006161243A JP4882528B2 (en) 2005-06-10 2006-06-09 Control device for electric power steering device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2005170891 2005-06-10
JP2005170891 2005-06-10
JP2006161243A JP4882528B2 (en) 2005-06-10 2006-06-09 Control device for electric power steering device

Publications (2)

Publication Number Publication Date
JP2007015683A JP2007015683A (en) 2007-01-25
JP4882528B2 true JP4882528B2 (en) 2012-02-22

Family

ID=37753195

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006161243A Expired - Fee Related JP4882528B2 (en) 2005-06-10 2006-06-09 Control device for electric power steering device

Country Status (1)

Country Link
JP (1) JP4882528B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4506774B2 (en) * 2007-03-30 2010-07-21 ダイキン工業株式会社 Air conditioner
JP5067015B2 (en) * 2007-05-23 2012-11-07 日本精工株式会社 Electric power steering device
JP5125352B2 (en) * 2007-09-25 2013-01-23 日本精工株式会社 Electric power steering device
JP4451905B2 (en) * 2007-12-21 2010-04-14 本田技研工業株式会社 Vehicle remote diagnosis system
JP5205980B2 (en) * 2008-01-15 2013-06-05 日本精工株式会社 Electric power steering device
JP2010195125A (en) * 2009-02-24 2010-09-09 Nsk Ltd Electric power steering device
JP5350521B1 (en) 2012-07-12 2013-11-27 ヤマハ発動機株式会社 Vehicle information management system.
JP5273753B1 (en) 2012-07-12 2013-08-28 ヤマハ発動機株式会社 Vehicle information management system.
JP5958374B2 (en) * 2013-02-12 2016-07-27 株式会社デンソー Vehicle control data storage device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5826648A (en) * 1981-08-07 1983-02-17 Nippon Denso Co Ltd Vehicle's defect display
JP2511174B2 (en) * 1990-05-11 1996-06-26 株式会社日立製作所 Diagnostic device for electronic control unit for automobile
JP2000337977A (en) * 1999-05-31 2000-12-08 Suzuki Motor Corp Torque sensor for motor-driven power steering
JP3706084B2 (en) * 2002-04-19 2005-10-12 三菱電機株式会社 Vehicle data recording device
JP2004279295A (en) * 2003-03-18 2004-10-07 Toyoda Mach Works Ltd Power steering device
JP2005041273A (en) * 2003-07-23 2005-02-17 Toyota Motor Corp Method and device for collecting diagnostic data

Also Published As

Publication number Publication date
JP2007015683A (en) 2007-01-25

Similar Documents

Publication Publication Date Title
JP4882528B2 (en) Control device for electric power steering device
EP1731405B1 (en) Controller of electric power steering apparatus
JP3660635B2 (en) Electric power steering control device
CN103373351B (en) System and method for vehicle lateral control
EP1990255B1 (en) Methods, systems and computer program products for steering travel limit determination for electric power steering
JP6053651B2 (en) Power steering device and control device for on-vehicle equipment
JP6776998B2 (en) Autonomous driving system
JP4984598B2 (en) Electric power steering device
CN101678855B (en) Electric power steering device
US8352125B2 (en) Determination of a force acting on a steering mechanism
CN103596832B (en) Electric power steering apparatus
US8666604B2 (en) Method of detecting external impacts in vehicle steering systems
JP2015524364A (en) Method for detecting the direction of travel of an automobile
US20120059550A1 (en) Electric power steering system
JP2008279994A (en) Electric power steering device
JP2001130432A (en) Electric power steering device for vehicle
KR20110101599A (en) Method and apparatus for detecting hand-off state of steering handle
JP3119037B2 (en) Vehicle failure detection device
US20220396286A1 (en) Lane departure warning method and lane departure warning system
US20220212716A1 (en) Torque data robusting device and method
US11654956B2 (en) Method and system for steering intervention by electronic power steering unit to prevent vehicle rollover or loss of control
JP4715302B2 (en) Control device for electric power steering device
JP2008117129A (en) Data collection device for abnormality analysis and on-vehicle controller using the same
JP2007145040A (en) Electric steering device
JP4661128B2 (en) Control device for electric power steering device

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20090130

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090216

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20101022

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20101022

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110719

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110721

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110920

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111108

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111121

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

Free format text: PAYMENT UNTIL: 20141216

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4882528

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees