Control device

The control device optimizes motor performance by predicting modulation rates and switching control modes, addressing inefficiencies in electric vehicle inverters.

JP7567663B2Active Publication Date: 2024-10-16TOYOTA JIDOSHA KK
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2021090356
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-05-28
Publication Date
2024-10-16
Estimated Expiration
2041-05-28

AI Technical Summary

Technical Problem

Existing control devices for electric vehicles struggle to accurately calculate the modulation rate of inverters when switching from PWM control to square wave control due to decreased modulation rates as the current advance angle moves towards the field weakening side, leading to inefficiencies in motor performance.

Method used

A control device that calculates and predicts the modulation rate of the inverter, using first and second control units to switch between PWM and square wave control based on predetermined conditions, optimizing current advance angle control to maintain efficiency and accuracy.

Benefits of technology

Enables precise timing for switching between control modes, enhancing motor efficiency and accuracy by predicting modulation rates and adjusting current advance angles accordingly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007567663000001
    Figure 0007567663000001
  • Figure 0007567663000002
    Figure 0007567663000002
  • Figure 0007567663000003
    Figure 0007567663000003
Patent Text Reader

Abstract

To provide a controller capable of controlling a current lead angle of a motor at appropriate timing.SOLUTION: A controller comprises: a first control unit for executing either of PWM control and rectangular wave control depending on a modulation factor of an inverter; and a second control unit that, during the PWM control, controls a current effective value and a current lead angle depending on request torque on the basis of first data indicating a relation among the request torque, the current effective value, and the current lead angle of a motor. During the control based on the first data, the second control unit controls the current effective value and the current lead angle on the basis of second data indicating the relation at a current lead angle closer to a weak field side than that in the first data when a predetermined condition with respect to a state of the motor or a poser supply. During the control based on the second data, the second control unit predicts a modulation factor in the case of performing the control on the basis of the first data, performs control on the basis of the first data when the predicted modulation factor is equal to or larger than a threshold, and continues the control based on the second data when the predicted modulation factor is smaller than the threshold.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a control device. [Background technology]

[0002] For example, electric vehicles such as hybrid cars and electric cars are equipped with control devices such as a motor that drives the wheels, an inverter that outputs three-phase AC current to the motor, and an ECU (Electronic Control Unit) that controls the inverter. The ECU uses either PWM (Pulse Width Modulation) control or square wave control depending on the modulation rate of the inverter.

[0003] The ECU also controls the current advance angle based on the motor torque command so that the effective motor current value is minimized. At this time, the ECU corrects the current advance angle according to the modulation factor so that the loss of the motor or inverter is reduced (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2018-50427 A Summary of the Invention [Problem to be solved by the invention]

[0005] When the ECU controls the current advance angle to the field weakening side as described above, the area in the map showing the relationship between the torque command value and the rotation speed where PWM control is applicable increases, but the area where square wave control is applicable decreases. Here, the motor efficiency is higher in square wave control than in PWM control.

[0006] For this reason, when current advance control on the field-weakening side is being executed, it is necessary to return the advance control to optimal current advance control at the appropriate timing when the inverter switching control switches from PWM control to square wave control. However, the more the current advance angle advances to the field-weakening side, the lower the inverter modulation factor becomes, making it difficult to calculate the modulation factor with high accuracy.

[0007] The present invention has been made in consideration of the above problems, and has an object to provide a control device that can control the current advance angle of a motor at appropriate timing. [Means for solving the problem]

[0008] The control device described in this specification has a first control unit that calculates a modulation factor of an inverter that converts a direct current input from a power source into an alternating current and outputs the alternating current to a motor, and selects and executes either PWM control or square wave control of the inverter in accordance with the modulation factor, and a second control unit that, while the first control unit is executing the PWM control, controls the effective current value and the current advance angle of the motor in accordance with the torque required of the motor, based on first advance angle control data that indicates a relationship between a torque required of the motor, an effective current value of the motor, and a current advance angle of the motor, and while the second control unit is controlling the effective current value and the current advance angle of the motor based on the first advance angle control data, If the condition is satisfied, the motor effective current value and current advance angle are controlled in accordance with the torque required of the motor based on second advance-angle control data indicating the relationship at a current advance angle on the field-weakening side more than the first advance-angle control data, and while the motor effective current value and current advance angle are being controlled based on the second advance-angle control data, the modulation factor is predicted when the motor effective current value and current advance angle are controlled based on the first advance-angle control data, and if the predicted modulation factor is equal to or greater than a threshold, the motor effective current value and current advance angle are controlled based on the first advance-angle control data, and if the predicted modulation factor is less than the threshold, control of the motor effective current value and current advance angle based on the second advance-angle control data is continued.

[0009] In the above configuration, the second control unit may calculate an inductance and a current command value of the motor corresponding to the first advance angle control data and the second advance angle control data, respectively, from a torque required of the motor, calculate an amplitude of a voltage applied to the motor from the motor inductance and current command value, and predict the modulation factor from a ratio of the amplitude of the voltage to an input voltage input to the inverter from a boost converter that boosts a voltage of the power supply.

[0010] In the aforementioned configuration, the second control unit may calculate the amplitude of the voltage based on an inductance, a current command value, and a resistance value of the motor.

[0011] In the aforementioned configuration, the second control unit may correct the voltage based on a change in the voltage caused by a dead time of a switching operation of the inverter.

[0012] In the above configuration, when the loss of the motor is to be increased compared to when the effective current value and the current advance angle of the motor are controlled based on the first advance angle control data, the effective current value and the current advance angle of the motor may be controlled based on the second advance angle control data.

[0013] In the above configuration, the second control unit may control the motor's RMS current value and current advance angle based on the second advance angle control data when increasing efficiency of the motor compared to when controlling the motor's RMS current value and current advance angle based on the first advance angle control data. Effect of the Invention

[0014] According to the present invention, the current advance angle of the motor can be controlled at an appropriate timing. [Brief description of the drawings]

[0015] [Figure 1] FIG. 1 is a configuration diagram showing an example of a motor system. [Diagram 2] FIG. 4 is a diagram illustrating an example of a relationship between a current advance angle and a torque command value of a motor. [Diagram 3] FIG. 4 is a diagram illustrating an example of a relationship between the rotation speed of a motor and a torque command value. [Figure 4] 10 is a flowchart showing an example of a control switching operation of a switching control unit. [Diagram 5] 4 is a flowchart showing an example of PWM control. [Figure 6] 5 is a flowchart showing an example of a process for calculating a current effective value and a current advance angle of a motor. [Figure 7] 10 is a flowchart showing an example of square wave control. [Figure 8] 5 is a flowchart showing an example of switching control to efficiency-optimizing advance-angle control or loss-increasing advance-angle control. [Figure 9] 10 is a flowchart showing an example of switching-back control to optimal current advance angle control. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] (Motor system configuration) 1 is a configuration diagram showing an example of a motor system 9. The motor system 9 is mounted on an electric vehicle such as a hybrid vehicle or an electric vehicle. The motor system 9 has a power supply circuit 1, a motor 2, a DC power supply 3, a voltage sensor 40, a rotational position sensor 41, a current sensor 42, an accelerator sensor 43, a brake sensor 44, a battery sensor 45, and an ECU 5.

[0017] The motor 2 drives wheels (not shown). The motor 2 is, for example, a brushless motor, and has three-phase windings 20a, 20b, and 20c on a stator. A three-phase AC current output from the power supply circuit 1 flows through the three-phase windings 20a, 20b, and 20c.

[0018] The rotational position sensor 41 is, for example, a resolver that detects the rotational position of the rotor of the motor 2 and outputs the detected value to the ECU 5. The current sensor 42 detects each current value of the three-phase AC current flowing through the windings 20b, 20c and outputs the detected value to the ECU 5.

[0019] The power supply circuit 1 includes an inverter 10, a boost converter 11, and filter capacitors 14 and 15. The power supply circuit 1 is electrically connected between a DC power supply 3 and a motor 2. The DC power supply 3 is an example of a power supply, and is, for example, a lithium ion battery.

[0020] The inverter 10 drives the motor 2 with a direct current input from the DC power supply 3. The inverter 10 converts the direct current into a three-phase alternating current and outputs it to the motor 2.

[0021] The inverter 10 includes IGBTs (Insulated Gate Bipolar Transistors) 101a-101c, 102a-102c and freewheeling diodes 103a-103c, 104a-104c. The IGBTs 101a, 102a are upper and lower arms respectively connected to a winding 20a of the motor 2. The IGBTs 101b, 102b are upper and lower arms respectively connected to a winding 20b of the motor 2. The IGBTs 101c, 102c are upper and lower arms respectively connected to a winding 20c of the motor 2.

[0022] The freewheel diodes 103a to 103c and 104a to 104c are connected in parallel to the IGBTs 101a to 101c and 102a to 102c, respectively. A regenerative current flows from the three-phase windings 20a, 20b and 20c to the freewheel diodes 103a to 103c and 104a to 104c. A surge voltage generated when the IGBTs 101a to 101c and 102a to 102c are turned off flows to the freewheel diodes 103a to 103c and 104a to 104c.

[0023] The collector terminals of the IGBTs 101a to 101c are connected to the positive terminal of the DC power supply 3, and the emitter terminals of the IGBTs 101a to 101c are connected to the collector terminals of the IGBTs 102a to 102c, respectively. The emitter terminals of the IGBTs 102a to 102c are connected to the negative terminal of the DC power supply 3.

[0024] Switching signals S1a to S1c and S2a to S2c are input from the ECU 5 to gate terminals of the IGBTs 101a to 101c and 102a to 102c, respectively. The IGBTs 101a to 101c and 102a to 102c are turned on and off by the switching signals S1a to S1c and S2a to S2c, respectively. In this way, the inverter 10 generates a three-phase AC current from the DC current of the DC power supply 3 and outputs the three-phase AC current to the motor 2. Note that the inverter 10 may include other types of transistors instead of the IGBTs 101a to 101c and 102a to 102c.

[0025] The boost converter 11 is electrically connected between the DC power supply 3 and the inverter 10. The boost converter 11 boosts the voltage applied from the DC power supply 3 to the inverter 10.

[0026] The boost converter 11 includes a reactor 12, IGBTs 110 and 111, and freewheel diodes 112 and 113. The IGBTs 110 and 111 are connected in series. The collector terminal of the IGBT 110 is connected to the collector terminals of the IGBTs 101a to 101c of the inverter 10, and the emitter terminal of the IGBT 110 is connected to the collector terminal of the IGBT 111. The emitter terminal of the IGBT 111 is connected to the negative terminal of the DC power supply 3 and the emitter terminals of the IGBTs 102a to 102c.

[0027] One end of the reactor 12 is connected to the connection point of the IGBTs 110 and 111, and the other end of the reactor 12 is connected to the positive terminal of the DC power supply 3. The reactor 12 accumulates and releases energy input from the DC power supply 3 in accordance with the switching operations of the IGBTs 110 and 111.

[0028] The freewheel diodes 112 and 113 are connected in parallel to the IGBTs 110 and 111, respectively. The freewheel diodes 112 and 113 pass a direct current from the DC power supply 3 when the IGBTs 110 and 111 are controlled to be turned off.

[0029] Switching signals S1u and S2u are input to the gate terminals of the IGBTs 110 and 111, respectively, from the ECU 5. The IGBTs 110 and 111 are turned on and off by the switching signals S1u and S2u, respectively. In this way, the boost converter 11 boosts the DC voltage. Note that the boost converter 11 may include other types of transistors instead of the IGBTs 110 and 111.

[0030] The filter capacitor 14 is connected in parallel with the DC power supply 3. The filter capacitor 14 is connected between the supply lines Lp, Ln which connect the DC power supply 3 and the boost converter 11 to each other. The filter capacitor 14 smoothes the voltage fluctuation applied to the DC power supply 3 from the boost converter 11.

[0031] A battery sensor 45 is connected in parallel to the DC power supply 3. The battery sensor 45 detects the output voltage and output current of the DC power supply 3, and outputs the detected values ​​to the ECU 5.

[0032] The filter capacitor 15 is connected in parallel with the inverter 10. The filter capacitor 15 smoothes out voltage fluctuations applied to the DC power supply 3 from the inverter 10. The input voltage VH boosted by the boost converter 11 is applied to the filter capacitor 15.

[0033] The voltage sensor 40 is connected across the filter capacitor 15 to detect the input voltage VH applied to the filter capacitor 14. The voltage sensor 40 outputs the detected value of the input voltage VH to the ECU 5.

[0034] The accelerator sensor 43 detects the amount of depression of an accelerator pedal (not shown) of the vehicle, and outputs the detected value to the ECU 5. The brake sensor 44 detects the amount of depression of a brake pedal (not shown) of the vehicle, and outputs the detected value to the ECU 5.

[0035] The ECU 5 is a computer having a processor such as a CPU (Central Processing Unit) and a memory, and controls the operation of the power supply circuit 1 according to the state of the motor 2. The ECU 5 has a vehicle control unit 50, a switching control unit 51, an advance angle control unit 52, a power supply control unit 53, and a storage unit 54. The ECU 5 is an example of a control device.

[0036] The vehicle control unit 50, the switching control unit 51, the advance angle control unit 52, and the power supply control unit 53 are functions formed by, for example, a program that drives a processor, but are not limited to this, and may be circuits realized by hardware such as an FPGA (Field Programmable Gate Array) or an ASIC (Application Specified Integrated Circuit). Note that the vehicle control unit 50, the switching control unit 51, the advance angle control unit 52, and the power supply control unit 53 may be computers independent of each other.

[0037] The storage unit 54 is a storage circuit such as a memory, etc. The storage unit 54 stores current optimum advance angle control map data 510, efficiency optimum advance angle control map data 511, loss increase advance angle control map data 512, current command map data 513a to 513c, and inductance map data 514a to 514c.

[0038] The vehicle control unit 50 calculates the torque required of the motor 2 (hereinafter referred to as the required torque) from the detection values ​​of the accelerator sensor 43 and the brake sensor 44. The vehicle control unit 50 notifies the required torque to the switching control unit 51 and the advance angle control unit 52. The switching control unit 51 and the advance angle control unit 52 set the required torque as a torque command value.

[0039] The power supply control unit 53 calculates an upper limit power value Win that can be charged to the DC power supply 3 from a detection value of the battery sensor 45. The power supply control unit 53 calculates the upper limit power value Win from, for example, the charge capacity, output voltage, and output current of the DC power supply 3. The power supply control unit 53 notifies the lead angle control unit 52 of the upper limit power value Win.

[0040] The switching control unit 51 is an example of a first control unit, which calculates a modulation factor Ka of the inverter 10, and selects and executes either PWM control or square wave control of the inverter 10 according to the modulation factor Ka. The switching control unit 51 calculates the modulation factor Ka from, for example, the d-axis voltage and q-axis voltage of the motor 2 and the input voltage VH of the inverter 10.

[0041] The switching control unit 51 switches the control of the inverter 10 from PWM control to square wave control when, for example, the modulation factor Ka is 0.78 or more during the execution of the PWM control. Also, the switching control unit 51 switches the control of the inverter 10 from square wave control to PWM control when, for example, the modulation factor Ka is 0.70 or less during the execution of the square wave control.

[0042] During PWM control, the switching control unit 51 generates switching signals S1a-S1c, S2a-S2c so that the voltages of the windings 20a-20c of the motor 2 have a sine wave shape, and outputs them to the IGBTs 101a-101c, 102a-102c of the inverter 10. The PWM control includes sine wave PWM control and overmodulation PWM control.

[0043] In the case of sinusoidal PWM control, the switching control unit 51 controls the duty ratio of the switching signals S1a-S1c, S2a-S2c so that the IGBTs 101a-101c, 102a-102c are turned on and off according to the result of voltage comparison between a sinusoidal voltage command value and a carrier wave (e.g., a triangular wave). As a result, the fundamental wave component of the voltage of the windings 20a-20c becomes a sinusoidal AC voltage within a predetermined control period that is the sum of the on-period of the IGBTs 101a-101c of the upper arm and the on-period of the IGBTs 101a-101c of the lower arm. This allows the modulation factor Ka to be increased to 0.61.

[0044] In the case of overmodulation control, the switching control unit 51 controls the duty ratio of the switching signals S1a-S1c, S2a-S2c according to the result of voltage comparison between a sinusoidal voltage command value and a carrier wave (e.g., a triangular wave) in the same manner as in sinusoidal PWM control. However, since a rectangular pulse with a relatively large duty ratio is generated in a region where the voltage command value is larger than the carrier wave, the amplitude of the sinusoidal fundamental wave component can be expanded. This allows the modulation factor Ka to be increased in the range of 0.61 to 0.78.

[0045] In the case of square wave control, the switching control unit 51 generates the switching signals S1a-S1c, S2a-S2c as square waves of one pulse with a ratio of high level and low level periods of the IGBTs 101a-101c, 102a-102c of 1:1 within a predetermined control period. In the square wave control, the amplitude of the fundamental wave component of the voltage of the windings 20a-20c is fixed, so that the voltage phase of the square wave pulse is controlled based on the deviation between the torque estimated by power calculation and the torque command value. As a result, the modulation factor Ka is increased to 0.78.

[0046] Furthermore, switching control unit 51 calculates a target value of input voltage VH according to the required torque, and controls IGBTs 110, 111 of boost converter 11 to be turned on and off so that boost converter 11 boosts the voltage of DC power supply 3.

[0047] Lead-angle control unit 52 is an example of a second control unit, and while switching control unit 51 is executing PWM control, controls the effective current value and the current lead angle of motor 2 in accordance with the required torque of motor 2, based on optimal current lead-angle control map data 510. Lead-angle control unit 52 reads out optimal current lead-angle control map data 510 from storage unit 54.

[0048] Current optimal lead-angle control map data 510 is an example of first lead-angle control data indicating the relationship between the required torque of motor 2, the effective current value of motor 2, and the current lead angle of motor 2. By using current optimal lead-angle control map data 510, lead-angle control unit 52 can control the current lead angle so that the effective current value at which the torque of motor 2 satisfies the required torque is minimized. Lead-angle control based on this current optimal lead-angle control map data 510 is referred to as "current optimal lead-angle control."

[0049] When a predetermined condition related to the state of the motor 2 is satisfied while current optimal lead-angle control is being executed, lead-angle control unit 52 controls the effective current value and current lead angle of motor 2 in accordance with the required torque of motor 2, based on efficiency optimal lead-angle control map data 511. Lead-angle control unit 52 reads out efficiency optimal lead-angle control map data 511 from storage unit 54.

[0050] Efficiency optimal lead-angle control map data 511 is an example of second lead-angle control data indicating the relationship between the required torque of motor 2, the effective current value of motor 2, and the current lead-angle of motor 2, for a current lead-angle on the field-weakening side more than current optimal lead-angle control map data 510. By using efficiency optimal lead-angle control map data 511, lead-angle control unit 52 can control the current lead-angle so that the efficiency of motor 2 is increased compared to the case where current optimal lead-angle control is executed. Lead-angle control based on this efficiency optimal lead-angle control map data 511 is referred to as "efficiency optimal lead-angle control."

[0051] When a predetermined condition related to the state of DC power supply 3 is satisfied while executing optimal current lead-angle control, lead-angle control unit 52 controls the effective current value and the current lead angle of motor 2 in accordance with the required torque of motor 2, based on loss increase lead-angle control map data 512. Lead-angle control unit 52 reads out loss increase lead-angle control map data 512 from storage unit 54.

[0052] Loss increase advance angle control map data 512 is an example of second advance angle control data indicating the relationship between the required torque of motor 2, the effective current value of motor 2, and the current advance angle of motor 2, for a current advance angle on the field weakening side compared to current optimal advance angle control map data 510. By using loss increase advance angle control map data 512, advance angle control unit 52 can control the current advance angle so that the loss of motor 2 is increased more than when current optimal advance angle control is executed. Advance angle control based on this loss increase advance angle control map data 512 is referred to as "loss increase advance angle control."

[0053] While efficiency optimal advance angle control or loss increasing advance angle control is being executed, advance angle control unit 52 predicts modulation factor Ks when current optimal advance angle control is executed. Advance angle control unit 52 uses current command map data 513a to 513c and inductance map data 514a to 514c to predict modulation factor Ks.

[0054] Current command map data 513a to 513c show the relationship between the torque command value and the current command value of the motor 2. The current command value includes each command value of the d-axis and q-axis. The current command map data 513a shows the relationship between the torque command value and the current command value when current optimal lead-angle control is executed. The current command map data 513a shows the relationship between the torque command value and the current command value when current optimal lead-angle control is executed. The current command map data 513b shows the relationship between the torque command value and the current command value when efficiency optimal lead-angle control is executed. The current command map data 513c shows the relationship between the torque command value and the current command value when loss increasing lead-angle control is executed.

[0055] Inductance map data 514a to 514c show the relationship between the torque command value and inductance of motor 2. The inductance includes d-axis and q-axis inductances. Inductance map data 514a shows the relationship between the torque command value and inductance when current optimal lead-angle control is executed. Inductance map data 514b shows the relationship between the torque command value and inductance when efficiency optimal lead-angle control is executed. Inductance map data 514c shows the relationship between the torque command value and inductance when loss increasing lead-angle control is executed. The current command map data 513a to 513c and the inductance map data 514a to 514c are generated in advance based on numerical simulations or experimental results.

[0056] (Example of lead angle control) 2 is a diagram showing an example of the relationship between the current advance angle (deg.) and the torque command value (N m) of the motor 2. The dotted line indicates the effective current value of the motor 2 when the motor 2 is caused to output a torque according to the torque command value.

[0057] During current optimum lead-angle control, lead-angle control unit 52 controls the effective current value and the current lead angle based on the torque command value along current optimum line La. The relationship between the torque command value, the effective current value, and the current lead angle indicated by current optimum line La is registered in current optimum lead-angle control map data 510.

[0058] Furthermore, during execution of the efficiency optimal lead-angle control, lead-angle control unit 52 controls the effective current value and the current lead angle based on the torque command value along an efficiency optimal line Lb on the field weakening side (the right side of the paper in FIG. 2 ) of the current optimal line La. The relationship between the torque command value, the effective current value, and the current lead angle indicated by the efficiency optimal line Lb is registered in efficiency optimal lead-angle control map data 511.

[0059] During the execution of the loss increase advance angle control, advance angle control unit 52 controls the effective current value and the current advance angle based on the torque command value along a loss increase line Lc on the field weakening side of the current optimum line La and the efficiency optimum line Lb. The relationship between the torque command value, the effective current value, and the current advance angle indicated by the loss increase line Lc is registered in loss increase advance angle control map data 512.

[0060] The lead angle control unit 52 normally performs current optimum lead angle control along the current optimum line La. For example, the lead angle control unit 52 operates the motor 2 at an operating point Pa on the current optimum line La so as to correspond to the torque command value Tm*. When a predetermined condition related to the state of the motor 2 is satisfied, the lead angle control unit 52 changes the operating point of the motor 2 from the operating point Pa on the current optimum line La to an operating point Pb on the efficiency optimum line Lb. Furthermore, when a predetermined condition related to the state of the DC power supply 3 is satisfied, the lead angle control unit 52 changes the operating point of the motor 2 from the operating point Pa on the current optimum line La to an operating point Pc on the loss increase line Lc.

[0061] In this way, when the advance angle control unit 52 advances the advance angle to the field weakening side, the d-axis current of the motor 2 increases in the negative direction, thereby decreasing the d-axis voltage, and therefore the modulation factor Ka becomes smaller.

[0062] 3 is a diagram showing an example of the relationship between the rotation speed (rpm) and the torque command value (N m) of the motor 2. The upper limit Tmax of the torque command value is determined according to the rotation speed of the motor 2. In a region where the rotation speed is equal to or higher than a predetermined value, the upper limit Tmax of the torque command value decreases as the rotation speed increases.

[0063] The PWM control region Sa is a region where PWM control is applicable, and the square wave control region Sb is a region where square wave control is applicable. When the current optimum advance angle control is being executed, as shown by the reference symbol G1a, the line Ta is the boundary between the PWM control region Sa and the square wave control region Sb.

[0064] When efficiency-optimizing advance control is being executed, the line Tb is the boundary between the PWM control region Sa and the square-wave control region Sb, as indicated by the reference symbol G1b. When loss-increasing advance control is being executed, the line Tc is the boundary between the PWM control region Sa and the square-wave control region Sb, as indicated by the reference symbol G1c.

[0065] The PWM control region Sa is narrowest in the case of current optimum lead-angle control and widest in the case of loss-increasing lead-angle control. Conversely to the PWM control region Sa, the square-wave control region Sb is widest in the case of current optimum lead-angle control and narrowest in the case of loss-increasing lead-angle control. In other words, as lead-angle control unit 52 advances the current lead angle toward the field weakening side, the PWM control region Sa expands and the square-wave control region Sb shrinks.

[0066] Here, the efficiency of motor 2 is higher in square wave control than in PWM control. For this reason, when switching control unit 51 is performing PWM control, lead angle control unit 52 needs to return the lead angle control to current optimal lead angle control at an appropriate timing when the switching control of inverter 10 switches from PWM control to square wave control while efficiency optimal lead angle control or loss increasing lead angle control is being performed. However, the more the current lead angle advances toward the field weakening side, the lower the modulation factor of inverter 10 becomes, making it difficult to calculate the modulation factor with high accuracy.

[0067] Therefore, lead-angle control unit 52 predicts the modulation factor Ks when current optimal lead-angle control is executed while efficiency optimal lead-angle control or loss increase lead-angle control is being executed. In the following description, the modulation factor Ks predicted by lead-angle control unit 52 is referred to as predicted modulation factor Ks. When the predicted modulation factor Ks is equal to or greater than threshold value Kth, lead-angle control unit 52 executes current optimal lead-angle control, and when the predicted modulation factor Ks is less than threshold value Kth, lead-angle control unit 52 continues efficiency optimal lead-angle control or loss increase lead-angle control.

[0068] Therefore, when executing current optimal advance angle control, advance angle control unit 52 can return the advance angle control from efficiency optimal advance angle control or loss increase advance angle control to current optimal advance angle control at an appropriate timing when the switching control of inverter 10 switches from PWM control to square wave control. Therefore, ECU 5 can control the current advance angle of motor 2 at an appropriate timing.

[0069] (Calculation example of predicted modulation rate Ks) The advance angle control unit 52 calculates a predicted modulation factor Ks using the current command map data 513a to 513c and the inductance map data 514a to 514c.

[0070] Ks = Vamp / VH (1)

[0071] The lead angle control unit 52 calculates the predicted modulation factor Ks from the above formula (1). In formula (1), Vamp is a predicted value of the amplitude of the voltage applied from the inverter 10 to the motor 2 when the current optimal lead angle control is executed (hereinafter, referred to as predicted voltage amplitude).

[0072] Vamp=Vd_s×cos(φi_s)+Vq_s×sin(φi_s) (2) φi_s=atan(Vq_s / Vd_s) ···(3)

[0073] The lead angle control unit 52 calculates the predicted voltage amplitude Vamp of the motor 2 from the above formula (2). In formula (2), Vd_s and Vq_s are the predicted values ​​of the d-axis voltage and q-axis voltage of the motor 2 (hereinafter referred to as the predicted d-axis voltage and the predicted q-axis voltage), respectively, when current optimal lead angle control is executed.

[0074] φi_s is a predicted value of the reference phase of the d-axis voltage of the motor 2 when current optimal lead-angle control is executed (hereinafter referred to as predicted d-axis reference voltage phase). The lead-angle control unit 52 calculates the predicted d-axis reference voltage phase φi_s from the above equation (3).

[0075] Vd_s=Vd-ω·Lq_s·IqC_s+ω·Lq·IqC···(4) Vq_s=Vq+ω·Ld_s·IdC_s-ω·Ld·IdC···(5)

[0076] The advance angle control unit 52 calculates the predicted d-axis voltage Vd_s from the above equation (4), and calculates the predicted q-axis voltage Vq_s from the above equation (5). Each parameter in the equations (4) and (5) will be described below.

[0077] Vd and Vq are respectively the d-axis voltage and q-axis voltage of the motor 2. The lead-angle control unit 52 acquires, for example, parameters for feedback control of a voltage command value in PWM control from the switching control unit 51 to calculate the d-axis voltage Vd and the q-axis voltage. Furthermore, ω is the electrical angle frequency of the three-phase AC current of the motor 2. The lead-angle control unit 52 acquires the phase of the three-phase AC current from the switching control unit 51 and calculates the electrical angle frequency from the phase.

[0078] Ld and Lq are the d-axis inductance and q-axis inductance of motor 2, respectively. Lead angle control unit 52 calculates d-axis inductance Ld and q-axis inductance Lq from the torque command value based on inductance map data 514b or inductance map data 514c. At this time, lead angle control unit 52 uses inductance map data 514b while executing efficiency optimal lead angle control, and uses inductance map data 514c while executing loss increasing lead angle. Note that lead angle control unit 52 is not limited to this, and may calculate d-axis inductance Ld and q-axis inductance Lq from the torque command value in accordance with a predetermined calculation formula.

[0079] Ld_s and Lq_s are predicted values ​​of the d-axis inductance and q-axis inductance of the motor 2 when the lead angle control unit 52 executes current optimum lead angle control (hereinafter, referred to as predicted d-axis inductance Ld_s and predicted q-axis inductance Lq_s). The lead angle control unit 52 calculates the predicted d-axis inductance Ld_s and the predicted q-axis inductance Lq_s from the torque command value based on the inductance map data 514a. Note that the lead angle control unit 52 is not limited to this, and may calculate the predicted d-axis inductance Ld_s and the predicted q-axis inductance Lq_s from the torque command value in accordance with a predetermined calculation formula.

[0080] IdC and IqC are the d-axis current command value and the q-axis current command value of motor 2, respectively. Lead angle control unit 52 calculates d-axis current command value IdC and q-axis current command value IqC from the torque command value based on current command map data 513b or current command map data 513c. At this time, lead angle control unit 52 uses current command map data 513b while executing efficiency optimal lead angle control, and uses current command map data 513c while executing loss increasing lead angle. Note that lead angle control unit 52 is not limited to this, and may calculate the d-axis current command value and the q-axis current command value from the torque command value in accordance with a predetermined calculation formula.

[0081] IdC_s and IqC_s are predicted values ​​of a d-axis current command value and a q-axis current command value of the motor 2 when the lead angle control unit 52 executes current optimum lead angle control (hereinafter, referred to as a predicted d-axis current command value and a predicted q-axis current command value). The lead angle control unit 52 calculates the predicted d-axis current command value IdC_s and the predicted q-axis current command value IqC_s from the torque command value based on the current command map data 513a. Note that the lead angle control unit 52 is not limited to this, and may calculate the predicted d-axis current command value IdC_s and the predicted q-axis current command value IqC_s from the torque command value in accordance with a predetermined calculation formula.

[0082] In this way, the lead-angle control unit 52 calculates, from the torque command value, the predicted d-axis current command value IdC_s and the predicted q-axis current command value IqC_s when current optimal lead-angle control is executed, and the d-axis current command value IdC and the q-axis current command value IqC when efficiency optimal lead-angle control or loss increasing lead-angle control is executed. Here, the predicted d-axis current command value IdC_s and the predicted q-axis current command value IqC_s are examples of current command values ​​for the motor 2 corresponding to the current optimal lead-angle control map data 510. Also, the d-axis current command value IdC and the q-axis current command value IqC are examples of current command values ​​for the motor 2 corresponding to the efficiency optimal lead-angle control map data 511 or the loss increasing lead-angle control map data 512.

[0083] Further, the lead angle control unit 52 calculates, from the torque command value, a predicted d-axis inductance Ld_s and a predicted q-axis inductance Lq_s when current optimal lead angle control is executed, and a d-axis inductance Ld and a q-axis inductance Lq when efficiency optimal lead angle control or loss increasing lead angle control is executed. Here, the predicted d-axis inductance Ld_s and the predicted q-axis inductance Lq_s are examples of the inductance of the motor 2 corresponding to the current optimal lead angle control map data 510. Moreover, the d-axis inductance Ld and the q-axis inductance Lq are examples of the inductance of the motor 2 corresponding to the efficiency optimal lead angle control map data 511 or the loss increasing lead angle control map data 512.

[0084] Furthermore, the lead angle control unit 52 calculates a predicted voltage amplitude Vamp from the predicted d-axis inductance Ld_s and predicted q-axis inductance Lq_s, the d-axis inductance Ld and the q-axis inductance Lq, the predicted d-axis current command value IdC_s and predicted q-axis current command value IqC_s, and the d-axis current command value IdC and q-axis current command value IqC. The predicted voltage amplitude Vamp is an example of the amplitude of the voltage applied to the motor 2. The lead angle control unit 52 calculates a predicted modulation factor Ks from the ratio of the predicted voltage amplitude Vamp to the input voltage VH.

[0085] Therefore, compared to the case where the predicted modulation factor Ks is calculated from a voltage equation as described below, by using the d-axis current command value IdC and the q-axis current command value IqC and the d-axis inductance Ld and the q-axis inductance Lq during execution of efficiency optimal advance control or loss increasing advance control for the calculation, the influence of offset error of the current sensor 42, etc., is suppressed, and the predicted modulation factor Ks can be calculated with high accuracy.

[0086] Vd_s=-ω×Lq_s×IqC_s (6) Vq_s=ω×Ld_s×IdC_s+ω×φa ···(7)

[0087] Unlike the above example, the advance angle control unit 52 can calculate the predicted d-axis voltage Vd_s and the predicted q-axis voltage Vq_s from, for example, the voltage equations (6) and (7) above, respectively. Here, φa is the induced voltage constant of the motor 2.

[0088] Vd_s'=-ω×Lq_s×(IqC_s-10) ···(8) Vq_s'=ω×Ld_s×(IdC_s-10)+ω×φa ···(9)

[0089] As an example, assuming that the offset error of the current sensor 42 is 10 (A), the accurate predicted d-axis voltage Vd_s' and predicted q-axis voltage Vq_s' excluding the error are expressed by the above equations (8) and (9), respectively.

[0090] ΔVd'=Vd_s-Vd_s'=ω×Lq_s×10 (10)

[0091] Therefore, the error ΔVd′ of the predicted d-axis voltage Vd_s can be calculated from the above equation (10).

[0092] Vd=-ω×Lq×(IqC-10) ···(11) Vd_s=Vd-ω·Lq_s·IqC_s+ω·Lq·IqC =-ω×Lq×(IqC-10)-ω・Lq_s・IqC_s+ω・Lq・IqC =ω×Lq×10-ω·Lq_s·IqC_s ···(12)

[0093] In addition, in the above equation (4), the d-axis voltage Vd is approximately expressed by the above equation (11) from the d-axis current command value IdC that reflects the offset error of the current sensor 42. Therefore, the predicted d-axis voltage is expressed by the above equation (12) from the d-axis voltage Vd of equation (4).

[0094] ΔVd=Vd_s-Vd_s=ω×Lq_s×10-ω×Lq×10 =ω × (Lq_s-Lq) × 10 (13)

[0095] Therefore, the error ΔVd of the predicted d-axis voltage Vd_s can be calculated from the above formula (13). Here, since ω×(Lq_s-Lq)×10<ω×Lq×10 holds, the predicted d-axis voltage Vd_s calculated from the above formula (4) is more accurate than the predicted d-axis voltage Vd_s' calculated from the above formula (6). Also, the predicted q-axis voltage Vq_s calculated from the above formula (5) is more accurate than the predicted q-axis voltage Vq_s' calculated from the above formula (7). Note that the induced voltage constant Φa in formula (7) varies with temperature, so the accuracy of the predicted q-axis voltage Vq_s' also decreases depending on the induced voltage constant Φa.

[0096] Therefore, the lead-angle control unit 52 calculates the predicted modulation factor Ks not only using the predicted d-axis current command value IdC_s, the predicted q-axis current command value IqC_s, and the predicted d-axis inductance Ld_s and the predicted q-axis inductance Lq_s when current optimal lead-angle control is executed, but also using the d-axis current command value IdC and the q-axis current command value IqC, and the d-axis inductance Ld and q-axis inductance Lq in the efficiency optimal lead-angle control or loss-increasing lead-angle control that is being executed, thereby canceling out the offset error of the current sensor 42 and improving accuracy.

[0097] (Another calculation example of predicted modulation rate Ks) The advance angle control unit 52 may calculate the predicted modulation factor Ks with higher accuracy by adding a calculation related to the motor resistance of the motor 2 and the dead time of the switching operation of the inverter 10 to the above equations (4) and (5). Note that in this example, an example is given in which calculations related to both the motor resistance of the motor 2 and the dead time of the switching operation of the inverter 10 are used to calculate the predicted d-axis voltage Vd_s and the predicted q-axis voltage Vq_s, but a calculation related to only one of them may be used in the calculation.

[0098] Vd_s=Vd-ω·Lq_s·IqC_s+ω·Lq·IqC+R·IdC_s -R·IdC+DTd_s-DTd ···(14) Vq_s=Vq-ω·Ld_s·IdC_s-ω·Ld·IdC+R·IqC_s -R·IqC+DTq_s-DTq ···(15)

[0099] The advance angle control unit 52 calculates the predicted d-axis voltage Vd_s and the predicted q-axis voltage Vq_s, for example, by the above formula (14) and formula (15), respectively. R is the electrical resistance value (motor resistance) of the windings 2a to 2c of the motor 2. The resistance value R is an example of the resistance value of the motor 2. Furthermore, DTd and DTq are correction values ​​of the d-axis voltage Vd and the q-axis voltage Vq (hereinafter referred to as the d-axis voltage correction value and the q-axis voltage correction value) corresponding to the dead time of the inverter 10, respectively.

[0100] DTd=VH / 2×3 (1 / 2) ×Td / T×2×cos(Φi) ···(16) DTq=VH / 2×3 (1 / 2) ×Td / T×2×sin(Φi) ···(17) Φi = atan(IqC / IdC) (18)

[0101] The lead angle control unit 52 calculates the d-axis voltage correction value DTd and the q-axis voltage correction value DTq from the above equations (16) and (17), respectively. Furthermore, Φi is the reference phase of the d-axis current of the motor 2 (hereinafter referred to as the d-axis current reference phase). The lead angle control unit 52 calculates the d-axis current reference phase Φi from the above equation (18).

[0102] Furthermore, Td is the dead time of the inverter 10. T is the reciprocal of the frequency (i.e., the period) of the carrier signal used for PWM control of the inverter 10. The advance angle control unit 52 obtains the frequency of the carrier signal from the switching control unit 51 and calculates the reciprocal T thereof.

[0103] DTd_s=VH / 2×3 (1 / 2) ×Td / T×2×cos(Φi_s) (19) DTq_s=VH / 2×3 (1 / 2) ×Td / T×2×sin(Φi_s)···(20) Φi_s=atan(IqC_s / IdC_s) ···(21)

[0104] DTd_s and DTq_s are predicted values ​​(hereinafter, referred to as the predicted d-axis voltage correction value and the predicted q-axis voltage correction value) of the correction values ​​of the d-axis voltage Vd and the q-axis voltage Vq according to the dead time Td of the inverter 10 when the lead-angle control unit 52 executes the current optimum lead-angle control. The lead-angle control unit 52 calculates the predicted d-axis voltage correction value DTd_s and the predicted q-axis voltage correction value DTq_s from the above equations (19) and (20), respectively.

[0105] Φi_s is a predicted value of the reference phase of the d-axis current of the motor 2 when the current optimum lead angle control is executed (hereinafter referred to as predicted d-axis current reference phase). The lead angle control unit 52 calculates the predicted d-axis current reference phase Φi_s from the above equation (21).

[0106] In this way, the lead angle control unit 52 calculates the predicted d-axis voltage Vd_s and the predicted q-axis voltage Vq_s by using the resistance value R of the motor 2, and calculates the predicted voltage amplitude Vamp from the predicted d-axis voltage Vd_s and the predicted q-axis voltage Vq_s based on equation (2). Therefore, the lead angle control unit 52 can reflect the voltage change due to the resistance value R of the motor 2 in the predicted d-axis voltage Vd_s and the predicted q-axis voltage Vq_s.

[0107] Further, the advance angle control unit 52 corrects the d-axis voltage Vd and the q-axis voltage Vq according to the changes in the d-axis voltage Vd and the q-axis voltage Vq due to the dead time of the switching operation of the inverter 10. Therefore, the advance angle control unit 52 can reflect the changes in the d-axis voltage Vd and the q-axis voltage Vq due to the dead time in the predicted d-axis voltage Vd_s and the predicted q-axis voltage Vq_s. Note that the above-mentioned calculations related to the motor resistance of the motor 2 and the dead time of the switching operation of the inverter 10 can also be applied to the voltage equations of the above formulas (6) and (7).

[0108] (Control switching operation of switching control section) 4 is a flowchart showing an example of a control switching operation of the switching control unit 51. The switching control unit 51 selects PWM control (step St1) when the ECU 5 is started up. As a result, PWM control is executed in the initial state.

[0109] Next, the switching control unit 51 determines whether or not PWM control is being executed (step St2). If PWM control is being executed (Yes in step St2), the switching control unit 51 calculates the modulation factor Ka (step St3). At this time, the switching control unit 51 calculates the voltage phase of the motor 2 from the d-axis voltage command value and the q-axis voltage command value in the same manner as in the above equation (3), and calculates the voltage amplitude from the voltage phase in the same manner as in the above equation (2). Furthermore, the switching control unit 51 calculates the modulation factor Ka from the voltage amplitude and the input voltage VH in the same manner as in the above equation (1).

[0110] Next, the switching control unit 51 judges whether the modulation factor Ka is 0.78 or more (step St4). If the modulation factor Ka is 0.78 or more (Yes in step St4), the switching control unit 51 selects square wave control (step St5). This causes the square wave control to be executed. On the other hand, if the modulation factor Ka is less than 0.78 (No in step St4), the switching control unit 51 continues the PWM control.

[0111] Next, the switching control unit 51 judges whether or not to end the process from, for example, the on / off state of an ignition switch (not shown) (step St6). If the switching control unit 51 judges to end the process (Yes in step St6), the process ends. If the switching control unit 51 judges to continue the process (No in step St6), each process from step St2 onward is executed again.

[0112] Furthermore, when the square wave control is being executed (No in step St2), the switching control unit 51 calculates the modulation factor Ka (step St7).

[0113] Vd_est=Vd-ω×Lq×IqC+ω×Lq×Iq (22) Vq_est=Vq+ω×Ld×IdC-ω×Ld×Id (23)

[0114] At this time, the switching control unit 51 calculates the estimated d-axis voltage command value Vd_est and the estimated q-axis voltage command value Vq_est from the above equations (22) and (23). The equations (22) and (23) are derived from the difference between the voltage equation during execution of PWM control and the voltage equation during execution of square wave control. Here, Iq and Id are the d-axis current and the q-axis current of the motor 2, respectively. The other parameters in the equations (22) and (23) are as described above.

[0115] The switching control unit 51 calculates the voltage phase of the motor 2 from the estimated d-axis voltage command value Vd_est and the estimated q-axis voltage command value Vq_est in the same manner as in the above equation (3), and calculates the voltage amplitude from the voltage phase in the same manner as in the above equation (2). Furthermore, the switching control unit 51 calculates the modulation factor Ka from the voltage amplitude and the input voltage VH in the same manner as in the above equation (1).

[0116] Next, the switching control unit 51 judges whether the modulation factor Ka is 0.7 or less (step St8). If the modulation factor Ka is 0.7 or less (Yes in step St8), the switching control unit 51 selects PWM control (step St9). This causes the PWM control to be executed. On the other hand, if the modulation factor Ka is greater than 0.7 (No in step St8), the switching control unit 51 continues the square wave control. Then, the process of step St6 is executed.

[0117] In this way, the switching control unit 51 calculates the modulation factor Ka of the inverter 10, and selects and executes either PWM control or square wave control of the inverter 10 according to the modulation factor Ka. Note that the determination values ​​(0.78 and 0.7) of the modulation factor Ka for selecting PWM control or square wave control are merely examples, and are determined according to the design of the inverter 10.

[0118] (PWM control) 5 is a flowchart showing an example of PWM control. While PWM control is selected, the switching control section 51 periodically executes each process of the following steps St11 to St17.

[0119] The lead-angle control unit 52 calculates the effective current value and the current lead angle of the motor 2 based on the torque command value (step St11). The calculation process of the effective current value and the current lead angle will be described later. The lead-angle control unit 52 notifies the switching control unit 51 of the effective current value and the current lead angle.

[0120] Next, the switching control unit 51 calculates the d-axis current command value IdC and the q-axis current command value IqC from the current effective value and the current lead angle of the motor 2 (step St12). Here, the current effective value corresponds to a value obtained by dividing the square root of the sum of the square of the d-axis current command value IdC and the square of the q-axis current command value IqC by the square root of 3, and the current lead angle value is the angle (lead angle value) of a current vector based on the d-axis current command value IdC and the q-axis current command value IqC in the dq coordinate system with respect to the q axis. Based on this relationship, the switching control unit 51 calculates the d-axis current command value IdC and the q-axis current command value IqC from the current effective value and the current lead angle value.

[0121] Next, the switching control unit 51 acquires each current value (e.g., u-phase and v-phase) of the three-phase AC current from the detection value of the current sensor 42 (step St13). Next, the switching control unit 51 calculates the d-axis current Id and the q-axis current Iq by performing a 3-phase-to-2-phase conversion of each current value of the three-phase AC current using the electrical angle of the motor 2 (step St14). At this time, the switching control unit 51 calculates the electrical angle from the detection value of the rotational position sensor 41.

[0122] Next, the switching control unit 51 calculates a d-axis voltage command value VdC and a q-axis voltage command value VqC of the motor 2 by feedback controlling the differences between the d-axis current command value IdC and the q-axis current command value IqC and the d-axis current Id and the q-axis current Iq, respectively (step St15). Next, the switching control unit 51 calculates voltage command values ​​for each phase (u-phase, v-phase, and w-phase) of the three-phase AC voltage of the motor 2 by performing 2-phase-3-phase conversion of the d-axis voltage command value VdC and the q-axis voltage command value VqC using the electrical angle of the motor 2 (step St16).

[0123] Next, the switching control unit 51 generates PWM signals as the switching signals S1a-S1c, S2a-S2c to be output to the inverter 10 based on the voltage command value of each phase (step St17). At this time, the switching control unit 51 performs duty calculation of the PWM signals from the voltage command value.

[0124] As indicated by the symbol G2, the switching control unit 51 generates a carrier signal that changes in a triangular wave shape on the time axis, and compares the signal value of the carrier signal with the voltage command value of each phase that changes in a sinusoidal wave shape. The carrier signal is a signal for determining the on / off timing of the PWM signals (switching signals S1a-S1c, S2a-S2c), and when the signal value of the carrier signal is equal to or greater than the voltage command value, the PWM signal is turned off, and when the signal value of the carrier signal is less than the voltage command value, the PWM signal is turned off.

[0125] The switching control unit 51 calculates the time Ton during which the PWM signal is on and the time Toff during which the PWM signal is off. The duty ratio of the PWM signal is determined by the times Ton and Toff. In this manner, the PWM control process is executed.

[0126] (Calculation of effective current value and current advance angle) 6 is a flowchart showing an example of a process for calculating the effective current value and the current advance angle of the motor 2. This process is executed in step St11 described above.

[0127] The advance angle control unit 52 determines whether or not loss increasing advance angle control is being executed (step St111). If loss increasing advance angle control is being executed (Yes in step St111), the advance angle control unit 52 reads out loss increasing advance angle control map data 512 from the storage unit 54 (step St112).

[0128] Furthermore, when loss-increasing advance angle control is not being executed (No in step St111), advance angle control unit 52 determines whether or not efficiency-optimal advance angle control is being executed (step St114). When efficiency-optimal advance angle control is being executed (Yes in step St114), advance angle control unit 52 reads out efficiency-optimal advance angle control map data 511 from storage unit 54 (step St115).

[0129] Furthermore, when efficiency optimal advance angle control is not being executed (No in step St114), the advance angle control unit 52 determines that current optimal advance angle control is being executed, and reads out current optimal advance angle control map data 510 from the storage unit 54 (step St116).

[0130] Next, lead-angle control unit 52 calculates the current effective value and current lead angle of motor 2 corresponding to the torque command value from the map data read out from storage unit 54, among current optimal lead-angle control map data 510, efficiency optimal lead-angle control map data 511, and loss increase lead-angle control map data 512 (step St113). As a result, lead-angle control unit 52 controls the current effective value and current lead angle along the current optimal line La based on current optimal lead-angle control map data 510, controls the current effective value and current lead angle along the efficiency optimal line Lb based on efficiency optimal lead-angle control map data 511, and controls the current effective value and current lead angle along the loss increase line Lc based on loss increase lead-angle control map data 512.

[0131] (Square wave control) 7 is a flowchart showing an example of the square wave control. While the square wave control is selected, the switching control section 51 periodically executes each process of the following steps St21 to St25.

[0132] The switching control unit 51 acquires each current value (e.g., u-phase and v-phase) of the three-phase AC current from the detection value of the current sensor 42 (step St21). Next, the switching control unit 51 calculates the d-axis current Id and the q-axis current Iq by performing a 3-phase-to-2-phase conversion of each current value of the three-phase AC current using the electrical angle of the motor 2 (step St22). At this time, the switching control unit 51 calculates the electrical angle from the detection value of the rotational position sensor 41.

[0133] Next, the switching control unit 51 estimates the output torque of the motor 2 from the d-axis current Id and the q-axis current Iq (step St23). At this time, the switching control unit 51 may calculate the output torque from a predetermined calculation formula from the d-axis current Id and the q-axis current Iq, or may calculate the output torque from map data indicating the relationship between the d-axis current Id and the q-axis current Iq and the output torque.

[0134] Next, the switching control unit 51 performs feedback control so as to reduce the difference between the estimated output torque and the torque command value, thereby calculating a voltage phase command value for the motor 2 (step St24). The voltage phase command value is a command value for the angle of the voltage applied to the motor 2 with respect to the q axis in the dq coordinate system.

[0135] Next, the switching control unit 51 generates square wave signals according to the voltage phase command value as the switching signals S1a-S1c, S2a-S2c to be output to the inverter 10 (step St25). The square wave signal is a one-pulse square wave with an on-period to off-period ratio of 1:1 within a predetermined control period. In other words, the interval between the time Ton when the square wave signal is on and the time Toff when the square wave signal is off is substantially constant. By inputting the switching signals S1a-S1c, S2a-S2c, which are square wave signals, to the IGBTs 101a-101c, 102a-102c of the inverter 10, a sinusoidal voltage with the above control period as one cycle is applied to each of the windings 2a-2c of the motor 2.

[0136] (Switching control between efficiency-optimized advance control and loss-increasing advance control) 8 is a flowchart showing an example of switching control to the efficiency-optimizing advance control or the loss-increasing advance control. This control process is executed, for example, at predetermined intervals.

[0137] The lead angle control unit 52 compares the upper limit power value Win of the DC power supply 3 with the threshold value THw (step St31). In this way, the lead angle control unit 52 determines whether the regenerative power of the motor 2 can be charged to the DC power supply 3 or not.

[0138] When the upper limit power value Win is equal to or less than the threshold value THw (Yes in step St31), the lead angle control unit 52 executes loss increase lead angle control so that the regenerative power is consumed as a loss in the motor 2 and the inverter 10 (step St32). As a result, the lead angle control unit 52 controls the effective current value and the current lead angle of the motor 2 along the loss increase line Lc in Fig. 2. Note that the condition of upper limit power value Win≦threshold value THw is one example of a condition related to the state of the DC power supply 3, but is not limited to this.

[0139] Furthermore, when the upper limit power value Win is greater than the threshold value THw (No in step St31), the advance angle control unit 52 calculates the rotation speed N of the motor 2 from the detection value of the rotation position sensor 41 (step St33). The advance angle control unit 52 determines whether the rotation speed N is within a range between a lower limit value Nmin and an upper limit value Nmax, at which the efficiency (fuel consumption) of the motor 2 is equal to or greater than a predetermined value (step St34). Here, the upper limit value Nmax and the lower limit value Nmin are determined in advance by simulation, experiment, or the like.

[0140] When Nmin≦N≦Nmax is satisfied (Yes in step St34), lead angle control unit 52 executes efficiency optimum lead angle control (step St35). As a result, lead angle control unit 52 controls the effective current value and current lead angle of motor 2 along the efficiency optimum line Lb in Fig. 2. Note that the condition Nmin≦N≦Nmax is an example of a condition related to the state of motor 2, but is not limited to this.

[0141] The advance angle control unit 52 is N<NminまたはN> If Nmax is satisfied (No in step St34), current optimum advance angle control is executed (step St36). As a result, advance angle control unit 52 controls the effective current value and current advance angle of motor 2 along current optimum line La in Fig. 2. That is, in a normal state in which neither the conditions in step St31 nor step St33 are satisfied, advance angle control unit 52 executes current optimum advance angle control.

[0142] In this way, lead-angle control unit 52 switches the type of lead-angle control depending on conditions related to the state of motor 2 or DC power supply 3. When loss-increasing lead-angle control is executed, the losses in motor 2 and inverter 10 are greater than when current optimal lead-angle control is executed, preventing regenerative power from motor 2 from being charged to DC power supply 3. Also, when efficiency optimal lead-angle control is executed, the efficiency of motor 2 is greater than when current optimal lead-angle control is executed.

[0143] (Switching back to optimal current advance control) 9 is a flowchart showing an example of switching back control to the optimal current advance angle control. This control process is executed, for example, at predetermined intervals.

[0144] The advance angle control unit 52 determines whether or not the switching control unit 51 is executing PWM control (step St41). If the square wave control is being executed (No in step St41), the advance angle control unit 52 ends the process to continue the square wave control.

[0145] Furthermore, when PWM control is being executed (Yes in step St41), lead-angle control unit 52 determines whether loss-increasing lead-angle control is being executed (step St42). When loss-increasing lead-angle control is being executed (Yes in step St42), lead-angle control unit 52 calculates a predicted modulation factor Ks for executing current optimal lead-angle (step St43). At this time, lead-angle control unit 52 calculates the predicted modulation factor Ks according to the above formula (1) using current command map data 513a, 513c and inductance map data 514a, 514c for current optimal lead-angle control and loss-increasing lead-angle control.

[0146] Furthermore, when loss-increasing advance control is not being executed (No in step St42), advance control unit 52 determines whether or not efficiency-optimal advance control is being executed (step St44). When efficiency-optimal advance control is not being executed (No in step St44), the process ends.

[0147] When efficiency optimal lead-angle control is being executed (Yes in step St44), lead-angle control unit 52 calculates a predicted modulation factor Ks when the current optimal lead-angle is executed (step St45). At this time, lead-angle control unit 52 calculates the predicted modulation factor Ks by the above formula (1) using current command map data 513a, 513b and inductance map data 514a, 514b for current optimal lead-angle control and efficiency optimal lead-angle control.

[0148] Next, the advance angle control unit 52 compares the predicted modulation factor Ks with a threshold value Kth (step St46). The threshold value Kth is, for example, 0.707. The threshold value Kth may be, for example, a modulation factor Ka at which the optimum advance angle of the efficiency optimal advance angle control changes due to a decrease in the number of switching times of the IGBTs 101a-101c, 102a-102c of the inverter 10, or a modulation factor Ka at which a target value of loss of the loss-increasing advance angle control changes, but is not limited thereto.

[0149] When the predicted modulation rate Ks is equal to or greater than the threshold value Kth (Yes in step St46), the lead-angle control unit 52 determines that there is a high possibility that the switching control of the inverter 10 will switch from PWM control to square wave control in the current optimal lead-angle control, and executes the current optimal lead-angle control (step St47). As a result, the square wave control region Sb shown in FIG. 3 is expanded, and the efficiency of the motor 2 is increased.

[0150] Furthermore, if the predicted modulation factor Ks is less than the threshold value Kth (No in step St46), lead-angle control unit 52 determines that the switching control of inverter 10 is unlikely to switch from PWM control to square wave control in current optimal lead-angle control, continues the efficiency optimal lead-angle control or loss increase lead-angle control, and ends the processing. In this way, lead-angle control unit 52 performs control to switch back to current optimal lead-angle control while efficiency optimal lead-angle control or loss increase lead-angle control is being executed.

[0151] In this way, when the predicted modulation factor Ks is equal to or greater than the threshold value Kth, the lead-angle control unit 52 executes the current optimal lead-angle control, and when the predicted modulation factor Ks is less than the threshold value Kth, the lead-angle control unit 52 continues the efficiency optimal lead-angle control or the loss increase lead-angle control. Therefore, when executing the current optimal lead-angle control, the lead-angle control unit 52 can return the lead-angle control from the efficiency optimal lead-angle control or the loss increase lead-angle control to the current optimal lead-angle control at an appropriate timing when the switching control of the inverter 10 switches from PWM control to square wave control. Therefore, the ECU 5 can control the current lead angle of the motor 2 at an appropriate timing.

[0152] The above-described embodiment is a preferred example of the present invention, but the present invention is not limited to this embodiment and can be modified in various ways without departing from the scope of the present invention. [Explanation of symbols]

[0153] 1 Power circuit 2 Motors 5 ECU (control unit) 10 Inverter 11 Boost Converter 51 Switching control section (first control section) 52 Advance angle control section (second control section) 510 Current optimum advance angle control map data (first advance angle control data) 511 Efficiency optimum advance angle control map data (second advance angle control data) 512 Loss increase advance angle control map data (2nd advance angle control data)

Claims

1. a first control unit that calculates a modulation factor of an inverter that converts a direct current input from a power source into an alternating current and outputs the alternating current to a motor, and selects and executes either PWM control or square wave control of the inverter in accordance with the modulation factor; a second control unit that controls the motor's current effective value and current advance angle in accordance with the torque required of the motor, based on first advance angle control data indicating a relationship between a torque required of the motor, a current effective value of the motor, and a current advance angle of the motor, while the first control unit is executing the PWM control, The second control unit is when a predetermined condition related to a state of the motor or the power source is satisfied while controlling the current effective value and the current advance angle of the motor based on the first advance angle control data, the current effective value and the current advance angle of the motor are controlled in accordance with a torque required of the motor based on second advance angle control data indicating the relationship in a current advance angle on a field weakening side relative to the first advance angle control data; predicting the modulation factor when the motor's RMS current value and current advance angle are controlled based on the first advance angle control data while the motor's RMS current value and current advance angle are controlled based on the second advance angle control data; When the predicted modulation factor is equal to or greater than a threshold value, the motor current effective value and the current advance angle are controlled based on the first advance angle control data; If the predicted modulation factor is less than a threshold value, continuing to control the effective current value and the current advance angle of the motor based on the second advance angle control data. Control device.

2. The second control unit is calculating an inductance and a current command value of the motor corresponding to each of the first advance angle control data and the second advance angle control data from a torque required of the motor; Calculating an amplitude of a voltage applied to the motor based on an inductance and a current command value of the motor; predicting the modulation factor from a ratio between an amplitude of the voltage and an input voltage input to the inverter from a boost converter that boosts the voltage of the power supply; The control device according to claim 1 .

3. The second control unit calculates the amplitude of the voltage based on an inductance, a current command value, and a resistance value of the motor. The control device according to claim 2.

4. The second control unit corrects the voltage based on a change in the voltage caused by a dead time of a switching operation of the inverter. The control device according to claim 2 or 3.

5. the second control unit controls the motor's current effective value and current advance angle based on the second advance angle control data when a loss of the motor is increased compared to a case where the motor's current effective value and current advance angle are controlled based on the first advance angle control data. A control device according to any one of claims 1 to 4.

6. the second control unit controls the motor's current effective value and current advance angle based on the second advance angle control data when the efficiency of the motor is increased more than when the motor's current effective value and current advance angle are controlled based on the first advance angle control data. A control device according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Electric vehicle

    JP2013038912A

  • Drive apparatus

    JP2018050427A

  • Motor drive device

    JP2018148722A

  • Driving device

    JP2020137217A