JP2021010222A - Current direction determination apparatus - Google Patents
Current direction determination apparatus Download PDFInfo
- Publication number
- JP2021010222A JP2021010222A JP2019122417A JP2019122417A JP2021010222A JP 2021010222 A JP2021010222 A JP 2021010222A JP 2019122417 A JP2019122417 A JP 2019122417A JP 2019122417 A JP2019122417 A JP 2019122417A JP 2021010222 A JP2021010222 A JP 2021010222A
- Authority
- JP
- Japan
- Prior art keywords
- electric motor
- switch
- current
- determined
- drive
- 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
Links
- 238000005259 measurement Methods 0.000 claims description 10
- 238000000034 method Methods 0.000 abstract description 20
- 230000002159 abnormal effect Effects 0.000 description 12
- 238000006243 chemical reaction Methods 0.000 description 8
- 238000001514 detection method Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Control Of Direct Current Motors (AREA)
Abstract
Description
本発明は、電流方向判定装置に関する。 The present invention relates to a current direction determination device.
従来、車両に搭載されて、電動モータの動力によりステアリング機構の操舵をアシストする電動パワーステアリング装置(EPS:Electric Power Steering)が知られている。 Conventionally, an electric power steering device (EPS: Electric Power Steering), which is mounted on a vehicle and assists steering of a steering mechanism by the power of an electric motor, is known.
電動パワーステアリング装置の制御では、ハンドル(ステアリングホイール)に加えられる操舵トルクの向きおよび大きさ、ならびに車速に応じた目標電流値が設定される。そして、目標電流値に基づいて、電動モータがフィードバック制御される。これにより、操舵状態に応じた動力が電動モータから出力され、その動力が操舵補助力としてステアリング機構に与えられる。 In the control of the electric power steering device, the direction and magnitude of the steering torque applied to the steering wheel (steering wheel) and the target current value according to the vehicle speed are set. Then, the electric motor is feedback-controlled based on the target current value. As a result, power according to the steering state is output from the electric motor, and the power is given to the steering mechanism as steering assist force.
その一方で、かかる制御を実行するメインCPU(Central Processing Unit)とは別のサブCPUにより、不正アシストとなる異常制御が行われていないか監視されている。この不正アシスト監視では、サブCPUにより、メインCPUによる電動モータの駆動方向が判定される。また、電動モータに流れる電流が検出される。そして、電動モータの駆動方向および電流値から、不正アシストとなる異常制御が行われているか否かが判定される。 On the other hand, a sub CPU other than the main CPU (Central Processing Unit) that executes such control monitors whether or not abnormal control that is an illegal assist is performed. In this fraudulent assist monitoring, the sub CPU determines the driving direction of the electric motor by the main CPU. In addition, the current flowing through the electric motor is detected. Then, from the drive direction and the current value of the electric motor, it is determined whether or not the abnormality control that is an illegal assist is performed.
たとえば、電動モータがブラシ付きDCモータである場合、電動モータの駆動回路には、図5に示されるHブリッジ回路101を用いることができる。Hブリッジ回路101は、スイッチSW1,SW2の直列回路とスイッチSW3,SW4の直列回路とを並列に設けた構成の回路である。スイッチSW1,SW3に直流電源が接続され、スイッチSW2,SW4が抵抗Rを介してグランドに接続される。スイッチSW1,SW2の接続点とスイッチSW3,SW4の接続点とに、電動モータMが接続される。 For example, when the electric motor is a brushed DC motor, the H-bridge circuit 101 shown in FIG. 5 can be used as the drive circuit of the electric motor. The H-bridge circuit 101 is a circuit having a configuration in which a series circuit of the switches SW1 and SW2 and a series circuit of the switches SW3 and SW4 are provided in parallel. A DC power supply is connected to switches SW1 and SW3, and switches SW2 and SW4 are connected to ground via a resistor R. The electric motor M is connected to the connection points of the switches SW1 and SW2 and the connection points of the switches SW3 and SW4.
スイッチSW1,SW4がオンにされ、スイッチSW2,SW3がオフにされることにより、電動モータMを右方向に回転させる右方向の電流(右電流)が電動モータMに流れる。一方、スイッチSW2,SW3がオンにされ、スイッチSW1,SW4がオフにされると、電動モータMを左方向に回転させる左方向の電流(左電流)が電動モータMに流れる。 When the switches SW1 and SW4 are turned on and the switches SW2 and SW3 are turned off, a rightward current (right current) that rotates the electric motor M to the right flows through the electric motor M. On the other hand, when the switches SW2 and SW3 are turned on and the switches SW1 and SW4 are turned off, a leftward current (left current) that rotates the electric motor M to the left flows through the electric motor M.
そのため、メインCPUからスイッチSW1に制御パルス信号が出力されているときは、メインCPUによる電動モータMの駆動方向が右方向となり、メインCPUからスイッチSW1に制御パルス信号が出力されていないときは、メインCPUによる電動モータMの駆動方向が左方向となる。このことから、サブCPUにより、メインCPUからスイッチSW1に出力される制御パルス信号のエッジが検出されて、そのエッジが検出されるときには、電動モータMの駆動方向が右方向であると判定され、エッジが検出されないときには、電動モータMの駆動方向が左方向であると判定される。 Therefore, when the control pulse signal is output from the main CPU to the switch SW1, the drive direction of the electric motor M by the main CPU is to the right, and when the control pulse signal is not output from the main CPU to the switch SW1, The drive direction of the electric motor M by the main CPU is to the left. From this, the sub CPU detects the edge of the control pulse signal output from the main CPU to the switch SW1, and when the edge is detected, it is determined that the drive direction of the electric motor M is the right direction. When the edge is not detected, it is determined that the drive direction of the electric motor M is the left direction.
また、サブCPUにより、抵抗Rを流れる電流が検出される。しかしながら、その検出される電流の値には、電動モータMに流れる電流の方向に応じた符号は付かない。そのため、サブCPUにより、たとえば、電動モータMの駆動方向が右方向であると判定しているときには、電流値に正の符号が付与され、駆動方向が左方向であると判定しているときには、電流値に負の符号が付される。そして、その符号が付された電流値が正常値であれば、不正アシストとなる異常制御は行われていないと判定され、符号が付された電流値が異常値であれば、不正アシストとなる異常制御が行われていると判定される。 Further, the sub CPU detects the current flowing through the resistor R. However, the value of the detected current is not marked according to the direction of the current flowing through the electric motor M. Therefore, for example, when the sub CPU determines that the drive direction of the electric motor M is in the right direction, a positive sign is given to the current value, and when it is determined that the drive direction is in the left direction, the sub CPU gives a positive sign. The current value is marked with a negative sign. Then, if the current value with the sign is a normal value, it is determined that the abnormal control that becomes the illegal assist is not performed, and if the current value with the sign is an abnormal value, the abnormal assist is performed. It is determined that abnormal control is being performed.
ところが、メインCPUからスイッチSW1への制御パルス信号の出力が停止された直後は、電動モータMに右電流が流れている。このときに電動モータMの駆動方向の判定および電流値の検出が行われると、サブCPUにより、スイッチSW1への制御パルス信号のエッジが検出されないので、電動モータMの駆動方向が左方向と判定され、この判定に従って、右電流値の電流値であるにもかかわらず、その電流値に負の符号が付される。当該電流値は、右電流値としては正常値であっても、負の符号が付された電流値としては異常値を示す場合がある。この場合、不正アシストとなる異常制御が行われていると誤判定される。 However, immediately after the output of the control pulse signal from the main CPU to the switch SW1 is stopped, a right current is flowing through the electric motor M. At this time, if the drive direction of the electric motor M is determined and the current value is detected, the sub CPU does not detect the edge of the control pulse signal to the switch SW1, so that the drive direction of the electric motor M is determined to be the left direction. Then, according to this determination, the current value is given a negative sign even though the current value is the right current value. Even if the current value is a normal value as the right current value, it may show an abnormal value as the current value with a negative sign. In this case, it is erroneously determined that abnormal control that is an illegal assist is being performed.
本発明の目的は、電動モータに流れる電流の方向を正確に判定できる、電流方向判定装置を提供することである。 An object of the present invention is to provide a current direction determining device capable of accurately determining the direction of a current flowing through an electric motor.
前記の目的を達成するため、本発明に係る電流方向判定装置は、電動モータの右駆動時にオンにされ、非駆動時にオフにされる第1スイッチと、電動モータの左駆動時にオンにされ、非駆動時にオフにされる第2スイッチとを備える駆動回路から電動モータに電流が供給され、第1スイッチのオン、第1スイッチおよび第2スイッチのオフならびに第2スイッチのオンが所定周期で切り替えられる構成において、電動モータに流れる電流の方向を判定する装置であって、第1スイッチのオンからの経過時間を計測する第1タイマと、第2スイッチのオンからの経過時間を計測する第2タイマと、第1タイマによる計測時間および第2タイマによる計測時間の両方が0である場合、電動モータが非駆動状態であると判定し、第1タイマによる計測時間が所定周期以上に設定された閾値以下である場合、電動モータが右駆動状態であると判定し、第2タイマによる計測時間が閾値以下である場合、電動モータが左駆動状態であると判定する第1判定手段と、第1判定手段により電動モータが右駆動状態であると判定された場合に、電動モータに流れる電流の方向を右駆動の方向と判定し、第1判定手段により電動モータが左駆動状態であると判定された場合に、電動モータに流れる電流の方向を左駆動の方向と判定し、第1判定手段により電動モータが非駆動状態であると判定された場合に、電動モータに流れる電流の方向を前回の判定方向と同一方向と判定する第2判定手段とを含む。 In order to achieve the above object, the current direction determination device according to the present invention has a first switch that is turned on when the electric motor is driven to the right and turned off when the electric motor is not driven, and a first switch that is turned on when the electric motor is driven to the left. A current is supplied to the electric motor from a drive circuit including a second switch that is turned off when not driven, and the first switch is turned on, the first switch and the second switch are turned off, and the second switch is turned on at a predetermined cycle. A device that determines the direction of the current flowing through the electric motor, the first timer that measures the elapsed time from the on of the first switch, and the second that measures the elapsed time from the on of the second switch. When both the timer and the measurement time by the first timer and the measurement time by the second timer are 0, it is determined that the electric motor is in the non-driving state, and the measurement time by the first timer is set to a predetermined cycle or longer. When it is below the threshold value, it is determined that the electric motor is in the right drive state, and when the measurement time by the second timer is below the threshold value, the first determination means and the first determination means that determine that the electric motor is in the left drive state. When the determination means determines that the electric motor is in the right drive state, the direction of the current flowing through the electric motor is determined to be the right drive direction, and the first determination means determines that the electric motor is in the left drive state. In this case, the direction of the current flowing through the electric motor is determined to be the left drive direction, and when the first determination means determines that the electric motor is in the non-drive state, the direction of the current flowing through the electric motor is the previous direction. A second determination means for determining the same direction as the determination direction is included.
この構成によれば、第1スイッチのオンからの経過時間が閾値を超えるまでは、電動モータに流れる電流の方向が右駆動の方向であると判定される。また、第2スイッチのオンからの経過時間が閾値を超えるまでは、電動モータに流れる電流の方向が左駆動の方向であると判定される。第1スイッチおよび第2スイッチの両方がオフであるときには、電動モータに流れる電流の方向が前回判定した方向と同一方向であると判定される。これにより、第1スイッチおよび第2スイッチの各オフ直後に電動モータに流れる電流の方向が誤判定されることを抑制でき、電動モータに流れる電流の方向を正確に判定することができる。 According to this configuration, it is determined that the direction of the current flowing through the electric motor is the right drive direction until the elapsed time from the on of the first switch exceeds the threshold value. Further, it is determined that the direction of the current flowing through the electric motor is the left drive direction until the elapsed time from the on of the second switch exceeds the threshold value. When both the first switch and the second switch are off, it is determined that the direction of the current flowing through the electric motor is the same as the direction previously determined. As a result, it is possible to prevent the direction of the current flowing through the electric motor from being erroneously determined immediately after each of the first switch and the second switch is turned off, and it is possible to accurately determine the direction of the current flowing through the electric motor.
本発明によれば、電動モータに流れる電流の方向を正確に判定することができる。 According to the present invention, the direction of the current flowing through the electric motor can be accurately determined.
以下では、本発明の実施の形態について、添付図面を参照しつつ詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
<モータ制御装置>
図1は、本発明の一実施形態に係る電流方向判定装置が適用されたモータ制御装置1の構成を示す図である。
<Motor control device>
FIG. 1 is a diagram showing a configuration of a
モータ制御装置1は、たとえば、車両に搭載されて、ステアリング機構の操舵をアシストする電動パワーステアリング装置の操舵補助力の動力源である電動モータMを制御するものである。
The
モータ制御装置1は、電動モータMを駆動する駆動回路(モータドライバ)2を備えている。電動モータMは、ブラシ付きDCモータであり、駆動回路2は、Hブリッジ回路からなる。Hブリッジ回路の構成は、図5に示される構成であり、前述したとおりであるから、ここでの説明を省略する。また、以下の説明では、図5に示される構成が駆動回路2の構成であるとして、図5に示されている参照符号をそのまま使用する。
The
モータ制御装置1は、メインCPU3およびサブCPU4を備えている。メインCPU3およびサブCPU4は、たとえば、個別のマイコン(マイクロコントローラユニット)に内蔵されている。マイコンには、フラッシュメモリなどの不揮発性メモリおよびDRAM(Dynamic Random Access Memory)などの揮発性メモリがさらに内蔵されている。
The
メインCPU3は、電動モータMを制御する。具体的には、メインCPU3は、車両のステアリングホイールに加えられる操舵トルクの向きおよび大きさ、ならびに車速に応じた目標電流値を設定する。そして、その目標電流値の電流が電動モータMに供給されるように、目標電流値に応じたデューティの制御パルス信号を駆動回路2に出力する。電動モータMを右方向(ステアリング機構に右方向の操舵補助力が付与される方向)に駆動する場合、メインCPU3は、スイッチSW1,SW4に制御パルス信号を出力する。一方、電動モータMを左方向(ステアリング機構に左方向の操舵補助力が付与される方向)に駆動する場合、メインCPU3は、スイッチSW2,SW3に制御パルス信号を出力する。これにより、操舵状態に応じた動力が電動モータMから出力され、その動力が操舵補助力としてステアリング機構に与えられる。
The main CPU 3 controls the electric motor M. Specifically, the main CPU 3 sets the direction and magnitude of the steering torque applied to the steering wheel of the vehicle, and the target current value according to the vehicle speed. Then, a control pulse signal having a duty corresponding to the target current value is output to the
そのため、メインCPU3の暴走などにより、電動モータMの制御に異常が発生すると、ステアリングホイールの操作に反する操舵補助力がステアリング機構に与えられる可能性がある。そこで、サブCPU4は、不正アシストとなる異常制御が行われていないかを監視している。不正アシスト監視のため、サブCPU4は、メインCPU3から駆動回路2のスイッチSW1,SW2に与えられる信号をサンプリングする。また、サブCPU4は、駆動回路2の抵抗Rに流れる電流の値、つまり電動モータMに流れる電流の値(以下、「モータ電流値」という。)を検出する。
Therefore, if an abnormality occurs in the control of the electric motor M due to a runaway of the main CPU 3, a steering assist force contrary to the operation of the steering wheel may be applied to the steering mechanism. Therefore, the
また、サブCPU4は、次に説明する電流方向判定処理により、電動モータMに流れる電流の方向を判定する。そして、電流の方向が電動モータMを右方向に回転させる右方向であると判定した場合、モータ電流値に正の符号を付し、電流の方向が電動モータMを右方向に回転させる右方向であると判定した場合、モータ電流値に負の符号を付す。サブCPU4は、その符号を付した電流値が正常値であれば、不正アシストとなる異常制御は行われていないと判定し、符号を付した電流値が異常値であれば、不正アシストとなる異常制御が行われていると判定する。
Further, the
なお、駆動回路2のスイッチSW1〜SW4が半導体デバイスで構成される場合、たとえば、スイッチSW1,SW3には、Pチャネル型のMOSFETが採用され、スイッチSW2,SW4には、Nチャネル型のMOSFETが採用される。
When the switches SW1 to SW4 of the
<電流方向判定処理>
図2は、サブCPU4により実行される電流方向判定処理の流れを示すフローチャートである。図3は、電流方向判定処理で使用される真理値表Aである。図4は、電流方向判定処理で使用される真理値表Bである。
<Current direction determination processing>
FIG. 2 is a flowchart showing the flow of the current direction determination process executed by the
一定周期での割り込みタイミングまたはA/D変換直前のタイミングが到来すると、サブCPU4により、図2に示される電流方向判定処理が実行される。一定周期は、たとえば、サブCPU4が駆動回路2のスイッチSW1,SW2に与えられる信号をサンプリングするサンプリング周期である。メインCPU3は、一定の駆動切替周期(所定周期)で、制御パルス信号をスイッチSW1,SW4に出力する右駆動状態と、制御パルス信号をスイッチSW2,SW3に出力する左駆動状態と、制御パルス信号を出力しない非駆動状態とに切り替える。サンプリング周期は、駆動切替周期の1/2未満に設定される。A/D変換は、サブCPU4により駆動回路2の抵抗Rに流れる電流のデジタル値への変換(モータ電流値の検出)であり、一定の検出周期で実行される。
When the interrupt timing at a fixed cycle or the timing immediately before the A / D conversion arrives, the
電流方向判定処理では、まず、駆動回路2のスイッチSW1,SW2に与えられる信号がサンプリングされる。そして、信号の立ち上がりまたは立ち下がりのエッジが検出される。スイッチSW1に与えられる信号にエッジが検出される場合、メインCPU3からスイッチSW1に制御パルス信号が出力されている右駆動状態であり、電動モータMの駆動方向が右方向(右駆動方向)であると判定できる。また、スイッチSW2に与えられる信号にエッジが検出される場合、メインCPU3からスイッチSW2に制御パルス信号が出力されている左駆動状態であり、電動モータMの駆動方向が左方向(左駆動方向)であると判定できる。スイッチSW1,SW2に与えられる信号にエッジが検出されない場合、メインCPU3から制御パルス信号が出力されていない非駆動状態であると判定できる。制御上、スイッチSW1,SW2に制御パルス信号が同時に与えられることはないので、スイッチSW1,SW2に与えられる信号の両方にエッジが検出される場合はない。
In the current direction determination process, first, the signals given to the switches SW1 and SW2 of the
サブCPU4には、図1に示されるように、右タイマ5および左タイマ6が接続されている。スイッチSW1に与えられる信号にエッジが検出されると、右タイマ5が始動されて、右タイマ5による経過時間の計測が開始される。また、スイッチSW2に与えられる信号にエッジが検出された場合には、左タイマ6が始動されて、左タイマ6による経過時間の計測が開始される。
As shown in FIG. 1, a
その後、右タイマ5の計測値(以下、「右タイマ値」という。)および左タイマ6の計測値(以下、「左タイマ値」という。)が取得される。そして、図3に示される真理値表Aが参照されて、右タイマ値および左タイマ値から、電動モータMの駆動方向が決定される(ステップS1)。 After that, the measured value of the right timer 5 (hereinafter referred to as “right timer value”) and the measured value of the left timer 6 (hereinafter referred to as “left timer value”) are acquired. Then, with reference to the truth table A shown in FIG. 3, the drive direction of the electric motor M is determined from the right timer value and the left timer value (step S1).
図3に示される真理値表Aの内容は、所定周期、つまり駆動切替周期が50μsである場合の一例である。真理値表Aの内容に従うと、たとえば、右タイマ値が0〜55μsの範囲内であり、左タイマ値が0μsである場合、電動モータMの駆動方向が右駆動方向であると決定される。また、右タイマ値が0μsであり、左タイマ値が0〜55μsの範囲内である場合、電動モータMの駆動方向が左駆動方向であると決定される。左タイマ値および右タイマ値の両方が0μsである場合、電動モータMが非駆動状態であると決定される。それら以外の右タイマ値と左タイマ値との組合せは、何らかの異常が発生していない限りは存在しないが、真理値表Aに従って、右タイマ値および左タイマ値の組合せに応じた駆動方向に決定される。なお、電動モータMが非駆動状態である場合、その駆動方向を「非駆動方向」とする。 The content of the truth table A shown in FIG. 3 is an example in the case where a predetermined cycle, that is, a drive switching cycle is 50 μs. According to the contents of the truth table A, for example, when the right timer value is in the range of 0 to 55 μs and the left timer value is 0 μs, it is determined that the drive direction of the electric motor M is the right drive direction. When the right timer value is 0 μs and the left timer value is in the range of 0 to 55 μs, it is determined that the drive direction of the electric motor M is the left drive direction. When both the left timer value and the right timer value are 0 μs, it is determined that the electric motor M is in the non-driving state. Other combinations of the right timer value and the left timer value do not exist unless some abnormality has occurred, but the drive direction is determined according to the combination of the right timer value and the left timer value according to the truth table A. Will be done. When the electric motor M is in the non-driving state, the driving direction thereof is defined as the “non-driving direction”.
駆動方向の決定後、A/D変換直前のタイミングであるか否かが判断される(ステップS2)。 After the drive direction is determined, it is determined whether or not the timing is immediately before the A / D conversion (step S2).
そして、今回の電流方向判定処理がA/D変換直前のタイミングで開始された場合(ステップS2のYES)、図4に示される真理値表Bが参照されて、前回の電流方向判定処理で決定された駆動方向(以下、「前回駆動方向」という。)および今回の電流方向判定処理で決定された駆動方向(以下、「今回駆動方向」という。)から、電動モータMに流れる電流の方向が決定される(ステップS3)。 Then, when the current current direction determination process is started at the timing immediately before the A / D conversion (YES in step S2), the truth table B shown in FIG. 4 is referred to and the determination is made in the previous current direction determination process. The direction of the current flowing through the electric motor M is determined from the driven direction (hereinafter referred to as "previous drive direction") and the drive direction determined by the current direction determination process (hereinafter referred to as "current drive direction"). It is determined (step S3).
たとえば、前回駆動方向が右駆動方向であり、今回駆動方向が右駆動方向である場合、電動モータMに流れる電流の方向が右方向(右電流)であると判定される。前回駆動方向が右駆動方向であり、今回駆動方向が非駆動方向である場合、電動モータMに流れる電流の方向が右方向(右電流)であると判定される。前回駆動方向が右駆動方向であり、今回駆動方向が左駆動方向である場合、電動モータMに流れる電流の方向が左方向(左電流)であると判定される。また、前回駆動方向が左駆動方向であり、今回駆動方向が右駆動方向である場合、電動モータMに流れる電流の方向が右方向(右電流)であると判定される。前回駆動方向が左右駆動方向であり、今回駆動方向が非駆動方向である場合、電動モータMに流れる電流の方向が左方向(左電流)であると判定される。前回駆動方向が左駆動方向であり、今回駆動方向が左駆動方向である場合、電動モータMに流れる電流の方向が左方向(左電流)であると判定される。 For example, when the previous drive direction is the right drive direction and the current drive direction is the right drive direction, it is determined that the direction of the current flowing through the electric motor M is the right direction (right current). When the previous drive direction is the right drive direction and the current drive direction is the non-drive direction, it is determined that the direction of the current flowing through the electric motor M is the right direction (right current). When the previous drive direction is the right drive direction and the current drive direction is the left drive direction, it is determined that the direction of the current flowing through the electric motor M is the left direction (left current). Further, when the previous drive direction is the left drive direction and the current drive direction is the right drive direction, it is determined that the direction of the current flowing through the electric motor M is the right direction (right current). When the previous drive direction is the left-right drive direction and the current drive direction is the non-drive direction, it is determined that the direction of the current flowing through the electric motor M is the left direction (left current). When the previous drive direction is the left drive direction and the current drive direction is the left drive direction, it is determined that the direction of the current flowing through the electric motor M is the left direction (left current).
一方、A/D変換直前のタイミングでない場合、つまり今回の電流方向判定処理が割り込みタイミングで開始された場合(ステップS2のNO)、電動モータMに流れる電流の方向を決定する処理(ステップS3)がスキップされる。今回の電流方向判定処理がA/D変換直前のタイミングで開始されていない場合、次のA/D変換直前のタイミングで電流方向判定処理が実行されるまでの間に、モータ電流値が新たに検出されることはない。したがって、電流方向決定の処理がスキップされることにより、その処理が無駄に実行されることを抑制でき、サブCPU4の負荷を軽減することができる。
On the other hand, when the timing is not immediately before the A / D conversion, that is, when the current direction determination process is started at the interrupt timing (NO in step S2), the process of determining the direction of the current flowing through the electric motor M (step S3). Is skipped. If the current current direction determination process is not started at the timing immediately before the A / D conversion, the motor current value is newly added until the current direction determination process is executed at the timing immediately before the next A / D conversion. It will not be detected. Therefore, by skipping the process of determining the current direction, it is possible to prevent the process from being unnecessarily executed, and it is possible to reduce the load on the
その後、今回駆動方向が非駆動方向であるか否かが判断される(ステップS4)。そして、今回駆動方向が非駆動方向である場合(ステップS4のYES)、前回駆動方向がそのまま継続して前回駆動方向として保持される(ステップS5)。今回駆動方向が非駆動方向でない場合には(ステップS4のNO)、今回駆動方向が前回駆動方向として保持される(ステップS6)。そして、電流方向判定処理が終了される。 After that, it is determined whether or not the drive direction is the non-drive direction this time (step S4). When the drive direction is the non-drive direction this time (YES in step S4), the previous drive direction continues as it is and is held as the previous drive direction (step S5). If the drive direction this time is not the non-drive direction (NO in step S4), the drive direction this time is held as the previous drive direction (step S6). Then, the current direction determination process is completed.
<作用効果>
この電流方向判定処理によれば、メインCPU3からスイッチSW1に制御パルス信号が出力されることによるスイッチSW1のオンが検出されてからの経過時間が駆動切替周期以上に設定された閾値の一例である55μsを超えるまでは、電動モータMに流れる電流の方向が右駆動の方向であると判定される。また、メインCPU3からスイッチSW2に制御パルス信号が出力されることによるスイッチSW2のオンが検出されてからの経過時間が55μsを超えるまでは、電動モータMに流れる電流の方向が左駆動の方向であると判定される。スイッチSW1,SW2の両方に制御パルス信号が出力されておらず、スイッチSW1およびスイッチSW2の両方がオフであるときには、電動モータMに流れる電流の方向が前回判定した方向と同一方向であると判定される。これにより、スイッチSW1およびスイッチSW2の各オフ直後に電動モータMに流れる電流の方向が誤判定されることを抑制でき、電動モータMに流れる電流の方向を正確に判定することができる。その結果、不正アシストとなる異常制御が行われているか否かを正確に判定することができる。
<Effect>
According to this current direction determination process, it is an example of a threshold value in which the elapsed time from the detection of the on of the switch SW1 due to the output of the control pulse signal from the main CPU 3 to the switch SW1 is set to be equal to or longer than the drive switching cycle. Until it exceeds 55 μs, it is determined that the direction of the current flowing through the electric motor M is the right drive direction. Further, until the elapsed time from the detection of the on of the switch SW2 due to the output of the control pulse signal from the main CPU 3 to the switch SW2 exceeds 55 μs, the direction of the current flowing through the electric motor M is the left drive direction. It is determined that there is. When no control pulse signal is output to both switches SW1 and SW2 and both switch SW1 and switch SW2 are off, it is determined that the direction of the current flowing through the electric motor M is the same as the direction previously determined. Will be done. As a result, it is possible to prevent the direction of the current flowing through the electric motor M from being erroneously determined immediately after each of the switch SW1 and the switch SW2 is turned off, and it is possible to accurately determine the direction of the current flowing through the electric motor M. As a result, it is possible to accurately determine whether or not abnormal control that is an illegal assist is performed.
<変形例>
以上、本発明の一実施形態について説明したが、本発明は、他の形態で実施することもできる。
<Modification example>
Although one embodiment of the present invention has been described above, the present invention can also be implemented in other embodiments.
たとえば、駆動回路2のスイッチSW1,SW2に与えられる信号がサンプリングされるとしたが、スイッチSW1に与えられる信号に代えて、スイッチSW4に与えられる信号がサンプリングされ、スイッチSW2に与えられる信号に代えて、スイッチSW3に与えられる信号がサンプリングされて、前述と同様の処理が実行されてもよい。
For example, it is assumed that the signals given to the switches SW1 and SW2 of the
前述の実施形態では、モータ制御装置1が電動パワーステアリング装置の電動モータMを制御するものであるとした。しかし、モータ制御装置1は、電動パワーステアリング装置以外の装置に備えられる電動モータを制御するものであってもよい。
In the above-described embodiment, the
その他、前述の構成には、特許請求の範囲に記載された事項の範囲で種々の設計変更を施すことが可能である。 In addition, various design changes can be made to the above-mentioned configuration within the scope of the matters described in the claims.
2:駆動回路
4:サブCPU(電流方向判定装置)
5:右タイマ(第1タイマ)
6:左タイマ(第2タイマ)
M:電動モータ
SW1:スイッチ(第1スイッチ)
SW2:スイッチ(第2スイッチ)
2: Drive circuit 4: Sub CPU (current direction determination device)
5: Right timer (1st timer)
6: Left timer (second timer)
M: Electric motor SW1: Switch (1st switch)
SW2: Switch (second switch)
Claims (1)
前記第1スイッチのオンからの経過時間を計測する第1タイマと、
前記第2スイッチのオンからの経過時間を計測する第2タイマと、
前記第1タイマによる計測時間および前記第2タイマによる計測時間の両方が0である場合、前記電動モータが非駆動状態であると判定し、前記第1タイマによる計測時間が前記所定周期以上に設定された閾値以下である場合、前記電動モータが右駆動状態であると判定し、前記第2タイマによる計測時間が前記閾値以下である場合、前記電動モータが左駆動状態であると判定する第1判定手段と、
前記第1判定手段により前記電動モータが右駆動状態であると判定された場合に、前記電動モータに流れる電流の方向を右駆動の方向と判定し、前記第1判定手段により前記電動モータが左駆動状態であると判定された場合に、前記電動モータに流れる電流の方向を左駆動の方向と判定し、前記第1判定手段により前記電動モータが非駆動状態であると判定された場合に、前記電動モータに流れる電流の方向を前回の判定方向と同一方向と判定する第2判定手段とを含む、電流方向判定装置。 From a drive circuit including a first switch that is turned on when the electric motor is driven to the right and turned off when the electric motor is not driven, and a second switch that is turned on when the electric motor is driven to the left and turned off when the electric motor is not driven. The direction of the current flowing through the electric motor in a configuration in which a current is supplied to the electric motor and the first switch is turned on, the first switch and the second switch are turned off, and the second switch is turned on at a predetermined cycle. It is a device to judge
A first timer that measures the elapsed time from the on of the first switch, and
A second timer that measures the elapsed time from the on of the second switch, and
When both the measurement time by the first timer and the measurement time by the second timer are 0, it is determined that the electric motor is in the non-driving state, and the measurement time by the first timer is set to the predetermined cycle or more. When it is equal to or less than the threshold value, it is determined that the electric motor is in the right drive state, and when the measurement time by the second timer is equal to or less than the threshold value, it is determined that the electric motor is in the left drive state. Judgment means and
When the first determination means determines that the electric motor is in the right drive state, the direction of the current flowing through the electric motor is determined to be the right drive direction, and the first determination means causes the electric motor to move to the left. When it is determined that the electric motor is in the driving state, the direction of the current flowing through the electric motor is determined to be the left driving direction, and when the first determining means determines that the electric motor is in the non-driving state, A current direction determination device including a second determination means for determining the direction of the current flowing through the electric motor in the same direction as the previous determination direction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019122417A JP7234055B2 (en) | 2019-06-28 | 2019-06-28 | Current direction determination device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019122417A JP7234055B2 (en) | 2019-06-28 | 2019-06-28 | Current direction determination device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2021010222A true JP2021010222A (en) | 2021-01-28 |
JP7234055B2 JP7234055B2 (en) | 2023-03-07 |
Family
ID=74198608
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019122417A Active JP7234055B2 (en) | 2019-06-28 | 2019-06-28 | Current direction determination device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7234055B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102022100512A1 (en) | 2021-01-26 | 2022-07-28 | Toyota Jidosha Kabushiki Kaisha | vehicle cooling system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05184194A (en) * | 1991-11-14 | 1993-07-23 | Omron Corp | Motor controller |
JP2004129382A (en) * | 2002-10-02 | 2004-04-22 | Unisia Jkc Steering System Co Ltd | Control device for motor |
JP2007295753A (en) * | 2006-04-26 | 2007-11-08 | Mitsubishi Electric Corp | Electric power steering device |
-
2019
- 2019-06-28 JP JP2019122417A patent/JP7234055B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05184194A (en) * | 1991-11-14 | 1993-07-23 | Omron Corp | Motor controller |
JP2004129382A (en) * | 2002-10-02 | 2004-04-22 | Unisia Jkc Steering System Co Ltd | Control device for motor |
JP2007295753A (en) * | 2006-04-26 | 2007-11-08 | Mitsubishi Electric Corp | Electric power steering device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102022100512A1 (en) | 2021-01-26 | 2022-07-28 | Toyota Jidosha Kabushiki Kaisha | vehicle cooling system |
Also Published As
Publication number | Publication date |
---|---|
JP7234055B2 (en) | 2023-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4203459B2 (en) | Electric driver device | |
US9073186B2 (en) | Electric power tool | |
JP5311233B2 (en) | Motor control device and electric power steering device using the same | |
US20090102408A1 (en) | Backward pedaling detection circuit for e-bike motor driver | |
JP2006062063A5 (en) | ||
JP5345764B2 (en) | Microcomputer for motor control and control method therefor | |
JP2008289048A (en) | Semiconductor element driver circuit | |
US11114961B2 (en) | Motor driving control device and motor driving control method | |
JP2010011700A (en) | Motor control apparatus | |
JP2018082581A (en) | Motor drive controller and motor drive control method | |
JP2002067988A (en) | Motor-driven power steering device | |
JP2021010222A (en) | Current direction determination apparatus | |
JP5496257B2 (en) | Electric power steering control device | |
JP2013121294A (en) | Fault diagnostic device for motor for electric power steering | |
JP7238703B2 (en) | drive | |
JP4828584B2 (en) | Electric driver control device and electric driver device | |
CN110247570B (en) | Half-bridge driving circuit, related integrated circuit and system | |
JP2011156988A (en) | Direct current booster and electric power steering device | |
JP2011178245A (en) | Electric power steering device | |
JP2003237605A (en) | Control device for electric power steering device | |
JP2003284354A (en) | H-bridge protective circuit | |
JP6198498B2 (en) | Control device and electric assist vehicle | |
JP2009213293A (en) | Motor control circuit and motor lock abnormality detection method | |
JP2006290146A (en) | Control device of electric power steering device | |
JP2002267696A (en) | Power source abnormality detector |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220509 |
|
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: 20230221 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230222 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230222 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7234055 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |