WO2016181851A1 - インバータ制御装置 - Google Patents

インバータ制御装置 Download PDF

Info

Publication number
WO2016181851A1
WO2016181851A1 PCT/JP2016/063306 JP2016063306W WO2016181851A1 WO 2016181851 A1 WO2016181851 A1 WO 2016181851A1 JP 2016063306 W JP2016063306 W JP 2016063306W WO 2016181851 A1 WO2016181851 A1 WO 2016181851A1
Authority
WO
WIPO (PCT)
Prior art keywords
gain
current
phase
value
period
Prior art date
Application number
PCT/JP2016/063306
Other languages
English (en)
French (fr)
Inventor
浩志 田村
山田 博之
重幸 野々村
大和 松井
Original Assignee
日立オートモティブシステムズ株式会社
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 日立オートモティブシステムズ株式会社 filed Critical 日立オートモティブシステムズ株式会社
Priority to US15/571,881 priority Critical patent/US10355630B2/en
Priority to CN201680027386.2A priority patent/CN107534406B/zh
Priority to EP16792576.7A priority patent/EP3297154B8/en
Publication of WO2016181851A1 publication Critical patent/WO2016181851A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/22Current control, e.g. using a current control loop
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/10Arrangements for controlling torque ripple, e.g. providing reduced torque ripple
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/28Arrangements for controlling current
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62DMOTOR VEHICLES; TRAILERS
    • B62D5/00Power-assisted or power-driven steering
    • B62D5/04Power-assisted or power-driven steering electrical, e.g. using an electric servo-motor connected to, or forming part of, the steering gear
    • B62D5/0457Power-assisted or power-driven steering electrical, e.g. using an electric servo-motor connected to, or forming part of, the steering gear characterised by control features of the drive means as such
    • B62D5/046Controlling the motor

Definitions

  • the present invention relates to an in-vehicle inverter control device, and more particularly to a method for correcting a detection gain of a motor current.
  • Patent Document 1 JP-A-2004-120814
  • an inverter that controls an electric motor
  • current detection means that detects a plurality of phases of current that are controlled by the inverter and flow through the motor winding
  • an excitation current component based on the current detected by the current detection means.
  • Current calculation means for obtaining at least one of a d-axis current and a q-axis current which is a torque current component, and a real axis of a secondary frequency when viewed in electrical angular frequency from at least one of the d-axis current and the q-axis current
  • a detection gain between a plurality of phases of the current detection means is corrected from a frequency component calculation means for calculating a component or an imaginary axis component and a real axis component or an imaginary axis component of at least one of the secondary frequencies of the d-axis current and the q-axis current It is described. As a result, variations in detection gain among a plurality of phases can be corrected, so that torque ripple of the motor can be reduced.
  • Patent Document 1 uses an electrical angular frequency from at least one of the d-axis current and the q-axis current by using a phase difference between a motor current and a voltage when correcting a variation in detection gain among a plurality of phases. It is necessary to calculate the real axis component or the imaginary axis component of the secondary frequency when viewed.
  • Patent Document 1 does not describe a specific method for acquiring the phase difference.
  • the addition of the voltage sensor for detecting the voltage of a motor may be needed, for example.
  • a memory for storing the value of the real axis component or the imaginary axis component in advance according to the phase difference between the voltage and current of the motor may be added.
  • an object of the present invention is to correct the gain variation of the current sensor without increasing the size and cost of the inverter control device.
  • An inverter control device is an inverter control device that controls an output current to a three-phase AC motor, and a three-phase / dq-axis conversion unit that converts the output current detected by a current sensor into a dq-axis current. And a gain adjustment unit that adjusts the detection gain of the current sensor for each phase, and when the current value of the second harmonic component included in the dq-axis current is equal to or greater than a predetermined threshold, The gain adjusting unit adjusts the detection gain so that a current value of the second harmonic component is lower than the threshold value, and corrects variation in gain of the current sensor.
  • the inverter control device can correct variations in the gain of the current sensor without increasing the size and cost of the device.
  • FIG. It is a figure explaining the vehicle system concerning Example 1.
  • FIG. It is a figure explaining the process sequence of the detection electric current conversion part. It is a figure explaining the process sequence of the 3 phase / dq axis
  • FIG. It is a figure explaining the process sequence of the harmonic extraction part.
  • FIG. 9 is a diagram illustrating a processing procedure of the gain adjustment direction search unit 240 when the adjustment state determination flag Flst does not indicate 1 (search) in step f-7 of FIG.
  • FIG. 6 is a diagram for explaining a processing procedure of a gain adjustment unit 250.
  • FIG. It is a figure explaining the process sequence of the PWM signal generation part. It is a figure explaining the vehicle system concerning Example 2.
  • FIG. 10 is a diagram for explaining a processing procedure of a gain correction function start / stop unit 270 according to the second embodiment.
  • FIG. 10 is a diagram illustrating a processing procedure of a gain adjustment state determination unit 230 according to the second embodiment.
  • FIG. 10 is a diagram illustrating a processing procedure of a gain adjustment direction searching unit 240 according to the second embodiment.
  • FIG. 19 is a diagram illustrating a processing procedure of the gain adjustment direction search unit 240 when the adjustment state determination flag Flst does not indicate 1 (search) in step m-9 shown in FIG.
  • FIG. 10 is a diagram illustrating a processing procedure of a gain adjustment unit 250 according to the second embodiment.
  • FIG. 10 is a diagram for explaining a processing procedure of a gain correction function start / stop unit 270 according to the second embodiment.
  • FIG. 10 is a diagram illustrating a processing procedure of a gain adjustment state determination unit 230 according to the second embodiment.
  • FIG. 10 is a diagram illustrating a processing procedure of a
  • FIG. 21 is a diagram illustrating a processing procedure of the gain adjustment unit 250 when the adjustment state determination flag Flst does not indicate 1 (search) in Step n-5 illustrated in FIG. 20.
  • FIG. 22 is a diagram illustrating a processing procedure of the gain adjustment unit 250 when the adjustment state determination flag Flst does not indicate 3 (continuation) in step n-23-13 illustrated in FIG. 21.
  • FIG. 10 is a diagram illustrating a processing procedure of a detected current conversion unit 170 according to the second embodiment.
  • FIG. 6 is a diagram illustrating a vehicle system according to a fourth embodiment.
  • FIG. 1 is a diagram for explaining the vehicle system according to the first embodiment.
  • the vehicle system according to the present embodiment includes a battery 10, a smoothing capacitor 20, an inverter 40, a U-phase current sensor 50, a V-phase current sensor 55, a motor 60, an angle sensor 70, and an output shaft of the motor 60. 80, transmission 90, crankshaft 100, engine 110, propeller shaft 120, differential gear 130, drive shaft 140, drive wheel 150, and inverter control device 160.
  • the battery 10 is connected in parallel to the DC side of the smoothing capacitor 20 and the inverter 40, and supplies a DC voltage to the inverter 40.
  • the U phase of inverter 40 is connected to U phase winding 61 of motor 60 via U phase current sensor 50.
  • the V phase of the inverter 40 is connected to the V phase winding 62 of the motor 60 via the V phase current sensor 55.
  • the W phase of inverter 40 is connected to W phase winding 63 of motor 60.
  • a configuration is described in which current sensors are attached to the U phase and the V phase, but a two-phase current detection system in which current sensors are attached to the U phase and the W phase, or the V phase and the W phase may be used.
  • the inverter 40 turns on or off the switching elements 41 to 46 of the upper and lower arms of each phase based on the PWM signals Sup, Sun, Svp, Svn, Swp, Swn generated by the inverter control device 160, and from the battery 10.
  • the supplied DC voltage is converted into a three-phase AC voltage having a variable voltage and a variable frequency.
  • the inverter 40 applies the converted three-phase AC voltage to the three-phase windings 61 to 63 wound around the stator of the motor 60, and applies to the three-phase windings 61 to 63 wound around the stator of the motor 60.
  • a three-phase alternating current is generated.
  • the motor 60 generates a rotating magnetic field by the three-phase alternating current flowing in the three-phase windings 61 to 63 wound around the stator, and generates the torque of the motor 60 by accelerating or decelerating the rotor 64 by the generated rotating magnetic field. To do.
  • the main circuit of the inverter 40 includes switching elements 41 to 46.
  • the switching elements 41 to 46 are configured by combining an insulated gate bipolar transistor (IGBT), a metal oxide field effect transistor (MOSFET) and the like with a diode.
  • IGBT insulated gate bipolar transistor
  • MOSFET metal oxide field effect transistor
  • the main circuit of the inverter 40 in which IGBTs and diodes are applied to the switching elements 41 to 46 will be described. Since the circuit configuration of the inverter 40 according to the present embodiment is known, detailed description thereof is omitted here.
  • the switching element 41 of the U-phase upper arm of the inverter 40 is turned on or off based on the PWM signal Sup generated by the inverter control device 160.
  • the switching elements 42, 43, 44, 45, and 46 are turned on or off based on the PWM signals Sun, Svp, Svn, Swp, and Swn, respectively.
  • the inverter control device 160 includes a detection current conversion unit 170, a three-phase / dq axis conversion unit 180, a voltage command calculation unit 190, a dq axis / three-phase conversion unit 200, a PWM signal generation unit 210, and harmonic extraction.
  • Unit 220 peak detection unit 225, gain adjustment state determination unit 230, gain adjustment direction search unit 240, and gain adjustment unit 250.
  • the inverter control device 160 includes a U-phase current iu1 detected by the U-phase current sensor 50, a V-phase current iv1 detected by the V-phase current sensor 55, and a U-phase detection gain Gcu adjusted by a gain adjustment unit 250 described later.
  • the V-phase detection gain Gcv is input to the detection current converter 170.
  • Inverter control device 160 corrects variation in gain Gsu of U-phase current sensor 50 and gain Gsv of V-phase current sensor 55, and newly calculates U-phase current iu2, V-phase current iv2, and W-phase current iw2.
  • the inverter control device 160 supplies the UVW phase currents iu2, iv2, and iw2 calculated by the detection current conversion unit 170 and the electrical angle ⁇ e of the rotor 64 of the motor 60 detected by the angle sensor 70 to the three-phase / dq axis conversion unit 180. Input, and calculate the d-axis current id and the q-axis current iq.
  • the inverter control device 160 inputs the q-axis current iq calculated by the three-phase / dq-axis conversion unit 180 and the electrical angle ⁇ e of the rotor 64 of the motor 60 detected by the angle sensor 70 to the harmonic extraction unit 220. , A harmonic current having a frequency twice the electrical angular frequency fe of the rotor 64 of the motor 60 included in the q-axis current iq (or d-axis current id) is calculated.
  • the inverter control device 160 inputs the q-axis harmonic current iqh (or d-axis harmonic current idh) calculated by the harmonic extraction unit 220 to the peak detection unit 225, and the q-axis harmonic current (or d-axis harmonic).
  • a positive peak value Pkp and a negative peak value Pkn of (current) are detected, and a peak detection flag Flpk that is turned on only when the positive and negative peak values Pkk, Pkn are detected is generated.
  • the inverter control device 160 inputs the positive and negative peak values Pkp and Pkn of the q-axis harmonic current (or d-axis harmonic current) generated by the peak detection unit 225 and the peak detection flag Flpk to the gain adjustment state determination unit 230, An adjustment state determination flag Flst for determining an adjustment state (search for adjustment direction, adjustment start, adjustment continuation, adjustment end, reset) of the U-phase detection gain Gcu and the V-phase detection gain Gcv is generated. Further, inverter control device 160 generates first count value Cnt1 that counts down only when peak detection flag Flpk is turned on while adjustment state determination flag Flst indicates search.
  • the inverter control device 160 generates positive and negative peak values Pkp and Pkn of the q-axis harmonic current (or d-axis harmonic current) generated by the peak detection unit 225, a peak detection flag Flpk, and a gain adjustment state determination unit 230.
  • the adjusted state determination flag Flst and the first count value Cnt1 are input to the gain adjustment direction search unit 240, and the U-phase detection gain Gcu and the V-phase detection gain Gcv are adjusted in the positive direction (whether to increase in the positive direction) Alternatively, an adjustment direction determination flag Flcmp for determining whether to increase in the negative direction) is generated.
  • the inverter control device 160 includes a peak detection flag Flpk generated by the peak detection unit 225, an adjustment state determination flag Flst generated by the gain adjustment state determination unit 230, and an adjustment direction determination flag generated by the gain adjustment direction search unit 240.
  • Flcmp is input to the gain adjustment unit 250, and the U-phase detection gain Gcu and the V-phase detection gain Gcv are adjusted so as to balance the variation in the gain Gsu of the U-phase current sensor 50 and the gain Gsv of the V-phase current sensor 55. To do.
  • the inverter control device 160 converts the d-axis current id and q-axis current iq calculated by the three-phase / dq-axis conversion unit 180, the d-axis current command id * and the q-axis current command iq * into a voltage command calculation unit. 190, and generates a d-axis voltage command vd * and a q-axis voltage command vq *.
  • the inverter control device 160 uses the d-axis voltage command vd * and the q-axis voltage command vq * generated by the voltage command calculation unit 190 and the electrical angle ⁇ e of the rotor of the motor 60 detected by the angle sensor 70 as dq axis / Input to the three-phase converter 200 to generate a U-phase voltage command vu *, a V-phase voltage command vv *, and a W-phase voltage command vw *.
  • the inverter control device 160 inputs the U-phase voltage command vu *, the V-phase voltage command vv *, and the W-phase voltage command vw * calculated by the dq axis / 3-phase conversion unit 200 to the PWM signal generation unit 210, and PWM signals Sup, Sun, Svp, Svn, Swp, and Swn are generated for controlling on and off of the IGBTs constituting the switching elements 41 to 46 of the upper and lower arms of each phase.
  • FIG. 2 is a diagram for explaining the processing procedure of the detected current converter 170.
  • the detected current conversion unit 170 acquires the U-phase current iu1 detected by the U-phase current sensor 50 and the V-phase current iv1 detected by the V-phase current sensor 55 in steps a-1 and a-2.
  • the detected current conversion unit 170 acquires a U-phase detection gain Gcu and a V-phase detection gain Gcv adjusted by a gain adjustment unit 250 described later.
  • the detected current conversion unit 170 substitutes the U-phase current iu1 acquired in step a-1 and the U-phase detection gain Gcu acquired in step a-3 into the equation (1).
  • the phase current iu2 is calculated.
  • the U-phase current iu1 obtained in step a-1 is expressed by equation (2) using the true U-phase current iut flowing in the U-phase winding 61 of the motor 60 and the gain Gsu of the U-phase current sensor 50. It is represented by
  • step a-6 the detection current converter 170 substitutes the V-phase current iv1 acquired in step a-2 and the V-phase detection gain Gcv acquired in step a-4 into the equation (4), and V The phase current iv2 is calculated.
  • V-phase current iv1 obtained in step a-2 is expressed by the following equation (5) using the true V-phase current ivt flowing in the V-phase winding 62 of the motor 60 and the gain Gsv of the V-phase current sensor 55. Defined in
  • V-phase current iv2 can be expressed by equation (6) by substituting equation (5) into equation (4).
  • step a-7 the detected current conversion unit 170 substitutes the U-phase current iu2 calculated in step a-5 and the V-phase current iv2 calculated in step a-6 into the equation (7), and the W phase The current iw2 is calculated.
  • the gain adjustment unit 250 performs the multiplication of the gain Gsu and the U-phase detection gain Gcu of the U-phase current sensor 50 shown in the equation (3), and the V value shown in the equation (6).
  • the values of the U-phase detection gain Gcu and the V-phase detection gain Gcv are adjusted so that the multiplication value of the gain Gsv of the phase current sensor 55 and the V-phase detection gain Gcv becomes equal. In this way, by adjusting the U-phase detection gain Gcu and the V-phase detection gain Gcv, it is possible to correct the gain variation of the UV-phase current sensors 50 and 55. (Description of processing contents of three-phase / dq axis conversion unit 180) FIG.
  • step b-3 is a diagram for explaining the processing procedure of the three-phase / dq axis conversion unit 180.
  • the three-phase / dq-axis conversion unit 180 acquires the U-phase current iu2, the V-phase current iv2, and the W-phase current iw2 calculated by the detection current conversion unit 170.
  • step b-4 the three-phase / dq-axis conversion unit 180 acquires the electrical angle ⁇ e of the rotor 64 of the motor 60 detected by the angle sensor 70.
  • step b-5 the three-phase / dq axis converter 180 converts the U-phase current iu2, the V-phase current iv2, the W-phase current iw2, and the rotor 64 of the motor 60 obtained in steps b-1 to b-4. Is substituted into the equation (8) to calculate the d-axis current id and the q-axis current iq.
  • FIG. 4 is a diagram for explaining the processing procedure of the harmonic extraction unit 220.
  • the harmonic extraction unit 220 acquires the q-axis current iq calculated by the three-phase / dq-axis conversion unit 180 in step c-1.
  • the harmonic extraction unit 220 acquires the electrical angle ⁇ e of the rotor 64 of the motor 60 detected by the angle sensor 70 in Step c-2.
  • the harmonic extraction unit 220 calculates the latest electrical angle ⁇ e acquired in step c-2 and the past electrical angle ⁇ eold calculated in step c-8, which will be described later, from Equation (9). And the difference value ⁇ e of the electrical angle between the latest electrical angle ⁇ e and the past electrical angle ⁇ eold is calculated.
  • the harmonic extraction unit 220 determines that the latest electrical angle ⁇ e and the past electrical angle ⁇ eold are (10) in step c-3. ) And recalculate the latest difference value ⁇ e of the electrical angle.
  • step c-4 the harmonic extraction unit 220 determines whether or not the latest electrical angle difference value ⁇ e calculated in step c-3 is equal to or greater than a predetermined value ⁇ x.
  • the predetermined value ⁇ x is predetermined by the equation (11).
  • step c-4 when the latest electrical angle difference value ⁇ e is equal to or larger than the predetermined value ⁇ x, the harmonic extraction unit 220 stores the q-axis stored in the microcomputer memory in step c-5. Data of the current interpolation values iqinter (0) to iqinter (N-1) is moved. Specifically, the q-axis current interpolation value iqinter (N-1) that is the second oldest data in the time series is overwritten on the q-axis current interpolation value iqinter (N) that is the oldest data in the past.
  • the q-axis current interpolation value iqinter (N-2) which is the third oldest data in the past is overwritten on the q-axis current interpolation value iqinter (N-1) which is the second oldest data in the past.
  • the q-axis current interpolation values iqinter (0) to iqinter (N-1) data are moved in chronological order from the oldest, and the latest data q-axis current interpolation value iqinter (0) is The process ends when the q-axis current interpolation value iqinter (1), which is the second newest data, is overwritten.
  • N is a value shown in the equation (12).
  • step c-6 the harmonic extraction unit 220 determines the latest q-axis current iq acquired in step c-1 and the latest electric angle difference value ⁇ e calculated in step c-3, as described later.
  • the difference value ⁇ old of the electrical angle one calculation cycle before calculated in step c-9, the q-axis current iqold one calculation cycle calculated in step c-10 described later, and the predetermined value ⁇ x are (13)
  • the interpolated value iqinter (0) of the q-axis current at the point changed by the predetermined value ⁇ x from the past electrical angle ⁇ old calculated in step c-8 described later is calculated.
  • step c-7 the harmonic extraction unit 220 obtains q-axis current interpolation values iqinter (0) to iqinter (N) for one cycle of the electrical angle ⁇ e of the rotor 64 of the motor 60 by using the equation (14). And q-axis harmonic current iqh having a frequency twice the electrical angular frequency fe of the rotor 64 of the motor 60 is calculated.
  • step c-8 the harmonic extraction unit 220 sets the latest electrical angle ⁇ e acquired in step c-2, the latest difference value ⁇ e calculated in step c-3, and the predetermined value ⁇ x to the equation (15).
  • the value of the past electrical angle ⁇ eold is updated by substituting.
  • the harmonic extraction unit 220 determines in step c-8 that the latest electrical angle acquired in step c-2. Substituting ⁇ e, the latest difference value ⁇ e calculated in step c-3 and the predetermined value ⁇ x into the equation (16), and recalculating the past electrical angle ⁇ eold.
  • step c-9 the harmonic extraction unit 220 sets the latest electrical angle difference value ⁇ e calculated in step c-3 as the electrical angle difference value ⁇ eold one calculation cycle before.
  • step c-10 the harmonic extraction unit 220 sets the q-axis current iq acquired in step c-1 as the q-axis current iqold one calculation cycle before.
  • step c-4 when the latest electrical angle difference value ⁇ e is not equal to or greater than the predetermined value ⁇ x, the harmonic extraction unit 220 performs the processes of steps c-9 and c-10 described above.
  • FIG. 5 shows the gain Gsu of the U-phase current sensor 50, the gain Gsv of the V-phase current sensor 55, the q-axis current iq calculated by the three-phase / dq axis conversion unit 180, and the electric power of the rotor 64 of the motor 60. It is a figure explaining each relationship between angle (theta) e and the q-axis harmonic current iqh extracted by the process of FIG. 4 mentioned above.
  • the q-axis current iq calculated by the three-phase / dq-axis conversion unit 180 has an electrical angle of the rotor 64 of the motor 60. It can be seen that a pulsation having a frequency twice as high as the frequency fe occurs. Further, it can be confirmed that the q-axis current harmonic iqh is updated when the electrical angle ⁇ e changes from the past electrical angle ⁇ eold by a predetermined value ⁇ x.
  • the electrical angular frequency fe1 of the rotor 64 of the motor 60 in the period A from time t1 to time t2 is set by the equation (17).
  • the electrical angular frequency fe2 of the rotor 64 of the motor 60 in the period B from time t2 to time t3 is set by the equation (19).
  • the electrical angular frequency fe3 of the rotor 64 of the motor 60 in the period C from time t3 to time t4 is set by the equation (21).
  • the time required for the electrical angle ⁇ e of the rotor 64 of the motor 60 to change from the past electrical angle ⁇ eold by the predetermined value ⁇ x is the shortest in the period B, and then the period A Is short and the period C is the longest. Accordingly, the time interval for updating the q-axis harmonic current iqh is the shortest in the period B, the shortest in the period A, and the longest in the period C.
  • FIG. 6 is a diagram for explaining the processing procedure of the peak detection unit 225 according to the first embodiment.
  • the peak detector 225 acquires the q-axis harmonic current iqh extracted by the harmonic extractor 220 in step d-1.
  • the peak detection unit 225 sets the peak detection flag Flpk to 0 (off) in step d-2.
  • step d-3 the peak detector 225 determines that the latest q-axis harmonic current iqh acquired in step d-1 is the first q-axis harmonic current calculated in step d-8 described later. It is determined whether or not it is smaller than the past value iqhold1.
  • step d-3 when the latest q-axis harmonic current iqh is smaller than the past value iqhold1 of the first q-axis harmonic current, the peak detector 225 determines that the first q-axis harmonic current iqh It is determined whether the past value iqhold1 of the q-axis harmonic current is larger than the past value iqhold2 of the second q-axis harmonic current calculated in step d-7 described later.
  • step d-4 if the past value iqhold1 of the first q-axis harmonic current is larger than the past value iqhold2 of the second q-axis harmonic current, the peak detector 225 The past value iqhold1 of the first q-axis harmonic current calculated in step d-8 described later is substituted into the equation (24) to calculate the positive peak value Pkp of the q-axis harmonic current.
  • the peak detection unit 225 sets the peak detection flag Flpk to 1 (on) in step d-6.
  • step d-7 the peak detector 225 sets the past value iqhold1 of the first q-axis harmonic current as the past value iqhold2 of the second q-axis harmonic current.
  • step d-8 the peak detection unit 225 sets the latest q-axis harmonic current iqh as the past value iqhold1 of the first q-axis harmonic current.
  • step d-3 if the latest q-axis harmonic current iqh is not smaller than the past value iqhold1 of the first q-axis harmonic current, the peak detection unit 225 It is determined whether or not the latest q-axis harmonic current iqh is larger than the past value iqhold1 of the first q-axis harmonic current.
  • step d-9 when the latest q-axis harmonic current iqh is larger than the past value iqhold1 of the first q-axis harmonic current, the peak detection unit 225 performs the first step in step d-10.
  • step d-10 if the past value iqhold1 of the first q-axis harmonic current is smaller than the past value iqhold2 of the second q-axis harmonic current, the peak detector 225 Then, the past value iqhold1 of the first q-axis harmonic current calculated in step d-8 is substituted into the equation (25) to calculate the negative peak value Pkp of the q-axis harmonic current.
  • the peak detection unit 225 performs the processes of steps d-6 to d-8 described above.
  • the peak detector 225 Steps d-7 and d-8 are performed.
  • step d-9 when the latest q-axis harmonic current iqh is not larger than the past value iqhold1 of the first q-axis harmonic current, the peak detection unit 225 performs nothing. Without restarting, the process restarts from step d-1 at the next calculation timing.
  • the past value iqhold1 of the first q-axis harmonic current becomes the latest q-axis harmonic current iqh and the second q-axis harmonic current iqh1.
  • the past value iqhold1 of the first q-axis harmonic current becomes the positive peak value Pkp of the q-axis harmonic current.
  • FIG. 7 is a diagram for explaining the processing procedure of the gain adjustment state determination unit 230 according to the first embodiment.
  • the gain adjustment state determination unit 230 acquires positive and negative peak values Pkp and Pkn of the q-axis harmonic current generated by the peak detection unit 225 in steps e-1 and e-2.
  • the gain adjustment state determination unit 230 acquires the peak detection flag Flpk generated by the peak detection unit 225 in step e-3.
  • step e-4 the gain adjustment state determination unit 230 determines whether or not the peak detection flag Flpk acquired in step e-3 is 1 (on).
  • step e-4 when the peak detection flag Flpk is on, the gain adjustment state determination unit 230, in step e-5, performs steps e-8, e-14, e-16, e- described later. It is determined whether or not the adjustment state determination flag Flst set at 20 or e-21 indicates 0 (end). If the adjustment state determination flag Flst indicates 0 (end) in step e-5, the gain adjustment state determination unit 230 determines that the q-axis harmonic acquired in step e-1 in step e-6.
  • the gain adjustment state determination unit 230 determines that the first peak value Pkp is greater than the first predetermined positive threshold Thp1.
  • a count value Cnt1 of 1 is set to a predetermined value X1.
  • the predetermined value X1 is set to a positive integer that is a multiple of two.
  • the gain adjustment state determination unit 230 sets the adjustment state determination flag Flst to 1 (search) in step e-8.
  • step e-6 when the positive peak value Pkp of the q-axis harmonic current is not larger than the first positive threshold Thp1 in step e-6, the gain adjustment state determination unit 230 determines in step e-9 that It is determined whether or not the negative peak value Pkn of the q-axis harmonic current acquired in step e-2 is smaller than the first negative threshold value Thn1.
  • step e-9 when the negative peak value Pkn of the q-axis harmonic current is smaller than the first negative threshold value Thn1, the gain adjustment direction determination unit 230 determines whether the above-described steps e-7 and e ⁇ Step 8 is performed.
  • step e-9 when the negative peak value Pkn of the q-axis harmonic current is not smaller than the first negative threshold value Thn1 in step e-9, the gain adjustment state determination unit 230 performs nothing. Without restarting, the process restarts from step e-1 at the next calculation timing.
  • step e-5 the gain adjustment state determination unit 230 determines that the adjustment state determination flag Flst is 4 ( It is determined whether or not (reset) is indicated.
  • step e-10 when the adjustment state determination flag Flst indicates 4 (reset), the gain adjustment state determination unit 230 proceeds to the process of step e-6 described above.
  • the gain adjustment state determination unit 230 determines that the adjustment state determination flag Flst is 1 (in step e-11). It is determined whether or not (search) is indicated.
  • step e-11 when the adjustment state determination flag Flst indicates 1 (search), the gain adjustment state determination unit 230 counts down the first count value Cnt1 in step e-12.
  • the gain adjustment state determination unit 230 determines whether or not the first count value Cnt1 is 0 in Step e-13.
  • the gain adjustment state determination unit 230 sets the adjustment state determination flag Flst to 2 (adjustment start) in step e-14. That is, the gain adjustment state determination unit 230 maintains the adjustment state determination flag at 1 (search) state until the first count value Cnt1 decreases from the predetermined value X1 to 0.
  • the gain adjustment state determination unit 230 performs no processing and performs step e-1 at the next calculation timing. Restart from processing.
  • the gain adjustment state determination unit 230 determines that the positive peak of the q-axis harmonic current is in step e-15. It is determined whether or not the value Pkp is greater than the second positive threshold Thp2. When the positive peak value Pkp of the q-axis harmonic current is larger than the second positive threshold Thp2, the gain adjustment state determination unit 230 sets the adjustment state determination flag Flst to 4 (reset) in step e-16. ).
  • step e-15 if the positive peak value Pkp of the q-axis harmonic current is not larger than the second positive threshold Thp2, the gain adjustment state determination unit 230 determines in step e-17 that It is determined whether or not the negative peak value Pkn of the q-axis harmonic current is smaller than the second negative threshold value Thn2.
  • step e-17 when the negative peak value Pkn of the q-axis harmonic current is smaller than the second predetermined negative threshold value Thn2, the gain adjustment state determination unit 230 performs the above-described step e-16. Perform the process.
  • the gain adjustment state determination unit 230 determines in step e-18 that It is determined whether or not the positive peak value Pkp of the q-axis harmonic current is smaller than the third positive threshold Thp3.
  • the gain adjustment state determination unit 230 determines that the q-axis harmonic current is q-axis harmonic current in step e-19. It is determined whether or not the negative peak value Pkn of the wave current is larger than the third negative threshold value Thn3. In step e-19, when the negative peak value Pkn of the q-axis harmonic current is larger than the third negative threshold Thn3, the gain adjustment state determination unit 230 determines the adjustment state in step e-20. The flag Flst is set to 0 (end).
  • the gain adjustment state determination unit 230 determines in step e-21 that The adjustment state determination flag Flst is set to 3 (continuation).
  • the gain adjustment state determination unit 230 determines that the above-described step e-21 Perform the process. If the peak detection flag Flpk is not 1 (ON) in step e-4, the gain adjustment state determination unit 230 performs step e-1 at the next calculation timing without performing any processing. Restart from the process.
  • the magnitude relationship between the first to third positive threshold values described above is set as shown in equation (26).
  • step e-15 and step The adjustment failure is detected by e-17, and a signal for resetting the U-phase detection gain Gcu and the V-phase detection gain Gcv to the initial values can be generated by the process of step e-16.
  • the gain adjustment unit 250 can redo the adjustment of the U-phase detection gain Gcu and the V-phase detection gain Gcv.
  • FIG. 8 is a diagram for explaining the processing procedure of the gain adjustment direction search unit 240.
  • the gain adjustment direction searching unit 240 acquires positive and negative peak values Pkp and Pkn of the q-axis harmonic current calculated by the peak detection unit 225 in steps f-1 and f-2, respectively.
  • the gain adjustment direction search unit 240 acquires the peak detection flag Flpk generated by the peak detection unit 225 in step f-3.
  • the gain adjustment direction search unit 240 acquires the adjustment state determination flag Flst and the first count value Cnt1 generated by the gain adjustment state determination unit 230 in steps f-4 and f-5.
  • step f-6 the gain adjustment direction searching unit 240 determines whether or not the peak detection flag Flpk acquired in step f-3 is 1 (on). If the peak detection flag Flpk is 1 (on) in step f-6, the gain adjustment direction search unit 240 determines that the adjustment state determination flag Flst acquired in step f-4 is It is determined whether 1 (search) is indicated. If the adjustment state determination flag Flst indicates 1 (search) in step f-7, the gain adjustment direction search unit 240 uses the first count acquired in step f-5 in step f-8. It is determined whether the value Cnt1 is equal to the predetermined value X1.
  • the gain adjustment direction search unit 240 sets the adjustment direction determination flag Flcmp to 0 (U-phase detection gain Gcu) in step f-9. Is increased in the positive direction, and the V-phase detection gain Gcv is set to a signal that increases in the negative direction.
  • the gain adjustment direction search unit 240 integrates the first positive peak value integrated value Pkps1 obtained by integrating the positive peak values of the q-axis harmonic current, and the q-axis harmonics.
  • the integrated value Pkns2 of the second negative peak value obtained by integrating the negative peak value of the axial harmonic current is reset to zero.
  • the gain adjustment direction search unit 240 determines that the first count value Cnt1 is (X1 / It is determined whether it is equal to 2).
  • the gain adjustment direction searching unit 240 determines the first positive peak value calculated at the previous time at step f-15.
  • the positive peak value Pkp of the q-axis harmonic current obtained in step f-1 is added to the integrated value Pkps1, and the latest integrated value Pkps1 of the first positive peak value is calculated.
  • the gain adjustment direction search unit 240 adds the negative peak value of the q-axis harmonic current obtained in step f-2 to the integrated value Pkns1 of the first negative peak value calculated in the previous time. Pkn is added to calculate the integrated value Pkn1 of the latest first negative peak value.
  • step f-17 the gain adjustment direction searching unit 240 divides the integrated value Pkps1 of the latest first positive peak value calculated in step f-15 by (X1 / 2) to obtain the first An average value Pkpa1 of positive peak values is calculated.
  • step f-18 the gain adjustment direction search unit 240 divides the integrated value Pkns1 of the latest first negative peak value calculated in step f-16 by (X1 / 2) to obtain the first An average value Pkna1 of the negative peak values is calculated.
  • step f-19 the gain adjustment direction search unit 240 calculates the first negative peak calculated in step f-18 from the average value Pkpa1 of the first positive peak value calculated in step f-17.
  • the average value Pkna1 of the first peak value is calculated by subtracting the average value Pkna1 of the values.
  • the gain adjustment direction search unit 240 sets the adjustment direction determination flag Flcmp to 1 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the V-phase detection gain Gcv in the positive direction). Set to.
  • step f-14 if the first count value Cnt1 is not equal to (X1 / 2), the gain adjustment direction search unit 240 determines that the first count value Cnt1 is It is determined whether it is larger than (X1 / 2).
  • the gain adjustment direction searching unit 240 determines the first positive peak value calculated last time at step f-22. Is added to the positive peak value Pkp of the q-axis harmonic current acquired in step f-1 to calculate the integrated value Pkps1 of the latest first positive peak value.
  • the gain adjustment direction searching unit 240 adds the negative peak value of the q-axis harmonic current acquired in step f-2 to the integrated value Pkns1 of the first negative peak value calculated in the previous time. Pkn is added to calculate the integrated value Pkn1 of the latest first negative peak value.
  • the gain adjustment direction searching unit 240 determines the second positive value calculated at the previous time at step f-24.
  • the positive peak value Pkp of the q-axis harmonic current acquired in step f-1 is added to the integrated value Pkps2 of the current peak value to calculate the latest integrated value Pkps2 of the second positive peak value.
  • the gain adjustment direction searching unit 240 adds the negative peak value of the q-axis harmonic current acquired in step f-2 to the integrated value Pkns2 of the second negative peak value calculated in the previous time. Pkn is added to calculate the integrated value Pkns2 of the latest second negative peak value.
  • step f-7 If the adjustment state determination flag Flst does not indicate 1 (search) in step f-7, the gain adjustment direction search unit 240 performs the processing of FIG. 9 described later in step f-26-1. Transition. In step f-6, if the peak detection flag Flpk is not 1 (on), the gain adjustment direction search unit 240 does not perform any processing and performs step f-1 at the next calculation timing. Restart from the process.
  • FIG. 9 is a diagram illustrating the processing procedure of the gain adjustment direction search unit 240 when the adjustment state determination flag Flst does not indicate 1 (search) in step f-7 in FIG.
  • the gain adjustment direction search unit 240 determines whether or not the adjustment state determination flag Flst indicates 2 (start) in step f-26-2.
  • step f-26-2 the gain adjustment direction search unit 240 determines that the second positive value calculated in step f26-3 is the previous value. 8 is added to the positive peak value Pkp of the q-axis harmonic current obtained in step f-1 in FIG. 8 to calculate the integrated value Pkps2 of the latest second positive peak value. .
  • step f-26-4 the gain adjustment direction search unit 240 adds the q-axis harmonic current acquired in step f-2 in FIG. 8 to the integrated value Pkns2 of the second negative peak value calculated in the previous time. Negative peak value Pkn is added to calculate the latest integrated value Pkn2 of the second negative peak value.
  • step f-26-5 the gain adjustment direction searching unit 240 divides the integrated value Pkps2 of the latest second positive peak value calculated in step f-26-3 by (X1 / 2). The average value Pkpa2 of the second positive peak value is calculated.
  • step f-26-6 the gain adjustment direction searching unit 240 divides the integrated value Pkns2 of the latest second negative peak value calculated in step f-26-4 by (X1 / 2). The average value Pkna2 of the second negative peak value is calculated.
  • the gain adjustment direction searching unit 240 calculates in step f-26-6 from the average value Pkpa2 of the second positive peak value calculated in step f-26-5 in step f-26-7.
  • the average value Pkna2 of the second negative peak value is subtracted to calculate the average value Pkda2 of the second peak peak value.
  • the gain adjustment direction search unit 240 determines whether or not the average value Pkda1 of the first peak peak value is smaller than the average value Pkda2 of the second peak peak value. .
  • the gain adjustment direction search unit 240 determines whether the average value Pkda2 of the second peak peak value is step f-26- 9, the adjustment direction determination flag Flcmp is set to 0 (a signal for increasing the U-phase detection gain Gcu in the positive direction and increasing the V-phase detection gain Gcv in the negative direction).
  • the gain adjustment direction search unit 240 At -26-10, the adjustment direction determination flag Flcmp is set to 1 (a signal for increasing the U-phase detection gain Gcu in the negative direction and increasing the V-phase detection gain Gcv in the positive direction).
  • step f-26-2 when the adjustment state determination flag Flst does not indicate 2 (start), the gain adjustment direction search unit 240 performs the next calculation timing without performing any processing. Then, the process restarts from the process of step f-1 in FIG.
  • the adjustment state determination flag Flst is based on the magnitude relationship between the average value Pkda1 of the first peak peak value and the average value Pkda2 of the second peak peak value calculated during the period in which 1 (search) is indicated. Then, by determining the final adjustment direction determination flag Flcmp, the gain adjustment unit 250 described later sets the U-phase detection gain Gcu and the V-phase detection gain Gcv so that the peak peak value of the q-axis current harmonic becomes small. Can be adjusted.
  • the q-axis The adjustment direction determination flag Flcmp can be accurately determined so that the peak peak value of the current harmonic becomes small.
  • a method has been described in which both the U-phase detection gain Gcu and the V-phase detection gain Gcv are adjusted.
  • the U-phase detection gain Gcu may be used as a reference gain, and only the V-phase detection gain Gcv may be adjusted. There is no problem even if only the U-phase detection gain Gcu is adjusted using the V-phase detection gain Gcv as a reference gain.
  • FIG. 10 is a diagram for explaining the processing procedure of the gain adjustment unit 250.
  • the gain adjustment unit 250 acquires the peak detection flag Flpk generated by the peak detection unit 225 in step g-1.
  • the gain adjustment unit 250 acquires the adjustment state determination flag Flst generated by the gain adjustment state determination unit 230 in Step g-2.
  • the gain adjustment unit 250 acquires the adjustment direction determination flag Flcmp generated by the gain adjustment direction search unit 240 in Step g-3.
  • step g-4 the gain adjustment unit 250 determines whether or not the peak detection flag Flpk acquired in step g-1 is 1 (ON).
  • the gain adjustment unit 250 sets the adjustment state determination flag Flst acquired in step g-2 to 1 (on) in step g-5. It is determined whether or not (search) is indicated. If the adjustment state determination flag Flst indicates 1 (search) in step g-5, the gain adjustment unit 250 sets the adjustment direction determination flag Flcmp to 0 (U-phase detection gain Gcu in step g-6). Is increased in the positive direction and the V-phase detection gain Gcv is increased in the negative direction).
  • step g-6 If the adjustment direction determination flag Flcmp is 0 (a signal that increases the U-phase detection gain Gcu in the positive direction and increases the V-phase detection gain Gcv in the negative direction) in step g-6, the gain adjustment unit 250 In step g-7, the predetermined value X2 is added to the past value Gcool of the U-phase detection gain to increase the U-phase detection gain Gcu in the positive direction. Next, in step g-8, the gain adjustment unit 250 subtracts the predetermined value X2 from the past value Gcvold of the V-phase detection gain, and increases the V-phase detection gain Gcv in the negative direction.
  • step g-6 the gain adjustment is performed.
  • the unit 250 subtracts the predetermined value X2 from the past value Gcool of the U-phase detection gain, and increases the U-phase detection gain Gcu in the negative direction.
  • step g-10 the gain adjustment unit 250 adds the predetermined value X2 to the past value Gcvold of the V-phase detection gain, and increases the V-phase detection gain Gcv in the positive direction.
  • the gain adjustment unit 250 determines whether or not. If the adjustment state determination flag Flst indicates 2 (start) in step g-11, the gain adjustment unit 250 uses the U-phase detection gain as the U-phase detection gain past value Gcoold in step g-12. Set as Gcu. Next, in step g-13, the gain adjustment unit 250 sets the past value Gcvold of the V-phase detection gain as the V-phase detection gain Gcv.
  • the gain adjustment unit 250 determines that the adjustment state determination flag Flst is 3 (continuation) in step g-14. Is determined. If the adjustment state determination flag Flst indicates 3 (continuation) at step g-14, the gain adjustment unit 250 determines that the adjustment direction determination flag Flcmp is 0 (U-phase detection gain) at step g-15. It is determined whether or not the signal is a signal that increases Gcu in the positive direction and increases the V-phase detection gain Gcv in the negative direction.
  • step g-15 If the adjustment direction determination flag Flcmp is 0 (a signal that increases the U-phase detection gain Gcu in the positive direction and increases the V-phase detection gain Gcv in the negative direction) at step g-15, the gain adjustment unit 250 In step g-16, the predetermined value X3 is added to the previously calculated U-phase detection gain Gcu to calculate the latest U-phase detection gain Gcu. Next, in step g-17, the gain adjustment unit 250 subtracts the predetermined value X3 from the previously calculated V-phase detection gain Gcv to calculate the latest V-phase detection gain Gcv.
  • step g-15 the gain adjustment is performed.
  • unit 250 subtracts predetermined value X3 from previously calculated U-phase detection gain Gcu to calculate the latest U-phase detection gain Gcu.
  • step g-19 the gain adjustment unit 250 adds the predetermined value X3 to the previously calculated V-phase detection gain Gcv to calculate the latest V-phase detection gain Gcv.
  • the gain adjustment unit 250 determines that the adjustment state determination flag Flst is 4 (reset) in step g-20. It is determined whether or not. If the adjustment state determination flag Flst is 4 (reset) in step g-20, the gain adjustment unit 250 sets the U-phase detection gain Gcu to 1 (initial value) in step g-21. Next, gain adjusting section 250 sets V-phase detection gain Gcv to 1 (initial value) in step g-22. Next, in step g-23, the gain adjustment unit 250 sets the U-phase detection gain Gcu set in step g-21 as the past value Gcool of the U-phase detection gain. Next, in step g-24, the gain adjustment unit 250 sets the V-phase detection gain Gcv set in step g-22 as the past value Gcvold of the V-phase detection gain.
  • step g-20 when the adjustment state determination flag Flst does not indicate 4 (reset), the gain adjustment unit 250 performs the processes of steps g-23 and g-24 described above. If the peak detection flag Flpk is not 1 (on) in step g-4, the gain adjustment unit 250 performs the processing in step g-1 at the next calculation timing without performing any processing. Restart from.
  • the U-phase detection gain Gcu and the V-phase detection gain Gcv are adjusted when the electrical angle ⁇ e of the rotor 64 of the motor 60 changes by ⁇ / 2.
  • a method has been described in which both the U-phase detection gain Gcu and the V-phase detection gain Gcv are adjusted.
  • the U-phase detection gain Gcu may be used as a reference gain, and only the V-phase detection gain Gcv may be adjusted.
  • FIG. 11 shows the gain Gsu of the U-phase current sensor 50, the gain Gsv of the V-phase current sensor 55, the q-axis harmonic current iqh, the peak detection flag Flpk, the adjustment state determination flag Flst, and the adjustment direction determination flag Flcmp.
  • FIG. 6 is a diagram illustrating a relationship between a first count value Cnt1 and a U-phase detection gain Gcu and a V-phase detection gain Gcv adjusted by the above-described procedure.
  • the gain Gsu of the U-phase current sensor 50 is smaller than the gain Gsv of the V-phase current sensor 55, and the gain Gsu of the U-phase current sensor 60 and the gain Gsv of the V-phase current sensor 55 from time t5. It is set to correct the variation.
  • the adjustment state determination flag Flst is changed from 0 (end) to 1 immediately after time t5.
  • the adjustment state determination flag Flst is switched from 0 (end) to 1 (search)
  • the first count value Cnt1 starts counting down from the predetermined value X1.
  • the adjustment direction determination flag Flcmp is 0 (the U-phase detection gain Gcu is increased in the positive direction and the V-phase detection gain Gcv is negative). 1 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the V-phase detection gain Gcv in the positive direction).
  • the U-phase detection gain Gcu is increased by a predetermined value X2 from 1 (initial value) in the positive direction
  • the detection gain Gcv is increased by a predetermined value X2 in the negative direction from 1 (initial value).
  • the U-phase detection gain Gcu increases from 1 (initial value) in the positive direction by a predetermined value X2
  • the V-phase detection gain Gcv increases from 1 (initial value) in the negative direction by a predetermined value X2.
  • the U-phase detection gain Gcu is increased by a predetermined value X2 from 1 (initial value) in the negative direction
  • the detection gain Gcv is increased by a predetermined value X2 in the positive direction from 1 (initial value).
  • the U-phase detection gain Gcu increases from 1 (initial value) in a negative direction by a predetermined value X2
  • the V-phase detection gain Gcv increases from 1 (initial value) in a positive direction by a predetermined value X2.
  • the adjustment direction determination flag Flcmp is 1 (the U-phase detection gain Gcu is negative).
  • the signal increases in the direction and increases the V-phase detection gain Gcv in the positive direction) to 0 (a signal that increases the U-phase detection gain Gcu in the positive direction and increases the V-phase detection gain Gcv in the negative direction).
  • the adjustment direction determination flag Flcmp increases from 1 (a signal for increasing the U-phase detection gain Gcu in the negative direction and the V-phase detection gain Gcv in the positive direction) to 0 (the U-phase detection gain Gcu in the positive direction).
  • the adjustment state determination flag Flst switches from 2 (start) to 3 (continuation).
  • the adjustment state determination flag Flst is 3 (continuation) and the adjustment direction determination flag Flcmp is 0, the U-phase detection gain Gcu is gradually increased in increments of a predetermined value X3 in the positive direction, and the V-phase detection gain Gcv is gradually increased in increments of a predetermined value X3 in the negative direction.
  • the positive and negative peak values Pkp and Pkn of the q-axis harmonic current iqh fall within the range of the third positive and negative thresholds Thp3 and Thn3.
  • the multiplication value of the gain Gsu and the U-phase detection gain Gcu of the U-phase current sensor 50 and the gain Gsv of the V-phase current sensor 55 are obtained.
  • the multiplication value with the V-phase detection gain Gcv can be substantially matched. That is, it is possible to correct variations in the gain Gsv of the U-phase current sensor 50 and the gain Gsv of the V-phase current sensor 55.
  • FIG. 12 is a diagram illustrating the processing procedure of the voltage command calculation unit 190 according to the first embodiment.
  • the voltage command calculation unit 190 acquires the d-axis current command id * and the q-axis current command iq * in steps h-1 and h-2.
  • the voltage command calculation unit 190 acquires the d-axis current id and the q-axis current iq calculated by the three-phase / dq axis conversion unit 180 in steps h-3 and h-4.
  • step h-5 the voltage command calculation unit 190 substitutes the d-axis current command id * acquired in step h-1 and the d-axis current id acquired in step h-3 into the equation (28), A deviation ⁇ id between the d-axis current command id * and the d-axis current id is calculated.
  • step h-6 the voltage command calculation unit 190 calculates the d-axis voltage command vd * by substituting the d-axis current deviation ⁇ id calculated in step h-5 into the equation (29).
  • the values of the d-axis proportional gain Kpd and the d-axis integral gain Kid are stored in advance in the memory of the microcomputer.
  • step h-7 the voltage command calculation unit 190 substitutes the q-axis current command iq * acquired in step h-2 and the q-axis current iq acquired in step h-4 into the equation (30), A deviation ⁇ iq between the q-axis current command iq * and the q-axis current iq is calculated.
  • step h-8 the voltage command calculation unit 190 calculates the q-axis voltage command vq * by substituting the q-axis current deviation ⁇ iq calculated in step h-7 into the equation (31).
  • the values of the q-axis proportional gain Kpq and the q-axis integral gain Kiq are stored in advance in the memory of the microcomputer.
  • FIG. 13 is a diagram for explaining the processing procedure of the dq-axis / three-phase conversion unit 200.
  • the dq-axis / three-phase conversion unit 200 acquires the d-axis voltage command vd * and the q-axis voltage command vq * calculated by the voltage command calculation unit 190 in steps i-1 and i-2, respectively.
  • the dq axis / three-phase conversion unit 200 acquires the electrical angle ⁇ e of the rotor 64 of the motor 60 detected by the angle sensor 70.
  • step i-4 the dq-axis / three-phase converter 200 converts the d-axis voltage command vd *, the q-axis voltage command vq * acquired in steps i-1 to i-3, and the rotor 64 of the motor 60. Is substituted into the equation (32) to calculate a U-phase voltage command vu *, a V-phase voltage command vv *, and a W-phase voltage command vw *.
  • FIG. 14 is a diagram for explaining the processing procedure of the PWM signal generation unit 210.
  • the PWM signal generation unit 210 performs a U-phase voltage command vu *, a V-phase voltage command vv *, and a W-phase voltage command vw * calculated by the dq axis / 3-phase conversion unit 200. Get each.
  • the PWM signal generation unit 210 determines whether or not the U-phase voltage command vu * acquired in step j-1 is equal to or greater than the value of the carrier wave (not shown).
  • the PWM signal generator 210 sets the PWM signal Sun to OFF in step j-5, and then step j- 6, the PWM signal Sup is set to ON.
  • the PWM signal generation unit 210 determines whether or not the V-phase voltage command vv * acquired in Step j-2 is equal to or greater than the value of the carrier wave.
  • step j-7 If the V-phase voltage command vv * is equal to or greater than the value of the carrier wave in step j-7, the PWM signal generator 210 sets the PWM signal Svn to OFF in step j-8, and then step j- At 9, the PWM signal Svp is set to ON. Next, in step j-10, the PWM signal generation unit 210 determines whether or not the W-phase voltage command vw * acquired in step j-3 is equal to or greater than the value of the carrier wave.
  • the PWM signal generator 210 sets the PWM signal Swn to OFF in step j-11, and then step j- At 12, the PWM signal Swp is set to ON.
  • the PWM signal generator 210 sets the PWM signal Swp to OFF in step j-13, At j-14, the PWM signal Swn is set to ON.
  • the PWM signal generator 210 sets the PWM signal Svp to OFF in step j-15, At j-16, the PWM signal Svn is set to ON.
  • the PWM signal generator 210 sets the PWM signal Sup to OFF in step j-17, At j-18, the PWM signal Sun is set to ON.
  • the average value of the UVW phase voltage output from the inverter 40 matches the UVW phase voltage commands vu *, vv *, vw *. Can be controlled.
  • a PWM signal generation method is generally known as a triangular wave comparison method.
  • the PWM signal generation method is not limited to the triangular wave comparison method, and there is no problem using a space vector modulation method or the like.
  • FIG. 15 is a diagram for explaining the vehicle system according to the second embodiment.
  • the gain imbalance between the two current sensors is corrected in the two-phase current detection system in which current sensors are attached to the U phase and the V phase, or the U phase and the W phase, or the V phase and the W phase. It is a method to do.
  • the present embodiment is a method of correcting the gain imbalance of three current sensors in a three-phase current detection system in which current sensors are attached to all UVW phases. Since the configuration of the inverter control device 160 excluding the gain correction function mounting unit 260 and the gain correction function start / stop unit 270 is the same as that of the first embodiment, the description thereof is omitted.
  • the gain correction function mounting unit 260 includes a detection current conversion unit 170, a gain adjustment state determination unit 230, a gain adjustment direction search unit 240, and a gain adjustment unit 250.
  • the gain correction function mounting unit 260 based on a correction function start / stop flag Flss generated by a gain correction function start / stop unit 270 described later, gain Gsu of the U-phase current sensor 50, gain Gsv of the V-phase current sensor 55, and W phase. Correction of variation in the gain Gsw of the current sensor 58 is started or stopped.
  • the gain correction function start / stop unit 270 follows the gain Gsu of the U phase current sensor 50, the gain Gsv of the V phase current sensor 55, and the W phase according to the gain correction function start / stop algorithm provided in the gain correction function start / stop unit 270.
  • the timing for correcting the variation in the gain Gsw of the current sensor 58 is determined.
  • FIG. 16 is a diagram for explaining the processing procedure of the gain correction function start / stop unit 270 according to the second embodiment.
  • the gain correction function start / stop unit 270 acquires a second count value Cnt2 generated by a gain adjustment state determination unit 230 described later in Step k-1.
  • the second count value Cnt2 is 0 when the correction of the variation in the gain Gsu of the U-phase current sensor 50, the gain Gsv of the V-phase current sensor 55, and the gain Gsw of the W-phase current sensor 58 is completed.
  • the gain correction function start / stop unit 270 determines whether or not to start the gain correction function in step k-2.
  • the timing for starting the gain correction function is, for example, when a temperature sensor (not shown) is attached to the inverter control device 160 or the motor 60 and the temperature detected by the temperature sensor changes or at predetermined time intervals. Etc., which are determined in advance.
  • the gain correction function start / stop unit 270 sets the correction function start / stop flag Flss to 1 (start start) in step k-3.
  • the gain correction function start / stop unit 270 determines whether or not to forcibly stop the gain correction function in step k-4.
  • the gain correction function start / stop unit 270 sets the correction function start / stop flag Flss to 0 (stop) in step k-5.
  • the gain correction function start / stop unit 270 indicates that the correction start / stop flag Flss indicates 1 (start-up) in step k-6. Determine whether or not.
  • the gain correction function start / stop unit 270 sets the correction function start / stop flag Flss to 2 in step k-7. Set to (Started).
  • the gain correction function start / stop unit 270 sets the correction function start / stop flag Flss in step k-8. 2 (activated) is determined.
  • the gain correction function activation / deactivation unit 270 determines in step k-9 the step acquired in step k-1. Whether or not the count value Cnt2 of 2 is 0 is determined. If the second count value Cnt2 is 0 in step k-9, the gain correction function activation / deactivation unit 270 sets the correction function activation / deactivation flag Flss to 0 (stop) in step k-10. . On the other hand, if the second count value Cnt2 is not 0 in step k-9, the gain correction function activation / stop unit 270 performs step k-1 at the next calculation timing without performing any processing. Restart from the process.
  • FIG. 17 is a diagram for explaining the processing procedure of the gain adjustment state determination unit 230 according to the second embodiment.
  • the gain adjustment state determination unit 230 performs the processing of steps e-1 to e-3 shown in FIG.
  • the gain adjustment state determination unit 230 acquires the correction function start / stop flag Flss generated by the gain correction function start / stop unit 270 in Step 1-2.
  • the gain adjustment state determination unit 230 determines whether or not the correction function start / stop flag Flss acquired in step 1-2 indicates 2 (started).
  • the gain adjustment state determination unit 230 detects the peak detected in step 1-1 in step 1-4. It is determined whether or not the flag Flpk is 1 (on).
  • step l-4 If the peak detection flag Flpk is 1 (on) in step l-4, the gain adjustment state determination unit 230 performs steps l-6, l-8, and l-10, which will be described later, in step l-5. , 1-17, 1-21, 1-23, or 1-27, it is determined whether or not the adjustment state determination flag Flst indicates 0 (end). If the adjustment state determination flag Flst indicates 0 (end) in step 1-5, the gain adjustment state determination unit 230 sets the adjustment state determination flag Flst to 5 (start of switching) in step 1-6. Set to.
  • the gain adjustment state determination unit 230 determines that the adjustment state determination flag Flst is 5 (in step 1-7). It is determined whether or not (switching start) is indicated.
  • the gain adjustment state determination unit 230 sets the adjustment state determination flag Flst to 6 (switching in step 1-8). ). Next, the gain adjustment state determination unit 230 determines whether or not the third count value Cnt3 is 0 in Step 1-9.
  • step 1-9 when the third count value Cnt3 is 0, the gain adjustment state determination unit 230 sets the adjustment state determination flag Flst to 7 (switching completed) in step 1-10.
  • the gain adjustment state determination unit 230 sets the third count value Cnt3 to the predetermined value X4 in step l-11.
  • the gain adjustment state determination unit 230 counts down the third count value Cnt3 in step l-12.
  • the gain adjustment state determination unit 230 determines that the adjustment state determination flag Flst is 6 in step l-13. It is determined whether or not (switching) is indicated. If the adjustment state determination flag Flst indicates 6 (switching) in Step 1-13, the process proceeds to Step 1-9 described above. On the other hand, when the adjustment state determination flag Flst does not indicate 6 (switching) in Step 1-13, the gain adjustment state determination unit 230 determines that the adjustment state determination flag Flst is 7 in Step 1-14. It is determined whether or not (switching complete) is indicated.
  • the gain adjustment state determination unit 230 determines that the q-axis harmonic obtained in step l-1 is step 1-15. It is determined whether or not the positive peak value Pkp of the wave current is greater than the first positive threshold Thp1.
  • the gain adjustment state determination unit 230 determines that the first peak value Pkp is the first peak value Pkp in step 1-16.
  • the count value Cnt1 is set to a predetermined value X1.
  • the predetermined value X1 is set to a positive integer that is a multiple of 2.
  • the gain adjustment state determination unit 230 sets the adjustment state determination flag Flst to 1 (search) in Step 1-17.
  • the gain adjustment state determination unit 230 sets the second count value Cnt2 to 3 in step 1-18.
  • the gain adjustment state determination unit 230 determines in step 1-19 that It is determined whether or not the negative peak value Pkn of the q-axis harmonic current acquired in step 1-1 is smaller than the first negative threshold value Thn1.
  • step l-19 if the negative peak value Pkn of the q-axis harmonic current is smaller than the first negative threshold value Thn1, the processes of steps l-16 to 1-18 described above are performed. On the other hand, if the negative peak value Pkn of the q-axis harmonic current is not smaller than the first negative threshold value Thn1 in step 1-19, the gain adjustment state determination unit 230 determines in step 1-20 that The second count value Cnt2 is counted down. Next, the gain adjustment state determination unit 230 sets the adjustment state determination flag Flst to 0 (end) in step l-21.
  • step l-22 determines that the adjustment state determination flag Flst is 4 in step l-22. It is determined whether (reset) is indicated. In step l-22, if the adjustment direction determination flag Flst indicates 4 (reset), the process proceeds to step 1-15 described above. On the other hand, when the adjustment direction determination flag Flst does not indicate 4 (reset) in step l-22, the gain adjustment state determination unit 230 performs step e-11 shown in FIG. 7 in step l-23. Processes up to e-21 are performed.
  • step 1-4 If the peak detection flag Flpk is not 1 (on) in step 1-4, the gain adjustment state determination unit 230 performs step l-1 at the next calculation timing without performing any processing. Restart from the process.
  • the gain adjustment state determination unit 230 sets the correction function start / stop flag Flss in step l-24. 1 (start start) is determined. If the correction function start / stop flag Flss indicates 1 (start-up) in Step 1-24, the gain adjustment state determination unit 230 sets the second count value Cnt2 to 3 in Step 1-25. Set. Next, the gain adjustment state determination unit 230 sets the third count value Cnt3 to the predetermined value X4 in Step 1-26. Next, the gain adjustment state determination unit 230 sets the adjustment state determination flag Flst to 0 (end) in step 1-27.
  • step 1-24 the gain adjustment state determination unit 230 performs the next calculation timing without performing any processing. Then, the process restarts from step l-1.
  • Steps e-15 and e-17) shown in FIG. 7 detect a gain adjustment failure. Specifically, the detected gain of each phase is set to the initial value (by the process of step e-16 shown in FIG. 7). A signal for resetting can be generated. Thereby, the gain adjustment unit 250 can redo the detection gain of each phase.
  • the adjustment state determination flag Flst is set to 5 (start of phase switching for adjusting the detection gain) until the second count value Cnt2 becomes 0, 6 (switching phase for adjusting detection gain), 7 (completion of switching phase for adjusting detection gain), 1 (search for adjustment direction of detection gain), 2 (start adjustment of detection gain), 3 (detection gain adjustment) In the order of 0 (continuation of detection gain adjustment)).
  • the two-phase gain imbalance between the gain Gsu of the U-phase current sensor 50 and the gain Gsv of the V-phase current sensor 55 is corrected.
  • the two-phase gain imbalance between the gain Gsu of the U-phase current sensor 50 and the gain Gsw of the W-phase current sensor 58 is corrected.
  • the two-phase gain imbalance between the gain Gsv of the V-phase current sensor 55 and the gain Gsw of the W-phase current sensor 58 is corrected.
  • FIG. 18 is a schematic diagram illustrating a processing procedure of the gain adjustment direction search unit 240 according to the second embodiment.
  • the gain adjustment direction search unit 240 performs the processing of steps f-2 to f-5 shown in FIG. 8 at step m-1.
  • the gain adjustment direction search unit 240 acquires the correction function start / stop flag Flss generated by the gain correction function start / stop unit 270.
  • the gain adjustment direction search unit 240 determines whether or not the correction function start / stop flag Flss acquired in step m-2 indicates 2 (started).
  • step m-3 when the correction function activation / stop flag Flss indicates 2 (already activated), the gain adjustment direction searching unit 240 detects the peak detected in step m-1 in step m-4. It is determined whether or not the flag Flpk is 1 (on).
  • the gain adjustment direction searching unit 240 determines that the adjustment state determination flag Flst acquired in step m-1 is It is determined whether or not 5 (switching start) is indicated.
  • step m-5 it is determined whether or not the adjustment state determination flag Flst indicates 5 (switching start). If the adjustment state determination flag Flst indicates 5 (start of switching) in step m-5, the gain adjustment direction searching unit 240 determines that the fourth count value Cnt4 is 0 in step m-6. It is determined whether or not there is.
  • step m-6 if the fourth count value Cnt4 is 0, the gain adjustment direction search unit 240 sets the fourth count value Cnt4 to 2 in step m-7. On the other hand, if the fourth count value Cnt4 is not 0 in step m-6, the gain adjustment direction search unit 240 counts down the fourth count value Cnt4 in step m-8.
  • the fourth count value Cnt4 2
  • a mode for correcting variations in the gain Gsv of the U-phase current sensor 50 and the gain Gsv of the V-phase current sensor 55 is set, and the U-phase detection gain Gcu and the V-phase are corrected.
  • the detection gain Gcv is adjusted.
  • the fourth count value Cnt4 1
  • the mode for correcting the variation in the gain Gsu of the U-phase current sensor 50 and the gain Gsw of the W-phase current sensor 58 is set, and the U-phase detection gain Gcu and the W-phase detection gain Gcw are Adjusted.
  • the mode is to correct the gain Gsv of the V-phase current sensor 55 and the W-phase current sensor 58, and the V-phase detection gain Gcv and the W-phase detection gain Gcw are adjusted.
  • the gain adjustment direction search unit 240 determines that the adjustment state determination flag Flst is 1 in Step m-9. It is determined whether or not (search) is indicated.
  • the gain adjustment direction search unit 240 determines that the first count value Cnt1 is the predetermined value X1 in step m-10. It is determined whether or not.
  • the gain adjustment direction search unit 240 determines whether or not the fourth count value Cnt4 is 2 in step m-11. Determine whether.
  • the gain adjustment direction search unit 240 sets the adjustment direction determination flag Flcmp to 0 (sets the U-phase detection gain Gcu to a positive value) in step m-12. And the V-phase detection gain Gcv is set to a signal that increases in the negative direction.
  • the gain adjustment direction search unit 240 performs the processes f-10 to f-13 shown in FIG. 8 in step m-13.
  • the gain adjustment direction search unit 240 determines whether or not the fourth count value Cnt4 is 1 in step m-14. Determine whether. If the fourth count value Cnt4 is 1 in step m-14, the gain adjustment direction search unit 240 sets the adjustment direction determination flag Flcmp to 2 (sets the U-phase detection gain Gcu to a positive value) in step m-15. And the W-phase detection gain Gcw is set to a signal that increases in the negative direction), and the process of step m-13 described above is performed.
  • the gain adjustment direction search unit 240 sets the adjustment direction determination flag Flcmp to 4 (V-phase detection gain Gcv in step m-16). Is increased to the positive direction, and the W-phase detection gain Gcw is set to a signal that increases in the negative direction), and the process of step m-13 is performed.
  • the gain adjustment direction searching unit 240 determines that the first count value Cnt1 is (X1) in step m-17. / 2) is determined.
  • the gain adjustment direction searching unit 240 performs steps f-15 to f shown in FIG. 8 at step m-18. Perform the process of -19.
  • the gain adjustment direction search unit 240 adds 1 to the current adjustment direction determination flag Flcmp to determine the latest adjustment direction determination flag Flcmp. For example, when the current adjustment direction determination flag Flcmp is 0 (a signal that increases the U-phase detection gain Gcu in the positive direction and increases the V-phase detection gain Gcv in the negative direction), the latest adjustment direction determination flag Flcmp is 1 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the V-phase detection gain Gcv in the positive direction).
  • the latest adjustment direction determination flag Flcmp is 3 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the W-phase detection gain Gcw in the positive direction).
  • the latest adjustment direction determination flag Flcmp is 4 (a signal for increasing the V-phase detection gain Gcv in the positive direction and increasing the W-phase detection gain Gcv in the negative direction)
  • Flcmp is 5 (a signal that increases the V-phase detection gain Gcv in the negative direction and increases the W-phase detection gain Gcv in the positive direction).
  • the gain adjustment direction searching unit 240 at step m-17, performs step f- shown in FIG. Processes 21 to f-25 are performed.
  • step m-9 If the adjustment state determination flag Flst does not indicate 1 (search) in step m-9, the gain adjustment direction search unit 240 performs the process of FIG. 19 described later in step m-21-1. Transition.
  • step m-4 If the peak detection flag Flpk is not 1 (on) in step m-4, the gain adjustment direction search unit 240 performs step m-1 at the next calculation timing without performing any processing. Restart from the process.
  • the gain adjustment direction search unit 240 sets the correction function start / stop flag Flss in Step m-22. 1 (start start) is determined.
  • Step m-22 when the correction function activation / stop flag Flss indicates 1 (activation start), the gain adjustment direction search unit 240 sets the fourth count value Cnt4 to 0 in Step m-23. Set.
  • the correction function start / stop flag Flss indicates 1 (starting start)
  • the correction function start / stop flag Flss is set to 2 (started) by setting the fourth count value Cnt4 to 0.
  • the fourth count value Cnt4 is set to 2, so that it is possible to start from the mode for correcting the variation in the gain Gsv of the U-phase current sensor 50 and the gain Gsv of the V-phase current sensor 55.
  • step m-22 the gain adjustment direction searching unit 240 performs the next calculation timing without performing any processing. To restart from the process of step m-1.
  • FIG. 19 is a diagram illustrating the processing procedure of the gain adjustment direction search unit 240 when the adjustment state determination flag Flst does not indicate 1 (search) in step m-9 shown in FIG. First, the gain adjustment direction search unit 240 determines whether or not the adjustment state determination flag Flst indicates 2 (start) in Step m-21-2.
  • step m-21-2 If the adjustment state determination flag Flst indicates 2 (start) in step m-21-2, the gain adjustment direction search unit 240 determines in step m-21-3 that step f shown in FIG. The processes of -26-3 to f-26-7 are performed. Next, in step m-21-4, gain adjustment direction search section 240 obtains the average value Pkda1 of the first peak-peak value calculated in step m-18 shown in FIG. 18 in step m-21-3. It is determined whether or not the calculated second peak value is smaller than the average value Pkda2.
  • the gain adjustment direction searching unit 240 determines whether the average value Pkda2 of the second peak peak value is step m-21- 5, it is determined whether the fourth count value Cnt4 is equal to 2.
  • the gain adjustment direction search unit 240 sets the adjustment direction determination flag Flcmp to 0 (U-phase detection) in step m-21-6.
  • the gain Gcu is increased in the positive direction and the V-phase detection gain Gcv is increased in the negative direction).
  • the gain adjustment direction searching unit 240 determines that the fourth count value Cnt4 is It is determined whether or not equal to 1.
  • the gain adjustment direction search unit 240 sets the adjustment direction determination flag Flcmp to 2 (U-phase detection) in step m-21-8.
  • the gain Gcu is increased in the positive direction and the W-phase detection gain Gcw is increased in the negative direction).
  • the gain adjustment direction search unit 240 sets the adjustment direction determination flag Flcmp to 4 ( The V-phase detection gain Gcv is increased in the positive direction and the W-phase detection gain Gcv is increased in the negative direction).
  • step m-21-4 if the average value Pkda1 of the first peak peak value is not smaller than the average value Pkda2 of the second peak peak value, the gain adjustment direction search unit 240 At -21-10, it is determined whether or not the fourth count value Cnt4 is equal to 2.
  • the gain adjustment direction search unit 240 sets the adjustment direction determination flag Flcmp to 1 (U-phase detection) in step m-21-11.
  • the gain Gcu is increased in the negative direction, and the V-phase detection gain Gcv is set in the positive direction).
  • the gain adjustment direction search unit 240 determines that the fourth count value Cnt4 is It is determined whether or not equal to 1.
  • the gain adjustment direction search unit 240 sets the adjustment direction determination flag Flcmp to 3 (U-phase detection) in step m-21-13.
  • the gain Gcu is increased in the negative direction and the W-phase detection gain Gcw is increased in the positive direction).
  • the gain adjustment direction search unit 240 sets the adjustment direction determination flag Flcmp to 5 (in step m-21-14).
  • the V-phase detection gain Gcv is increased in the negative direction, and the W-phase detection gain Gcv is increased in the positive direction).
  • the adjustment state determination flag Flst is based on the magnitude relationship between the average value Pkda1 of the first peak peak value and the average value Pkda2 of the second peak peak value calculated during the period in which 1 (search) is indicated.
  • the gain adjustment unit 250 can adjust the detection gain of each phase so that the peak peak value of the q-axis current harmonic becomes small.
  • the q-axis The adjustment direction determination flag Flcmp can be accurately determined so that the peak peak value of the current harmonic becomes small.
  • the detection gain of the selected first phase is used as a reference gain and is selected. It is possible to adjust only the detection gain of the selected second phase, or to adjust only the detection gain of the selected first phase using the detection gain of the selected second phase as a reference gain. Absent. For example, when the U phase is selected as the first phase and the V phase is selected as the second phase, only the V phase detection gain Gcv may be adjusted using the U phase detection gain Gcu as a reference gain. There is no problem even if the U-phase detection gain Gcu is adjusted using the V-phase detection gain Gcv as a reference gain.
  • the W phase detection gain Gcw may be adjusted using the U phase detection gain Gcu as a reference gain. Even if the W-phase detection gain Gcw is used as the reference gain and the U-phase detection gain Gcu is adjusted, there is no problem. Further, when the V phase is selected as the first phase and the W phase is selected as the second phase, only the W phase detection gain Gcw may be adjusted using the V phase detection gain Gcv as a reference gain, There is no problem even if only the V-phase detection gain Gcv is adjusted using the W-phase detection gain Gcw as a reference gain.
  • FIG. 20 is a diagram for explaining the processing procedure of the gain adjustment unit 250 according to the second embodiment.
  • the gain adjustment unit 250 performs the processes g-1 to g-3 shown in FIG.
  • the gain adjustment unit 250 acquires the correction function start / stop flag Flss generated by the gain correction function start / stop unit 270 in Step n-2.
  • the gain adjustment unit 250 determines whether or not the correction function start / stop flag Flss acquired in step n-2 indicates 2 (started).
  • step n-3 If the correction function activation / deactivation flag Flss indicates 2 (already activated) in step n-3, the gain adjustment unit 250 determines in step n-4 that the peak detection flag Flpk acquired in step n ⁇ 1. Is 1 (ON).
  • the gain adjustment unit 250 sets the adjustment state determination flag Flst acquired in step n-1 to 1 (on) in step n-5. It is determined whether or not (search) is indicated.
  • the gain adjustment unit 250 sets the adjustment direction determination flag Flcmp to 0 (U-phase detection gain) in Step n-6. It is determined whether or not the signal is a signal that increases Gcu in the positive direction and increases the V-phase detection gain Gcv in the negative direction.
  • the gain adjustment unit 250 In Step n-7, the predetermined value X2 is added to the past value Gcool of the U-phase detection gain to increase the U-phase detection gain Gcu in the positive direction.
  • the gain adjustment unit 250 subtracts the predetermined value X2 from the past value Gcvold of the V-phase detection gain, and increases the V-phase detection gain Gcv in the negative direction.
  • step n-6 determines whether or not adjustment direction determination flag Flcmp is 1 (a signal for increasing U-phase detection gain Gcu in the negative direction and increasing V-phase detection gain Gcv in the positive direction). judge.
  • the gain adjustment unit 250 In Step n-10, the predetermined value X2 is subtracted from the past value Gcool of the U-phase detection gain to increase the U-phase detection gain Gcu in the negative direction.
  • the gain adjustment unit 250 adds the predetermined value X2 to the past value Gcvold of the V-phase detection gain, and increases the V-phase detection gain Gcv in the positive direction.
  • step n-9 the gain adjustment is performed.
  • unit 250 determines whether adjustment direction determination flag Flcmp is 2 (a signal that increases U-phase detection gain Gcu in the positive direction and W-phase detection gain Gcw in the negative direction). judge.
  • the gain adjustment unit 250 In Step n-13, the predetermined value X2 is added to the past value Gcool of the U-phase detection gain to increase the U-phase detection gain Gcu in the positive direction.
  • the gain adjustment unit 250 subtracts the predetermined value X2 from the past value Gcworld of the W phase detection gain, and increases the W phase detection gain Gcw in the negative direction.
  • step n-12 determines whether or not adjustment direction determination flag Flcmp is 3 (a signal for increasing U-phase detection gain Gcu in the negative direction and increasing W-phase detection gain Gcw in the positive direction). judge.
  • the gain adjustment unit 250 In Step n-16, the predetermined value X2 is subtracted from the past value Gcool of the U-phase detection gain to increase the U-phase detection gain Gcu in the negative direction.
  • the gain adjustment unit 250 adds the predetermined value X2 to the past value Gcold of the W-phase detection gain, and increases the W-phase detection gain Gcw in the positive direction.
  • step n-15 unit 250 determines whether or not adjustment direction determination flag Flcmp is 4 (a signal for increasing V-phase detection gain Gcv in the positive direction and increasing W-phase detection gain Gcw in the negative direction). judge.
  • the gain adjustment unit 250 In Step n-19, the predetermined value X2 is added to the past value Gcvold of the V-phase detection gain, and the V-phase detection gain Gcv is increased in the positive direction. Next, in step n-20, the gain adjustment unit 250 subtracts the predetermined value X2 from the past value Gcworld of the W phase detection gain, and increases the W phase detection gain Gcw in the negative direction.
  • step n-18 the gain adjustment is performed.
  • unit 250 subtracts predetermined value X2 from past value Gcvold of V-phase detection gain, and increases V-phase detection gain Gcv in the negative direction.
  • step n-22 the gain adjustment unit 250 adds the predetermined value X2 to the past value Gcold of the W-phase detection gain, and increases the W-phase detection gain Gcw in the positive direction.
  • step n-5 If the adjustment state determination flag Flst does not indicate 1 (search) in step n-5, the gain adjustment unit 250 proceeds to the process of FIG. 21 described later in step n-23-1. .
  • the gain adjusting unit 250 performs the process at step n-1 at the next calculation timing without performing any process. Restart from.
  • step n-3 If the correction function start / stop flag Flss does not indicate 2 (started) in step n-3, the gain adjustment unit 250 performs the step at the next calculation timing without performing any processing. Restart from the process of n-1.
  • FIG. 21 is a diagram for explaining the processing procedure of the gain adjusting unit 250 when the adjustment state determination flag Flst does not indicate 1 (search) in step n-5 shown in FIG. First, the gain adjustment unit 250 determines whether or not the adjustment state determination flag Flst indicates 2 (start) in Step n-23-2.
  • the gain adjustment unit 250 determines that the adjustment direction determination flag Flcmp is 0 (step n-23-3). It is determined whether the U-phase detection gain Gcu is increased in the positive direction and the V-phase detection gain Gcv is increased in the negative direction.
  • step n-23-3 If the adjustment direction determination flag Flcmp is 0 (a signal that increases the U-phase detection gain Gcu in the positive direction and increases the V-phase detection gain Gcv in the negative direction) at step n-23-3, the gain adjustment is performed.
  • unit 250 sets past value Gcoold of the U-phase detection gain as U-phase detection gain Gcu.
  • the gain adjustment unit 250 sets the past value Gcvold of the V-phase detection gain as the V-phase detection gain Gcv in Step n-23-5.
  • step n-23-6 the gain adjustment unit 250 has an adjustment direction determination flag Flcmp of 1 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the V-phase detection gain Gcv in the positive direction). It is determined whether or not.
  • step n-23-6 if the adjustment direction determination flag Flcmp is 1 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the V-phase detection gain Gcv in the positive direction), the gain adjustment is performed.
  • the unit 250 proceeds to the process of Step n-23-4 described above.
  • step n-23-6 gain adjustment unit 250 has an adjustment direction determination flag Flcmp of 2 (a signal that increases U-phase detection gain Gcu in the positive direction and W-phase detection gain Gcw in the negative direction). It is determined whether or not.
  • step n-23-7 If the adjustment direction determination flag Flcmp is 2 (a signal that increases the U-phase detection gain Gcu in the positive direction and the W-phase detection gain Gcw in the negative direction) at step n-23-7, the gain adjustment is performed.
  • unit 250 sets U-phase detection gain past value Gcool as U-phase detection gain Gcu.
  • step n-23-9 gain adjusting section 250 sets past value Gcold of W-phase detection gain as W-phase detection gain Gcw.
  • the gain adjustment unit 250 has an adjustment direction determination flag Flcmp of 3 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the W-phase detection gain Gcw in the positive direction). It is determined whether or not.
  • step n-23-10 if the adjustment direction determination flag Flcmp is 3 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the W-phase detection gain Gcw in the positive direction), the gain adjustment is performed.
  • the unit 250 proceeds to the process of Step n-23-8 described above.
  • step n-23-10 gain adjusting section 250 sets V-phase detection gain past value Gcvold as V-phase detection gain Gcv.
  • step n-23-12 the gain adjustment unit 250 sets the past value Gcold of the W-phase detection gain as the W-phase detection gain Gcw.
  • step n-23-2 if the adjustment state determination flag Flst does not indicate 2 (start), the gain adjustment unit 250 determines that the adjustment state determination flag Flst in step n-23-13 It is determined whether or not 3 (continuation) is indicated.
  • step n-23-13 the gain adjustment unit 250 determines that the adjustment direction determination flag Flcmp is 0 (step n-23-14). It is determined whether the U-phase detection gain Gcu is increased in the positive direction and the V-phase detection gain Gcv is increased in the negative direction.
  • step n-23-13 If the adjustment direction determination flag Flcmp is 0 (a signal that increases the U-phase detection gain Gcu in the positive direction and increases the V-phase detection gain Gcv in the negative direction) at step n-23-13, the gain adjustment is performed.
  • unit 250 adds predetermined value X3 to previously calculated U-phase detection gain Gcu to calculate the latest U-phase detection gain Gcu.
  • step n-23-16 the gain adjustment unit 250 subtracts the predetermined value X3 from the previously calculated V-phase detection gain Gcv to calculate the latest V-phase detection gain Gcv.
  • step n-23-17 the gain adjustment unit 250 has an adjustment direction determination flag Flcmp of 1 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the V-phase detection gain Gcv in the positive direction). It is determined whether or not.
  • step n-23-17 the gain adjustment is performed.
  • unit 250 subtracts predetermined value X3 from previously calculated U-phase detection gain Gcu to calculate the latest U-phase detection gain Gcu.
  • the gain adjustment unit 250 adds the predetermined value X3 to the previously calculated V-phase detection gain Gcv to calculate the latest V-phase detection gain Gcv.
  • the gain adjustment unit 250 has an adjustment direction determination flag Flcmp of 2 (a signal that increases the U-phase detection gain Gcu in the positive direction and increases the W-phase detection gain Gcw in the negative direction). It is determined whether or not.
  • step n-23-20 If the adjustment direction determination flag Flcmp is 2 (a signal that increases the U-phase detection gain Gcu in the positive direction and increases the W-phase detection gain Gcw in the negative direction) in step n-23-20, the gain adjustment is performed.
  • unit 250 adds predetermined value X3 to the previously calculated U-phase detection gain Gcu to calculate the latest U-phase detection gain Gcu.
  • step n-23-22 the gain adjustment unit 250 subtracts the predetermined value X3 from the previously calculated W-phase detection gain Gcw to calculate the latest W-phase detection gain Gcw.
  • step n-23-23 the gain adjustment unit 250 has an adjustment direction determination flag Flcmp of 3 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the W-phase detection gain Gcw in the positive direction). It is determined whether or not.
  • step n-23-23 if the adjustment direction determination flag Flcmp is 3 (a signal for increasing the U-phase detection gain Gcu in the negative direction and increasing the W-phase detection gain Gcw in the positive direction), the gain adjustment is performed.
  • unit 250 subtracts predetermined value X3 from previously calculated U-phase detection gain Gcu to calculate the latest U-phase detection gain Gcu.
  • the gain adjustment unit 250 adds the predetermined value X3 to the previously calculated W-phase detection gain Gcw to calculate the latest W-phase detection gain Gcw.
  • the gain adjustment unit 250 has an adjustment direction determination flag Flcmp of 4 (a signal for increasing the V-phase detection gain Gcv in the positive direction and increasing the W-phase detection gain Gcw in the negative direction). It is determined whether or not.
  • step n-23-26 the gain adjustment is performed.
  • unit 250 adds predetermined value X3 to the previously calculated V-phase detection gain Gcv to calculate the latest V-phase detection gain Gcv.
  • step n-23-28 the gain adjusting unit 250 subtracts the predetermined value X3 from the previously calculated W-phase detection gain Gcw to calculate the latest W-phase detection gain Gcw.
  • step n-23-29 the gain adjustment unit 250 subtracts the predetermined value X3 from the previously calculated V-phase detection gain Gcv to calculate the latest V-phase detection gain Gcv.
  • step n-23-30 the gain adjustment unit 250 adds the predetermined value X3 to the previously calculated W phase detection gain Gcw to calculate the latest W phase detection gain Gcw.
  • step n-23-13 if the adjustment state determination flag Flst does not indicate 3 (continuation), the gain adjustment unit 250 performs step n-23-31-1 in FIG. Transition to processing.
  • FIG. 22 is a diagram illustrating a processing procedure of the gain adjustment unit 250 when the adjustment state determination flag Flst does not indicate 3 (continuation) in step n-23-13 shown in FIG. First, the gain adjustment unit 250 determines whether or not the adjustment state determination flag Flst indicates 4 (reset) in step n-23-31-2.
  • the gain adjustment unit 250 determines the adjustment direction determination flag Flcmp at step n-23-31-3. Is 0 (a signal for increasing the U-phase detection gain Gcu in the positive direction and increasing the V-phase detection gain Gcv in the negative direction).
  • step n-23-31-3 if the adjustment direction determination flag Flcmp is 0 (a signal that increases the U-phase detection gain Gcu in the positive direction and increases the V-phase detection gain Gcv in the negative direction), In step n-23-31-4, gain adjustment unit 250 sets U-phase detection gain Gcu to 1 (initial value). Next, the gain adjusting unit 250 sets the V-phase detection gain Gcv to 1 (initial value) in Step n-23-31-5. Next, in step n-23-31-6, the gain adjustment unit 250 sets the U-phase detection gain Gcu set in step n-23-31-4 as the past value Gcool of the U-phase detection gain. Next, in step n-23-31-7, the gain adjustment unit 250 sets the V-phase detection gain Gcv set in step n-23-31-5 as the past value Gcvold of the V-phase detection gain.
  • step n-23-31-3 when the adjustment direction determination flag Flcmp is not 0 (a signal for increasing the U-phase detection gain Gcu in the positive direction and increasing the V-phase detection gain Gcv in the negative direction) in step n-23-31-3.
  • the gain adjustment unit 250 sets the adjustment direction determination flag Flcmp to 1 (increases the U-phase detection gain Gcu in the negative direction and increases the V-phase detection gain Gcv in the positive direction. Signal).
  • Step n-23-31-8 if the adjustment direction determination flag Flcmp is 1 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the V-phase detection gain Gcv in the positive direction), The gain adjustment unit 250 proceeds to the process of Step n-23-31-4 described above. On the other hand, when the adjustment direction determination flag Flcmp is not 1 (a signal for increasing the U-phase detection gain Gcu in the negative direction and increasing the V-phase detection gain Gcv in the positive direction) in step n-23-31-8. In step n-23-31-9, the gain adjustment unit 250 sets the adjustment direction determination flag Flcmp to 2 (increases the U-phase detection gain Gcu in the positive direction and increases the W-phase detection gain Gcw in the negative direction. Signal).
  • step n-23-31-9 if the adjustment direction determination flag Flcmp is 2 (a signal for increasing the U-phase detection gain Gcu in the positive direction and increasing the W-phase detection gain Gcw in the negative direction), In step n-23-31-10, gain adjustment unit 250 sets U-phase detection gain Gcu to 1 (initial value). Next, gain adjustment section 250 sets W phase detection gain Gcw to 1 (initial value) in step n-23-31-11. Next, in step n-23-31-12, the gain adjustment unit 250 sets the U-phase detection gain Gcu set in step n-23-31-10 as the past value Gcool of the U-phase detection gain. Next, in step n-23-31-13, the gain adjustment unit 250 sets the W-phase detection gain Gcw set in step n-23-31-11 as the past value Gcold of the W-phase detection gain.
  • step n-23-31-9 when the adjustment direction determination flag Flcmp is not 2 (a signal that increases the U-phase detection gain Gcu in the positive direction and increases the W-phase detection gain Gcw in the negative direction) in step n-23-31-9.
  • the gain adjustment unit 250 sets the adjustment direction determination flag Flcmp to 3 (increases the U-phase detection gain Gcu in the negative direction and increases the W-phase detection gain Gcw in the positive direction). Signal).
  • Step n-23-31-14 if the adjustment direction determination flag Flcmp is 3 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the W-phase detection gain Gcw in the positive direction), The gain adjustment unit 250 proceeds to the process of step n-23-31-10 described above.
  • the adjustment direction determination flag Flcmp is not 3 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the W-phase detection gain Gcw in the positive direction) in step n-23-31-14.
  • the gain adjustment unit 250 sets the V-phase detection gain Gcv to 1 (initial value) in Step n-23-31-15.
  • gain adjusting section 250 sets W phase detection gain Gcw to 1 (initial value) in step n-23-31-16.
  • step n-23-31-17 the gain adjustment unit 250 sets the V-phase detection gain Gcv set in step n-23-31-15 as the past value Gcvold of the V-phase detection gain.
  • the gain adjustment unit 250 sets the W-phase detection gain Gcw set in step n-23-31-16 as the past value Gcold of the W-phase detection gain.
  • the gain adjustment unit 250 determines the adjustment direction in step n-23-31-19. It is determined whether or not the flag Flcmp is 0 (a signal for increasing the U-phase detection gain Gcu in the positive direction and increasing the V-phase detection gain Gcv in the negative direction).
  • Step n-23-31-19 if the adjustment direction determination flag Flcmp is 0 (a signal that increases the U-phase detection gain Gcu in the positive direction and increases the V-phase detection gain Gcv in the negative direction), In step n-23-31-20, gain adjustment unit 250 sets U-phase detection gain Gcu as past value Gcool of U-phase detection gain. Next, the gain adjustment unit 250 sets the V-phase detection gain Gcv as the past value Gcvold of the V-phase detection gain in Step n-23-31-21.
  • step n-23-31-22 the gain adjustment unit 250 sets the adjustment direction determination flag Flcmp to 1 (increases the U-phase detection gain Gcu in the negative direction and increases the V-phase detection gain Gcv in the positive direction. Signal).
  • Step n-23-31-22 if the adjustment direction determination flag Flcmp is 1 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the V-phase detection gain Gcv in the positive direction), The gain adjustment unit 250 performs the processes of steps n-23-31-20 and n-23-31-21 described above.
  • step n-23-31-22 when the adjustment direction determination flag Flcmp is not 1 (a signal for increasing the U-phase detection gain Gcu in the negative direction and increasing the V-phase detection gain Gcv in the positive direction) in step n-23-31-22.
  • the gain adjustment unit 250 sets the adjustment direction determination flag Flcmp to 2 (increases the U-phase detection gain Gcu in the positive direction and increases the W-phase detection gain Gcw in the negative direction. Signal).
  • Step n-23-31-23 if the adjustment direction determination flag Flcmp is 2 (a signal for increasing the U-phase detection gain Gcu in the positive direction and increasing the W-phase detection gain Gcw in the negative direction), In Step n-23-31-24, the gain adjustment unit 250 sets the U-phase detection gain Gcu as the past value Gcool of the U-phase detection gain. Next, the gain adjustment unit 250 sets the W-phase detection gain Gcw as the past value Gcwold of the W-phase detection gain in Step n-23-31-25.
  • step n-23-31-26 the gain adjustment unit 250 sets the adjustment direction determination flag Flcmp to 3 (increases the U-phase detection gain Gcu in the negative direction and increases the W-phase detection gain Gcw in the positive direction. Signal).
  • step n-23-31-26 if the adjustment direction determination flag Flcmp is 3 (a signal for increasing the U-phase detection gain Gcu in the negative direction and increasing the W-phase detection gain Gcw in the positive direction), The gain adjustment unit 250 proceeds to the process of Step n-23-31-24 described above.
  • step n-23-31-26 when the adjustment direction determination flag Flcmp is not 3 (a signal for increasing the U-phase detection gain Gcu in the negative direction and increasing the W-phase detection gain Gcw in the positive direction) at step n-23-31-26.
  • step n-23-31-27 the gain adjustment unit 250 sets the V-phase detection gain Gcv as the past value Gcvold of the V-phase detection gain.
  • step n-23-31-28 sets the W-phase detection gain Gcw as the past value Gcold of the W-phase detection gain in Step n-23-31-28.
  • the U-phase detection gain Gcu, the V-phase detection gain Gcv, and the W-phase detection gain Gcw are adjusted when the electrical angle ⁇ e of the rotor 64 of the motor 60 changes by ⁇ / 2.
  • the detection gain of the selected first phase is used as a reference gain and is selected. It is possible to adjust only the detection gain of the selected second phase, or to adjust only the detection gain of the selected first phase using the detection gain of the selected second phase as a reference gain. Absent. For example, when the U phase is selected as the first phase and the V phase is selected as the second phase, only the V phase detection gain Gcv may be adjusted using the U phase detection gain Gcu as a reference gain. There is no problem even if the U-phase detection gain Gcu is adjusted using the V-phase detection gain Gcv as a reference gain.
  • the detected current conversion unit 170 acquires the UVW phase currents iu1, iv1, and iw1 detected by the UVW phase current sensors 50, 55, and 58, respectively.
  • the U-phase current iu1 and the V-phase current iv1 acquired in steps o-1 and o-2 are expressed by the above equations (2) and (4), respectively, and the W phase acquired in step o-3.
  • the current iw1 is expressed by equation (33) using the true W-phase current iwt flowing through the W-phase winding 63 of the motor 60 and the gain Gsw of the W-phase current sensor 58.
  • the detection current conversion unit 170 acquires UVW phase detection gains Gcu, Gcv, and Gcw in steps o-4 to o-6.
  • step o-7 the detected current conversion unit 170 acquires the fourth count value Cnt4 generated by the gain adjustment direction search unit 240.
  • step o-8 the detected current conversion unit 170 acquires the correction function start / stop flag Flss generated by the gain correction function start / stop unit 270.
  • step o-9 the detected current converter 170 determines whether or not the correction function activation / deactivation flag Flss acquired in step o-8 indicates 2 (already activated).
  • step o-9 when the correction function start / stop flag Flss indicates 2 (started), the detected current conversion unit 170 obtains the fourth acquired in step o-7 in step o-10. It is determined whether the count value Cnt4 is equal to 2.
  • the detected current converter 170 determines that the U-phase current iu1 obtained at step o-1 and the step o-4 at step o-11. Substituting the U-phase detection gain Gcu obtained in step (3) into the equation (3) to calculate the U-phase current iu2. Next, in step o-12, the detection current conversion unit 170 substitutes the V-phase current iv1 acquired in step o-2 and the V-phase detection gain Gcv acquired in step o-5 into the equation (6), V-phase current iv2 is calculated.
  • step o-13 the detected current converter 170 substitutes the U-phase current iu2 calculated in step o-11 and the V-phase current iv2 calculated in step o-12 into the equation (7), and W
  • the phase current iw2 is calculated. That is, when the correction function start / stop flag Flss indicates 2 (started) and the fourth count value Cnt4 is equal to 2, the detection current conversion unit 170 detects current only in the U phase and the V phase. UVW phase currents iu2, iv2, and iw2 are calculated in the same manner as the detection current conversion unit of the two-phase current detection system to which the sensor is attached.
  • the gain adjusting unit 250 multiplies the gain Gsu and U-phase detection gain Gcu of the U-phase current sensor 50 shown in the equation (3) by the V-phase current sensor 55 shown in the equation (6).
  • the values of the U-phase detection gain Gcu and the V-phase detection gain Gcv are adjusted so that the gain Gsv and the multiplication value of the V-phase detection gain Gcv become equal. In this way, by adjusting the U-phase detection gain Gcu and the V-phase detection gain Gcv, variations in the gain Gsu of the U-phase current sensor 50 and the gain Gsv of the V-phase current sensor 55 are corrected.
  • the detected current converter 170 determines whether or not the fourth count value Cnt4 is equal to 1 in step o-14. Determine whether. If the fourth count value Cnt4 is equal to 1 in step o-14, the detected current converter 170 obtains the U-phase current iu1 obtained in step o-1 and the step o-4 in step o-15. Substituting the U-phase detection gain Gcu obtained in step (3) into the equation (3) to calculate the U-phase current iu2.
  • step o-16 the detection current conversion unit 170 substitutes the W-phase current iu1 acquired in step o-3 and the W-phase detection gain Gcw acquired in step o-6 into the equation (34), and W The phase current iw2 is calculated.
  • step o-17 the detected current conversion unit 170 substitutes the U-phase current iu2 calculated in step o-15 and the W-phase current iw2 calculated in step o-16 into the equation (35) to obtain the V-phase The current iv2 is calculated.
  • the detection current conversion unit 170 detects current only in the U phase and the W phase.
  • UVW phase currents iu2, iv2, and iw2 are calculated in the same manner as the detection current conversion unit of the two-phase current detection system to which the sensor is attached.
  • the gain adjustment unit 250 obtains the multiplication value of the gain Gsu and the U-phase detection gain Gcu of the U-phase current sensor 50 shown in the equation (3) and the W-phase current sensor shown in the equation (34).
  • the values of the U-phase detection gain Gcu and the W-phase detection gain Gcw are adjusted so that the multiplication value of the 58 gain Gsw and the W-phase detection gain Gcw are equal. As described above, by adjusting the U-phase detection gain Gcu and the W-phase detection gain Gcw, variations in the gain Gsu of the U-phase current sensor 50 and the gain Gsw of the W-phase current sensor 58 are corrected.
  • the detected current conversion unit 170 obtains the V-phase current iv2 obtained in step o-2 and the step in step o-18.
  • the V-phase detection gain Gcv acquired in o-5 is substituted into the equation (6) to calculate the V-phase current iv2.
  • the detection current converter 170 substitutes the W-phase current iw2 acquired in step o-3 and the W-phase detection gain Gcw acquired in step o-6 into the equation (34).
  • the W-phase current iw2 is calculated.
  • step o-20 the detected current conversion unit 170 substitutes the V-phase current iv2 calculated in step o-18 and the W-phase current iw2 calculated in step o-19 into the equation (36), and the U-phase The current iu2 is calculated.
  • the detected current conversion unit 170 detects current only in the V phase and the W phase.
  • UVW phase currents iu2, iv2, and iw2 are calculated in the same manner as the detection current conversion unit of the two-phase current detection system to which the sensor is attached.
  • the gain adjustment unit 250 uses the multiplication value of the gain Gsv and the V-phase detection gain Gcv of the V-phase current sensor 55 shown in the equation (6) and the W-phase current sensor shown in the equation (34).
  • the values of the V-phase detection gain Gcv and the W-phase detection gain Gcw are adjusted so that the multiplication value of the 58 gain Gsw and the W-phase detection gain Gcw are equal. In this way, by adjusting the V-phase detection gain Gcv and the W-phase detection gain Gcw, variations in the gain Gsw of the V-phase current sensor 55 and the gain Gsw of the W-phase current sensor 58 are corrected.
  • the detected current detection unit 170 detects the U acquired in step o-1 in step o-21.
  • the U-phase current iu2 is calculated by substituting the phase current iu1 and the U-phase detection gain Gcu acquired in step o-4 into the equation (3).
  • the detected current detector 170 substitutes the V-phase current iv1 acquired in step o-2 and the V-phase detection gain Gcv acquired in step o-5 into the equation (6), V-phase current iv2 is calculated.
  • the detected current detector 170 substitutes the W-phase current iw1 acquired in step o-3 and the W-phase detection gain Gcw acquired in step o-6 into the equation (34),
  • the W-phase current iw2 is calculated. That is, when the correction function start / stop flag Flss does not indicate 2 (started), the detection current conversion unit 170 is a three-phase current detection system in which current sensors are attached to all of the U phase, the V phase, and the W phase.
  • the UVW phase currents iu2, iv2, and iw2 are calculated in the same manner as in the detection current conversion unit.
  • FIG. 5 is a diagram for explaining a relationship among a U-phase detection gain Gcu, a V-phase detection gain Gcv, and a W-phase detection gain Gcw adjusted by the above-described procedure.
  • the magnitude relationship between the gain Gsu of the U-phase current sensor 50, the gain Gsv of the V-phase current sensor 55, and the gain Gsw of the W-phase current sensor is assumed as shown in the equation (37), and the U-phase current sensor from time t7.
  • the gain Gsu of 50, the gain Gsv of the V-phase current sensor 55, and the variation of the gain Gsw of the W-phase current sensor are set to be corrected.
  • the correction function start / stop flag Flss changes from 0 (stop) to 1 (start start).
  • the correction function start / stop flag Flss switches from 1 (start-up) to 2 (start-up).
  • the adjustment state determination flag Flst switches from 0 (end) to 5 (switching start), and at the same time, the fourth count value Cnt4 changes from 0 to 2.
  • the UVW phase currents iu2, iv2, and iw2 are the expressions (3), (6), and (7), respectively. It is calculated by the formula.
  • the adjustment state determination flag Flst switches from 5 (switching start) to 6 (switching) at the moment when the peak detection flag Flpk changes from 0 to 1.
  • the third count value Cnt3 starts counting down from the predetermined value X4. Then, at the moment when the third count value Cnt3 becomes 0, the adjustment state determination flag Flst is switched from 6 (switching) to 7 (switching completed).
  • the adjustment state determination flag Flst is switched from 7 (switching completed) to 1 (search).
  • the first count value Cnt1 starts counting down from the predetermined value X1 at the moment when the adjustment state determination flag Flst switches from 7 (switching completed) to 1 (search).
  • the adjustment direction determination flag Flcmp is 0 (the U-phase detection gain Gcu is increased in the positive direction and the V-phase detection gain Gcv is negative). 1 (a signal that increases the U-phase detection gain Gcu in the negative direction and increases the V-phase detection gain Gcv in the positive direction).
  • the U-phase detection gain Gcu is increased by a predetermined value X2 from 1 (initial value) in the positive direction
  • the detection gain Gcv is increased by a predetermined value X2 in the negative direction from 1 (initial value).
  • the U-phase detection gain Gcu increases from 1 (initial value) in the positive direction by a predetermined value X2
  • the V-phase detection gain Gcv increases from 1 (initial value) in the negative direction by a predetermined value X2.
  • the U-phase detection gain Gcu is increased by a predetermined value X2 from 1 (initial value) in the negative direction
  • the detection gain Gcv is increased by a predetermined value X2 in the positive direction from 1 (initial value).
  • the U-phase detection gain Gcu increases from 1 (initial value) in a negative direction by a predetermined value X2
  • the V-phase detection gain Gcv increases from 1 (initial value) in a positive direction by a predetermined value X2.
  • the adjustment direction determination flag Flcmp is 1 (the U-phase detection gain Gcu is set in the negative direction). To 0 (a signal for increasing the U-phase detection gain Gcu in the positive direction and increasing the V-phase detection gain Gcv in the negative direction).
  • the adjustment direction determination flag Flcmp increases from 1 (a signal for increasing the U-phase detection gain Gcu in the negative direction and the V-phase detection gain Gcv in the positive direction) to 0 (the U-phase detection gain Gcu in the positive direction).
  • the adjustment state determination flag Flst switches from 2 (start) to 3 (continuation).
  • the adjustment state determination flag Flst is 3 (continuation) and the adjustment direction determination flag Flcmp is 0, the U-phase detection gain Gcu is gradually increased in increments of a predetermined value X3 in the positive direction, and the V-phase detection gain Gcv is gradually increased in increments of a predetermined value X3 in the negative direction.
  • the positive and negative peak values Pkp and Pkn of the q-axis harmonic current iqh fall within the range of the third positive and negative thresholds Thp3 and Thn3.
  • the adjustment state determination flag Flst is switched from 3 (continuation) to 0 (end), and the adjustment of the U-phase detection gain Gcu and the V-phase detection gain Gcv ends.
  • the adjustment state determination flag Flst switches from 0 (end) to 5 (switch start).
  • the fourth count value Cnt4 changes from 2 to 1.
  • the UVW phase currents iu2, iv2, and iw2 are the expressions (3), (35), and (34), respectively. It is calculated by.
  • the adjustment state determination flag Flst switches from 5 (switching start) to 6 (switching) at the moment when the peak detection flag Flpk changes from 0 to 1.
  • the third count value Cnt3 starts counting down from the predetermined value X4. Then, at the moment when the third count value Cnt3 becomes 0, the adjustment state determination flag Flst is switched from 6 (switching) to 7 (switching completed).
  • the adjustment state determination flag Flst is switched from 7 (switching completed) to 1 (search).
  • the adjustment direction determination flag Flcmp increases to 0 (the U-phase detection gain Gcu increases in the positive direction and the V-phase detection gain Gcv).
  • the first count value Cnt1 is predetermined. The countdown starts from the value X1.
  • the adjustment direction determination flag Flcmp increases to 2 (the U-phase detection gain Gcu is increased in the positive direction and the W-phase detection gain Gcw is negative). (A signal increasing in the direction) to 3 (a signal increasing the U-phase detection gain Gcu in the negative direction and increasing the W-phase detection gain Gcw in the positive direction).
  • the U-phase detection gain Gcu is increased by a predetermined value X2 from 1 (initial value) in the positive direction
  • the W-phase The detection gain Gcv is increased by a predetermined value X2 in the negative direction from 1 (initial value).
  • the U-phase detection gain Gcu increases from 1 (initial value) in the positive direction by a predetermined value X2
  • the W-phase detection gain Gcw increases from 1 (initial value) in the negative direction by a predetermined value X2.
  • the U-phase detection gain Gcu is increased from 1 (initial value) by a predetermined value X2 in the negative direction
  • the W-phase The detection gain Gcw is increased by a predetermined value X2 in the positive direction from 1 (initial value).
  • the U-phase detection gain Gcu increases from 1 (initial value) in the negative direction by a predetermined value X2
  • the W-phase detection gain Gcw increases from 1 (initial value) in the positive direction by a predetermined value X2.
  • the adjustment direction determination flag Flcmp is 3 (the U-phase detection gain Gcu is set in the negative direction). 2) (a signal that increases the U-phase detection gain Gcu in the positive direction and a signal that increases the W-phase detection gain Gcw in the negative direction).
  • the adjustment direction determination flag Flcmp is increased from 3 (a signal for increasing the U-phase detection gain Gcu in the negative direction and the W-phase detection gain Gcu in the positive direction) to 2 (the U-phase detection gain Gcu is increased in the positive direction).
  • the adjustment state determination flag Flst is switched from 2 (start) to 3 (continuation).
  • the adjustment state determination flag Flst is 3 (continuation) and the adjustment direction determination flag Flcmp is 2
  • the U-phase detection gain Gcu is gradually increased in increments of the predetermined value X3 in the positive direction.
  • Gcw is gradually increased in increments of a predetermined value X3 in the negative direction.
  • the adjustment state determination flag Flst is switched from 3 (continuation) to 0 (end), and the adjustment of the U-phase detection gain Gcu and the W-phase detection gain Gcw is completed.
  • the adjustment state determination flag Flst is switched from 0 (end) to 5 (switch start).
  • the fourth count value Cnt4 changes from 1 to 0.
  • the UVW phase currents iu2, iv2, and iw2 are the expressions (36), (6), and (34), respectively. It is calculated by the formula.
  • the adjustment state determination flag Flst switches from 5 (switching start) to 6 (switching) at the moment when the peak detection flag Flpk changes from 0 to 1.
  • the third count value Cnt3 starts counting down from the predetermined value X4. Then, at the moment when the third count value Cnt3 becomes 0, the adjustment state determination flag Flst is switched from 6 (switching) to 7 (switching completed).
  • the adjustment state determination flag Flst is switched from 7 (switching completed) to 1 (search).
  • the adjustment direction determination flag Flcmp increases by 2 (the U-phase detection gain Gcu increases in the positive direction and the W-phase detection gain Gcw).
  • Is switched to 4 a signal that increases the V-phase detection gain Gcv in the positive direction and increases the W-phase detection gain Gcv in the negative direction
  • the first count value Cnt1 is changed to the predetermined value X1. The countdown starts from.
  • the adjustment direction determination flag Flcmp increases to 4 (the V-phase detection gain Gcv is increased in the positive direction and the W-phase detection gain Gcw is negative). (A signal increasing in the direction) to 5 (a signal increasing the V-phase detection gain Gcv in the negative direction and increasing the W-phase detection gain Gcv in the positive direction).
  • the V-phase detection gain Gcv is increased from 1 (initial value) in the positive direction by a predetermined value X2, and the W-phase The detection gain Gcw is increased from 1 (initial value) by a predetermined value X2 in the negative direction.
  • the V-phase detection gain Gcv increases from 1 (initial value) in the positive direction by a predetermined value X2
  • the W-phase detection gain Gcw increases from 1 (initial value) in the negative direction by a predetermined value X2.
  • the V-phase detection gain Gcv is increased from 1 (initial value) in the negative direction by a predetermined value X2, and the W-phase The detection gain Gcw is increased by a predetermined value X2 in the positive direction from 1 (initial value).
  • the V-phase detection gain Gcv increases from 1 (initial value) in a negative direction by a predetermined value X2
  • the W-phase detection gain Gcw increases from 1 (initial value) in a positive direction by a predetermined value X2.
  • the adjustment direction determination flag Flcmp is 5 (the V-phase detection gain Gcv is negative).
  • the signal increases in the direction and increases the W-phase detection gain Gcw in the positive direction) to 4 (the signal increases in the V-phase detection gain Gcv in the positive direction and increases the W-phase detection gain Gcw in the negative direction).
  • the adjustment direction determination flag Flcmp is increased from 5 (signal that increases the V-phase detection gain Gcv in the negative direction and the W-phase detection gain Gcv in the positive direction) to 4 (the V-phase detection gain Gcv increases in the positive direction).
  • the adjustment state determination flag Flst is switched from 2 (start) to 3 (continuation).
  • the adjustment state determination flag Flst is 3 (continuation) and the adjustment direction determination flag Flcmp is 4
  • the V-phase detection gain Gcv is gradually increased in increments of the predetermined value X3 in the positive direction.
  • Gcw is gradually increased in increments of a predetermined value X3 in the negative direction.
  • the positive and negative peak values Pkp and Pkn of the q-axis harmonic current iqh fall within the third positive and negative thresholds Thp3 and Thn3.
  • the adjustment state determination flag Flst is switched from 3 (continuation) to 0 (end), and the adjustment of the V-phase detection gain Gcv and the W-phase detection gain Gcw is completed.
  • the adjustment state determination flag Flst is switched from 0 (end) to 5 (switch start).
  • the fourth count value Cnt4 changes from 0 to 2.
  • the UVW phase currents iu2, iv2, and iw2 are the expressions (3), (6), and (7), respectively. It is calculated by the formula.
  • the adjustment state determination flag Flst switches from 5 (switching start) to 6 (switching), and the third count value Cnt3 is set to the predetermined value X4. The countdown starts from. Then, at the moment when the third count value Cnt3 becomes 0, the adjustment state determination flag Flst is switched from 6 (switching) to 7 (switching completed). At this time, since the positive and negative peak values Pkp and Pkn of the q-axis harmonic current iqh are within the range of the first positive and negative thresholds Thp1 and Thn1, the adjustment state determination flag Flst is from 7 (switching completed). At the same time as switching to 0 (end), the second count value Cnt2 changes from 3 to 2.
  • the adjustment state determination flag Flst is switched from 0 (end) to 5 (switch start).
  • the fourth count value Cnt4 changes from 2 to 1.
  • the UVW phase currents iu2, iv2, and iw2 are the expressions (3), (35), and (34), respectively. It is calculated by.
  • the adjustment state determination flag Flst switches from 5 (switching start) to 6 (switching), and the third count value Cnt3 is set to the predetermined value X4. The countdown starts from. Then, at the moment when the third count value Cnt3 becomes 0, the adjustment state determination flag Flst is switched from 6 (switching) to 7 (switching completed). At this time, since the positive and negative peak values Pkp and Pkn of the q-axis harmonic current iqh are within the range of the first positive and negative thresholds Thp1 and Thn1, the adjustment state determination flag Flst is from 7 (switching completed). Switch to 0 (end). At the same time, the second count value Cnt1 changes from 2 to 1.
  • the adjustment state determination flag Flst is switched from 0 (end) to 5 (switch start).
  • the fourth count value Cnt4 changes from 1 to 0.
  • the UVW phase currents iu2, iv2, and iw2 are the expressions (6), (36), and (34), respectively. It is calculated by the formula.
  • the adjustment state determination flag Flst switches from 5 (switching start) to 6 (switching), and the third count value Cnt3 is set to the predetermined value X4. The countdown starts from. Then, at the moment when the third count value Cnt3 becomes 0, the adjustment state determination flag Flst is switched from 6 (switching) to 7 (switching completed). At this time, since the positive and negative peak values Pkp and Pkn of the q-axis harmonic current iqh are within the range of the first positive and negative thresholds Thp1 and Thn1, the adjustment state determination flag Flst is from 7 (switching completed). Switch to 0 (end). At the same time, the second count value Cnt1 changes from 1 to 0.
  • the correction function start / stop flag Flss changes from 2 (started) to 0 (stop), and the correction function is stopped.
  • the UVW phase currents iu2, iv2, and iw2 are calculated by the formulas (3), (6), and (34), respectively.
  • the product of the gain Gsu of the U-phase current sensor 50 and the U-phase detection gain Gcu and the V-phase current The multiplication values of the gain Gsv and the V-phase detection gain Gcv of the sensor 55 and the gain Gsw and the W-phase detection gain Gcw of the W-phase current sensor 58 can be made substantially coincident. That is, variations in the gain Gsv of the U-phase current sensor 50, the V-phase current sensor 55, and the gain Gsw of the W-phase current sensor 58 can be corrected.
  • the harmonic current iqh having a frequency twice the electrical angular frequency fe of the rotor 64 of the motor 60 included in the q-axis current iq is the gain Gsu of the U-phase current sensor 50 and the gain of the V-phase current sensor 55.
  • the waveform decreases gradually (or increases) for a certain period, increases (or decreases) for a certain period, and then gradually decreases.
  • FIG. 25 is a diagram for explaining the vehicle system according to the third embodiment.
  • the first embodiment described above is calculated by the three-phase / dq axis conversion unit 180 in the two-phase current detection system in which current sensors are attached to the U phase and the V phase, the U phase and the W phase, or the V phase and the W phase.
  • the harmonic extraction unit 220 extracts a harmonic current having a frequency twice the electrical angular frequency fe of the rotor 64 of the motor 60 included in the q-axis current iq (or d-axis current id).
  • This is a method of correcting variations in the gain of the current sensor so that the peak-to-peak value of the q-axis harmonic current iqh (or d-axis harmonic current idh) falls within the range of the third positive and negative thresholds Thp3 and Thn3. .
  • a harmonic voltage command having a frequency twice the electrical angular frequency fe of the rotor 64 of the motor 60 included in vq * (or d-axis voltage command vd *) is extracted by the harmonic extractor 220 and extracted. Corrects variations in current sensor gain so that the peak-to-peak value of q-axis harmonic voltage command vqh * (or d-axis harmonic voltage command vdh *) falls within the range of third positive and negative thresholds Thp3 and Thn3. It is a method to do. Other than that, the configuration is the same as that of the first embodiment described above, and a description thereof is omitted.
  • FIG. 26 is a diagram for explaining the vehicle system according to the fourth embodiment.
  • the q axis current iq (or the d axis calculated by the three phase / dq axis conversion unit 180).
  • the harmonic current having a frequency twice the electrical angular frequency fe of the rotor 64 of the motor 60 included in the current id) is extracted by the harmonic extraction unit 220, and the extracted q-axis harmonic current iqh (or d)
  • the q axis voltage command vq * (or the d axis voltage command vd calculated by the voltage command calculation unit 190).
  • a harmonic voltage command having a frequency twice the electrical angular frequency fe of the rotor 64 of the motor 60 included in the motor 60 is extracted by the harmonic extractor 220, and the extracted q-axis harmonic voltage command vqh * (or , D-axis harmonic voltage command vdh *) is a method of correcting variations in the gain of the current sensor so that the peak-to-peak value falls within the range of the third positive and negative thresholds Thp3 and Thn3.
  • the configuration is the same as that of the second embodiment, and a description thereof will be omitted.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Ac Motors In General (AREA)
  • Inverter Devices (AREA)

Abstract

本発明の課題は、インバータ制御装置の大型化と高コスト化を招くことなく、電流センサのゲインのばらつきを補正することである。 本発明に係るインバータ制御装置(160)は、電流センサ(50、55)により検出された前記出力電流をdq軸電流に変換する3相/dq軸変換部(180)と、前記電流センサの検出ゲインを各相ごとに調整するゲイン調整部(250)と、を備え、前記dq軸電流に含まれている2次高調波成分(iqh)の電流値が所定の閾値以上である場合に、前記ゲイン調整部(250)は、前記2次高調波成分の電流値が前記閾値を下回るように、前記電流センサのゲインを補正することを特徴とする。

Description

インバータ制御装置
 本発明は、車載用インバータの制御装置に関し、特に、モータ電流の検出ゲインの補正方法に関する。
 本技術分野の背景技術として、特開2004-120814号公報(特許文献1)がある。この公報には、「電動機を制御するインバータと、前記インバータに制御され前記電動機巻線に流れる複数相の電流を検出する電流検出手段と、前記電流検出手段にて検出された電流より励磁電流成分であるd軸電流およびトルク電流成分であるq軸電流の少なくとも一方を求める電流演算手段と、前記d軸電流およびq軸電流の少なくとも一方より電気角周波数で見た際の2次周波数の実軸成分または虚軸成分を算出する周波数成分算出手段と、前記d軸電流およびq軸電流の少なくとも一方の2次周波数の実軸成分または虚軸成分より前記電流検出手段の複数相間の検出ゲインを補正する」と記載されている。これにより、複数相間の検出ゲインのばらつきを補正することができるため、モータのトルクリプルを低減することができる。
特開2004-120814号公報
 特許文献1に記載の方法は、複数相間の検出ゲインのばらつきを補正する際に、モータの電流と電圧の位相差を用いて、前記d軸電流およびq軸電流の少なくとも一方より電気角周波数で見た際の2次周波数の実軸成分または虚軸成分を算出する必要がある。しかしながら、特許文献1には、前記位相差の具体的な取得方法が記載されていない。また、前記位相差を取得するために、たとえば、モータの電圧を検出するための電圧センサの追加が必要となる場合がある。さらに、モータの電圧と電流の位相差に応じて、前記実軸成分または虚軸成分の値を予め記憶させておくためのメモリを追加する場合もある。すなわち、特許文献1では、複数相間の検出ゲインのばらつきを補正するために、電圧センサやメモリの追加が必要となる場合があり、インバータおよびインバータ制御装置の大型化と高コスト化を招く課題がある。
 そこで、本発明は、インバータ制御装置の大型化と高コスト化を招くことなく、電流センサのゲインのばらつきを補正することを目的とする。
 本発明に係るインバータ制御装置は、3相交流モータへの出力電流を制御するインバータ制御装置であって、電流センサにより検出された前記出力電流をdq軸電流に変換する3相/dq軸変換部と、前記電流センサの検出ゲインを各相ごとに調整するゲイン調整部と、を備え、前記dq軸電流に含まれている2次高調波成分の電流値が所定の閾値以上である場合に、前記ゲイン調整部は、前記2次高調波成分の電流値が前記閾値を下回るように前記検出ゲインを調整し、前記電流センサのゲインのばらつきを補正することを特徴とする。
 本発明に係るインバータ制御装置は、装置の大型化と高コスト化を招くことなく、電流センサのゲインのばらつきを補正することができる。
実施例1にかかる車両システムを説明する図である。 検出電流変換部170の処理手順を説明する図である。 3相/dq軸変換部180の処理手順を説明する図である。 高調波抽出部220の処理手順を説明する図である。 U相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvと3相/dq軸変換部180で算出されたq軸電流iqとモータ60の回転子64の電気角θeと図4の処理によって抽出されたq軸高調波電流iqhとの関係を説明する図である。 ピーク検出部225の処理手順を説明する図である。 ゲイン調整状態決定部230の処理手順を説明する図である。 ゲイン調整方向探索部240の処理手順を説明する図である。 図8のステップf-7において、調整状態決定フラグFlstが、1(探索)を示していない時のゲイン調整方向探索部240の処理手順を説明する図である。 ゲイン調整部250の処理手順を説明する図である。 U相電流センサ50のゲインGsuと、V相電流センサ55のGsvと、q軸高調波電流iqhと、ピーク検出フラグFlpkと、調整状態決定フラグFlstと、調整方向決定フラグFlcmpと、第1のカウント値Cnt1と、U相検出ゲインGcuとV相検出ゲインGcvとの関係を説明する図である。 電圧指令演算部190の処理手順を説明する図である。 dq軸/3相変換部200の処理手順を説明する図である。 PWM信号生成部210の処理手順を説明する図である。 実施例2にかかる車両システムを説明する図である。 実施例2にかかるゲイン補正機能起動停止部270の処理手順を説明する図である。 実施例2にかかるゲイン調整状態決定部230の処理手順を説明する図である。 実施例2にかかるゲイン調整方向探索部240の処理手順を説明する図である。 図18に示したステップm-9において、調整状態決定フラグFlstが、1(探索)を示していない時のゲイン調整方向探索部240の処理手順を説明する図である。 実施例2にかかるゲイン調整部250の処理手順を説明する図である。 図20に示したステップn-5において、調整状態決定フラグFlstが、1(探索)を示していない時のゲイン調整部250の処理手順を説明する図である。 図21に示したステップn-23-13において、調整状態決定フラグFlstが、3(継続)を示していない時のゲイン調整部250の処理手順を説明する図である。 実施例2にかかる検出電流変換部170の処理手順を説明する図である。 U相電流センサ50のゲインGsuと、V相電流センサ55のゲインGsvと、W相電流センサ58のゲインGswと、q軸高調波電流iqhと、ピーク検出フラグFlpkと、補正機能起動停止フラグFlssと、調整状態決定フラグFlstと、調整方向決定フラグFlcmpと、第1のカウント値Cnt1と、第2のカウント値Cnt2と、第3のカウント値Cnt3と、第4のカウント値Cnt4と、U相検出ゲインGcuとV相検出ゲインGcvとW相検出ゲインGcwの関係を説明する図である。 実施例3にかかる車両システムを説明する図である。 実施例4にかかる車両システムを説明する図である。
 以下、図面を参照して、本発明に係る電力変換装置の実施の形態について説明する。なお、各図において同一要素については同一の符号を記し、重複する説明は省略する。
 図1は、実施例1にかかる車両システムを説明する図である。本実施例にかかる車両システムは、バッテリ10と、平滑キャパシタ20と、インバータ40と、U相電流センサ50と、V相電流センサ55と、モータ60と、角度センサ70と、モータ60の出力軸80と、トランスミッション90と、クランクシャフト100と、エンジン110と、プロペラシャフト120と、ディファレンシャルギア130と、ドライブシャフト140と、駆動輪150と、インバータ制御装置160を有する。
 バッテリ10は、平滑キャパシタ20とインバータ40の直流側に並列に接続され、インバータ40に直流電圧を供給する。インバータ40のU相は、U相電流センサ50を介してモータ60のU相巻線61に接続される。インバータ40のV相は、V相電流センサ55を介してモータ60のV相巻線62に接続される。インバータ40のW相は、モータ60のW相巻線63に接続される。ここでは、U相とV相に電流センサを取り付けた構成で説明しているが、U相とW相、もしくはV相とW相に電流センサを取り付けた2相電流検出システムでも良い。
 また、インバータ40は、インバータ制御装置160で生成されたPWM信号Sup、Sun、Svp、Svn、Swp、Swnに基づいて、各相上下アームのスイッチング素子41~46をオンもしくはオフし、バッテリ10から供給された直流電圧を可変電圧、可変周波数の3相交流電圧に変換する。そして、インバータ40は、変換した3相交流電圧をモータ60の固定子に巻かれた3相巻線61~63に印加し、モータ60の固定子に巻かれた3相巻線61~63に3相交流電流を発生させる。モータ60は、固定子に巻かれた3相巻線61~63に流れる3相交流電流によって回転磁界を生成し、生成した回転磁界により回転子64を加速もしくは減速させ、モータ60のトルクを生成する。
 本実施例にかかるインバータ40の主回路は、スイッチング素子41~46を有する。スイッチング素子41~46は、絶縁ゲートバイポーラトランジスタ(IGBT)や金属酸化膜型電界効果トランジスタ(MOSFET)などと、ダイオードを組み合わせて構成されている。以下では、スイッチング素子41~46に、IGBTとダイオードを適用したインバータ40の主回路を想定して説明する。なお、本実施例に係るインバータ40の回路構成は、既知のものであるため、ここでは詳細な説明を省略する。インバータ40のU相上アームのスイッチング素子41は、インバータ制御装置160で生成されたPWM信号Supに基づいて、オンもしくはオフする。以降同様に、スイッチング素子42、43、44、45、46は、それぞれ、PWM信号Sun、Svp、Svn、Swp、Swnに基づいて、オンもしくはオフする。
 本実施例にかかるインバータ制御装置160は、検出電流変換部170、3相/dq軸変換部180、電圧指令演算部190、dq軸/3相変換部200、PWM信号生成部210、高調波抽出部220、ピーク検出部225、ゲイン調整状態決定部230、ゲイン調整方向探索部240、ゲイン調整部250を有する。
 インバータ制御装置160は、U相電流センサ50で検出したU相電流iu1と、V相電流センサ55で検出したV相電流iv1と、後述するゲイン調整部250で調整されたU相検出ゲインGcuと、V相検出ゲインGcvと、を検出電流変換部170に入力する。インバータ制御装置160は、U相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvのばらつきを補正し、新たに、U相電流iu2とV相電流iv2とW相電流iw2を算出する。インバータ制御装置160は、検出電流変換部170で算出したUVW相電流iu2、iv2、iw2と、角度センサ70で検出したモータ60の回転子64の電気角θeを3相/dq軸変換部180に入力し、d軸電流idとq軸電流iqを算出する。
 インバータ制御装置160は、3相/dq軸変換部180で算出したq軸電流iqと、角度センサ70で検出したモータ60の回転子64の電気角θeと、を高調波抽出部220に入力し、q軸電流iq(もしくは、d軸電流id)に含まれているモータ60の回転子64の電気角周波数feの2倍の周波数の高調波電流を算出する。インバータ制御装置160は、高調波抽出部220で算出したq軸高調波電流iqh(もしくは、d軸高調波電流idh)をピーク検出部225に入力し、q軸高調波電流(もしくはd軸高調波電流)の正のピーク値Pkpと負のピーク値Pknを検出するとともに、前記正負のピーク値Pkp、Pknを検出した時だけオンするピーク検出フラグFlpkを生成する。インバータ制御装置160は、ピーク検出部225で生成したq軸高調波電流(もしくはd軸高調波電流)の正負のピーク値Pkp、Pknとピーク検出フラグFlpkをゲイン調整状態決定部230に入力し、U相検出ゲインGcuとV相検出ゲインGcvの調整状態(調整方向の探索、調整開始、調整継続、調整終了、リセット)を決定する調整状態決定フラグFlstを生成する。また、インバータ制御装置160は、調整状態決定フラグFlstが探索を示している状態で、ピーク検出フラグFlpkがオンした時にだけカウントダウンする第1のカウント値Cnt1を生成する。
 インバータ制御装置160は、ピーク検出部225で生成したq軸高調波電流(もしくはd軸高調波電流)の正負のピーク値Pkp、Pknと、ピーク検出フラグFlpkと、ゲイン調整状態決定部230で生成した調整状態決定フラグFlstと、第1のカウント値Cnt1と、をゲイン調整方向探索部240に入力し、U相検出ゲインGcuとV相検出ゲインGcvを調整する方向(正方向に増大させるのか、もしくは、負方向に増大させるのか)を決定する調整方向決定フラグFlcmpを生成する。さらに、インバータ制御装置160は、ピーク検出部225で生成したピーク検出フラグFlpkと、ゲイン調整状態決定部230で生成した調整状態決定フラグFlstと、ゲイン調整方向探索部240で生成した調整方向決定フラグFlcmpと、をゲイン調整部250に入力し、U相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvのばらつきをバランスさせるように、U相検出ゲインGcuとV相検出ゲインGcvを調整する。
 そして、インバータ制御装置160は、3相/dq軸変換部180で算出したd軸電流id及びq軸電流iqと、d軸電流指令id*及びq軸電流指令iq*と、を電圧指令演算部190に入力し、d軸電圧指令vd*とq軸電圧指令vq*を生成する。インバータ制御装置160は、電圧指令演算部190で生成したd軸電圧指令vd*及びq軸電圧指令vq*と、角度センサ70で検出したモータ60の回転子の電気角θeと、をdq軸/3相変換部200に入力し、U相電圧指令vu*とV相電圧指令vv*とW相電圧指令vw*とを生成する。インバータ制御装置160は、dq軸/3相変換部200で算出したU相電圧指令vu*とV相電圧指令vv*とW相電圧指令vw*をPWM信号生成部210に入力し、インバータ40の各相上下アームのスイッチング素子41~46を構成するIGBTのオンとオフを制御するためのPWM信号Sup、Sun、Svp、Svn、Swp、Swnを生成する。
 以下では、q軸電流iqに含まれているモータ60の回転子64の電気角周波数feの2倍の周波数の高調波電流iqhを利用した場合について説明するが、d軸電流idに含まれているモータ60の回転子64の電気角周波数feの2倍の周波数の高調波電流idhを利用しても問題ない。
(検出電流変換部170の処理内容の説明)
 図2は、検出電流変換部170の処理手順を説明する図である。まず、検出電流変換部170は、ステップa-1とa-2において、U相電流センサ50で検出したU相電流iu1と、V相電流センサ55で検出したV相電流iv1を取得する。次に、検出電流変換部170は、ステップa-3とa-4において、後述するゲイン調整部250で調整されたU相検出ゲインGcuとV相検出ゲインGcvを取得する。次に、検出電流変換部170は、ステップa-5において、ステップa-1で取得したU相電流iu1とステップa-3で取得したU相検出ゲインGcuを(1)式に代入し、U相電流iu2を算出する。
Figure JPOXMLDOC01-appb-M000001
 ここで、ステップa-1で取得したU相電流iu1は、モータ60のU相巻線61に流れている真のU相電流iutとU相電流センサ50のゲインGsuを用いて(2)式で表される。
Figure JPOXMLDOC01-appb-M000002
 したがって、U相電流iu2は、(2)式を(1)式に代入することにより、(3)式で表すことができる。
Figure JPOXMLDOC01-appb-M000003
 次に、検出電流変換部170は、ステップa-6において、ステップa-2で取得したV相電流iv1とステップa-4で取得したV相検出ゲインGcvを(4)式に代入し、V相電流iv2を算出する。
Figure JPOXMLDOC01-appb-M000004
 ここで、ステップa-2で取得したV相電流iv1は、モータ60のV相巻線62に流れている真のV相電流ivtとV相電流センサ55のゲインGsvを用いて(5)式で定義している。
Figure JPOXMLDOC01-appb-M000005
 したがって、V相電流iv2は、(5)式を(4)式に代入することにより、(6)式で表すことができる。
Figure JPOXMLDOC01-appb-M000006
 次に、検出電流変換部170は、ステップa-7において、ステップa-5で算出したU相電流iu2とステップa-6で算出したV相電流iv2を(7)式に代入し、W相電流iw2を算出する。
Figure JPOXMLDOC01-appb-M000007
 詳細は後述するが、ゲイン調整部250は、前記(3)式中に示したU相電流センサ50のゲインGsuとU相検出ゲインGcuの乗算値と、前記(6)式中に示したV相電流センサ55のゲインGsvとV相検出ゲインGcvの乗算値とが等しくなるように、U相検出ゲインGcuとV相検出ゲインGcvの値を調整する。このように、U相検出ゲインGcuとV相検出ゲインGcvを調整することにより、UV相の電流センサ50、55のゲインのばらつきを補正することができる。
(3相/dq軸変換部180の処理内容の説明)
 図3は、3相/dq軸変換部180の処理手順を説明する図である。まず、3相/dq軸変換部180は、ステップb-1~b-3において、検出電流変換部170で算出したU相電流iu2とV相電流iv2とW相電流iw2を取得する。次に、3相/dq軸変換部180は、ステップb-4において、角度センサ70で検出したモータ60の回転子64の電気角θeを取得する。
 そして、3相/dq軸変換部180は、ステップb-5において、ステップb―1~b―4で取得したU相電流iu2とV相電流iv2とW相電流iw2とモータ60の回転子64の電気角θeを(8)式に代入し、d軸電流idとq軸電流iqを算出する。
Figure JPOXMLDOC01-appb-M000008
(高調波抽出部220の処理内容の説明)
 図4は、高調波抽出部220の処理手順を説明する図である。まず、高調波抽出部220は、ステップc-1において、3相/dq軸変換部180で算出したq軸電流iqを取得する。次に、高調波抽出部220は、ステップc-2において、角度センサ70で検出したモータ60の回転子64の電気角θeを取得する。次に、高調波抽出部220は、ステップc-3において、ステップc-2で取得した最新の電気角θeと、後述するステップc-8で算出された過去の電気角θeoldを(9)式に代入し、最新の電気角θeと過去の電気角θeoldとの電気角の差分値Δθeを算出する。
Figure JPOXMLDOC01-appb-M000009
 (9)式で算出した電気角の差分値Δθeが負の値である場合には、高調波抽出部220は、ステップc-3において、最新の電気角θeと過去の電気角θeoldを(10)式に代入し、最新の電気角の差分値Δθeを再計算する。
Figure JPOXMLDOC01-appb-M000010
 次に、高調波抽出部220は、ステップc-4において、ステップc-3で算出した最新の電気角の差分値Δθeが、所定値θx以上であるか否かを判定する。ここで、所定値θxは、(11)式によって予め定められている。
Figure JPOXMLDOC01-appb-M000011
 ステップc-4において、最新の電気角の差分値Δθeが、所定値θx以上である場合には、高調波抽出部220は、ステップc-5において、マイコンのメモリに記憶させておいたq軸電流補間値iqinter(0)~iqinter(N-1)のデータを移動させる。具体的には、時系列的に過去2番目に古いデータであるq軸電流補間値iqinter(N-1)を、過去最も古いデータであるq軸電流補間値iqinter(N)に上書きする。次いで、過去3番目に古いデータであるq軸電流補間値iqinter(N-2)を、過去2番目に古いデータであるq軸電流補間値iqinter(N-1)に上書きする。このように、q軸電流補間値iqinter(0)~iqinter(N-1)のデータを、時系列的に古い順番に移動させ、最新のデータであるq軸電流補間値iqinter(0)を、2番目に新しいデータであるq軸電流補間値iqinter(1)に上書きした時点で終了する。なお、Nは(12)式に示す値である。
Figure JPOXMLDOC01-appb-M000012
 次に、高調波抽出部220は、ステップc-6において、ステップc-1で取得した最新のq軸電流iqと、ステップc-3で算出された最新の電気角の差分値Δθeと、後述するステップc-9で算出された1演算周期前の電気角の差分値Δθeoldと、後述するステップc-10で算出された1演算周期前のq軸電流iqoldと、所定値θxを(13)式に代入し、後述するステップc-8で算出された過去の電気角θeoldから所定値θxだけ変化した点のq軸電流の補間値iqinter(0)を算出する。
Figure JPOXMLDOC01-appb-M000013
 次に、高調波抽出部220は、ステップc-7において、モータ60の回転子64の電気角θeの1周期分のq軸電流補間値iqinter(0)~iqinter(N)を(14)式に代入し、モータ60の回転子64の電気角周波数feの2倍の周波数のq軸高調波電流iqhを算出する。
Figure JPOXMLDOC01-appb-M000014
 そして、高調波抽出部220は、ステップc-8において、ステップc-2で取得した最新の電気角θeとステップc-3で算出した最新の差分値Δθeと所定値θxを(15)式に代入し、過去の電気角θeoldの値を更新する。
Figure JPOXMLDOC01-appb-M000015
 ここで、(15)式によって算出された過去の電気角θeoldが負の値である場合には、高調波抽出部220は、ステップc-8において、ステップc-2で取得した最新の電気角θeとステップc-3で算出した最新の差分値Δθeと所定値θxを(16)式に代入し、過去の電気角θeoldを再計算する。
Figure JPOXMLDOC01-appb-M000016
 次に、高調波抽出部220は、ステップc-9において、ステップc-3で算出した最新の電気角の差分値Δθeを1演算周期前の電気角の差分値Δθeoldとして設定する。次に、高調波抽出部220は、ステップc-10において、ステップc-1で取得したq軸電流iqを1演算周期前のq軸電流iqoldとして設定する。
 また、ステップc-4において、最新の電気角の差分値Δθeが所定値θx以上ではない場合には、高調波抽出部220は、前述したステップc-9とc-10の処理を実施する。
 図5は、U相電流センサ50のゲインGsuと、V相電流センサ55のゲインGsvと、3相/dq軸変換部180で算出されたq軸電流iqと、モータ60の回転子64の電気角θeと上述した図4の処理によって抽出されたq軸高調波電流iqhと、のそれぞれの関係を説明する図である。
 まず、U相電流センサのゲインGsuとV相電流センサのゲインGsvの値が異なると、3相/dq軸変換部180で算出したq軸電流iqには、モータ60の回転子64の電気角周波数feの2倍の周波数の脈動が発生していることがわかる。また、q軸電流高調波iqhは、電気角θeが過去の電気角θeoldから所定値θxだけ変化した時に更新されていることが確認できる。また、図5において、時刻t1から時刻t2までの期間Aのモータ60の回転子64の電気角周波数fe1は(17)式で設定されている。
Figure JPOXMLDOC01-appb-M000017
 したがって、期間Aのモータ60の回転子64の電気角θe1は(18)式で表せる。
Figure JPOXMLDOC01-appb-M000018
 また、時刻t2から時刻t3までの期間Bのモータ60の回転子64の電気角周波数fe2は(19)式で設定されている。
Figure JPOXMLDOC01-appb-M000019
 したがって、期間Bのモータ60の回転子64の電気角θe2は(20)式で表せる。
Figure JPOXMLDOC01-appb-M000020
 また、時刻t3から時刻t4までの期間Cのモータ60の回転子64の電気角周波数fe3は(21)式で設定されている。
Figure JPOXMLDOC01-appb-M000021
 したがって、期間Cのモータ60の回転子64の電気角θe3は(22)式で表せる。
Figure JPOXMLDOC01-appb-M000022
 また、期間A~期間Cのモータ60の回転子64の電気角周波数fe1~fe3の大小関係は、(23)式のように設定されている。
Figure JPOXMLDOC01-appb-M000023
 (17)~(23)式により、モータ60の回転子64の電気角θeが、過去の電気角θeoldから所定値θxだけ変化する際に要する時間は、期間Bが最も短く、それに次いで期間Aが短く、期間Cは最も長いことがわかる。したがって、q軸高調波電流iqhが更新される時間の間隔は、期間Bが最も短く、次に期間Aが短く、期間Cは最も長くなっている。
 このように、電気角θeの変化量に基づいて、q軸高調波電流iqhの更新タイミングを決定することにより、モータ60の回転子64の電気角周波数feが変動した場合においても、高精度にq軸電流高調波電流iqhを抽出することができる。
(ピーク検出部225の処理内容の説明)
 図6は、実施例1にかかるピーク検出部225の処理手順を説明する図である。まず、ピーク検出部225は、ステップd-1において、高調波抽出器220で抽出したq軸高調波電流iqhを取得する。次に、ピーク検出部225は、ステップd-2において、ピーク検出フラグFlpkを0(オフ)に設定する。
 次に、ピーク検出部225は、ステップd-3において、ステップd-1で取得した最新のq軸高調波電流iqhが、後述するステップd-8で算出した第1のq軸高調波電流の過去値iqhold1よりも小さいか否かを判定する。ステップd-3において、最新のq軸高調波電流iqhが、第1のq軸高調波電流の過去値iqhold1よりも小さい場合には、ピーク検出部225は、ステップd-4において、第1のq軸高調波電流の過去値iqhold1が、後述するステップd-7で算出した第2のq軸高調波電流の過去値iqhold2よりも大きいか否かを判定する。ステップd-4において、第1のq軸高調波電流の過去値iqhold1が、第2のq軸高調波電流の過去値iqhold2よりも大きい場合には、ピーク検出部225は、ステップd-5において、後述するステップd-8で算出した第1のq軸高調波電流の過去値iqhold1を(24)式に代入し、q軸高調波電流の正のピーク値Pkpを算出する。
Figure JPOXMLDOC01-appb-M000024
 次に、ピーク検出部225は、ステップd-6において、ピーク検出フラグFlpkを1(オン)に設定する。次に、ピーク検出部225は、ステップd-7において、第1のq軸高調波電流の過去値iqhold1を第2のq軸高調波電流の過去値iqhold2として設定する。次に、ピーク検出部225は、ステップd-8において、最新のq軸高調波電流iqhを第1のq軸高調波電流の過去値iqhold1として設定する。
 一方、ステップd-4において、第1のq軸高調波電流の過去値iqhold1が、第2のq軸高調波電流の過去値iqhold2よりも大きくない場合には、ピーク検出部225は、前述したステップd-7とd-8の処理を実施する。
 また、ステップd-3において、最新のq軸高調波電流iqhが、第1のq軸高調波電流の過去値iqhold1よりも小さくない場合には、ピーク検出部225は、ステップd-9において、最新のq軸高調波電流iqhが、第1のq軸高調波電流の過去値iqhold1よりも大きいか否かを判定する。ステップd-9において、最新のq軸高調波電流iqhが、第1のq軸高調波電流の過去値iqhold1よりも大きい場合には、ピーク検出部225は、ステップd-10において、第1のq軸高調波電流の過去値iqhold1が、第2のq軸高調波電流の過去値iqhold2よりも小さいか否かを判定する。ステップd-10において、第1のq軸高調波電流の過去値iqhold1が、第2のq軸高調波電流の過去値iqhold2よりも小さい場合には、ピーク検出部225は、ステップd-11において、ステップd-8で算出された第1のq軸高調波電流の過去値iqhold1を(25)式に代入し、q軸高調波電流の負のピーク値Pkpを算出する。
Figure JPOXMLDOC01-appb-M000025
 そして、ピーク検出部225は、前述したステップd-6~d-8の処理を実施する。一方、ステップd-10において、第1のq軸高調波電流の過去値iqhold1が、第2のq軸高調波電流の過去値iqhold2よりも小さくない場合には、ピーク検出部225は、前述したステップd-7とd-8の処理を実施する。
 また、ステップd-9において、最新のq軸高調波電流iqhが、第1のq軸高調波電流の過去値iqhold1よりも大きくない場合には、ピーク検出部225は、何も処理を実施することなく、次回の演算タイミングでステップd-1の処理から再スタートする。
 このように、q軸高調波電流の正負のピーク値Pkp、Pknを算出することにより、第1のq軸高調波電流の過去値iqhold1が、最新のq軸高調波電流iqhと第2のq軸高調波電流の過去値iqhold2よりも大きくなった時に、第1のq軸高調波電流の過去値iqhold1が、q軸高調波電流の正のピーク値Pkpとなる。さらに、第1のq軸高調波電流の過去値iqhold1が、最新のq軸高調波電流iqhと第2のq軸高調波電流の過去値iqhold2よりも小さくなった時に、第1のq軸高調波電流の過去値iqhold1が、q軸高調波電流の負のピーク値Pknとなる。また、ピーク検出フラグFlpkは、q軸高調波電流の正負のピーク値Pkp、Pknが算出された時にだけオンする信号となる。
(ゲイン調整状態決定部230の処理内容の説明)
 図7は、実施例1にかかるゲイン調整状態決定部230の処理手順を説明する図である。まず、ゲイン調整状態決定部230は、ステップe-1とe-2において、ピーク検出部225で生成したq軸高調波電流の正負のピーク値Pkp、Pknを取得する。次に、ゲイン調整状態決定部230は、ステップe-3において、ピーク検出部225で生成したピーク検出フラグFlpkを取得する。
 次に、ゲイン調整状態決定部230は、ステップe-4において、ステップe-3で取得したピーク検出フラグFlpkが、1(オン)であるか否かを判定する。ステップe-4において、ピーク検出フラグFlpkが、オンである場合には、ゲイン調整状態決定部230は、ステップe-5において、後述するステップe-8、e-14、e-16、e-20もしくはe-21で設定した調整状態決定フラグFlstが、0(終了)を示しているか否かを判定する。ステップe-5において、調整状態決定フラグFlstが、0(終了)を示している場合には、ゲイン調整状態決定部230は、ステップe-6において、ステップe-1で取得したq軸高調波電流の正のピーク値Pkpが、第1の正の閾値Thp1よりも大きいか否かを判定する。ステップe-6において、q軸高調波電流の正のピーク値Pkpが、第1の所定の正の閾値Thp1よりも大きい場合には、ゲイン調整状態決定部230は、ステップe-7において、第1のカウント値Cnt1を所定値X1に設定する。ここで、所定値X1は、2の倍数の正の整数に設定されている。次に、ゲイン調整状態決定部230は、ステップe-8において、調整状態決定フラグFlstを1(探索)に設定する。
 一方、ステップe-6において、q軸高調波電流の正のピーク値Pkpが、第1の正の閾値Thp1よりも大きくない場合には、ゲイン調整状態決定部230は、ステップe-9において、ステップe-2で取得したq軸高調波電流の負のピーク値Pknが、第1の負の閾値Thn1よりも小さいか否かを判定する。ステップe-9において、q軸高調波電流の負のピーク値Pknが、第1の負の閾値Thn1よりも小さい場合には、ゲイン調整方向決定部230は、前述したステップe-7とe-8の処理を実施する。一方、ステップe-9において、q軸高調波電流の負のピーク値Pknが、第1の負の閾値Thn1よりも小さくない場合には、ゲイン調整状態決定部230は、何も処理を実施することなく、次回の演算タイミングでステップe-1の処理から再スタートする。
 また、ステップe-5において、調整状態決定フラグFlstが、0(終了)を示していない場合には、ゲイン調整状態決定部230は、ステップe-10において、調整状態決定フラグFlstが、4(リセット)を示しているか否かを判定する。ステップe-10において、調整状態決定フラグFlstが、4(リセット)を示している場合には、ゲイン調整状態決定部230は、前述したステップe-6の処理に移行する。一方、ステップe-10において、調整状態決定フラグFlstが、4(リセット)を示していない場合には、ゲイン調整状態決定部230は、ステップe-11において、調整状態決定フラグFlstが、1(探索)を示しているか否かを判定する。
 ステップe-11において、調整状態決定フラグFlstが、1(探索)を示している場合には、ゲイン調整状態決定部230は、ステップe-12において、第1のカウント値Cnt1をカウントダウンする。次に、ゲイン調整状態決定部230は、ステップe-13において、第1のカウント値Cnt1が、0であるか否かを判定する。ステップe-13において、第1のカウント値Cnt1が、0である場合には、ゲイン調整状態決定部230は、ステップe-14において、調整状態決定フラグFlstを2(調整開始)に設定する。すなわち、ゲイン調整状態決定部230は、第1のカウント値Cnt1が、所定値X1から0に減少するまで、調整状態決定フラグを1(探索)の状態に維持する。一方、ステップe-13において、第1のカウント値Cnt1が、0ではない場合には、ゲイン調整状態決定部230は、何も処理を実施することなく、次回の演算タイミングでステップe-1の処理から再スタートする。
 また、ステップe-11において、調整状態決定フラグFlstが、1(探索)を示していない場合には、ゲイン調整状態決定部230は、ステップe-15において、q軸高調波電流の正のピーク値Pkpが、第2の正の閾値Thp2よりも大きいか否かを判定する。q軸高調波電流の正のピーク値Pkpが、第2の正の閾値Thp2よりも大きい場合には、ゲイン調整状態決定部230は、ステップe-16において、調整状態決定フラグFlstを4(リセット)に設定する。また、ステップe-15において、q軸高調波電流の正のピーク値Pkpが、第2の正の閾値Thp2よりも大きくない場合には、ゲイン調整状態決定部230は、ステップe-17において、q軸高調波電流の負のピーク値Pknが、第2の負の閾値Thn2よりも小さいか否かを判定する。ステップe-17において、q軸高調波電流の負のピーク値Pknが、第2の所定の負の閾値Thn2よりも小さい場合には、ゲイン調整状態決定部230は、前述したステップe-16の処理を実施する。一方、ステップe-17において、q軸高調波電流の負のピーク値Pknが、第2の負の閾値Thn2よりも小さくない場合には、ゲイン調整状態決定部230は、ステップe-18において、q軸高調波電流の正のピーク値Pkpが、第3の正の閾値Thp3よりも小さいか否かを判定する。
 ステップe-18において、q軸高調波電流の正のピーク値Pkpが、第3の正の閾値Thp3よりも小さい場合には、ゲイン調整状態決定部230は、ステップe-19において、q軸高調波電流の負のピーク値Pknが、第3の負の閾値Thn3よりも大きいか否かを判定する。ステップe-19において、q軸高調波電流の負のピーク値Pknが、第3の負の閾値Thn3よりも大きい場合には、ゲイン調整状態決定部230は、ステップe-20において、調整状態決定フラグFlstを0(終了)に設定する。一方、ステップe-19において、q軸高調波電流の負のピーク値Pknが、第3の負の閾値Thn3よりも大きくない場合には、ゲイン調整状態決定部230は、ステップe-21において、調整状態決定フラグFlstを3(継続)に設定する。また、ステップe-18において、q軸高調波電流の正のピーク値Pkpが、第3の正の閾値Thp3よりも小さくない場合には、ゲイン調整状態決定部230は、前述したステップe-21の処理を実施する。また、ステップe-4において、ピーク検出フラグFlpkが、1(オン)ではない場合には、ゲイン調整状態決定部230は、何も処理を実施することなく、次回の演算タイミングでステップe-1の処理から再スタートする。ここで、前述した第1~第3の正の閾値の大小関係は、(26)式のように設定されている。
Figure JPOXMLDOC01-appb-M000026
 また、前述した第1~第3の負の閾値の大小関係は、(27)式のように設定されている。
Figure JPOXMLDOC01-appb-M000027
 このように調整状態決定フラグFlstを生成することにより、後述するゲイン調整部250において、U相検出ゲインGcuとV相検出ゲインGcvの調整が失敗した場合においても、上述したステップe-15とステップe-17によって調整の失敗を検知し、ステップe-16の処理によって、U相検出ゲインGcuとV相検出ゲインGcvを初期値にリセットするための信号を生成することができる。これにより、ゲイン調整部250において、U相検出ゲインGcuとV相検出ゲインGcvの調整をやり直すことができる。また、U相検出ゲインGcuとV相検出ゲインGcvの調整が成功している場合には、調整状態決定フラグFlstは、1(検出ゲインの調整方向の探索)、2(検出ゲインの調整開始)、3(検出ゲインの調整継続)、0(検出ゲインの調整終了)の順で規則的に変化する。
(ゲイン調整方向探索部240の処理内容の説明)
 図8は、ゲイン調整方向探索部240の処理手順を説明する図である。まず、ゲイン調整方向探索部240は、ステップf-1とf-2において、ピーク検出部225で算出したq軸高調波電流の正負のピーク値Pkp、Pknをそれぞれ取得する。次に、ゲイン調整方向探索部240は、ステップf-3において、ピーク検出部225で生成したピーク検出フラグFlpkを取得する。次に、ゲイン調整方向探索部240は、ステップf-4とf-5において、ゲイン調整状態決定部230で生成した調整状態決定フラグFlstと第1のカウント値Cnt1を取得する。
 次に、ゲイン調整方向探索部240は、ステップf-6において、ステップf-3で取得したピーク検出フラグFlpkが、1(オン)であるか否かを判定する。ステップf-6において、ピーク検出フラグFlpkが、1(オン)である場合には、ゲイン調整方向探索部240は、ステップf-7において、ステップf-4で取得した調整状態決定フラグFlstが、1(探索)を示しているか否かを判定する。ステップf-7において、調整状態決定フラグFlstが、1(探索)を示している場合には、ゲイン調整方向探索部240は、ステップf-8において、ステップf-5で取得した第1のカウント値Cnt1が、所定値X1に等しいか否かを判定する。
 ステップf-8において、第1のカウント値Cnt1が、所定値X1に等しい場合には、ゲイン調整方向探索部240は、ステップf-9において、調整方向決定フラグFlcmpを0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)に設定する。次に、ゲイン調整方向探索部240は、ステップf-10~f-13において、q軸高調波電流の正のピーク値を積算した第1の正のピーク値の積算値Pkps1と、q軸高調波電流の正のピーク値を積算した第2の正のピーク値の積算値Pkps2と、q軸高調波電流の負のピーク値を積算した第1の負のピーク値の積算値Pkns1と、q軸高調波電流の負のピーク値を積算した第2の負のピーク値の積算値Pkns2を0にリセットする。
 一方、ステップf-8において、第1のカウント値Cnt1が、所定値X1ではない場合には、ゲイン調整方向探索部240は、ステップf-14において、第1のカウント値Cnt1が、(X1/2)に等しいか否かを判定する。
 ステップf-14において、第1のカウント値Cnt1が、(X1/2)に等しい場合には、ゲイン調整方向探索部240は、ステップf-15において、前回演算した第1の正のピーク値の積算値Pkps1に、ステップf-1で取得したq軸高調波電流の正のピーク値Pkpを加算し、最新の第1の正のピーク値の積算値Pkps1を算出する。次に、ゲイン調整方向探索部240は、ステップf-16において、前回演算した第1の負のピーク値の積算値Pkns1に、ステップf-2で取得したq軸高調波電流の負のピーク値Pknを加算し、最新の第1の負のピーク値の積算値Pkns1を算出する。次に、ゲイン調整方向探索部240は、ステップf-17において、ステップf-15で算出した最新の第1の正のピーク値の積算値Pkps1を(X1/2)で除算し、第1の正のピーク値の平均値Pkpa1を算出する。次に、ゲイン調整方向探索部240は、ステップf-18において、ステップf-16で算出した最新の第1の負のピーク値の積算値Pkns1を(X1/2)で除算し、第1の負のピーク値の平均値Pkna1を算出する。次に、ゲイン調整方向探索部240は、ステップf-19において、ステップf-17で算出した第1の正のピーク値の平均値Pkpa1から、ステップf-18で算出した第1の負のピーク値の平均値Pkna1を減算し、第1のピークピーク値の平均値Pkda1を算出する。次に、ゲイン調整方向探索部240は、ステップf-20において、調整方向決定フラグFlcmpを1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)に設定する。
 また、ステップf-14において、第1のカウント値Cnt1が、(X1/2)に等しくない場合には、ゲイン調整方向探索部240は、ステップf-21において、第1のカウント値Cnt1が、(X1/2)よりも大きいか否かを判定する。
 ステップf-21において、第1のカウント値Cnt1が、(X1/2)よりも大きい場合には、ゲイン調整方向探索部240は、ステップf-22において、前回算出した第1の正のピーク値の積算値Pkps1に、ステップf-1で取得したq軸高調波電流の正のピーク値Pkpを加算し、最新の第1の正のピーク値の積算値Pkps1を算出する。次に、ゲイン調整方向探索部240は、ステップf-23において、前回算出した第1の負のピーク値の積算値Pkns1に、ステップf-2で取得したq軸高調波電流の負のピーク値Pknを加算し、最新の第1の負のピーク値の積算値Pkns1を算出する。
 一方、ステップf-21において、第1のカウント値Cnt1が、(X1/2)よりも大きくない場合には、ゲイン調整方向探索部240は、ステップf-24において、前回算出した第2の正のピーク値の積算値Pkps2に、ステップf-1で取得したq軸高調波電流の正のピーク値Pkpを加算し、最新の第2の正のピーク値の積算値Pkps2を算出する。次に、ゲイン調整方向探索部240は、ステップf-25において、前回算出した第2の負のピーク値の積算値Pkns2に、ステップf-2で取得したq軸高調波電流の負のピーク値Pknを加算し、最新の第2の負のピーク値の積算値Pkns2を算出する。
 また、ステップf-7において、調整状態決定フラグFlstが、1(探索)を示していない場合には、ゲイン調整方向探索部240は、ステップf-26-1において、後述する図9の処理に移行する。また、ステップf-6において、ピーク検出フラグFlpkが、1(オン)ではない場合には、ゲイン調整方向探索部240は、何も処理を実施することなく、次回の演算タイミングでステップf-1の処理から再スタートする。
 図9は、図8のステップf-7において、調整状態決定フラグFlstが、1(探索)を示していない時のゲイン調整方向探索部240の処理手順を説明する図である。まず、ゲイン調整方向探索部240は、ステップf-26-2において、調整状態決定フラグFlstが、2(開始)を示しているか否かを判定する。
 ステップf-26-2において、調整状態決定フラグFlstが、2(開始)を示している場合には、ゲイン調整方向探索部240は、ステップf-26-3において、前回算出した第2の正のピーク値の積算値Pkps2に、図8のステップf-1で取得したq軸高調波電流の正のピーク値Pkpを加算し、最新の第2の正のピーク値の積算値Pkps2を算出する。次に、ゲイン調整方向探索部240は、ステップf-26-4において、前回算出した第2の負のピーク値の積算値Pkns2に、図8のステップf-2で取得したq軸高調波電流の負のピーク値Pknを加算し、最新の第2の負のピーク値の積算値Pkns2を算出する。次に、ゲイン調整方向探索部240は、ステップf-26-5において、ステップf-26-3で算出した最新の第2の正のピーク値の積算値Pkps2を(X1/2)で除算し、第2の正のピーク値の平均値Pkpa2を算出する。次に、ゲイン調整方向探索部240は、ステップf-26-6において、ステップf-26-4で算出した最新の第2の負のピーク値の積算値Pkns2を(X1/2)で除算し、第2の負のピーク値の平均値Pkna2を算出する。次に、ゲイン調整方向探索部240は、ステップf-26-7において、ステップf-26-5で算出した第2の正のピーク値の平均値Pkpa2から、ステップf-26-6で算出した第2の負のピーク値の平均値Pkna2を減算し、第2のピークピーク値の平均値Pkda2を算出する。次に、ゲイン調整方向探索部240は、ステップf-26-8において、第1のピークピーク値の平均値Pkda1が、第2のピークピーク値の平均値Pkda2よりも小さいか否かを判定する。
 ステップf-26-8において、第1のピークピーク値の平均値Pkda1が、第2のピークピーク値の平均値Pkda2よりも小さい場合には、ゲイン調整方向探索部240は、ステップf-26-9において、調整方向決定フラグFlcmpを0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)に設定する。一方、ステップf-26-8において、第1のピークピーク値の平均値Pkda1が、第2のピークピーク値の平均値Pkda2よりも小さくない場合には、ゲイン調整方向探索部240は、ステップf-26-10において、調整方向決定フラグFlcmpを1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)に設定する。
 また、ステップf-26-2において、調整状態決定フラグFlstが、2(開始)を示していない場合には、ゲイン調整方向探索部240は、何も処理を実施することなく、次回の演算タイミングで図8のステップf-1の処理から再スタートする。
 このように、調整状態決定フラグFlstが、1(探索)を示している期間に演算した第1のピークピーク値の平均値Pkda1と第2のピークピーク値の平均値Pkda2の大小関係に基づいて、最終的な調整方向決定フラグFlcmpを決定することにより、後述するゲイン調整部250において、q軸電流高調波のピークピーク値が小さくなるように、U相検出ゲインGcuとV相検出ゲインGcvを調整することができる。さらに、ノイズなどの影響により、高調波抽出器220で算出したq軸高調波電流iqhや、ピーク検出部225で算出したq軸高調波電流の正負のピーク値が乱れた場合においても、q軸電流高調波のピークピーク値が小さくなるように、調整方向決定フラグFlcmpを正確に決定することができる。ここでは、U相検出ゲインGcuとV相検出ゲインGcvの両方を調整するような方法で説明したが、U相検出ゲインGcuを基準ゲインとし、V相検出ゲインGcvだけを調整しても良いし、V相検出ゲインGcvを基準ゲインとし、U相検出ゲインGcuだけを調整するような方法でも問題ない。
(ゲイン調整部250の処理内容の説明)
 図10は、ゲイン調整部250の処理手順を説明する図である。まず、ゲイン調整部250は、ステップg-1において、ピーク検出部225で生成したピーク検出フラグFlpkを取得する。次に、ゲイン調整部250は、ステップg-2において、ゲイン調整状態決定部230で生成した調整状態決定フラグFlstを取得する。次に、ゲイン調整部250は、ステップg-3において、ゲイン調整方向探索部240で生成した調整方向決定フラグFlcmpを取得する。次に、ゲイン調整部250は、ステップg-4において、ステップg-1で取得したピーク検出フラグFlpkが、1(オン)であるか否かを判定する。
 ステップg-4において、ピーク検出フラグFlpkが、1(オン)である場合には、ゲイン調整部250は、ステップg-5において、ステップg-2で取得した調整状態決定フラグFlstが、1(探索)を示しているか否かを判定する。ステップg-5において、調整状態決定フラグFlstが、1(探索)を示している場合には、ゲイン調整部250は、ステップg-6において、調整方向決定フラグFlcmpが0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)であるか否かを判定する。
 ステップg-6において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップg-7において、U相検出ゲインの過去値Gcuoldに所定値X2を加算し、U相検出ゲインGcuを正の方向に増大させる。次に、ゲイン調整部250は、ステップg-8において、V相検出ゲインの過去値Gcvoldから所定値X2を減算し、V相検出ゲインGcvを負の方向に増大させる。
 一方、ステップg-6において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップg-9において、U相検出ゲインの過去値Gcuoldから所定値X2を減算し、U相検出ゲインGcuを負の方向に増大させる。次に、ゲイン調整部250は、ステップg-10において、V相検出ゲインの過去値Gcvoldに所定値X2を加算し、V相検出ゲインGcvを正の方向に増大させる。
 また、ステップg-5において、調整状態決定フラグFlstが、1(探索)ではない場合には、ゲイン調整部250は、ステップg-11において、調整状態決定フラグFlstが、2(開始)を示しているか否かを判定する。ステップg-11において、調整状態決定フラグFlstが、2(開始)を示している場合には、ゲイン調整部250は、ステップg-12において、U相検出ゲインの過去値GcuoldをU相検出ゲインGcuとして設定する。次に、ゲイン調整部250は、ステップg-13において、V相検出ゲインの過去値GcvoldをV相検出ゲインGcvとして設定する。
 一方、ステップg-11において、調整状態決定フラグFlstが、2(開始)を示していない場合には、ゲイン調整部250は、ステップg-14において、調整状態決定フラグFlstが、3(継続)を示しているか否かを判定する。ステップg-14において、調整状態決定フラグFlstが、3(継続)を示している場合には、ゲイン調整部250は、ステップg-15において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)であるか否かを判定する。ステップg-15において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップg-16において、前回算出したU相検出ゲインGcuに所定値X3を加算し、最新のU相検出ゲインGcuを算出する。次に、ゲイン調整部250は、ステップg-17において、前回算出したV相検出ゲインGcvから所定値X3を減算し、最新のV相検出ゲインGcvを算出する。
 一方、ステップg-15において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップg-18において、前回算出したU相検出ゲインGcuから所定値X3を減算し、最新のU相検出ゲインGcuを算出する。次に、ゲイン調整部250は、ステップg-19において、前回算出したV相検出ゲインGcvに所定値X3を加算し、最新のV相検出ゲインGcvを算出する。
 また、ステップg-14において、調整状態決定フラグFlstが、3(継続)ではない場合には、ゲイン調整部250は、ステップg-20において、調整状態決定フラグFlstが、4(リセット)であるか否かを判定する。ステップg-20において、調整状態決定フラグFlstが、4(リセット)である場合には、ゲイン調整部250は、ステップg-21において、U相検出ゲインGcuを1(初期値)に設定する。次に、ゲイン調整部250は、ステップg-22において、V相検出ゲインGcvを1(初期値)に設定する。次に、ゲイン調整部250は、ステップg-23において、ステップg-21で設定したU相検出ゲインGcuをU相検出ゲインの過去値Gcuoldとして設定する。次に、ゲイン調整部250は、ステップg-24において、ステップg-22で設定したV相検出ゲインGcvをV相検出ゲインの過去値Gcvoldとして設定する。
 また、ステップg-20において、調整状態決定フラグFlstが、4(リセット)を示していない場合には、ゲイン調整部250は、前述したステップg-23とg-24の処理を実施する。また、ステップg-4において、ピーク検出フラグFlpkが、1(オン)ではない場合には、ゲイン調整部250は、何も処理を実施することなく、次回の演算タイミングでステップg-1の処理から再スタートする。
 このように、調整方向決定フラグFlcmpの状態に基づいて、U相検出ゲインGcuとV相検出ゲインGcvを調整することにより、q軸電流高調波のピークピーク値を低減することができる。すなわち、U相電流センサ50とV相電流センサ55のゲインのばらつきを補正することができる。また、U相検出ゲインGcuとV相検出ゲインGcvは、モータ60の回転子64の電気角θeが、π/2だけ変化した時に調整される。ここでは、U相検出ゲインGcuとV相検出ゲインGcvの両方を調整するような方法で説明したが、U相検出ゲインGcuを基準ゲインとし、V相検出ゲインGcvだけを調整しても良いし、V相検出ゲインGcvを基準ゲインとし、U相検出ゲインGcuだけを調整するような方法でも問題ない。
(q軸高調波電流iqhおよび各フラグと検出ゲインとの関係の説明)
 図11は、U相電流センサ50のゲインGsuと、V相電流センサ55のゲインGsvと、q軸高調波電流iqhと、ピーク検出フラグFlpkと、調整状態決定フラグFlstと、調整方向決定フラグFlcmpと、第1のカウント値Cnt1と、上述した手順によって調整されたU相検出ゲインGcuとV相検出ゲインGcvとの関係を説明する図である。ここでは、U相電流センサ50のゲインGsuが、V相電流センサ55のゲインGsvよりも小さい場合を想定し、時刻t5からU相電流センサ60のゲインGsuとV相電流センサ55のゲインGsvのばらつきを補正するように設定している。
 まず、時刻t5において、q軸高調波電流iqhの負のピーク値Pknは、第1の負の閾値Thn1よりも小さいため、調整状態決定フラグFlstは、時刻t5の直後に0(終了)から1(探索)に切り替わる。調整状態決定フラグFlstが、0(終了)から1(探索)に切り替った瞬間に、第1のカウント値Cnt1は、所定値X1からカウントダウンを開始する。そして、第1のカウント値Cnt1が、(X1/2)と等しくなった瞬間に、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)から1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)に切り替わる。
 そして、調整状態決定フラグFlstが1(探索)で、調整方向決定フラグFlcmpが0の時に、U相検出ゲインGcuは、1(初期値)から正の方向に所定値X2だけ増大され、V相検出ゲインGcvは、1(初期値)から負の方向に所定値X2だけ増大される。ここで、U相検出ゲインGcuが、1(初期値)から正の方向に所定値X2だけ増大し、V相検出ゲインGcvが、1(初期値)から負の方向に所定値X2だけ増大する期間を期間Dとする。
 一方、調整状態決定フラグFlstが1(探索)で、調整方向決定フラグFlcmpが1の時に、U相検出ゲインGcuは、1(初期値)から負の方向に所定値X2だけ増大され、V相検出ゲインGcvは、1(初期値)から正の方向に所定値X2だけ増大される。ここで、U相検出ゲインGcuが、1(初期値)から負の方向に所定値X2だけ増大し、V相検出ゲインGcvが、1(初期値)から正の方向に所定値X2だけ増大する期間を期間Eとする。
 次に、前記期間Dのq軸高調波電流iqhのピークピーク値の平均値は、前記期間Eのq軸高調波電流iqhのピークピーク値の平均値よりも小さいことがわかる。したがって、第1のカウント値Cnt1が0となり、調整状態決定フラグFlstが、1(探索)から2(開始)に切り替わった瞬間に、調整方向決定フラグFlcmpは、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)から0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)に切り替わる。
 そして、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)から0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)に切り替った直後に、調整状態決定フラグFlstは、2(開始)から3(継続)に切り替わる。そして、調整状態決定フラグFlstが3(継続)で、調整方向決定フラグFlcmpが0の時には、U相検出ゲインGcuは、正の方向に所定値X3の刻みで徐々に増大され、V相検出ゲインGcvは、負の方向に所定値X3の刻みで徐々に増大される。最終的に、時刻t6において、q軸高調波電流iqhの正負のピーク値Pkp、Pknが、第3の正負の閾値Thp3、Thn3の範囲内に収まる。
 これによって、調整状態決定フラグFlstは、3(継続)から0(終了)に切り替わり、U相検出ゲインGcuとV相検出ゲインGcvの調整が終了する。これらの処理は、ピーク検出フラグFlpkが、0(オフ)から1(オン)に切り替わった瞬間にだけ実施されている。
 このように、U相検出ゲインGcuとV相検出ゲインGcvを調整することにより、U相電流センサ50のゲインGsuとU相検出ゲインGcuとの乗算値と、V相電流センサ55のゲインGsvとV相検出ゲインGcvとの乗算値を、ほぼ一致させることができる。すなわち、U相電流センサ50のゲインGsvとV相電流センサ55のゲインGsvのばらつきを補正することができる。また、q軸電流iqに含まれているモータ60の回転子64の電気角周波数feの2倍の周波数の高調波電流iqhは、U相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvのばらつきが補正され始めた直後に、一定期間だけ減少(もしくは、増大)してから一定期間だけ増大(もしくは、減少)した後、徐々に減少する波形となる。
(電圧指令演算部190の処理内容の説明)
 図12は、実施例1にかかる電圧指令演算部190の処理手順を説明する図である。まず、電圧指令演算部190は、ステップh-1とh-2において、d軸電流指令id*とq軸電流指令iq*を取得する。次に、電圧指令演算部190は、ステップh-3とh-4において、3相/dq軸変換部180で算出したd軸電流idとq軸電流iqを取得する。次に、電圧指令演算部190は、ステップh-5において、ステップh-1で取得したd軸電流指令id*とステップh-3で取得したd軸電流idを(28)式に代入し、d軸電流指令id*とd軸電流idとの偏差Δidを算出する。
Figure JPOXMLDOC01-appb-M000028
 次に、電圧指令演算部190は、ステップh-6において、ステップh-5で算出したd軸電流偏差Δidを(29)式に代入し、d軸電圧指令vd*を算出する。ここで、d軸比例ゲインKpdとd軸積分ゲインKidの値は、予めマイコンのメモリに記憶させている。
Figure JPOXMLDOC01-appb-M000029
 次に、電圧指令演算部190は、ステップh-7において、ステップh-2で取得したq軸電流指令iq*とステップh-4で取得したq軸電流iqを(30)式に代入し、q軸電流指令iq*とq軸電流iqとの偏差Δiqを算出する。
Figure JPOXMLDOC01-appb-M000030
 次に、電圧指令演算部190は、ステップh-8において、ステップh-7で算出したq軸電流偏差Δiqを(31)式に代入し、q軸電圧指令vq*を算出する。ここで、q軸比例ゲインKpqとq軸積分ゲインKiqの値は、予めマイコンのメモリに記憶させている。
Figure JPOXMLDOC01-appb-M000031
(dq軸/3相変換部200の処理内容の説明)
 図13は、dq軸/3相変換部200の処理手順を説明する図である。まず、dq軸/3相変換部200は、ステップi-1とi-2において、電圧指令演算部190で算出したd軸電圧指令vd*とq軸電圧指令vq*をそれぞれ取得する。次に、dq軸/3相変換部200は、ステップi-3において、角度センサ70で検出したモータ60の回転子64の電気角θeを取得する。次に、dq軸/3相変換部200は、ステップi-4において、ステップi-1~i-3で取得したd軸電圧指令vd*とq軸電圧指令vq*とモータ60の回転子64の電気角θeを(32)式に代入し、U相電圧指令vu*とV相電圧指令vv*とW相電圧指令vw*を算出する。
Figure JPOXMLDOC01-appb-M000032
(PWM信号生成部210の処理内容の説明)
 図14は、PWM信号生成部210の処理手順を説明する図である。まず、PWM信号生成部210は、ステップj-1~j-3において、dq軸/3相変換部200で算出したU相電圧指令vu*とV相電圧指令vv*とW相電圧指令vw*をそれぞれ取得する。
 次に、PWM信号生成部210は、ステップj-4において、ステップj-1で取得したU相電圧指令vu*が、搬送波(不図示)の値以上であるか否かを判定する。
 ステップj-4において、U相電圧指令vu*が、搬送波の値以上である場合には、PWM信号生成部210は、ステップj-5において、PWM信号Sunをオフに設定した後、ステップj-6において、PWM信号Supをオンに設定する。次に、PWM信号生成部210は、ステップj-7において、ステップj-2で取得したV相電圧指令vv*が、搬送波の値以上であるか否かを判定する。
 ステップj-7において、V相電圧指令vv*が、搬送波の値以上である場合には、PWM信号生成部210は、ステップj-8において、PWM信号Svnをオフに設定した後、ステップj-9において、PWM信号Svpをオンに設定する。次に、PWM信号生成部210は、ステップj-10において、ステップj-3で取得したW相電圧指令vw*が、搬送波の値以上であるか否かを判定する。
 ステップj-10において、W相電圧指令vw*が、搬送波の値以上である場合には、PWM信号生成部210は、ステップj-11において、PWM信号Swnをオフに設定した後、ステップj-12において、PWM信号Swpをオンに設定する。一方、ステップj-10において、W相電圧指令vw*が、搬送波の値以上ではない場合には、PWM信号生成部210は、ステップj-13において、PWM信号Swpをオフに設定した後、ステップj-14において、PWM信号Swnをオンに設定する。
 また、ステップj-7において、V相電圧指令vv*が、搬送波の値以上ではない場合には、PWM信号生成部210は、ステップj-15において、PWM信号Svpをオフに設定した後、ステップj-16において、PWM信号Svnをオンに設定する。
 また、ステップj-4において、U相電圧指令vu*が、搬送波の値以上ではない場合には、PWM信号生成部210は、ステップj-17において、PWM信号Supをオフに設定した後、ステップj-18において、PWM信号Sunをオンに設定する。
 このように、PWM信号Sup、Sun、Svp、Svn、Swp、Swnを生成することにより、インバータ40が出力するUVW相電圧の平均値が、UVW相電圧指令vu*、vv*、vw*と一致するように制御することができる。このようなPWM信号の生成法は、三角波比較方式として一般的に知られている。また、PWM信号の生成方法は、三角波比較方式に限ることなく、空間ベクトル変調方式などを用いて問題ない。
 図15は、実施例2にかかる車両システムを説明する図である。上述した実施例1は、U相とV相、もしくは、U相とW相、もしくはV相とW相に電流センサを取り付けた2相電流検出システムにおいて、2つの電流センサのゲインアンバランスを補正する方法である。本実施例は、UVW相全てに電流センサを取り付けた3相電流検出システムにおいて、3つの電流センサのゲインアンバランスを補正する方法である。ゲイン補正機能搭載部260とゲイン補正機能起動停止部270を除いたインバータ制御装置160の構成は、上述した実施例1と同じ構成であるため、説明を省略する。
 本実施例にかかるゲイン補正機能搭載部260は、検出電流変換部170、ゲイン調整状態決定部230、ゲイン調整方向探索部240、ゲイン調整部250を有する。
 ゲイン補正機能搭載部260は、後述するゲイン補正機能起動停止部270で生成した補正機能起動停止フラグFlssに基づいて、U相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvとW相電流センサ58のゲインGswのばらつきの補正を開始、もしくは、停止する。ゲイン補正機能起動停止部270は、ゲイン補正機能起動停止部270の内部に設けられたゲイン補正機能起動停止アルゴリズムに従って、U相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvとW相電流センサ58のゲインGswのばらつきを補正するタイミングを決定する。
 図16は、実施例2にかかるゲイン補正機能起動停止部270の処理手順を説明する図である。まず、ゲイン補正機能起動停止部270は、ステップk-1において、後述するゲイン調整状態決定部230で生成した第2のカウント値Cnt2を取得する。詳細は後述するが、第2のカウント値Cnt2は、U相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvとW相電流センサ58のゲインGswのばらつきの補正が終了した時に0となる。次に、ゲイン補正機能起動停止部270は、ステップk-2において、ゲイン補正機能を起動するか否かを決定する。ここで、ゲイン補正機能を起動するタイミングは、例えば、インバータ制御装置160やモータ60に温度センサ(不図示)を取り付けておき、前記温度センサで検出した温度が変化した場合や所定の時間間隔ごとなど、予め定められている。
 ステップk-2において、ゲイン補正機能を起動する場合には、ゲイン補正機能起動停止部270は、ステップk-3において、補正機能起動停止フラグFlssを1(起動開始)に設定する。一方、ステップk-2において、ゲイン補正機能を起動しない場合には、ゲイン補正機能起動停止部270は、ステップk-4において、ゲイン補正機能を強制停止するか否かを決定する。
 ステップk-4において、ゲイン補正機能を強制停止する場合には、ゲイン補正機能起動停止部270は、ステップk-5において、補正機能起動停止フラグFlssを0(停止)に設定する。一方、ステップk-4において、ゲイン補正機能を強制停止しない場合には、ゲイン補正機能起動停止部270は、ステップk-6において、補正起動停止フラグFlssが、1(起動開始)を示しているか否かを判定する。
 ステップk-6において、補正起動停止フラグFlssが、1(起動て開始)を示している場合には、ゲイン補正機能起動停止部270は、ステップk-7において、補正機能起動停止フラグFlssを2(起動済)に設定する。一方、ステップk-6において、補正起動停止フラグFlssが、1(起動開始)を示していない場合には、ゲイン補正機能起動停止部270は、ステップk-8において、補正機能起動停止フラグFlssが、2(起動済)を示しているか否かを判定する。
 ステップk-8において、補正機能起動停止フラグFlssが、2(起動済)を示している場合には、ゲイン補正機能起動停止部270は、ステップk-9において、ステップk-1で取得した第2のカウント値Cnt2が、0であるか否かを判定する。ステップk-9において、第2のカウント値Cnt2が、0である場合には、ゲイン補正機能起動停止部270は、ステップk-10において、補正機能起動停止フラグFlssを0(停止)に設定する。一方、ステップk-9において、第2のカウント値Cnt2が、0ではない場合には、ゲイン補正機能起動停止部270は、何も処理を実施することなく、次回の演算タイミングでステップk-1の処理から再スタートする。
 また、ステップk-8において、補正機能起動停止フラグFlssが、2(起動済)を示していない場合には、ゲイン補正機能起動停止部270は、何も処理を実施することなく、次回の演算タイミングでステップk-1の処理から再スタートする。
(ゲイン調整状態決定部230の処理内容の説明)
 図17は、実施例2にかかるゲイン調整状態決定部230の処理手順を説明する図である。まず、ゲイン調整状態決定部230は、ステップl-1において、図7で示したステップe-1~e-3の処理を実施する。次に、ゲイン調整状態決定部230は、ステップl-2において、ゲイン補正機能起動停止部270で生成した補正機能起動停止フラグFlssを取得する。次に、ゲイン調整状態決定部230は、ステップl-3において、ステップl-2で取得した補正機能起動停止フラグFlssが、2(起動済)を示しているか否かを判定する。
 ステップl-3において、補正機能起動停止フラグFlssが、2(起動済)を示している場合には、ゲイン調整状態決定部230は、ステップl-4において、ステップl-1で取得したピーク検出フラグFlpkが、1(オン)であるか否かを判定する。
 ステップl-4において、ピーク検出フラグFlpkが、1(オン)である場合には、ゲイン調整状態決定部230は、ステップl-5において、後述するステップl-6、l-8、l-10、l-17、l-21、l-23、もしくは、l-27で設定した調整状態決定フラグFlstが、0(終了)を示しているか否かを判定する。ステップl-5において、調整状態決定フラグFlstが、0(終了)を示している場合には、ゲイン調整状態決定部230は、ステップl-6において、調整状態決定フラグFlstを5(切替開始)に設定する。一方、ステップl-5において、補正状態決定フラグFlstが、0(終了)を示していない場合には、ゲイン調整状態決定部230は、ステップl-7において、調整状態決定フラグFlstが、5(切替開始)を示しているか否かを判定する。
 ステップl-7において、調整状態決定フラグFlstが、5(切替開始)を示している場合には、ゲイン調整状態決定部230は、ステップl-8において、調整状態決定フラグFlstを6(切替中)に設定する。次に、ゲイン調整状態決定部230は、ステップl-9において、第3のカウント値Cnt3が、0であるか否かを判定する。
 ステップl-9において、第3のカウント値Cnt3が、0である場合には、ゲイン調整状態決定部230は、ステップl-10において、調整状態決定フラグFlstを7(切替完了)に設定する。次に、ゲイン調整状態決定部230は、ステップl-11において、第3のカウント値Cnt3を、所定値X4に設定する。ここで、後述する検出ゲインの調整方向を正しく決定するために、所定値X4は、2の倍数で4以上の値に設定しておくことが望ましい。
 一方、ステップl-9において、第3のカウント値Cnt3が、0ではない場合には、ゲイン調整状態決定部230は、ステップl-12において、第3のカウント値Cnt3をカウントダウンする。
 また、ステップl-7において、調整状態決定フラグFlstが、5(切替開始)を示していない場合には、ゲイン調整状態決定部230は、ステップl-13において、調整状態決定フラグFlstが、6(切替中)を示しているか否かを判定する。ステップl-13において、調整状態決定フラグFlstが、6(切替中)を示している場合には、前述したステップl-9の処理に移行する。一方、ステップl-13において、調整状態決定フラグFlstが、6(切替中)を示していない場合には、ゲイン調整状態決定部230は、ステップl-14において、調整状態決定フラグFlstが、7(切替完了)を示しているか否かを判定する。
 ステップl-14において、調整状態決定フラグFlstが、7(切替完了)を示している場合には、ゲイン調整状態決定部230は、ステップl-15において、ステップl-1で取得したq軸高調波電流の正のピーク値Pkpが、第1の正の閾値Thp1よりも大きいか否かを判定する。
 ステップl-15において、q軸高調波電流の正のピーク値Pkpが、第1の正の閾値Thp1よりも大きい場合には、ゲイン調整状態決定部230は、ステップl-16において、第1のカウント値Cnt1を所定値X1に設定する。ここで、所定値X1は、実施例1で述べたように、2の倍数の正の整数に設定されている。次に、ゲイン調整状態決定部230は、ステップl-17において、調整状態決定フラグFlstを1(探索)に設定する。次に、ゲイン調整状態決定部230は、ステップl-18において、第2のカウント値Cnt2を3に設定する。
 一方、ステップl-15において、q軸高調波電流の正のピーク値Pkpが、第1の正の閾値Thp1よりも大きくない場合には、ゲイン調整状態決定部230は、ステップl-19において、ステップl-1で取得したq軸高調波電流の負のピーク値Pknが、第1の負の閾値Thn1よりも小さいか否かを判定する。
 ステップl-19において、q軸高調波電流の負のピーク値Pknが、第1の負の閾値Thn1よりも小さい場合には、前述したステップl-16~l-18の処理を実施する。一方、ステップl-19において、q軸高調波電流の負のピーク値Pknが、第1の負の閾値Thn1よりも小さくない場合には、ゲイン調整状態決定部230は、ステップl-20において、第2のカウント値Cnt2をカウントダウンする。次に、ゲイン調整状態決定部230は、ステップl-21において、調整状態決定フラグFlstを0(終了)に設定する。
 また、ステップl-14において、調整状態決定フラグFlstが、7(切替完了)を示していない場合には、ゲイン調整状態決定部230は、ステップl-22において、調整状態決定フラグFlstが、4(リセット)を示しているか否かを判定する。ステップl-22において、調整方向決定フラグFlstが、4(リセット)を示している場合には、前述したステップl-15の処理に移行する。一方、ステップl-22において、調整方向決定フラグFlstが、4(リセット)を示していない場合には、ゲイン調整状態決定部230は、ステップl-23において、図7で示したステップe-11~e-21の処理を実施する。
 また、ステップl-4において、ピーク検出フラグFlpkが、1(オン)ではない場合には、ゲイン調整状態決定部230は、何も処理を実施することなく、次回の演算タイミングでステップl-1の処理から再スタートする。
 また、ステップl-3において、補正機能起動停止フラグFlssが、2(起動済)を示していない場合には、ゲイン調整状態決定部230は、ステップl-24において、補正機能起動停止フラグFlssが、1(起動開始)を示しているか否かを判定する。ステップl-24において、補正機能起動停止フラグFlssが、1(起動開始)を示している場合には、ゲイン調整状態決定部230は、ステップl-25において、第2のカウント値Cnt2を3に設定する。次に、ゲイン調整状態決定部230は、ステップl-26において、第3のカウント値Cnt3を所定値X4に設定する。次に、ゲイン調整状態決定部230は、ステップl-27において、調整状態決定フラグFlstを0(終了)に設定する。
 一方、ステップl-24において、補正機能起動停止フラグFlssが、1(起動開始)を示していない場合には、ゲイン調整状態決定部230は、何も処理を実施することなく、次回の演算タイミングでステップl-1の処理から再スタートする。
 このように調整状態決定フラグFlstを生成することにより、後述するゲイン調整部250において、各相の検出ゲインの調整が失敗した場合においても、上述したステップl-23(具体的には図7に示したステップe-15とステップe-17)によってゲイン調整の失敗を検知し、(具体的には、図7に示したステップe-16の処理によって、)各相の検出ゲインを初期値にリセットするための信号を生成することができる。これにより、ゲイン調整部250において、各相の検出ゲインの調整をやり直すことができる。
 また、各相の検出ゲインの調整が成功している場合には、調整状態決定フラグFlstは、第2のカウント値Cnt2が0になるまで、5(検出ゲインを調整する相の切替開始)、6(検出ゲインを調整する相の切替中)、7(検出ゲインを調整する相の切替完了)、1(検出ゲインの調整方向の探索)、2(検出ゲインの調整開始)、3(検出ゲインの調整継続)、0(検出ゲインの調整終了)の順で規則的に変化する。
 また、詳細は後述するが、本実施例では、まず、U相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvの2相のゲインアンバランスを補正する。次に、U相電流センサ50のゲインGsuとW相電流センサ58のゲインGswの2相のゲインアンバランスを補正する。そして、V相電流センサ55のゲインGsvとW相電流センサ58のゲインGswの2相のゲインアンバランスを補正する。これらを繰り返すことにより、U相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvとW相電流センサ58のゲインGswの3相のゲインアンバランスを補正することができる。
(ゲイン調整方向探索部240の処理内容の説明)
 図18は、実施例2にかかるゲイン調整方向探索部240の処理手順を説明する図である。まず、ゲイン調整方向探索部240は、ステップm-1において、図8に示したステップf-2~f-5の処理を実施する。次に、ゲイン調整方向探索部240は、ステップm-2において、ゲイン補正機能起動停止部270で生成した補正機能起動停止フラグFlssを取得する。次に、ゲイン調整方向探索部240は、ステップm-3において、ステップm-2で取得した補正機能起動停止フラグFlssが、2(起動済)を示しているか否かを判定する。
 ステップm-3において、補正機能起動停止フラグFlssが、2(起動済)を示している場合には、ゲイン調整方向探索部240は、ステップm-4において、ステップm-1で取得したピーク検出フラグFlpkが、1(オン)であるか否かを判定する。
 ステップm-4において、ピーク検出フラグFlpkが、1(オン)である場合には、ゲイン調整方向探索部240は、ステップm-5において、ステップm-1で取得した調整状態決定フラグFlstが、5(切替開始)を示しているか否かを判定する。
 ステップm-5において、調整状態決定フラグFlstが、5(切替開始)を示しているか否かを判定する。ステップm-5において、調整状態決定フラグFlstが、5(切替開始)を示している場合には、ゲイン調整方向探索部240は、ステップm-6において、第4のカウント値Cnt4が、0であるか否かを判定する。
 ステップm-6において、第4のカウント値Cnt4が、0である場合には、ゲイン調整方向探索部240は、ステップm-7において、第4のカウント値Cnt4を2に設定する。一方、ステップm-6において、第4のカウント値Cnt4が、0ではない場合には、ゲイン調整方向探索部240は、ステップm-8において、第4のカウント値Cnt4をカウントダウンする。
 詳細は後述するが、第4のカウント値Cnt4が2の時には、U相電流センサ50のゲインGsvとV相電流センサ55のゲインGsvのばらつきを補正するモードとなり、U相検出ゲインGcuとV相検出ゲインGcvが調整される。また、第4のカウント値Cnt4が1の時には、U相電流センサ50のゲインGsuとW相電流センサ58のゲインGswのばらつきを補正するモードとなり、U相検出ゲインGcuとW相検出ゲインGcwが調整される。また、第4のカウント値Cnt4が0の時には、V相電流センサ55のゲインGsvとW相電流センサ58のゲインGswを補正するモードとなり、V相検出ゲインGcvとW相検出ゲインGcwが調整される。
 また、ステップm-5において、調整状態決定フラグFlstが、5(切替開始)を示していない場合には、ゲイン調整方向探索部240は、ステップm-9において、調整状態決定フラグFlstが、1(探索)を示しているか否かを判定する。
 ステップm-9において、調整状態決定フラグFlstが、1(探索)を示している場合には、ゲイン調整方向探索部240は、ステップm-10において、第1のカウント値Cnt1が、所定値X1に等しいか否かを判定する。
 ステップm-10において、第1のカウント値Cnt1が、所定値X1に等しい場合には、ゲイン調整方向探索部240は、ステップm-11において、第4のカウント値Cnt4が、2であるか否かを判定する。
 ステップm-11において、第4のカウント値Cnt4が、2である場合には、ゲイン調整方向探索部240は、ステップm-12において、調整方向決定フラグFlcmpを0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)に設定する。次に、ゲイン調整方向探索部240は、ステップm-13において、図8に示したf-10~f-13の処理を実施する。
 一方、ステップm-11において、第4のカウント値Cnt4が、2ではない場合には、ゲイン調整方向探索部240は、ステップm-14において、第4のカウント値Cnt4が、1であるか否かを判定する。ステップm-14において、第4のカウント値Cnt4が、1である場合には、ゲイン調整方向探索部240は、ステップm-15において、調整方向決定フラグFlcmpを2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)に設定し、前述したステップm-13の処理を実施する。
 一方、ステップm-14において、第4のカウント値Cnt4が、1ではない場合には、ゲイン調整方向探索部240は、ステップm-16において、調整方向決定フラグFlcmpを4(V相検出ゲインGcvを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)に設定し、前述したステップm-13の処理を実施する。
 また、ステップm-10において、第1のカウント値Cnt1が、所定値X1に等しくない場合には、ゲイン調整方向探索部240は、ステップm-17において、第1のカウント値Cnt1が、(X1/2)に等しいか否かを判定する。ステップm-17において、第1のカウント値Cnt1が、(X1/2)に等しい場合には、ゲイン調整方向探索部240は、ステップm-18において、図8に示したステップf-15~f-19の処理を実施する。
 次に、ゲイン調整方向探索部240は、ステップm-19において、現在の調整方向決定フラグFlcmpに1を加算し、最新の調整方向決定フラグFlcmpを決定する。例えば、現在の調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)である場合には、最新の調整方向決定フラグFlcmpは、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)となる。また、現在の調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)である場合には、最新の調整方向決定フラグFlcmpは、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)となる。また、現在の調整方向決定フラグFlcmpが、4(V相検出ゲインGcvを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)である場合には、最新の調整方向決定フラグFlcmpは、5(V相検出ゲインGcvを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)となる。
 一方、ステップm-17において、第1のカウント値Cnt1が、(X1/2)に等しくない場合には、ゲイン調整方向探索部240は、ステップm-20において、図8に示したステップf-21~f-25の処理を実施する。
 また、ステップm-9において、調整状態決定フラグFlstが、1(探索)を示していない場合には、ゲイン調整方向探索部240は、ステップm-21-1において、後述する図19の処理に移行する。
 また、ステップm-4において、ピーク検出フラグFlpkが、1(オン)ではない場合には、ゲイン調整方向探索部240は、何も処理を実施することなく、次回の演算タイミングでステップm-1の処理から再スタートする。
 また、ステップm-3において、補正機能起動停止フラグFlssが、2(起動済)を示していない場合には、ゲイン調整方向探索部240は、ステップm-22において、補正機能起動停止フラグFlssが、1(起動開始)を示しているか否かを判定する。
 ステップm-22において、補正機能起動停止フラグFlssが、1(起動開始)を示している場合には、ゲイン調整方向探索部240は、ステップm-23において、第4のカウント値Cnt4を0に設定する。このように、補正機能起動停止フラグFlssが、1(起動開始)を示している時に、第4のカウント値Cnt4を0に設定することにより、補正機能起動停止フラグFlssが、2(起動済)となった瞬間に、第4のカウント値Cnt4が2に設定されるため、U相電流センサ50のゲインGsvとV相電流センサ55のゲインGsvのばらつきを補正するモードから開始させることができる。
 一方、ステップm-22において、補正機能起動停止フラグFlssが、1(起動開始)を示していない場合には、ゲイン調整方向探索部240は、何も処理を実施することなく、次回の演算タイミングでステップm-1の処理から再スタートする。
 図19は、図18に示したステップm-9において、調整状態決定フラグFlstが、1(探索)を示していない時のゲイン調整方向探索部240の処理手順を説明する図である。まず、ゲイン調整方向探索部240は、ステップm-21-2において、調整状態決定フラグFlstが、2(開始)を示しているか否かを判定する。
 ステップm-21-2において、調整状態決定フラグFlstが、2(開始)を示している場合には、ゲイン調整方向探索部240は、ステップm-21-3において、図9に示したステップf-26-3~f-26-7の処理を実施する。次に、ゲイン調整方向探索部240は、ステップm-21-4において、図18に示したステップm-18で算出した第1のピークピーク値の平均値Pkda1が、ステップm-21-3で算出した第2のピークピーク値の平均値Pkda2よりも小さいか否かを判定する。
 ステップm-21-4において、第1のピークピーク値の平均値Pkda1が、第2のピークピーク値の平均値Pkda2よりも小さい場合には、ゲイン調整方向探索部240は、ステップm-21-5において、第4のカウント値Cnt4が、2に等しいか否かを判定する。
 ステップm-21-5において、第4のカウント値Cnt4が、2に等しい場合には、ゲイン調整方向探索部240は、ステップm-21-6において、調整方向決定フラグFlcmpを0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)に設定する。一方、ステップm-21-5において、第4のカウント値Cnt4が、2に等しくない場合には、ゲイン調整方向探索部240は、ステップm-21-7において、第4のカウント値Cnt4が、1に等しいか否かを判定する。
 ステップm-21-7において、第4のカウント値Cnt4が、1に等しい場合には、ゲイン調整方向探索部240は、ステップm-21-8において、調整方向決定フラグFlcmpを2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)に設定する。一方、ステップm-21-7において、第4のカウント値Cnt4が、1に等しくない場合には、ゲイン調整方向探索部240は、ステップm-21-9において、調整方向決定フラグFlcmpを4(V相検出ゲインGcvを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)に設定する。
 また、ステップm-21-4において、第1のピークピーク値の平均値Pkda1が、第2のピークピーク値の平均値Pkda2よりも小さくない場合には、ゲイン調整方向探索部240は、ステップm-21-10において、第4のカウント値Cnt4が、2に等しいか否かを判定する。
 ステップm-21-10において、第4のカウント値Cnt4が、2に等しい場合には、ゲイン調整方向探索部240は、ステップm-21-11において、調整方向決定フラグFlcmpを1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)に設定する。一方、ステップm-21-10において、第4のカウント値Cnt4が、2に等しくない場合には、ゲイン調整方向探索部240は、ステップm-21-12において、第4のカウント値Cnt4が、1に等しいか否かを判定する。
 ステップm-21-12において、第4のカウント値Cnt4が、1に等しい場合には、ゲイン調整方向探索部240は、ステップm-21-13において、調整方向決定フラグFlcmpを3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)に設定する。一方、ステップm-21-12において、第4のカウント値Cnt4が、1に等しくない場合には、ゲイン調整方向探索部240は、ステップm-21-14において、調整方向決定フラグFlcmpを5(V相検出ゲインGcvを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)に設定する。
 このように、調整状態決定フラグFlstが、1(探索)を示している期間に演算した第1のピークピーク値の平均値Pkda1と第2のピークピーク値の平均値Pkda2の大小関係に基づいて、最終的な調整方向決定フラグFlcmpを決定することにより、後述するゲイン調整部250において、q軸電流高調波のピークピーク値が小さくなるように、各相の検出ゲインを調整することができる。さらに、ノイズなどの影響により、高調波抽出器220で算出したq軸高調波電流iqhや、ピーク検出部225で算出したq軸高調波電流の正負のピーク値が乱れた場合においても、q軸電流高調波のピークピーク値が小さくなるように、調整方向決定フラグFlcmpを正確に決定することができる。
 ここでは、選択された第1の相の検出ゲインと第2の相の検出ゲインの両方を調整するような方法で説明したが、選択された第1の相の検出ゲインを基準ゲインとし、選択された第2の相の検出ゲインだけを調整しても良いし、選択された第2の相の検出ゲインを基準ゲインとし、選択された第1の相の検出ゲインだけを調整しても問題ない。例えば、第1の相にU相が選択され、第2の相にV相が選択された場合には、U相検出ゲインGcuを基準ゲインとし、V相検出ゲインGcvだけを調整しても良いし、V相検出ゲインGcvを基準ゲインとし、U相検出ゲインGcuを調整しても問題ない。また、第1の相にU相が選択され、第2の相にW相が選択された場合には、U相検出ゲインGcuを基準ゲインとし、W相検出ゲインGcwだけを調整しても良いし、W相検出ゲインGcwを基準ゲインとし、U相検出ゲインGcuを調整しても問題ない。また、第1の相にV相が選択され、第2の相にW相が選択された時には、V相検出ゲインGcvを基準ゲインとし、W相検出ゲインGcwだけを調整しても良いし、W相検出ゲインGcwを基準ゲインとし、V相検出ゲインGcvだけを調整しても問題ない。
 図20は、実施例2にかかるゲイン調整部250の処理手順を説明する図である。まず、ゲイン調整部250は、ステップn-1において、図10に示したg-1~g-3の処理を実施する。次に、ゲイン調整部250は、ステップn-2において、ゲイン補正機能起動停止部270で生成した補正機能起動停止フラグFlssを取得する。次に、ゲイン調整部250は、ステップn-3において、ステップn-2で取得した補正機能起動停止フラグFlssが、2(起動済)を示しているか否かを判定する。
 ステップn-3において、補正機能起動停止フラグFlssが、2(起動済)を示している場合には、ゲイン調整部250は、ステップn-4において、ステップn-1で取得したピーク検出フラグFlpkが、1(オン)であるか否かを判定する。
 ステップn-4において、ピーク検出フラグFlpkが、1(オン)である場合には、ゲイン調整部250は、ステップn-5において、ステップn-1で取得した調整状態決定フラグFlstが、1(探索)を示しているか否かを判定する。
 ステップn-5において、調整状態決定フラグFlstが、1(探索)を示している場合には、ゲイン調整部250は、ステップn-6において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)であるか否かを判定する。
 ステップn-6において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-7において、U相検出ゲインの過去値Gcuoldに所定値X2を加算し、U相検出ゲインGcuを正の方向に増大させる。次に、ゲイン調整部250は、ステップn-8において、V相検出ゲインの過去値Gcvoldから所定値X2を減算し、V相検出ゲインGcvを負の方向に増大させる。
 一方、ステップn-6において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-9において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)であるか否かを判定する。
 ステップn-9において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-10において、U相検出ゲインの過去値Gcuoldから所定値X2を減算し、U相検出ゲインGcuを負の方向に増大させる。次に、ゲイン調整部250は、ステップn-11において、V相検出ゲインの過去値Gcvoldに所定値X2を加算し、V相検出ゲインGcvを正の方向に増大させる。
 一方、ステップn-9において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-12において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)であるか否かを判定する。
 ステップn-12において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-13において、U相検出ゲインの過去値Gcuoldに所定値X2を加算し、U相検出ゲインGcuを正の方向に増大させる。次に、ゲイン調整部250は、ステップn-14において、W相検出ゲインの過去値Gcwoldから所定値X2を減算し、W相検出ゲインGcwを負の方向に増大させる。
 一方、ステップn-12において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-15において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)であるか否かを判定する。
 ステップn-15において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-16において、U相検出ゲインの過去値Gcuoldから所定値X2を減算し、U相検出ゲインGcuを負の方向に増大させる。次に、ゲイン調整部250は、ステップn-17において、W相検出ゲインの過去値Gcwoldに所定値X2を加算し、W相検出ゲインGcwを正の方向に増大させる。
 一方、ステップn-15において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-18において、調整方向決定フラグFlcmpが、4(V相検出ゲインGcvを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)であるか否かを判定する。
 ステップn-18において、調整方向決定フラグFlcmpが、4(V相検出ゲインGcvを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-19において、V相検出ゲインの過去値Gcvoldに所定値X2を加算し、V相検出ゲインGcvを正の方向に増大させる。次に、ゲイン調整部250は、ステップn-20において、W相検出ゲインの過去値Gcwoldから所定値X2を減算し、W相検出ゲインGcwを負の方向に増大させる。
 一方、ステップn-18において、調整方向決定フラグFlcmpが、4(V相検出ゲインGcvを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-21において、V相検出ゲインの過去値Gcvoldから所定値X2を減算し、V相検出ゲインGcvを負の方向に増大させる。次に、ゲイン調整部250は、ステップn-22において、W相検出ゲインの過去値Gcwoldに所定値X2を加算し、W相検出ゲインGcwを正の方向に増大させる。
 また、ステップn-5において、調整状態決定フラグFlstが、1(探索)を示していない場合には、ゲイン調整部250は、ステップn-23-1において、後述する図21の処理に移行する。
 また、ステップn-4において、ピーク検出フラグFlpkが、1(オン)ではない場合には、ゲイン調整部250は、何も処理を実施することなく、次回の演算タイミングでステップn-1の処理から再スタートする。
 また、ステップn-3において、補正機能起動停止フラグFlssが、2(起動済)を示していない場合には、ゲイン調整部250は、何も処理を実施することなく、次回の演算タイミングでステップn-1の処理から再スタートする。
 図21は、図20に示したステップn-5において、調整状態決定フラグFlstが、1(探索)を示していない時のゲイン調整部250の処理手順を説明する図である。まず、ゲイン調整部250は、ステップn-23-2において、調整状態決定フラグFlstが、2(開始)を示しているか否かを判定する。
 ステップn-23-2において、調整状態決定フラグFlstが、2(開始)を示している場合には、ゲイン調整部250は、ステップn-23-3において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)であるか否かを判定する。
 ステップn-23-3において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-23-4において、U相検出ゲインの過去値GcuoldをU相検出ゲインGcuとして設定する。次に、ゲイン調整部250は、ステップn-23-5において、V相検出ゲインの過去値GcvoldをV相検出ゲインGcvとして設定する。
 一方、ステップn-23-3において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-6において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)であるか否かを判定する。
 ステップn-23-6において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)である場合には、ゲイン調整部250は、前述したステップn-23-4の処理に移行する。
 一方、ステップn-23-6において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-7において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)であるか否かを判定する。
 ステップn-23-7において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-23-8において、U相検出ゲインの過去値GcuoldをU相検出ゲインGcuとして設定する。次に、ゲイン調整部250は、ステップn-23-9において、W相検出ゲインの過去値GcwoldをW相検出ゲインGcwとして設定する。
 一方、ステップn-23-7において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-10において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)であるか否かを判定する。
 ステップn-23-10において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)である場合には、ゲイン調整部250は、前述したステップn-23-8の処理に移行する。
 一方、ステップn-23-10において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-11において、V相検出ゲインの過去値GcvoldをV相検出ゲインGcvとして設定する。次に、ゲイン調整部250は、ステップn-23-12において、W相検出ゲインの過去値GcwoldをW相検出ゲインGcwとして設定する。
 また、ステップn-23-2において、調整状態決定フラグFlstが、2(開始)を示していない場合には、ゲイン調整部250は、ステップn-23-13において、調整状態決定フラグFlstが、3(継続)を示しているか否かを判定する。
 ステップn-23-13において、調整状態決定フラグFlstが、3(継続)を示している場合には、ゲイン調整部250は、ステップn-23-14において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)であるか否かを判定する。
 ステップn-23-14において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-23-15において、前回算出したU相検出ゲインGcuに所定値X3を加算し、最新のU相検出ゲインGcuを算出する。次に、ゲイン調整部250は、ステップn-23-16において、前回算出したV相検出ゲインGcvから所定値X3を減算し、最新のV相検出ゲインGcvを算出する。
 一方、ステップn-23-14において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-17において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)であるか否かを判定する。
 ステップn-23-17において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-23-18において、前回算出したU相検出ゲインGcuから所定値X3を減算し、最新のU相検出ゲインGcuを算出する。次に、ゲイン調整部250は、ステップn-23-19において、前回算出したV相検出ゲインGcvに所定値X3を加算し、最新のV相検出ゲインGcvを算出する。
 一方、ステップn-23-17において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-20において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)であるか否かを判定する。
 ステップn-23-20において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-23-21において、前回算出したU相検出ゲインGcuに所定値X3を加算し、最新のU相検出ゲインGcuを算出する。次に、ゲイン調整部250は、ステップn-23-22において、前回算出したW相検出ゲインGcwから所定値X3を減算し、最新のW相検出ゲインGcwを算出する。
 一方、ステップn-23-20において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-23において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)であるか否かを判定する。
 ステップn-23-23において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-23-24において、前回算出したU相検出ゲインGcuから所定値X3を減算し、最新のU相検出ゲインGcuを算出する。次に、ゲイン調整部250は、ステップn-23-25において、前回算出したW相検出ゲインGcwに所定値X3を加算し、最新のW相検出ゲインGcwを算出する。
 一方、ステップn-23-23において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-26において、調整方向決定フラグFlcmpが、4(V相検出ゲインGcvを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)であるか否かを判定する。
 ステップn-23-26において、調整方向決定フラグFlcmpが、4(V相検出ゲインGcvを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-23-27において、前回算出したV相検出ゲインGcvに所定値X3を加算し、最新のV相検出ゲインGcvを算出する。次に、ゲイン調整部250は、ステップn-23-28において、前回算出したW相検出ゲインGcwから所定値X3を減算し、最新のW相検出ゲインGcwを算出する。
 一方、ステップn-23-26において、調整方向決定フラグFlcmpが、4(V相検出ゲインGcvを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-29において、前回算出したV相検出ゲインGcvから所定値X3を減算し、最新のV相検出ゲインGcvを算出する。次に、ゲイン調整部250は、ステップn-23-30において、前回算出したW相検出ゲインGcwに所定値X3を加算し、最新のW相検出ゲインGcwを算出する。また、ステップn-23-13において、調整状態決定フラグFlstが、3(継続)を示していない場合には、ゲイン調整部250は、ステップn-23-31-1において、後述する図22の処理に移行する。
 図22は、図21に示したステップn-23-13において、調整状態決定フラグFlstが、3(継続)を示していない時のゲイン調整部250の処理手順を説明する図である。まず、ゲイン調整部250は、ステップn-23-31-2において、調整状態決定フラグFlstが、4(リセット)を示しているか否かを判定する。
 ステップn-23-31-2において、調整状態決定フラグFlstが、4(リセット)を示している場合には、ゲイン調整部250は、ステップn-23-31-3において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)であるか否かを判定する。
 ステップn-23-31-3において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-23-31-4において、U相検出ゲインGcuを1(初期値)に設定する。次に、ゲイン調整部250は、ステップn-23-31-5において、V相検出ゲインGcvを1(初期値)に設定する。次に、ゲイン調整部250は、ステップn-23-31-6において、ステップn-23-31-4で設定したU相検出ゲインGcuをU相検出ゲインの過去値Gcuoldとして設定する。次に、ゲイン調整部250は、ステップn-23-31-7において、ステップn-23-31-5で設定したV相検出ゲインGcvをV相検出ゲインの過去値Gcvoldとして設定する。
 一方、ステップn-23-31-3において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-31-8において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)であるか否かを判定する。
 ステップn-23-31-8において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)である場合には、ゲイン調整部250は、前述したステップn-23-31-4の処理に移行する。一方、ステップn-23-31-8において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-31-9において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)であるか否かを判定する。
 ステップn-23-31-9において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-23-31-10において、U相検出ゲインGcuを1(初期値)に設定する。次に、ゲイン調整部250は、ステップn-23-31-11において、W相検出ゲインGcwを1(初期値)に設定する。次に、ゲイン調整部250は、ステップn-23-31-12において、ステップn-23-31-10で設定したU相検出ゲインGcuをU相検出ゲインの過去値Gcuoldとして設定する。次に、ゲイン調整部250は、ステップn-23-31-13において、ステップn-23-31-11で設定したW相検出ゲインGcwをW相検出ゲインの過去値Gcwoldとして設定する。
 一方、ステップn-23-31-9において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-31-14において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)であるか否かを判定する。ステップn-23-31-14において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)である場合には、ゲイン調整部250は、前述したステップn-23-31-10の処理に移行する。
 一方、ステップn-23-31-14において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-31-15において、V相検出ゲインGcvを1(初期値)に設定する。次に、ゲイン調整部250は、ステップn-23-31-16において、W相検出ゲインGcwを1(初期値)に設定する。次に、ゲイン調整部250は、ステップn-23-31-17において、ステップn-23-31-15で設定したV相検出ゲインGcvをV相検出ゲインの過去値Gcvoldとして設定する。次に、ゲイン調整部250は、ステップn-23-31-18において、ステップn-23-31-16で設定したW相検出ゲインGcwをW相検出ゲインの過去値Gcwoldとして設定する。
 また、ステップn-23-31-2において、調整状態決定フラグFlstが、4(リセット)を示していない場合には、ゲイン調整部250は、ステップn-23-31-19において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)であるか否かを判定する。
 ステップn-23-31-19において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-23-31-20において、U相検出ゲインGcuをU相検出ゲインの過去値Gcuoldとして設定する。次に、ゲイン調整部250は、ステップn-23-31-21において、V相検出ゲインGcvをV相検出ゲインの過去値Gcvoldとして設定する。
 一方、ステップn-23-31-19において、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-31-22において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)であるか否かを判定する。ステップn-23-31-22において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)である場合には、ゲイン調整部250は、前述したステップn-23-31-20とn-23-31-21の処理を実施する。
 一方、ステップn-23-31-22において、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-31-23において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)であるか否かを判定する。
 ステップn-23-31-23において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)である場合には、ゲイン調整部250は、ステップn-23-31-24において、U相検出ゲインGcuをU相検出ゲインの過去値Gcuoldとして設定する。次に、ゲイン調整部250は、ステップn-23-31-25において、W相検出ゲインGcwをW相検出ゲインの過去値Gcwoldとして設定する。
 一方、ステップn-23-31-23において、調整方向決定フラグFlcmpが、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-31-26において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)であるか否かを判定する。ステップn-23-31-26において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)である場合には、ゲイン調整部250は、前述したステップn-23-31-24の処理に移行する。
 一方、ステップn-23-31-26において、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)ではない場合には、ゲイン調整部250は、ステップn-23-31-27において、V相検出ゲインGcvをV相検出ゲインの過去値Gcvoldとして設定する。次に、ゲイン調整部250は、ステップn-23-31-28において、W相検出ゲインGcwをW相検出ゲインの過去値Gcwoldとして設定する。
 このように、調整方向決定フラグFlcmpの状態に基づいて、U相検出ゲインGcuとV相検出ゲインGcvとW相検出ゲインGcwを調整することにより、q軸電流高調波のピークピーク値を低減することができる。すなわち、U相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvとW相電流センサ58のゲインGswのばらつきを補正することができる。また、U相検出ゲインGcuとV相検出ゲインGcvとW相検出ゲインGcwは、モータ60の回転子64の電気角θeが、π/2だけ変化した時に調整される。
 ここでは、選択された第1の相の検出ゲインと第2の相の検出ゲインの両方を調整するような方法で説明したが、選択された第1の相の検出ゲインを基準ゲインとし、選択された第2の相の検出ゲインだけを調整しても良いし、選択された第2の相の検出ゲインを基準ゲインとし、選択された第1の相の検出ゲインだけを調整しても問題ない。例えば、第1の相にU相が選択され、第2の相にV相が選択された場合には、U相検出ゲインGcuを基準ゲインとし、V相検出ゲインGcvだけを調整しても良いし、V相検出ゲインGcvを基準ゲインとし、U相検出ゲインGcuを調整しても問題ない。また、第1の相にU相が選択され、第2の相にW相が選択された場合には、U相検出ゲインGcuを基準ゲインとし、W相検出ゲインGcwだけを調整しても良いし、W相検出ゲインGcwを基準ゲインとし、U相検出ゲインGcuを調整しても問題ない。また、第1の相にV相が選択され、第2の相にW相が選択された時には、V相検出ゲインGcvを基準ゲインとし、W相検出ゲインGcwだけを調整しても良いし、W相検出ゲインGcwを基準ゲインとし、V相検出ゲインGcvだけを調整しても問題ない。
(検出電流変換部170の処理内容の説明)
 図23は、実施例2にかかる検出電流変換部170の処理手順を説明する図である。まず、検出電流変換部170は、ステップo-1~o-3において、UVW相電流センサ50、55、58で検出したUVW相電流iu1、iv1、iw1をそれぞれ取得する。ここで、ステップo-1とo-2で取得したU相電流iu1とV相電流iv1は、それぞれ前記(2)式と前記(4)式で表され、ステップo-3で取得したW相電流iw1は、モータ60のW相巻線63に流れている真のW相電流iwtとW相電流センサ58のゲインGswを用いて、(33)式で表される。
Figure JPOXMLDOC01-appb-M000033
 次に、検出電流変換部170は、ステップo-4~o-6において、UVW相検出ゲインGcu、Gcv、Gcwを取得する。次に、検出電流変換部170は、ステップo-7において、ゲイン調整方向探索部240で生成した第4のカウント値Cnt4を取得する。次に、検出電流変換部170は、ステップo-8において、ゲイン補正機能起動停止部270で生成した補正機能起動停止フラグFlssを取得する。次に、検出電流変換部170は、ステップo-9において、ステップo-8で取得した補正機能起動停止フラグFlssが、2(起動済)を示しているか否かを判定する。
 ステップo-9において、補正機能起動停止フラグFlssが、2(起動済)を示している場合には、検出電流変換部170は、ステップo-10において、ステップo-7で取得した第4のカウント値Cnt4が、2に等しいか否かを判定する。
 ステップo-10において、第4のカウント値Cnt4が、2に等しい場合には、検出電流変換部170は、ステップo-11において、ステップo-1で取得したU相電流iu1とステップo-4で取得したU相検出ゲインGcuを前記(3)式に代入し、U相電流iu2を算出する。次に、検出電流変換部170は、ステップo-12において、ステップo-2で取得したV相電流iv1とステップo-5で取得したV相検出ゲインGcvを前記(6)式に代入し、V相電流iv2を算出する。次に、検出電流変換部170は、ステップo-13において、ステップo-11で算出したU相電流iu2とステップo-12で算出したV相電流iv2を前記(7)式に代入し、W相電流iw2を算出する。すなわち、補正機能起動停止フラグFlssが、2(起動済)を示しており、第4のカウント値Cnt4が、2に等しい場合には、検出電流変換部170は、U相とV相にだけ電流センサを取り付けた2相電流検出システムの検出電流変換部と同じように、UVW相電流iu2、iv2、iw2を算出する。
 このとき、ゲイン調整部250は、前記(3)式中に示したU相電流センサ50のゲインGsuとU相検出ゲインGcuの乗算値と前記(6)式中に示したV相電流センサ55のゲインGsvとV相検出ゲインGcvの乗算値とが等しくなるように、U相検出ゲインGcuとV相検出ゲインGcvの値を調整する。このように、U相検出ゲインGcuとV相検出ゲインGcvを調整することにより、U相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvのばらつきが補正される。
 一方、ステップo-10において、第4のカウント値Cnt4が、2に等しくない場合には、検出電流変換部170は、ステップo-14において、第4のカウント値Cnt4が、1に等しいか否かを判定する。ステップo-14において、第4のカウント値Cnt4が、1に等しい場合には、検出電流変換部170は、ステップo-15において、ステップo-1で取得したU相電流iu1とステップo-4で取得したU相検出ゲインGcuを前記(3)式に代入し、U相電流iu2を算出する。次に、検出電流変換部170は、ステップo-16において、ステップo-3で取得したW相電流iu1とステップo-6で取得したW相検出ゲインGcwを(34)式に代入し、W相電流iw2を算出する。
Figure JPOXMLDOC01-appb-M000034
 次に、検出電流変換部170は、ステップo-17において、ステップo-15で算出したU相電流iu2とステップo-16で算出したW相電流iw2を(35)式に代入し、V相電流iv2を算出する。
Figure JPOXMLDOC01-appb-M000035
 すなわち、補正機能起動停止フラグFlssが、2(起動済)を示しており、第4のカウント値Cnt4が、1に等しい場合には、検出電流変換部170は、U相とW相にだけ電流センサを取り付けた2相電流検出システムの検出電流変換部と同じように、UVW相電流iu2、iv2、iw2を算出する。この時、ゲイン調整部250は、前記(3)式中に示したU相電流センサ50のゲインGsuとU相検出ゲインGcuの乗算値と、前記(34)式中に示したW相電流センサ58のゲインGswとW相検出ゲインGcwの乗算値とが等しくなるように、U相検出ゲインGcuとW相検出ゲインGcwの値を調整する。このように、U相検出ゲインGcuとW相検出ゲインGcwを調整することにより、U相電流センサ50のゲインGsuとW相電流センサ58のゲインGswのばらつきが補正される。
 一方、ステップo-14において、第4のカウント値Cnt4が、1に等しくない場合には、検出電流変換部170は、ステップo-18において、ステップo-2で取得したV相電流iv2とステップo-5で取得したV相検出ゲインGcvを前記(6)式に代入し、V相電流iv2を算出する。次に、検出電流変換部170は、ステップo-19において、ステップo-3で取得したW相電流iw2とステップo-6で取得したW相検出ゲインGcwを前記(34)式に代入し、W相電流iw2を算出する。次に、検出電流変換部170は、ステップo-20において、ステップo-18で算出したV相電流iv2とステップo-19で算出したW相電流iw2を(36)式に代入し、U相電流iu2を算出する。
Figure JPOXMLDOC01-appb-M000036
 すなわち、補正機能起動停止フラグFlssが、2(起動済)を示しており、第4のカウント値Cnt4が、0に等しい場合には、検出電流変換部170は、V相とW相にだけ電流センサを取り付けた2相電流検出システムの検出電流変換部と同じように、UVW相電流iu2、iv2、iw2を算出する。この時、ゲイン調整部250は、前記(6)式中に示したV相電流センサ55のゲインGsvとV相検出ゲインGcvの乗算値と、前記(34)式中に示したW相電流センサ58のゲインGswとW相検出ゲインGcwの乗算値とが等しくなるように、V相検出ゲインGcvとW相検出ゲインGcwの値を調整する。このように、V相検出ゲインGcvとW相検出ゲインGcwを調整することにより、V相電流センサ55のゲインGsvとW相電流センサ58のゲインGswのばらつきが補正される。
 また、ステップo-9において、補正機能起動停止フラグFlssが、2(起動済)を示していない場合には、検出電流検出部170は、ステップo-21において、ステップo-1で取得したU相電流iu1とステップo-4で取得したU相検出ゲインGcuを前記(3)式に代入し、U相電流iu2を算出する。次に、検出電流検出部170は、ステップo-22において、ステップo-2で取得したV相電流iv1とステップo-5で取得したV相検出ゲインGcvを前記(6)式に代入し、V相電流iv2を算出する。次に、検出電流検出部170は、ステップo-23において、ステップo-3で取得したW相電流iw1とステップo-6で取得したW相検出ゲインGcwを前記(34)式に代入し、W相電流iw2を算出する。すなわち、補正機能起動停止フラグFlssが、2(起動済)を示していない場合には、検出電流変換部170は、U相とV相とW相全てに電流センサを取り付けた3相電流検出システムの検出電流変換部と同じように、UVW相電流iu2、iv2、iw2を算出する。
(q軸高調波電流iqhおよび各フラグと検出ゲインとの関係の説明)
 図24は、U相電流センサ50のゲインGsuと、V相電流センサ55のゲインGsvと、W相電流センサ58のゲインGswと、q軸高調波電流iqhと、ピーク検出フラグFlpkと、補正機能起動停止フラグFlssと、調整状態決定フラグFlstと、調整方向決定フラグFlcmpと、第1のカウント値Cnt1と、第2のカウント値Cnt2と、第3のカウント値Cnt3と、第4のカウント値Cnt4と、上述した手順によって調整されたU相検出ゲインGcuとV相検出ゲインGcvとW相検出ゲインGcwの関係を説明する図である。ここでは、U相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvとW相電流センサのゲインGswの大小関係は、(37)式のように想定し、時刻t7からU相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvとW相電流センサのゲインGswのばらつきを補正するように設定している。
Figure JPOXMLDOC01-appb-M000037
 まず、時刻t7において、補正機能起動停止フラグFlssが、0(停止)から1(起動開始)に変化する。その直後に、補正機能起動停止フラグFlssは、1(起動開始)から2(起動済)に切り替わる。これに伴って、調整状態決定フラグFlstが、0(終了)から5(切替開始)に切り替わると同時に、第4のカウント値Cnt4が0から2に変化する。補正機能起動停止フラグFlssが2(起動済)で、第4のカウント値Cnt4が2の時、UVW相電流iu2、iv2、iw2は、それぞれ前記(3)式、(6)式、(7)式で算出されている。
 次に、調整状態決定フラグFlstは、ピーク検出フラグFlpkが、0から1に変化した瞬間に、5(切替開始)から6(切替中)に切り替わる。同時に、第3のカウント値Cnt3が、所定値X4からカウントダウンを開始する。そして、第3のカウント値Cnt3が0になった瞬間に、調整状態決定フラグFlstは、6(切替中)から7(切替完了)に切り替わる。
 このとき、q軸高調波電流iqhの負のピーク値Pknは、第1の負の閾値Thn1よりも小さいため、調整状態決定フラグFlstは、7(切替完了)から1(探索)に切り替わる。調整状態決定フラグFlstが、7(切替完了)から1(探索)に切り替った瞬間に、第1のカウント値Cnt1が、所定値X1からカウントダウンを開始する。そして、第1のカウント値Cnt1が、(X1/2)と等しくなった瞬間に、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)から1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)に切り替わる。
 そして、調整状態決定フラグFlstが1(探索)で、調整方向決定フラグFlcmpが0の時に、U相検出ゲインGcuは、1(初期値)から正の方向に所定値X2だけ増大され、V相検出ゲインGcvは、1(初期値)から負の方向に所定値X2だけ増大される。ここで、U相検出ゲインGcuが、1(初期値)から正の方向に所定値X2だけ増大し、V相検出ゲインGcvが、1(初期値)から負の方向に所定値X2だけ増大する期間を期間Fとする。
 一方、調整状態決定フラグFlstが1(探索)で、調整方向決定フラグFlcmpが1の時に、U相検出ゲインGcuは、1(初期値)から負の方向に所定値X2だけ増大され、V相検出ゲインGcvは、1(初期値)から正の方向に所定値X2だけ増大される。ここで、U相検出ゲインGcuが、1(初期値)から負の方向に所定値X2だけ増大し、V相検出ゲインGcvが、1(初期値)から正の方向に所定値X2だけ増大する期間を期間Gとする。
 次に、前記期間Fのq軸高調波電流iqhのピークピーク値の平均値は、前記期間Gのq軸高調波電流iqhのピークピーク値の平均値よりも小さいことがわかる。したがって、第1のカウント値Cnt1が0となり、調整状態決定フラグFlstが1(探索)から2(開始)に切り替わった瞬間に、調整方向決定フラグFlcmpは、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)から0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)に切り替わる。そして、調整方向決定フラグFlcmpが、1(U相検出ゲインGcuを負方向に増大し、V相検出ゲインGcvを正方向に増大する信号)から0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)に切り替った直後に、調整状態決定フラグFlstは、2(開始)から3(継続)に切り替わる。そして、調整状態決定フラグFlstが3(継続)で、調整方向決定フラグFlcmpが0の時には、U相検出ゲインGcuは、正の方向に所定値X3の刻みで徐々に増大され、V相検出ゲインGcvは、負の方向に所定値X3の刻みで徐々に増大される。
 そして、時刻t8において、q軸高調波電流iqhの正負のピーク値Pkp、Pknが、第3の正負の閾値Thp3、Thn3の範囲内に収まる。これによって、調整状態決定フラグFlstは、3(継続)から0(終了)に切り替わり、U相検出ゲインGcuとV相検出ゲインGcvの調整が終了する。
 次に、時刻t8の直後に、調整状態決定フラグFlstが、0(終了)から5(切替開始)に切り替わる。これと同時に、第4のカウント値Cnt4が、2から1に変化する。補正機能起動停止フラグFlssが2(起動済)で、第4のカウント値Cnt4が1の時、UVW相電流iu2、iv2、iw2は、それぞれ(3)式、(35)式、(34)式
で算出されている。
 次に、調整状態決定フラグFlstは、ピーク検出フラグFlpkが、0から1に変化した瞬間に、5(切替開始)から6(切替中)に切り替わる。同時に、第3のカウント値Cnt3が、所定値X4からカウントダウンを開始する。そして、第3のカウント値Cnt3が、0になった瞬間に、調整状態決定フラグFlstは、6(切替中)から7(切替完了)に切り替わる。
 このとき、q軸高調波電流iqhの正のピーク値Pkpは、第1の正の閾値Thp1よりも大きいため、調整状態決定フラグFlstは、7(切替完了)から1(探索)に切り替わる。調整状態決定フラグFlstが、7(切替完了)から1(探索)に切り替った瞬間に、調整方向決定フラグFlcmpが、0(U相検出ゲインGcuを正方向に増大し、V相検出ゲインGcvを負方向に増大する信号)から2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)に切り替わると同時に、第1のカウント値Cnt1が、所定値X1からカウントダウンを開始する。そして、第1のカウント値Cnt1が、(X1/2)と等しくなった瞬間に、調整方向決定フラグFlcmpは、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)から3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)に切り替わる。
 そして、調整状態決定フラグFlstが1(探索)で、調整方向決定フラグFlcmpが2の時に、U相検出ゲインGcuは、1(初期値)から正の方向に所定値X2だけ増大され、W相検出ゲインGcvは、1(初期値)から負の方向に所定値X2だけ増大される。ここで、U相検出ゲインGcuが、1(初期値)から正の方向に所定値X2だけ増大し、W相検出ゲインGcwが、1(初期値)から負の方向に所定値X2だけ増大する期間を期間Hとする。
 一方、調整状態決定フラグFlstが1(探索)で、調整方向決定フラグFlcmpが3の時に、U相検出ゲインGcuは、1(初期値)から負の方向に所定値X2だけ増大され、W相検出ゲインGcwは、1(初期値)から正の方向に所定値X2だけ増大される。ここで、U相検出ゲインGcuが、1(初期値)から負の方向に所定値X2だけ増大し、W相検出ゲインGcwが、1(初期値)から正の方向に所定値X2だけ増大する期間を期間Iとする。
 次に、前記期間Hのq軸高調波電流iqhのピークピーク値の平均値は、前記期間Iのq軸高調波電流iqhのピークピーク値の平均値よりも小さいことがわかる。したがって、第1のカウント値Cnt1が0となり、調整状態決定フラグFlstが1(探索)から2(開始)に切り替わった瞬間に、調整方向決定フラグFlcmpは、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)から2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)に切り替わる。そして、調整方向決定フラグFlcmpが、3(U相検出ゲインGcuを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)から2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)に切り替った直後に、調整状態決定フラグFlstは、2(開始)から3(継続)に切り替わる。そして、調整状態決定フラグFlstが3(継続)で、調整方向決定フラグFlcmpが2の時には、U相検出ゲインGcuは、正の方向に所定値X3の刻みで徐々に増大され、W相検出ゲインGcwは、負の方向に所定値X3の刻みで徐々に増大される。
 そして、時刻t9において、q軸高調波電流iqhの正負のピーク値Pkp、Pknが、第3の正負の閾値Thp3、Thn3の範囲内に収まる。これによって、調整状態決定フラグFlstは、3(継続)から0(終了)に切り替わり、U相検出ゲインGcuとW相検出ゲインGcwの調整が終了する。
 次に、時刻t8の直後に、調整状態決定フラグFlstは、0(終了)から5(切替開始)に切り替わる。これと同時に、第4のカウント値Cnt4が、1から0に変化する。補正機能起動停止フラグFlssが2(起動済)で、第4のカウント値Cnt4が0の時、UVW相電流iu2、iv2、iw2は、それぞれ前記(36)式、(6)式、(34)式で算出されている。
 次に、調整状態決定フラグFlstは、ピーク検出フラグFlpkが、0から1に変化した瞬間に、5(切替開始)から6(切替中)に切り替わる。同時に、第3のカウント値Cnt3が、所定値X4からカウントダウンを開始する。そして、第3のカウント値Cnt3が、0になった瞬間に、調整状態決定フラグFlstは、6(切替中)から7(切替完了)に切り替わる。
 このとき、q軸高調波電流iqhの正のピーク値Pkpは、第1の正の閾値Thp1よりも大きいため、調整状態決定フラグFlstは、7(切替完了)から1(探索)に切り替わる。調整状態決定フラグFlstが、7(切替完了)から1(探索)に切り替った瞬間に、調整方向決定フラグFlcmpは、2(U相検出ゲインGcuを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)から4(V相検出ゲインGcvを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)に切り替わり、第1のカウント値Cnt1が、所定値X1からカウントダウンを開始する。そして、第1のカウント値Cnt1が、(X1/2)と等しくなった瞬間に、調整方向決定フラグFlcmpは、4(V相検出ゲインGcvを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)から5(V相検出ゲインGcvを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)に切り替わる。
 そして、調整状態決定フラグFlstが1(探索)で、調整方向決定フラグFlcmpが4の時に、V相検出ゲインGcvは、1(初期値)から正の方向に所定値X2だけ増大され、W相検出ゲインGcwは、1(初期値)から負の方向に所定値X2だけ増大される。ここで、V相検出ゲインGcvが、1(初期値)から正の方向に所定値X2だけ増大し、W相検出ゲインGcwが、1(初期値)から負の方向に所定値X2だけ増大する期間を期間Jとする。
 一方、調整状態決定フラグFlstが1(探索)で、調整方向決定フラグFlcmpが5の時に、V相検出ゲインGcvは、1(初期値)から負の方向に所定値X2だけ増大され、W相検出ゲインGcwは、1(初期値)から正の方向に所定値X2だけ増大される。ここで、V相検出ゲインGcvが、1(初期値)から負の方向に所定値X2だけ増大し、W相検出ゲインGcwが、1(初期値)から正の方向に所定値X2だけ増大する期間を期間Kとする。
 次に、前記期間Jのq軸高調波電流iqhのピークピーク値の平均値は、前記期間Kのq軸高調波電流iqhのピークピーク値の平均値よりも小さいことがわかる。したがって、第1のカウント値Cnt1が0となり、調整状態決定フラグFlstが、1(探索)から2(開始)に切り替わった瞬間に、調整方向決定フラグFlcmpは、5(V相検出ゲインGcvを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)から4(V相検出ゲインGcvを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)に切り替わる。そして、調整方向決定フラグFlcmpが、5(V相検出ゲインGcvを負方向に増大し、W相検出ゲインGcwを正方向に増大する信号)から4(V相検出ゲインGcvを正方向に増大し、W相検出ゲインGcwを負方向に増大する信号)に切り替った直後に、調整状態決定フラグFlstは、2(開始)から3(継続)に切り替わる。そして、調整状態決定フラグFlstが3(継続)で、調整方向決定フラグFlcmpが4の時には、V相検出ゲインGcvは、正の方向に所定値X3の刻みで徐々に増大され、W相検出ゲインGcwは、負の方向に所定値X3の刻みで徐々に増大される。
 そして、時刻t10において、q軸高調波電流iqhの正負のピーク値Pkp、Pknが、第3の正負の閾値Thp3、Thn3の範囲内に収まる。これによって、調整状態決定フラグFlstは、3(継続)から0(終了)に切り替わり、V相検出ゲインGcvとW相検出ゲインGcwの調整が終了する。
 次に、時刻t10の直後に、調整状態決定フラグFlstが、0(終了)から5(切替開始)に切り替わる。これと同時に、第4のカウント値Cnt4は、0から2に変化する。補正機能起動停止フラグFlssが2(起動済)で、第4のカウント値Cnt4が2の時、UVW相電流iu2、iv2、iw2は、それぞれ前記(3)式、(6)式、(7)式で算出されている。
 次に、ピーク検出フラグFlpkが、0から1に変化した瞬間に、調整状態決定フラグFlstは、5(切替開始)から6(切替中)に切り替わり、第3のカウント値Cnt3が、所定値X4からカウントダウンを開始する。そして、第3のカウント値Cnt3が0になった瞬間に、調整状態決定フラグFlstは、6(切替中)から7(切替完了)に切り替わる。このとき、q軸高調波電流iqhの正負のピーク値Pkp、Pknは、第1の正負の閾値Thp1、Thn1の範囲内に収まっているため、調整状態決定フラグFlstは、7(切替完了)から0(終了)に切り替わると同時に、第2のカウント値Cnt2が3から2に変化する。
 次に、時刻t11の直後に、調整状態決定フラグFlstは、0(終了)から5(切替開始)に切り替わる。同時に、第4のカウント値Cnt4が、2から1に変化する。補正機能起動停止フラグFlssが2(起動済)で、第4のカウント値Cnt4が1の時、UVW相電流iu2、iv2、iw2は、それぞれ(3)式、(35)式、(34)式で算出されている。
 次に、ピーク検出フラグFlpkが、0から1に変化した瞬間に、調整状態決定フラグFlstは、5(切替開始)から6(切替中)に切り替わり、第3のカウント値Cnt3が、所定値X4からカウントダウンを開始する。そして、第3のカウント値Cnt3が、0になった瞬間に、調整状態決定フラグFlstは、6(切替中)から7(切替完了)に切り替わる。この時、q軸高調波電流iqhの正負のピーク値Pkp、Pknは、第1の正負の閾値Thp1、Thn1の範囲内に収まっているため、調整状態決定フラグFlstは、7(切替完了)から0(終了)に切り替わる。同時に、第2のカウント値Cnt1が2から1に変化する。
 次に、時刻t12の直後に、調整状態決定フラグFlstは、0(終了)から5(切替開始)に切り替わる。同時に、第4のカウント値Cnt4は、1から0に変化する。補正機能起動停止フラグFlssが2(起動済)で、第4のカウント値Cnt4が1の時、UVW相電流iu2、iv2、iw2は、それぞれ前記(6)式、(36)式、(34)式で算出されている。
 次に、ピーク検出フラグFlpkが、0から1に変化した瞬間に、調整状態決定フラグFlstは、5(切替開始)から6(切替中)に切り替わり、第3のカウント値Cnt3が、所定値X4からカウントダウンを開始する。そして、第3のカウント値Cnt3が0になった瞬間に、調整状態決定フラグFlstは、6(切替中)から7(切替完了)に切り替わる。この時、q軸高調波電流iqhの正負のピーク値Pkp、Pknは、第1の正負の閾値Thp1、Thn1の範囲内に収まっているため、調整状態決定フラグFlstは、7(切替完了)から0(終了)に切り替わる。同時に、第2のカウント値Cnt1が1から0に変化する。
 時刻t13において、第2のカウント値Cnt2が0となったため、補正機能起動停止フラグFlssは、2(起動済)から0(停止)に変化し、補正機能が停止される。なお、補正機能起動停止フラグFlssが0(停止)の時、UVW相電流iu2、iv2、iw2は、それぞれ前記(3)式、(6)式、(34)式で算出されている。
 このように、U相検出ゲインGcuとV相検出ゲインGcvとW相検出ゲインGcwを調整することにより、U相電流センサ50のゲインGsuとU相検出ゲインGcuとの乗算値と、V相電流センサ55のゲインGsvとV相検出ゲインGcvと、W相電流センサ58のゲインGswとW相検出ゲインGcwとの乗算値を、ほぼ一致させることができる。すなわち、U相電流センサ50のゲインGsvとV相電流センサ55のゲインGsvとW相電流センサ58のゲインGswのばらつきを補正することができる。
 また、q軸電流iqに含まれているモータ60の回転子64の電気角周波数feの2倍の周波数の高調波電流iqhは、U相電流センサ50のゲインGsuとV相電流センサ55のゲインGsvのばらつきが補正され始めた直後、もしくは、U相電流センサ50のゲインGsuとW相電流センサ55のゲインGswのばらつきが補正され始めた直後、もしくは、V相電流センサ50のゲインGsvとW相電流センサ55のゲインGswのばらつきが補正され始めた直後に、一定期間だけ減少(もしくは、増大)してから一定期間だけ増大(もしくは、減少)した後、徐々に減少する波形となる。
 図25は、実施例3にかかる車両システムを説明する図である。上述した実施例1は、U相とV相、もしくは、U相とW相、もしくはV相とW相に電流センサを取り付けた2相電流検出システムにおいて、3相/dq軸変換部180で算出したq軸電流iq(もしくは、d軸電流id)に含まれているモータ60の回転子64の電気角周波数feの2倍の周波数の高調波電流を高調波抽出部220で抽出し、抽出したq軸高調波電流iqh(もしくは、d軸高調波電流idh)のピークピーク値を第3の正負の閾値Thp3、Thn3の範囲内となるように、電流センサのゲインのばらつきを補正する方法である。
 本実施例は、U相とV相、もしくは、U相とW相、もしくはV相とW相に電流センサを取り付けた2相電流検出システムにおいて、電圧指令演算部190で算出したq軸電圧指令vq*(もしくは、d軸電圧指令vd*)に含まれているモータ60の回転子64の電気角周波数feの2倍の周波数の高調波電圧指令を高調波抽出器220で抽出し、抽出したq軸高調波電圧指令vqh*(もしくは、d軸高調波電圧指令vdh*)のピークピーク値を第3の正負の閾値Thp3、Thn3の範囲内に収まるように、電流センサのゲインのばらつきを補正する方法である。それ以外は、上述した実施例1と同じ構成であるため、説明を省略する。
 図26は、実施例4にかかる車両システムを説明する図である。上述した実施例2は、U相とV相とW相の全てに電流センサを取り付けた3相電流検出システムにおいて、3相/dq軸変換部180で算出したq軸電流iq(もしくは、d軸電流id)に含まれているモータ60の回転子64の電気角周波数feの2倍の周波数の高調波電流を高調波抽出部220で抽出し、抽出したq軸高調波電流iqh(もしくは、d軸高調波電流idh)のピークピーク値を第3の正負の閾値Thp3、Thn3の範囲内に収まるように、電流センサのゲインのばらつきを補正する方法である。
 本実施例は、U相とV相とW相の全てに電流センサを取り付けた3相電流検出システムにおいて、電圧指令演算部190で算出したq軸電圧指令vq*(もしくは、d軸電圧指令vd*)に含まれているモータ60の回転子64の電気角周波数feの2倍の周波数の高調波電圧指令を高調波抽出器220で抽出し、抽出したq軸高調波電圧指令vqh*(もしくは、d軸高調波電圧指令vdh*)のピークピーク値を第3の正負の閾値Thp3、Thn3の範囲内に収まるように、電流センサのゲインのばらつきを補正する方法である。それ以外は、実施例2と同じ構成であるため、説明を省略する。
10 バッテリ
20 平滑キャパシタ
40 インバータ
41 インバータ40のU相上アームのスイッチング素子
42 インバータ40のU相下アームのスイッチング素子
43 インバータ40のV相上アームのスイッチング素子
44 インバータ40のV相下アームのスイッチング素子
45 インバータ40のW相上アームのスイッチング素子
46 インバータ40のW相下アームのスイッチング素子
50 U相電流センサ
55 V相電流センサ
58 W相電流センサ
60 モータ
61 モータ60のU相巻線
62 モータ60のV相巻線
63 モータ60のW相巻線
64 モータ60の回転子
70 角度センサ
80 モータ60の出力軸
90 トランスミッション
100 クランクシャフト
110 エンジン
120 プロペラシャフト
130 ディファレンシャルギア
140 ドライブシャフト
150 駆動輪
160 インバータ制御装置
170 検出電流変換部
180 3相/dq軸変換部
190 電圧指令演算部
200 dq軸/3相変換部
210 PWM信号生成部
220 高調波抽出部
225 ピーク検出部
230 ゲイン調整状態決定部
240 ゲイン調整方向探索部
250 ゲイン調整部
260 ゲイン補正機能搭載部
270 ゲイン補正機能起動停止部
iq q軸電流
id d軸電流
θe モータ60の回転子64の電気角
fe モータ60の回転子64の電気角周波数
θx 所定値
X1 所定値
X2 所定値
X3 所定値
X4 所定値
id* d軸電流指令
iq* q軸電流指令
vd* d軸電圧指令
vq* q軸電圧指令
vu* U相電圧指令
vv* V相電圧指令
vw* W相電圧指令
Δid d軸電流指令id*とd軸電流idとの偏差
Δiq q軸電流指令iq*とq軸電流iqとの偏差
idh d軸電流idに含まれている電気角周波数feの2倍の周波数の高調波電流
iqh q軸電流iqに含まれている電気角周波数feの2倍の周波数の高調波電流
iu1 U相電流センサ50で検出したU相電流
iv1 V相電流センサ55で検出したV相電流
iw1 W相電流センサ58で検出したW相電流
iu2 検出電流変換部170により補正されたU相電流
iv2 検出電流変換部170により補正されたV相電流
iw2 検出電流変換部170により補正されたW相電流
iut モータ60のU相巻線61に流れている真のU相電流
ivt モータ60のV相巻線62に流れている真のV相電流
iwt モータ60のW相巻線63に流れている真のW相電流
Pkp q軸高調波電流の正のピーク値
Pkn q軸高調波電流の負のピーク値
Gsu U相電流センサ50のゲイン
Gsv V相電流センサ55のゲイン
Gsw W相電流センサ58のゲイン
Gcu U相検出ゲイン
Gcv V相検出ゲイン
Gcw W相検出ゲイン
Sup スイッチング素子41を構成するIGBTのオンとオフを制御するPWM信号
Sun スイッチング素子42を構成するIGBTのオンとオフを制御するPWM信号
Svp スイッチング素子43を構成するIGBTのオンとオフを制御するPWM信号
Svn スイッチング素子44を構成するIGBTのオンとオフを制御するPWM信号
Swp スイッチング素子45を構成するIGBTのオンとオフを制御するPWM信号
Swn スイッチング素子46を構成するIGBTのオンとオフを制御するPWM信号
Kpd d軸比例ゲイン
Kid d軸積分ゲイン
Kpq q軸比例ゲイン
Kiq q軸積分ゲイン
Δθe 最新の電気角θeと過去の電気角θeoldとの電気角の差分値
vqh* q軸電圧指令vq*に含まれている電気角周波数feの2倍の周波数の高調波電圧指令
vdh* d軸電圧指令vd*に含まれている電気角周波数feの2倍の周波数の高調波電圧指令
Cnt1 第1のカウント値
Cnt2 第2のカウント値
Cnt3 第3のカウント値
Cnt4 第4のカウント値
Thp1 第1の正の閾値
Thn1 第1の負の閾値
Thp2 第2の正の閾値
Thn2 第2の負の閾値
Thp3 第3の正の閾値
Thn3 第3の負の閾値
Flpk ピーク検出フラグ
Flst 調整状態決定フラグ
Flss 補正機能起動停止フラグ
Flcmp 調整方向決定フラグ
iqold 1演算周期前のq軸電流
θeold 過去の電気角
Pkps1 q軸高調波電流の正のピーク値を積算した第1の正のピーク値の積算値
Pkps2 q軸高調波電流の正のピーク値を積算した第2の正のピーク値の積算値
Pkns1 q軸高調波電流の負のピーク値を積算した第1の負のピーク値の積算値
Pkns2 q軸高調波電流の負のピーク値を積算した第2の負のピーク値の積算値
Pkpa1 第1の正のピーク値の平均値
Pkna1 第1の負のピーク値の平均値
Pkda1 第1のピークピーク値の平均値
Pkpa2 第2の正のピーク値の平均値
Pkna2 第2の負のピーク値の平均値
Pkda2 第2のピークピーク値の平均値
Gcuold U相検出ゲインの過去値
Gcvold V相検出ゲインの過去値
Gcwold W相検出ゲインの過去値
Δθeold 1演算周期前の電気角の差分値
iqhold1 第1のq軸高調波電流の過去値
iqhold2 第2のq軸高調波電流の過去値
iqinter q軸電流補間値

Claims (12)

  1.  3相交流モータへの出力電流を制御するインバータ制御装置であって、
     電流センサにより検出された前記出力電流をdq軸電流に変換する3相/dq軸変換部と、
     前記電流センサの検出ゲインを各相ごとに調整するゲイン調整部と、を備え、
     前記dq軸電流に含まれている2次高調波成分の電流値が所定の閾値以上である場合に、前記ゲイン調整部は、前記2次高調波成分の電流値が前記閾値を下回るように、前記電流センサのゲインを補正するインバータ制御装置。
  2.  請求項1に記載のインバータ制御装置であって、
     第1の期間において、前記ゲイン調整部は、前記出力電流のいずれか1相の電流である第1相電流の検出ゲインを第1のゲイン値に設定し、
     前記第1の期間経過後の第2の期間において、前記ゲイン調整部は、前記第1相電流の検出ゲインを前記第1のゲイン値よりも小さい第2のゲイン値に設定し、
     前記ゲイン調整部は、前記第1の期間における前記dq軸電流に含まれている2次高調波成分の電流値と、前記第2の期間における前記dq軸電流に含まれている2次高調波成分の電流値との比較結果に応じて、前記第1相電流の前記検出ゲインを増加させるか減少させるかを切り替えるインバータ制御装置。
  3.  請求項2に記載のインバータ制御装置であって、
     前記第2の期間経過後の第3の期間において、前記ゲイン調整部は、前記第1の期間における前記dq軸電流に含まれている2次高調波成分の電流値が、前記第2の期間における前記dq軸電流に含まれている2次高調波成分の電流値よりも大きい場合には、前記第1相電流の検出ゲインを徐々に減少させる調整をし、前記第1の期間における前記dq軸電流に含まれている2次高調波成分の電流値が、前記第2の期間における前記dq軸電流に含まれている2次高調波成分の電流値よりも小さい場合には、前記第1相電流の検出ゲインを徐々に増加させる調整をするインバータ制御装置。
  4.  請求項2に記載のインバータ制御装置であって、
     前記第1の期間において、前記ゲイン調整部は、前記出力電流のうち、前記第1相電流とは異なる相の電流である第2相電流の検出ゲインを第3のゲイン値に設定し、
     前記第2の期間において、前記ゲイン調整部は、前記第2相電流の検出ゲインを前記第3のゲイン値よりも大きい第4のゲイン値に設定し、
     前記ゲイン調整部は、前記第1の期間における前記dq軸電流に含まれている2次高調波成分の電流値と、前記第2の期間における前記dq軸電流に含まれている2次高調波成分の電流値との比較結果に応じて、前記第2相電流の前記検出ゲインを増加させるか減少させるかを切り替えるインバータ制御装置。
  5.  請求項4に記載のインバータ制御装置であって、
     前記第2の期間経過後の第3の期間において、前記ゲイン調整部は、前記第1の期間における前記dq軸電流に含まれている2次高調波成分の電流値が、前記第2の期間における前記dq軸電流に含まれている2次高調波成分の電流値よりも大きい場合には、前記第2相電流の検出ゲインを徐々に増加させる調整をし、前記第1の期間における前記dq軸電流に含まれている2次高調波成分の電流値が、前記第2の期間における前記dq軸電流に含まれている2次高調波成分の電流値(もしくは、前記第2の期間における前記dq軸電圧指令に含まれている2次高調波成分の電圧指令値)よりも小さい場合には、前記第2相電流の検出ゲインを徐々に減少させる調整をするインバータ制御装置。 
  6.  請求項4に記載のインバータ制御装置であって、
     前記第3の期間経過後の第4の期間において、前記ゲイン調整部は、前記第1相電流の検出ゲインを第5のゲイン値に設定し、
     前記第4の期間経過後の第5の期間において、前記ゲイン調整部は、前記第1相電流の検出ゲインを前記第5のゲイン値よりも小さい第6のゲイン値に設定し、
     前記第4の期間において、前記ゲイン調整部は、前記出力電流のうち、前記第1相電流および前記第2相電流とは異なる相の電流である第3相電流の検出ゲインを第7のゲイン値に設定し、
     前記第5の期間において、前記ゲイン調整部は、前記第3相電流の検出ゲインを前記第7のゲイン値よりも大きい第8のゲイン値に設定し、
     前記ゲイン調整部は、前記第4の期間における前記dq軸電流に含まれている2次高調波成分の電流値と、前記第5の期間における前記dq軸電流に含まれている2次高調波成分の電流値との比較結果に応じて、前記第1相電流及び第3相電流の前記検出ゲインを増加させるか減少させるかを切り替えるインバータ制御装置。
  7.  請求項6に記載のインバータ制御装置であって、
     前記第5の期間経過後の第6の期間において、前記ゲイン調整部は、前記第4の期間における前記dq軸電流に含まれている2次高調波成分の電流値が、前記第5の期間における前記dq軸電流に含まれている2次高調波成分の電流値よりも大きい場合には、前記第1相電流の検出ゲインを徐々に減少させる調整又は第3相電流の検出ゲインを徐々に増加させる調整の少なくともいずれかの調整をし、前記第4の期間における前記dq軸電流に含まれている2次高調波成分の電流値が、前記第5の期間における前記dq軸電流に含まれている2次高調波成分の電流値よりも小さい場合には、前記第1相電流の検出ゲインを徐々に増加させる調整又は第3相電流の検出ゲインを徐々に減少させる調整の少なくともいずれかの調整をするインバータ制御装置。
  8.  請求項6に記載のインバータ制御装置であって、
     前記第6の期間経過後の第7の期間において、前記ゲイン調整部は、前記第2相電流の検出ゲインを第9のゲイン値に設定し、
     前記第7の期間経過後の第8の期間において、前記ゲイン調整部は、前記第2相電流の検出ゲインを前記第9のゲイン値よりも小さい第10のゲイン値に設定し、
     前記第7の期間において、前記ゲイン調整部は、前記第3相電流の検出ゲインを第11のゲイン値に設定し、
     前記第8の期間において、前記ゲイン調整部は、前記第3相電流の検出ゲインを前記第11のゲイン値よりも大きい第12のゲイン値に設定し、
     前記ゲイン調整部は、前記第7の期間における前記dq軸電流に含まれている2次高調波成分の電流値と、前記第8の期間における前記dq軸電流に含まれている2次高調波成分の電流値との比較結果に応じて、前記第2相電流及び第3相電流の前記検出ゲインを増加させるか減少させるかを切り替えるインバータ制御装置。
  9.  請求項8に記載のインバータ制御装置であって、
     前記第8の期間経過後の第9の期間において、前記ゲイン調整部は、前記第7の期間における前記dq軸電流に含まれている2次高調波成分の電流値が、前記第8の期間における前記dq軸電流に含まれている2次高調波成分の電流値よりも大きい場合には、前記第2相電流の検出ゲインを徐々に減少させる調整又は第3相電流の検出ゲインを徐々に増加させる調整の少なくともいずれかの調整をし、前記第7の期間における前記dq軸電流に含まれている2次高調波成分の電流値が、前記第8の期間における前記dq軸電流に含まれている2次高調波成分の電流値よりも小さい場合には、前記第2相電流の検出ゲインを徐々に増加させる調整又は第3相電流の検出ゲインを徐々に減少させる調整の少なくともいずれかの調整をするンバータ制御装置。
  10.  請求項2に記載のインバータ制御装置であって、
     前記第1の期間及び第2の期間は、前記出力電流に含まれている基本波電流の1/2周期よりも長い期間であるインバータ制御装置。
  11.  請求項2に記載のインバータ制御装置であって、
     前記ゲイン調整部は、前記出力電流に含まれている基本波電流の1/4周期以上の周期で、前記各相の検出ゲインを増加または減少させる調整をするインバータ制御装置。
  12.  3相交流モータへの出力電流を制御するインバータ制御装置であって、
     電流センサにより検出された前記出力電流をdq軸電流に変換する3相/dq軸変換部と、
     前記dq軸電流とdq軸電流指令に基づいてdq軸電圧指令を生成する電圧指令演算部と、
     前記電流センサの検出ゲインを各相ごとに調整するゲイン調整部と、を備え、
     前記dq軸電圧指令に含まれている2次高調波成分の電圧指令値が所定の閾値以上である場合に、前記ゲイン調整部は、前記2次高調波成分の電圧値が前記閾値を下回るように、前記電流センサのゲインを補正するインバータ制御装置。
PCT/JP2016/063306 2015-05-12 2016-04-28 インバータ制御装置 WO2016181851A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US15/571,881 US10355630B2 (en) 2015-05-12 2016-04-28 Inverter control device
CN201680027386.2A CN107534406B (zh) 2015-05-12 2016-04-28 逆变器控制装置
EP16792576.7A EP3297154B8 (en) 2015-05-12 2016-04-28 Inverter control device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2015096994A JP6527747B2 (ja) 2015-05-12 2015-05-12 インバータ制御装置
JP2015-096994 2015-05-12

Publications (1)

Publication Number Publication Date
WO2016181851A1 true WO2016181851A1 (ja) 2016-11-17

Family

ID=57249138

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2016/063306 WO2016181851A1 (ja) 2015-05-12 2016-04-28 インバータ制御装置

Country Status (5)

Country Link
US (1) US10355630B2 (ja)
EP (1) EP3297154B8 (ja)
JP (1) JP6527747B2 (ja)
CN (1) CN107534406B (ja)
WO (1) WO2016181851A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107607784A (zh) * 2017-07-28 2018-01-19 中国农业大学 一种开环同步方法

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10330070B2 (en) * 2017-11-14 2019-06-25 Gm Global Technology Operations Llc. Method and apparatus for operating a starter for an internal combustion engine
CN109600088B (zh) * 2018-10-31 2020-05-19 华中科技大学 一种三相逆变器的谐波电流注入装置及方法
CN111200379A (zh) * 2018-11-16 2020-05-26 宝沃汽车(中国)有限公司 永磁同步电机的控制系统和方法
US10889285B2 (en) * 2019-02-04 2021-01-12 GM Global Technology Operations LLC Control of AC electric machine using average synchronous frame currents
CN112421997B (zh) * 2019-08-23 2022-07-12 广东美的生活电器制造有限公司 电机的力矩补偿装置、方法、系统、家用电器及存储介质
WO2021106373A1 (ja) * 2019-11-26 2021-06-03 日本精工株式会社 モータ制御装置、電動アクチュエータ製品及び電動パワーステアリング装置
TWI745056B (zh) * 2020-08-28 2021-11-01 台達電子工業股份有限公司 馬達連接故障偵測方法
CN114114068B (zh) 2020-08-28 2024-07-02 台达电子工业股份有限公司 马达连接故障检测方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003259698A (ja) * 2002-03-05 2003-09-12 Fuji Electric Co Ltd 三相電流検出器のゲイン補正方法
US20130106332A1 (en) * 2010-03-02 2013-05-02 Trw Limited Current Sensor Error Compensation
JP2013187945A (ja) * 2012-03-06 2013-09-19 Mitsubishi Electric Corp 直流電源装置、ならびにその直流電源装置を備えた空気調和機および直流給電システム
US20140254217A1 (en) * 2013-03-06 2014-09-11 Rockwell Automation Technologies, Inc. Method and apparatus for ripple and phase loss detection

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004120814A (ja) 2002-09-24 2004-04-15 Mitsubishi Electric Corp 電動機の制御装置、電動機装置、電動機の制御方法
JP4314844B2 (ja) * 2003-03-05 2009-08-19 オムロン株式会社 パワーコンディショナ装置
CN107040177B (zh) * 2008-01-16 2019-08-09 株式会社捷太格特 马达控制装置以及电动动力转向装置
JP6115251B2 (ja) * 2013-03-28 2017-04-19 株式会社富士通ゼネラル モータ制御装置
JP2015035874A (ja) * 2013-08-08 2015-02-19 トヨタ自動車株式会社 電力制御装置
US9419553B2 (en) * 2014-07-25 2016-08-16 Denso Corporation Apparatus for controlling rotary machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003259698A (ja) * 2002-03-05 2003-09-12 Fuji Electric Co Ltd 三相電流検出器のゲイン補正方法
US20130106332A1 (en) * 2010-03-02 2013-05-02 Trw Limited Current Sensor Error Compensation
JP2013187945A (ja) * 2012-03-06 2013-09-19 Mitsubishi Electric Corp 直流電源装置、ならびにその直流電源装置を備えた空気調和機および直流給電システム
US20140254217A1 (en) * 2013-03-06 2014-09-11 Rockwell Automation Technologies, Inc. Method and apparatus for ripple and phase loss detection

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3297154A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107607784A (zh) * 2017-07-28 2018-01-19 中国农业大学 一种开环同步方法

Also Published As

Publication number Publication date
JP6527747B2 (ja) 2019-06-05
JP2016213997A (ja) 2016-12-15
EP3297154A1 (en) 2018-03-21
EP3297154A4 (en) 2019-01-02
EP3297154B8 (en) 2021-10-13
CN107534406A (zh) 2018-01-02
US20180138845A1 (en) 2018-05-17
CN107534406B (zh) 2020-03-27
US10355630B2 (en) 2019-07-16
EP3297154B1 (en) 2021-09-08

Similar Documents

Publication Publication Date Title
WO2016181851A1 (ja) インバータ制御装置
US9531313B2 (en) Apparatus for controlling controlled variable of rotary machine to command value
KR102000060B1 (ko) 전류 센서의 옵셋 보정 장치
CN109075695B (zh) 用于变速电动机和高速电动机的dc到ac电力转换装置
US20180241340A1 (en) Motor drive control device
CN111837327B (zh) 电力转换装置、电动机驱动系统及控制方法
CN113422564B (zh) 交流旋转机控制装置
JP6190967B2 (ja) 発電システム
JP2017028836A (ja) 回転電機の制御装置
CN111969910A (zh) 控制电机的方法及装置、电子设备、计算机可读介质
JP6226901B2 (ja) 発電システム
Meirinho et al. Fault tolerant control for permanent magnet synchronous motor
KR101444732B1 (ko) 계통 연계형 컨버터 및 이의 제어방법
CN105915125B (zh) 电力变换器
JP6358103B2 (ja) 多重巻線回転電機の制御装置
Zhang et al. A Study of Charging Equivalent Inductances for Zero-Average Torque Three-Phase Integrated on-Board EV Chargers With Segmented Machine
US11716044B2 (en) Power conversion device and electric motor drive system
JP2018121421A (ja) 同期モータの制御装置
KR102485708B1 (ko) 인버터
JP6313145B2 (ja) 永久磁石型モータの一次抵抗同定方法及びインバータ装置
US20240162828A1 (en) Method for operating a converter, converter and computer program product
JP7271735B2 (ja) 交流回転電機の制御装置
US20240113645A1 (en) Symmetrical components domain control in a multiphase machine system
Elbarbary et al. Performance analysis of field orientation of induction motor drive under open gate of IGBT fault
JP2023128632A (ja) 電力変換装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16792576

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15571881

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE