[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JP2015130714A - Motor control device - Google Patents

Motor control device Download PDF

Info

Publication number
JP2015130714A
JP2015130714A JP2014000054A JP2014000054A JP2015130714A JP 2015130714 A JP2015130714 A JP 2015130714A JP 2014000054 A JP2014000054 A JP 2014000054A JP 2014000054 A JP2014000054 A JP 2014000054A JP 2015130714 A JP2015130714 A JP 2015130714A
Authority
JP
Japan
Prior art keywords
duty
pwm signal
output
calculation unit
abnormality
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
JP2014000054A
Other languages
Japanese (ja)
Inventor
慧 佐藤
Kei Sato
慧 佐藤
直幸 伊藤
Naoyuki Ito
直幸 伊藤
普丘 井上
Hirotake Inoue
普丘 井上
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.)
Nidec Mobility Corp
Original Assignee
Omron Automotive Electronics 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 Omron Automotive Electronics Co Ltd filed Critical Omron Automotive Electronics Co Ltd
Priority to JP2014000054A priority Critical patent/JP2015130714A/en
Publication of JP2015130714A publication Critical patent/JP2015130714A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Ac Motors In General (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable continuous control even when one duty calculation part stops due to failure while reducing a load of arithmetic processing in each duty calculation part.SOLUTION: A motor control device 100 comprises: duty calculation parts 12, 22 for mutually calculating a duty of a PWM signal in a time-sharing manner; a PWM signal generation part 13 for continuously outputting the same PWM signals A a predetermined number of times; a PWM signal generation part 23 for continuously outputting the same PWM signals B a predetermined number of times; a selector 3 for alternately selecting between the PWM signals A, B to output continuous PWM signals C; an abnormality detection part 16 for detecting abnormality where the PWM signal A is not output; and an abnormality detection part 26 for detecting abnormality where the PWM signal B is not output. The selector 3 selects and outputs the PWM signal B when the abnormality detection part 16 detects abnormality, and selects and outputs the PWM signal A when the abnormality detection part 26 detects abnormality.

Description

本発明は、PWM(Pulse Width Modulation:パルス幅変調)方式によりモータを制御するモータ制御装置に関する。   The present invention relates to a motor control device that controls a motor by a PWM (Pulse Width Modulation) method.

例えば、車両の電動パワーステアリング装置においては、ハンドルの操舵トルクに応じた操舵補助力をステアリング機構に与えるために、3相ブラシレスモータなどの電動式モータが設けられる。このモータの回転を制御する装置として、PWM方式を用いたモータ制御装置が知られている。   For example, in an electric power steering device for a vehicle, an electric motor such as a three-phase brushless motor is provided in order to give a steering assist force to the steering mechanism in accordance with the steering torque of the steering wheel. As a device for controlling the rotation of the motor, a motor control device using a PWM method is known.

一般に、PWM方式のモータ制御装置は、PWM信号により駆動されるスイッチング素子のオン・オフ動作に基づいてモータに電流を供給するインバータ回路と、モータに流れる電流(モータ電流)を検出する電流検出部と、モータ電流の検出値とモータ電流の目標値との偏差に基づいてPWM信号のデューティを演算するデューティ演算部と、当該デューティを持ったPWM信号を生成して出力するPWM信号生成部とを備えている。特許文献1〜4には、このようなPWM方式のモータ制御装置が開示されている。   Generally, a PWM motor control device includes an inverter circuit that supplies current to a motor based on on / off operation of a switching element driven by a PWM signal, and a current detection unit that detects current (motor current) flowing through the motor. A duty calculator that calculates the duty of the PWM signal based on a deviation between the detected value of the motor current and the target value of the motor current, and a PWM signal generator that generates and outputs a PWM signal having the duty I have. Patent Documents 1 to 4 disclose such PWM motor control devices.

特許文献1では、2つの巻線を有するモータを駆動するための2系統の駆動装置が設けられ、各系統にインバータ回路が備わっている。そして、1つのPWM信号生成部で生成されたPWM信号を、2つのインバータ回路へ分岐して出力するようにしている。   In Patent Document 1, two systems of driving devices for driving a motor having two windings are provided, and each system has an inverter circuit. The PWM signal generated by one PWM signal generator is branched to two inverter circuits and output.

特許文献2では、2つの巻線を有するモータを駆動するための2系統の駆動装置が設けられ、各系統にインバータ回路とPWM信号生成部とが備わっている。そして、それぞれのPWM信号生成部で生成されたPWM信号を、対応するインバータ回路へ出力するようにしている。   In Patent Document 2, two systems of driving devices for driving a motor having two windings are provided, and each system includes an inverter circuit and a PWM signal generator. The PWM signals generated by the respective PWM signal generation units are output to the corresponding inverter circuits.

特許文献3では、2台のモータをそれぞれ駆動する2つのインバータ回路と、これらのインバータ回路を制御する1つの制御部とが備わっている。また、制御部には、2つのPWM信号生成部が備わっている。そして、それぞれのPWM信号生成部で生成されたPWM信号を、対応するインバータ回路へ出力するようにしている。   In Patent Document 3, two inverter circuits that respectively drive two motors and one control unit that controls these inverter circuits are provided. The control unit includes two PWM signal generation units. The PWM signals generated by the respective PWM signal generation units are output to the corresponding inverter circuits.

特許文献4では、1台のモータを駆動する2つのインバータ回路と、これらのインバータ回路をそれぞれ制御する2つの制御部とが備わっている。各インバータ回路の出力側は結合され、モータに接続されている。そして、2つの制御部のそれぞれで生成されたPWM信号を、対応するインバータ回路へ出力するようにしている。   In Patent Document 4, two inverter circuits that drive one motor and two control units that respectively control these inverter circuits are provided. The output side of each inverter circuit is coupled and connected to the motor. The PWM signal generated by each of the two control units is output to the corresponding inverter circuit.

特開2011−152027号公報JP 2011-152027 A 特開2010−226899号公報JP 2010-226899 A 特開2012−120296号公報JP 2012-120296 A 特開2013−113695号公報JP 2013-113695 A

PWM方式のモータ制御装置において、デューティ演算部を2つ設けた場合は、一方のデューティ演算部が故障などで停止した場合でも、他方のデューティ演算部でデューティの演算が行われるので、PWM信号が出力され制御が継続される。しかし、2つのデューティ演算部が並行してデューティの演算を行うと、各デューティ演算部における演算処理の負荷が増大する。   In the PWM motor control device, when two duty calculation units are provided, even if one duty calculation unit stops due to a failure or the like, the duty calculation is performed by the other duty calculation unit. Output and control is continued. However, if the two duty calculators calculate the duty in parallel, the calculation processing load in each duty calculator increases.

本発明の課題は、各デューティ演算部における演算処理の負荷を低減しつつ、一方のデューティ演算部が故障により停止した場合でも制御を継続できるモータ制御装置を提供することにある。   The subject of this invention is providing the motor control apparatus which can continue control even when one duty calculating part stops by failure, reducing the load of the arithmetic processing in each duty calculating part.

本発明に係るモータ制御装置は、スイッチング素子のオン・オフによりモータを駆動するインバータ回路と、スイッチング素子をオン・オフさせるためのPWM信号を生成するPWM信号生成部と、PWM信号のデューティを演算するデューティ演算部とを備えている。デューティ演算部は、相互に時分割でPWM信号のデューティを演算する第1デューティ演算部および第2デューティ演算部からなる。PWM信号生成部は、第1デューティ演算部で演算されたデューティを持つ第1PWM信号を生成し、同じ第1PWM信号を所定回数連続して出力する第1PWM信号生成部と、第2デューティ演算部で演算されたデューティを持つ第2PWM信号を生成し、同じ第2PWM信号を所定回数連続して出力する第2PWM信号生成部とからなる。そして、本発明では、第1PWM信号生成部から出力される第1PWM信号と、第2PWM信号生成部から出力される第2WM信号とを交互に選択し、選択された各PWM信号を連続したPWM信号として出力する選択器と、第1PWM信号生成部から第1PWM信号が出力されない異常を検出する第1異常検出部と、第2PWM信号生成部から第2PWM信号が出力されない異常を検出する第2異常検出部とがさらに設けられる。選択器は、第1異常検出部が異常を検出した場合に、第2PWM信号生成部から出力される第2PWM信号を選択して出力し、第2異常検出部が異常を検出した場合に、第1PWM信号生成部から出力される第1PWM信号を選択して出力する。   A motor control device according to the present invention calculates an inverter circuit that drives a motor by turning on / off a switching element, a PWM signal generating unit that generates a PWM signal for turning on / off the switching element, and a duty of the PWM signal A duty calculator. The duty calculation unit includes a first duty calculation unit and a second duty calculation unit that calculate the duty of the PWM signal in a time division manner. The PWM signal generation unit generates a first PWM signal having a duty calculated by the first duty calculation unit, and outputs the same first PWM signal a predetermined number of times continuously, and a second duty calculation unit A second PWM signal generation unit that generates a second PWM signal having a calculated duty and continuously outputs the same second PWM signal a predetermined number of times. In the present invention, the first PWM signal output from the first PWM signal generation unit and the second WM signal output from the second PWM signal generation unit are alternately selected, and the selected PWM signals are consecutive PWM signals. As a selector, a first abnormality detection unit for detecting an abnormality in which the first PWM signal generation unit does not output the first PWM signal, and a second abnormality detection for detecting an abnormality in which the second PWM signal generation unit does not output the second PWM signal Are further provided. The selector selects and outputs the second PWM signal output from the second PWM signal generation unit when the first abnormality detection unit detects abnormality, and when the second abnormality detection unit detects abnormality, The first PWM signal output from the 1PWM signal generator is selected and output.

このようにすると、第1デューティ演算部と第2デューティ演算部が時分割でデューティ演算を行うので、各デューティ演算部における演算処理の負荷を低減することができる。また、各PWM信号生成部から、それぞれ同じPWM信号が連続して出力されるので、一方のデューティ演算部の故障により、一方のPWM信号生成部からPWM信号が出力されない期間において、他方のPWM信号生成部から出力されるPWM信号を選択して出力することができる。このため、デューティ演算部の一方が故障により停止した場合でも、モータの制御を継続することができる。また、選択器から連続したPWM信号が出力されるので、モータに十分な電流を流すことができ、モータの回転数の低下が抑制される。   In this way, since the first duty calculation unit and the second duty calculation unit perform duty calculation in a time division manner, it is possible to reduce the load of calculation processing in each duty calculation unit. In addition, since the same PWM signal is continuously output from each PWM signal generation unit, the other PWM signal is output during a period in which no PWM signal is output from one PWM signal generation unit due to a failure of one duty calculation unit. The PWM signal output from the generation unit can be selected and output. For this reason, even when one of the duty calculation units stops due to a failure, the motor control can be continued. In addition, since a continuous PWM signal is output from the selector, a sufficient current can be supplied to the motor, and a decrease in the rotational speed of the motor is suppressed.

本発明において、上述した第1PWM信号と第2PWM信号とを交互に選択することに代えて、第1PWM信号のデューティと第2PWM信号のデューティとを交互に選択するようにしてもよい。この場合、第1デューティ演算部は、PWM信号の第1デューティを演算し、同じ第1デューティを所定回数連続して出力する。また、第2デューティ演算部は、PWM信号の第2デューティを演算し、同じ第2デューティを所定回数連続して出力する。そして、第1デューティ演算部から出力される第1デューティと、第2デューティ演算部から出力される第2デューティとを交互に選択する選択器と、第1デューティ演算部から第1デューティが出力されない異常を検出する第1異常検出部と、第2デューティ演算部から第2デューティが出力されない異常を検出する第2異常検出部とがさらに設けられる。PWM信号生成部は、選択器で選択された第1デューティおよび第2デューティに基づいて、連続したPWM信号を生成して出力する。選択器は、第1異常検出部が異常を検出した場合に、第2デューティ演算部から出力される第2デューティを選択して、PWM信号生成部へ出力し、第2異常検出部が異常を検出した場合に、第1デューティ演算部から出力される第1デューティを選択して、PWM信号生成部へ出力する。   In the present invention, instead of alternately selecting the first PWM signal and the second PWM signal described above, the duty of the first PWM signal and the duty of the second PWM signal may be alternately selected. In this case, the first duty calculator calculates the first duty of the PWM signal, and continuously outputs the same first duty a predetermined number of times. The second duty calculator calculates the second duty of the PWM signal and continuously outputs the same second duty a predetermined number of times. The selector that alternately selects the first duty output from the first duty calculation unit and the second duty output from the second duty calculation unit, and the first duty is not output from the first duty calculation unit A first abnormality detection unit for detecting an abnormality and a second abnormality detection unit for detecting an abnormality in which the second duty is not output from the second duty calculation unit are further provided. The PWM signal generation unit generates and outputs a continuous PWM signal based on the first duty and the second duty selected by the selector. The selector selects the second duty output from the second duty calculator when the first abnormality detector detects an abnormality, and outputs the second duty to the PWM signal generator, and the second abnormality detector detects the abnormality. If detected, the first duty output from the first duty calculator is selected and output to the PWM signal generator.

本発明において、モータの駆動に伴って発生する、当該モータにおける所定の物理量を検出する物理量検出部と、モータの物理量に対する指令値を演算する指令値演算部とをさらに設けてもよい。この場合、各デューティ演算部は、物理量検出部で検出された物理量の値を、指令値演算部で演算された指令値と比較し、それらの偏差に基づいて、PWM信号のデューティを演算する。   In the present invention, a physical quantity detector that detects a predetermined physical quantity in the motor that is generated when the motor is driven, and a command value calculator that calculates a command value for the physical quantity of the motor may be further provided. In this case, each duty calculation unit compares the value of the physical quantity detected by the physical quantity detection unit with the command value calculated by the command value calculation unit, and calculates the duty of the PWM signal based on these deviations.

本発明において、指令値演算部は、第1デューティ演算部および第2デューティ演算部に指令値を与える単一の指令値演算部から構成されていてもよい。   In the present invention, the command value calculation unit may be composed of a single command value calculation unit that gives command values to the first duty calculation unit and the second duty calculation unit.

本発明によれば、各デューティ演算部における演算処理の負荷を低減しつつ、一方のデューティ演算部が故障により停止した場合でも、モータの制御を継続することができる。   According to the present invention, it is possible to continue motor control even when one duty calculation unit is stopped due to a failure while reducing the load of calculation processing in each duty calculation unit.

第1実施形態に係るモータ制御装置のブロック図である。1 is a block diagram of a motor control device according to a first embodiment. インバータ回路の具体的構成を示した図である。It is the figure which showed the specific structure of the inverter circuit. 第1実施形態の正常時の動作を示したタイムチャートである。It is a time chart which showed operation at the time of normal of a 1st embodiment. 第1実施形態の異常時の動作を示したタイムチャートである。It is a time chart which showed operation at the time of abnormality of a 1st embodiment. 第1実施形態の変形例を示したブロック図である。It is the block diagram which showed the modification of 1st Embodiment. 第2実施形態に係るモータ制御装置のブロック図である。It is a block diagram of the motor control apparatus which concerns on 2nd Embodiment. 第2実施形態の正常時の動作を示したタイムチャートである。It is a time chart which showed operation at the time of normal of a 2nd embodiment. 第2実施形態の異常時の動作を示したタイムチャートである。It is a time chart which showed operation at the time of abnormality of a 2nd embodiment. 第2実施形態の変形例を示したブロック図である。It is the block diagram which showed the modification of 2nd Embodiment.

以下、本発明の実施形態につき、図面を参照しながら説明する。図面では、同一の部分または対応する部分に、同一の符号を付してある。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals.

まず、図1を参照して、第1実施形態に係るモータ制御装置の構成について説明する。モータ制御装置100は、CPU1、CPU2、選択器3、インバータ回路4、電流検出部5、クロック回路6、異常検出部16、および異常検出部26を備えている。モータ制御装置100により制御されるモータ7は、例えば、電動パワーステアリング装置における操舵補助用の3相ブラシレスモータである。モータ制御装置100は、車両に備わるトルクセンサ8からのトルク信号に基づいて、モータ7を制御する。   First, the configuration of the motor control device according to the first embodiment will be described with reference to FIG. The motor control device 100 includes a CPU 1, a CPU 2, a selector 3, an inverter circuit 4, a current detection unit 5, a clock circuit 6, an abnormality detection unit 16, and an abnormality detection unit 26. The motor 7 controlled by the motor control device 100 is, for example, a three-phase brushless motor for assisting steering in an electric power steering device. The motor control device 100 controls the motor 7 based on a torque signal from a torque sensor 8 provided in the vehicle.

CPU1は、モータ7に流すべき電流の指令値を演算する電流指令値演算部11と、PWM信号のデューティを演算するデューティ演算部12と、PWM信号を生成するPWM信号生成部13とを備えており、第1制御部を構成する。電流指令値演算部11には、トルクセンサ8よりトルク信号が入力される。デューティ演算部12には、電流指令値演算部11の出力と、電流検出部5の出力とが入力される。デューティ演算部12の出力は、PWM信号生成部13に与えられる。   The CPU 1 includes a current command value calculation unit 11 that calculates a command value of a current to be supplied to the motor 7, a duty calculation unit 12 that calculates the duty of the PWM signal, and a PWM signal generation unit 13 that generates a PWM signal. And constitutes a first control unit. A torque signal is input from the torque sensor 8 to the current command value calculation unit 11. The output of the current command value calculation unit 11 and the output of the current detection unit 5 are input to the duty calculation unit 12. The output of the duty calculator 12 is given to the PWM signal generator 13.

CPU2は、モータ7に流すべき電流の指令値を演算する電流指令値演算部21と、PWM信号のデューティを演算するデューティ演算部22と、PWM信号を生成するPWM信号生成部23とを備えており、第2制御部を構成する。電流指令値演算部21には、トルクセンサ8よりトルク信号が入力される。デューティ演算部22には、電流指令値演算部21の出力と、電流検出部5の出力とが入力される。デューティ演算部22の出力は、PWM信号生成部23に与えられる。   The CPU 2 includes a current command value calculation unit 21 that calculates a command value of a current to be supplied to the motor 7, a duty calculation unit 22 that calculates the duty of the PWM signal, and a PWM signal generation unit 23 that generates a PWM signal. And constitutes a second control unit. A torque signal is input from the torque sensor 8 to the current command value calculation unit 21. The output of the current command value calculator 21 and the output of the current detector 5 are input to the duty calculator 22. The output of the duty calculator 22 is given to the PWM signal generator 23.

PWM信号生成部13は、デューティ演算部12で演算されたデューティに基づいて、PWM信号Aを生成する。PWM信号生成部23は、デューティ演算部22で演算されたデューティに基づいて、PWM信号Bを生成する。これらのPWM信号A、Bの出力形態については、後で詳しく説明する。   The PWM signal generation unit 13 generates the PWM signal A based on the duty calculated by the duty calculation unit 12. The PWM signal generation unit 23 generates the PWM signal B based on the duty calculated by the duty calculation unit 22. The output form of these PWM signals A and B will be described in detail later.

選択器3は、PWM信号生成部13から出力されるPWM信号Aと、PWM信号生成部23から出力されるPWM信号Bのいずれかを選択して出力する回路である。通常の状態では、選択器3は、各期間ごとにPWM信号AとPWM信号Bとを交互に選択する。その結果、各期間で選択されたPWM信号が、連続したPWM信号Cとして選択器3から出力される。このPWM信号Cは、インバータ回路4に与えられる。   The selector 3 is a circuit that selects and outputs either the PWM signal A output from the PWM signal generation unit 13 or the PWM signal B output from the PWM signal generation unit 23. In a normal state, the selector 3 alternately selects the PWM signal A and the PWM signal B for each period. As a result, the PWM signal selected in each period is output from the selector 3 as a continuous PWM signal C. This PWM signal C is given to the inverter circuit 4.

インバータ回路4は、図2に示すような公知の3相ブリッジ回路から構成される。各相の上アームa1、a3、a5には、それぞれスイッチング素子Q1、Q3、Q5が備わっており、各相の下アームa2、a4、a6には、それぞれスイッチング素子Q2、Q4、Q6が備わっている。これらのスイッチング素子Q1〜Q6は、FET(電界効果トランジスタ)からなり、選択器3から出力されるPWM信号C(PWM1〜PWM6)が、各スイッチング素子Q1〜Q6のゲートに与えられる。各相の上アームa1、a3、a5と下アームa2、a4、a6の各接続点は、モータ7に接続されている。   The inverter circuit 4 is constituted by a known three-phase bridge circuit as shown in FIG. The upper arms a1, a3, a5 of each phase are equipped with switching elements Q1, Q3, Q5, respectively, and the lower arms a2, a4, a6 of each phase are equipped with switching elements Q2, Q4, Q6, respectively. Yes. These switching elements Q1 to Q6 are composed of FETs (field effect transistors), and a PWM signal C (PWM1 to PWM6) output from the selector 3 is given to the gates of the switching elements Q1 to Q6. Each connection point of the upper arms a1, a3, a5 and the lower arms a2, a4, a6 of each phase is connected to the motor 7.

電流検出部5は、インバータ回路4を通って流れるモータ7の各相の電流を検出するための電流検出抵抗(図示省略)や、この電流検出抵抗の両端の電圧を増幅する増幅器(図示省略)などから構成される。電流検出部5の出力は、デューティ演算部12、22に与えられる。   The current detection unit 5 is a current detection resistor (not shown) for detecting the current of each phase of the motor 7 flowing through the inverter circuit 4 and an amplifier (not shown) that amplifies the voltage at both ends of the current detection resistor. Etc. The output of the current detection unit 5 is given to the duty calculation units 12 and 22.

クロック回路6は、CPU1とCPU2の動作を同期させるためのクロック信号を生成し、これを各CPUへ出力する。クロック信号は一定の周期を持ったパルス信号である。   The clock circuit 6 generates a clock signal for synchronizing the operations of the CPU 1 and the CPU 2 and outputs it to each CPU. The clock signal is a pulse signal having a certain period.

異常検出部16は、PWM信号生成部13からPWM信号Aが出力されない異常を検出する。異常検出部16から出力される異常検出信号は、選択器3へ与えられる。異常検出部26は、PWM信号生成部23からPWM信号Bが出力されない異常を検出する。異常検出部26から出力される異常検出信号は、選択器3へ与えられる。異常検出部16、26と選択器3とは、たとえば1つのCPUに備わっている。   The abnormality detection unit 16 detects an abnormality in which the PWM signal A is not output from the PWM signal generation unit 13. The abnormality detection signal output from the abnormality detection unit 16 is given to the selector 3. The abnormality detection unit 26 detects an abnormality in which the PWM signal B is not output from the PWM signal generation unit 23. The abnormality detection signal output from the abnormality detection unit 26 is given to the selector 3. The abnormality detection units 16 and 26 and the selector 3 are provided in one CPU, for example.

以上の構成において、モータ7に流れる電流は、本発明における「物理量」の一例であり、電流検出部5は、本発明における「物理量検出部」の一例である。電流指令値演算部11、21は、本発明における「指令値演算部」の一例である。デューティ演算部12は、本発明における「第1デューティ演算部」の一例であり、デューティ演算部22は、本発明における「第2デューティ演算部」の一例である。PWM信号生成部13は、本発明における「第1PWM信号生成部」の一例であり、PWM信号生成部23は、本発明における「第2PWM信号生成部」の一例である。異常検出部16は、本発明における「第1異常検出部」の一例であり、異常検出部26は、本発明における「第2異常検出部」の一例である。PWM信号Aは、本発明における「第1PWM信号」の一例であり、PWM信号Bは、本発明における「第2PWM信号」の一例である。   In the above configuration, the current flowing through the motor 7 is an example of the “physical quantity” in the present invention, and the current detection unit 5 is an example of the “physical quantity detection unit” in the present invention. The current command value calculation units 11 and 21 are examples of the “command value calculation unit” in the present invention. The duty calculator 12 is an example of a “first duty calculator” in the present invention, and the duty calculator 22 is an example of a “second duty calculator” in the present invention. The PWM signal generation unit 13 is an example of a “first PWM signal generation unit” in the present invention, and the PWM signal generation unit 23 is an example of a “second PWM signal generation unit” in the present invention. The abnormality detection unit 16 is an example of a “first abnormality detection unit” in the present invention, and the abnormality detection unit 26 is an example of a “second abnormality detection unit” in the present invention. The PWM signal A is an example of the “first PWM signal” in the present invention, and the PWM signal B is an example of the “second PWM signal” in the present invention.

次に、上述したモータ制御装置100の動作について説明する。トルクセンサ8は、車両のハンドルの操舵により発生するトルクの値を検出し、検出されたトルク値をトルク信号としてモータ制御装置100へ出力する。モータ制御装置100において、CPU1の電流指令値演算部11は、トルクセンサ8から与えられるトルク値に基づいて、モータ7に流すべき電流の指令値を演算する。また、CPU2の電流指令値演算部21も、トルクセンサ8から与えられるトルク値に基づいて、モータ7に流すべき電流の指令値を演算する。   Next, the operation of the motor control device 100 described above will be described. The torque sensor 8 detects the value of torque generated by steering the vehicle steering wheel, and outputs the detected torque value to the motor control device 100 as a torque signal. In the motor control device 100, the current command value calculation unit 11 of the CPU 1 calculates the command value of the current that should flow through the motor 7 based on the torque value given from the torque sensor 8. Further, the current command value calculation unit 21 of the CPU 2 also calculates a command value of a current to be passed through the motor 7 based on the torque value given from the torque sensor 8.

CPU1のデューティ演算部12は、所定の期間において、電流指令値演算部11から与えられる電流指令値と、電流検出部5から与えられる各相のモータ電流の検出値とに基づいて、PWM信号のデューティを演算する。詳しくは、デューティ演算部12は、モータ電流の検出値を電流指令値と比較して、両者の偏差を算出する。そして、当該偏差がゼロとなるように、すなわちモータ電流の値が電流指令値と等しくなるように、デューティの演算を行う。   The duty calculation unit 12 of the CPU 1 determines the PWM signal based on the current command value given from the current command value calculation unit 11 and the detected value of the motor current of each phase given from the current detection unit 5 in a predetermined period. Calculate the duty. Specifically, the duty calculator 12 compares the detected value of the motor current with the current command value, and calculates the deviation between them. Then, the duty is calculated so that the deviation becomes zero, that is, the value of the motor current is equal to the current command value.

CPU2のデューティ演算部22は、上記所定の期間と異なる期間において、電流指令値演算部21から与えられる電流指令値と、電流検出部5から与えられる各相のモータ電流の検出値とに基づき、CPU1のデューティ演算部12と同様にして、PWM信号のデューティを演算する。したがって、デューティ演算部12、22は、相互に時分割でデューティ演算を行う。   The duty calculation unit 22 of the CPU 2 is based on the current command value supplied from the current command value calculation unit 21 and the detected value of the motor current of each phase supplied from the current detection unit 5 in a period different from the predetermined period. The duty of the PWM signal is calculated in the same manner as the duty calculator 12 of the CPU 1. Therefore, the duty calculation units 12 and 22 perform duty calculation in a time division manner.

CPU1のデューティ演算部12で演算されたデューティは、PWM信号生成部13へ出力される。PWM信号生成部13は、デューティ演算部12から出力されるデューティと、キャリア信号(たとえば三角波)とに基づき、公知の方法に従って、当該デューティを持ったPWM信号Aを生成する。そして、PWM信号生成部13は、後述するように、同じPWM信号Aを2回連続して出力する。   The duty calculated by the duty calculation unit 12 of the CPU 1 is output to the PWM signal generation unit 13. The PWM signal generation unit 13 generates a PWM signal A having the duty according to a known method based on the duty output from the duty calculation unit 12 and a carrier signal (for example, a triangular wave). The PWM signal generator 13 outputs the same PWM signal A twice in succession, as will be described later.

CPU2のデューティ演算部22で演算されたデューティは、PWM信号生成部23へ出力される。PWM信号生成部23も、デューティ演算部22から出力されるデューティと、キャリア信号(たとえば三角波)とに基づき、公知の方法に従って、当該デューティを持ったPWM信号Bを生成する。そして、PWM信号生成部23は、後述するように、同じPWM信号Bを2回連続して出力する。   The duty calculated by the duty calculator 22 of the CPU 2 is output to the PWM signal generator 23. The PWM signal generation unit 23 also generates the PWM signal B having the duty according to a known method based on the duty output from the duty calculation unit 22 and the carrier signal (for example, a triangular wave). The PWM signal generator 23 outputs the same PWM signal B twice in succession, as will be described later.

PWM信号生成部13から出力される2回連続したPWM信号Aと、PWM信号生成部23から出力される2回連続したPWM信号Bとは、タイミングをずらせて選択器3に入力される。選択器3は、ある期間ではPWM信号Aを選択し、次の期間ではPWM信号Bを選択し、その次の期間ではPWM信号Aを選択するというように、PWM信号A、Bを交互に選択する。そして、選択したPWM信号からなるPWM信号Cを、インバータ回路4へ出力する。すなわち、図2のように、インバータ回路4のスイッチング素子Q1〜Q6の各ゲートに、PWM信号C(PWM1〜PWM6)を与える。   The two consecutive PWM signals A output from the PWM signal generation unit 13 and the two consecutive PWM signals B output from the PWM signal generation unit 23 are input to the selector 3 at different timings. The selector 3 selects the PWM signals A and B alternately such that the PWM signal A is selected in a certain period, the PWM signal B is selected in the next period, and the PWM signal A is selected in the next period. To do. Then, the PWM signal C including the selected PWM signal is output to the inverter circuit 4. That is, as shown in FIG. 2, the PWM signal C (PWM1 to PWM6) is given to each gate of the switching elements Q1 to Q6 of the inverter circuit 4.

インバータ回路4のスイッチング素子Q1〜Q6は、選択器3から与えられるPWM信号Cによりオン・オフ動作を行う。これによって、電源Vd(図2)からインバータ回路4を通ってモータ7へ電流が流れ、モータ7が回転する。そして、PWM信号Cのデューティと位相に応じたスイッチング素子Q1〜Q6のオン・オフのパターンに従って、モータ7に流れる電流の大きさや方向が制御される。   The switching elements Q <b> 1 to Q <b> 6 of the inverter circuit 4 are turned on / off by the PWM signal C supplied from the selector 3. As a result, a current flows from the power source Vd (FIG. 2) through the inverter circuit 4 to the motor 7, and the motor 7 rotates. And the magnitude | size and direction of the electric current which flow into the motor 7 are controlled according to the ON / OFF pattern of the switching elements Q1-Q6 according to the duty and phase of PWM signal C.

図3は、モータ制御装置100の正常時の動作を示したタイムチャートである。図3(a)は、CPU1の動作シーケンスと、PWM信号生成部13から出力されるPWM信号Aを示している。図3(b)は、CPU2の動作シーケンスと、PWM信号生成部23から出力されるPWM信号Bを示している。図3(c)は、選択器3から出力されるPWM信号Cを示している。各波形中の数値は、PWM信号のデューティ(単位:%)を表している(図4、図7、図8についても同様)。但し、デューティの数値は例示であって、これらに限るものでないことは言うまでもない。また、Ta〜Teは、それぞれPWM信号の1周期の期間を表している。なお、図3のPWM信号は、ある1相の上アームのスイッチング素子に対するPWM信号を表している。他のスイッチング素子に対するPWM信号も、デューティが異なるだけで、図3と同様のパターンとなる。   FIG. 3 is a time chart showing the normal operation of the motor control device 100. FIG. 3A shows an operation sequence of the CPU 1 and the PWM signal A output from the PWM signal generation unit 13. FIG. 3B shows an operation sequence of the CPU 2 and the PWM signal B output from the PWM signal generation unit 23. FIG. 3C shows the PWM signal C output from the selector 3. The numerical value in each waveform represents the duty (unit:%) of the PWM signal (the same applies to FIGS. 4, 7, and 8). However, it is needless to say that the numerical value of the duty is an example and is not limited thereto. Ta to Te each represent a period of one cycle of the PWM signal. Note that the PWM signal in FIG. 3 represents a PWM signal for a certain one-phase upper arm switching element. The PWM signals for the other switching elements also have the same pattern as that shown in FIG.

図3(a)のように、CPU1のデューティ演算部12は、期間Taでデューティの演算を行う。その結果、次の期間Tbにおいて、当該デューティを持ったPWM信号Aが、PWM信号生成部13で生成され出力される。このときのデューティは、たとえばPWM信号生成部13の内部レジスタに保持されている。そして、その次の期間Tcにおいて、PWM信号生成部13は、内部レジスタに保持されているデューティを読み出し、期間Tbで出力したPWM信号Aと同じPWM信号Aを生成して出力する。すなわち、実線で囲んだように、2つの期間(2周期)Tb、Tcにわたって、同じPWM信号Aが2回連続して出力される。なお、期間Taで出力されているPWM信号Aは、期間Taの2つ前の期間で演算されたデューティに基づくPWM信号である。   As shown in FIG. 3A, the duty calculator 12 of the CPU 1 calculates the duty in the period Ta. As a result, in the next period Tb, the PWM signal A having the duty is generated and output by the PWM signal generation unit 13. The duty at this time is held in, for example, an internal register of the PWM signal generation unit 13. In the next period Tc, the PWM signal generation unit 13 reads the duty held in the internal register, and generates and outputs the same PWM signal A as the PWM signal A output in the period Tb. That is, as surrounded by a solid line, the same PWM signal A is continuously output twice over two periods (two cycles) Tb and Tc. Note that the PWM signal A output in the period Ta is a PWM signal based on the duty calculated in the period immediately before the period Ta.

同様にして、CPU1のデューティ演算部12は、期間Tcでデューティの演算を行う。その結果、次の期間Tdにおいて、当該デューティを持ったPWM信号Aが、PWM信号生成部13で生成され出力される。また、期間Tdで出力されたPWM信号Aと同じPWM信号Aが、その次の期間Teでも出力される。すなわち、2点鎖線で囲んだように、2つの期間(2周期)Td、Teにわたって、同じPWM信号Aが2回連続して出力される。   Similarly, the duty calculation unit 12 of the CPU 1 calculates the duty in the period Tc. As a result, in the next period Td, the PWM signal A having the duty is generated and output by the PWM signal generation unit 13. Further, the same PWM signal A as the PWM signal A output in the period Td is also output in the next period Te. That is, as surrounded by a two-dot chain line, the same PWM signal A is continuously output twice over two periods (two periods) Td and Te.

一方、図3(b)のように、CPU2のデューティ演算部22は、期間Tbでデューティの演算を行う。その結果、次の期間Tcにおいて、当該デューティを持ったPWM信号Bが、PWM信号生成部23で生成され出力される。このときのデューティは、たとえばPWM信号生成部23の内部レジスタに保持されている。そして、その次の期間Tdにおいて、PWM信号生成部23は、内部レジスタに保持されているデューティを読み出し、期間Tcで出力したPWM信号Bと同じPWM信号Bを生成して出力する。すなわち、破線で囲んだように、2つの期間(2周期)Tc、Tdにわたって、同じPWM信号Bが2回連続して出力される。なお、期間Ta、Tbで出力されているPWM信号Bは、期間Taの1つ前の期間で演算されたデューティに基づくPWM信号である。   On the other hand, as shown in FIG. 3B, the duty calculator 22 of the CPU 2 calculates the duty in the period Tb. As a result, in the next period Tc, the PWM signal B having the duty is generated and output by the PWM signal generation unit 23. The duty at this time is held in, for example, an internal register of the PWM signal generation unit 23. In the next period Td, the PWM signal generation unit 23 reads the duty held in the internal register, and generates and outputs the same PWM signal B as the PWM signal B output in the period Tc. That is, as surrounded by a broken line, the same PWM signal B is continuously output twice over two periods (two cycles) Tc and Td. The PWM signal B output in the periods Ta and Tb is a PWM signal based on the duty calculated in the period immediately before the period Ta.

同様にして、CPU2のデューティ演算部22は、期間Tdでデューティの演算を行う。その結果、次の期間Teにおいて、当該デューティを持ったPWM信号Bが、PWM信号生成部23で生成され出力される。また、期間Teで出力されたPWM信号Bと同じPWM信号Bが、その次の期間(図示省略)でも出力される。すなわち、点線で囲んだように、2つの期間(2周期)にわたって、同じPWM信号Bが2回連続して出力される。   Similarly, the duty calculator 22 of the CPU 2 calculates the duty in the period Td. As a result, in the next period Te, the PWM signal B having the duty is generated and output by the PWM signal generation unit 23. Further, the same PWM signal B as the PWM signal B output in the period Te is output in the next period (not shown). That is, as surrounded by a dotted line, the same PWM signal B is continuously output twice over two periods (two cycles).

選択器3は、期間TaにおいてPWM信号Bを選択する。この結果、図3(c)のように、期間Taでは、PWM信号BがPWM信号Cとして選択器3から出力される。また、選択器3は、期間TbにおいてPWM信号Aを選択する。この結果、期間Tbでは、PWM信号AがPWM信号Cとして選択器3から出力される。また、選択器3は、期間TcにおいてPWM信号Bを選択する。この結果、期間Tcでは、PWM信号BがPWM信号Cとして選択器3から出力される。さらに、選択器3は、期間TdにおいてPWM信号Aを選択する。この結果、期間Tdでは、PWM信号AがPWM信号Cとして選択器3から出力される。以下同様にして、選択器3は、各期間ごとにPWM信号AとPWM信号Bを交互に選択し、選択したPWM信号を出力する。これにより、選択されたPWM信号が、図3(c)のような連続したPWM信号Cとなって、選択器3から出力されることになる。   The selector 3 selects the PWM signal B in the period Ta. As a result, as shown in FIG. 3C, the PWM signal B is output from the selector 3 as the PWM signal C in the period Ta. The selector 3 selects the PWM signal A in the period Tb. As a result, the PWM signal A is output from the selector 3 as the PWM signal C in the period Tb. The selector 3 selects the PWM signal B in the period Tc. As a result, the PWM signal B is output from the selector 3 as the PWM signal C in the period Tc. Further, the selector 3 selects the PWM signal A in the period Td. As a result, the PWM signal A is output from the selector 3 as the PWM signal C in the period Td. Similarly, the selector 3 alternately selects the PWM signal A and the PWM signal B for each period, and outputs the selected PWM signal. As a result, the selected PWM signal becomes a continuous PWM signal C as shown in FIG.

図4は、CPU2が故障した場合のモータ制御装置100の動作を示したタイムチャートである。図4(b)のように、期間TbでCPU2が故障すると、それ以降CPU2は動作を停止するので、デューティ演算部22はデューティ演算を実行せず、PWM信号生成部23もPWM信号Bを出力しなくなる。一方、CPU1は正常に動作しているので、図4(a)のように、デューティ演算部12でデューティ演算が実行され、PWM信号生成部13から2回連続するPWM信号Aが正常に出力される。   FIG. 4 is a time chart showing the operation of the motor control device 100 when the CPU 2 fails. As shown in FIG. 4B, when the CPU 2 fails in the period Tb, the CPU 2 stops operating thereafter, so the duty calculator 22 does not execute the duty calculation, and the PWM signal generator 23 also outputs the PWM signal B. No longer. On the other hand, since the CPU 1 is operating normally, as shown in FIG. 4A, the duty calculation unit 12 executes the duty calculation, and the PWM signal generation unit 13 outputs the PWM signal A that is continuous twice. The

異常検出部26は、期間Tbにおいて、PWM信号生成部23からPWM信号Bが出力されていないことを検出する。このとき、異常検出部26は、異常検出信号を選択器3へ出力する。すると、選択器3は、次の期間Tcにおいて、PWM信号BではなくPWM信号Aを選択する。その結果、図4(c)のように、期間Tcでは、PWM信号AがPWM信号Cとして選択器3から出力される。また、異常検出部26は、期間Tc以降も、PWM信号Bが出力されていないことを検出し、異常検出信号を選択器3へ出力し続ける。この異常検出信号が入力されている間、選択器3は、各期間でPWM信号Aの選択を継続する。したがって、その間は、選択器3から出力されるPWM信号Cは、PWM信号Aとなる。このようにして、PWM信号Bが出力されない期間では、PWM信号Bに代わってPWM信号Aが出力されるため、選択器3から出力されるPWM信号Cは、図4(c)のような連続したPWM信号となる。   The abnormality detection unit 26 detects that the PWM signal B is not output from the PWM signal generation unit 23 in the period Tb. At this time, the abnormality detection unit 26 outputs an abnormality detection signal to the selector 3. Then, the selector 3 selects the PWM signal A instead of the PWM signal B in the next period Tc. As a result, the PWM signal A is output from the selector 3 as the PWM signal C in the period Tc as shown in FIG. In addition, the abnormality detection unit 26 detects that the PWM signal B is not output after the period Tc, and continues to output the abnormality detection signal to the selector 3. While this abnormality detection signal is input, the selector 3 continues to select the PWM signal A in each period. Therefore, during that period, the PWM signal C output from the selector 3 becomes the PWM signal A. In this way, during the period in which the PWM signal B is not output, the PWM signal A is output instead of the PWM signal B. Therefore, the PWM signal C output from the selector 3 is continuous as shown in FIG. PWM signal.

以上においては、CPU2が故障した場合について述べたが、CPU1が故障した場合も、上記の同様の原理が適用される。この場合は、異常検出部16により、PWM信号生成部13からPWM信号Aが出力されていないことが検出される。そして、選択器3は、PWM信号Aが出力されない期間において、PWM信号Bを選択し、PWM信号Aに代わってPWM信号Bを出力する。   In the above, the case where the CPU 2 has failed has been described. However, the same principle as described above is applied to the case where the CPU 1 has failed. In this case, the abnormality detection unit 16 detects that the PWM signal A is not output from the PWM signal generation unit 13. The selector 3 selects the PWM signal B in a period in which the PWM signal A is not output, and outputs the PWM signal B instead of the PWM signal A.

このように、第1実施形態では、CPU1のデューティ演算部12と、CPU2のデューティ演算部22とが、時分割で交互にデューティ演算を行うので、各デューティ演算部12、22における演算処理の負荷を低減することができる。また、PWM信号生成部13、23から、PWM信号A、Bをそれぞれ2回連続して出力しているので、CPU1(またはCPU2)の故障時に、PWM信号A(またはB)が出力されない期間においても、PWM信号B(またはA)を選択して出力することができる。このため、選択器3から出力されるPWM信号Cは、連続したPWM信号となり、PWM信号Cに途切れが発生しない。したがって、CPU1、2の一方が故障しても、モータ7の制御を継続できることは勿論、連続したPWM信号Cによって、モータ7に十分な電流を流すことができる。これにより、モータ7の回転数の低下が抑制され、一定以上の操舵補助力を確保することができる。   As described above, in the first embodiment, the duty calculation unit 12 of the CPU 1 and the duty calculation unit 22 of the CPU 2 perform duty calculation alternately in a time division manner. Can be reduced. In addition, since the PWM signals A and B are output continuously twice from the PWM signal generation units 13 and 23, respectively, in a period in which the PWM signal A (or B) is not output when the CPU 1 (or CPU 2) fails. Also, the PWM signal B (or A) can be selected and output. For this reason, the PWM signal C output from the selector 3 is a continuous PWM signal, and the PWM signal C is not interrupted. Therefore, even if one of the CPUs 1 and 2 breaks down, the control of the motor 7 can be continued, and a sufficient current can be supplied to the motor 7 by the continuous PWM signal C. Thereby, the fall of the rotation speed of the motor 7 is suppressed, and a steering assist force of a certain level or more can be ensured.

図5は、第1実施形態(図1)の変形例であるモータ制御装置101を示している。図1では、2つの電流指令値演算部11、21がそれぞれCPU1、2に設けられていたが、図5では、1つの電流指令値演算部31がCPU30に設けられている。また、デューティ演算部12とPWM信号生成部13はCPU10に設けられ、デューティ演算部22とPWM信号生成部23はCPU20に設けられている。そして、電流指令値演算部31は、デューティ演算部12とデューティ演算部22に、共通に指令値を与えるように構成されている。その他の構成、および基本的な動作については、図1のモータ制御装置100と同じであるので、重複部分の説明は省略する。   FIG. 5 shows a motor control device 101 which is a modification of the first embodiment (FIG. 1). In FIG. 1, the two current command value calculation units 11 and 21 are provided in the CPUs 1 and 2, respectively, but in FIG. 5, one current command value calculation unit 31 is provided in the CPU 30. The duty calculator 12 and the PWM signal generator 13 are provided in the CPU 10, and the duty calculator 22 and the PWM signal generator 23 are provided in the CPU 20. The current command value calculation unit 31 is configured to give a command value to the duty calculation unit 12 and the duty calculation unit 22 in common. Other configurations and basic operations are the same as those of the motor control device 100 of FIG.

図6は、第2実施形態に係るモータ制御装置200の構成を示している。第1実施形態(図1)では、CPU1、2にそれぞれPWM信号生成部13、23が備わっていたが、第2実施形態のモータ制御装置200では、CPU1、2にPWM信号生成部13、23が備わっていない。これに代わって、単一のPWM信号生成部9が、選択器3の後段に設けられている。選択器3には、デューティ演算部12で演算されたデューティAと、デューティ演算部22で演算されたデューティBとが入力される。異常検出部16、26は、それぞれデューティ演算部12、22からデューティA、Bが出力されない異常を検出する。その他の構成については、図1のモータ制御装置100と同じである。デューティAは、本発明における「第1デューティ」の一例であり、デューティBは、本発明における「第2デューティ」の一例である。   FIG. 6 shows a configuration of a motor control device 200 according to the second embodiment. In the first embodiment (FIG. 1), the CPUs 1 and 2 have PWM signal generation units 13 and 23, respectively. However, in the motor control device 200 of the second embodiment, the CPUs 1 and 2 have PWM signal generation units 13 and 23, respectively. Is not provided. Instead of this, a single PWM signal generator 9 is provided in the subsequent stage of the selector 3. The selector 3 receives the duty A calculated by the duty calculator 12 and the duty B calculated by the duty calculator 22. The abnormality detection units 16 and 26 detect an abnormality in which the duties A and B are not output from the duty calculation units 12 and 22, respectively. About another structure, it is the same as the motor control apparatus 100 of FIG. The duty A is an example of the “first duty” in the present invention, and the duty B is an example of the “second duty” in the present invention.

CPU1のデューティ演算部12と、CPU2のデューティ演算部22は、第1実施形態と同様に、時分割で交互にデューティ演算を行う。デューティ演算部12、22は、演算したデューティA、Bを選択器3へ出力する。この場合、後述するように、デューティ演算部12は、同じデューティAを2回連続して出力する。また、デューティ演算部22も、同じデューティBを2回連続して出力する。   As with the first embodiment, the duty calculation unit 12 of the CPU 1 and the duty calculation unit 22 of the CPU 2 alternately perform duty calculation in a time division manner. The duty calculators 12 and 22 output the calculated duties A and B to the selector 3. In this case, as will be described later, the duty calculation unit 12 continuously outputs the same duty A twice. The duty calculator 22 also outputs the same duty B twice continuously.

デューティ演算部12から出力される2回連続したデューティAと、デューティ演算部22から出力される2回連続したデューティBとは、タイミングをずらせて選択器3に入力される。選択器3は、ある期間ではデューティAを選択し、次の期間ではデューティBを選択し、その次の期間ではデューティAを選択するというように、デューティA、Bを交互に選択する。そして、選択したデューティを、PWM信号生成部9へ出力する。PWM信号生成部9は、選択器3から与えられるデューティと、キャリア信号(たとえば三角波)とに基づき、公知の方法に従って、当該デューティを持ったPWM信号を生成し、インバータ回路4へ出力する。   The two consecutive duty A output from the duty calculation unit 12 and the two consecutive duty B output from the duty calculation unit 22 are input to the selector 3 at different timings. The selector 3 selects the duty A and B alternately such that the duty A is selected in a certain period, the duty B is selected in the next period, and the duty A is selected in the next period. Then, the selected duty is output to the PWM signal generation unit 9. The PWM signal generation unit 9 generates a PWM signal having the duty based on the duty given from the selector 3 and a carrier signal (for example, a triangular wave), and outputs the PWM signal to the inverter circuit 4.

図7は、モータ制御装置200の正常時の動作を示したタイムチャートである。図7(a)は、CPU1の動作シーケンスと、デューティ演算部12から出力されるデューティAを示している。図7(b)は、CPU2の動作シーケンスと、デューティ演算部22から出力されるデューティBを示している。図7(c)は、PWM信号生成部9から出力されるPWM信号を示している。デューティA、Bは、いずれもデジタルの数値データである。   FIG. 7 is a time chart showing the normal operation of the motor control device 200. FIG. 7A shows the operation sequence of the CPU 1 and the duty A output from the duty calculator 12. FIG. 7B shows the operation sequence of the CPU 2 and the duty B output from the duty calculator 22. FIG. 7C shows the PWM signal output from the PWM signal generation unit 9. The duties A and B are both digital numerical data.

図7(a)のように、CPU1のデューティ演算部12は、期間Taでデューティの演算を行う。その結果、次の期間Tbにおいて、演算されたデューティAが、デューティ演算部12から出力される。そして、その次の期間Tcにおいて、デューティ演算部12は、期間Tbで出力したデューティAと同じデューティAを出力する。すなわち、実線で囲んだように、2つの期間(2周期)Tb、Tcにわたって、同じデューティAが2回連続して出力される。なお、期間Taで出力されているデューティAは、期間Taの2つ前の期間で演算されたデューティである。   As shown in FIG. 7A, the duty calculator 12 of the CPU 1 calculates the duty in the period Ta. As a result, the calculated duty A is output from the duty calculator 12 in the next period Tb. In the next period Tc, the duty calculator 12 outputs the same duty A as the duty A output in the period Tb. That is, as surrounded by a solid line, the same duty A is continuously output twice over two periods (two cycles) Tb and Tc. Note that the duty A output in the period Ta is a duty calculated in the period immediately before the period Ta.

同様にして、CPU1のデューティ演算部12は、期間Tcでデューティの演算を行う。その結果、次の期間Tdにおいて、演算されたデューティAが、デューティ演算部12から出力される。そして、その次の期間Teにおいて、デューティ演算部12は、期間Tdで出力したデューティAと同じデューティAを出力する。すなわち、2点鎖線で囲んだように、2つの期間(2周期)Td、Teにわたって、同じデューティAが2回連続して出力される。   Similarly, the duty calculation unit 12 of the CPU 1 calculates the duty in the period Tc. As a result, the calculated duty A is output from the duty calculator 12 in the next period Td. In the next period Te, the duty calculator 12 outputs the same duty A as the duty A output in the period Td. That is, as surrounded by a two-dot chain line, the same duty A is continuously output twice over two periods (two cycles) Td and Te.

一方、図7(b)のように、CPU2のデューティ演算部22は、期間Tbでデューティの演算を行う。その結果、次の期間Tcにおいて、演算されたデューティBが出力される。そして、その次の期間Tdにおいて、デューティ演算部22は、期間Tcで出力したデューティBと同じデューティBを出力する。すなわち、破線で囲んだように、2つの期間(2周期)Tc、Tdにわたって、同じデューティBが2回連続して出力される。なお、期間Ta、Tbで出力されているデューティBは、期間Taの1つ前の期間で演算されたデューティである。   On the other hand, as shown in FIG. 7B, the duty calculator 22 of the CPU 2 calculates the duty in the period Tb. As a result, the calculated duty B is output in the next period Tc. In the next period Td, the duty calculator 22 outputs the same duty B as the duty B output in the period Tc. That is, as surrounded by a broken line, the same duty B is continuously output twice over two periods (two cycles) Tc and Td. Note that the duty B output in the periods Ta and Tb is a duty calculated in the period immediately preceding the period Ta.

同様にして、CPU2のデューティ演算部22は、期間Tdでデューティの演算を行う。その結果、次の期間Teにおいて、演算されたデューティBが、デューティ演算部22から出力される。そして、その次の期間(図示省略)において、デューティ演算部22は、期間Teで出力したデューティBと同じデューティBを出力する。すなわち、点線で囲んだように、2つの期間(2周期)にわたって、同じデューティBが2回連続して出力される。   Similarly, the duty calculator 22 of the CPU 2 calculates the duty in the period Td. As a result, the calculated duty B is output from the duty calculator 22 in the next period Te. In the next period (not shown), the duty calculator 22 outputs the same duty B as the duty B output in the period Te. That is, as surrounded by a dotted line, the same duty B is continuously output twice over two periods (two cycles).

選択器3は、期間TaにおいてデューティBを選択し、PWM信号生成部9へ出力する。その結果、期間Taでは、図7(c)のように、デューティBを持ったPWM信号が、PWM信号生成部9から出力される。また、選択器3は、期間TbにおいてデューティAを選択し、PWM信号生成部9へ出力する。その結果、期間Tbでは、デューティAを持ったPWM信号が、PWM信号生成部9から出力される。また、選択器3は、期間TcにおいてデューティBを選択し、PWM信号生成部9へ出力する。その結果、期間Tcでは、デューティBを持ったPWM信号が、PWM信号生成部9から出力される。さらに、選択器3は、期間TdにおいてデューティAを選択し、PWM信号生成部9へ出力する。その結果、期間Tdでは、デューティAを持ったPWM信号が、PWM信号生成部9から出力される。以下同様にして、選択器3は、各期間ごとにデューティAとデューティBを交互に選択し、選択したデューティをPWM信号生成部9へ出力する。これにより、選択されたデューティを持つPWM信号がPWM信号生成部9で生成され、図7(c)のような連続したPWM信号となって、PWM信号生成部9から出力されることになる。   The selector 3 selects the duty B in the period Ta and outputs it to the PWM signal generation unit 9. As a result, in the period Ta, a PWM signal having a duty B is output from the PWM signal generation unit 9 as shown in FIG. Further, the selector 3 selects the duty A in the period Tb and outputs it to the PWM signal generator 9. As a result, during the period Tb, a PWM signal having a duty A is output from the PWM signal generation unit 9. The selector 3 selects the duty B in the period Tc and outputs it to the PWM signal generator 9. As a result, in the period Tc, a PWM signal having a duty B is output from the PWM signal generation unit 9. Further, the selector 3 selects the duty A in the period Td and outputs it to the PWM signal generator 9. As a result, in the period Td, a PWM signal having a duty A is output from the PWM signal generation unit 9. Similarly, the selector 3 alternately selects the duty A and the duty B for each period, and outputs the selected duty to the PWM signal generation unit 9. As a result, a PWM signal having the selected duty is generated by the PWM signal generation unit 9, becomes a continuous PWM signal as shown in FIG. 7C, and is output from the PWM signal generation unit 9.

図8は、CPU2が故障した場合のモータ制御装置100の動作を示したタイムチャートである。図8(b)のように、期間TbでCPU2が故障すると、それ以降CPU2は動作を停止するので、デューティ演算部22はデューティ演算を実行しなくなる。一方、CPU1は正常に動作しているので、図8(a)のように、デューティ演算部12でデューティ演算が実行され、デューティ演算部12から2回連続するデューティAが正常に出力される。   FIG. 8 is a time chart showing the operation of the motor control device 100 when the CPU 2 fails. As shown in FIG. 8B, when the CPU 2 fails in the period Tb, the CPU 2 stops operating thereafter, so that the duty calculator 22 does not execute the duty calculation. On the other hand, since the CPU 1 is operating normally, as shown in FIG. 8A, the duty calculation unit 12 executes the duty calculation, and the duty calculation unit 12 outputs the duty A that is continuous twice.

異常検出部26は、期間Tbにおいて、デューティ演算部22からデューティBが出力されていないことを検出する。このとき、異常検出部26は、異常検出信号を選択器3へ出力する。すると、選択器3は、次の期間Tcにおいて、デューティBではなくデューティAを選択する。その結果、図8(c)のように、期間Tcでは、デューティAを持ったPWM信号がPWM信号生成部9から出力される。また、異常検出部26は、期間Tc以降も、デューティBが出力されていないことを検出し、異常検出信号を選択器3へ出力し続ける。この異常検出信号が入力されている間、選択器3は、各期間でデューティAの選択を継続する。したがって、その間は、PWM信号生成部9から出力されるPWM信号は、デューティAを持ったPWM信号となる。このようにして、デューティBが出力されない期間では、デューティBに代わってデューティAがPWM信号生成部9に与えられるので、PWM信号生成部9から出力されるPWM信号は、図8(c)のような連続したPWM信号となる。   The abnormality detection unit 26 detects that the duty B is not output from the duty calculation unit 22 in the period Tb. At this time, the abnormality detection unit 26 outputs an abnormality detection signal to the selector 3. Then, the selector 3 selects the duty A instead of the duty B in the next period Tc. As a result, as shown in FIG. 8C, a PWM signal having a duty A is output from the PWM signal generation unit 9 in the period Tc. Further, the abnormality detection unit 26 detects that the duty B is not output after the period Tc and continues to output the abnormality detection signal to the selector 3. While the abnormality detection signal is input, the selector 3 continues to select the duty A in each period. Accordingly, during this period, the PWM signal output from the PWM signal generation unit 9 is a PWM signal having a duty A. In this way, during the period in which the duty B is not output, the duty A is given to the PWM signal generation unit 9 instead of the duty B. Therefore, the PWM signal output from the PWM signal generation unit 9 is as shown in FIG. Such a continuous PWM signal is obtained.

以上においては、CPU2が故障した場合について述べたが、CPU1が故障した場合も、上記の同様の原理が適用される。この場合は、異常検出部16により、デューティ演算部12からデューティAが出力されていないことが検出される。そして、選択器3は、デューティAが出力されない期間において、デューティBを選択する。これにより、PWM信号生成部9からデューティBを持ったPWM信号が出力される。   In the above, the case where the CPU 2 has failed has been described. However, the same principle as described above is applied to the case where the CPU 1 has failed. In this case, the abnormality detector 16 detects that the duty A is not output from the duty calculator 12. And the selector 3 selects the duty B in the period when the duty A is not output. As a result, a PWM signal having a duty B is output from the PWM signal generation unit 9.

このように、第2実施形態においても、CPU1のデューティ演算部12と、CPU2のデューティ演算部22とが、時分割で交互にデューティ演算を行うので、各デューティ演算部12、22における演算処理の負荷を低減することができる。また、デューティ演算部12、22から、デューティA、Bをそれぞれ2回連続して出力しているので、CPU1(またはCPU2)の故障時に、デューティA(またはB)が出力されない期間においても、デューティB(またはA)を選択してPWM信号生成部9へ出力することができる。このため、PWM信号生成部9から出力されるPWM信号は、連続したPWM信号となり、PWM信号に途切れが発生しない。したがって、CPU1、2の一方が故障しても、モータ7の制御を継続できることは勿論、連続したPWM信号によって、モータ7に十分な電流を流すことができる。これにより、モータ7の回転数の低下が抑制され、一定以上の操舵補助力を確保することができる。   As described above, also in the second embodiment, the duty calculation unit 12 of the CPU 1 and the duty calculation unit 22 of the CPU 2 alternately perform duty calculation in a time division manner. The load can be reduced. Further, since the duty calculators 12 and 22 continuously output the duties A and B twice, respectively, even if the duty A (or B) is not output when the CPU 1 (or CPU 2) fails, B (or A) can be selected and output to the PWM signal generator 9. For this reason, the PWM signal output from the PWM signal generation unit 9 is a continuous PWM signal, and no interruption occurs in the PWM signal. Therefore, even if one of the CPUs 1 and 2 breaks down, the control of the motor 7 can be continued, and a sufficient current can be supplied to the motor 7 by the continuous PWM signal. Thereby, the fall of the rotation speed of the motor 7 is suppressed, and a steering assist force of a certain level or more can be ensured.

図9は、第2実施形態(図6)の変形例であるモータ制御装置201を示している。図6では、2つの電流指令値演算部11、21がそれぞれCPU1、2に設けられていたが、図9では、1つの電流指令値演算部31がCPU30に設けられている。また、デューティ演算部12はCPU10に設けられ、デューティ演算部22はCPU20に設けられている。そして、電流指令値演算部31は、デューティ演算部12とデューティ演算部22に、共通に指令値を与えるように構成されている。その他の構成、および基本的な動作については、図6のモータ制御装置200と同じであるので、重複部分の説明は省略する。   FIG. 9 shows a motor control device 201 which is a modification of the second embodiment (FIG. 6). In FIG. 6, the two current command value calculation units 11 and 21 are provided in the CPUs 1 and 2, respectively, but in FIG. 9, one current command value calculation unit 31 is provided in the CPU 30. Further, the duty calculation unit 12 is provided in the CPU 10, and the duty calculation unit 22 is provided in the CPU 20. The current command value calculation unit 31 is configured to give a command value to the duty calculation unit 12 and the duty calculation unit 22 in common. Since other configurations and basic operations are the same as those of the motor control device 200 of FIG. 6, description of overlapping portions is omitted.

本発明では、以上述べた実施形態以外にも、以下のような種々の実施形態を採用することができる。   In the present invention, the following various embodiments can be adopted in addition to the embodiments described above.

前記の各実施形態では、デューティ演算部12とデューティ演算部22が別のCPUに設けられているが、1つのCPUにデューティ演算部12とデューティ演算部22を設けてもよい。   In each of the embodiments described above, the duty calculation unit 12 and the duty calculation unit 22 are provided in different CPUs, but the duty calculation unit 12 and the duty calculation unit 22 may be provided in one CPU.

図3においては、PWM信号生成部13から同じPWM信号Aを2回連続して出力し、PWM信号生成部23から同じPWM信号Bを2回連続して出力したが、同じPWM信号を3回(またはそれ以上)連続して出力してもよい。同様に、図7においては、デューティ演算部12から同じデューティAを2回連続して出力し、デューティ演算部22から同じデューティBを2回連続して出力したが、同じデューティを3回(またはそれ以上)連続して出力してもよい。   In FIG. 3, the PWM signal generator 13 outputs the same PWM signal A twice in succession and the PWM signal generator 23 outputs the same PWM signal B twice in succession, but the same PWM signal is output three times. (Or more) may be output continuously. Similarly, in FIG. 7, the same duty A is continuously output twice from the duty calculator 12 and the same duty B is continuously output twice from the duty calculator 22, but the same duty is output three times (or More than that) may be output continuously.

前記の各実施形態では、物理量検出部として、モータ7の電流を検出する電流検出部5を設け、指令値演算部として、モータ7の電流に対する電流指令値を演算する電流指令値演算部11、21、31を設けたが、本発明はこれに限定されない。たとえば、物理量検出部として、モータ7の回転速度を検出する回転速度検出部を設け、指令値演算部として、モータ7の回転速度に対する回転速度指令値演算部を設けてもよい。すなわち、物理量検出部は、モータ7の駆動に伴って発生する、モータ7における電流や回転速度などの物理量を検出するものであればよく、指令値演算部は、これらの物理量に対する指令値を演算するものであればよい。   In each of the above embodiments, the current detection unit 5 that detects the current of the motor 7 is provided as the physical quantity detection unit, and the current command value calculation unit 11 that calculates the current command value for the current of the motor 7 as the command value calculation unit. Although 21 and 31 are provided, the present invention is not limited to this. For example, a rotation speed detection unit that detects the rotation speed of the motor 7 may be provided as the physical quantity detection unit, and a rotation speed command value calculation unit for the rotation speed of the motor 7 may be provided as the command value calculation unit. That is, the physical quantity detection unit only needs to detect a physical quantity such as a current and a rotation speed in the motor 7 that is generated when the motor 7 is driven, and the command value calculation unit calculates a command value for these physical quantities. Anything to do.

前記の各実施形態では、トルクセンサ8から与えられるトルク値に基づいて、モータ7を制御する例を挙げたが、本発明はこれに限定されない。例えば、車速センサから与えられる速度値に基づいて、モータ7を制御する場合にも、本発明を適用することができる。   In each of the above-described embodiments, the example in which the motor 7 is controlled based on the torque value given from the torque sensor 8 has been described, but the present invention is not limited to this. For example, the present invention can be applied to the case where the motor 7 is controlled based on a speed value given from a vehicle speed sensor.

前記の各実施形態では、電流検出部5で検出された電流の値と、電流指令値演算部11、21、31で演算された電流指令値との偏差に基づいて、デューティ演算部12、22がPWM信号のデューティを演算するフィードバック制御方式を例に挙げたが、本発明はこれに限定されない。たとえば、インバータ回路4から電流検出部5を経てデューティ演算部12、22へ至るフィードバック経路を省略してもよい。また、フィードバック制御方式に代えて、フィードフォワード制御方式を採用してもよい。この場合は、モータ7に流れる電流の変動要因となる外乱(電源電圧の変動など)を事前に検知し、その結果に基づいてデューティ演算部12、22がデューティを演算する。さらに、本発明は、フィードバック制御方式とフィードフォワード制御方式とを併用した場合にも、適用することが可能である。   In each of the embodiments described above, based on the deviation between the current value detected by the current detection unit 5 and the current command value calculated by the current command value calculation units 11, 21, 31, the duty calculation units 12, 22. Has exemplified the feedback control method for calculating the duty of the PWM signal, but the present invention is not limited to this. For example, the feedback path from the inverter circuit 4 through the current detection unit 5 to the duty calculation units 12 and 22 may be omitted. Further, a feedforward control method may be employed instead of the feedback control method. In this case, disturbances (such as fluctuations in the power supply voltage) that cause fluctuations in the current flowing through the motor 7 are detected in advance, and the duty calculation units 12 and 22 calculate the duty based on the result. Furthermore, the present invention can also be applied when the feedback control method and the feedforward control method are used in combination.

前記の各実施形態では、3相モータの制御装置について述べたが、本発明は、3相モータに限らず、4相以上の多相モータの制御装置にも適用することができる。この場合は、インバータ回路4において、上下一対のアームが相数分だけ設けられる。   In each of the embodiments described above, the control device for the three-phase motor has been described. However, the present invention is not limited to the three-phase motor, and can be applied to a control device for a multi-phase motor having four or more phases. In this case, the inverter circuit 4 is provided with a pair of upper and lower arms corresponding to the number of phases.

図2においては、インバータ回路4のスイッチング素子Q1〜Q6としてFETを例に挙げたが、FETに代えて、IGBT(絶縁ゲート型バイポーラモードトランジスタ)のような他のスイッチング素子を使用してもよい。   In FIG. 2, FETs are taken as an example of the switching elements Q1 to Q6 of the inverter circuit 4, but other switching elements such as IGBTs (insulated gate bipolar mode transistors) may be used instead of the FETs. .

前記の各実施形態では、モータ7としてブラシレスモータを例に挙げたが、本発明は、これ以外のモータを制御する場合にも適用することができる。   In each of the above-described embodiments, a brushless motor has been exemplified as the motor 7. However, the present invention can also be applied to the case of controlling other motors.

前記の各実施形態では、車両の電動パワーステアリング装置に用いられるモータ制御装置を例に挙げたが、本発明はこれ以外の装置に用いられるモータ制御装置にも適用することができる。   In each of the above-described embodiments, the motor control device used for the electric power steering device of the vehicle has been exemplified. However, the present invention can also be applied to a motor control device used for other devices.

3 選択器
4 インバータ回路
5 電流検出部(物理量検出部)
7 モータ
9 PWM信号生成部
11、21、31 電流指令値演算部(指令値演算部)
12 デューティ演算部(第1デューティ演算部)
22 デューティ演算部(第2デューティ演算部)
13 PWM信号生成部(第1PWM信号生成部)
23 PWM信号生成部(第2PWM信号生成部)
16 異常検出部(第1異常検出部)
26 異常検出部(第2異常検出部)
100、101、200、201 モータ制御装置
3 Selector 4 Inverter circuit 5 Current detector (physical quantity detector)
7 Motor 9 PWM signal generator 11, 21, 31 Current command value calculator (command value calculator)
12 Duty calculation unit (first duty calculation unit)
22 Duty calculation unit (second duty calculation unit)
13 PWM signal generator (first PWM signal generator)
23 PWM signal generator (second PWM signal generator)
16 Abnormality detection unit (first abnormality detection unit)
26 Abnormality detection unit (second abnormality detection unit)
100, 101, 200, 201 Motor control device

Claims (4)

スイッチング素子のオン・オフによりモータを駆動するインバータ回路と、
前記スイッチング素子をオン・オフさせるためのPWM信号を生成するPWM信号生成部と、
前記PWM信号のデューティを演算するデューティ演算部と、を備えたモータ制御装置において、
前記デューティ演算部は、相互に時分割で前記PWM信号のデューティを演算する第1デューティ演算部および第2デューティ演算部からなり、
前記PWM信号生成部は、
前記第1デューティ演算部で演算されたデューティを持つ第1PWM信号を生成し、同じ第1PWM信号を所定回数連続して出力する第1PWM信号生成部と、
前記第2デューティ演算部で演算されたデューティを持つ第2PWM信号を生成し、同じ第2PWM信号を所定回数連続して出力する第2PWM信号生成部と、からなり、
前記第1PWM信号生成部から出力される前記第1PWM信号と、前記第2PWM信号生成部から出力される前記第2WM信号とを交互に選択し、選択された各PWM信号を連続したPWM信号として出力する選択器と、
前記第1PWM信号生成部から前記第1PWM信号が出力されない異常を検出する第1異常検出部と、
前記第2PWM信号生成部から前記第2PWM信号が出力されない異常を検出する第2異常検出部と、をさらに備え、
前記選択器は、
前記第1異常検出部が前記異常を検出した場合に、前記第2PWM信号生成部から出力される前記第2PWM信号を選択して出力し、
前記第2異常検出部が前記異常を検出した場合に、前記第1PWM信号生成部から出力される前記第1PWM信号を選択して出力する、ことを特徴とするモータ制御装置。
An inverter circuit that drives the motor by turning on and off the switching element;
A PWM signal generator for generating a PWM signal for turning on and off the switching element;
In a motor control device comprising a duty calculator that calculates the duty of the PWM signal,
The duty calculation unit includes a first duty calculation unit and a second duty calculation unit that calculate the duty of the PWM signal in a time division manner.
The PWM signal generator is
A first PWM signal generating unit that generates a first PWM signal having a duty calculated by the first duty calculating unit and continuously outputs the same first PWM signal a predetermined number of times;
A second PWM signal generation unit that generates a second PWM signal having a duty calculated by the second duty calculation unit and continuously outputs the same second PWM signal a predetermined number of times,
The first PWM signal output from the first PWM signal generation unit and the second WM signal output from the second PWM signal generation unit are alternately selected, and each selected PWM signal is output as a continuous PWM signal. A selector to
A first abnormality detection unit that detects an abnormality in which the first PWM signal is not output from the first PWM signal generation unit;
A second abnormality detection unit that detects an abnormality in which the second PWM signal is not output from the second PWM signal generation unit;
The selector is
When the first abnormality detection unit detects the abnormality, the second PWM signal output from the second PWM signal generation unit is selected and output,
The motor control device according to claim 1, wherein when the second abnormality detection unit detects the abnormality, the first PWM signal output from the first PWM signal generation unit is selected and output.
スイッチング素子のオン・オフによりモータを駆動するインバータ回路と、
前記スイッチング素子をオン・オフさせるためのPWM信号を生成するPWM信号生成部と、
前記PWM信号のデューティを演算するデューティ演算部と、を備えたモータ制御装置において、
前記デューティ演算部は、相互に時分割で前記PWM信号のデューティを演算する第1デューティ演算部および第2デューティ演算部からなり、
前記第1デューティ演算部は、前記PWM信号の第1デューティを演算し、同じ第1デューティを所定回数連続して出力し、
前記第2デューティ演算部は、前記PWM信号の第2デューティを演算し、同じ第2デューティを所定回数連続して出力し、
前記第1デューティ演算部から出力される前記第1デューティと、前記第2デューティ演算部から出力される前記第2デューティとを交互に選択する選択器と、
前記第1デューティ演算部から前記第1デューティが出力されない異常を検出する第1異常検出部と、
前記第2デューティ演算部から前記第2デューティが出力されない異常を検出する第2異常検出部と、をさらに備え、
前記PWM信号生成部は、前記選択器で選択された前記第1デューティおよび前記第2デューティに基づいて、連続したPWM信号を生成して出力し、
前記選択器は、
前記第1異常検出部が前記異常を検出した場合に、前記第2デューティ演算部から出力される前記第2デューティを選択して、前記PWM信号生成部へ出力し、
前記第2異常検出部が前記異常を検出した場合に、前記第1デューティ演算部から出力される前記第1デューティを選択して、前記PWM信号生成部へ出力する、ことを特徴とするモータ制御装置。
An inverter circuit that drives the motor by turning on and off the switching element;
A PWM signal generator for generating a PWM signal for turning on and off the switching element;
In a motor control device comprising a duty calculator that calculates the duty of the PWM signal,
The duty calculation unit includes a first duty calculation unit and a second duty calculation unit that calculate the duty of the PWM signal in a time division manner.
The first duty calculator calculates a first duty of the PWM signal, and outputs the same first duty continuously a predetermined number of times,
The second duty calculator calculates a second duty of the PWM signal, and outputs the same second duty continuously a predetermined number of times,
A selector that alternately selects the first duty output from the first duty calculator and the second duty output from the second duty calculator;
A first abnormality detector that detects an abnormality in which the first duty is not output from the first duty calculator;
A second abnormality detector that detects an abnormality in which the second duty is not output from the second duty calculator,
The PWM signal generation unit generates and outputs a continuous PWM signal based on the first duty and the second duty selected by the selector.
The selector is
When the first abnormality detection unit detects the abnormality, the second duty output from the second duty calculation unit is selected and output to the PWM signal generation unit,
When the second abnormality detection unit detects the abnormality, the first duty output from the first duty calculation unit is selected and output to the PWM signal generation unit. apparatus.
請求項1または請求項2に記載のモータ制御装置において、
前記モータの駆動に伴って発生する、当該モータにおける所定の物理量を検出する物理量検出部と、
前記モータの物理量に対する指令値を演算する指令値演算部と、をさらに備え、
前記各デューティ演算部は、前記物理量検出部で検出された物理量の値を、前記指令値演算部で演算された指令値と比較し、それらの偏差に基づいて、前記PWM信号のデューティを演算する、ことを特徴とするモータ制御装置。
In the motor control device according to claim 1 or 2,
A physical quantity detection unit that detects a predetermined physical quantity in the motor that is generated when the motor is driven;
A command value calculation unit for calculating a command value for the physical quantity of the motor,
Each duty calculation unit compares the value of the physical quantity detected by the physical quantity detection unit with the command value calculated by the command value calculation unit, and calculates the duty of the PWM signal based on the deviation thereof The motor control apparatus characterized by the above-mentioned.
請求項3に記載のモータ制御装置において、
前記指令値演算部は、前記第1デューティ演算部および前記第2デューティ演算部に指令値を与える単一の指令値演算部からなる、ことを特徴とするモータ制御装置。
The motor control device according to claim 3,
The command value calculation unit includes a single command value calculation unit that gives command values to the first duty calculation unit and the second duty calculation unit.
JP2014000054A 2014-01-06 2014-01-06 Motor control device Pending JP2015130714A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014000054A JP2015130714A (en) 2014-01-06 2014-01-06 Motor control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014000054A JP2015130714A (en) 2014-01-06 2014-01-06 Motor control device

Publications (1)

Publication Number Publication Date
JP2015130714A true JP2015130714A (en) 2015-07-16

Family

ID=53761085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014000054A Pending JP2015130714A (en) 2014-01-06 2014-01-06 Motor control device

Country Status (1)

Country Link
JP (1) JP2015130714A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07163189A (en) * 1993-12-08 1995-06-23 Toyota Motor Corp Pwm controller for motor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07163189A (en) * 1993-12-08 1995-06-23 Toyota Motor Corp Pwm controller for motor

Similar Documents

Publication Publication Date Title
JP6701847B2 (en) Motor controller
JP6150757B2 (en) Load drive device
JP5973856B2 (en) Electric power steering device and control device for electric power steering device
JP5655975B1 (en) Multiphase motor control device and electric power steering device using the same
JP5398356B2 (en) Electric motor control device
JP6099148B2 (en) Motor control device
JP2015050909A (en) Motor controller
JP2013017363A (en) Motor control device
JP6662721B2 (en) Control device, motor control device, and electric power steering device
JP6132306B2 (en) Motor control device
WO2014024460A1 (en) Motor control apparatus
JP6591089B2 (en) Rotating machine control device and electric power steering device including the same
JP2013159165A (en) Electric power steering device
JP6445900B2 (en) Electric power steering device
JP2009131098A (en) Controller of multi-phase electric motor
JP5252476B2 (en) Control device for multiphase motor
JP6139394B2 (en) Motor control device
JP6674765B2 (en) Electric motor control device and electric vehicle using the same
JP6314697B2 (en) Control device, motor control device, and steering device
JP2015130714A (en) Motor control device
JP2012157140A (en) Motor controller and electric power steering apparatus
JP5591194B2 (en) Motor drive device
JP2006081322A (en) Ac motor control unit
JP2016013045A (en) Controller, motor controller and steering device
JP2015033204A (en) Motor control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160715

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170413

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170516

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20171107