JP6610427B2 - Motor control device - Google Patents

Motor control device Download PDF

Info

Publication number
JP6610427B2
JP6610427B2 JP2016101759A JP2016101759A JP6610427B2 JP 6610427 B2 JP6610427 B2 JP 6610427B2 JP 2016101759 A JP2016101759 A JP 2016101759A JP 2016101759 A JP2016101759 A JP 2016101759A JP 6610427 B2 JP6610427 B2 JP 6610427B2
Authority
JP
Japan
Prior art keywords
current
axis current
diagnostic
axis
motor
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.)
Active
Application number
JP2016101759A
Other languages
Japanese (ja)
Other versions
JP2017208989A (en
Inventor
一樹 馬場
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.)
Suzuki Motor Co Ltd
Original Assignee
Suzuki 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 Suzuki Motor Co Ltd filed Critical Suzuki Motor Co Ltd
Priority to JP2016101759A priority Critical patent/JP6610427B2/en
Publication of JP2017208989A publication Critical patent/JP2017208989A/en
Application granted granted Critical
Publication of JP6610427B2 publication Critical patent/JP6610427B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Inverter Devices (AREA)

Description

本発明は、三相交流電流で駆動するモータを制御する制御装置に関する。   The present invention relates to a control device that controls a motor driven by a three-phase alternating current.

モータのコイルの異常を検知する制御装置として、特許文献1が開示するモータ制御装置が知られている。特許文献1のモータ制御装置は、欠相判定用指令出力部と、欠相検出角補正部と、通電部と、欠相判定部とを備える。欠相判定用指令出力部は、コイルにおける異常を検出する際に用いるd軸電流値及びq軸電流値を出力する。欠相検出角補正部は、モータの電気角を検出し、検出した電気角においてq軸電流値を0とした通電を行う際に通電されるべき電流値が0となる相のコイルが存在する角度である場合、検出した電気角を所定の補正角で補正した電気角を選択する。また、欠相検出角補正部は、通電されるべき電流値が0となる相のコイルが存在する角度でない場合、検出した電気角を選択する。通電部は、欠相判定用指令出力部が出力するd軸電流値及びq軸電流値、並びに欠相検出角補正部が選択する電気角に基づいてモータの各コイルに通電をする。欠相判定部は、通電部がモータに通電した際に各コイルに流れる電流に基づいて、モータが備えるコイルのいずれかに異常が生じているか否かを判定する。   As a control device for detecting an abnormality in a motor coil, a motor control device disclosed in Patent Document 1 is known. The motor control device of Patent Document 1 includes a phase loss determination command output unit, a phase loss detection angle correction unit, a current supply unit, and a phase loss determination unit. The phase loss determination command output unit outputs a d-axis current value and a q-axis current value used when detecting an abnormality in the coil. The phase loss detection angle correction unit detects the electrical angle of the motor, and there is a phase coil in which the current value to be energized is 0 when energization is performed with the q-axis current value being 0 at the detected electrical angle. In the case of an angle, an electrical angle obtained by correcting the detected electrical angle with a predetermined correction angle is selected. In addition, the phase loss detection angle correction unit selects the detected electrical angle when the current value to be energized is not an angle at which there is a phase coil. The energization unit energizes each coil of the motor based on the d-axis current value and the q-axis current value output by the phase loss determination command output unit and the electrical angle selected by the phase loss detection angle correction unit. The phase loss determination unit determines whether or not an abnormality has occurred in any of the coils included in the motor, based on the current flowing through each coil when the energization unit energizes the motor.

特開2014−121144号公報JP 2014-121144 A

しかしながら、特許文献1のモータ制御装置は、モータの角度によってはモータが有する相に電流が流れないことがある。このときは、モータが有する相に電流が流れるようになるまでモータを回転させる必要がある。したがって、モータの異常を検出する処理であるにも関わらずモータが回転してユーザが違和感を覚えることがある。   However, in the motor control device of Patent Document 1, current may not flow in the phase of the motor depending on the angle of the motor. At this time, it is necessary to rotate the motor until current flows in the phase of the motor. Therefore, in spite of the process of detecting an abnormality of the motor, the motor may rotate and the user may feel uncomfortable.

本発明はこのような状況に鑑みてなされたものであり、モータの故障を検知する際のモータの回転を抑制することを目的とする。   This invention is made | formed in view of such a condition, and it aims at suppressing rotation of the motor at the time of detecting failure of a motor.

本発明のモータ制御装置は、三相交流電流で駆動するモータであって前記三相交流電流が流れる3本の電線を備える前記モータを制御するモータ制御装置であって、3本の前記電線に流す電流である目標電流の複数の電流パターンごとにq軸電流を決定し、決定した複数のq軸電流の絶対値のうち最も小さい値を絶対値とし極性が所定のタイミングで反転する診断用q軸電流を決定するq軸電流決定手段と、前記診断用q軸電流、及び、前記診断用q軸電流に対応するd軸電流である診断用d軸電流に基づいて、前記電線に電流を出力する制御を行う出力電流制御手段と、前記電線に流れた電流である実績電流に基づいて、前記モータの故障を検知する故障検知手段と、を備えることを特徴とする。   The motor control device of the present invention is a motor that is driven by a three-phase alternating current, and that controls the motor including the three electric wires through which the three-phase alternating current flows. A q-axis current is determined for each of a plurality of current patterns of a target current that is a current to be flowed, and a diagnostic q whose polarity is reversed at a predetermined timing with the smallest value among the determined absolute values of the q-axis currents being an absolute value Based on the q-axis current determining means for determining the axis current, the diagnostic q-axis current, and the diagnostic d-axis current corresponding to the diagnostic q-axis current, the current is output to the electric wire. Output current control means for performing control, and failure detection means for detecting a failure of the motor based on an actual current that has flowed through the electric wire.

本発明のモータ制御装置によれば、モータの故障を検知する際のモータの回転を抑制できる。   According to the motor control device of the present invention, it is possible to suppress the rotation of the motor when detecting a motor failure.

モータ制御システムのブロック図である。It is a block diagram of a motor control system. 第1電流パターングラフを示す図である。It is a figure which shows a 1st electric current pattern graph. 第2電流パターングラフを示す図である。It is a figure which shows a 2nd electric current pattern graph. 第3電流パターングラフを示す図である。It is a figure which shows a 3rd electric current pattern graph. 第1実施形態の電流制御処理のフローチャートである。It is a flowchart of the current control process of 1st Embodiment. 故障診断処理のフローチャートである。It is a flowchart of a failure diagnosis process. 第1電流グラフの図である。It is a figure of a 1st electric current graph. 第2電流グラフ及び故障カウンタの図である。It is a figure of a 2nd electric current graph and a failure counter. 第2実施形態の電流制御処理のフローチャートである。It is a flowchart of the current control process of 2nd Embodiment.

<第1実施形態>
[モータ制御システムの構成]
まず、図1を参照して本実施形態に係るモータ制御システム1について説明する。
モータ制御システム1は、三相交流電流で駆動するモータ20を制御するシステムであり、動作モードとして通常モードと故障診断モードとを備える。通常モードでは、例えばベクトル制御によってモータ20を制御して、モータ20が所定の駆動力を出力したり、所定の回転速度で回転したりするように制御する。故障診断モードでは、モータ20が備える電線21が断線しているか否かを検知して、モータ20の故障の診断を行う。
<First Embodiment>
[Configuration of motor control system]
First, a motor control system 1 according to the present embodiment will be described with reference to FIG.
The motor control system 1 is a system that controls the motor 20 driven by a three-phase alternating current, and includes a normal mode and a failure diagnosis mode as operation modes. In the normal mode, for example, the motor 20 is controlled by vector control so that the motor 20 outputs a predetermined driving force or rotates at a predetermined rotation speed. In the failure diagnosis mode, the failure of the motor 20 is diagnosed by detecting whether or not the electric wire 21 included in the motor 20 is disconnected.

モータ制御システム1は、モータ制御装置100と、電源装置10と、インバータ11と、電流センサ12と、モータ角度センサ13と、モータ20とを備える。
モータ制御装置100は、モータ制御システム1全体を制御し、動作モードに応じてモータ20を制御する。モータ制御装置100は、モータ制御システム1が通常モードのとき、モータ20の各相に流れる電流に基づいてベクトル制御を行って、モータ20の駆動力や回転数を制御する。モータ制御装置100は、ベクトル制御を行うとき、例えば、モータ20の各相に流す相電流に対応するq軸電流及びd軸電流を算出し、このq軸電流及びd軸電流を用いて、モータ20に所定の三相交流電流を流すように制御を行う。
The motor control system 1 includes a motor control device 100, a power supply device 10, an inverter 11, a current sensor 12, a motor angle sensor 13, and a motor 20.
The motor control device 100 controls the entire motor control system 1 and controls the motor 20 according to the operation mode. When the motor control system 1 is in the normal mode, the motor control device 100 performs vector control based on currents flowing through the phases of the motor 20 to control the driving force and the rotational speed of the motor 20. When performing the vector control, the motor control device 100 calculates, for example, a q-axis current and a d-axis current corresponding to a phase current flowing in each phase of the motor 20, and uses the q-axis current and the d-axis current to calculate the motor. Control is performed so that a predetermined three-phase alternating current flows through 20.

モータ制御装置100は、モータ制御システム1が故障診断モードのとき、後に詳しく説明するように、モータ20に電流値が一定の電流を流す制御を行う。そして、実際にモータ20に流れる電流に基づいて、モータ20が備える電線21が断線しているか否かを検知して、故障の診断を行う。
本実施形態では、モータ制御装置100が起動したときに故障診断モードになって故障の診断を行う。故障が検知されないときは、故障診断モードの後に通常モードに移行してモータ20を制御する。
モータ制御装置100は、CPUと記憶手段とを備えるコンピュータである。記憶手段には、例えば、ROM、RAM及びハードディスクドライブ等がある。記憶手段に記憶されたプログラムをCPUが実行することで、モータ制御装置100が備える後述の各機能が実現される。
When the motor control system 1 is in the failure diagnosis mode, the motor control device 100 performs control to flow a current having a constant current value to the motor 20 as will be described in detail later. And based on the electric current which actually flows into the motor 20, it is detected whether the electric wire 21 with which the motor 20 is provided is disconnected, and a failure is diagnosed.
In the present embodiment, when the motor control device 100 is activated, the failure diagnosis mode is entered to diagnose the failure. When no failure is detected, the motor 20 is controlled by shifting to the normal mode after the failure diagnosis mode.
The motor control device 100 is a computer including a CPU and storage means. Examples of the storage means include a ROM, a RAM, and a hard disk drive. When the CPU executes the program stored in the storage unit, each function described below included in the motor control device 100 is realized.

電源装置10は、モータ制御システム1が備える各部に電力を供給する装置である。
インバータ11は、モータ制御装置100からの指示に基づいてモータ20に電流を流す。インバータ11は、通常モードのとき、電線21に三相交流電流を流し、故障診断モードのとき、電流値が一定の電流を流す。
電流センサ12は、モータ20が備える電線21に流れる電流の電流値を検知する。電線21は、電線21A、B、Cの3本あるため、電流センサ12は、それぞれに対応するように、電流センサ12A、B、Cの3台があり、それぞれの電線21に流れる電流の電流値を検知する。電流センサ12は検知した電流値をモータ制御装置100に出力する。
モータ角度センサ13は、モータ20が備える回転子の基準位置からの回転角度を検知して、モータ制御装置100に出力する。なお、以下では、モータ20が備える回転子の基準位置からの回転角度をモータ角度とも呼ぶ。
The power supply device 10 is a device that supplies power to each unit included in the motor control system 1.
Inverter 11 passes a current through motor 20 based on an instruction from motor control device 100. The inverter 11 allows a three-phase alternating current to flow through the electric wire 21 in the normal mode, and allows a current having a constant current value to flow in the failure diagnosis mode.
The current sensor 12 detects the current value of the current flowing through the electric wire 21 included in the motor 20. Since there are three electric wires 21, that is, electric wires 21 </ b> A, B, and C, the current sensor 12 has three current sensors 12 </ b> A, B, and C so as to correspond to each of the electric wires 21. Detect value. The current sensor 12 outputs the detected current value to the motor control device 100.
The motor angle sensor 13 detects the rotation angle from the reference position of the rotor included in the motor 20 and outputs it to the motor control device 100. Hereinafter, the rotation angle from the reference position of the rotor included in the motor 20 is also referred to as a motor angle.

モータ20は、三相交流電流で駆動し、三相交流電流が流れる複数の電線21を備える。電線21はインバータ11に接続する。本実施形態では、上記の通り、電線21は電線21A、B、Cの3本ある。モータ20に三相交流電流が流されるのはモータ制御システム1が通常モードのときであり、故障診断モードのときは、モータ20には電流値が一定の電流が流され、モータ20の回転が抑制される。モータ20に三相交流電流が流されるとき、電線21A、B、Cは、それぞれ、U相、V相、W相の電流が流されるものとする。   The motor 20 includes a plurality of electric wires 21 that are driven by a three-phase alternating current and through which the three-phase alternating current flows. The electric wire 21 is connected to the inverter 11. In the present embodiment, as described above, there are three electric wires 21, that is, electric wires 21 </ b> A, B, and C. A three-phase alternating current is supplied to the motor 20 when the motor control system 1 is in the normal mode. In the failure diagnosis mode, a constant current value is supplied to the motor 20 and the motor 20 rotates. It is suppressed. When a three-phase alternating current is passed through the motor 20, currents in the U-phase, V-phase, and W-phase are assumed to flow through the wires 21A, B, and C, respectively.

[故障診断モードの処理概要]
次に、故障診断モードで行われる処理の概要を説明する。
モータ制御装置100は、故障診断モードのときに、電線21A、B、Cに電流値が一定の電流を流す制御を行って、電線21A、B、Cの断線を検知する。この電流値が一定の電流を目標電流と呼ぶ。この目標電流のパターンである電流パターンは複数ある。ここでは、電流パターンに、第1から第3電流パターンの3つがある例について説明する。
第1電流パターンは、電線21A、B、Cの目標電流の大きさが、それぞれ18.5[A]、18.5[A]、37[A]となる電流パターンである。
第2電流パターンは、電線21A、B、Cの目標電流の大きさが、それぞれ18.5[A]、37[A]、18.5[A]となる電流パターンである。
第3電流パターンは、電線21A、B、Cの目標電流の大きさが、それぞれ37[A]、18.5[A]、18.5[A]となる電流パターンである。
[Outline of failure diagnosis mode processing]
Next, an outline of processing performed in the failure diagnosis mode will be described.
The motor control device 100 detects the disconnection of the electric wires 21A, B, and C by performing a control that causes a current having a constant current value to flow through the electric wires 21A, B, and C in the failure diagnosis mode. A current having a constant current value is called a target current. There are a plurality of current patterns which are patterns of the target current. Here, an example in which there are three current patterns, ie, first to third current patterns, will be described.
The first current pattern is a current pattern in which the target currents of the electric wires 21A, B, and C are 18.5 [A], 18.5 [A], and 37 [A], respectively.
The second current pattern is a current pattern in which the target current magnitudes of the electric wires 21A, B, and C are 18.5 [A], 37 [A], and 18.5 [A], respectively.
The third current pattern is a current pattern in which the target currents of the electric wires 21A, B, and C are 37 [A], 18.5 [A], and 18.5 [A], respectively.

モータ制御装置100は、第1から第3電流パターンを使って、次のように故障診断モードの処理を行う。
まず、第1処理として、モータ制御装置100は、電線21A、B、Cに、第1から第3電流パターンの目標電流を流すと仮定したときの、それぞれの電流パターンに対応するq軸電流及びd軸電流を求める。電流パターンが3種類あることから、q軸電流及びd軸電流は、それぞれ3つ求められる。
The motor control device 100 performs the failure diagnosis mode process using the first to third current patterns as follows.
First, as the first process, the motor control device 100 assumes that the q-axis currents corresponding to the respective current patterns and the currents when the target currents of the first to third current patterns are passed through the electric wires 21A, 21B, and 21C. Determine the d-axis current. Since there are three types of current patterns, three q-axis currents and three d-axis currents are obtained.

q軸電流がモータ20のトルクに寄与する値であり、q軸電流の絶対値が小さい程モータ20のトルクが小さいことが知られている。
そこで、モータ制御装置100は、算出した3つのq軸電流のうち、絶対値が最も小さいq軸電流を診断用q軸電流と決定する。また、診断用q軸電流に対応する電流パターンの電流が流れるようなd軸電流を診断用d軸電流と決定する。
診断用q軸電流は、診断用d軸電流と共に、電線21A、B、Cの目標電流のもとになる値であり、診断用q軸電流、及び、診断用d軸電流から電線21A、B、Cの目標電流を算出できる。
It is known that the q-axis current is a value that contributes to the torque of the motor 20, and the torque of the motor 20 is smaller as the absolute value of the q-axis current is smaller.
Therefore, the motor control device 100 determines the q-axis current having the smallest absolute value among the calculated three q-axis currents as the diagnostic q-axis current. Further, a d-axis current that causes a current pattern current corresponding to the diagnostic q-axis current to flow is determined as the diagnostic d-axis current.
The diagnostic q-axis current is a value that becomes the target current of the electric wires 21A, B, and C together with the diagnostic d-axis current, and the electric wires 21A, B are obtained from the diagnostic q-axis current and the diagnostic d-axis current. , C target current can be calculated.

次に、第2処理として、モータ制御装置100は、診断用q軸電流、及び、診断用d軸電流に対応する目標電流が電線21に流れるように制御を行う。
次に、第3処理として、モータ制御装置100は、実際に電線21A、B、Cに流れた電流である実績電流を検知することで、電線21A、B、Cの断線の状態を検知する。
このような第1から第3処理を繰り返して、電線21A、B、Cの断線の検知の精度を上げる。
ただし、第2処理では、診断用q軸電流、及び、診断用q軸電流に対応する電流をモータ20に流す制御を行うため、モータ20が回転することがある。そこで、第1処理では、毎回、極性(正負)が反転するように診断用q軸電流を決定する。これにより、第2処理では、モータ20が回転する場合であっても、毎回モータ20の回転方向が逆転するため、モータ20の回転子の角度はほぼ一定に保たれる。
Next, as the second process, the motor control device 100 performs control so that the target current corresponding to the diagnostic q-axis current and the diagnostic d-axis current flows through the electric wire 21.
Next, as a third process, the motor control device 100 detects the disconnection state of the electric wires 21A, B, and C by detecting the actual current that actually flows through the electric wires 21A, B, and C.
Such first to third processes are repeated to increase the accuracy of detecting the disconnection of the electric wires 21A, B, and C.
However, in the second process, the motor 20 may rotate because control is performed to flow the diagnostic q-axis current and the current corresponding to the diagnostic q-axis current to the motor 20. Therefore, in the first process, the diagnostic q-axis current is determined so that the polarity (positive / negative) is reversed every time. Thus, in the second process, even if the motor 20 rotates, the rotation direction of the motor 20 is reversed every time, so that the rotor angle of the motor 20 is kept substantially constant.

[電流パターン]
次に、電流パターンの詳細について説明する。本実施形態において、第1から第3電流パターンは、それぞれ第1種別と第2種別とを持つ。第1種別と第2種別とは、電線21A、B、Cの目標電流の絶対値は同じであるが、極性(正負)が反転している。したがって、上記の第1処理を行うごとに、各電流パターンの第1種別と第2種別とを交互に入れ替えて診断用q軸電流、及び、診断用q軸電流を決定することで、第1処理を行うごとに診断用q軸電流の正負が反転する。
[Current pattern]
Next, details of the current pattern will be described. In the present embodiment, the first to third current patterns have a first type and a second type, respectively. In the first type and the second type, the absolute values of the target currents of the electric wires 21A, 21B, and 21C are the same, but the polarity (positive / negative) is reversed. Therefore, each time the first process is performed, the first type and the second type of each current pattern are alternately switched to determine the diagnostic q-axis current and the diagnostic q-axis current, thereby obtaining the first Each time processing is performed, the sign of the diagnostic q-axis current is reversed.

次に、図2Aから図2Cを参照して、電流パターンの具体的な例を説明する。
まず、図2Aを参照して、第1電流パターンについて説明する。図2Aは、第1電流パターングラフを示す図である。
第1電流パターンの第1種別は、電線21A、B、Cの目標電流が、それぞれ、18.5[A]、18.5[A]、−37[A]である。第1電流パターンの第2種別は、電線21A、B、Cの目標電流が、それぞれ、−18.5[A]、−18.5[A]、37[A]である。
このように、第1種別と第2種別とは、目標電流の絶対値は等しいが、極性が反転している。この点は、以下に説明する第2、第3電流パターンについても同様である。
Next, specific examples of current patterns will be described with reference to FIGS. 2A to 2C.
First, the first current pattern will be described with reference to FIG. 2A. FIG. 2A is a diagram illustrating a first current pattern graph.
In the first type of the first current pattern, the target currents of the electric wires 21A, B, and C are 18.5 [A], 18.5 [A], and -37 [A], respectively. In the second type of the first current pattern, the target currents of the electric wires 21A, B, and C are -18.5 [A], -18.5 [A], and 37 [A], respectively.
As described above, the first type and the second type have the same absolute value of the target current, but the polarity is inverted. This also applies to the second and third current patterns described below.

次に、第1電流パターンの第1種別又は第2種別の目標電流と、q軸電流及びd軸電流との関係について説明する。
すでに知られているように、d軸電流は、電線21A、B、Cの電流から以下の式(1)で導くことができる。また、q軸電流は、電線21A、B、Cの電流から以下の式(2)で導くことができる。式中のIq、Idはそれぞれq軸電流及びd軸電流である。式中のIu、Iv、Iwはそれぞれ電線21A、B、Cの電流であり、それぞれU相、V相、W相の電流にあたる。式中のθは、モータ角度である。
Next, the relationship between the first type or second type target current of the first current pattern and the q-axis current and d-axis current will be described.
As already known, the d-axis current can be derived from the currents of the electric wires 21A, B, and C by the following formula (1). Further, the q-axis current can be derived from the currents of the electric wires 21A, B, and C by the following formula (2). In the formula, Iq and Id are q-axis current and d-axis current, respectively. In the formula, Iu, Iv, and Iw are currents of the electric wires 21A, B, and C, respectively, and correspond to U-phase, V-phase, and W-phase currents, respectively. Θ in the equation is a motor angle.

Figure 0006610427
Figure 0006610427

Figure 0006610427
Figure 0006610427

このように、d軸電流及びq軸電流は、それぞれモータ角度θに依存する。したがって、電線21A、B、Cの目標電流が第1電流パターンの第1種別、第2種別になるようなd軸電流及びq軸電流は、モータ角度θに依存する。これを図示したものが図2Aに示す第1電流パターングラフである。
第1電流パターングラフの横軸はモータ角度θである。第1電流パターングラフの縦軸は、d軸電流及びq軸電流の電流値である。
線L11は、目標電流が第1電流パターンの第1種別になるようなd軸電流である。線L12は、目標電流が第1電流パターンの第1種別になるようなq軸電流である。
線L13は、目標電流が第1電流パターンの第2種別になるようなd軸電流である。線L14は、目標電流が第1電流パターンの第2種別になるようなq軸電流である。
As described above, the d-axis current and the q-axis current depend on the motor angle θ. Therefore, the d-axis current and the q-axis current such that the target currents of the electric wires 21A, B, and C are the first type and the second type of the first current pattern depend on the motor angle θ. This is illustrated in the first current pattern graph shown in FIG. 2A.
The horizontal axis of the first current pattern graph is the motor angle θ. The vertical axis of the first current pattern graph is the current value of the d-axis current and the q-axis current.
Line L11 is a d-axis current such that the target current is the first type of the first current pattern. Line L12 is a q-axis current such that the target current is the first type of the first current pattern.
Line L13 is a d-axis current such that the target current is the second type of the first current pattern. Line L14 is a q-axis current such that the target current is the second type of the first current pattern.

図2Aの第1電流パターングラフから分かるように、第1種別のq軸電流と第2種別のq軸電流とは、モータ角度が等しいとき、互いに絶対値が等しく極性が反転している。同様に、第1種別のd軸電流と第2種別のd軸電流とは、モータ角度が等しいとき、互いに絶対値が等しく極性が反転している。この点は、以下に説明する第2、第3電流パターンについても同様である。   As can be seen from the first current pattern graph of FIG. 2A, when the motor angle is the same, the first type q-axis current and the second type q-axis current have the same absolute value and the opposite polarities. Similarly, when the motor angle is the same, the first type d-axis current and the second type d-axis current have the same absolute value and the opposite polarities. This also applies to the second and third current patterns described below.

次に、目標電流が第1電流パターンの第1種別又は第2種別になるようなq軸電流及びd軸電流の求め方について説明する。
第1の方法として、式(1)及び(2)に、第1電流パターンの第1種別又は第2種別の目標電流となる電流Iu、Iv、Iwを代入し、さらに、式(1)及び(2)に、モータ角度θを代入する。これにより、目標電流が第1電流パターンの第1種別又は第2種別になるようなq軸電流Iq及びd軸電流Idを算出できる。
Next, how to obtain the q-axis current and the d-axis current so that the target current is the first type or the second type of the first current pattern will be described.
As a first method, the currents Iu, Iv, and Iw that are target currents of the first type or the second type of the first current pattern are substituted into the formulas (1) and (2), and the formulas (1) and (2) The motor angle θ is substituted into (2). Thereby, the q-axis current Iq and the d-axis current Id can be calculated such that the target current is the first type or the second type of the first current pattern.

第2の方法として、第1電流パターングラフの線L11からL14の計算結果を予めモータ制御装置100の記憶手段に記憶しておく。モータ制御装置100は、例えば、目標電流が第1電流パターンの第1種別になるようなq軸電流及びd軸電流を求めるとき、モータ角度θに対応する線L11及びL12についての計算結果を参照する。これにより、第1電流パターンの第1種別になるようなq軸電流Iq及びd軸電流Idを求めることができる。第1電流パターンの第2種別になるようなq軸電流Iq及びd軸電流Idも同様に求めることができる。
目標電流が第2電流パターン又は第3電流パターンの第1種別又は第2種別になるようなq軸電流及びd軸電流の求め方も、第1電流パターンの場合と同様である。
As a second method, the calculation results of the lines L11 to L14 of the first current pattern graph are stored in the storage unit of the motor control device 100 in advance. For example, when determining the q-axis current and the d-axis current so that the target current is the first type of the first current pattern, the motor control device 100 refers to the calculation results for the lines L11 and L12 corresponding to the motor angle θ. To do. Thereby, the q-axis current Iq and the d-axis current Id that can be the first type of the first current pattern can be obtained. The q-axis current Iq and the d-axis current Id that become the second type of the first current pattern can be obtained in the same manner.
The method of obtaining the q-axis current and the d-axis current so that the target current is the first type or the second type of the second current pattern or the third current pattern is the same as in the case of the first current pattern.

次に、図2Bを参照して、第2電流パターンについて説明する。図2Bは、第2電流パターングラフを示す図である。
第2電流パターンの第1種別は、電線21A、B、Cの目標電流が、それぞれ、18.5[A]、−37[A]、18.5[A]である。第2電流パターンの第2種別は、電線21A、B、Cの目標電流が、それぞれ、−18.5[A]、37[A]、−18.5[A]である。
Next, the second current pattern will be described with reference to FIG. 2B. FIG. 2B is a diagram illustrating a second current pattern graph.
In the first type of the second current pattern, the target currents of the electric wires 21A, B, and C are 18.5 [A], −37 [A], and 18.5 [A], respectively. In the second type of the second current pattern, the target currents of the electric wires 21A, B, and C are −18.5 [A], 37 [A], and −18.5 [A], respectively.

次に、第2電流パターンの第1種別又は第2種別の目標電流と、q軸電流及びd軸電流との関係について説明する。
上記の式(1)、(2)を使って、目標電流が第2電流パターンの第1種別、第2種別になるようなq軸電流及びd軸電流を示したのが図2Bの第2電流パターングラフである。第2電流パターングラフでは、図2Aの第1電流パターングラフと同様に、q軸電流及びd軸電流はモータ角度θに依存している。第2電流パターングラフの縦軸及び横軸は第1電流パターングラフと同様である。
線L21は、目標電流が第2電流パターンの第1種別になるようなd軸電流である。線L22は、目標電流が第2電流パターンの第1種別になるようなq軸電流である。
線L23は、目標電流が第2電流パターンの第2種別になるようなd軸電流である。線L24は、目標電流が第2電流パターンの第2種別になるようなq軸電流である。
Next, the relationship between the first type or second type target current of the second current pattern and the q-axis current and the d-axis current will be described.
Using the above equations (1) and (2), the q-axis current and the d-axis current such that the target current is the first type and the second type of the second current pattern are shown in FIG. It is an electric current pattern graph. In the second current pattern graph, similarly to the first current pattern graph of FIG. 2A, the q-axis current and the d-axis current depend on the motor angle θ. The vertical axis and the horizontal axis of the second current pattern graph are the same as those of the first current pattern graph.
Line L21 is a d-axis current such that the target current is the first type of the second current pattern. Line L22 is a q-axis current such that the target current is the first type of the second current pattern.
Line L23 is a d-axis current such that the target current is the second type of the second current pattern. Line L24 is a q-axis current such that the target current is the second type of the second current pattern.

次に、図2Cを参照して、第3電流パターンについて説明する。図2Cは、第3電流パターングラフを示す図である。
第3電流パターンの第1種別は、電線21A、B、Cの目標電流が、それぞれ、−37[A]、18.5[A]、18.5[A]である。第3電流パターンの第2種別は、電線21A、B、Cの目標電流が、それぞれ、37[A]、−18.5[A]、−18.5[A]である。
Next, the third current pattern will be described with reference to FIG. 2C. FIG. 2C is a diagram showing a third current pattern graph.
In the first type of the third current pattern, the target currents of the electric wires 21A, B, and C are −37 [A], 18.5 [A], and 18.5 [A], respectively. In the second type of the third current pattern, the target currents of the electric wires 21A, B, and C are 37 [A], −18.5 [A], and −18.5 [A], respectively.

次に、第3電流パターンの第1種別又は第2種別の目標電流と、q軸電流及びd軸電流との関係について説明する。
上記の式(1)、(2)を使って、目標電流が第3電流パターンの第1種別、第2種別になるようなq軸電流及びd軸電流を示したのが図2Cの第3電流パターングラフである。第3電流パターングラフでは、図2Aの第1電流パターングラフと同様に、q軸電流及びd軸電流はモータ角度θに依存している。第3電流パターングラフの縦軸及び横軸は第1電流パターングラフと同様である。
線L31は、目標電流が第3電流パターンの第1種別になるようなd軸電流である。線L32は、目標電流が第3電流パターンの第1種別になるようなq軸電流である。
線L33は、目標電流が第3電流パターンの第2種別になるようなd軸電流である。線L34は、目標電流が第3電流パターンの第2種別になるようなq軸電流である。
Next, the relationship between the first type or second type target current of the third current pattern and the q-axis current and the d-axis current will be described.
Using the above equations (1) and (2), the q-axis current and the d-axis current such that the target current is the first type and the second type of the third current pattern are shown in FIG. It is an electric current pattern graph. In the third current pattern graph, similarly to the first current pattern graph of FIG. 2A, the q-axis current and the d-axis current depend on the motor angle θ. The vertical axis and the horizontal axis of the third current pattern graph are the same as those of the first current pattern graph.
Line L31 is a d-axis current such that the target current is the first type of the third current pattern. Line L32 is a q-axis current such that the target current is the first type of the third current pattern.
Line L33 is a d-axis current such that the target current is the second type of the third current pattern. Line L34 is a q-axis current such that the target current is the second type of the third current pattern.

次に、目標電流の定め方について説明する。目標電流は、次の条件を満たすように定める。
第1の条件は、目標電流は、電線21に流れる電流の誤差や電流にノイズが発生しても確実に電線21の断線が検知できる電流値であること、である。電流の誤差の第1の例は、出力制御の誤差であり、電線21に流すようにモータ制御装置100が制御した電流と、電線21が断線していないときに実際に流れる電流との差である。また、電流の誤差の第2の例は、電流センサ12の誤差であり、電流センサ12が検知する電流と実際に流れる電流との差である。
第2の条件は、目標電流は、モータ20やモータ制御装置100の回路等の構成上、実現可能なものであること、である。本実施形態では、モータ20は三相交流電流で駆動するものであり、モータ制御装置100はこのモータ20の駆動を制御する装置である。したがって、電線21A、B、Cの電流の合計値が0になるように目標電流を定める必要がある。
第3の条件は、目標電流は、第1の条件及び第2の条件を満たす範囲で、絶対値をなるべく小さくすること、である。これにより、モータ20のトルクを抑えることができる。
Next, how to determine the target current will be described. The target current is determined so as to satisfy the following conditions.
The first condition is that the target current is a current value that can reliably detect disconnection of the electric wire 21 even if an error in the electric current flowing through the electric wire 21 or noise occurs in the electric current. The first example of current error is output control error, which is the difference between the current controlled by the motor control device 100 to flow through the electric wire 21 and the current that actually flows when the electric wire 21 is not disconnected. is there. The second example of the current error is an error of the current sensor 12, which is the difference between the current detected by the current sensor 12 and the current that actually flows.
The second condition is that the target current can be realized in terms of the configuration of the motor 20 and the circuit of the motor control device 100. In the present embodiment, the motor 20 is driven by a three-phase alternating current, and the motor control device 100 is a device that controls the driving of the motor 20. Therefore, it is necessary to determine the target current so that the total value of the electric currents of the electric wires 21A, B, and C becomes zero.
The third condition is to make the absolute value of the target current as small as possible within a range that satisfies the first condition and the second condition. Thereby, the torque of the motor 20 can be suppressed.

本実施形態の例では、第1の条件を満たすために、目標電流の大きさは18.5[A]以上であることを要する。また、第2、第3の条件を満たすために、例えば、電線21A、B、Cの目標電流のうち2つを18.5[A]にしたときは、他の目標電流は−37[A]とすることを要する。
このような考え方で、第1から第3電流パターンの目標電流が定められる。
In the example of this embodiment, in order to satisfy the first condition, the magnitude of the target current needs to be 18.5 [A] or more. In order to satisfy the second and third conditions, for example, when two of the target currents of the electric wires 21A, 21B, and 21C are set to 18.5 [A], the other target current is −37 [A ] Is required.
Based on such a concept, the target currents of the first to third current patterns are determined.

[機能構成]
次に、図1を参照して、モータ制御装置100が備える機能の構成について説明する。
モータ制御装置100は、故障診断部110と、dq軸電流計算部120と、相電流計算部130と、角度検知部140と、電流検知部150とを備える。
故障診断部110は、故障診断モードのときのモータ制御システム1の動作を制御して、モータ20の故障の診断を行う。故障診断部110は、電流制御部111と、故障検知部115とを備える。
電流制御部111は、故障診断モードのときにモータ20に流す電流を制御する。電流制御部111は、q軸電流決定部112と、d軸電流決定部113と、出力電流制御部114とを備える。
[Function configuration]
Next, with reference to FIG. 1, the structure of the function with which the motor control apparatus 100 is provided is demonstrated.
The motor control device 100 includes a failure diagnosis unit 110, a dq-axis current calculation unit 120, a phase current calculation unit 130, an angle detection unit 140, and a current detection unit 150.
The failure diagnosis unit 110 controls the operation of the motor control system 1 in the failure diagnosis mode and diagnoses the failure of the motor 20. The failure diagnosis unit 110 includes a current control unit 111 and a failure detection unit 115.
The current control unit 111 controls the current that flows through the motor 20 in the failure diagnosis mode. The current control unit 111 includes a q-axis current determination unit 112, a d-axis current determination unit 113, and an output current control unit 114.

q軸電流決定部112は、既に説明した診断用q軸電流を決定する。この決定に際して、q軸電流決定部112は、第1から第3電流パターンごとに、それぞれの電流パターンの目標電流が電線21A、B、Cに流れるようなq軸電流を求める。診断用q軸電流は、求めたq軸電流に基づいて決定される。診断用q軸電流の絶対値は求めた複数のq軸電流の絶対値のうち最も小さい値であり、診断用q軸電流の極性は所定のタイミングで反転するように、診断用q軸電流を決定する。なお、所定のタイミングとは、例えば、後述する過渡期間と定常期間とを合計した時間ごとのタイミングである。
d軸電流決定部113は、診断用q軸電流に対応する電流パターンの目標電流が流れるようなd軸電流を、既に説明した診断用d軸電流と決定する。
出力電流制御部114は、診断用q軸電流及び診断用d軸電流に基づいて、電線21に電流を出力する制御を行う。出力電流制御部114は、診断用q軸電流及び診断用d軸電流に基づいて、q軸電流及びd軸電流を定めて、dq軸電流計算部120に出力することで、インバータ11は、q軸電流及びd軸電流から導かれる電流を電線21A、B、Cに出力する制御を行う。このように、出力電流制御部114が、dq軸電流計算部120及びインバータ11を介して、電線21A、B、Cに出力するように制御している電流を出力電流と呼ぶ。後に説明するように、定常期間では出力電流は目標電流と一致するが、過渡期間では出力電流は目標電流に近づくように変動する。
故障検知部115は、電流検知部150から取得した電線21の実績電流に基づいて、電線21の故障として電線21の断線を検知することで、モータ20の故障を検知する。
The q-axis current determination unit 112 determines the already described diagnostic q-axis current. In this determination, the q-axis current determination unit 112 obtains a q-axis current such that the target current of each current pattern flows through the electric wires 21A, B, and C for each of the first to third current patterns. The diagnostic q-axis current is determined based on the obtained q-axis current. The absolute value of the diagnostic q-axis current is the smallest value among the obtained absolute values of the q-axis current, and the diagnostic q-axis current is set so that the polarity of the diagnostic q-axis current is reversed at a predetermined timing. decide. The predetermined timing is, for example, a timing for each time obtained by adding up a transition period and a steady period described later.
The d-axis current determining unit 113 determines the d-axis current that causes the target current of the current pattern corresponding to the diagnostic q-axis current to flow as the already described diagnostic d-axis current.
The output current control unit 114 performs control to output a current to the electric wire 21 based on the diagnostic q-axis current and the diagnostic d-axis current. The output current control unit 114 determines the q-axis current and the d-axis current based on the diagnostic q-axis current and the diagnostic d-axis current, and outputs them to the dq-axis current calculation unit 120. Control is performed to output currents derived from the axial current and the d-axis current to the electric wires 21A, B, and C. Thus, the current that the output current control unit 114 controls to output to the electric wires 21A, B, and C via the dq axis current calculation unit 120 and the inverter 11 is referred to as an output current. As will be described later, the output current matches the target current in the steady period, but the output current varies so as to approach the target current in the transient period.
The failure detection unit 115 detects the failure of the motor 20 by detecting the disconnection of the wire 21 as a failure of the wire 21 based on the actual current of the wire 21 acquired from the current detection unit 150.

dq軸電流計算部120は、通常モードのとき、電流センサ12が検知したモータ20の各相に流れる電流を使い、ベクトル制御によって、d軸電流及びq軸電流を計算し、計算結果を相電流計算部130に送る。dq軸電流計算部120は、故障診断モードのとき、出力電流制御部114から入力されたq軸電流及びd軸電流を変換せずに相電流計算部130に出力する。   The dq-axis current calculation unit 120 calculates the d-axis current and the q-axis current by vector control using the current flowing in each phase of the motor 20 detected by the current sensor 12 in the normal mode. The data is sent to the calculation unit 130. The dq-axis current calculation unit 120 outputs the q-axis current and the d-axis current input from the output current control unit 114 to the phase current calculation unit 130 without conversion in the failure diagnosis mode.

相電流計算部130は、dq軸電流計算部120から入力されたd軸電流及びq軸電流から、電線21A、B、Cのそれぞれに流す電流を計算して、計算結果をインバータ11に出力する。通常モードのとき、電線21A、B、Cには三相交流電流が流れるようにインバータ11に指示を出す。故障診断モードのとき、dq軸電流計算部120から入力されたd軸電流及びq軸電流から計算した直流電流が電線21A、B、Cに流れるようにインバータ11に指示を出す。   The phase current calculation unit 130 calculates the current that flows through each of the electric wires 21A, B, and C from the d-axis current and the q-axis current input from the dq-axis current calculation unit 120, and outputs the calculation result to the inverter 11. . In the normal mode, the inverter 11 is instructed so that a three-phase alternating current flows through the electric wires 21A, B, and C. In the failure diagnosis mode, the inverter 11 is instructed so that the DC current calculated from the d-axis current and the q-axis current input from the dq-axis current calculation unit 120 flows through the electric wires 21A, B, and C.

角度検知部140は、モータ角度センサ13の出力をモータ制御装置100で扱える形式に変換して、変換したモータ角度を電流制御部111及びdq軸電流計算部120に出力する。こうして、モータ制御装置100内でモータ角度が検知される。
電流検知部150は、電流センサ12A、B、Cの出力をモータ制御装置100で扱える形式に変換して、変換した電線21A、B、Cに流れる電流を故障検知部115及び相電流計算部130に出力する。こうして、モータ制御装置100内で実績電流が検知される。
The angle detection unit 140 converts the output of the motor angle sensor 13 into a format that can be handled by the motor control device 100, and outputs the converted motor angle to the current control unit 111 and the dq-axis current calculation unit 120. Thus, the motor angle is detected in the motor control device 100.
The current detection unit 150 converts the outputs of the current sensors 12A, B, and C into a format that can be handled by the motor control device 100, and converts the current flowing in the converted electric wires 21A, B, and C to the failure detection unit 115 and the phase current calculation unit 130. Output to. Thus, the actual current is detected in the motor control device 100.

[電流制御処理]
次に、故障診断モードのときに行われる処理の詳細について説明する。故障診断モードの処理には、電流制御処理と故障診断処理とがある。電流制御処理と故障診断処理とは、例えば所定の時間ごとや所定の処理ごとに交互に実行される。
まず、図3を参照して電流制御処理について説明する。図3は、電流制御処理のフローチャートである。
ステップS100において、電流制御部111は、モータ制御システム1の動作モードが故障診断モードであるか否かを判定する。電流制御部111は、例えばモータ制御装置100が備える記憶手段の所定のフラグを参照することで、モータ制御システム1の動作モードを判別できる。電流制御部111は、動作モードが故障診断モードのとき処理をステップS101に進め、動作モードが故障診断モードではないとき再度ステップS100を実行する。
[Current control processing]
Next, details of processing performed in the failure diagnosis mode will be described. The failure diagnosis mode processing includes current control processing and failure diagnosis processing. The current control process and the failure diagnosis process are executed alternately every predetermined time or every predetermined process, for example.
First, the current control process will be described with reference to FIG. FIG. 3 is a flowchart of the current control process.
In step S100, the current control unit 111 determines whether or not the operation mode of the motor control system 1 is a failure diagnosis mode. The current control unit 111 can determine the operation mode of the motor control system 1 by referring to, for example, a predetermined flag of a storage unit included in the motor control device 100. The current control unit 111 proceeds to step S101 when the operation mode is the failure diagnosis mode, and executes step S100 again when the operation mode is not the failure diagnosis mode.

ステップS101において、角度検知部140は、モータ角度センサ13の出力に基づくモータ角度を電流制御部111に出力する。
ステップS102において、電流制御部111は、q軸電流決定部112が前回、第1種別の目標電流が電線21に流れるような診断用q軸電流を決定したか否かを判定する。電流制御部111は、q軸電流決定部112が前回、第1種別の目標電流が電線21に流れるような診断用q軸電流を決定したとき、処理をステップS106に進める。q軸電流決定部112が前回、第2種別の目標電流が電線21に流れるような診断用q軸電流を決定したとき、処理をステップS103に進める。
In step S <b> 101, the angle detection unit 140 outputs a motor angle based on the output of the motor angle sensor 13 to the current control unit 111.
In step S <b> 102, the current control unit 111 determines whether or not the q-axis current determination unit 112 has previously determined a diagnostic q-axis current that causes the first type target current to flow through the electric wire 21. The current control unit 111 advances the process to step S <b> 106 when the q-axis current determination unit 112 has previously determined a diagnostic q-axis current such that the first type target current flows through the electric wire 21. When the q-axis current determining unit 112 has previously determined a diagnostic q-axis current such that the second type target current flows through the electric wire 21, the process proceeds to step S103.

ステップS103において、q軸電流決定部112は、第1電流パターンの第1種別の目標電流が流れるようなq軸電流Iqf1を算出する。また、d軸電流決定部は、第1電流パターンの第1種別の目標電流が流れるようなd軸電流Idf1を算出する。
ステップS104において、q軸電流決定部112は、第2電流パターンの第1種別の目標電流が流れるようなq軸電流Iqf2を算出する。また、d軸電流決定部は、第2電流パターンの第1種別の目標電流が流れるようなd軸電流Idf2を算出する。
ステップS105において、q軸電流決定部112は、第3電流パターンの第1種別の目標電流が流れるようなq軸電流Iqf3を算出する。また、d軸電流決定部は、第3電流パターンの第1種別の目標電流が流れるようなd軸電流Idf3を算出する。
なお、ステップS103からS105の処理は、順序を変えて実行してもよい。
In step S103, the q-axis current determination unit 112 calculates the q-axis current Iqf1 such that the first type target current of the first current pattern flows. In addition, the d-axis current determination unit calculates a d-axis current Idf1 such that the first type target current of the first current pattern flows.
In step S104, the q-axis current determination unit 112 calculates the q-axis current Iqf2 such that the first type target current of the second current pattern flows. In addition, the d-axis current determination unit calculates a d-axis current Idf2 such that the first type target current of the second current pattern flows.
In step S105, the q-axis current determination unit 112 calculates the q-axis current Iqf3 such that the first type target current of the third current pattern flows. Further, the d-axis current determination unit calculates a d-axis current Idf3 such that the first type target current of the third current pattern flows.
Note that the processing of steps S103 to S105 may be executed in a different order.

ステップS106において、q軸電流決定部112は、第1電流パターンの第2種別の目標電流が流れるようなq軸電流Iqf1を算出する。また、d軸電流決定部は、第1電流パターンの第2種別の目標電流が流れるようなd軸電流Idf1を算出する。
ステップS107において、q軸電流決定部112は、第2電流パターンの第2種別の目標電流が流れるようなq軸電流Iqf2を算出する。また、d軸電流決定部は、第2電流パターンの第2種別の目標電流が流れるようなd軸電流Idf2を算出する。
ステップS108において、q軸電流決定部112は、第3電流パターンの第2種別の目標電流が流れるようなq軸電流Iqf3を算出する。また、d軸電流決定部は、第3電流パターンの第2種別の目標電流が流れるようなd軸電流Idf3を算出する。
なお、ステップS106からS108の処理は、順序を変えて実行してもよい。
ステップS103からS108の処理では、ステップS101で得られたモータ角度が使われる。
In step S106, the q-axis current determination unit 112 calculates the q-axis current Iqf1 such that the second type target current of the first current pattern flows. Further, the d-axis current determination unit calculates a d-axis current Idf1 such that the second type target current of the first current pattern flows.
In step S107, the q-axis current determination unit 112 calculates a q-axis current Iqf2 such that the second type target current of the second current pattern flows. In addition, the d-axis current determination unit calculates a d-axis current Idf2 such that the second type target current of the second current pattern flows.
In step S108, the q-axis current determination unit 112 calculates a q-axis current Iqf3 such that the second type target current of the third current pattern flows. In addition, the d-axis current determination unit calculates a d-axis current Idf3 such that the second type target current of the third current pattern flows.
Note that the processing of steps S106 to S108 may be executed in a different order.
In the processing from step S103 to S108, the motor angle obtained in step S101 is used.

ステップS109において、q軸電流決定部112は、q軸電流Iqf1からIqf3のうち、絶対値が最も小さいものを診断用q軸電流と決定する。なお、q軸電流Iqf1からIqf3がステップS103からS105で算出されたものであるとき、ステップS109で決定された診断用q軸電流は、第1種別の目標電流が電線21に流れるような診断用q軸電流である。また、q軸電流Iqf1からIqf3がステップS106からS108で算出されたものであるとき、ステップS109で決定された診断用q軸電流は、第2種別の目標電流が電線21に流れるような診断用q軸電流である。
ステップS110において、d軸電流決定部113は、ステップS103からステップS105で算出したd軸電流Idf1からIdf3のうち、診断用q軸電流に対応する電流パターンのd軸電流を診断用d軸電流と決定する。すなわち、診断用q軸電流がq軸電流Iqf1のとき、診断用d軸電流はd軸電流Idf1である。診断用q軸電流がq軸電流Iqf2のとき、診断用d軸電流はd軸電流Idf2である。診断用q軸電流がq軸電流Iqf3のとき、診断用d軸電流はd軸電流Idf3である。
In step S109, the q-axis current determining unit 112 determines the q-axis current Iqf1 to Iqf3 having the smallest absolute value as the diagnostic q-axis current. When the q-axis currents Iqf1 to Iqf3 are calculated in steps S103 to S105, the diagnostic q-axis current determined in step S109 is used for diagnosis such that the first type target current flows through the electric wire 21. q-axis current. Further, when the q-axis currents Iqf1 to Iqf3 are calculated in steps S106 to S108, the diagnostic q-axis current determined in step S109 is used for diagnosis such that the second type target current flows through the electric wire 21. q-axis current.
In step S110, the d-axis current determination unit 113 sets the d-axis current of the current pattern corresponding to the diagnostic q-axis current among the d-axis currents Idf1 to Idf3 calculated in steps S103 to S105 as the diagnostic d-axis current. decide. That is, when the diagnostic q-axis current is the q-axis current Iqf1, the diagnostic d-axis current is the d-axis current Idf1. When the diagnostic q-axis current is the q-axis current Iqf2, the diagnostic d-axis current is the d-axis current Idf2. When the diagnostic q-axis current is the q-axis current Iqf3, the diagnostic d-axis current is the d-axis current Idf3.

ステップS111において、出力電流制御部114は、診断用q軸電流及び診断用d軸電流に基づいて、電線21に出力する電流である出力電流の制御を行う。
このとき、出力電流制御部114は、出力電流が、所定の過渡期間B[秒]の以内に、所定の変化率で目標電流に徐々に近づくように制御する。そして、過渡期間Bの経過後、所定の定常期間C[秒]の間、出力電流を目標電流に一致させる。
過渡期間Bは、出力電流が、診断用q軸電流に対応する電流パターンの目標電流に近づく期間を含む所定期間である。定常期間Cは、過渡期間の経過後、出力電流が、診断用q軸電流に対応する電流パターンの目標電流に維持される所定期間である。
In step S <b> 111, the output current control unit 114 controls the output current that is the current output to the electric wire 21 based on the diagnostic q-axis current and the diagnostic d-axis current.
At this time, the output current control unit 114 performs control so that the output current gradually approaches the target current at a predetermined change rate within a predetermined transient period B [seconds]. Then, after the transition period B has elapsed, the output current is matched with the target current for a predetermined steady period C [seconds].
The transient period B is a predetermined period including a period in which the output current approaches the target current of the current pattern corresponding to the diagnostic q-axis current. The steady period C is a predetermined period in which the output current is maintained at the target current of the current pattern corresponding to the diagnostic q-axis current after the transition period has elapsed.

ここで、出力電流に対応するq軸電流及びd軸電流を、それぞれ出力q軸電流及び出力d軸電流と呼ぶ。
出力電流制御部114は、過渡期間B[秒]の以内に、診断用q軸電流及び診断用d軸電流に近づくように、所定の変化率で出力q軸電流及び出力d軸電流を変化させて、出力q軸電流及び出力d軸電流をdq軸電流計算部に出力する。そして、過渡期間Bの経過後、定常期間Cの間、診断用q軸電流及び診断用d軸電流に等しい出力d軸電流及び出力d軸電流をdq軸電流計算部に出力する。
これにより、上記のような出力電流の制御が可能になる。
そして、ステップS111の処理の終了後、出力電流制御部114は、処理をステップS100に戻す。
Here, the q-axis current and the d-axis current corresponding to the output current are referred to as an output q-axis current and an output d-axis current, respectively.
The output current control unit 114 changes the output q-axis current and the output d-axis current at a predetermined change rate so as to approach the diagnostic q-axis current and the diagnostic d-axis current within the transition period B [seconds]. The output q-axis current and the output d-axis current are output to the dq-axis current calculation unit. Then, after the transition period B has elapsed, during the steady period C, output d-axis current and output d-axis current equal to the diagnostic q-axis current and the diagnostic d-axis current are output to the dq-axis current calculation unit.
As a result, the output current can be controlled as described above.
And after completion | finish of the process of step S111, the output current control part 114 returns a process to step S100.

次に、図5Aを参照して、電流制御処理による出力電流の例について説明する。図5Aは、第1電流グラフを示す図である。
第1電流グラフの横軸は時間であり、縦軸は電線21Aの電流値である。線L41は、電線21Aの目標電流の時間変化を示す。線L42は、電線21Aの出力電流の時間変化を示す。なお、線L43については後述する。
Next, with reference to FIG. 5A, an example of output current by current control processing will be described. FIG. 5A is a diagram illustrating a first current graph.
The horizontal axis of the first current graph is time, and the vertical axis is the current value of the electric wire 21A. A line L41 indicates a change over time of the target current of the electric wire 21A. A line L42 indicates a time change of the output current of the electric wire 21A. The line L43 will be described later.

電線21の目標電流は、上記の通り、診断用q軸電流及び診断用d軸電流から算出される電流であり、「過渡期間B+定常期間C」の周期で正負が逆転する。これは、ステップS109で決定される診断用q軸電流は、ステップS109での決定ごとに正負が反転するためである。診断用q軸電流の正負が反転するのは、ステップS109での決定ごとに、第1種別の目標電流が流れるような診断用q軸電流、及び、第2種別の目標電流が流れるような診断用q軸電流を交互に算出するためである。
出力電流は、ステップS111での制御により、過渡期間Bの間は、所定の変化率で目標電流に近づくように制御される。また、過渡期間B経過後は、定常期間Cの間、出力電流は目標電流に一致するように制御される。
図5Aに示す診断用電流Iuグラフでは、目標電流が「過渡期間B+定常期間C」の周期で、18.5[A]と−18.5[A]とを繰り返す。
As described above, the target current of the electric wire 21 is a current calculated from the diagnostic q-axis current and the diagnostic d-axis current, and the polarity is reversed in a cycle of “transient period B + steady period C”. This is because the diagnostic q-axis current determined in step S109 is inverted in polarity every time it is determined in step S109. The sign of the diagnostic q-axis current is inverted because of the diagnosis q-axis current flowing through the first type target current and the second type target current flowing at each determination in step S109. This is because the q-axis current is calculated alternately.
The output current is controlled so as to approach the target current at a predetermined change rate during the transition period B by the control in step S111. Further, after the transition period B elapses, during the steady period C, the output current is controlled to match the target current.
In the diagnostic current Iu graph shown in FIG. 5A, the target current repeats 18.5 [A] and −18.5 [A] in a cycle of “transient period B + steady period C”.

[故障診断処理]
次に、図4を参照して故障診断処理について説明する。図4は、故障診断処理のフローチャートである。
ステップS200において、故障検知部115は、モータ制御装置100の電源がオンになり、モータ制御装置100の起動の指示がされたか否かを判定する。故障検知部115は、モータ制御装置100の電源がオンになったとき処理をステップS201に進め、モータ制御装置100の電源がオンではないとき処理を再度ステップS200の処理を実行する。なお、モータ制御装置100は、電源がオフの場合でも、例えば消費電力が制限された状態で稼働しており、ステップS200の処理が行えるものとする。
ステップS201において、故障検知部115は、故障カウンタを初期化して、0にする。故障カウンタは、電線21A、B、Cごとに設けられるカウンタであり、例えば、モータ制御装置100が備える記憶手段の所定の領域に用意される。
[Failure diagnosis processing]
Next, failure diagnosis processing will be described with reference to FIG. FIG. 4 is a flowchart of the failure diagnosis process.
In step S200, the failure detection unit 115 determines whether or not the motor control device 100 is turned on and an instruction to start the motor control device 100 has been issued. The failure detection unit 115 advances the process to step S201 when the power of the motor control device 100 is turned on, and executes the process of step S200 again when the power of the motor control device 100 is not turned on. Note that, even when the power is off, the motor control device 100 is operating in a state where power consumption is limited, for example, and can perform the process of step S200.
In step S201, the failure detection unit 115 initializes the failure counter to zero. The failure counter is a counter provided for each of the electric wires 21A, B, and C, and is prepared, for example, in a predetermined area of a storage unit provided in the motor control device 100.

ステップS202において、故障検知部115は、例えばモータ制御装置100が備える記憶手段の所定のフラグを設定して、モータ制御システム1の動作モードを故障診断モードにする。
ステップS203において、故障検知部115は、診断用q軸電流及び診断用d軸電流に対応する目標電流を流す制御が、出力電流制御部114で行われているか否かを判定する。すなわち、故障検知部115は、図5Aに示す過渡期間Bが経過して、定常期間Cになったか否かを判定する。故障検知部115は、出力電流制御部114に問い合わせる等により、この判定を行う。故障検知部115は、診断用q軸電流及び診断用d軸電流に対応する目標電流を流す制御が行われているとき処理をステップS204に進め、行われていないとき処理をステップS213に進める。
In step S202, the failure detection unit 115 sets a predetermined flag of a storage unit included in the motor control device 100, for example, and sets the operation mode of the motor control system 1 to the failure diagnosis mode.
In step S <b> 203, the failure detection unit 115 determines whether or not the output current control unit 114 performs control to flow a target current corresponding to the diagnostic q-axis current and the diagnostic d-axis current. That is, the failure detection unit 115 determines whether or not the transition period B shown in FIG. The failure detection unit 115 makes this determination by inquiring of the output current control unit 114 or the like. The failure detection unit 115 advances the process to step S204 when the control of flowing the target current corresponding to the diagnostic q-axis current and the diagnostic d-axis current is performed, and advances the process to step S213 when it is not performed.

ステップS204において、故障検知部115は、最大で定常期間Cが終了するまで、電流検知部150の出力に基づいて、電線21A、B、Cの実績電流を検知する。
ステップS205において、故障検知部115は、ステップS204での検知結果から、電線21Aが故障カウント状態であったか否かを判定する。故障カウント状態とは、ステップS204で検知した電線21に流れる実績電流の絶対値が所定の故障判定電流値以下の状態が、所定の判定期間D[秒]以上継続した状態のことである。判定期間Dは、定常期間C以下の期間である。故障判定電流値、及び、判定期間Dは、例えば、モータ制御装置100の記憶手段に予め記憶されているものとする。
故障検知部115は、電線21Aが故障カウント状態であったとき処理をステップS206に進め、電線21Aが故障カウント状態ではなかったとき処理をステップS207に進める。
ステップS206において、故障検知部115は、電線21Aの故障カウンタをインクリメントする。
In step S204, the failure detection unit 115 detects the actual currents of the electric wires 21A, B, and C based on the output of the current detection unit 150 until the steady period C ends at the maximum.
In step S205, the failure detection unit 115 determines whether or not the electric wire 21A is in the failure count state from the detection result in step S204. The failure count state is a state in which the state where the absolute value of the actual current flowing through the electric wire 21 detected in step S204 is equal to or less than a predetermined failure determination current value continues for a predetermined determination period D [seconds]. The determination period D is a period equal to or less than the steady period C. It is assumed that the failure determination current value and the determination period D are stored in advance in the storage unit of the motor control device 100, for example.
The failure detection unit 115 proceeds to step S206 when the electric wire 21A is in the failure count state, and proceeds to step S207 when the electric wire 21A is not in the failure count state.
In step S206, the failure detection unit 115 increments the failure counter of the electric wire 21A.

ステップS207において、故障検知部115は、ステップS204での検知結果から、電線21Bが故障カウント状態であったか否かを判定する。故障検知部115は、電線21Bが故障カウント状態であったとき処理をステップS208に進め、電線21Bが故障カウント状態ではなかったとき処理をステップS209に進める。
ステップS208において、故障検知部115は、電線21Bの故障カウンタをインクリメントする。
In step S207, the failure detection unit 115 determines whether or not the electric wire 21B is in the failure count state from the detection result in step S204. The failure detection unit 115 advances the process to step S208 when the electric wire 21B is in the failure count state, and advances the process to step S209 when the electric wire 21B is not in the failure count state.
In step S208, the failure detection unit 115 increments the failure counter of the electric wire 21B.

ステップS209において、故障検知部115は、ステップS204での検知結果から、電線21Cが故障カウント状態であったか否かを判定する。故障検知部115は、電線21Cが故障カウント状態であったとき処理をステップS210に進め、電線21Cが故障カウント状態ではなかったとき処理をステップS211に進める。
ステップS210において、故障検知部115は、電線21Cの故障カウンタをインクリメントする。
In step S209, the failure detection unit 115 determines whether or not the electric wire 21C is in the failure count state from the detection result in step S204. The failure detection unit 115 advances the process to step S210 when the electric wire 21C is in the failure count state, and advances the process to step S211 when the electric wire 21C is not in the failure count state.
In step S210, the failure detection unit 115 increments the failure counter of the electric wire 21C.

ステップS211において、故障検知部115は、電線21A、B、Cの故障カウンタのいずれかが、所定の故障閾値以上であるか否かを判定する。故障閾値は、例えば、モータ制御装置100の記憶手段に予め記憶されているものとする。故障検知部115は、故障閾値以上の故障カウンタが少なくとも1つあるとき処理をステップS212に進め、故障閾値以上の故障カウンタがないとき処理をステップS213に進める。
なお、故障カウンタが故障閾値以上になったとき、故障検知部115は、故障閾値以上になった故障カウンタに対応する電線21に断線が発生したもの判定する。
In step S211, the failure detection unit 115 determines whether any of the failure counters of the electric wires 21A, B, and C is equal to or greater than a predetermined failure threshold. The failure threshold is assumed to be stored in advance in the storage unit of the motor control device 100, for example. The failure detection unit 115 advances the process to step S212 when there is at least one failure counter greater than or equal to the failure threshold, and advances the process to step S213 when there is no failure counter greater than or equal to the failure threshold.
When the failure counter exceeds the failure threshold, the failure detection unit 115 determines that the wire 21 corresponding to the failure counter that has exceeded the failure threshold has broken.

ステップS212において、故障検知部115は、モータ20が断線しており、故障が発生していると判定し、その旨を通知する。
通知先の例として、モータ制御システム1をサブシステムとして利用している装置又はシステムの制御部、モータ制御システム1の監視装置、及び、モータ制御システム1を利用するユーザが挙げられるが、これらに限定されるものではない。
通知方法の例として、通知先が装置やシステムのときは、有線又は無線での信号による通知が挙げられる。通知先がユーザのときは、モータ制御システム1が備える不図示の出力装置に所定の出力を行うことが例として挙げられる。
通知内容は、モータ20に断線が発生したことのみでもよく、断線が発生したと判定した電線21が、電線21A、B、Cのいずれであるかを含むものでもよい。
In step S212, the failure detection unit 115 determines that the motor 20 is disconnected and a failure has occurred, and notifies that fact.
Examples of notification destinations include a device that uses the motor control system 1 as a subsystem or a control unit of the system, a monitoring device of the motor control system 1, and a user who uses the motor control system 1. It is not limited.
As an example of the notification method, when the notification destination is an apparatus or a system, notification by a wired or wireless signal can be given. For example, when the notification destination is a user, a predetermined output is performed on an output device (not shown) included in the motor control system 1.
The notification content may be only that the disconnection has occurred in the motor 20 or may include whether the electric wire 21 that has been determined to have been disconnected is the electric wire 21A, B, or C.

ステップS213において、故障検知部115は、故障診断モードになってから所定の診断期間Y[秒]が経過したか否かを判定する。診断期間Yは、例えば、モータ制御装置100の記憶手段に予め記憶されているものとする。故障検知部115は、診断期間Yが経過したとき処理をステップS214に進め、経過していないとき処理をステップS203に戻す。
ステップS214において、故障検知部115は、モータ20は断線しておらず、故障が発生していないと判定し、その旨を通知する。この通知先及び通知手段は、ステップS212での故障発生の通知と同様である。なお、故障検知部115はステップS214の処理を行わず、処理をステップS215に進めてもよい。
ステップS215において、故障検知部115は、故障診断モードを解除する。このとき、故障が発生していないと判定したときは、モータ制御システム1の動作モードを通常モードにして、モータ20の制御を開始する。故障が発生したと判定したときは、モータ制御システム1の動作モードをメンテナンスモード等にして、モータ20の制御を行わない。
In step S213, the failure detection unit 115 determines whether or not a predetermined diagnosis period Y [second] has elapsed since the failure diagnosis mode was entered. The diagnosis period Y is stored in advance in the storage unit of the motor control device 100, for example. The failure detection unit 115 advances the process to step S214 when the diagnosis period Y has elapsed, and returns the process to step S203 when it has not elapsed.
In step S214, the failure detection unit 115 determines that the motor 20 is not disconnected and a failure has not occurred, and notifies that fact. This notification destination and notification means are the same as the notification of failure occurrence in step S212. Note that the failure detection unit 115 may advance the process to step S215 without performing the process of step S214.
In step S215, the failure detection unit 115 cancels the failure diagnosis mode. At this time, when it is determined that no failure has occurred, the operation mode of the motor control system 1 is set to the normal mode, and control of the motor 20 is started. When it is determined that a failure has occurred, the motor 20 is not controlled by setting the operation mode of the motor control system 1 to the maintenance mode or the like.

次に、図5Aを参照して、故障診断処理の動作例について説明する。
図5Aの線L43は、電線21Aに流れて電流センサ12Aで検知された実績電流の時間変化を表す。線L43から分かるように、実績電流の大きさは定常期間Cのときに常に故障判定電流値より大きい。よって、電線21AがステップS205で故障カウント状態と判定されることはない。したがって、図5Aに示す状態が診断期間Yの間継続すると、電線21Aの故障カウンタはインクリメントされず0のまま維持され、電線21Aが断線していると判定されることはない。
Next, with reference to FIG. 5A, an operation example of failure diagnosis processing will be described.
A line L43 in FIG. 5A represents a change over time of the actual current flowing through the electric wire 21A and detected by the current sensor 12A. As can be seen from the line L43, the magnitude of the actual current is always larger than the failure determination current value during the steady period C. Therefore, the electric wire 21A is not determined to be in the failure count state in step S205. Therefore, if the state shown in FIG. 5A continues for the diagnosis period Y, the failure counter of the electric wire 21A is not incremented and is maintained as 0, and it is not determined that the electric wire 21A is disconnected.

次に、図5Bを参照して、故障診断処理の他の動作例について説明する。図5Bは、上段が第2電流グラフを示す図であり、下段が電線21Aの故障カウンタの変化を示す図である。
第2電流グラフの横軸は時間であり、縦軸は電線21Aの電流値である。線L41、及び、線L42は、図5Aの第1電流グラフと同様である。
線L51は、電線21Aの実績電流の時間変化を表すものであり、図5Aとは異なる例を表す。線L51から分かるように、実績電流の大きさは、定常期間Cのとき、故障判定電流値以下の状態が、判定期間D[秒]以上継続している。よって、電線21Aは故障カウント状態になっている。したがって、定常期間Cが経過するごとにステップS206で電線21Aの故障カウンタがインクリメントされていく。この状態を図5Bの下段に示す。
このように図5Bの上段に示す状態が継続して、電線21Aの故障カウンタが故障閾値以上になると、図4のステップS211で電線21Aに断線が発生していると判定される。
Next, another operation example of the failure diagnosis process will be described with reference to FIG. 5B. FIG. 5B is a diagram showing the second current graph in the upper stage, and a diagram showing a change in the failure counter of the electric wire 21A in the lower stage.
The horizontal axis of the second current graph is time, and the vertical axis is the current value of the electric wire 21A. Line L41 and line L42 are the same as those in the first current graph of FIG. 5A.
Line L51 represents the change over time of the actual current of the electric wire 21A, and represents an example different from FIG. 5A. As can be seen from the line L51, when the actual current is in the steady period C, the state below the failure determination current value continues for the determination period D [seconds] or longer. Therefore, the electric wire 21A is in a failure count state. Therefore, every time the steady period C elapses, the failure counter of the electric wire 21A is incremented in step S206. This state is shown in the lower part of FIG. 5B.
As described above, when the state shown in the upper part of FIG. 5B continues and the failure counter of the electric wire 21A becomes equal to or greater than the failure threshold, it is determined in step S211 of FIG. 4 that the electric wire 21A is broken.

[効果]
以上説明したように、q軸電流決定部112は、電線21A、B、Cに第1から第3電流パターンの目標電流が流れるような複数のq軸電流を求める。そして、求めた複数のq軸電流の絶対値のうち最も小さい値を絶対値とし、所定のタイミングで極性が反転する診断用q軸電流を決定する。
出力電流制御部114は、診断用q軸電流、及び、診断用d軸電流に基づいて、電線21に出力電流を出力する制御を行う。
故障検知部115は、電線21の実績電流に基づいて、電線21の断線を検知する。
[effect]
As described above, the q-axis current determination unit 112 obtains a plurality of q-axis currents that cause the target currents of the first to third current patterns to flow through the electric wires 21A, B, and C. Then, the smallest value among the obtained absolute values of the q-axis current is set as the absolute value, and the diagnostic q-axis current whose polarity is inverted at a predetermined timing is determined.
The output current control unit 114 performs control to output the output current to the electric wire 21 based on the diagnostic q-axis current and the diagnostic d-axis current.
The failure detection unit 115 detects disconnection of the electric wire 21 based on the actual current of the electric wire 21.

よって、電線21の断線を検知する際、q軸電流が小さくなるため、モータ20のトルク及び回転を抑制できる。
また、診断用q軸電流は所定のタイミングで極性が反転する。よって、電線21の断線を検知する際にモータ20が回転するときでも、所定のタイミングごとにモータ20の回転方向が反転する。したがって、モータ20の断線を検知する際のモータ20の回転を抑制できる。このため、モータの断線を検知する際にモータが回転してユーザが違和感を覚えることを抑制できる。
また、モータ制御装置100は、電線21の断線を検知するための専用回路を必要としない。したがって、モータ制御装置100は、この専用回路に必要な容量(体積)の増加を抑えることができる。
Therefore, when the disconnection of the electric wire 21 is detected, the q-axis current is reduced, so that the torque and rotation of the motor 20 can be suppressed.
Further, the polarity of the diagnostic q-axis current is inverted at a predetermined timing. Therefore, even when the motor 20 rotates when detecting the disconnection of the electric wire 21, the rotation direction of the motor 20 is reversed at every predetermined timing. Therefore, rotation of the motor 20 when detecting disconnection of the motor 20 can be suppressed. For this reason, when the disconnection of the motor is detected, it is possible to prevent the user from feeling uncomfortable due to the rotation of the motor.
Further, the motor control device 100 does not require a dedicated circuit for detecting the disconnection of the electric wire 21. Therefore, the motor control device 100 can suppress an increase in capacity (volume) necessary for this dedicated circuit.

また、目標電流は電流値が一定の電流である。したがって、モータ20の回転を抑制できる。
また、故障検知部115は、モータ制御装置100が起動したときに、電線21の断線の検知を開始する。よって、電線21が断線しているときは、モータ制御装置100が通常モードでモータ20を制御する前に、この断線を検知できるため、安定したモータ20の運用を実現できる。
The target current is a current having a constant current value. Therefore, rotation of the motor 20 can be suppressed.
Moreover, the failure detection unit 115 starts detecting the disconnection of the electric wire 21 when the motor control device 100 is activated. Therefore, when the electric wire 21 is disconnected, this disconnection can be detected before the motor control device 100 controls the motor 20 in the normal mode, so that stable operation of the motor 20 can be realized.

また、q軸電流決定部112及びd軸電流決定部113は、モータ角度に基づいて、第1から第3電流パターンの目標電流になるようなq軸電流及びd軸電流を求める。したがって、モータ角度がどのような値であっても、第1から第3電流パターンの目標電流になるようなq軸電流及びd軸電流を求めることができる。
また、出力電流制御部114は、過渡期間、及び、定常期間の出力電流を制御する。そして、過渡期間では、出力電流が、診断用q軸電流に対応する電流パターンの目標電流に所定の変化率で近づくように制御される。よって、電線21の出力電流が大きく変動してモータ20のトルクが変動することを抑制できる。したがって、モータ20による振動や音を抑制できる。
In addition, the q-axis current determination unit 112 and the d-axis current determination unit 113 obtain a q-axis current and a d-axis current that are the target currents of the first to third current patterns based on the motor angle. Accordingly, it is possible to obtain the q-axis current and the d-axis current so as to be the target currents of the first to third current patterns regardless of the value of the motor angle.
The output current control unit 114 controls the output current during the transient period and the steady period. In the transition period, the output current is controlled so as to approach the target current of the current pattern corresponding to the diagnostic q-axis current at a predetermined change rate. Therefore, it can suppress that the output current of the electric wire 21 fluctuates greatly and the torque of the motor 20 fluctuates. Therefore, vibrations and sounds caused by the motor 20 can be suppressed.

また、故障検知部115は、定常期間のとき、電線21が故障カウント状態か否かを判定して電線21の断線を検知する。故障カウント状態は、電線21に流れる実績電流の大きさが故障判定電流値以下の状態が、判定期間D以上継続した状態のことである。定常期間では、出力電流が安定している。したがって、誤って断線を検知するおそれが低減する。
また、故障検知部115は、診断用q軸電流の極性が反転するごとに、電線21が故障カウント状態か否かを判定し、電線21ごとに故障カウント状態が故障閾値以上発生したか否かを判定する。そして、故障検知部115は、故障カウント状態が故障閾値以上発生した電線21について断線していると判定する。したがって、断線の検知の精度が向上する。
Moreover, the failure detection part 115 determines whether the electric wire 21 is in a failure count state during a steady period, and detects the disconnection of the electric wire 21. The failure count state is a state in which the state where the actual current flowing through the electric wire 21 is equal to or less than the failure determination current value continues for the determination period D or longer. In the steady period, the output current is stable. Therefore, the possibility of detecting a disconnection by mistake is reduced.
Further, every time the polarity of the diagnostic q-axis current is reversed, the failure detection unit 115 determines whether or not the electric wire 21 is in the failure count state, and whether or not the failure count state for each of the electric wires 21 has exceeded the failure threshold value. Determine. Then, the failure detection unit 115 determines that the wire 21 in which the failure count state has occurred more than the failure threshold is disconnected. Therefore, the accuracy of detection of disconnection is improved.

また、故障検知部115は、診断期間Yの間にいずれかの電線21が断線していると検知したとき、電線21の断線の検知を終了する。したがって、いずれかの電線21が断線しているとき、ユーザ等は早期に電線21が断線していることが分かる。   Further, when the failure detection unit 115 detects that any of the electric wires 21 is disconnected during the diagnosis period Y, the failure detection unit 115 ends the detection of the disconnection of the electric wires 21. Therefore, when any of the electric wires 21 is disconnected, the user or the like knows that the electric wires 21 are disconnected early.

<第2実施形態>
次に、本実施形態のモータ制御システム1について説明する。なお、第1実施形態と同様の点については同じ符号を用いて説明を省略し、第1実施形態と異なる点を中心に説明する。
Second Embodiment
Next, the motor control system 1 of this embodiment will be described. In addition, about the point similar to 1st Embodiment, description is abbreviate | omitted using the same code | symbol, and it demonstrates centering on a different point from 1st Embodiment.

まず、本実施形態の電流パターンについて説明する。本実施形態では、第1実施形態とは異なり、電流パターンに第1種別及び第2種別を設けない。本実施形態の第1から第3電流パターンは、それぞれ第1実施形態の第1から第3電流パターンにおける第1種別又は第2種別のいずれかである。例えば、本実施形態では、第1から第3電流パターンを、それぞれ第1実施形態の第1から第3電流パターンの第1種別とする。   First, the current pattern of this embodiment will be described. In the present embodiment, unlike the first embodiment, the first type and the second type are not provided in the current pattern. The first to third current patterns in the present embodiment are either the first type or the second type in the first to third current patterns in the first embodiment, respectively. For example, in the present embodiment, the first to third current patterns are the first types of the first to third current patterns of the first embodiment, respectively.

次に、図6を参照して本実施形態の電流制御処理について説明する。図6は、電流制御処理のフローチャートである。
ステップS300において、電流制御部111は、モータ制御システム1の動作モードが故障診断モードであるか否かを判定する。判定方法は、図3のステップS100と同様である。電流制御部111は、動作モードが故障診断モードのとき処理をステップS301に進め、動作モードが故障診断モードではないとき再度ステップS300を実行する。
ステップS301において、角度検知部140は、モータ角度センサ13の出力に基づくモータ角度を電流制御部111に出力する。
Next, the current control process of this embodiment will be described with reference to FIG. FIG. 6 is a flowchart of the current control process.
In step S300, the current control unit 111 determines whether or not the operation mode of the motor control system 1 is the failure diagnosis mode. The determination method is the same as step S100 in FIG. The current control unit 111 proceeds to step S301 when the operation mode is the failure diagnosis mode, and executes step S300 again when the operation mode is not the failure diagnosis mode.
In step S <b> 301, the angle detection unit 140 outputs a motor angle based on the output of the motor angle sensor 13 to the current control unit 111.

ステップS302において、q軸電流決定部112は、第1電流パターンの目標電流が流れるようなq軸電流Iqf1を算出する。また、d軸電流決定部は、第1電流パターンの目標電流が流れるようなd軸電流Idf1を算出する。
ステップS303において、q軸電流決定部112は、第2電流パターンの目標電流が流れるようなq軸電流Iqf2を算出する。また、d軸電流決定部は、第2電流パターンの目標電流が流れるようなd軸電流Idf2を算出する。
ステップS304において、q軸電流決定部112は、第3電流パターンの目標電流が流れるようなq軸電流Iqf3を算出する。また、d軸電流決定部は、第3電流パターンの目標電流が流れるようなd軸電流Idf3を算出する。
In step S302, the q-axis current determination unit 112 calculates a q-axis current Iqf1 such that the target current of the first current pattern flows. In addition, the d-axis current determination unit calculates a d-axis current Idf1 such that the target current of the first current pattern flows.
In step S303, the q-axis current determination unit 112 calculates a q-axis current Iqf2 such that the target current of the second current pattern flows. The d-axis current determination unit calculates a d-axis current Idf2 that allows the target current of the second current pattern to flow.
In step S304, the q-axis current determination unit 112 calculates a q-axis current Iqf3 such that the target current of the third current pattern flows. The d-axis current determination unit calculates a d-axis current Idf3 that allows the target current of the third current pattern to flow.

ステップS305において、q軸電流決定部112は、q軸電流Iqf1からIqf3のうち、絶対値が最も小さいものを、仮の診断用q軸電流と決定する。
ステップS306において、d軸電流決定部113は、ステップS302からステップS304で算出したd軸電流Idf1からIdf3のうち、仮の診断用q軸電流に対応する電流パターンのd軸電流を仮の診断用d軸電流と決定する。すなわち、仮の診断用q軸電流がq軸電流Iqf1のとき、仮の診断用d軸電流はd軸電流Idf1である。また、仮の診断用q軸電流がq軸電流Iqf2のとき、仮の診断用d軸電流はd軸電流Idf2である。また、仮の診断用q軸電流がq軸電流Iqf3のとき、仮の診断用d軸電流はd軸電流Idf3である。
In step S305, the q-axis current determining unit 112 determines the q-axis currents Iqf1 to Iqf3 having the smallest absolute value as a provisional diagnostic q-axis current.
In step S306, the d-axis current determination unit 113 uses the d-axis current of the current pattern corresponding to the temporary diagnosis q-axis current among the d-axis currents Idf1 to Idf3 calculated in steps S302 to S304 for temporary diagnosis. Determined as d-axis current. That is, when the temporary diagnostic q-axis current is the q-axis current Iqf1, the temporary diagnostic d-axis current is the d-axis current Idf1. When the temporary diagnostic q-axis current is the q-axis current Iqf2, the temporary diagnostic d-axis current is the d-axis current Idf2. When the temporary diagnostic q-axis current is the q-axis current Iqf3, the temporary diagnostic d-axis current is the d-axis current Idf3.

ステップS307において、q軸電流決定部112は、前回のステップS309又はステップS311で決定した診断用q軸電流が負か否かを判定する。q軸電流決定部112は、前回決定した診断用q軸電流が負のとき処理をステップS308に進め、正のとき処理をステップS310に進める。   In step S307, the q-axis current determination unit 112 determines whether or not the diagnostic q-axis current determined in the previous step S309 or step S311 is negative. The q-axis current determining unit 112 advances the process to step S308 when the previously determined q-axis current for diagnosis is negative, and advances the process to step S310 when positive.

ステップS308において、q軸電流決定部112は、仮の診断用q軸電流から、正の値になる診断用q軸電流を決定する。具体的には、仮の診断用q軸電流が正のとき、仮の診断用q軸電流を、極性を反転させずにそのまま診断用q軸電流と決定する。また、仮の診断用q軸電流が負のとき、仮の診断用q軸電流の極性を反転させて、診断用q軸電流と決定する。
ステップS309において、d軸電流決定部113は、仮の診断用q軸電流から、診断用q軸電流に対応する診断用d軸電流を決定する。具体的には、ステップS308で、仮の診断用q軸電流の極性を反転させずに診断用q軸電流としたときは、仮の診断用d軸電流を、極性を反転させずにそのまま診断用d軸電流と決定する。また、ステップS308で、仮の診断用q軸電流の極性を反転させて診断用q軸電流としたときは、仮の診断用d軸電流の極性を反転させて、診断用d軸電流と決定する。
In step S308, the q-axis current determining unit 112 determines a diagnostic q-axis current that is a positive value from the temporary diagnostic q-axis current. Specifically, when the temporary diagnostic q-axis current is positive, the temporary diagnostic q-axis current is determined as it is as the diagnostic q-axis current without inverting the polarity. Further, when the temporary diagnostic q-axis current is negative, the polarity of the temporary diagnostic q-axis current is reversed to determine the diagnostic q-axis current.
In step S309, the d-axis current determination unit 113 determines a diagnostic d-axis current corresponding to the diagnostic q-axis current from the temporary diagnostic q-axis current. Specifically, in step S308, when the diagnosis q-axis current is obtained without reversing the polarity of the temporary diagnostic q-axis current, the temporary diagnosis d-axis current is directly diagnosed without reversing the polarity. The d-axis current is determined. In step S308, when the polarity of the temporary diagnostic q-axis current is reversed to obtain the diagnostic q-axis current, the polarity of the temporary diagnostic d-axis current is reversed and determined as the diagnostic d-axis current. To do.

ステップS310において、q軸電流決定部112は、仮の診断用q軸電流から、負の値になる診断用q軸電流を決定する。具体的には、仮の診断用q軸電流が負のとき、仮の診断用q軸電流を、極性を反転させずにそのまま診断用q軸電流と決定する。また、仮の診断用q軸電流が正のとき、仮の診断用q軸電流の極性を反転させて、診断用q軸電流と決定する。
ステップS311において、d軸電流決定部113は、仮の診断用q軸電流から、診断用q軸電流に対応する診断用d軸電流を決定する。具体的には、ステップS310で、仮の診断用q軸電流の極性を反転させずに診断用q軸電流としたときは、仮の診断用d軸電流を、極性を反転させずにそのまま診断用d軸電流と決定する。また、ステップS310で、仮の診断用q軸電流の極性を反転させて診断用q軸電流としたときは、仮の診断用d軸電流の極性を反転させて、診断用d軸電流と決定する。
In step S310, the q-axis current determining unit 112 determines a diagnostic q-axis current that is a negative value from the temporary diagnostic q-axis current. Specifically, when the temporary diagnostic q-axis current is negative, the temporary diagnostic q-axis current is determined as it is as the diagnostic q-axis current without inverting the polarity. Further, when the temporary diagnostic q-axis current is positive, the polarity of the temporary diagnostic q-axis current is reversed to determine the diagnostic q-axis current.
In step S311, the d-axis current determining unit 113 determines a diagnostic d-axis current corresponding to the diagnostic q-axis current from the temporary diagnostic q-axis current. Specifically, in step S310, when the diagnostic q-axis current is used without inverting the polarity of the temporary diagnostic q-axis current, the temporary diagnostic d-axis current is directly diagnosed without inverting the polarity. The d-axis current is determined. In step S310, when the polarity of the temporary diagnostic q-axis current is reversed to obtain the diagnostic q-axis current, the polarity of the temporary diagnostic d-axis current is reversed and determined as the diagnostic d-axis current. To do.

ステップS312において、出力電流制御部114は、診断用q軸電流及び診断用d軸電流に基づいて、電線21の出力電流の制御を行う。ステップS312の処理は、図3のステップS111の処理と同様である。ステップS312の処理の終了後、出力電流制御部114は、処理をステップS300に戻す。   In step S312, the output current control unit 114 controls the output current of the electric wire 21 based on the diagnostic q-axis current and the diagnostic d-axis current. The process in step S312 is the same as the process in step S111 in FIG. After the process of step S312 ends, the output current control unit 114 returns the process to step S300.

図6の示す本実施形態の電流制御処理でも、図3に示す第1実施形態の電流制御処理と同様に、図5Aに示すような目標電流及び出力電流となる。
すなわち、診断用q軸電流及び診断用d軸電流から算出される電線21の目標電流は、「過渡期間B+定常期間C」の周期で正負が逆転する。これは、図6のステップS308又はS310で決定される診断用q軸電流は、ステップS308又はS310での決定ごとに正負が反転するためである。
また、出力電流は、ステップS312での制御により、過渡期間Bの間は、所定の変化率で目標電流に近づくように制御される。また、過渡期間B経過後は、定常期間Cの間、出力電流は目標電流に一致するように制御される。
なお、本実施形態でも、図4に示す第1実施形態の故障診断処理と同じ故障診断処理が行われ、電線21の断線が検知される。
Also in the current control process of the present embodiment shown in FIG. 6, the target current and the output current as shown in FIG. 5A are obtained as in the current control process of the first embodiment shown in FIG. 3.
That is, the target current of the electric wire 21 calculated from the diagnostic q-axis current and the diagnostic d-axis current is reversed between positive and negative in a cycle of “transient period B + steady period C”. This is because the q-axis current for diagnosis determined in step S308 or S310 in FIG. 6 is reversed in polarity every time it is determined in step S308 or S310.
Further, the output current is controlled so as to approach the target current at a predetermined change rate during the transition period B by the control in step S312. Further, after the transition period B elapses, during the steady period C, the output current is controlled to match the target current.
Also in this embodiment, the same failure diagnosis processing as that of the first embodiment shown in FIG. 4 is performed, and disconnection of the electric wire 21 is detected.

以上説明したように、q軸電流決定部112は、電線21A、B、Cに第1から第3電流パターンの電流が流れるような複数のq軸電流を求める。求めた複数のq軸電流のうち、絶対値が最も小さいq軸電流を仮の診断用q軸電流とする。そして、診断用q軸電流を決定するごとに極性が反転するように、仮の診断用q軸電流の極性を定めて診断用q軸電流と決定する。
よって、第1から第3電流パターンのそれぞれごとに第1実施形態のような第1種別と第2種別とを持つ必要がなく、処理を簡略化できる。
なお、本実施形態のモータ制御システム1は、第1実施形態のモータ制御システム1と同様の効果を持つ。
As described above, the q-axis current determination unit 112 obtains a plurality of q-axis currents that cause the currents of the first to third current patterns to flow through the electric wires 21A, B, and C. Among the obtained q-axis currents, the q-axis current having the smallest absolute value is set as a temporary diagnostic q-axis current. Then, the polarity of the provisional diagnostic q-axis current is determined and determined as the diagnostic q-axis current so that the polarity is inverted every time the diagnostic q-axis current is determined.
Therefore, it is not necessary to have the first type and the second type as in the first embodiment for each of the first to third current patterns, and the processing can be simplified.
Note that the motor control system 1 of the present embodiment has the same effects as the motor control system 1 of the first embodiment.

図6に示す電流制御処理では、出力電流制御部114は、ステップS312の後、処理をステップS300に戻す。すなわち、図6に示す電流制御処理では、診断用q軸電流を決定するごとに、この決定に先立って、ステップS302からS304で、q軸電流、d軸電流を算出する。そして、ステップS305、S306で仮の診断用q軸電流及び仮の診断用d軸電流を決定する。
しかし、出力電流制御部114は、ステップS312の後、処理をステップS307に戻してもよい。すなわち、初回の診断用d軸電流の決定のときにq軸電流、d軸電流の算出、及び、仮の診断用q軸電流及び仮の診断用d軸電流の決定を行う。2回目以降の診断用d軸電流の決定のときは、この仮の診断用d軸電流を用いるようにしてもよい。
これにより、モータ制御装置100の計算量が減少し、負荷を低減できる。また、このような処理を行っても、モータ角度が大きく変わることはないため、定常期間において診断用q軸電流、及び、診断用d軸電流に誤差が生じて出力電流が目標電流に一致しない、というおそれは小さい。
In the current control process illustrated in FIG. 6, the output current control unit 114 returns the process to step S300 after step S312. That is, in the current control process shown in FIG. 6, every time the diagnostic q-axis current is determined, the q-axis current and the d-axis current are calculated in steps S302 to S304 prior to the determination. In steps S305 and S306, a temporary diagnostic q-axis current and a temporary diagnostic d-axis current are determined.
However, the output current control unit 114 may return the process to step S307 after step S312. That is, when determining the first diagnostic d-axis current, the q-axis current and the d-axis current are calculated, and the temporary diagnostic q-axis current and the temporary diagnostic d-axis current are determined. When determining the diagnostic d-axis current for the second and subsequent times, this temporary diagnostic d-axis current may be used.
Thereby, the calculation amount of the motor control apparatus 100 decreases, and the load can be reduced. Further, even if such processing is performed, the motor angle does not change greatly, so that an error occurs in the diagnostic q-axis current and the diagnostic d-axis current in the steady period, and the output current does not match the target current. There is little fear.

<その他の実施形態>
上記の実施形態では、図4の故障診断処理で説明したように、ステップS211においていずれかの故障カウンタが故障閾値になったとき、故障発生の通知が行われて、故障診断処理が終了する。すなわち、電線21の1つに断線が検知されたときに故障診断処理が終了する。
しかし、故障検知部115は、故障診断処理の電線21A、B、Cの故障カウント状態を判定して判定結果に応じて故障カウンタをインクリメントする処理を、診断期間Yの間わたって行うようにしてもよい。この場合、故障検知部115は、診断期間Yの経過後にそれぞれの電線21A、B、Cの故障カウンタが故障閾値以上であるか否かを判定する。
これにより、故障診断処理では、電線21の複数に断線が発生していた場合でも、断線している電線21を全て検知できる。
<Other embodiments>
In the above embodiment, as described in the failure diagnosis processing of FIG. 4, when any failure counter reaches the failure threshold value in step S211, a failure occurrence is notified and the failure diagnosis processing ends. That is, the failure diagnosis process is completed when a disconnection is detected in one of the electric wires 21.
However, the failure detection unit 115 performs the process of determining the failure count state of the electric wires 21A, B, and C in the failure diagnosis process and incrementing the failure counter according to the determination result over the diagnosis period Y. Also good. In this case, the failure detection unit 115 determines whether or not the failure counter of each of the electric wires 21A, B, and C is greater than or equal to the failure threshold after the diagnosis period Y has elapsed.
Thereby, in the failure diagnosis processing, even when the disconnection has occurred in a plurality of the electric wires 21, all the disconnected electric wires 21 can be detected.

また、故障検知部115は、故障診断処理の電線21A、B、Cの故障カウント状態を判定して判定結果に応じて故障カウンタをインクリメントする処理を、全ての故障カウンタが故障閾値以上になるか、又は、診断期間Yが経過するまで行うようにしてもよい。
これにより、故障診断処理では、電線21の複数に断線が発生していた場合でも、断線している電線21を全て検知できる。また、診断期間Yの経過までに全ての故障カウンタが故障閾値以上になったときは、診断期間Yの経過の経過前に、この故障カウンタをインクリメントする処理を終了するため、故障診断処理の処理時間を短縮できる。
In addition, the failure detection unit 115 performs a process of determining the failure count state of the electric wires 21A, B, and C in the failure diagnosis process and incrementing the failure counter according to the determination result. Alternatively, it may be performed until the diagnosis period Y elapses.
Thereby, in the failure diagnosis processing, even when the disconnection has occurred in a plurality of the electric wires 21, all the disconnected electric wires 21 can be detected. If all the failure counters are equal to or greater than the failure threshold before the diagnosis period Y elapses, the process of incrementing the failure counter is terminated before the diagnosis period Y elapses. You can save time.

上記の実施形態では、故障検知部115は、電線21の故障として電線21の断線を検知する。しかし、故障判定電流値を調整する等により、故障検知部115は、電線21の故障として、電線21の太さが所定の太さ以下になったことを検知してもよい。これにより、電線21が断線する前に電線21の状態の変化を検知できる。   In the above embodiment, the failure detection unit 115 detects a disconnection of the electric wire 21 as a failure of the electric wire 21. However, the failure detection unit 115 may detect that the thickness of the electric wire 21 has become a predetermined thickness or less as a failure of the electric wire 21 by adjusting the failure determination current value or the like. Thereby, the change in the state of the electric wire 21 can be detected before the electric wire 21 is disconnected.

以上説明したモータ制御システム1は、三相交流電流で駆動するモータ20を使用するシステムや装置に適用できる。例えば、モータ制御システム1を電気自動車や電気自動二輪車に適用してもよい。
モータ制御システム1を備える電気自動二輪車を考える。この電気自動二輪車のセンタースタンドを立てて、後輪を浮かせた状態でモータ制御システム1のモータ制御装置100の電源をオンにしたとする。このとき、モータ制御システム1は故障診断モードになり、上記の故障診断処理、及び、電流制御処理が開始する。しかし、上記のようにモータ20の回転が抑制されるため、浮かせている後輪の回転が抑制される。したがって、モータ20を回転させる制御を行っていない状態で後輪が回転してユーザが違和感を持つ、というおそれを低減できる。
The motor control system 1 described above can be applied to a system or apparatus that uses the motor 20 driven by a three-phase alternating current. For example, the motor control system 1 may be applied to an electric vehicle or an electric motorcycle.
Consider an electric motorcycle with a motor control system 1. It is assumed that the power supply of the motor control device 100 of the motor control system 1 is turned on with the center stand of this electric motorcycle set up and the rear wheel floating. At this time, the motor control system 1 is in a failure diagnosis mode, and the above-described failure diagnosis processing and current control processing are started. However, since the rotation of the motor 20 is suppressed as described above, the rotation of the floating rear wheel is suppressed. Therefore, it is possible to reduce a possibility that the rear wheel rotates and the user feels uncomfortable when the control for rotating the motor 20 is not performed.

以上、本発明の実施形態を説明したが、上記実施形態は例として提示したものであり、発明の範囲を限定することは意図していない。上記実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。上記実施形態やその変形は、発明の範囲や要旨に含まれると同様に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものである。   As mentioned above, although embodiment of this invention was described, the said embodiment was shown as an example and is not intending limiting the range of invention. The above-described embodiment can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. The above-described embodiments and modifications thereof are included in the invention described in the claims and equivalents thereof, as long as they are included in the scope and gist of the invention.

本発明は、上記の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。   The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

1 モータ制御システム、20 モータ、21 電線、100 モータ制御装置、110 故障診断部、111 電流制御部、112 q軸電流決定部、113 d軸電流決定部、114 出力電流制御部、115 故障検知部   DESCRIPTION OF SYMBOLS 1 Motor control system, 20 Motor, 21 Electric wire, 100 Motor control apparatus, 110 Failure diagnosis part, 111 Current control part, 112 q-axis current determination part, 113 d-axis current determination part, 114 Output current control part, 115 Failure detection part

Claims (6)

三相交流電流で駆動するモータであって前記三相交流電流が流れる3本の電線を備える前記モータを制御するモータ制御装置であって、
3本の前記電線に流す電流である目標電流の複数の電流パターンごとにq軸電流を決定し、決定した複数のq軸電流の絶対値のうち最も小さい値を絶対値とし極性が所定のタイミングで反転する診断用q軸電流を決定するq軸電流決定手段と、
前記診断用q軸電流、及び、前記診断用q軸電流に対応するd軸電流である診断用d軸電流に基づいて、前記電線に電流を出力する制御を行う出力電流制御手段と、
前記電線に流れた電流である実績電流に基づいて、前記モータの故障を検知する故障検知手段と、を備えることを特徴とするモータ制御装置。
A motor controller that controls a motor that is driven by a three-phase alternating current and includes three electric wires through which the three-phase alternating current flows.
A q-axis current is determined for each of a plurality of current patterns of a target current that is a current flowing through the three wires, and the smallest value among the determined absolute values of the q-axis currents is an absolute value, and the polarity is a predetermined timing. Q-axis current determining means for determining a diagnostic q-axis current that is reversed at
Output current control means for performing control to output a current to the electric wire based on the diagnostic q-axis current and a diagnostic d-axis current that is a d-axis current corresponding to the diagnostic q-axis current;
A motor control device comprising: failure detection means for detecting a failure of the motor based on an actual current that is a current flowing through the electric wire.
前記目標電流の電流値は一定であることを特徴とする請求項1に記載のモータ制御装置。   The motor control device according to claim 1, wherein a current value of the target current is constant. 前記故障検知手段は、前記モータ制御装置が起動したときに、前記モータの故障の検知を開始することを特徴とする請求項1又は2に記載のモータ制御装置。   The motor control device according to claim 1, wherein the failure detection unit starts detecting the failure of the motor when the motor control device is started. 複数の前記電流パターンのそれぞれは、前記目標電流の極性が互いに逆である2つの種別を持ち、
前記q軸電流決定手段は、前記診断用q軸電流を決定するごとに前記電流パターンの前記種別を交互に変えて、複数の前記電流パターンごとに前記電線に前記電流パターンの前記種別の前記目標電流が流れるようなq軸電流を決定し、決定した複数のq軸電流のうちで絶対値が最も小さいq軸電流を前記診断用q軸電流と決定することを特徴とする請求項1乃至3のいずれか1項に記載のモータ制御装置。
Each of the plurality of current patterns has two types in which polarities of the target current are opposite to each other,
The q-axis current determining means alternately changes the type of the current pattern every time the diagnostic q-axis current is determined, and sets the target of the type of the current pattern to the wire for each of the plurality of current patterns. 4. A q-axis current that causes a current to flow is determined, and a q-axis current having the smallest absolute value among the determined q-axis currents is determined as the diagnostic q-axis current. The motor control device according to any one of the above.
前記q軸電流決定手段は、複数の前記電流パターンごとにq軸電流を決定し、決定した複数の前記電流パターンごとのq軸電流のうち、絶対値が最も小さいq軸電流を仮の診断用q軸電流とし、前記診断用q軸電流を決定するごとに極性が反転するように、前記仮の診断用q軸電流の極性を定めて前記診断用q軸電流と決定し、
前記仮の診断用q軸電流に対応するd軸電流を仮の診断用d軸電流としたとき、前記診断用d軸電流は、前記q軸電流決定手段が前記仮の診断用q軸電流の極性を反転させて前記診断用q軸電流を決定した場合、極性を反転させた前記仮の診断用d軸電流であり、前記q軸電流決定手段が前記仮の診断用q軸電流の極性を維持して前記診断用q軸電流を決定した場合、極性を維持した前記仮の診断用d軸電流であることを特徴とする請求項1乃至3のいずれか1項に記載のモータ制御装置。
The q-axis current determining means determines a q-axis current for each of the plurality of current patterns, and uses a q-axis current having the smallest absolute value among the determined q-axis currents of the plurality of current patterns for provisional diagnosis. q-axis current is determined and determined as the diagnostic q-axis current by determining the polarity of the temporary diagnostic q-axis current so that the polarity is reversed every time the diagnostic q-axis current is determined.
When the d-axis current corresponding to the temporary diagnostic q-axis current is a temporary diagnostic d-axis current, the diagnostic d-axis current is calculated by the q-axis current determination means by the temporary diagnostic q-axis current. When the diagnostic q-axis current is determined by reversing the polarity, the provisional diagnostic d-axis current is reversed in polarity, and the q-axis current determining means determines the polarity of the temporary diagnostic q-axis current. 4. The motor control device according to claim 1, wherein when the diagnostic q-axis current is determined while maintaining the polarity, the provisional diagnostic d-axis current is maintained in polarity. 5.
前記出力電流制御手段は、前記電線に出力する電流の制御として、過渡期間の電流の制御を行い、
前記過渡期間は、前記出力電流が、前記診断用q軸電流に対応する前記電流パターンの前記目標電流に所定の変化率で近づく期間を含む期間であることを特徴とする請求項1乃至5のいずれか1項に記載のモータ制御装置。
The output current control means, as a control of the current output to the electric wire, to control the current during the transient period,
6. The transient period is a period including a period in which the output current approaches the target current of the current pattern corresponding to the diagnostic q-axis current at a predetermined rate of change. The motor control device according to any one of claims.
JP2016101759A 2016-05-20 2016-05-20 Motor control device Active JP6610427B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016101759A JP6610427B2 (en) 2016-05-20 2016-05-20 Motor control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016101759A JP6610427B2 (en) 2016-05-20 2016-05-20 Motor control device

Publications (2)

Publication Number Publication Date
JP2017208989A JP2017208989A (en) 2017-11-24
JP6610427B2 true JP6610427B2 (en) 2019-11-27

Family

ID=60415120

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016101759A Active JP6610427B2 (en) 2016-05-20 2016-05-20 Motor control device

Country Status (1)

Country Link
JP (1) JP6610427B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6822747B2 (en) * 2017-10-30 2021-01-27 株式会社大一商会 Game machine
CN108757418B (en) * 2018-05-30 2019-11-12 中车株洲电力机车有限公司 Piston type air compressor fault early warning method, piston type air compressor and track train
JP2021129364A (en) * 2020-02-12 2021-09-02 オークマ株式会社 Motor control device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2929344B2 (en) * 1993-03-17 1999-08-03 株式会社日立製作所 Method and apparatus for measuring motor constants
JP5473491B2 (en) * 2009-08-31 2014-04-16 東芝エレベータ株式会社 Elevator control device
WO2012063541A1 (en) * 2010-11-09 2012-05-18 日本精工株式会社 Power supply status diagnostic method and device
JP5910460B2 (en) * 2012-10-26 2016-04-27 株式会社デンソー Disconnection detector
JP5988857B2 (en) * 2012-12-14 2016-09-07 Thk株式会社 Motor control device and phase loss detection method

Also Published As

Publication number Publication date
JP2017208989A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
US10097129B2 (en) Drive controller and drive control method for electric motor
JP5652434B2 (en) Motor control device and electric power steering device using the same
JP4455248B2 (en) Vector control device for induction motor
JP4879649B2 (en) Electric motor control device
EP2995531B1 (en) Electric power steering control device and steering control method
JP2010011709A (en) Motor control device and vehicle-steering device comprising the same
JP2009183063A (en) Motor controller and vehicular steering system
JP6610427B2 (en) Motor control device
JP5267848B2 (en) Motor control device
JP2007259551A (en) Controller of motor
JP5252190B2 (en) Motor control device
JP4522273B2 (en) Motor control device and motor drive system having the same
JP4110865B2 (en) Control system for permanent magnet motor
EP2752986A1 (en) Inverter device
JPWO2011142032A1 (en) Brushless motor drive device
WO2020032084A1 (en) Motor drive device, electric oil pump, and method for detecting failure of motor drive device
JP2006184160A (en) Current detection apparatus for three-phase a.c. motor with failure detection function
JP2010029029A (en) Motor control device
JP6394885B2 (en) Electric power steering device
JP4703204B2 (en) Synchronous machine drive control device
US11843342B2 (en) Motor drive control device and motor drive control method
JP5862499B2 (en) Motor control device
JP2003348884A (en) Current detector and controller using the same
JP2021044938A (en) Motor control device and control method thereof
JP6123182B2 (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: 20181130

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20191001

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190927

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191014

R151 Written notification of patent or utility model registration

Ref document number: 6610427

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151