JP2020048387A - Motor control device - Google Patents

Motor control device Download PDF

Info

Publication number
JP2020048387A
JP2020048387A JP2018177547A JP2018177547A JP2020048387A JP 2020048387 A JP2020048387 A JP 2020048387A JP 2018177547 A JP2018177547 A JP 2018177547A JP 2018177547 A JP2018177547 A JP 2018177547A JP 2020048387 A JP2020048387 A JP 2020048387A
Authority
JP
Japan
Prior art keywords
circuit
control circuit
pulse width
motor
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2018177547A
Other languages
Japanese (ja)
Inventor
青嶋 一浩
Kazuhiro Aoshima
一浩 青嶋
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.)
NTN Corp
Original Assignee
NTN Corp
NTN Toyo Bearing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NTN Corp, NTN Toyo Bearing Co Ltd filed Critical NTN Corp
Priority to JP2018177547A priority Critical patent/JP2020048387A/en
Priority to PCT/JP2019/036702 priority patent/WO2020059779A1/en
Publication of JP2020048387A publication Critical patent/JP2020048387A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P29/00Arrangements for regulating or controlling electric motors, appropriate for both AC and DC motors
    • H02P29/02Providing protection against overload without automatic interruption of supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

To enable execution of hardware reset without using an external mechanical relay at a motor control device.SOLUTION: A motor control device 1 comprises: a communication interface circuit 11 for exchanging communication signals P1 and P2 with a high-order controller 2; a drive circuit 15 that drives a motor; and a control circuit 12 that controls the drive circuit 15. The control circuit 12 is configured to receive a command at a pulse width of the communication signal P1 from the high-order controller 2 via the communication interface circuit 11. The control circuit 12 interprets the command to determine a control amount for the drive circuit 15 on the basis of the pulse width when the pulse width is in a first range (range of 10%≤W≤90%), and interprets the command to reset the control circuit 12 when the pulse width is in a second range (range of 0%<W<10% or 90%<W<100%).SELECTED DRAWING: Figure 1

Description

この発明はモータ制御装置に関する。   The present invention relates to a motor control device.

近年、自動車、二輪車、船舶等に搭載される部品は、マイクロコンピュータが内蔵され細かな制御を部品自体で行なうように構成されている。これら部品には、上位コントローラから通信によって指令値が与えられることが多い。このような部品と上位コントローラとの通信には、例えば、パルス幅変調(PWM:Pulse Width Modulation)を用いることができる。特開2015−186260号公報(特許文献1)には、車載の装置間の通信にPWMを用いる例が開示されている。   2. Description of the Related Art In recent years, components mounted on automobiles, motorcycles, ships, and the like have a built-in microcomputer and are configured to perform detailed control by the components themselves. Command values are often given to these components by communication from a host controller. For communication between such components and the host controller, for example, pulse width modulation (PWM) can be used. Japanese Patent Laying-Open No. 2015-186260 (Patent Document 1) discloses an example in which PWM is used for communication between on-vehicle devices.

特開2015−186260号公報JP 2015-186260 A

自動車、二輪車、船舶等に用いられる電動ポンプ等のモータを内蔵する補機に対しては、従来はメカニカルリレーによって電源のON/OFFを行なっていた。しかしながらメカニカルリレーは信頼性と省スペース性の観点から無い方が好ましく、近年は、メカニカルリレーを介さずに直接バッテリに接続される補機が望まれている。   Conventionally, a power supply is turned on / off by a mechanical relay for an auxiliary device having a built-in motor such as an electric pump used for an automobile, a motorcycle, a ship, or the like. However, it is preferable that the mechanical relay is not provided from the viewpoints of reliability and space saving. In recent years, there has been a demand for an auxiliary device that is directly connected to the battery without passing through the mechanical relay.

従来は、補機にエラーが生じた場合に補機を初期化するために、上位コントローラは、メカニカルリレーをオフして電源を一旦遮断した後に再度通電するハードウエアリセットを行なっていた。これにより、電源ON時のパワーオンリセットが働き、補機は初期化される。しかしながら、メカニカルリレーを介さず補機にバッテリを接続する場合には、このようなハードウエアリセットを行なうことができず、上位コントローラが実行可能な何らかの補機の初期化方法が必要とされる。   Conventionally, in order to initialize the auxiliary equipment when an error occurs in the auxiliary equipment, the host controller has performed a hardware reset in which the mechanical relay is turned off, the power is once cut off, and then the power is turned on again. As a result, a power-on reset when the power is turned on operates, and the auxiliary equipment is initialized. However, when a battery is connected to an accessory without passing through a mechanical relay, such a hardware reset cannot be performed, and some kind of accessory initialization method that can be executed by a host controller is required.

特開2015−186260号公報(特許文献1)では、PWM入力を利用してカウンタ等のデータをクリアする方法は開示されているが、ハードウエアリセットを代替する方法については言及されていない。   Japanese Patent Laying-Open No. 2015-186260 (Patent Document 1) discloses a method of clearing data of a counter or the like using a PWM input, but does not mention a method of replacing hardware reset.

本発明は、このような課題を解決するためのものであって、その目的は、自動車、二輪車または船舶等に用いられるモータを含む補機に搭載されたモータ制御装置において、外部のメカニカルリレーを用いずハードウエアリセットを実行可能とすることである。   The present invention is intended to solve such a problem, and its object is to provide an external mechanical relay in a motor control device mounted on an auxiliary machine including a motor used for an automobile, a motorcycle, a ship, or the like. The hardware reset can be executed without using it.

本開示は、モータ制御装置に関する。モータ制御装置は、上位コントローラと通信信号を授受するための通信インターフェイス回路と、モータを駆動する駆動回路と、駆動回路を制御する制御回路とを備える。制御回路は、上位コントローラから通信インターフェイス回路を介して通信信号のパルス幅で指令を受け取るように構成される。制御回路は、パルス幅が第1範囲の幅である場合には、指令がパルス幅に基づいて駆動回路に対する制御量を決定することであると解読し、パルス幅が第1範囲と重複しない第2範囲の幅である場合には、指令が制御回路をリセットすることであると解読する。   The present disclosure relates to a motor control device. The motor control device includes a communication interface circuit for transmitting and receiving a communication signal to and from a host controller, a drive circuit for driving the motor, and a control circuit for controlling the drive circuit. The control circuit is configured to receive a command with a pulse width of a communication signal from the host controller via the communication interface circuit. When the pulse width is the width of the first range, the control circuit interprets that the command is to determine the control amount for the drive circuit based on the pulse width, and determines that the pulse width does not overlap the first range. If the width is two ranges, it is interpreted that the command is to reset the control circuit.

好ましくは、モータ制御装置は、制御回路からクリア信号の入力が一定期間行なわれない場合に制御回路をリセットするウオッチドッグタイマ回路をさらに備える。制御回路は、ウオッチドッグタイマ回路にクリア信号を繰り返し送信する第1モードと、ウオッチドッグタイマ回路へのクリア信号の送信を中止する第2モードとを動作モードとして有する。制御回路は、パルス幅が第2範囲の幅である場合には、第1モードから第2モードに遷移する。   Preferably, the motor control device further includes a watchdog timer circuit that resets the control circuit when a clear signal is not input from the control circuit for a certain period. The control circuit has a first mode in which a clear signal is repeatedly transmitted to the watchdog timer circuit, and a second mode in which transmission of the clear signal to the watchdog timer circuit is stopped, as operation modes. When the pulse width is in the second range, the control circuit transitions from the first mode to the second mode.

より好ましくは、制御回路は、パルス幅が第2範囲の幅であることが所定回数繰り返された場合に、第1モードから第2モードに遷移する。   More preferably, the control circuit transitions from the first mode to the second mode when the pulse width is repeated within the second range a predetermined number of times.

好ましくは、制御回路は、駆動回路が正常動作しているか否かを監視し、駆動回路に異常が発生した場合に、通信インターフェイス回路を介して上位コントローラに異常が発生した旨を報知する。   Preferably, the control circuit monitors whether or not the drive circuit is operating normally, and notifies the host controller via the communication interface circuit that the abnormality has occurred when the drive circuit has an abnormality.

本発明によれば、簡素かつ安価な構成で、メカニカルリレーのON/OFFを用いないハードウエアリセットが可能なモータ制御装置を実現することができる。   According to the present invention, it is possible to realize a motor control device capable of performing hardware reset without using ON / OFF of a mechanical relay with a simple and inexpensive configuration.

本実施の形態のモータ制御装置の構成を示す回路図である。FIG. 2 is a circuit diagram illustrating a configuration of a motor control device according to the present embodiment. 制御回路12が実行するモータ監視処理を説明するためのフローチャートである。5 is a flowchart illustrating a motor monitoring process executed by a control circuit 12. モータ制御装置1が上位コントローラ2から受けた信号がどのような指令かを解読する処理を説明するためのフローチャートである。4 is a flowchart for explaining a process in which the motor control device 1 decodes a command given by a signal received from a host controller 2. PWM信号のデューティ比とモータ電流との関係を示す図である。FIG. 4 is a diagram illustrating a relationship between a duty ratio of a PWM signal and a motor current. リセット動作の一例を説明するための作動波形図である。FIG. 9 is an operation waveform diagram for explaining an example of a reset operation.

以下、本発明の実施の形態について図面を参照しつつ説明する。なお、以下の図面において同一または相当する部分には同一の参照番号を付し、その説明は繰返さない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the drawings below, the same or corresponding portions have the same reference characters allotted, and description thereof will not be repeated.

図1は、本実施の形態のモータ制御装置の構成を示す回路図である。図1を参照して、モータ制御装置1は、バッテリ5に接続され電源電圧+Bを受ける。モータ制御装置1は、上位コントローラ2からの指令に従ってモータ3を制御する。モータ制御装置1は、モータ3の回転速度を検出する回転速度センサ4の出力を受けてモータ3の作動を監視する。   FIG. 1 is a circuit diagram showing a configuration of the motor control device according to the present embodiment. Referring to FIG. 1, motor control device 1 is connected to battery 5 and receives power supply voltage + B. The motor control device 1 controls the motor 3 according to a command from the host controller 2. The motor control device 1 receives an output of a rotation speed sensor 4 that detects the rotation speed of the motor 3, and monitors the operation of the motor 3.

モータ制御装置1は、上位コントローラ2と通信信号P1,P2を授受するための通信インターフェイス回路11と、モータを駆動する駆動回路15と、駆動回路15を制御する制御回路12とを備える。制御回路12は、マイクロプロセッサ、メモリ等を含んで構成される。   The motor control device 1 includes a communication interface circuit 11 for transmitting and receiving communication signals P1 and P2 to and from the host controller 2, a drive circuit 15 for driving the motor, and a control circuit 12 for controlling the drive circuit 15. The control circuit 12 includes a microprocessor, a memory, and the like.

制御回路12は、上位コントローラ2から通信インターフェイス回路11を介して通信信号P1のパルス幅で指令を受け取るように構成される。制御回路12は、パルス幅が第1範囲(10%≦W≦90%)の幅である場合には、指令がパルス幅に基づいて駆動回路15に対する制御量を決定することであると解読し、パルス幅が第1範囲と重複しない第2範囲の幅(0%<W<10%または90%<W<100%に含まれる範囲)である場合には、指令が制御回路12をリセットすることであると解読する。   The control circuit 12 is configured to receive a command from the host controller 2 via the communication interface circuit 11 with the pulse width of the communication signal P1. When the pulse width is in the first range (10% ≦ W ≦ 90%), the control circuit 12 interprets that the command is to determine the control amount for the drive circuit 15 based on the pulse width. If the pulse width is the width of the second range that does not overlap the first range (a range included in 0% <W <10% or 90% <W <100%), the command resets the control circuit 12. Decipher it.

図1に示した構成では、部品点数の削減のため、バッテリ5がメカニカルリレーを介さずに直接モータ制御装置1に接続されている。したがって、従来のようにメカニカルリレーを使用して強制的にモータ制御装置1への電源を一時的に遮断し、パワーオンリセットによってモータ制御装置1を初期化することはできない。   In the configuration shown in FIG. 1, in order to reduce the number of components, the battery 5 is directly connected to the motor control device 1 without passing through a mechanical relay. Therefore, it is not possible to forcibly shut off the power supply to the motor control device 1 using a mechanical relay and to initialize the motor control device 1 by power-on reset as in the related art.

しかし、本実施の形態においては、PWM通信を行なう信号P1の一部のパルス幅をリセット命令に割り当てているので、上位コントローラ2は、メカニカルリレーを使用して強制的にモータ制御装置1への電源を遮断するようなことをしなくても、モータ制御装置1を初期化することができる。したがって、メカニカルリレーを削除した構成でモータ3を制御することができるので、コストの削減および占有スペースの減少を実現できる。また、メカニカルリレーを使用すると溶着などの故障の発生も問題となるが、図1に示す構成とすればメカニカルリレーを削除できるため、モータ制御の信頼性も向上させることができる。   However, in the present embodiment, since a part of the pulse width of the signal P1 for performing the PWM communication is assigned to the reset command, the host controller 2 forcibly sends the signal to the motor control device 1 using the mechanical relay. The motor control device 1 can be initialized without interrupting the power supply. Therefore, the motor 3 can be controlled with a configuration in which the mechanical relay is omitted, so that cost reduction and occupation space reduction can be realized. Further, if a mechanical relay is used, a problem such as welding may occur. However, if the configuration shown in FIG. 1 is used, the mechanical relay can be eliminated, so that the reliability of motor control can be improved.

モータ制御装置1は、制御回路12からクリア信号CLRの入力が一定期間行なわれない場合に制御回路12をリセットするウオッチドッグタイマ回路13をさらに備える。制御回路12は、ウオッチドッグタイマ回路13にクリア信号CLRを繰り返し送信する第1モードと、ウオッチドッグタイマ回路13へのクリア信号CLRの送信を中止する第2モードとを動作モードとして有する。制御回路12は、パルス幅が第2範囲の幅である場合には、第1モードから第2モードに遷移する。   The motor control device 1 further includes a watchdog timer circuit 13 that resets the control circuit 12 when the input of the clear signal CLR from the control circuit 12 is not performed for a certain period. The control circuit 12 has, as operation modes, a first mode in which the clear signal CLR is repeatedly transmitted to the watchdog timer circuit 13 and a second mode in which the transmission of the clear signal CLR to the watchdog timer circuit 13 is stopped. When the pulse width is within the second range, the control circuit 12 transitions from the first mode to the second mode.

より好ましくは、制御回路12は、パルス幅が第2範囲の幅(0%<W<10%または90%<W<100%に含まれる範囲の幅)であることが所定回数繰り返された場合に、第1モードから第2モードに遷移する。   More preferably, the control circuit 12 determines that the pulse width is a predetermined number of times that the pulse width is the width of the second range (the width of the range included in 0% <W <10% or 90% <W <100%). Then, a transition is made from the first mode to the second mode.

好ましくは、制御回路12は、駆動回路15が正常動作しているか否かを監視し、駆動回路15に異常が発生した場合に、通信インターフェイス回路11を介して上位コントローラ2に異常が発生した旨を報知する。   Preferably, the control circuit 12 monitors whether or not the drive circuit 15 is operating normally. If an abnormality occurs in the drive circuit 15, the control circuit 12 informs the host controller 2 via the communication interface circuit 11 that an abnormality has occurred. Notify.

図2は、制御回路12が実行するモータ監視処理を説明するためのフローチャートである。図2のフローチャートの処理は、一定時間ごとにモータ制御のメインルーチンから呼び出されて実行される。   FIG. 2 is a flowchart illustrating a motor monitoring process executed by the control circuit 12. The process of the flowchart of FIG. 2 is called and executed from the main routine of the motor control at regular intervals.

図1、図2を参照して、制御回路12は、ステップS1においてエラーが検出されたか否かを判断する。例えば、制御回路12は、駆動回路15に送った電流指令と回転速度センサ4で検出されたモータ3の回転速度とを比較し、モータ3の動作異常の有無を判断する。具体的には、モータ電流を流しているのに回転速度が判定値よりも低い場合には駆動回路15またはモータ3に異常が生じていると判断する。これにより、モータ3の脱調などを検出することができる。   Referring to FIGS. 1 and 2, control circuit 12 determines whether an error has been detected in step S1. For example, the control circuit 12 compares the current command sent to the drive circuit 15 with the rotation speed of the motor 3 detected by the rotation speed sensor 4 to determine whether or not the motor 3 is abnormal. Specifically, when the rotation speed is lower than the determination value while the motor current is flowing, it is determined that an abnormality has occurred in the drive circuit 15 or the motor 3. As a result, step-out of the motor 3 can be detected.

このような場合に、制御回路は、モータ駆動エラーを検出し(S1でYES)、ステップS2においてモータ駆動エラーが検出された旨を上位コントローラ2に通知し、ステップS3においてメインルーチンに処理を戻す。この通知は、通信インターフェイス回路11を介して信号P2によって行なわれる。一方、エラーが検出されない場合には(S1でNO)、ステップS2の処理は行なわれずにステップS3においてメインルーチンに処理が戻る。   In such a case, the control circuit detects a motor drive error (YES in S1), notifies the host controller 2 that a motor drive error has been detected in step S2, and returns the process to the main routine in step S3. . This notification is made by the signal P2 via the communication interface circuit 11. On the other hand, if no error is detected (NO in S1), the process returns to the main routine in step S3 without performing the process in step S2.

図2のステップS2において、エラーが上位コントローラ2に通知された場合には、上位コントローラ2は、信号P1を用いてモータ制御装置1を初期化するリセット指令をモータ制御装置1に対して送信する。例えば、自動車にモータ制御装置1が搭載されている場合には、車両が停車中にモータ制御装置1の初期化を行なう方が良い場合もある。したがって、上位コントローラ2は、モータ駆動エラーが検出された旨の通知を受けた場合には、その後、初期化に適切な時にリセット指令をモータ制御装置1に送信する。   In step S2 of FIG. 2, when an error is notified to the upper controller 2, the upper controller 2 transmits a reset command for initializing the motor controller 1 to the motor controller 1 using the signal P1. . For example, when the motor control device 1 is mounted on an automobile, it may be better to initialize the motor control device 1 while the vehicle is stopped. Therefore, when receiving a notification that a motor drive error has been detected, the host controller 2 thereafter transmits a reset command to the motor control device 1 at a time appropriate for initialization.

図3は、モータ制御装置1が上位コントローラ2から受けた信号がどのような指令かを解読する処理を説明するためのフローチャートである。図3のフローチャートの処理は、一定時間ごとにモータ制御のメインルーチンから呼び出されて実行される。   FIG. 3 is a flowchart for explaining a process in which the motor control device 1 decodes what kind of command the signal received from the host controller 2 is. The process of the flowchart in FIG. 3 is called and executed from the main routine of the motor control at regular intervals.

図1、図3を参照して、ステップS11において制御回路12は、上位コントローラ2から送られてくる信号P1に含まれるパルス幅を検出し、パルスのデューティ比を算出する。このデューティ比がいくらであるかによって、信号P1が示す指令は、モータに対する制御量の指令であったり、モータ制御装置1を初期化するリセット指令であったりする。   1 and 3, in step S11, the control circuit 12 detects the pulse width included in the signal P1 sent from the host controller 2, and calculates the pulse duty ratio. Depending on the duty ratio, the command indicated by the signal P1 may be a command for a control amount for the motor or a reset command for initializing the motor control device 1.

図4は、PWM信号のデューティ比とモータ電流との関係を示す図である。デューティ比が10%以上90%以下である場合には、信号P1はモータ電流の指令値を表す。またデューティ比が10%以上90%以下と重複しない予め定められた範囲である時は、信号P1はリセット指令を示す。なお、リセット指令を示すデューティ比は、モータ電流の指令値を表す範囲と重複しない範囲であればどこでも良い。例えば、図4のリセット1で示す範囲内のいずれかの範囲(例えば4%以上5%以下)でも良く、図4のリセット2で示す範囲内のいずれかの範囲(例えば94%以上95%以下)でも良い。   FIG. 4 is a diagram illustrating the relationship between the duty ratio of the PWM signal and the motor current. When the duty ratio is 10% or more and 90% or less, signal P1 represents a command value of the motor current. When the duty ratio is within a predetermined range that does not overlap between 10% and 90%, the signal P1 indicates a reset command. The duty ratio indicating the reset command may be any range as long as it does not overlap the range indicating the motor current command value. For example, any range (for example, 4% or more and 5% or less) within the range shown by reset 1 in FIG. 4 may be used, and any range (for example, 94% or more and 95% or less) within the range shown by reset 2 in FIG. ) Is fine.

再び図3に戻って、制御回路12は、ステップS12において信号P1に含まれるパルスのパルス幅が示すデューティ比がリセット命令に該当するか否かを判断する。リセット命令に該当しない場合(S12でNO)、ステップS13において、制御回路12は、図4で示す対応関係に基づいて、信号P1のパルスのデューティ比に対応する電流値を流すように駆動回路15に指令を送る。なお図4ではデューティ比を電流に対応させたが、他の制御量、例えばトルク、回転速度などに対応させても良い。ステップS13の処理が完了するとステップS14に処理が進められる。   Returning to FIG. 3 again, the control circuit 12 determines in step S12 whether the duty ratio indicated by the pulse width of the pulse included in the signal P1 corresponds to the reset command. If it does not correspond to the reset command (NO in S12), in step S13, the control circuit 12 drives the drive circuit 15 to supply a current value corresponding to the duty ratio of the pulse of the signal P1 based on the correspondence shown in FIG. Send a command to Although the duty ratio corresponds to the current in FIG. 4, the duty ratio may correspond to another control amount, for example, torque, rotation speed, and the like. Upon completion of the process in the step S13, the process proceeds to a step S14.

一方、信号P1に含まれるパルスのパルス幅が示すデューティ比がリセット命令に該当しない場合(S12でNO)、制御回路12は、ステップS17において、リセット命令がN回(Nは自然数)連続したか否かを判断する。N=1としても良いが、例えば、信号P1に偶然リセット命令に該当するパルス幅のノイズがのることも考えられるため、Nを2以上とし複数回連続してリセット命令が入力された場合に自己リセットをすることが好ましい。また、一回目に10%未満(たとえば5%)、二回目に90%より大(たとえば95%)のように小さいデューティ比と大きなデューティ比とを組み合わせてリセット命令と認識させても良い。なお、組み合わせにおいて、順番はどのようであっても良い。   On the other hand, if the duty ratio indicated by the pulse width of the pulse included in the signal P1 does not correspond to the reset command (NO in S12), the control circuit 12 determines in step S17 whether the reset command has continued N times (N is a natural number). Determine whether or not. Although N may be set to 1, for example, it is conceivable that noise of a pulse width corresponding to the reset command is accidentally added to the signal P1. Therefore, when N is set to 2 or more and the reset command is input plural times continuously, It is preferable to perform a self-reset. In addition, a combination of a small duty ratio and a large duty ratio such as less than 10% (for example, 5%) for the first time and more than 90% (for example, 95%) for the second time may be recognized as a reset command. In addition, in the combination, the order may be any.

ステップS17において、リセット命令がN回連続していない場合には、ステップS14に処理が進められる。   If the reset command is not consecutive N times in step S17, the process proceeds to step S14.

ステップS14では、ウオッチドッグタイマ回路13に対して前回クリア信号CLRを送信してから所定時間が経過したか否かが判断される。ステップS14において所定時間が経過していた場合には、制御回路12はステップS15においてクリア信号CLRをウオッチドッグタイマ回路13に送る。このように定期的にクリア信号CLRをウオッチドッグタイマ回路13に送信する動作モードを第1モードとする。ステップS14において所定時間が経過していなければ、ステップS15の処理は実行されずにステップS16に処理が進められる。   In step S14, it is determined whether a predetermined time has elapsed since the previous transmission of the clear signal CLR to the watchdog timer circuit 13. If the predetermined time has elapsed in step S14, the control circuit 12 sends a clear signal CLR to the watchdog timer circuit 13 in step S15. The operation mode in which the clear signal CLR is periodically transmitted to the watchdog timer circuit 13 is referred to as a first mode. If the predetermined time has not elapsed in step S14, the process proceeds to step S16 without executing the process in step S15.

ステップS14、S15の処理によって、ウオッチドッグタイマ回路13の内部のタイマは所定時間ごとにクリアされオーバーフローすることが無い。   By the processing of steps S14 and S15, the timer inside the watchdog timer circuit 13 is cleared at predetermined time intervals and does not overflow.

一方、ステップS17において、リセット命令がN回連続して入力された場合は、ステップS18において制御回路12は、クリア信号CLRをウオッチドッグタイマ回路13に送信することを停止する。このようにクリア信号CLRをウオッチドッグタイマ回路13に送信することを停止する動作モードを第2モードとする。ステップS18では、制御回路12は、動作モードを第1モードから第2モードに遷移させる。   On the other hand, if the reset command is input N times consecutively in step S17, the control circuit 12 stops transmitting the clear signal CLR to the watchdog timer circuit 13 in step S18. The operation mode in which the transmission of the clear signal CLR to the watchdog timer circuit 13 is stopped is referred to as a second mode. In step S18, the control circuit 12 changes the operation mode from the first mode to the second mode.

すると、ウオッチドッグタイマ回路13の内部のタイマがしばらくするとオーバーフローし、ウオッチドッグタイマ回路13からリセット信号が制御回路12に送られる。これによって制御回路12がリセットされると、これに伴って駆動回路15も初期動作を行ない、異常が解消されることが期待できる。   Then, the timer inside the watchdog timer circuit 13 overflows after a while, and a reset signal is sent from the watchdog timer circuit 13 to the control circuit 12. As a result, when the control circuit 12 is reset, the drive circuit 15 also performs an initial operation with the reset, and it can be expected that the abnormality is eliminated.

図5は、リセット動作の一例を説明するための作動波形図である。図1、図5を参照して、時刻t0〜t2の間では、制御回路12の動作モードは第1モードとされ、上位コントローラ2から送信される信号P1はデューティ比が10%以上90%以下のパルス信号となっている。そして、これに伴い駆動回路15がパルス幅に対応する制御量で作動している。このとき、クリア信号CLRが繰り返し送信されることによってウオッチドッグタイマ回路13の内部カウンターのカウント値はオーバーフロー値OVFに達しない。   FIG. 5 is an operation waveform diagram for explaining an example of the reset operation. Referring to FIGS. 1 and 5, between times t0 and t2, the operation mode of control circuit 12 is the first mode, and signal P1 transmitted from host controller 2 has a duty ratio of 10% or more and 90% or less. Pulse signal. Then, the driving circuit 15 operates with a control amount corresponding to the pulse width. At this time, the count value of the internal counter of the watchdog timer circuit 13 does not reach the overflow value OVF due to the repeated transmission of the clear signal CLR.

時刻t3において制御回路12がモータ異常を検出し、上位コントローラ2にエラーを通知すると、上位コントローラ2は、信号P1のパルス幅をリセット命令に対応する幅とし、N回繰り返しパルスを送信する。すると、時刻t5において、制御回路12は、動作モードを第1モードから第2モードに遷移させる。   At time t3, when the control circuit 12 detects a motor abnormality and notifies the host controller 2 of the error, the host controller 2 sets the pulse width of the signal P1 to a width corresponding to the reset command and transmits a pulse repeated N times. Then, at time t5, the control circuit 12 changes the operation mode from the first mode to the second mode.

時刻t5までは、動作モードは第1モードであり、時刻t1、t2、t4でクリア信号CLRがウオッチドッグタイマ回路13に送られていたため、ウオッチドッグタイマ回路13の内部カウンターはオーバーフローすることは無かった。   Until time t5, the operation mode is the first mode, and since the clear signal CLR is sent to the watchdog timer circuit 13 at times t1, t2, and t4, the internal counter of the watchdog timer circuit 13 does not overflow. Was.

しかし、時刻t5において動作モードが第1モードから第2モードに遷移すると、制御回路12はクリア信号CLRをウオッチドッグタイマ回路13に送信しなくなるので、時刻t6において内部カウンターがオーバーフローし、ウオッチドッグタイマ回路13は制御回路12に対してリセット信号を送信する。その結果、制御回路12はリセットされ、これにより駆動回路15も初期動作を行ないモータ3が正常状態に復帰することが期待できる。   However, when the operation mode changes from the first mode to the second mode at time t5, the control circuit 12 does not transmit the clear signal CLR to the watchdog timer circuit 13, so that at time t6, the internal counter overflows and the watchdog timer The circuit 13 sends a reset signal to the control circuit 12. As a result, it is expected that the control circuit 12 is reset, whereby the drive circuit 15 also performs the initial operation and the motor 3 returns to the normal state.

以上説明したように、本実施の形態に係るモータ制御装置によれば、メカニカルリレーを使用しなくても、補機を制御する上位コントローラからリセットをかけることができる。このため、メカニカルリレーの故障が生じないので信頼性が向上する。さらに、リセットをかけるために新たに端子を増設する必要が無い。このため補機のサイズを小さくできるとともに、補機のコストも抑えることができる。   As described above, according to the motor control device of the present embodiment, a reset can be performed from a higher-level controller that controls an auxiliary machine without using a mechanical relay. For this reason, a failure of the mechanical relay does not occur, so that the reliability is improved. Further, it is not necessary to newly add a terminal for resetting. Therefore, the size of the accessory can be reduced, and the cost of the accessory can be suppressed.

今回開示された実施の形態は、すべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は、上記した実施の形態の説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiments disclosed this time are to be considered in all respects as illustrative and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description of the embodiments, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

1 モータ制御装置、2 上位コントローラ、3 モータ、4 回転速度センサ、5 バッテリ、11 通信インターフェイス回路、12 制御回路、13 ウオッチドッグタイマ回路、15 駆動回路。   1 Motor control device, 2 host controller, 3 motors, 4 rotation speed sensors, 5 batteries, 11 communication interface circuit, 12 control circuit, 13 watchdog timer circuit, 15 drive circuit.

Claims (4)

上位コントローラと通信信号を授受するための通信インターフェイス回路と、
モータを駆動する駆動回路と、
前記駆動回路を制御する制御回路とを備え、
前記制御回路は、前記上位コントローラから前記通信インターフェイス回路を介して前記通信信号のパルス幅で指令を受け取るように構成され、
前記制御回路は、前記パルス幅が第1範囲の幅である場合には、前記指令が前記パルス幅に基づいて前記駆動回路に対する制御量を決定することであると解読し、前記パルス幅が前記第1範囲と重複しない第2範囲の幅である場合には、前記指令が前記制御回路をリセットすることであると解読する、モータ制御装置。
A communication interface circuit for exchanging communication signals with the host controller;
A drive circuit for driving the motor;
A control circuit for controlling the drive circuit,
The control circuit is configured to receive a command with a pulse width of the communication signal from the host controller via the communication interface circuit,
When the pulse width is the width of the first range, the control circuit interprets that the command is to determine a control amount for the drive circuit based on the pulse width, and the pulse width is If the width of the second range does not overlap with the first range, the motor control device interprets that the command is to reset the control circuit.
前記制御回路からクリア信号の入力が一定期間行なわれない場合に前記制御回路をリセットするウオッチドッグタイマ回路をさらに備え、
前記制御回路は、前記ウオッチドッグタイマ回路に前記クリア信号を繰り返し送信する第1モードと、前記ウオッチドッグタイマ回路への前記クリア信号の送信を中止する第2モードとを動作モードとして有し、
前記制御回路は、前記パルス幅が前記第2範囲の幅である場合には、前記第1モードから前記第2モードに遷移する、請求項1に記載のモータ制御装置。
A watchdog timer circuit that resets the control circuit when a clear signal is not input from the control circuit for a certain period of time;
The control circuit has a first mode in which the clear signal is repeatedly transmitted to the watchdog timer circuit, and a second mode in which transmission of the clear signal to the watchdog timer circuit is stopped, as operation modes,
The motor control device according to claim 1, wherein the control circuit transitions from the first mode to the second mode when the pulse width is within the second range.
前記制御回路は、前記パルス幅が前記第2範囲の幅であることが所定回数繰り返された場合に、前記第1モードから前記第2モードに遷移する、請求項2に記載のモータ制御装置。   3. The motor control device according to claim 2, wherein the control circuit makes a transition from the first mode to the second mode when the pulse width is within the second range a predetermined number of times. 4. 前記制御回路は、前記駆動回路が正常動作しているか否かを監視し、前記駆動回路に異常が発生した場合に、前記通信インターフェイス回路を介して前記上位コントローラに異常が発生した旨を報知する、請求項1〜3のいずれか1項に記載のモータ制御装置。   The control circuit monitors whether the drive circuit is operating normally and, when an abnormality occurs in the drive circuit, notifies the upper controller via the communication interface circuit that an abnormality has occurred. The motor control device according to any one of claims 1 to 3.
JP2018177547A 2018-09-21 2018-09-21 Motor control device Pending JP2020048387A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2018177547A JP2020048387A (en) 2018-09-21 2018-09-21 Motor control device
PCT/JP2019/036702 WO2020059779A1 (en) 2018-09-21 2019-09-19 Motor control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018177547A JP2020048387A (en) 2018-09-21 2018-09-21 Motor control device

Publications (1)

Publication Number Publication Date
JP2020048387A true JP2020048387A (en) 2020-03-26

Family

ID=69887741

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018177547A Pending JP2020048387A (en) 2018-09-21 2018-09-21 Motor control device

Country Status (2)

Country Link
JP (1) JP2020048387A (en)
WO (1) WO2020059779A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115898932A (en) * 2023-01-03 2023-04-04 苏州浪潮智能科技有限公司 Fan, operation method thereof, electronic device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0865914A (en) * 1994-08-24 1996-03-08 Nippondenso Co Ltd Controller of ac generator vehicle
JP2007143310A (en) * 2005-11-18 2007-06-07 Mitsubishi Electric Corp On-vehicle drive control device
WO2008093485A1 (en) * 2007-01-31 2008-08-07 Kabushiki Kaisha Yaskawa Denki Motor control device
JP2009183752A (en) * 2009-05-25 2009-08-20 Fujishoji Co Ltd Game machine
JP2013224097A (en) * 2012-04-23 2013-10-31 Omron Automotive Electronics Co Ltd Motor control device for vehicle
JP2015186260A (en) * 2014-03-20 2015-10-22 インフィネオン テクノロジーズ アーゲーInfineon Technologies Ag communication of information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5358081B2 (en) * 2007-10-26 2013-12-04 株式会社日立製作所 Motor control device and motor device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0865914A (en) * 1994-08-24 1996-03-08 Nippondenso Co Ltd Controller of ac generator vehicle
JP2007143310A (en) * 2005-11-18 2007-06-07 Mitsubishi Electric Corp On-vehicle drive control device
WO2008093485A1 (en) * 2007-01-31 2008-08-07 Kabushiki Kaisha Yaskawa Denki Motor control device
JP2009183752A (en) * 2009-05-25 2009-08-20 Fujishoji Co Ltd Game machine
JP2013224097A (en) * 2012-04-23 2013-10-31 Omron Automotive Electronics Co Ltd Motor control device for vehicle
JP2015186260A (en) * 2014-03-20 2015-10-22 インフィネオン テクノロジーズ アーゲーInfineon Technologies Ag communication of information

Also Published As

Publication number Publication date
WO2020059779A1 (en) 2020-03-26

Similar Documents

Publication Publication Date Title
JP6224816B2 (en) Control device for vehicle mounted device and power steering device
US10543869B2 (en) Electronic control unit and electric power steering apparatus equipped with the same
JP2007043825A (en) Power generation controller for vehicle
JP4497077B2 (en) Power generation abnormality monitoring system
US9903381B2 (en) System and method for controlling forward/reverse rotation of fan
US11084524B2 (en) Motor control device
JP2006076478A (en) Steering control device
JP2008152678A (en) Electronic control device
JP4502022B2 (en) Vehicle power generation control device
CN108883787B (en) Electric power steering apparatus
WO2011034053A1 (en) Electronic controller for vehicle
WO2020059779A1 (en) Motor control device
JP5099041B2 (en) Fuel pump control device
JP6633634B2 (en) Motor controller input stage and electric motor motor controller
JP2009202612A (en) Electric power steering device
EP3220539B1 (en) Motor controller
EP2624436A2 (en) Method for controlling inverter
US10396697B2 (en) Motor operating systems and methods thereof
KR101399736B1 (en) Method for ceasing automatic parking control and automatic parking system using the same mehtod
JP2018131030A (en) Electronic controller
JP2018141377A (en) Cooling fan motor controller for vehicle
CN112987554A (en) Dual-signal control method and device, electronic speed regulator and electronic equipment
JP2012023882A (en) Device of controlling start-up of electrical equipment
JP2007110798A (en) Controller for brushless electric motor
JP5196746B2 (en) Fan drive control method and battery overheat protection device in battery overheat protection device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210310

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220412

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220520

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220906

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20230228