JP2009269458A - Electric power steering device - Google Patents

Electric power steering device Download PDF

Info

Publication number
JP2009269458A
JP2009269458A JP2008121448A JP2008121448A JP2009269458A JP 2009269458 A JP2009269458 A JP 2009269458A JP 2008121448 A JP2008121448 A JP 2008121448A JP 2008121448 A JP2008121448 A JP 2008121448A JP 2009269458 A JP2009269458 A JP 2009269458A
Authority
JP
Japan
Prior art keywords
failure
memory
electric power
analysis data
area
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.)
Granted
Application number
JP2008121448A
Other languages
Japanese (ja)
Other versions
JP5169450B2 (en
Inventor
Nobuhiro Kubo
信広 久保
Kazuhiro Kumaido
一博 熊井戸
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 JP2008121448A priority Critical patent/JP5169450B2/en
Publication of JP2009269458A publication Critical patent/JP2009269458A/en
Application granted granted Critical
Publication of JP5169450B2 publication Critical patent/JP5169450B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Steering Control In Accordance With Driving Conditions (AREA)
  • Power Steering Mechanism (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electric power steering device quickly and positively storing failure analysis data without increasing a processing load of software. <P>SOLUTION: In a normal state, a memory switching part 203 selects a first memory region 103a of a RAM 103 as a region used for normal processing, and when failure is detected by a failure detecting part 202, the memory switching part 203 switches to a second memory region 103b of the RAM 103 as a region used for normal processing, and sets the first memory region 103a as a storage region of the failure analysis data. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、電動パワーステアリング装置に関し、詳細には、電動パワーステアリング装置の故障解析データを記録する電動パワーステアリング装置に関する。   The present invention relates to an electric power steering apparatus, and more particularly to an electric power steering apparatus that records failure analysis data of the electric power steering apparatus.

乗用車やトラック等の車両の操舵力を軽減するため、操舵補助モータによって操舵を補助する、いわゆる電動パワーステアリング(EPS:Electric Power Steering)装置がある。電動パワーステアリング装置では、操舵補助モータの駆動力を、減速機を介してギヤまたはベルト等の伝送機構により、ステアリングシャフトまたはラック軸に補助力を付与するようになっている。かかる電動パワーステアリング装置は、操舵補助トルクを正確に発生させるため、モータ電流のフィードバック制御を行っている。フィードバック制御は、電流指令値とモータ電流検出値との差が小さくなるようにモータ印加電圧を調整するものであり、モータ印加電圧の調整は、一般的にPWM(パルス幅変調)制御のデューティー比の調整で行っている。   In order to reduce the steering force of vehicles such as passenger cars and trucks, there is a so-called electric power steering (EPS) device that assists steering by a steering assist motor. In the electric power steering apparatus, the driving force of the steering assist motor is applied to the steering shaft or the rack shaft by a transmission mechanism such as a gear or a belt via a speed reducer. Such an electric power steering apparatus performs feedback control of motor current in order to accurately generate steering assist torque. In feedback control, the motor applied voltage is adjusted so that the difference between the current command value and the detected motor current value is small. Generally, the adjustment of the motor applied voltage is a duty ratio of PWM (pulse width modulation) control. It is done by adjusting.

電動パワーステアリング装置においては、その駆動制御において種々のデータが発生し、必要なデータを電動パワーステアリング装置に備えた不揮発性メモリに記録している。このような電動パワーステアリング装置におけるデータの記録に関する技術として、たとえば、保存用メモリを上書き用のメモリと永久保存用の不揮発メモリとによって構成し、データの大きさが設定範囲を超えた場合、つまり、何らかの異常が生じている可能性が大きい場合に限って永久保存用の不揮発メモリに追加保存して、異常や故障の解析に有用なデータを長期間に亘って保持するようにしたものが提案されている(たとえば、特許文献1参照)。   In the electric power steering apparatus, various data are generated in the drive control, and necessary data is recorded in a nonvolatile memory provided in the electric power steering apparatus. As a technique related to data recording in such an electric power steering apparatus, for example, when a storage memory is configured by an overwriting memory and a non-volatile memory for permanent storage, and the data size exceeds a set range, that is, Proposed to store data useful for analysis of abnormalities and failures over a long period of time by adding additional storage to non-volatile memory for permanent storage only when there is a high possibility that some abnormality has occurred (For example, refer to Patent Document 1).

上述したように、従来の電動パワーステアリング装置においては、故障が発生した場合には、電動パワーステアリング装置内の不揮発メモリに故障解析用データ(故障記録データ)が自動的に記憶されるようになっている。かかる故障解析用データは、フリーズフレームデータとも呼ばれ、電子制御装置が何らかの原因で故障が発生した場合に、故障の発生原因を解析し易くするために、ソフトウェアの入出力信号や制御アルゴリズム演算過程のデータ等を保存しておく情報のことである。   As described above, in the conventional electric power steering device, when a failure occurs, failure analysis data (failure record data) is automatically stored in the nonvolatile memory in the electric power steering device. ing. Such failure analysis data is also called freeze frame data, and when an electronic control device fails for some reason, in order to make it easier to analyze the cause of the failure, software input / output signals and control algorithm calculation process This is the information that stores the data.

しかしながら、故障解析用データは、高速かつ確実に保存する必要があるため、他のソフトウェア機能を一時的に停止してでも優先して処理しなければならない。このため、ソフトウェア全体の処理負荷が急激に増加して最大レベルに達してしまうという問題がある。   However, since the failure analysis data needs to be saved at high speed and with certainty, it must be processed with priority even if other software functions are temporarily stopped. For this reason, there is a problem that the processing load of the entire software increases rapidly and reaches the maximum level.

図8は、従来の故障解析用データの故障検出時の保存方法を説明するための図である。同図において、301は参照用メモリ、302は故障解析用メモリを示している。参照用メモリ302には、センサで検出されたデータやCPUの演算結果のデータ等が一時的に記憶される。故障検出時には、参照用メモリ301に格納されているデータを、故障解析用メモリ302にコピーする。この場合、データ量が多いほど、長い期間、全体の処理をロックすることになるため、必然的に負荷が増すことになる。従来の方法では、コピー要素が10〜20バイト程度なら処理負荷がそれほど大きくないが、数100バイト程度になると、ソフトウェアのリアルタイム性や処理負荷の関係でシステム的に問題が生じる場合がある。   FIG. 8 is a diagram for explaining a conventional method for storing failure analysis data when a failure is detected. In the figure, reference numeral 301 denotes a reference memory, and 302 denotes a failure analysis memory. The reference memory 302 temporarily stores data detected by a sensor, CPU calculation result data, and the like. When a failure is detected, the data stored in the reference memory 301 is copied to the failure analysis memory 302. In this case, as the amount of data increases, the entire process is locked for a longer period, and thus the load increases inevitably. In the conventional method, if the copy element is about 10 to 20 bytes, the processing load is not so large, but if it is about several hundred bytes, a system problem may occur due to the real-time property of the software and the processing load.

図9は、故障検出時のソフトウェアの処理負荷の従来技術を説明するためのタイミングチャートである。同図では、所定周期T1内でTask(タスク)1〜4を実行し、Task2に故障解析用データの保存処理が組み込まれている場合を説明する。   FIG. 9 is a timing chart for explaining the prior art of the software processing load at the time of failure detection. In the figure, a case will be described in which Tasks (tasks) 1 to 4 are executed within a predetermined period T1 and failure analysis data storage processing is incorporated in Task2.

同図において、従来では、故障解析用データを保存する場合には、例えば、時刻t1で、Task2の故障診断機能により故障を検出した場合には、時刻t2で故障解析用データ保存処理を開始し、時刻t3で故障解析用データ保存処理が終了する。この場合、従来の方法では、故障解析用データの保存処理に長期間のT2の時間を要する。このため、Task2の処理負荷が増大し、後行の処理(Task3,Task4)が設計通りのタイミングで処理できなくなるため、Task3、4の処理の遅れの影響により、Task1が規定のタイミングで起動/処理できない状況が発生する場合がある。この結果、設計通りのタイミングで処理できないことで、操舵補助処理(以下、「アシスト処理」と称する)が破綻してアシスト停止に発展する可能性がある。   In the figure, conventionally, when failure analysis data is stored, for example, when a failure is detected by the failure diagnosis function of Task 2 at time t1, failure analysis data storage processing is started at time t2. At time t3, the failure analysis data storage process ends. In this case, the conventional method requires a long time T2 for the storage process of the failure analysis data. For this reason, the processing load of Task 2 increases, and the subsequent processes (Task 3, Task 4) cannot be processed at the designed timing. Therefore, Task 1 is started / started at the specified timing due to the delay of the processing of Task 3, 4. A situation that cannot be handled may occur. As a result, there is a possibility that the steering assist process (hereinafter referred to as “assist process”) fails and develops to assist stop because the process cannot be performed at the designed timing.

特開2000−337977号公報JP 2000-337977 A

本発明は、上記課題に鑑みてなされたものであり、ソフトウェアの処理負荷を増加させることなく、故障解析用データを高速かつ確実に保存することが可能な電動パワーステアリング装置を提供することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to provide an electric power steering device capable of storing failure analysis data quickly and reliably without increasing the software processing load. And

上述した課題を解決し、目的を達成するために、本発明は、車両のステアリング系に発生する操舵トルクおよび前記車両の速度に基づいて演算した操舵補助指令値と、前記ステアリング系に操舵補助力を付与する操舵補助モータの電流検出値とに基づいて、前記操舵補助モータを制御する電動パワーステアリング装置において、前記操舵補助モータを制御する制御手段と、前記制御手段のワークエリアとして使用され、センサデータや前記制御手段の演算結果等が格納されるランダムアクセスメモリと、前記電動パワーステアリングの故障を検出する故障検出手段と、を備え、前記ランダムアクセスメモリは、少なくとも2つのメモリ領域を有し、一方のメモリ領域を通常処理に使用し、前記故障検出手段で異常を検出した場合には、他方のメモリ領域を通常処理に使用する領域に切り替え、前記一方のメモリ領域を故障解析用データの保存領域とすることを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention provides a steering assist command value calculated based on the steering torque generated in the steering system of the vehicle and the speed of the vehicle, and the steering assist force in the steering system. In the electric power steering apparatus for controlling the steering assist motor based on the detected current value of the steering assist motor for providing the control, the control means for controlling the steering assist motor, and a work area for the control means, Random access memory for storing data, calculation results of the control means, and the like, and failure detection means for detecting a failure of the electric power steering, the random access memory has at least two memory areas, When one memory area is used for normal processing and an abnormality is detected by the failure detection means, Switch to a region using a memory area in the normal process, characterized by a storage area of the data failure analysis of the one memory area.

また、本発明の好ましい態様によれば、前記2つのメモリ領域の切り替えは、メモリ領域を配列定義してアドレス指定するインデックス方式、固定アドレスに対して所定値を加減算するオフセット方式、または物理的なメモリ領域を選択するバンク方式で行うことが望ましい。   Further, according to a preferred aspect of the present invention, the switching between the two memory areas is performed by an index system in which memory areas are arrayed and addressed, an offset system in which a predetermined value is added to or subtracted from a fixed address, or a physical area It is desirable to use a bank method for selecting a memory area.

また、本発明の好ましい態様によれば、前記故障解析用データを記録するための不揮発性記憶手段を備え、前記制御手段は、空き時間に、前記ランダムアクセスメモリに保存された故障解析用データを前記不揮発性記憶手段に保存することが望ましい。   According to a preferred aspect of the present invention, there is provided a non-volatile storage unit for recording the failure analysis data, and the control unit stores the failure analysis data stored in the random access memory in a free time. It is desirable to store in the non-volatile storage means.

また、本発明の好ましい態様によれば、前記故障検出手段で故障が検出される毎に、通常処理を行う領域と故障解析用データの保存領域を、前記一方のメモリ領域と前記他方のメモリ領域とで交互に切り替えることが望ましい。   According to a preferred aspect of the present invention, each time a failure is detected by the failure detection means, the normal processing area and the failure analysis data storage area are divided into the one memory area and the other memory area. It is desirable to switch alternately.

この発明によれば、車両のステアリング系に発生する操舵トルクおよび前記車両の速度に基づいて演算した操舵補助指令値と、前記ステアリング系に操舵補助力を付与する操舵補助モータの電流検出値とに基づいて、前記操舵補助モータを制御する電動パワーステアリング装置において、前記操舵補助モータを制御する制御手段と、前記制御手段のワークエリアとして使用され、センサデータや前記制御手段の演算結果等が格納されるランダムアクセスメモリと、前記電動パワーステアリングの故障を検出する故障検出手段と、を備え、前記ランダムアクセスメモリは、少なくとも2つのメモリ領域を有し、一方のメモリ領域を通常処理に使用し、前記故障検出手段で異常を検出した場合には、他方のメモリ領域を通常処理に使用する領域に切り替え、前記一方のメモリ領域を故障解析用データの保存領域とすることとしたので、ソフトウェアの処理負荷を増加させることなく、故障解析用データを高速かつ確実に保存することが可能な電動パワーステアリング装置を提供することが可能となるという効果を奏する。   According to the present invention, the steering assist command value calculated based on the steering torque generated in the steering system of the vehicle and the speed of the vehicle, and the current detection value of the steering assist motor that applies the steering assist force to the steering system. On the basis of this, in the electric power steering apparatus for controlling the steering assist motor, the control means for controlling the steering assist motor and the work area of the control means are used to store sensor data, the calculation result of the control means, etc. Random access memory and failure detection means for detecting a failure of the electric power steering, the random access memory has at least two memory areas, one memory area is used for normal processing, If an error is detected by the failure detection means, the other memory area is set as an area used for normal processing. In addition, since the one memory area is used as a storage area for failure analysis data, electric power that can quickly and reliably store failure analysis data without increasing the software processing load. There is an effect that a steering device can be provided.

以下に、本発明にかかる電動パワーステアリング装置の実施の形態を図面に基づいて詳細に説明する。なお、本発明は以下の記述に限定されるものではなく、本発明の要旨を逸脱しない範囲において適宜変更可能である。   Embodiments of an electric power steering apparatus according to the present invention will be described below in detail with reference to the drawings. In addition, this invention is not limited to the following description, In the range which does not deviate from the summary of this invention, it can change suitably.

図1は、電動パワーステアリング装置の一般的な構成を示す図である。図1において、操向ハンドル1のコラム軸2は減速ギヤ3、ユニバーサルジョイント4aおよび4b、ピニオンラック機構5を経て操向車輪のタイロッド6に連結されている。コラム軸2には、操向ハンドル1の操舵トルクTを検出するトルクセンサ10が設けられており、操向ハンドル1の操舵力を補助する操舵補助モータ20が、減速ギヤ3を介してコラム軸2に連結されている。ここで、操舵補助モータ20は、例えば、ブラシレスモータやブラシモータである。電動パワーステアリング装置を制御するコントロールユニット30には、バッテリ14から内蔵の電源リレー13を経て電力が供給され、イグニションキー11からイグニション信号が供給される。また、コントロールユニット30は、トルクセンサ10で検出された操舵トルクTと車速センサ12で検出された車速Vとに基づいて、操舵補助モータ20の電流指令値を演算し、操舵補助モータ20の電流検出値と電流指令値とに基づいて、操舵補助モータ20の電流検出値が電流指令値に追従するように操舵補助モータ20を駆動制御する。   FIG. 1 is a diagram illustrating a general configuration of an electric power steering apparatus. In FIG. 1, a column shaft 2 of a steering handle 1 is connected to a tie rod 6 of a steering wheel via a reduction gear 3, universal joints 4a and 4b, and a pinion rack mechanism 5. The column shaft 2 is provided with a torque sensor 10 that detects the steering torque T of the steering handle 1, and a steering assist motor 20 that assists the steering force of the steering handle 1 is connected to the column shaft via the reduction gear 3. 2 is connected. Here, the steering assist motor 20 is, for example, a brushless motor or a brush motor. The control unit 30 that controls the electric power steering device is supplied with electric power from the battery 14 via the built-in power supply relay 13 and is supplied with an ignition signal from the ignition key 11. Further, the control unit 30 calculates a current command value for the steering assist motor 20 based on the steering torque T detected by the torque sensor 10 and the vehicle speed V detected by the vehicle speed sensor 12, and the current of the steering assist motor 20 is calculated. Based on the detected value and the current command value, the steering assist motor 20 is drive-controlled so that the current detected value of the steering assist motor 20 follows the current command value.

図2は、図1のコントロールユニット30のハードウェア構成を示す図である。コントロールユニット30は、図2に示すように、MCU(マイクロコントロールユニット)100と、FETプリドライバ回路110と、モータ駆動回路(インバータ)120と、電流検出回路130と、位置検出回路140等を備えている。   FIG. 2 is a diagram showing a hardware configuration of the control unit 30 of FIG. As shown in FIG. 2, the control unit 30 includes an MCU (micro control unit) 100, an FET pre-driver circuit 110, a motor drive circuit (inverter) 120, a current detection circuit 130, a position detection circuit 140, and the like. ing.

MCU100は、CPU(制御手段)101、ROM102、RAM103、EEPROM(不揮発性メモリ)104、A/D変換器105、インターフェース106、バス107等を備えている。CPU101は、ROM102に格納されたプログラムを実行して電動パワーステアリング装置を制御する。   The MCU 100 includes a CPU (control means) 101, a ROM 102, a RAM 103, an EEPROM (nonvolatile memory) 104, an A / D converter 105, an interface 106, a bus 107, and the like. The CPU 101 executes a program stored in the ROM 102 and controls the electric power steering apparatus.

ROM102は、CPU101が実行する各種プログラムを格納する。具体的には、ROM102には、操舵補助(アシスト)を行う操舵補助モータ20を制御するアシスト処理(操舵補助処理)を実行するためのプログラム、電動パワーステアリング装置の故障を検出するための故障検出処理を実行するためのプログラム、および故障検出時の故障解析用データの保存処理を実行するためのプログラム等が格納されている。   The ROM 102 stores various programs executed by the CPU 101. Specifically, the ROM 102 includes a program for executing an assist process (steering assist process) for controlling the steering assist motor 20 that performs steering assist (assist), and a failure detection for detecting a malfunction of the electric power steering apparatus. A program for executing processing, a program for executing processing for saving failure analysis data when a failure is detected, and the like are stored.

RAM103は、CPU101がプログラムを実行する場合にそのワークエリアとして使用され、センサデータ(操舵トルクT、車速V、操舵補助モータ20の電流検出値Im、モータ回転角信号θ等)、処理過程で必要とするデータ、および処理結果等のデータが一時的に記憶されるものである。RAM103は、第1のメモリ領域103aと第2のメモリ領域103bを備えており、後述するように、故障検出時にその使用が切り替えられる(図3〜図7参照)。   The RAM 103 is used as a work area when the CPU 101 executes a program, and is necessary for sensor data (steering torque T, vehicle speed V, current detection value Im of the steering assist motor 20, motor rotation angle signal θ, etc.) and processing steps. And data such as processing results are temporarily stored. The RAM 103 includes a first memory area 103a and a second memory area 103b, and its use is switched when a failure is detected, as will be described later (see FIGS. 3 to 7).

EEPROM104は、電源遮断後においても記憶内容を保持可能な不揮発性メモリであり、CPU101が、電動パワーステアリング装置の制御で使用する制御データや故障解析用データ等が格納される。なお、ここでは、不揮発性メモリとして、EEPROMを使用することとしたが、本発明はこれに限られるものではなく、FLASH−ROM等の他の不揮発性メモリを使用することにしてもよい。   The EEPROM 104 is a non-volatile memory that can retain stored contents even after the power is shut off, and stores control data, failure analysis data, and the like that are used by the CPU 101 to control the electric power steering apparatus. Here, the EEPROM is used as the non-volatile memory. However, the present invention is not limited to this, and other non-volatile memories such as a FLASH-ROM may be used.

A/D変換器105は、トルクセンサ10からの操舵トルクT、電流検出回路130からの操舵補助モータ20の電流検出値Im、および位置検出回路140からのモータ回転角信号θ等を入力し、デジタル信号に変換する。インターフェース106は、車速センサ12からの車速V(パルス)をCAN通信で受け取るためのものである。   The A / D converter 105 inputs the steering torque T from the torque sensor 10, the current detection value Im of the steering assist motor 20 from the current detection circuit 130, the motor rotation angle signal θ from the position detection circuit 140, and the like. Convert to digital signal. The interface 106 is for receiving the vehicle speed V (pulse) from the vehicle speed sensor 12 by CAN communication.

上記構成において、CPU101が、ROM102に格納されたプログラムを実行することにより、故障検出手段およびメモリ切替手段として機能する。   In the above configuration, the CPU 101 functions as a failure detection unit and a memory switching unit by executing a program stored in the ROM 102.

FETプリドライバ回路110は、主MCU100から入力されるUVW各相のPWM制御信号を、各相正負の通電信号(Up、Un、Vp、Vn、Wp、Wn)に変換して、モータ駆動回路120に出力する。   The FET pre-driver circuit 110 converts the PWM control signal for each phase of UVW input from the main MCU 100 into positive and negative energization signals (Up, Un, Vp, Vn, Wp, Wn) for each phase, and the motor drive circuit 120. Output to.

モータ駆動回路120は、一対のFETスイッチング素子からなるブリッジ回路をU相用、V相用、W相用として3相分備えており、各FETスイッチング素子には還流ダイオードが並列接続されている。このブリッジ回路には、バッテリ14から電源リレー13を介して直流電圧が印加される。各FETスイッチング素子の制御端子(ゲート端子)には、FETプリドライバ回路110から通電信号が入力される。モータ駆動回路120に印加される直流電圧は、モータ駆動回路120内のFETスイッチング素子のスイッチング動作によって3相の交流電圧に変換され、それにより操舵補助モータ20が駆動される。このブリッジ回路には、シャント抵抗R1、R2が接続されている。このシャント抵抗R1、R2に電流検出回路130が接続され、これによって、操舵補助モータ20の電流検出値Imを検出するようになっている。   The motor drive circuit 120 includes a bridge circuit composed of a pair of FET switching elements for three phases for the U phase, the V phase, and the W phase, and a reflux diode is connected in parallel to each FET switching element. A DC voltage is applied to the bridge circuit from the battery 14 via the power relay 13. An energization signal is input from the FET pre-driver circuit 110 to the control terminal (gate terminal) of each FET switching element. The DC voltage applied to the motor drive circuit 120 is converted into a three-phase AC voltage by the switching operation of the FET switching element in the motor drive circuit 120, thereby driving the steering assist motor 20. Shunt resistors R1 and R2 are connected to this bridge circuit. A current detection circuit 130 is connected to the shunt resistors R1 and R2, and the current detection value Im of the steering assist motor 20 is thereby detected.

位置検出回路140は、位置センサ21からの出力信号をモータ回転角信号θとして、A/D変換器105に出力する。   The position detection circuit 140 outputs the output signal from the position sensor 21 to the A / D converter 105 as a motor rotation angle signal θ.

つぎに、図3〜図7を参照して、故障検出時の故障解析用データの保存処理について説明する。本実施例では、CPU101は、正常状態では、RAM103の第1の領域103aを通常処理に使用している。通常処理では、CPU101が、アシスト処理等を実行する場合に、第1の領域103aに対して、センサデータ、処理過程で必要とするデータ、および処理結果等のデータのリード(R)/ライト(W)が行われる。そして、故障が検出された場合には、第2のメモリ領域103bを通常処理に使用する領域に切り替え、第1のメモリ領域103aを故障解析用データの保存領域に切り替えることにより、CPU101(ソフトウェア)の処理負荷を増加させることなく、故障解析用データを高速かつ確実に保存している。   Next, with reference to FIG. 3 to FIG. 7, processing for storing failure analysis data when a failure is detected will be described. In this embodiment, the CPU 101 uses the first area 103a of the RAM 103 for normal processing in a normal state. In the normal processing, when the CPU 101 executes assist processing or the like, reading (R) / writing (R) / writing of sensor data, data required in the processing process, and data such as processing results with respect to the first area 103a ( W) is performed. When a failure is detected, the second memory area 103b is switched to an area used for normal processing, and the first memory area 103a is switched to a storage area for failure analysis data, so that the CPU 101 (software) Failure analysis data is quickly and reliably stored without increasing the processing load.

図3は、故障解析用データの保存処理に関するMCU100の機能構成図である。同図において、MCU100は、アシスト処理等を実行する制御部201と、センサデータに基づいて、故障を検出する故障検出部202と、RAM103の第1のメモリ領域103aと第2のメモリ領域103bの切り替えを行うメモリ切替部203等を備えている。   FIG. 3 is a functional configuration diagram of the MCU 100 related to the failure analysis data storage process. In the figure, the MCU 100 includes a control unit 201 that executes assist processing and the like, a failure detection unit 202 that detects a failure based on sensor data, and a first memory area 103a and a second memory area 103b of the RAM 103. A memory switching unit 203 for switching is provided.

故障検出部202は、センサデータに基づいて、電動パワーステアリング装置の故障を検出するものであり、故障を検出した場合に、故障検出信号をメモリ切替部203に出力する。ここでは、センサデータに基づいて故障を検出することとしたが、故障検出は、センサデータに基づく故障検出に限られず、メモリ(ROM102、EEPROM104)、CPU101等の故障を検出することにしてもよい。   The failure detection unit 202 detects a failure of the electric power steering device based on the sensor data, and outputs a failure detection signal to the memory switching unit 203 when a failure is detected. Here, the failure is detected based on the sensor data, but the failure detection is not limited to the failure detection based on the sensor data, and a failure of the memory (ROM 102, EEPROM 104), CPU 101, etc. may be detected. .

制御部201は、通常処理を行う場合に、RAM103に対して、センサデータ、処理過程で必要とするデータ、および処理結果等のデータのリード(R)/ライト(W)を行う。   When performing normal processing, the control unit 201 reads (R) / writes (W) sensor data, data required in the processing process, and data such as processing results with respect to the RAM 103.

メモリ切替部203は、故障検出部202から入力される故障検出信号に基づいて、RAM103の第1のメモリ領域103aと第2のメモリ領域103bの切り替えを行う。第1および第2のメモリ領域103a、103bの切り替えを行う場合のメモリアクセス方式としては、例えば、メモリ領域を配列定義してアドレス指定するインデックス方式、固定アドレスに対して所定値を加減算するオフセット方式、または物理的なメモリ領域を選択するバンク方式等を使用することができる。インデックス方式を使用した場合の実施例については後述する(図6−1〜図6−6参照)。   The memory switching unit 203 switches between the first memory region 103a and the second memory region 103b of the RAM 103 based on the failure detection signal input from the failure detection unit 202. As a memory access method when switching between the first and second memory areas 103a and 103b, for example, an index method in which memory areas are arrayed and addressed, and an offset method in which a predetermined value is added to or subtracted from a fixed address Alternatively, a bank method for selecting a physical memory area or the like can be used. An embodiment in which the index method is used will be described later (see FIGS. 6-1 to 6-6).

図4は、メモリ切替部203のメモリ領域の切り替えを説明するための模式図である。同図において、メモリ切替部203は、正常状態では、第1のメモリ領域103aを選択する。制御部103は、第1のメモリ領域103aを使用して、通常処理を行う(S1)。すなわち、第1のメモリ領域103aは単純なデータの受け渡し領域として使用される。   FIG. 4 is a schematic diagram for explaining switching of the memory area of the memory switching unit 203. In the figure, the memory switching unit 203 selects the first memory area 103a in the normal state. The control unit 103 performs normal processing using the first memory area 103a (S1). That is, the first memory area 103a is used as a simple data transfer area.

メモリ切替部203は、故障検出部202で故障が検出されて故障検出信号が入力された場合には、通常処理を行う領域を第2のメモリ領域103bに切り替える。制御部103は、第2のメモリ領域103bを使用して、通常処理を行う(S2)。第1のメモリ領域103aは、データが更新されなくなり、第1のメモリ領域103aに格納されている故障発生時のデータを故障解析用データとして、制御部201の空き時間等にEEPROM104に格納する。これにより、コントロールユニット30の電源をOFFしても、後で故障解析用データを確認することが可能となる。   When a failure is detected by the failure detection unit 202 and a failure detection signal is input, the memory switching unit 203 switches the region where normal processing is performed to the second memory region 103b. The control unit 103 performs normal processing using the second memory area 103b (S2). In the first memory area 103a, data is not updated, and data at the time of failure stored in the first memory area 103a is stored in the EEPROM 104 as failure analysis data in the free time of the control unit 201 or the like. Thereby, even if the power of the control unit 30 is turned off, the failure analysis data can be confirmed later.

故障が軽微でフェールセーフ処理でリカバリーされた後に、さらに、故障が検出された場合には、通常処理を行う領域を第1のメモリ領域103aに切り替える。制御部103は、第1のメモリ領域103aを使用して、通常処理を行う(S3)。第2のメモリ領域103bは、データが更新されなくなり、第2のメモリ領域103bに格納されている故障発生時のデータを故障解析用データとして、制御部201の空き時間にEEPROM104に格納する。リカバリー後、さらに、故障が検出された場合には、第2のメモリ領域103を通常処理を行う領域に、第1のメモリ領域103aを故障解析用データの保存領域に切り替える(S2)。このように、故障を検出する毎に、通常処理を行う領域と故障解析用データの保存領域とを、第1のメモリ領域103aと第2のメモリ領域103bとで交互に切り替えることで、故障解析用データを繰り返し保存することが可能となる。また、制御部201の空き時間に、故障解析用データをEEPROM104に格納することにより、制御部201の処理負荷を軽減することができる。   After a failure is minor and recovered by fail-safe processing, if a failure is further detected, the area for normal processing is switched to the first memory area 103a. The control unit 103 performs normal processing using the first memory area 103a (S3). In the second memory area 103b, the data is not updated, and the data at the time of the failure occurrence stored in the second memory area 103b is stored in the EEPROM 104 as the failure analysis data in the free time of the control unit 201. If a failure is further detected after the recovery, the second memory area 103 is switched to an area where normal processing is performed, and the first memory area 103a is switched to a storage area for failure analysis data (S2). In this way, every time a failure is detected, the failure analysis is performed by alternately switching the normal processing region and the failure analysis data storage region between the first memory region 103a and the second memory region 103b. It is possible to repeatedly store data for use. Further, by storing the failure analysis data in the EEPROM 104 during the idle time of the control unit 201, the processing load on the control unit 201 can be reduced.

図5は、図3のMCU100の動作の概略を説明するためのフローチャートである。図5を参照して、図3のMCU100の動作の概略を説明する。同図において、まず、IGがオンされると(ステップS11)、初期診断が実行される(ステップS12)。初期診断の終了後、センサデータが故障検出部202に入力されると共に、RAM103の第1のメモリ領域103aに格納される(ステップS13)。故障検出部202では、センサデータに基づいて、故障の検出を行う(ステップS14)。故障検出部202は、故障を検出したか否かを判断し(ステップS15)、故障診断部202で故障が検出されない場合は(ステップS15の「No」)、制御部201は、RAM1の第1のメモリ領域103を使用して通常処理を行って、制御演算を行い(ステップS16)、操舵補助モータ20の電流指令値を出力する(ステップS17)。そして、IGがOFFされていない場合には(ステップS18の「No」)、ステップS13に戻り、IGがOFFされた場合には(ステップS18の「Yes」)、操舵補助モータ20を停止させるための所定の停止処理を行って(ステップS19)、当該フローを終了する。   FIG. 5 is a flowchart for explaining the outline of the operation of the MCU 100 of FIG. With reference to FIG. 5, the outline of the operation of the MCU 100 of FIG. 3 will be described. In the figure, first, when the IG is turned on (step S11), an initial diagnosis is executed (step S12). After completion of the initial diagnosis, the sensor data is input to the failure detection unit 202 and stored in the first memory area 103a of the RAM 103 (step S13). The failure detection unit 202 detects a failure based on the sensor data (step S14). The failure detection unit 202 determines whether or not a failure has been detected (step S15). If no failure is detected by the failure diagnosis unit 202 ("No" in step S15), the control unit 201 determines whether the failure is detected in the first RAM1. The memory area 103 is used to perform normal processing, control calculation is performed (step S16), and a current command value for the steering assist motor 20 is output (step S17). If the IG is not turned off (“No” in step S18), the process returns to step S13. If the IG is turned off (“Yes” in step S18), the steering assist motor 20 is stopped. The predetermined stop process is performed (step S19), and the flow ends.

他方、ステップS15において、故障検出部202で故障が検出された場合は(ステップS15の「Yes」)、上述した故障解析データの保存処理を行った後(ステップS20)、フェールセーフ処理を行う(ステップS21)。フェールセーフ処理では、故障が軽微な場合にはリカバー処理を行って、ステップS16に移行する。他方、故障が重大な場合には操舵補助モータ20を停止させるための所定の停止処理を行う。   On the other hand, if a failure is detected by the failure detection unit 202 in step S15 (“Yes” in step S15), the failure analysis data storage process described above is performed (step S20), and then a fail-safe process is performed (step S20). Step S21). In the fail-safe process, if the failure is minor, a recovery process is performed, and the process proceeds to step S16. On the other hand, when the failure is serious, a predetermined stop process for stopping the steering assist motor 20 is performed.

つぎに、図6−1〜図6−5を参照して、上述の故障解析データの保存処理において、メモリ切替部203がインデックス方式を使用して、RAM103の第1のメモリ領域103aと第2のメモリ領域103bの切り替えを行う場合の実施例を説明する。   Next, referring to FIGS. 6-1 to 6-5, in the failure analysis data saving process described above, the memory switching unit 203 uses the index method to store the first memory area 103a and the second memory area 103 in the RAM 103. An example in which the memory area 103b is switched will be described.

図6−1において、本来1次元配列であるアドレス空間を擬似的に多次元配列することにより、同一構成のメモリ空間を複数作成し、これらの配列に対してインデックスによって高速に切り替え、リード/ライトアクセスできるようにRAM103を構成する。Mem[0]、Mem[1]、WriteIndex、ReadIndexを用意する(以下の説明では、第1の領域103aをMem[0]=M0、第2の領域103bをMem[1]=M1,WriteIndex=WI、ReadIndex=RIとする。   In FIG. 6A, a plurality of memory spaces having the same configuration are created by pseudo-multidimensionally arranging an address space that is originally a one-dimensional array, and these arrays are switched at high speed by an index, and read / write is performed. The RAM 103 is configured so that it can be accessed. Mem [0], Mem [1], WriteIndex, and ReadIndex are prepared (in the following description, the first area 103a is Mem [0] = M0, the second area 103b is Mem [1] = M1, WriteIndex = WI, ReadIndex = RI.

初期状態では、WI=0,RI=0を設定し、M0、M1のメモリ空間は適切な値で初期化されている。WIとRIに設定された値によってMem[0]とMem[1]のアクセスを切り替えることができる。   In the initial state, WI = 0 and RI = 0 are set, and the memory spaces of M0 and M1 are initialized with appropriate values. Access of Mem [0] and Mem [1] can be switched according to the values set in WI and RI.

図6−2に示すように、故障解析用データを保存しない場合には(正常状態)、WI=0,RI=0をセットし、M0を単純なデータの受け渡し領域とする。   As shown in FIG. 6B, when failure analysis data is not stored (normal state), WI = 0 and RI = 0 are set, and M0 is set as a simple data transfer area.

図6−3に示すように、故障解析用データを保存する場合には(故障検出部202での故障検出時)、まず、WI=1、RI=0をセットし、M1のデータ更新に切り替え、M0のデータを保持する。故障解析用データの保存処理によりも優先順位の高い処理がなければ、WI、RIを同時に切り替えてもよい。   As shown in FIG. 6-3, when the failure analysis data is stored (when a failure is detected by the failure detection unit 202), first, WI = 1 and RI = 0 are set, and switching to M1 data update is performed. , M0 data is held. If there is no high priority processing even in the failure analysis data storage processing, WI and RI may be switched simultaneously.

図6−4に示すように、WI=1,RI=1をセットし、M1を単純なデータの受け渡し領域とする。これにより、M0が更新されなくなり、M0に故障解析用データの取得が完了となる。M0に取得した故障解析用データを、制御部201の空き時間に所定の方法でEEPROM104に保存することで、一度、コントロールユニット30の電源をOFFしても、後で故障解析用データを確認することが可能となる。   As shown in FIG. 6-4, WI = 1 and RI = 1 are set, and M1 is a simple data transfer area. Thereby, M0 is not updated, and acquisition of failure analysis data is completed in M0. The failure analysis data acquired in M0 is saved in the EEPROM 104 by a predetermined method during the idle time of the control unit 201, so that the failure analysis data is confirmed later even if the control unit 30 is turned off once. It becomes possible.

また、故障解析用データを繰り返し保存するとき、例えば、故障検出→故障解析用データ保存→故障確定前に復帰→故障検出→故障解析用データ保存する場合には、図6−5に示すように、WIとRIを変化させれば、最新の故障解析用データを何度でも簡単に取得することができる。同図において、まず、(1)WI=0,RI=0を設定し、M0を単純なデータの受け渡し領域とする。(2)故障検出部202で故障を検出した場合には、WI=1、RI=0を設定し、M1のデータ更新に切り替え、M0のデータを保持する。なお、M0に保持したデータは、制御部201の処理が空いている間に、EEPROM104に格納する。この後、(3)、(4)WI=1,RI=1をセットし、M1を単純なデータの受け渡し領域とする。制御部201の処理が空いている間に、M0に書き込んだデータをEEPROM104に格納する。   When failure analysis data is repeatedly stored, for example, when failure detection → failure analysis data storage → return before failure determination → failure detection → failure analysis data storage, as shown in FIG. If WI and RI are changed, the latest failure analysis data can be easily acquired any number of times. In the figure, first, (1) WI = 0 and RI = 0 are set, and M0 is set as a simple data transfer area. (2) When a failure is detected by the failure detection unit 202, WI = 1 and RI = 0 are set, the data is switched to M1 data update, and the data of M0 is held. The data held in M0 is stored in the EEPROM 104 while the control unit 201 is idle. Thereafter, (3) and (4) WI = 1 and RI = 1 are set, and M1 is set as a simple data transfer area. While the processing of the control unit 201 is idle, the data written to M0 is stored in the EEPROM 104.

つぎに、故障確定前に復帰した後に、(5)故障検出部202で故障を検出した場合には、WI=0、RI=1を設定し、M0のデータ更新に切り替え、M1のデータを保持する。なお、M0に保持したデータは、制御部101の空き時間にEEPROM104に格納する。そして、(6)WI=0,RI=0を設定し、第1の領域であるM0を単純なデータの受け渡し領域とする。この後、異常を検出した場合は、(1)に戻る。M0とM1を切り替えるだけで、最新の故障解析用データを何度でも取得することができる。   Next, after returning before the failure is confirmed, (5) when the failure is detected by the failure detection unit 202, WI = 0 and RI = 1 are set, the data is updated to M0, and the data of M1 is held. To do. Note that the data held in M0 is stored in the EEPROM 104 during the idle time of the control unit 101. (6) WI = 0 and RI = 0 are set, and the first area M0 is set as a simple data transfer area. Thereafter, when an abnormality is detected, the process returns to (1). The latest failure analysis data can be acquired any number of times simply by switching between M0 and M1.

このように、WIとRIの2つのインデックス変数を操作するだけで、大量の故障解析用データを高速かつ確実に保存することが可能となる。この方式を用いれば故障解析用データの要素数が多いほど効果を発揮する。周期入出力のタイミングによっては、配列アクセスのための複数インデックスを同時操作しても目的を果たすことが可能となる。また、周期入出力のタイミングによっては、配列アクセスのためのインデックスが1つでも充分目的を果たすことが可能となる。   As described above, a large amount of failure analysis data can be stored at high speed and reliably only by manipulating the two index variables WI and RI. If this method is used, the effect increases as the number of elements of the failure analysis data increases. Depending on the timing of periodic input / output, the purpose can be achieved even if a plurality of indexes for array access are operated simultaneously. Further, depending on the timing of periodic input / output, even one index for array access can sufficiently fulfill its purpose.

図7は、本実施例において、故障検出時のCPU101(ソフトウェア)の処理負荷を説明するためのタイミングチャートである。同図では、所定周期T1内でTask(タスク)1〜4を実行し、Task2に故障解析用データの保存処理が組み込まれている場合を説明する。   FIG. 7 is a timing chart for explaining the processing load of the CPU 101 (software) when a failure is detected in this embodiment. In the figure, a case will be described in which Tasks (tasks) 1 to 4 are executed within a predetermined period T1 and failure analysis data storage processing is incorporated in Task2.

同図において、故障解析用データを保存する場合には、例えば、時刻t1で、Task2の故障検出機能により故障を検出した場合には、時刻t2で故障解析用データ保存処理を開始し、時刻t3で故障解析用データ保存処理が終了する。この場合、本実施例では、RAM103の第1および第2のメモリ領域103a、103bの切り替えを行うだけであるので、従来では故障解析用データの保存処理に長期間T2(図9参照)要していたが、本実施例では、短期間のT3で済み、後行の処理(Task3,Task4)を設計通りのタイミングで処理できる。すなわち、ソフトウェアの処理負荷を増加させることなく、故障解析用データを高速かつ確実に保存することができ、設計通りのタイミングで処理できるようになる。したがって、本来の診断/制御の効果を発揮することができる。   In the figure, when failure analysis data is stored, for example, when a failure is detected by the failure detection function of Task 2 at time t1, failure analysis data storage processing is started at time t2, and time t3 This completes the failure analysis data storage process. In this case, in this embodiment, since only the first and second memory areas 103a and 103b of the RAM 103 are switched, conventionally, the storage process of the failure analysis data requires a long time T2 (see FIG. 9). However, in this embodiment, a short period of T3 is sufficient, and subsequent processing (Task3, Task4) can be processed at the timing as designed. In other words, failure analysis data can be stored quickly and reliably without increasing the software processing load, and can be processed at the timing as designed. Therefore, the original diagnosis / control effect can be exhibited.

以上説明したように、本実施例によれば、操舵補助モータ20を制御する制御部201と、制御部201のワークエリアとして使用され、センサデータやその演算結果等が格納され、第1のメモリ領域103aと第2のメモリ領域103bを有するRAM103と、電動パワーステアリング装置の故障を検出する故障検出部202と、正常状態では、第1のメモリ領域103aを通常処理に使用する領域として選択し、故障検出部202で故障を検出した場合には、第2のメモリ領域103bを通常処理に使用する領域に切り替え、第1のメモリ領域103aを故障解析用データの保存領域とするメモリ切替部203とを備えているので、ソフトウェア(CPU)の処理負荷を増加させることなく、故障解析用データを高速かつ確実に保存することが可能となる。   As described above, according to the present embodiment, the control unit 201 that controls the steering assist motor 20 and the work area of the control unit 201 are used to store the sensor data, the calculation result, and the like. RAM 103 having a region 103a and a second memory region 103b, a failure detection unit 202 for detecting a failure of the electric power steering device, and in a normal state, the first memory region 103a is selected as a region used for normal processing, When a failure is detected by the failure detection unit 202, the memory switching unit 203 switches the second memory area 103b to an area used for normal processing, and uses the first memory area 103a as a storage area for failure analysis data. With this feature, failure analysis data can be saved quickly and reliably without increasing the processing load on the software (CPU). It becomes possible.

また、メモリ切替部203は、第1および第2のメモリ領域103a、103bの切り替えを、メモリ領域を配列定義してアドレス指定するインデックス方式、固定アドレスに対して所定値を加減算するオフセット方式、または物理的なメモリ領域を選択するバンク方式で行うこととしたので、第1および第2のメモリ領域103a、103bの切り替えを簡単な方法で行うことが可能となる。   Further, the memory switching unit 203 switches between the first and second memory areas 103a and 103b by using an index system in which memory areas are arrayed and addressed, an offset system in which a predetermined value is added to or subtracted from a fixed address, or Since the bank method for selecting a physical memory area is used, the first and second memory areas 103a and 103b can be switched by a simple method.

また、故障解析用データを記録するためのEEPROM104を備え、制御部202の空き時間に、RAM103に保存された故障解析用データをEEPROM104に保存することとしたので、ソフトウェア(CPU)の処理負荷を増加させることなく、故障解析用データを永続的に保存することが可能となる。   In addition, since the EEPROM 104 for recording the failure analysis data is provided and the failure analysis data stored in the RAM 103 is stored in the EEPROM 104 during the idle time of the control unit 202, the processing load of the software (CPU) is reduced. It is possible to permanently store failure analysis data without increasing it.

また、故障検出部202で故障を検出する毎に、通常処理を行う領域と故障解析用データの保存領域を、第1のメモリ領域103aと第2のメモリ領域103bとで交互に切り替えることとしたので、故障解析用データを繰り返し保存することが可能となる。   Each time the failure detection unit 202 detects a failure, the normal processing region and the failure analysis data storage region are alternately switched between the first memory region 103a and the second memory region 103b. As a result, failure analysis data can be stored repeatedly.

なお、上記実施例では、RAM103の領域を2つの領域に分割することとしたが、分割する領域数はこれに限られるものではなく、3つ以上の領域に分割することにしてもよい。   In the above embodiment, the area of the RAM 103 is divided into two areas. However, the number of areas to be divided is not limited to this, and may be divided into three or more areas.

また、故障検出処理をCPU101で実行することとしたが、故障検出を行うデバイスを別個に設ける構成としてもよい。   Further, although the failure detection processing is executed by the CPU 101, a device for performing failure detection may be provided separately.

本発明に係る電動パワーステアリング装置は、故障解析用データを保存する場合に有用である。   The electric power steering apparatus according to the present invention is useful when storing failure analysis data.

電動パワーステアリング装置の一般的な構成を示す図である。It is a figure which shows the general structure of an electric power steering apparatus. 図1のコントロールユニットのハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of the control unit of FIG. 故障解析用データの保存処理およびアシスト処理に関するMCUの機能構成図である。It is a functional block diagram of MCU regarding the preservation | save process and assist process of the data for failure analysis. メモリ切替部におけるRAMのメモリ領域の切替を説明するための模式図である。It is a schematic diagram for demonstrating switching of the memory area of RAM in a memory switching part. 電動パワーステアリング装置の動作の概略を説明するためのフローチャートである。It is a flowchart for demonstrating the outline of operation | movement of an electric power steering apparatus. メモリ切替部がインデックス方式を使用して、RAMのメモリ領域の切替を行う場合の実施例を説明するための説明図(その1)である。It is explanatory drawing (the 1) for demonstrating an Example in case a memory switching part switches the memory area of RAM using an index system. メモリ切替部がインデックス方式を使用して、RAMのメモリ領域の切替を行う場合の実施例を説明するための説明図(その2)である。It is explanatory drawing (the 2) for demonstrating an Example in case a memory switching part switches the memory area of RAM using an index system. メモリ切替部がインデックス方式を使用して、RAMのメモリ領域の切替を行う場合の実施例を説明するための説明図(その3)である。It is explanatory drawing (the 3) for demonstrating an Example in case a memory switching part switches the memory area of RAM using an index system. メモリ切替部がインデックス方式を使用して、RAMのメモリ領域の切替を行う場合の実施例を説明するための説明図(その4)である。It is explanatory drawing (the 4) for demonstrating an Example in case a memory switching part switches the memory area of RAM using an index system. メモリ切替部がインデックス方式を使用して、RAMのメモリ領域の切替を行う場合の実施例を説明するための説明図(その5)である。It is explanatory drawing (the 5) for demonstrating an Example in case a memory switching part switches the memory area of RAM using an index system. 本実施例の故障検出時の故障解析用データ保存処理におけるソフトウェアの処理負荷を説明するためのタイミングチャートである。It is a timing chart for demonstrating the processing load of the software in the data storage process for failure analysis at the time of the failure detection of a present Example. 従来の故障検出時の故障解析用データ保存方法を説明するための図である。It is a figure for demonstrating the data storage method for failure analysis at the time of the conventional failure detection. 従来の故障検出時の故障解析用データ保存におけるソフトウェアの処理負荷を説明するためのタイミングチャートである。It is a timing chart for demonstrating the processing load of the software in the data storage for failure analysis at the time of the conventional failure detection.

符号の説明Explanation of symbols

1 操向ハンドル
2 コラム軸
3 減速ギヤ
4a、4b ユニバーサルジョイント
5 ピニオンラック機構
6 タイロッド
10 トルクセンサ
12 車速センサ
14 バッテリ
20 操舵補助モータ
30 コントロールユニット
100 MCU(マイクロコントロールユニット)
101 CPU(制御手段)
102 ROM
103 RAM
103a 第1のメモリ領域
103b 第2のメモリ領域
104 EEPROM
105 A/D変換器
106 インターフェース
107 バス
110 FETプリドライバ回路
120 モータ駆動回路(インバータ)
130 電流検出回路
140 位置検出回路
DESCRIPTION OF SYMBOLS 1 Steering handle 2 Column shaft 3 Reduction gear 4a, 4b Universal joint 5 Pinion rack mechanism 6 Tie rod 10 Torque sensor 12 Vehicle speed sensor 14 Battery 20 Steering auxiliary motor 30 Control unit 100 MCU (micro control unit)
101 CPU (control means)
102 ROM
103 RAM
103a first memory area 103b second memory area 104 EEPROM
105 A / D converter 106 Interface 107 Bus 110 FET pre-driver circuit 120 Motor drive circuit (inverter)
130 current detection circuit 140 position detection circuit

Claims (4)

車両のステアリング系に発生する操舵トルクおよび前記車両の速度に基づいて演算した操舵補助指令値と、前記ステアリング系に操舵補助力を付与する操舵補助モータの電流検出値とに基づいて、前記操舵補助モータを制御する電動パワーステアリング装置において、
前記操舵補助モータを制御する制御手段と、
前記制御手段のワークエリアとして使用され、センサデータや前記制御手段の演算結果等が格納されるランダムアクセスメモリと、
前記電動パワーステアリング装置の故障を検出する故障検出手段と、
を備え、
前記ランダムアクセスメモリは、少なくとも2つのメモリ領域を有し、一方のメモリ領域を通常処理に使用し、前記故障検出手段で故障が検出された場合には、他方のメモリ領域を通常処理に使用する領域に切り替え、前記一方のメモリ領域を故障解析用データの保存領域とすることを特徴とする電動パワーステアリング装置。
Based on the steering assist command value calculated based on the steering torque generated in the steering system of the vehicle and the speed of the vehicle, and the current detection value of the steering assist motor that applies the steering assist force to the steering system, the steering assist In the electric power steering device for controlling the motor,
Control means for controlling the steering assist motor;
Random access memory that is used as a work area of the control means, and stores sensor data, calculation results of the control means, and the like,
A failure detecting means for detecting a failure of the electric power steering device;
With
The random access memory has at least two memory areas, and one memory area is used for normal processing, and when a failure is detected by the failure detection means, the other memory area is used for normal processing. The electric power steering apparatus according to claim 1, wherein the memory area is switched to an area and the one memory area is used as a storage area for failure analysis data.
前記2つのメモリ領域の切り替えは、メモリ領域を配列定義してアドレス指定するインデックス方式、固定アドレスに対して所定値を加減算するオフセット方式、または物理的なメモリ領域を選択するバンク方式で行うことを特徴とする請求項1に記載の電動パワーステアリング装置。   The switching between the two memory areas is performed by an index system in which memory areas are defined and addressed, an offset system in which a predetermined value is added to or subtracted from a fixed address, or a bank system in which a physical memory area is selected. The electric power steering apparatus according to claim 1, wherein the electric power steering apparatus is characterized. 前記故障解析用データを記録するための不揮発性記憶手段を備え、
前記制御手段は、空き時間に、前記ランダムアクセスメモリに保存されている故障解析用データを前記不揮発性記憶手段に保存することを特徴とする請求項1または請求項2に記載の電動パワーステアリング装置。
Non-volatile storage means for recording the failure analysis data,
3. The electric power steering apparatus according to claim 1, wherein the control unit stores the failure analysis data stored in the random access memory in the non-volatile storage unit during an idle time. .
前記故障検出手段で故障が検出される毎に、通常処理を行う領域と故障解析用データの保存領域とを、前記一方のメモリ領域と前記他方のメモリ領域とで交互に切り替えることを特徴とする請求項1〜請求項3のいずれか1つに記載の電動パワーステアリング装置。   Each time a failure is detected by the failure detection means, a normal processing region and a failure analysis data storage region are alternately switched between the one memory region and the other memory region. The electric power steering apparatus according to any one of claims 1 to 3.
JP2008121448A 2008-05-07 2008-05-07 Electric power steering device Expired - Fee Related JP5169450B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008121448A JP5169450B2 (en) 2008-05-07 2008-05-07 Electric power steering device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008121448A JP5169450B2 (en) 2008-05-07 2008-05-07 Electric power steering device

Publications (2)

Publication Number Publication Date
JP2009269458A true JP2009269458A (en) 2009-11-19
JP5169450B2 JP5169450B2 (en) 2013-03-27

Family

ID=41436412

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008121448A Expired - Fee Related JP5169450B2 (en) 2008-05-07 2008-05-07 Electric power steering device

Country Status (1)

Country Link
JP (1) JP5169450B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011178252A (en) * 2010-03-01 2011-09-15 Nsk Ltd Electric power steering device
KR20130052864A (en) * 2011-11-14 2013-05-23 현대모비스 주식회사 Appratus and method for checking relay of mdps apparatus
JP2015003570A (en) * 2013-06-20 2015-01-08 株式会社デンソー Self-diagnosis system and self-diagnosis method of vehicle
JP2017229115A (en) * 2016-06-20 2017-12-28 株式会社デンソー Motor controller

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5125941A (en) * 1974-08-28 1976-03-03 Tokyo Shibaura Electric Co
JPH01173137A (en) * 1987-12-26 1989-07-07 Fujitsu Ltd Queue control system
JPH04165440A (en) * 1990-10-29 1992-06-11 Matsushita Electric Ind Co Ltd Device for operation mode changing by bank switching
JP2000337977A (en) * 1999-05-31 2000-12-08 Suzuki Motor Corp Torque sensor for motor-driven power steering
JP2009001214A (en) * 2007-06-25 2009-01-08 Nsk Ltd Electric power steering device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5125941A (en) * 1974-08-28 1976-03-03 Tokyo Shibaura Electric Co
JPH01173137A (en) * 1987-12-26 1989-07-07 Fujitsu Ltd Queue control system
JPH04165440A (en) * 1990-10-29 1992-06-11 Matsushita Electric Ind Co Ltd Device for operation mode changing by bank switching
JP2000337977A (en) * 1999-05-31 2000-12-08 Suzuki Motor Corp Torque sensor for motor-driven power steering
JP2009001214A (en) * 2007-06-25 2009-01-08 Nsk Ltd Electric power steering device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011178252A (en) * 2010-03-01 2011-09-15 Nsk Ltd Electric power steering device
KR20130052864A (en) * 2011-11-14 2013-05-23 현대모비스 주식회사 Appratus and method for checking relay of mdps apparatus
KR101878986B1 (en) * 2011-11-14 2018-07-16 현대모비스 주식회사 Appratus and Method for Checking Relay of MDPS apparatus
JP2015003570A (en) * 2013-06-20 2015-01-08 株式会社デンソー Self-diagnosis system and self-diagnosis method of vehicle
JP2017229115A (en) * 2016-06-20 2017-12-28 株式会社デンソー Motor controller

Also Published As

Publication number Publication date
JP5169450B2 (en) 2013-03-27

Similar Documents

Publication Publication Date Title
JP6098581B2 (en) Motor control device and electric power steering device using the same
JP5169450B2 (en) Electric power steering device
JP2008132919A (en) Electric power steering control device
JP4537904B2 (en) Motor control method
JP2008172896A (en) Controller of vehicular motor
JP2006331086A (en) Memory diagnostic method and electric power steering device with the function
US20060113938A1 (en) Power steering control device and method thereof
JP3641615B2 (en) Steering control device
JP6512065B2 (en) Electronic control unit
JP5338060B2 (en) Electric power steering device
JP6589750B2 (en) Motor control device
JP5169410B2 (en) Electric power steering device
JP4482927B2 (en) Booster
JP2008195246A (en) Steering device
JP5310009B2 (en) Electric power steering device
JP5205980B2 (en) Electric power steering device
JP5397273B2 (en) Electric power steering device
JP2009062009A (en) Control device of electric power steering device
JP5169411B2 (en) Electric power steering device
KR20150008531A (en) Vehicle Controlling Method and Apparatus therefor
JP5310590B2 (en) Electric power steering device
JP2009214608A (en) Electric power steering device
JP2008117129A (en) Data collection device for abnormality analysis and on-vehicle controller using the same
JP2009101765A (en) Electric power steering device
JP5233506B2 (en) Electric power steering device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110331

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121121

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: 20121204

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121217

R150 Certificate of patent or registration of utility model

Ref document number: 5169450

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees