JP2013247832A - Motor controller and control method of the same - Google Patents

Motor controller and control method of the same Download PDF

Info

Publication number
JP2013247832A
JP2013247832A JP2012122091A JP2012122091A JP2013247832A JP 2013247832 A JP2013247832 A JP 2013247832A JP 2012122091 A JP2012122091 A JP 2012122091A JP 2012122091 A JP2012122091 A JP 2012122091A JP 2013247832 A JP2013247832 A JP 2013247832A
Authority
JP
Japan
Prior art keywords
phase
current
current value
motor control
value
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
JP2012122091A
Other languages
Japanese (ja)
Inventor
Shigeo Yajima
茂雄 矢島
Susumu Akutsu
進 阿久津
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.)
Honda Motor Co Ltd
Original Assignee
Honda Motor 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 Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP2012122091A priority Critical patent/JP2013247832A/en
Publication of JP2013247832A publication Critical patent/JP2013247832A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Ac Motors In General (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a motor controller and a control method of the same which can avoid influence of switching noise of respective three phases and suppress current fluctuation caused by a variation between phases when a current value in remaining one phase is calculated.SOLUTION: When an on/off duty ratio of a U-phase low potential side switching element is less than 20%, current values of other two phases are detected through a shunt resistor at a detection timing TG varied from a center time TG' of on-time of the U-phase corresponding low potential side switching element, and a current value in remaining one phase is calculated based on the detected current values of the other two phases. Weighting is carried out based on the calculated value and a previous current value stored beforehand in the remaining one phase, the current value in the remaining one phase for this time is calculated.

Description

本発明は、モータの各相の電流値に基づいてモータを制御するモータ制御装置及びモータ制御装置の制御方法に関する。   The present invention relates to a motor control device that controls a motor based on a current value of each phase of the motor, and a control method for the motor control device.

三相モータを駆動するモータ制御装置は、各相のスイッチングアームを構成する一対のスイッチング素子を交互にオン/オフさせて直流電力を三相の駆動電力に変換し、モータに出力させている。この制御方法では、モータの三相に対応する電流値のフィードバックが必要になる。しかし、各相の電流値を直接検出する方法を採用した場合、オン/オフのデューティ比が小さい短パルスのときに、パルスの立ち上がりや立ち下がり時に発生するスイッチングノイズの影響により検出電流値の誤差が大きくなってしまう。   A motor control device that drives a three-phase motor alternately turns on / off a pair of switching elements that constitute a switching arm for each phase to convert DC power into three-phase driving power, and outputs it to the motor. This control method requires feedback of current values corresponding to the three phases of the motor. However, if the method of directly detecting the current value of each phase is adopted, the error in the detected current value due to the effect of switching noise generated at the rise and fall of the pulse when the ON / OFF duty ratio is small Will become bigger.

一方、各相の電流値を直接検出する方法に代えて、三相の電流値の和が零になる関係を利用して、二相の電流値を検出し、残りの一相の電流値を計算で求めるブラインド補正方法が知られている(例えば、特許文献1参照)。
しかし、従来のブラインド補正方法では、二相の電流値の検出時に、他の相(電流検出不能相)のスイッチング素子のオン/オフが生じると、二相の電流へノイズ混入が生じて誤差が大きくなってしまう場合がある。このノイズ混入を回避するために、特許文献1では、二相の電流検出の間、他の相(電流検出不能相)のスイッチング状態を保持するようにしている。
On the other hand, instead of the method of directly detecting the current value of each phase, using the relationship that the sum of the current values of three phases becomes zero, the current value of two phases is detected, and the current value of the remaining one phase is calculated. A blind correction method obtained by calculation is known (for example, see Patent Document 1).
However, in the conventional blind correction method, when the switching element of the other phase (current detection impossible phase) is turned on / off at the time of detecting the current value of the two phases, noise is mixed into the two-phase current, resulting in an error. Sometimes it gets bigger. In order to avoid this noise mixing, in Patent Document 1, the switching state of the other phase (current detection impossible phase) is maintained during the two-phase current detection.

特開2010−220414号公報JP 2010-220414 A

しかしながら、いずれの方法も、電流値を検出する相がオン/オフのデューティ比が小さい短パルスのときは、スイッチングノイズの影響で誤差が大きくなってしまうおそれが生じる。
しかも、各相の電流値は、回路構成や素子のばらつき等が影響し、例えば、各素子のオフセット値や温度ドリフト等の違いによって、実際の電流値と、ブラインド補正によって求めた電流値とが異なってしまう。このため、ブラインド補正への切り替え時に、相間のばらつきの分だけ電流値が大きく変動してしまうおそれがある。
However, in any of the methods, when the phase for detecting the current value is a short pulse with a small ON / OFF duty ratio, the error may increase due to the influence of switching noise.
Moreover, the current value of each phase is affected by variations in circuit configuration, elements, etc.For example, the actual current value and the current value obtained by blind correction vary depending on the offset value, temperature drift, etc. of each element. It will be different. For this reason, at the time of switching to the blind correction, the current value may fluctuate greatly by the amount of variation between phases.

本発明は、上述した事情に鑑みてなされたものであり、三相それぞれのスイッチングノイズの影響を回避するとともに、残りの一相の電流を算出する場合に、相間のばらつきに起因する電流の変動を抑えることができるモータ制御装置及びモータ制御装置の制御方法を提供することを目的とする。   The present invention has been made in view of the above-described circumstances, and avoids the effects of switching noise of each of the three phases, and when calculating the current of the remaining one phase, fluctuations in current due to variations between phases. It is an object of the present invention to provide a motor control device and a motor control device control method that can suppress the above-described problem.

上記目的を達成するために、本発明は、モータ制御信号を出力する制御手段と、前記モータ制御信号に基づきスイッチング素子のオン/オフを切り替えるゲート電流を発生するゲートドライバ回路と、前記ゲート電流によりオン/オフする高電位側及び低電位側のスイッチング素子を直列に接続して構成され、前記モータの各相に対応して設けられるスイッチングアームとを備えるモータ制御装置において、各スイッチングアームの低電位側スイッチング素子を流れる電流値を検出するためのシャント抵抗を備え、いずれかの相の前記低電位側スイッチング素子のオン/オフのデューティ比が所定比率内の時には、その一相に対応する低電位側スイッチング素子のオン時間の中心時から変化した検出タイミングで、他の二相の電流値を前記シャント抵抗を介して検出し、検出した他の二相の電流値から残りの一相の電流の計算値を算出し、この計算値と、残りの一相の電流値の前回値又は実測値との重み付けにより、今回の残りの一相の電流値を算出し、三相の電流値に基づいて前記モータ制御信号を生成することを特徴とする。   In order to achieve the above object, the present invention provides a control means for outputting a motor control signal, a gate driver circuit for generating a gate current for switching on / off of a switching element based on the motor control signal, and the gate current. In a motor control device comprising a switching arm provided in correspondence with each phase of the motor, which is configured by connecting switching elements on the high potential side and on the low potential side that are turned on / off in series, the low potential of each switching arm Provided with a shunt resistor for detecting the current value flowing through the side switching element, and when the on / off duty ratio of the low potential side switching element in any phase is within a predetermined ratio, the low potential corresponding to that one phase The current values of the other two phases are detected at the detection timing changed from the center time of the on-time of the side switching element. The current value of the remaining one phase is calculated from the detected current value of the other two phases, and the calculated value and the previous value or actually measured value of the remaining one phase current value are calculated. The current value of the remaining one phase of this time is calculated by weighting, and the motor control signal is generated based on the current value of the three phases.

この構成によれば、検出した他の二相の電流値から残りの一相の電流の計算値を算出し、この計算値と、残りの一相の電流値の前回値又は実測値との重み付けにより、今回の残りの一相の電流値を算出し、三相の電流値に基づいて前記モータ制御信号を生成するので、三相それぞれのスイッチングノイズの影響を回避するとともに、残りの一相の電流値を算出する場合に、相間のばらつきに起因する電流の変動を抑えることができる。   According to this configuration, the calculated value of the remaining one-phase current is calculated from the detected other two-phase current values, and the calculated value is weighted with the previous value or the actually measured value of the remaining one-phase current value. Thus, the current value of the remaining one phase is calculated and the motor control signal is generated on the basis of the current value of the three phases. When calculating the current value, it is possible to suppress the fluctuation of the current due to the variation between the phases.

上記構成において、いずれかの相の前記低電位側スイッチング素子のオン/オフのデューティ比が所定比率内の時には、検出した他の二相の電流値との和が零となる電流値を、前記計算値として算出するようにしても良い。この構成によれば、三相の電流値の和が零になる関係を利用して一相の電流値を容易に算出しつつ、この電流値が有する相間のばらつき等による変動を抑えることができる。   In the above configuration, when the ON / OFF duty ratio of the low-potential side switching element of any phase is within a predetermined ratio, a current value that is zero with the detected current value of the other two phases is It may be calculated as a calculated value. According to this configuration, it is possible to easily calculate the current value of one phase using the relationship that the sum of the current values of the three phases becomes zero, and to suppress fluctuations due to variations between phases of the current value. .

また、上記構成において、前記残りの一相の電流値Ix(n+1)は、他の二相の電流値Iy(n+1),Iz(n+1)と、前回の電流値Ix(n)とを用いて、
Ix(n+1)=(Ix(n)+(−Iy(n+1)−Iz(n+1))×a+Ix(n)×b
a=wT/(2+wT),b=(2−wT)/(2+wT)
但し、n:任意の整数、T:サンプリング周期(s)、f:モータ制御信号の周波数(Hz)、w:カットオフ周波数(=2πf)の数式によって算出されるようにしても良い。この構成によれば、適切に電流値Ix(n+1)を許容できる連続量にすることができる。
In the above configuration, the remaining one-phase current value Ix (n + 1) is obtained by using the other two-phase current values Iy (n + 1) and Iz (n + 1) and the previous current value Ix (n). ,
Ix (n + 1) = (Ix (n) + (− Iy (n + 1) −Iz (n + 1)) × a + Ix (n) × b
a = wT / (2 + wT), b = (2-wT) / (2 + wT)
However, n may be an arbitrary integer, T: a sampling period (s), f: a frequency (Hz) of a motor control signal, and w: a cutoff frequency (= 2πf). According to this configuration, the current value Ix (n + 1) can be appropriately allowed to be a continuous amount.

また、上記構成において、前記三相の電流値を蓄積する蓄積手段を有するようにしても良い。この構成によれば、この蓄積手段に蓄積された過去の電流値を用いて電流値を算出することができる。   Further, in the above-described configuration, an accumulating unit that accumulates the three-phase current values may be provided. According to this configuration, the current value can be calculated using the past current value accumulated in the accumulation means.

本発明によれば、三相それぞれのスイッチングノイズの影響を回避するとともに、残りの一相の電流を算出する場合に、相間のばらつきに起因する電流の変動を抑えることができる。   According to the present invention, it is possible to avoid the influence of the switching noise of each of the three phases and to suppress the fluctuation of the current due to the variation between the phases when the remaining one-phase current is calculated.

本実施形態に係るモータ制御装置のブロック図である。It is a block diagram of the motor control device concerning this embodiment. 各相の信号波形の一例を示すタイミングチャートである。It is a timing chart which shows an example of the signal waveform of each phase. 電流検出処理のフローチャートである。It is a flowchart of an electric current detection process. 第1の電流検出処理を説明するタイミングチャートである。It is a timing chart explaining the 1st current detection processing. U相デューティ比が20%未満の場合のタイミングチャートである。It is a timing chart in case a U-phase duty ratio is less than 20%. W相デューティ比が20%未満の場合のタイミングチャートである。6 is a timing chart when the W-phase duty ratio is less than 20%. V相デューティ比が20%未満の場合のタイミングチャートである。It is a timing chart in case a V-phase duty ratio is less than 20%.

以下、図面を参照して本発明の実施形態について説明する。
なお、以下の説明では、本発明に係るモータ制御装置の応用例として、電気自動車やハイブリッド車両が備える車両駆動用モータ(以下、モータと言う)10Mを制御するモータ制御装置10を説明する。
図1は、本実施形態に係るモータ制御装置10のブロック図である。
このモータ制御装置10は、車両側のコンピュータからの指令に基づいてモータ制御信号を出力する制御装置(制御手段)11と、モータ制御信号に基づいて三相(U,V,W)の駆動電力を出力する駆動回路(駆動手段)12とを備えている。
駆動回路12は、車両に搭載された直流電源であるバッテリ(不図示)の直流電力を交流のモータ駆動電流に変換しモータ10Mに出力する電力変換回路(電力変換手段)14と、モータ制御信号に基づき電力変換回路14内のスイッチング素子Tr1〜Tr6のオン/オフ(開閉)を切り替えるゲート電流であるPWM(Pulse Width Modulation)駆動信号を出力するゲートドライバ回路16とを備えている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
In the following description, as an application example of the motor control device according to the present invention, a motor control device 10 that controls a vehicle driving motor (hereinafter referred to as a motor) 10M included in an electric vehicle or a hybrid vehicle will be described.
FIG. 1 is a block diagram of a motor control device 10 according to the present embodiment.
The motor control device 10 includes a control device (control means) 11 that outputs a motor control signal based on a command from a computer on the vehicle side, and three-phase (U, V, W) drive power based on the motor control signal. And a driving circuit (driving means) 12 for outputting.
The drive circuit 12 includes a power conversion circuit (power conversion means) 14 that converts DC power of a battery (not shown) that is a DC power source mounted on the vehicle into an AC motor drive current and outputs the AC motor drive current, and a motor control signal. And a gate driver circuit 16 that outputs a PWM (Pulse Width Modulation) drive signal, which is a gate current for switching on / off (opening / closing) the switching elements Tr1 to Tr6 in the power conversion circuit 14.

電力変換回路14は、例えばIGBTやパワーMOSFET等の複数(本構成では6個)のスイッチング素子Tr1〜Tr6を組み合わせた回路であり、各スイッチング素子Tr1〜Tr6はゲートドライバ回路16からのPWM駆動信号によってオン/オフされる。
具体的には、電力変換回路14は、スイッチング素子Tr1,Tr2,Tr3,Tr4,Tr5及びTr6を一対ずつの組にした直列回路を並列に接続したブリッジ回路を有しており、スイッチング素子Tr1,Tr2,Tr3,Tr4,Tr5及びTr6の各接続点P1,P2,P3がモータ10Mの各相のモータコイルに接続されている。
The power conversion circuit 14 is a circuit in which a plurality of (six in this configuration) switching elements Tr1 to Tr6 such as an IGBT and a power MOSFET are combined, and each switching element Tr1 to Tr6 is a PWM drive signal from the gate driver circuit 16. Turned on / off.
Specifically, the power conversion circuit 14 includes a bridge circuit in which a series circuit in which a pair of switching elements Tr1, Tr2, Tr3, Tr4, Tr5, and Tr6 is paired is connected in parallel. Each connection point P1, P2, P3 of Tr2, Tr3, Tr4, Tr5 and Tr6 is connected to a motor coil of each phase of the motor 10M.

スイッチング素子Tr1,Tr3,Tr5は、高電位側に接続されて上アームを構成し、スイッチング素子Tr2,Tr4,Tr6は、低電位側に接続されて下アームを構成している。これによって、電力変換回路14は、高電位側スイッチング素子Tr1,Tr3,Tr5と、低電位側スイッチング素子Tr2,Tr4,Tr6とを、各相(U,V,W)毎に直列に接続したスイッチングアーム18u,18v,18wを備えるPWMインバータに構成されている。
また、各スイッチング素子Tr1〜Tr6のコレクタ−エミッタ間には、エミッタからコレクタに向けて順方向となるように、それぞれダイオードD1〜D6が接続されている。なお、図1中、符号Gは各スイッチング素子Tr1〜Tr6のゲートを示し、符号Eはエミッタを示し、符号Cはコレクタを示している。
The switching elements Tr1, Tr3, Tr5 are connected to the high potential side to constitute an upper arm, and the switching elements Tr2, Tr4, Tr6 are connected to the low potential side to constitute a lower arm. As a result, the power conversion circuit 14 switches the high potential side switching elements Tr1, Tr3, Tr5 and the low potential side switching elements Tr2, Tr4, Tr6 connected in series for each phase (U, V, W). The PWM inverter includes arms 18u, 18v, and 18w.
Also, diodes D1 to D6 are connected between the collectors and emitters of the switching elements Tr1 to Tr6, respectively, so as to be in the forward direction from the emitter to the collector. In FIG. 1, symbol G indicates the gate of each of the switching elements Tr1 to Tr6, symbol E indicates an emitter, and symbol C indicates a collector.

ゲートドライバ回路16は、制御装置11の制御の下、各スイッチング素子Tr1〜Tr6のゲートGにPWM駆動信号を出力する。そして、電力変換回路14が、このPWM駆動信号に応じて各スイッチング素子Tr1〜Tr6がオン/オフし通電パターンを切り替えることによって、バッテリの直流電力を三相の駆動電力に変換してモータ10Mへと出力する。   The gate driver circuit 16 outputs a PWM drive signal to the gates G of the switching elements Tr1 to Tr6 under the control of the control device 11. Then, the power conversion circuit 14 turns the switching elements Tr1 to Tr6 on and off in accordance with the PWM drive signal to switch the energization pattern, thereby converting the DC power of the battery into three-phase drive power and transferring it to the motor 10M. Is output.

この電力変換回路14には、各相の電流値Iu,Iv,Iwを検出するためのシャント抵抗Ru,Rv,Rwが設けられている。各シャント抵抗は、各スイッチングアーム18u,18v,18wを構成する回路に直列接続され、より具体的には、低電位側スイッチング素子Tr2,Tr4,Tr6のエミッタEに直列接続されることによって、低電位側スイッチング素子Tr2,Tr4,Tr6がオンのときに流れる電流値Iu,Iv,Iwを検出可能である。   The power conversion circuit 14 is provided with shunt resistors Ru, Rv, Rw for detecting the current values Iu, Iv, Iw of the respective phases. Each shunt resistor is connected in series to a circuit constituting each switching arm 18u, 18v, 18w, more specifically, by being connected in series to the emitters E of the low potential side switching elements Tr2, Tr4, Tr6, It is possible to detect current values Iu, Iv, and Iw that flow when the potential side switching elements Tr2, Tr4, and Tr6 are on.

この電力変換回路14では、低電位側スイッチング素子Tr2,Tr4,Tr6がオンで、高電位側スイッチング素子Tr1,Tr3,Tr5がオフのときに、低電位側スイッチング素子Tr2,Tr4,Tr6に並列接続されたダイオードD2,D4,D6を介して電流が流れる。このため、制御装置11は、この電流が流れるタイミングでサンプリングするように設定されたサンプリング周期で、各シャント抵抗Ru,Rv,Rwの端子電圧に基づき電流検出を行うことにより、各相を流れる電流値Iu,Iv,Iwを検出することができる。なお、シャント抵抗Ru,Rv,Rwの端子電圧はオペアンプ19u,19v,19wで各々増幅されて制御装置11に検出される。   In this power conversion circuit 14, when the low potential side switching elements Tr2, Tr4, Tr6 are on and the high potential side switching elements Tr1, Tr3, Tr5 are off, they are connected in parallel to the low potential side switching elements Tr2, Tr4, Tr6. A current flows through the diodes D2, D4, D6. For this reason, the control device 11 performs current detection on the basis of the terminal voltages of the shunt resistors Ru, Rv, Rw at a sampling period set so as to sample at the timing when this current flows, and thereby the current flowing through each phase. The values Iu, Iv, Iw can be detected. The terminal voltages of the shunt resistors Ru, Rv, and Rw are amplified by the operational amplifiers 19u, 19v, and 19w, and detected by the control device 11.

また、制御装置11は、回転角センサとして機能するレゾルバ20を介してモータ10Mの回転角度位置を検出している。そして、制御装置11は、取得した電流値Iu,Iv,Iwとモータ10Mの回転角度位置とに基づいて、車両側のコンピュータからの指令に基づくモータ制御となるようにモータ制御信号を生成し、これによってモータ10Mをフィードバック制御する。なお、同図1に示すように、レゾルバ20の出力はオペアンプ21,22で各々増幅されて制御装置11に入力される。
より具体的には、この制御装置11は、大別すると、位置・速度検出部31と、速度制御部32と、角度補間部33と、信号生成部34とを備えており、位置・速度検出部31は、モータ10Mの回転角度位置として、モータ10M内のロータの磁極位置とロータの回転速度とを検出し、回転速度を速度制御部32に出力するとともに、磁極位置を角度補間部33に出力する。
The control device 11 detects the rotation angle position of the motor 10M via the resolver 20 that functions as a rotation angle sensor. Then, the control device 11 generates a motor control signal based on the acquired current values Iu, Iv, Iw and the rotation angle position of the motor 10M so as to perform motor control based on a command from the computer on the vehicle side, As a result, the motor 10M is feedback-controlled. As shown in FIG. 1, the output of the resolver 20 is amplified by operational amplifiers 21 and 22 and input to the control device 11.
More specifically, the control device 11 roughly includes a position / velocity detection unit 31, a speed control unit 32, an angle interpolation unit 33, and a signal generation unit 34. The unit 31 detects the magnetic pole position of the rotor in the motor 10M and the rotational speed of the rotor as the rotational angle position of the motor 10M, outputs the rotational speed to the speed control unit 32, and sends the magnetic pole position to the angle interpolation unit 33. Output.

また、この制御装置11は、各種処理をデジタル処理で行うため、外部のアナログ信号(シャント抵抗Ru,Rv,Rwの端子電圧やモータ10Mの回転角度位置等)をデジタル信号に変換するアナログデジタル変換部(AD)35を備えている。このため、この制御装置11が外部の信号を取り込む際には、短時間ではあるがアナログデジタル変換時間(AD変換時間)Tdの遅延が発生している。
また、この制御装置11は、制御プログラム等の各種データを記憶するとともに、過去の電流値Iu,Iv,Iwを蓄積する蓄積手段として機能する記憶部36を備えている。
In addition, since the control device 11 performs various processes by digital processing, analog-digital conversion that converts external analog signals (terminal voltages of the shunt resistors Ru, Rv, Rw, rotation angle position of the motor 10M, etc.) into digital signals is performed. Part (AD) 35 is provided. For this reason, when the control device 11 takes in an external signal, a delay of an analog-digital conversion time (AD conversion time) Td occurs although it is a short time.
In addition, the control device 11 includes a storage unit 36 that stores various data such as a control program and functions as an accumulation unit that accumulates past current values Iu, Iv, and Iw.

速度制御部32は、車両側のコンピュータから入力された指令速度と、位置・速度検出部31で検出した回転速度とに基づいて電圧指令値を算出し、信号生成部34に出力する。より具体的には、この速度制御部32は、指令速度と回転速度とからトルク指令値を算出する速度制御器37と、トルク指令値及び指令速度で検索可能なデューティ(Duty)マップ38及び進角マップ39とを備えている。
速度制御器37は、比例(P)制御器、及び積分(I)制御器を有し、指令速度と回転速度との偏差に基づいて、PI制御により誤差を補償してトルク指令値を算出する。デューティマップ38は、指令速度、PWM駆動信号のデューティ、及びトルクの相互の関係を予め規定したマップである。トルク指令値、及び指令速度でデューティマップ38を検索することで、当該トルク指令値のトルクが得られるデューティが決定される。進角マップ39は、指令速度、進角、及びトルクの相互の関係を予め規定したマップである。すなわち、トルク指令値及び指令速度で進角マップ39を検索することで、当該トルク指令値及び指令速度に対して最適な進角が得られる。そして、これら進角及びデューティの指示値を含んだ電圧指令値が信号生成部34に入力される。
The speed control unit 32 calculates a voltage command value based on the command speed input from the vehicle-side computer and the rotation speed detected by the position / speed detection unit 31 and outputs the voltage command value to the signal generation unit 34. More specifically, the speed control unit 32 includes a speed controller 37 that calculates a torque command value from the command speed and the rotation speed, a duty map 38 that can be searched by the torque command value and the command speed, and an advance. And a corner map 39.
The speed controller 37 includes a proportional (P) controller and an integral (I) controller, and calculates a torque command value by compensating for an error by PI control based on a deviation between the command speed and the rotation speed. . The duty map 38 is a map that preliminarily defines the mutual relationship among the command speed, the duty of the PWM drive signal, and the torque. By searching the duty map 38 using the torque command value and the command speed, the duty that can obtain the torque of the torque command value is determined. The advance angle map 39 is a map that predetermines the mutual relationship between the command speed, the advance angle, and the torque. That is, by searching the advance angle map 39 using the torque command value and the command speed, an optimum advance angle can be obtained for the torque command value and the command speed. Then, a voltage command value including these lead angle and duty indication values is input to the signal generator 34.

角度補間部33は、位置・速度検出部31が出力するロータの磁極位置に基づいて正弦振幅信号を生成し、信号生成部34に出力する。
信号生成部34は、角度補間部33からU相、V相、及びW相の各相の正弦振幅信号が入力されるとともに、速度制御部84から上記電圧指令値が入力され、各相の正弦振幅信号の信号振幅を電圧指令値によって調整し、各相のモータ制御信号としてゲートドライバ回路16に出力する。
The angle interpolation unit 33 generates a sine amplitude signal based on the magnetic pole position of the rotor output from the position / speed detection unit 31 and outputs the sine amplitude signal to the signal generation unit 34.
The signal generator 34 receives the U-phase, V-phase, and W-phase sine amplitude signals from the angle interpolator 33, and the voltage command value from the speed controller 84, and outputs the sine of each phase. The signal amplitude of the amplitude signal is adjusted by the voltage command value, and is output to the gate driver circuit 16 as a motor control signal for each phase.

次に、電流Iu,Iv,Iwと他の信号との関係を説明する。なお、本説明では、説明を判りやすくするため、各相の電流Iu,Iv,Iwを電流値Iu,Iv,Iwと同じ符号を付して示している。
図2は、各相の信号波形の一例を示すタイミングチャートである。この図において、符号f1u,f1v,f1wは、制御装置11の内部信号である基準信号であり、符号f2u,f2v,f2wは、各相の高電位側スイッチング素子Tr1,Tr3,Tr5に対応する制御装置11のモータ制御信号(以下、上アーム信号という)であり、符号f3u,f3v,f3wは、各相の低電位側スイッチング素子Tr2,Tr4,Tr6に対応する制御装置11のモータ制御信号(以下、下アーム信号という)である。
以下、これらの基準信号f1u,f1v,f1w、上アーム信号f2u,f2v,f2w、及び、下アーム信号f3u,f3v,f3wの各々を相毎に区別して説明する必要がない場合は、基準信号f1、上アーム信号f2及び下アーム信号f3と表記する。
Next, the relationship between the currents Iu, Iv, Iw and other signals will be described. In the present description, the currents Iu, Iv, Iw of the respective phases are denoted by the same reference numerals as the current values Iu, Iv, Iw for easy understanding.
FIG. 2 is a timing chart showing an example of the signal waveform of each phase. In this figure, reference symbols f1u, f1v, and f1w are reference signals that are internal signals of the control device 11, and reference symbols f2u, f2v, and f2w indicate controls corresponding to the high-potential side switching elements Tr1, Tr3, Tr5 of the respective phases. This is a motor control signal (hereinafter referred to as an upper arm signal) of the device 11, and symbols f3u, f3v, and f3w denote motor control signals (hereinafter referred to as the control device 11) corresponding to the low-potential side switching elements Tr2, Tr4, Tr6 of the respective phases. , Referred to as the lower arm signal).
Hereinafter, when it is not necessary to distinguish each of these reference signals f1u, f1v, f1w, upper arm signals f2u, f2v, f2w, and lower arm signals f3u, f3v, f3w for each phase, the reference signal f1 , Expressed as an upper arm signal f2 and a lower arm signal f3.

図2では、各相のスイッチング素子Tr1〜Tr6のオン/オフのデューティ比が同じ場合を示しており、デューティ比が50%の場合を示している。ここで、各相の一対のスイッチング素子Tr1〜Tr6が同時にオンすると貫通電流が流れてモータ10Mに電流を流せなくなるため、上アーム信号f2と下アーム信号f3との信号切り替わりタイミングを予め設定した遅延時間ta,tbだけずらし、これによって、同時にオンする事態を回避している。
遅延時間taは、上アーム信号f2の立ち下がりに対して下アーム信号f3の立ち上がりを遅延させる時間であり、遅延時間tbは、下アーム信号f3の立ち下がりに対して上アーム信号f2の立ち上がりを遅延させる時間である。つまり、上記遅延時間ta,tbは、短絡防止用のデッドタイムである。
なお、本実施形態では、基準信号f1のスイッチング周波数を10〜15kHz位の間に設定し、遅延時間ta,tbを2μsに設定しているが、これに限らず、適宜に変更可能である。
FIG. 2 shows a case where the on / off duty ratios of the switching elements Tr1 to Tr6 of the respective phases are the same, and a case where the duty ratio is 50%. Here, when the pair of switching elements Tr1 to Tr6 of each phase are turned on at the same time, a through current flows and no current can flow to the motor 10M. Therefore, a signal switching timing between the upper arm signal f2 and the lower arm signal f3 is set in advance. The time ta and tb are shifted, thereby avoiding the situation of turning on at the same time.
The delay time ta is the time for delaying the rise of the lower arm signal f3 with respect to the fall of the upper arm signal f2, and the delay time tb is the rise of the upper arm signal f2 with respect to the fall of the lower arm signal f3. It is time to delay. That is, the delay times ta and tb are dead times for preventing a short circuit.
In the present embodiment, the switching frequency of the reference signal f1 is set to about 10 to 15 kHz, and the delay times ta and tb are set to 2 μs. However, the present invention is not limited to this, and can be changed as appropriate.

ところで、各相のスイッチング素子Tr1〜Tr6のオン/オフの切り替え時には、スイッチングノイズが発生するおそれがある。このため、オン/オフの切り替わり時近傍で電流値を検出した場合には、スイッチングノイズの影響により、検出した電流値Iu,Iv,Iwの誤差が大きくなってしまう。
そこで、本実施形態のモータ制御装置10では、低電位側スイッチング素子Tr2,Tr4,Tr6のオン/オフの切り替え時から離れたタイミング、より具体的には、上記いずれかの低電位側スイッチング素子Tr2,Tr4,Tr6のオン時間の中心タイミングを、サンプリングタイミング(検出タイミング)に相当するトリガTGに設定し、このトリガTGを基準にして全ての相の電流値Iu,Iv,Iwを直接検出する第1の電流検出処理を行っている。
By the way, when switching on / off of the switching elements Tr1 to Tr6 of each phase, switching noise may occur. For this reason, when a current value is detected in the vicinity of the on / off switching time, errors in the detected current values Iu, Iv, and Iw increase due to the influence of switching noise.
Therefore, in the motor control device 10 of this embodiment, the timing separated from the on / off switching time of the low potential side switching elements Tr2, Tr4, Tr6, more specifically, any one of the low potential side switching elements Tr2 described above. , Tr4, Tr6 is set to a trigger TG corresponding to the sampling timing (detection timing), and the current values Iu, Iv, Iw of all phases are directly detected based on this trigger TG. 1 current detection processing is performed.

しかし、上記第1の電流検出処理の場合でも、デューティ比が小さい短パルスが存在すると、そのスイッチングノイズの影響を受けてしまう。そこで、本構成では、第1の電流検出処理にてノイズ影響が許容範囲内となるデューティ比の場合には、第1の電流検出処理を行い、ノイズ影響が許容範囲外となるデューティ比の場合には、後述する第2の電流検出処理を行うようにしている。   However, even in the case of the first current detection process, if there is a short pulse with a small duty ratio, it is affected by the switching noise. Therefore, in this configuration, when the duty ratio is such that the noise influence is within the allowable range in the first current detection process, the first current detection process is performed and the duty ratio is such that the noise influence is outside the allowable range. The second current detection process described later is performed.

図3は、電流検出処理のフローチャートを示している。この図に示すように、制御装置11は、各相のデューティ比が全て予め定めた第1範囲内か否かを判定し(ステップS11)、この第1範囲内の場合に第1の電流検出処理を行うようにしている(ステップS12)。
この第1範囲は、第1の電流検出処理でノイズ影響が許容範囲内となるデューティ比の範囲であり、より具体的には、オン時間の略中心タイミングで電流を検出した場合のノイズ影響による誤差が許容範囲内となる範囲であり、本実施形態では20%以上に設定されている。
FIG. 3 shows a flowchart of the current detection process. As shown in this figure, the control device 11 determines whether or not the duty ratios of the respective phases are all within a predetermined first range (step S11). If the phase ratio is within the first range, the first current detection is performed. Processing is performed (step S12).
This first range is a duty ratio range in which the noise influence is within an allowable range in the first current detection process, and more specifically, due to the noise influence when the current is detected at approximately the center timing of the on-time. The error is within the allowable range, and is set to 20% or more in the present embodiment.

一方、いずれかの相のデューティ比が第1範囲内でない場合(ステップS13)、制御装置11は、第2の電流検出処理を行う。つまり、いずれかの相のデューティ比が、20%未満である第2範囲であれば、第2の電流検出処理を行う。そして、制御装置11は、この第1或いは第2の電流検出処理によって三相の電流値Iu,Iv,Iwを特定すると、再びステップS11の処理へと移行する。
このようにして、制御装置11は、スイッチング素子Tr1〜Tr6のオン/オフのデューティ比に応じて、第1或いは第2の電流検出処理のいずれかを選択的に実行する。なお、ステップS11にて第1範囲内か否かを判定する場合を例示したが、これに限らず、ステップS11にて第2範囲内か否かを判定するようにしても良い。
On the other hand, when the duty ratio of any phase is not within the first range (step S13), the control device 11 performs a second current detection process. That is, if the duty ratio of any phase is the second range that is less than 20%, the second current detection process is performed. And the control apparatus 11 will transfer to the process of step S11 again, if the three-phase electric current value Iu, Iv, Iw is specified by this 1st or 2nd electric current detection process.
In this way, the control device 11 selectively executes either the first or second current detection process in accordance with the on / off duty ratio of the switching elements Tr1 to Tr6. In addition, although the case where it was determined whether it was in the 1st range in step S11 was illustrated, you may make it determine not only in this but in the 2nd range in step S11.

図4は第1の電流検出処理を説明するタイミングチャートである。なお、図4中、符号Tは、基準信号f1の1周期を示している。
第1の電流検出処理の場合、制御装置11は、U相の基準信号f1uの立ち下がりエッジ、或いは、このエッジに同期する上アーム信号f2uの立ち下がりエッジから周期Tの1/4(=T/4)の時間が経過したタイミングを、トリガTGに設定する。そして、制御装置11は、このトリガTGを基準にして三相の電流値Iu,Iv,Iwを直接検出する。
具体例を挙げると、基準信号f1のスイッチング周波数を10kHzとした場合、周期Tは100μsとなるので、T/4は25μsに設定される。
これによって、同4に示すように、トリガTGは、下アーム信号f3のオン時間の略中心タイミングとなり、スイッチングノイズの影響を回避して電流検出が可能となる。
FIG. 4 is a timing chart for explaining the first current detection process. In FIG. 4, symbol T indicates one cycle of the reference signal f1.
In the case of the first current detection process, the control device 11 ¼ (= T) of the cycle T from the falling edge of the U-phase reference signal f1u or the falling edge of the upper arm signal f2u synchronized with this edge. The timing at which the time of / 4) has elapsed is set as the trigger TG. The control device 11 directly detects the three-phase current values Iu, Iv, and Iw with reference to the trigger TG.
As a specific example, when the switching frequency of the reference signal f1 is 10 kHz, the period T is 100 μs, so that T / 4 is set to 25 μs.
As a result, as shown in FIG. 4, the trigger TG becomes substantially the center timing of the ON time of the lower arm signal f3, and the current can be detected while avoiding the influence of the switching noise.

なお、制御装置11は、上記トリガTGを、アナログデジタル変換の開始トリガ(AD変換トリガ)としているため、U相の電流値Iuは、トリガTGからAD変換時間Td(本構成では0.3μs程度)が経過したタイミングTuで制御装置に検出され、V相の電流値Ivは、このタイミングTuから更にAD変換時間Tdが経過したタイミングTvで制御装置11に検出され、W相の電流値Iwは、このタイミングTuから更にAD変換時間Tdが経過したタイミングTvで制御装置11に検出される。
この図4からも明らかなように、トリガTGは、いずれの相においてもスイッチングのタイミングから離れているので、スイッチングノイズの影響を回避することができ、電流値Iu,Iv,Iwを精度良く検出することが可能になる。
なお、U相を基準にして低電位側スイッチング素子Tr2,Tr4,Tr6のオン時間の略中心タイミングをトリガTGに設定する場合を例示したが、これに限らず、他の相を基準にしてオン時間の略中心タイミングをトリガTGに設定するようにしても良い。
Since the control device 11 uses the trigger TG as an analog-digital conversion start trigger (AD conversion trigger), the U-phase current value Iu is changed from the trigger TG to the AD conversion time Td (about 0.3 μs in this configuration). The V-phase current value Iv is detected by the control device 11 at the timing Tv when the AD conversion time Td has further passed from this timing Tu, and the W-phase current value Iw is The control device 11 detects the timing Tv when the AD conversion time Td further elapses from the timing Tu.
As apparent from FIG. 4, since the trigger TG is separated from the switching timing in any phase, the influence of the switching noise can be avoided and the current values Iu, Iv, and Iw are detected with high accuracy. It becomes possible to do.
In addition, although the case where the approximate center timing of the ON time of the low potential side switching elements Tr2, Tr4, Tr6 is set to the trigger TG with reference to the U phase is illustrated, the present invention is not limited to this, and the ON phase is set with reference to other phases. You may make it set the approximate center timing of time to trigger TG.

次に、第2の電流検出処理を説明する。
図5はU相デューティ比が20%未満の場合のタイミングチャートを示し、図6はW相デューティ比が20%未満の場合のタイミングチャートを示し、図7はV相デューティ比が20%未満の場合のタイミングチャートを示している。
第2の電流検出処理の場合、制御装置11は、下アーム信号f3中のパルスが最も短くなる相のエッジ(基準信号f1の立ち下がりエッジ、或いは、そのエッジに同期する上アーム信号f2の立ち下がりエッジ)から予め定めた補正時間txだけ前のタイミングを、トリガTGに設定する。そして、制御装置11は、このトリガTGを基準にして、パルスが短くなる相を除く他の二相の電流値を直接検出し、残りの一相については、検出した二相の電流値に基づく後述する電流算出処理によって算出する。
なお、図中、符号TG’は、第1の電流検出処理を行った場合のトリガを示している。
Next, the second current detection process will be described.
FIG. 5 shows a timing chart when the U-phase duty ratio is less than 20%, FIG. 6 shows a timing chart when the W-phase duty ratio is less than 20%, and FIG. 7 shows that the V-phase duty ratio is less than 20%. The timing chart in the case is shown.
In the case of the second current detection process, the control device 11 determines the edge of the phase in which the pulse in the lower arm signal f3 is the shortest (the falling edge of the reference signal f1 or the rising edge of the upper arm signal f2 synchronized with the edge). The timing before the predetermined correction time tx from the (falling edge) is set as the trigger TG. The control device 11 directly detects the current values of the other two phases excluding the phase in which the pulse is shortened with reference to the trigger TG, and the remaining one phase is based on the detected current values of the two phases. It calculates by the electric current calculation process mentioned later.
In the figure, reference numeral TG ′ indicates a trigger when the first current detection process is performed.

より具体的には、U相デューティ比が20%未満の場合、図5に示すように、制御装置11は、U相の基準信号f1uの立ち下がりエッジから補正時間txだけ前のタイミングを、トリガTGに設定する。この補正時間txは、他の二相のエッジから所定距離だけ離れた時間であって、U相の低電位側スイッチング素子Tr2のオン時間には重ならず、他の二相の低電位側スイッチング素子Tr2のオン時間には重なる時間に設定されており、本実施形態では、周期Tの15%の時間に設定されている。例えば、基準信号f1のスイッチング周波数を10kHzとした場合、周期Tは100μsとなるので、補正時間txは15μsに設定されている。
この場合、制御装置11は、このトリガTGを基準にしてV相、W相の電流値Iv,Iwを検出する。これにより、同図5に示すように、各相から離れたタイミングで電流値Iv,Iwを検出でき、各相のスイッチングノイズの影響を回避して二相の電流値Iv,Iwを直接検出することができる。
More specifically, when the U-phase duty ratio is less than 20%, as illustrated in FIG. 5, the control device 11 triggers the timing before the correction time tx from the falling edge of the U-phase reference signal f1u. Set to TG. The correction time tx is a time away from the other two-phase edge by a predetermined distance, does not overlap the on-time of the U-phase low-potential side switching element Tr2, and is switched to the other two-phase low-potential side switching. The ON time of the element Tr2 is set to an overlapping time. In this embodiment, the time is set to 15% of the period T. For example, when the switching frequency of the reference signal f1 is 10 kHz, the period T is 100 μs, so the correction time tx is set to 15 μs.
In this case, the control device 11 detects the V-phase and W-phase current values Iv and Iw with reference to the trigger TG. As a result, as shown in FIG. 5, the current values Iv and Iw can be detected at a timing away from each phase, and the influence of the switching noise of each phase is avoided and the two-phase current values Iv and Iw are directly detected. be able to.

W相デューティ比が20%未満の場合、図6に示すように、制御装置11は、W相の基準信号f1wの立ち下がりエッジから補正時間txだけ前のタイミングを、トリガTGに設定し、このトリガTGを基準にして、下アーム信号f3中のパルスが比較的長いU相、V相の電流値Iu,Ivを検出する。これにより、スイッチングノイズの影響を回避して二相の電流値Iu,Ivを精度良く直接検出することができる。
また、V相デューティ比が20%未満の場合には、図7に示すように、制御装置11は、V相の基準信号f1vの立ち下がりエッジから補正時間txだけ前のタイミングを、トリガTGに設定し、このトリガTGを基準にして、下アーム信号f3中のパルスが比較的長いU相、W相の電流値Iu,Iwの電流値Iu,Iwを検出する。これにより、スイッチングノイズの影響を回避して二相の電流値Iu,Iwを精度良く直接検出することができる。
When the W-phase duty ratio is less than 20%, as shown in FIG. 6, the control device 11 sets the timing before the correction time tx from the falling edge of the W-phase reference signal f1w as the trigger TG. With reference to the trigger TG, U-phase and V-phase current values Iu and Iv having relatively long pulses in the lower arm signal f3 are detected. Thereby, the influence of switching noise can be avoided and the two-phase current values Iu and Iv can be directly detected accurately.
When the V-phase duty ratio is less than 20%, as shown in FIG. 7, the control device 11 uses the trigger TG as the trigger TG at the timing just before the falling edge of the V-phase reference signal f1v. Based on this trigger TG, the current values Iu and Iw of the U-phase and W-phase current values Iu and Iw with relatively long pulses in the lower arm signal f3 are detected. Thereby, the influence of switching noise can be avoided and the two-phase current values Iu and Iw can be detected directly with high accuracy.

上記のように、二相の電流値だけを直接検出するのは、立ち上がりエッジから上記補正時間txだけトリガTGをずらすと、オン時間の中心時(TG’)から変化したタイミングとなって、最もデューティ比が小さい他の一相については、トリガTGが、その相の下アーム信号f3がオンとなる時間から外れ、電流値の直接検出ができないからである。
この場合、三相の電流値Iu,Iv,Iwの瞬時値の和が零になる関係を利用して、残りの一相uの電流値Iuを計算する従来のブラインド補正方法を適用することが考えられる。
しかし、実際の電流値Iuと、従来のブラインド補正によって得られる電流値Iu’(=−Iv−Iw)とは、回路構成や素子のばらつき等による相間のばらつきの分だけ変動が生じてしまう。このため、ブラインド補正への切り替え時や、ブラインド補正から直接検出への切り替え時に、電流値が連続量にならない場合が生じてしまう。
そこで、本実施形態の電流算出処理では、直接検出した二相の電流値だけでなく、前回特定した他の一相の電流値を用いて許容できる連続量にする新たなブラインド補正を実施している。
As described above, only the two-phase current value is directly detected when the trigger TG is shifted from the rising edge by the correction time tx, and the timing changes from the center time (TG ′) of the on-time. This is because the trigger TG deviates from the time when the lower arm signal f3 is turned on for the other phase having a small duty ratio, and the current value cannot be directly detected.
In this case, it is possible to apply the conventional blind correction method for calculating the current value Iu of the remaining one-phase u using the relationship that the sum of the instantaneous values of the three-phase current values Iu, Iv, and Iw becomes zero. Conceivable.
However, the actual current value Iu and the current value Iu ′ (= −Iv−Iw) obtained by the conventional blind correction fluctuate by the amount of variation between phases due to circuit configuration, variation in elements, and the like. For this reason, when switching to blind correction or when switching from blind correction to direct detection, the current value may not be a continuous amount.
Therefore, in the current calculation process of the present embodiment, a new blind correction is performed to make an allowable continuous amount using not only the directly detected two-phase current value but also the other one-phase current value specified last time. Yes.

この電流算出処理を行う前提として、制御装置11は、第1及び第2の電流検出処理にて特定した電流値Iu,Iv,Iwを記憶部36(図1参照)に蓄積している。この場合、制御装置11は、少なくとも直前に特定された三相の電流値Iu,Iv,Iwを記憶しており、それ以前の電流値Iu,Iv,Iwは順次削除しても良いし、残しておいてもよい。
制御装置11は、電流算出処理として、検出した二相の電流値Iy(n+1),Iz(n+1)との和が零となる値、つまり、今回の一相xの電流値を従来のブラインド補正によって求めた計算値Ix’(n+1)を算出し(式(1)に対応)、この計算値Ix’(n+1)と、記憶部36に記憶される同じ相の電流値Ix(n)との重み付けにより残りの一相xの電流値Ix(n+1)を算出する(式(2)(3)に対応)。ここで、x,y,zは、U相、V相、W相のいずれが割り当てられ、nは時系列順の任意の整数であり、(n+1)が今回の値を示し、nが直前(前回)の値を示している。
As a premise for performing the current calculation process, the control device 11 accumulates the current values Iu, Iv, and Iw specified in the first and second current detection processes in the storage unit 36 (see FIG. 1). In this case, the control device 11 stores at least the three-phase current values Iu, Iv, and Iw specified immediately before, and the previous current values Iu, Iv, and Iw may be deleted or left behind. You may keep it.
As a current calculation process, the control device 11 performs a conventional blind correction on the value at which the sum of the detected two-phase current values Iy (n + 1) and Iz (n + 1) becomes zero, that is, the current value of the current one-phase x. The calculated value Ix ′ (n + 1) calculated by (corresponding to equation (1)) is calculated, and the calculated value Ix ′ (n + 1) and the current value Ix (n) of the same phase stored in the storage unit 36 are calculated. The current value Ix (n + 1) of the remaining one phase x is calculated by weighting (corresponding to equations (2) and (3)). Here, x, y, and z are assigned to any of the U phase, V phase, and W phase, n is an arbitrary integer in time series order, (n + 1) indicates the current value, and n is immediately preceding ( The previous value is shown.

式で示すと、
Ix’(n+1)=−Iy(n+1)−Iz(n+1)・・・式(1)
Ix(n+1)=(Ix(n)+Ix’(n+1))×a+Ix(n)×b・・・式(2)
となる。そして、式(2)に式(1)を代入することにより、
Ix(n+1)=(Ix(n)+(−Iy(n+1)−Iz(n+1))×a+Ix(n)×b・・・式(3)
となる。
In terms of the formula:
Ix ′ (n + 1) = − Iy (n + 1) −Iz (n + 1) (1)
Ix (n + 1) = (Ix (n) + Ix ′ (n + 1)) × a + Ix (n) × b (2)
It becomes. And by substituting equation (1) into equation (2),
Ix (n + 1) = (Ix (n) + (− Iy (n + 1) −Iz (n + 1)) × a + Ix (n) × b (3)
It becomes.

ここで、a,bは重み付けの係数であり、上記式(3)によって得られるIx(n+1)が許容できる連続量となるように、次式(4)(5)によって算出される。
a=wT/(2+wT)・・・式(4)
b=(2−wT)/(2+wT)・・・式(5)
但し、T:サンプリング周期(s)、f:モータ制御信号の周波数(Hz)、w:カットオフ周波数(=2πf)である。
つまり、制御する電流波形の周波数fに対して約10倍の周波数のフィルタとなるように係数a,bを設定している。このように係数a,bにローパスフィルタ処理の係数を適用することによって、式(3)によって得られるIx(n+1)を許容できる連続量としている。
なお、制御装置11には、この演算処理を行うためのプログラムが記憶されており、このプログラムを実行することにより、残りの一相xの電流値Ix(n+1)を上記算出式により算出する。
Here, a and b are weighting coefficients, and are calculated by the following equations (4) and (5) so that Ix (n + 1) obtained by the above equation (3) is an allowable continuous amount.
a = wT / (2 + wT) Formula (4)
b = (2-wT) / (2 + wT) (5)
However, T: Sampling period (s), f: Frequency (Hz) of motor control signal, w: Cut-off frequency (= 2πf).
That is, the coefficients a and b are set so that the filter has a frequency about 10 times the frequency f of the current waveform to be controlled. By applying the low-pass filter coefficient to the coefficients a and b in this way, Ix (n + 1) obtained by Expression (3) is set as an allowable continuous amount.
The control device 11 stores a program for performing this arithmetic processing, and by executing this program, the remaining one-phase x current value Ix (n + 1) is calculated by the above calculation formula.

この電流算出処理を行うことにより、三相の電流値Iu,Iv,Iwを直接検出する第1の電流検出処理から、ブラインド補正によって一相の電流値Ix(n+1)を算出する第2の電流検出処理へ切り替えても、電流値Ixが連続量になり、回路構成や素子のばらつき等による影響を抑えることができる。
また、第2の電流検出処理から第1の電流検出処理へ切り替える場合にも、同様に、電流値Ixが連続量になるので、上記影響を抑えることができる。
By performing this current calculation process, the second current that calculates the one-phase current value Ix (n + 1) by blind correction from the first current detection process that directly detects the three-phase current values Iu, Iv, and Iw. Even when switching to the detection process, the current value Ix becomes a continuous amount, and the influence of the circuit configuration, variation in elements, and the like can be suppressed.
Similarly, when switching from the second current detection process to the first current detection process, the current value Ix becomes a continuous amount, and thus the above-described influence can be suppressed.

以上説明したように、本実施のモータ制御装置10によれば、いずれかの相xの低電位側スイッチング素子(Tr2,Tr4,Tr6のいずれか)のオン/オフのデューティ比が所定比率内である20%未満の時には、一相xの電流値Ixを他の二相の電流値Iy,Izから算出するブラインド補正を行う第2の電流検出処理を行う。そして、この第2の電流検出処理では、図5〜図7に示すように、デューティ比が20%未満のx相に対応するスイッチング素子(Tr2,Tr4,Tr6のいずれか)のオン時間の中心時(図4〜図7中のトリガTG’に相当)から、そのオン時間に重ならないように変化したタイミングをトリガTGとして、他の二相y,zの電流値Iy(n+1),Iz(n+1)を検出し、検出した他の二相y,zの電流値Iy(n+1),Iz(n+1)に基づいて計算値Ix’(n+1)を算出し、この計算値Ix’(n+1)と前回の電流値Ix(n)との重み付けにより、今回の残りの一相xの電流値Ix(n+1)を算出するので、三相それぞれのスイッチングノイズの影響を回避するとともに、残りの一相xの電流値Ix(n+1)を算出する場合に、相間のばらつき等に起因する電流値Ix(n+1)の変動を抑えることができる。   As described above, according to the motor control apparatus 10 of the present embodiment, the ON / OFF duty ratio of the low potential side switching element (any one of Tr2, Tr4, Tr6) of any phase x is within a predetermined ratio. When the value is less than 20%, a second current detection process for performing blind correction for calculating the current value Ix of one phase x from the current values Iy and Iz of the other two phases is performed. In the second current detection process, as shown in FIGS. 5 to 7, the center of the on-time of the switching element (any one of Tr2, Tr4, Tr6) corresponding to the x-phase having a duty ratio of less than 20%. From the time (corresponding to the trigger TG 'in FIGS. 4 to 7), the trigger TG is used as the timing changed so as not to overlap the ON time, and the current values Iy (n + 1), Iz ( n + 1) is detected, a calculated value Ix ′ (n + 1) is calculated based on the detected current values Iy (n + 1) and Iz (n + 1) of the other two phases y and z, and this calculated value Ix ′ (n + 1) Since the current value Ix (n + 1) of the current remaining one phase x is calculated by weighting with the previous current value Ix (n), the influence of the switching noise of each of the three phases is avoided, and the remaining one phase x Current value Ix (n + 1) of When, it is possible to reduce fluctuations in the current value caused by variations in the phases such Ix (n + 1).

しかも、本実施形態では、各相の低電位側スイッチング素子(Tr2,Tr4,Tr6のいずれか)のオン/オフのデューティ比が所定比率外である20%以上の時は、全ての相の電流値を直接検出する第1の電流検出処理を行っており、この第1の電流検出処理では、図4に示すように、所定の相に対応する低電位側スイッチング素子(Tr2,Tr4,Tr6のいずれか)のオン時間の略中心タイミングをトリガTGとして、全ての相の電流値Iu,Iv,Iwをシャント抵抗Ru,Rv,Rwを介して検出するので、三相それぞれのスイッチングノイズの影響を回避して直接、電流検出ができる。
これらにより、本実施形態では、三相それぞれのスイッチングノイズの影響を回避するとともに、ブラインド補正への切り替え時やブラインド補正から直接検出への切り替え時に電流値が連続量になり、より適切なモータ制御が可能になる。
In addition, in the present embodiment, when the on / off duty ratio of the low potential side switching element (any one of Tr2, Tr4, Tr6) of each phase is 20% or more which is outside a predetermined ratio, the currents of all phases The first current detection process for directly detecting the value is performed. In the first current detection process, as shown in FIG. 4, the low potential side switching elements (Tr2, Tr4, Tr6) corresponding to a predetermined phase are used. Since the current value Iu, Iv, Iw of all phases is detected via the shunt resistors Ru, Rv, Rw using the approximate center timing of any ON time as a trigger TG, the influence of the switching noise of each of the three phases is detected. The current can be detected directly by avoiding it.
As a result, in this embodiment, the influence of the switching noise of each of the three phases is avoided, and the current value becomes a continuous amount when switching to blind correction or when switching from blind correction to direct detection, so that more appropriate motor control is achieved. Is possible.

また、第2の電流検出処理においては、検出した他の二相y,zの電流値Iy(n+1),Iz(n+1)との和が零となる電流値を、今回の一相の電流値のブラインド補正値である計算値Ix’(n+1)として算出し、この計算値Ix’(n+1)と、記憶部36に記憶される同じ相の電流値Ix(n)との重み付けにより残りの一相xの電流値Ix(n+1)を算出するので、三相の電流値の和が零になる関係を利用して一相の電流値Ix(n+1)を算出しつつ、この電流値Ix(n+1)が有する相間のばらつき等による変動を、過去の電流値Ix(n)を考慮して抑えることができる。
また、この場合のIx(n+1)の算出式(3)における重み付けの係数a,bを、式(4)(5)によって得ておくことにより、適切に電流値Ix(n+1)を許容できる連続量にすることができる。
In the second current detection process, a current value at which the sum of the detected current values Iy (n + 1) and Iz (n + 1) of the other two phases y and z becomes zero is used as the current value of the current one phase. Is calculated as a calculated value Ix ′ (n + 1), which is a blind correction value, and the remaining one is calculated by weighting the calculated value Ix ′ (n + 1) and the current value Ix (n) of the same phase stored in the storage unit 36. Since the current value Ix (n + 1) of the phase x is calculated, the current value Ix (n + 1) is calculated while calculating the one-phase current value Ix (n + 1) using the relationship that the sum of the three-phase current values becomes zero. ) Can be suppressed in consideration of the past current value Ix (n).
Further, by obtaining the weighting coefficients a and b in the calculation formula (3) of Ix (n + 1) in this case according to the formulas (4) and (5), the current value Ix (n + 1) can be allowed appropriately. Can be in quantity.

なお、上述した実施形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形可能である。
例えば、上述の実施形態では、第2の電流検出処理の場合、デューティ比が20%未満のx相の低電位側スイッチング素子(Tr2,Tr4,Tr6のいずれか)のオン時間の中心時よりも前に変化したタイミングを、トリガTGにする場合を例示したが、これに限らず、中心時よりも後に変化したタイミングを、トリガTGに設定するようにしても良い。要は、他の二相y,zの電流を精度良く直接検出できるようにオン時間の中心時時から変化したタイミングを、トリガTGに設定すれば良い。
In addition, embodiment mentioned above shows the one aspect | mode of this invention to the last, and can change arbitrarily within the scope of the present invention.
For example, in the above-described embodiment, in the second current detection process, the x-phase low-potential side switching element (any one of Tr2, Tr4, and Tr6) having a duty ratio of less than 20% is more central than the on-time. Although the case where the timing changed before is set as the trigger TG is illustrated, the present invention is not limited to this, and the timing changed after the central time may be set as the trigger TG. In short, the trigger TG may be set to a timing changed from the central time of the on-time so that the other two-phase y and z currents can be directly detected accurately.

また、上述の実施形態では、検出した他の二相y,zの電流値Iy(n+1),Iz(n+1)から算出した算出値Ix’(n+1)と、記憶部36に記憶される前回の一相xの電流値Ix(n)との重み付けにより、今回の一相xの電流値Ix(n+1)を算出する場合を説明したが、これに限らず、前回の電流値Ix(n)に加えて、前々回の電流値Ix(n−1)を加え、これらの重み付けにより、今回の電流値Ix(n+1)を算出するようにしても良い。要は、過去の電流値を適宜に用いて重み付けにより今回の電流値Ix(n+1)を算出するようにすれば良い。   Further, in the above-described embodiment, the calculated value Ix ′ (n + 1) calculated from the detected current values Iy (n + 1) and Iz (n + 1) of the other two phases y and z and the previous value stored in the storage unit 36 are used. The case of calculating the current value Ix (n + 1) of the current one-phase x by weighting with the current value Ix (n) of the one-phase x has been described. In addition, the current value Ix (n + 1) of the last time may be added, and the current value Ix (n + 1) of this time may be calculated by weighting them. In short, the current value Ix (n + 1) of this time may be calculated by weighting appropriately using past current values.

さらに、第2の電流検出処理に関し、トリガTGを一相xの電流を検出できるタイミングに変更して一相xの電流の実測値Ix(n+1)’’を直接検出するように構成し、この実測値Ix(n+1)’’と、上記の計算値Ix’(n+1)との重み付けによって今回の電流値Ix(n+1)を算出するようにしても良い。
この場合、式で示すと、
Ix(n+1)=Ix’’(n+1)×c+Ix’(n+1)×d・・・式(6)
となる。ここで、c,dは重み付けの係数であり、c+d=1であれば、どのような値をとっても良い。但し、上記の実測値Ix(n+1)’’はノイズを含む可能性があるため、値c、dは、ノイズ量により調整することが好ましく、例えば事前の試験結果を考慮する等して適宜に設定すれば良い。
これによっても、三相それぞれのスイッチングノイズの影響を回避するとともに、残りの一相の電流を算出する場合に、相間のばらつきに起因する電流の変動を抑えることができる。
Furthermore, regarding the second current detection process, the trigger TG is changed to a timing at which the current of the single phase x can be detected, and the actual measurement value Ix (n + 1) ″ of the current of the single phase x is directly detected. The current value Ix (n + 1) may be calculated by weighting the actual measurement value Ix (n + 1) ″ and the calculated value Ix ′ (n + 1).
In this case, the equation shows
Ix (n + 1) = Ix ″ (n + 1) × c + Ix ′ (n + 1) × d (6)
It becomes. Here, c and d are weighting coefficients, and any value can be taken as long as c + d = 1. However, since the actual measurement value Ix (n + 1) ″ may include noise, the values c and d are preferably adjusted according to the amount of noise. Set it.
This also avoids the influence of the switching noise of each of the three phases, and suppresses fluctuations in current due to variations between phases when calculating the remaining one-phase current.

また、上述の実施形態では、車両駆動用モータ10Mを制御するモータ制御装置10に本発明を適用する場合について説明したが、これに限らず、各種用途に用いられる三相モータを制御するモータ制御装置に本発明を広く適用することができる。   In the above-described embodiment, the case where the present invention is applied to the motor control device 10 that controls the vehicle drive motor 10M has been described. However, the present invention is not limited thereto, and the motor control that controls a three-phase motor used in various applications. The present invention can be widely applied to apparatuses.

10 モータ制御装置
10M 車両駆動用モータ
11制御装置(制御手段)
12 駆動回路(駆動手段)
14 電力変換回路(電力変換手段)
16 ゲートドライバ回路
18u,18v,18w スイッチングアーム
36 記憶部(蓄積手段)
Tr1〜Tr6 スイッチング素子
TG トリガ(検出タイミング)
Iu,Iv,Iw 電流値
Ru,Rv,Rw シャント抵抗
f1u,f1v,f1w 基準信号
f2u,f2v,f2w 上アーム信号
f3u,f3v,f3w 下アーム信号
tx 補正時間
DESCRIPTION OF SYMBOLS 10 Motor control apparatus 10M Vehicle drive motor 11 Control apparatus (control means)
12 Drive circuit (drive means)
14 Power conversion circuit (power conversion means)
16 Gate driver circuit 18u, 18v, 18w Switching arm 36 Memory | storage part (storage means)
Tr1 to Tr6 Switching element TG trigger (detection timing)
Iu, Iv, Iw Current value Ru, Rv, Rw Shunt resistor f1u, f1v, f1w Reference signal f2u, f2v, f2w Upper arm signal f3u, f3v, f3w Lower arm signal tx Correction time

Claims (5)

モータ制御信号を出力する制御手段と、
前記モータ制御信号に基づきスイッチング素子のオン/オフを切り替えるゲート電流を発生するゲートドライバ回路と、
前記ゲート電流によりオン/オフする高電位側及び低電位側のスイッチング素子を直列に接続して構成され、前記モータの各相に対応して設けられるスイッチングアームとを備えるモータ制御装置において、
各スイッチングアームの低電位側スイッチング素子を流れる電流値を検出するためのシャント抵抗を備え、
いずれかの相の前記低電位側スイッチング素子のオン/オフのデューティ比が所定比率内の時には、その一相に対応する低電位側スイッチング素子のオン時間の中心時から変化した検出タイミングで、他の二相の電流値を前記シャント抵抗を介して検出し、
検出した他の二相の電流値から残りの一相の電流の計算値を算出し、この計算値と、残りの一相の電流値の前回値又は実測値との重み付けにより、今回の残りの一相の電流値を算出し、三相の電流値に基づいて前記モータ制御信号を生成することを特徴とするモータ制御装置。
Control means for outputting a motor control signal;
A gate driver circuit for generating a gate current for switching on / off of the switching element based on the motor control signal;
In a motor control device comprising a switching arm provided in correspondence with each phase of the motor, which is configured by connecting in series a switching element on a high potential side and a low potential side which are turned on / off by the gate current,
Provided with a shunt resistor for detecting the current value flowing through the low potential side switching element of each switching arm,
When the on / off duty ratio of the low potential side switching element of any phase is within a predetermined ratio, the detection timing changed from the center of the on time of the low potential side switching element corresponding to the one phase, The two-phase current value is detected through the shunt resistor,
The calculated value of the remaining one-phase current is calculated from the detected current values of the other two phases, and this calculated value is weighted with the previous value or the actual measured value of the remaining one-phase current value to A motor control device that calculates a current value of one phase and generates the motor control signal based on a current value of three phases.
請求項1に記載のモータ制御装置において、
いずれかの相の前記低電位側スイッチング素子のオン/オフのデューティ比が所定比率内の時には、検出した他の二相の電流値との和が零となる電流値を、前記計算値として算出することを特徴とするモータ制御装置。
The motor control device according to claim 1,
When the ON / OFF duty ratio of the low potential side switching element of any phase is within a predetermined ratio, a current value that is zero with the detected current value of the other two phases is calculated as the calculated value. A motor control device.
請求項2に記載のモータ制御装置において、
前記残りの一相の電流値Ix(n+1)は、他の二相の電流値Iy(n+1),Iz(n+1)と、前回の電流値Ix(n)とを用いて、
Ix(n+1)=(Ix(n)+(−Iy(n+1)−Iz(n+1))×a+Ix(n)×b
a=wT/(2+wT),b=(2−wT)/(2+wT)
但し、n:任意の整数、T:サンプリング周期(s)、f:モータ制御信号の周波数(Hz)、w:カットオフ周波数(=2πf)
の数式によって算出されることを特徴とするモータ制御装置。
The motor control device according to claim 2,
The remaining one-phase current value Ix (n + 1) is obtained by using the other two-phase current values Iy (n + 1) and Iz (n + 1) and the previous current value Ix (n).
Ix (n + 1) = (Ix (n) + (− Iy (n + 1) −Iz (n + 1)) × a + Ix (n) × b
a = wT / (2 + wT), b = (2-wT) / (2 + wT)
However, n: Arbitrary integer, T: Sampling period (s), f: Frequency of motor control signal (Hz), w: Cut-off frequency (= 2πf)
A motor control device calculated by the following formula.
請求項1乃至3のいずれか一項に記載のモータ制御装置において、
前記三相の電流値を蓄積する蓄積手段を有することを特徴とするモータ制御装置。
In the motor control device according to any one of claims 1 to 3,
A motor control device comprising storage means for storing the three-phase current values.
モータ制御信号を出力する制御手段と、
前記モータ制御信号に基づきスイッチング素子のオン/オフを切り替えるゲート電流を発生するゲートドライバ回路と、
前記ゲート電流によりオン/オフする高電位側及び低電位側のスイッチング素子を直列に接続して構成され、前記モータの各相に対応して設けられるスイッチングアームとを備えるモータ制御装置の制御方法において、
いずれかの相の前記低電位側スイッチング素子のオン/オフのデューティ比が所定比率内の時には、その一相に対応する低電位側スイッチング素子のオン時間の中心時から変化した検出タイミングで、他の二相の電流値を、各スイッチングアームの低電位側スイッチング素子を流れる電流値検出用のシャント抵抗を介して検出し、
検出した他の二相の電流値から残りの一相の電流の計算値を算出し、この計算値と、残りの一相の電流値の前回値又は実測値との重み付けにより、今回の残りの一相の電流値を算出し、三相の電流値に基づいて前記モータ制御信号を生成することを特徴とするモータ制御装置の制御方法。
Control means for outputting a motor control signal;
A gate driver circuit for generating a gate current for switching on / off of the switching element based on the motor control signal;
In a control method of a motor control device, comprising a switching arm provided in correspondence with each phase of the motor, wherein the switching device is configured to be connected in series with a switching element on a high potential side and a low potential side that are turned on / off by the gate current. ,
When the on / off duty ratio of the low potential side switching element of any phase is within a predetermined ratio, the detection timing changed from the center of the on time of the low potential side switching element corresponding to the one phase, The two-phase current value is detected through a shunt resistor for detecting the current value flowing through the low potential side switching element of each switching arm,
The calculated value of the remaining one-phase current is calculated from the detected current values of the other two phases, and this calculated value is weighted with the previous value or the actual measured value of the remaining one-phase current value to A control method for a motor control device, comprising: calculating a one-phase current value and generating the motor control signal based on a three-phase current value.
JP2012122091A 2012-05-29 2012-05-29 Motor controller and control method of the same Pending JP2013247832A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012122091A JP2013247832A (en) 2012-05-29 2012-05-29 Motor controller and control method of the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012122091A JP2013247832A (en) 2012-05-29 2012-05-29 Motor controller and control method of the same

Publications (1)

Publication Number Publication Date
JP2013247832A true JP2013247832A (en) 2013-12-09

Family

ID=49847208

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012122091A Pending JP2013247832A (en) 2012-05-29 2012-05-29 Motor controller and control method of the same

Country Status (1)

Country Link
JP (1) JP2013247832A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015216749A (en) * 2014-05-09 2015-12-03 三菱電機株式会社 Inverter device, its control method, and motor control device
JP2017093240A (en) * 2015-11-16 2017-05-25 オムロンオートモーティブエレクトロニクス株式会社 Multi-phase electric motor control device
WO2018029888A1 (en) * 2016-08-08 2018-02-15 アイシン精機株式会社 Motor control device
JP2018094995A (en) * 2016-12-09 2018-06-21 トヨタ自動車株式会社 Hybrid automobile
JP2018148618A (en) * 2017-03-01 2018-09-20 キヤノン株式会社 Control device and control method
JP2018182889A (en) * 2017-04-12 2018-11-15 オムロンオートモーティブエレクトロニクス株式会社 Multi-phase electric motor control device
CN110557078A (en) * 2018-05-31 2019-12-10 丰田自动车株式会社 Motor control device, control method thereof, and computer-readable medium
US10707797B2 (en) 2018-03-15 2020-07-07 Toyota Jidosha Kabushiki Kaisha Motor control apparatus, motor control program, and motor control method
EP3588767A4 (en) * 2017-10-26 2020-11-18 NSK Ltd. Motor control device, motor control method, and electric power steering device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015216749A (en) * 2014-05-09 2015-12-03 三菱電機株式会社 Inverter device, its control method, and motor control device
JP2017093240A (en) * 2015-11-16 2017-05-25 オムロンオートモーティブエレクトロニクス株式会社 Multi-phase electric motor control device
CN109729757A (en) * 2016-08-08 2019-05-07 爱信精机株式会社 Controller for motor
WO2018029888A1 (en) * 2016-08-08 2018-02-15 アイシン精機株式会社 Motor control device
JP2018026905A (en) * 2016-08-08 2018-02-15 アイシン精機株式会社 Motor controller
JP2018094995A (en) * 2016-12-09 2018-06-21 トヨタ自動車株式会社 Hybrid automobile
JP2018148618A (en) * 2017-03-01 2018-09-20 キヤノン株式会社 Control device and control method
JP2018182889A (en) * 2017-04-12 2018-11-15 オムロンオートモーティブエレクトロニクス株式会社 Multi-phase electric motor control device
EP3588767A4 (en) * 2017-10-26 2020-11-18 NSK Ltd. Motor control device, motor control method, and electric power steering device
US11001295B2 (en) 2017-10-26 2021-05-11 Nsk Ltd. Motor control device, motor control method, and electric power steering device
US10707797B2 (en) 2018-03-15 2020-07-07 Toyota Jidosha Kabushiki Kaisha Motor control apparatus, motor control program, and motor control method
CN110557078A (en) * 2018-05-31 2019-12-10 丰田自动车株式会社 Motor control device, control method thereof, and computer-readable medium
CN110557078B (en) * 2018-05-31 2022-11-18 丰田自动车株式会社 Motor control device, control method thereof, and computer-readable medium

Similar Documents

Publication Publication Date Title
JP2013247832A (en) Motor controller and control method of the same
JP4749874B2 (en) Power conversion device and motor drive device using the same
JP5636990B2 (en) Inverter device
JP6124723B2 (en) Current detector for three-phase inverter
JP2010011540A (en) Motor controller
JP2015149875A (en) Electric motor controller
JP6293401B2 (en) Motor controller for air conditioner and air conditioner
JP2010246260A (en) Motor control device and method
JP6024245B2 (en) Inverter control device
JP2017099150A (en) Controller of electric motor and electric vehicle using the same
JP2017127046A (en) Power converter control device
JP2020162229A (en) Motor controller, motor system and motor control method
JP6458684B2 (en) Power control method and power control apparatus
JP2017205017A (en) Motor control device of air conditioner, and air conditioner
WO2021200389A1 (en) Motor control device, motor system, and motor control method
JP5482041B2 (en) Electric motor control device
JP2006074951A (en) Controller for ac motor
JP2008160915A (en) Inverter controller for driving motor and apparatus employing the same
JP2006304417A (en) Inverter controller
WO2021200236A1 (en) Motor control device, motor system, and motor control method
WO2021200209A1 (en) Motor control device, motor system, and motor control method
JP2019176609A (en) Motor control device and electric vehicle
JP2013021869A (en) Control device for switching circuit
JP6772844B2 (en) AC motor control device
JP6477397B2 (en) Power control method and power control apparatus