This nonprovisional application is based on Japanese Patent Application No. 2023-053003 filed on Mar. 29, 2023 with the Japan Patent Office, the entire contents of which are hereby incorporated by reference.
The present disclosure relates to a motor drive device.
There are conventionally known motor drive devices that control a motor having a rotor. A motor drive device disclosed in Japanese Patent Laying-Open No. 2002-369572, for example, estimates the position of a rotor in a sensorless manner. When starting to control a motor, this motor drive device performs an initial operation in which the position of the rotor is set to a prescribed initial position (designated position).
When the initial operation is performed, there may be a large angular displacement between the position of the rotor and the designated position. In this case, it may take a significant amount of time for the position of the rotor to reach the designated position.
The present disclosure has been made to solve such a problem, and an object of the present disclosure is to reduce an amount of time for the position of a rotor to reach a designated position.
(1) A motor drive device of the present disclosure includes a motor, an inverter, and a control device. The motor includes a rotor, and a stator around which coils of three phases are wound. The inverter drives the motor. The control device controls the inverter. The control device performs coordinate transformation of a current flowing through the motor into a d axis current and a q axis current. The control device calculates a correlation value by integrating a value based on the d axis current and the q axis current, the correlation value correlated with an amount of difference between a position of the rotor and a designated position. The control device performs, based on the correlation value, position control for causing the position of the rotor to match the designated position.
According to such a configuration, the motor drive device performs the position control based on the correlation value correlated with the amount of difference between the position of the rotor and the designated position. Therefore, the motor drive device can reduce an amount of time for the position of the rotor to reach the designated position.
The foregoing and other objects, features, aspects and advantages of the present disclosure will become more apparent from the following detailed description of the present disclosure when taken in conjunction with the accompanying drawings.
Embodiments of the present disclosure are hereinafter described in detail with reference to the drawings. The same or corresponding parts are denoted by the same reference characters in the drawings and description thereof will not be repeated.
The motor 110 is typically a three-phase AC rotating electric machine configured in the form of a permanent magnet motor. The motor 110 includes star-connected U-phase coil, V-phase coil and W-phase coil as a stator winding. Each phase coil has one end mutually connected at a neutral point 22. Each phase coil has the other end connected to a connection point (not shown) between switching elements of each phase arm of the inverter 210.
The battery 150 has a positive electrode and a negative electrode connected to the SMR 230. A voltage from the battery 150 is supplied to the inverter 210 through a converter (not shown).
The inverter 210 drives the motor 110. The inverter 210 is configured in the form of a three-phase inverter. When the electric vehicle is running, the inverter 210 controls current or voltage of each phase coil of the motor 110 so that the motor 110 operates in accordance with an operational command value (typically a torque value Tr described later) which is set for generating a drive force (vehicle drive torque, electric power generation torque, or the like) required for the running.
A current sensor 24V detects a V-phase current Iv flowing through the motor 110. A current sensor 24W detects a W-phase current Iw flowing through the motor 110. The V-phase current Iv and the W-phase current Iw are input to a coordinate transformation unit 320 (see
The control device 300 controls the SMR 230, the inverter 210, and the like. The control device 300 includes a CPU (Central Processing Unit) 302 and a memory 304 as main components. The memory 304 has a ROM (Read Only Memory) and a RAM (Random Access Memory), for example. The ROM stores a program for execution by the CPU 302. The RAM temporarily stores data (e.g., a voltage feature amount described later) generated by execution of the program by the CPU 302. A motor drive device 400 includes the motor 110 and the control device 300. The motor drive device 400 of the present embodiment employs a sensorless configuration that does not include a sensor (resolver) to detect a rotational position of the motor 110.
The control device 300 can communicate with a higher-level controller (not shown). The higher-level controller transmits a start signal C to the control device 300 when starting the electric system 500. The higher-level controller transmits a control signal D when initial control ends. The higher-level controller may be provided separately from or integrated with the control device 300. The start signal C is a signal for causing the control device 300 to perform initial control. The control signal D is a signal for causing the control device 300 to perform normal control.
Upon receiving the start signal C, the control device 300 performs the initial control. The initial control is control for causing a rotational position of the motor 110 (rotor 110A) to match a designated position (see
Upon receiving the control signal D, the control device 300 performs the normal control. The normal control is, for example, control while the electric vehicle having the electric system 500 mounted thereon is being driven. From the time the initial control is started, an initial control flag is stored in a prescribed storage area (e.g., a portion of the memory 304 in
The switch unit 350 can be switched between a first state and a second state through control by the control unit 310. The first state is a state in which an angle θ1 output from an addition unit 370 is output as an angle θ5 to the coordinate transformation unit 250 and the coordinate transformation unit 320. The second state is a state in which an angle θ4 output from the estimation unit 330 is output as the angle θ5 to the coordinate transformation unit 250 and the coordinate transformation unit 320. The first state is shown in the example of
The control unit 310 performs the initial control after setting the state of the switch unit 350 to the first state. The control unit 310 performs the normal control after setting the state of the switch unit 350 to the second state.
The normal control is now described. The control signal D includes a torque value Tr, for example, and the control device 300 performs the normal control for causing the motor 110 to produce a torque having the torque value Tr. The control unit 310 generates, in accordance with a table or the like created in advance, a d axis current command value Idc and a q axis current command value Iqc required for the motor 110 to produce a torque corresponding to the torque value Tr. A d axis current is a current that generates a magnetic field in a direction parallel to a direction of a magnetic field generated by the rotor 110A. A q axis current is a current orthogonal to the d axis current.
The coordinate transformation unit 320 transforms, by means of a coordinate transformation equation (from three phases to two phases) using the angle θ5 output from the switch unit 350, the V-phase current Iv and the W-phase current Iw into a d axis current Id and a q axis current Iq at command axial coordinates dc-qc. In other words, the coordinate transformation unit 320 performs coordinate transformation of a current flowing through the motor 110 into a d axis current and a q axis current. The coordinate transformation equation for the coordinate transformation unit 320 is an equation (1), for example. In the equation (1) and an equation (2) described later, “u” of the current Iu, “w” of the current Iw, and “5” of θ5 are shown as subscripts.
The V-phase current Iv is detected by the current sensor 24V. The W-phase current Iw is detected by the current sensor 24W. The V-phase current Iv and the W-phase current Iw are current values on three-phase AC coordinates as stationary coordinates. The d axis current Id and the q axis current Iq are output to a subtraction unit 311 and a subtraction unit 312, respectively. The d axis current Id and the q axis current Iq are also output to the estimation unit 330 and the correction arithmetic unit 360.
The estimation unit 330 estimates, based on the d axis current Id and the q axis current Iq, the rotational angle θ4 of the motor by a prescribed arithmetic operation. The estimated angle θ4 is output to the switch unit 350.
The subtraction unit 311 calculates a deviation ΔId between the d axis current value and the d axis current command value (ΔId=Idc−Id), and outputs this ΔId to the PI arithmetic unit 240. The subtraction unit 312 calculates a deviation ΔIq between the q axis current value and the q axis current command value (ΔIq=Iqc−Iq), and outputs this ΔIq to the PI arithmetic unit 240.
The PI arithmetic unit 240 performs a PI (proportional integral) arithmetic operation of the d axis current deviation ΔId and the q axis current deviation ΔIq with a prescribed gain, to obtain a control deviation. The PI arithmetic unit 240 calculates, in accordance with this control deviation, a d axis voltage command value Vdc and a q axis voltage command value Vqc, each of which is a command value for an applied voltage in each axial direction at the command axial coordinates dc-qc. The d axis voltage command value Vdc is a command value for the d axis. The q axis voltage command value Vqc is a command value for the q axis. The PI arithmetic unit 240 performs feedback control in this manner.
The coordinate transformation unit 250 transforms, by means of a coordinate transformation equation (from two phases to three phases) using the angle θ5 output from the switch unit 350 described later, the d axis voltage command value Vdc and the q axis voltage command value Vqc into voltage command values Vuc, Vvc and Vwc for the respective U phase, V phase and W phase on three-phase AC coordinates as stationary coordinates. The coordinate transformation equation for the coordinate transformation unit 250 is an equation (2), for example.
The PWM unit 260 generates a switching control signal based on a comparison between the voltage command values Vuc, Vvc and Vwc of the respective phases and a prescribed carrier wave, and outputs the switching control signal to the inverter 210. The inverter 210 performs switching control in accordance with the switching control signal. With this switching control, an AC voltage for outputting a torque in accordance with the torque value Tr input to the control unit 310 is applied to the motor 110.
As described above, in the normal control, a closed loop is formed that controls the motor currents to the current command values (Idc and Iqc) corresponding to the torque value Tr. With this closed loop, the output torque from the motor 110 is controlled in accordance with the torque value Tr. In other words, the control unit 310 drives the motor 110 (rotates the rotor 110A) based on the control signal (the current command values (Idc and Iqc) in the present embodiment).
The initial control is now described. As described above, the initial control is control for causing the rotational position of the motor 110 to match the designated position (initial position).
The q axis current is a current corresponding to the torque of the motor 110. Therefore, the control unit 310 sets the q axis current to zero, and sets the d axis current to a prescribed value. As a result, the motor 110 can be prevented from producing a torque, and a magnetic field (S pole magnetic field in the example of
The designated position 40 is a position corresponding to the angle θ1 (angle θ5). The angle θ1 is also referred to as a designated angle. In other words, the control unit 310 can also change the designated position 40 by changing the angle θ1, after setting the q axis current to zero and setting the d axis current to the prescribed value. In a modification, an N pole magnetic field may be generated at the designated position 40.
In the example of
Therefore, the motor drive device 400 of the present embodiment performs initial control that can reduce the amount of time for the rotational position of the motor 110 to reach the designated position even when the angular displacement Δθ is large. The initial control in the present embodiment is described below in detail.
The description is returned to
The angle arithmetic unit 340 outputs an angle θ3 by performing a prescribed arithmetic operation. The prescribed arithmetic operation includes, for example, an arithmetic operation of integrating the angular speed ωc. The angle θ3 is output to the addition unit 370.
The correction arithmetic unit 360 calculates a correction value (angle θ2) corresponding to the angular displacement Δθ. As described above, the angular displacement Δθ is the amount of displacement between the designated position 40 and the actual rotational position of the motor 110. The motor drive device 400 does not include a resolver as described above, and thus does not detect the actual rotational position of the motor 110.
This first value corresponds to “value based on the d axis current and the q axis current” of the present disclosure. More specifically, the first value is an example of “value based on a phase difference Δp between a phase of the d axis current and a phase of the q axis current.” The first value is approximated to the phase difference Δp. This first value is output to the integration unit 364. In a modification, “Id/Iq” may be used instead of “Iq/Id” in the equation (3).
The integration unit 364 calculates a second value by performing integration processing on the first value. This integration processing is time integration. The second value corresponds to “correlation value correlated with the angular displacement Δθ.” Stated another way, the second value corresponds to “correlation value correlated with the amount of difference between the positon of the rotor 110A and the designated position 40.”
The second value is output to the PID unit 366. The PID unit 366 performs PID (Proportional Integral Derivative) control on the second value. The PID control by the PID unit 366 is an example of “prescribed control” of the present disclosure.
Generally, PID control is performed on a deviation, which is the difference between an actual measured value and a target value. In the present embodiment, the second value corresponds to the actual measured value. The second value is a value based on the angular displacement Δθ, and the present embodiment aims to make the second value equal to zero. In the present embodiment, therefore, zero corresponds to the target value. Thus, the deviation is the difference between the second value and zero, which is the second value itself. Therefore, the second value, which is the deviation, is input to the PID unit 366.
The PID unit 366 calculates a third value by performing PID control on the second value. This third value corresponds to the angle θ2. The third value (angle θ2) calculated by the PID unit 366 is output to the addition unit 370.
The addition unit 370 outputs the angle θ1, which is a total value of the angle θ2 and the angle θ3, to the switch unit 350. The angle θ1 is output as the angle θ5 from the switch unit 350 to the coordinate transformation unit 250 and the coordinate transformation unit 320. The coordinate transformation unit 320 and the coordinate transformation unit 250 perform angle conversion based on the angle θ1, so that the designated position 40 can be changed in the direction of reducing the angular displacement Δθ. Therefore, the motor drive device 400 can reduce the amount of time for the rotational position of the rotor 110A to reach the designated position 40.
The reason that the correction arithmetic unit 360 of the present embodiment uses the second value is now described.
Focused areas in
Particularly, as indicated by the angular displacement Δθ in the frame L1 and the second value in the frame L3, the timings at which the angular displacement Δθ has a local maximum value and a local minimum value roughly match the timings at which the second value has a local minimum value and a local maximum value, respectively. Therefore, the motor drive device 400 of the present embodiment can calculate the second value for reducing the angular displacement Δθ based on the second value.
In the present embodiment, therefore, the control unit 310 performs change control of gradually increasing the angular speed ωc in
As described above, the PID unit 366 performs the PID control. The second value can be more appropriately brought closer to zero through the PID control performed by the PID unit 366.
Generally, however, noise on the phase of the d axis current and the phase of the q axis current may be included in a signal of interest on which D control is performed. In this case, a derivative term by the D control often deteriorates robustness of the control device 300. To avoid this robustness deterioration, PI control may be performed without the D control. Such PI control, however, may not be able to appropriately bring the second value closer to zero.
Depending on the performance of the CPU 302 (see
An equation (B) of
As shown in a portion D1 of the equation (C), the signal after differentiation includes the period variation. Further, as shown in a portion D2, the signal after differentiation includes two-round noise signals of xe(t) and xe(t−T), resulting in the robustness deterioration as described above.
In contrast, the signal of interest for the PID control performed by the PID unit 366 of the present embodiment corresponds to the second value, which is calculated by the integration processing on the first value by the integration unit 364. Generally, even if a signal includes the noise, the noise is suppressed through integration processing. Therefore, the PID unit 366 can perform the PID control on the signal with the suppressed noise, thereby suppressing the robustness deterioration and appropriately bringing the second value closer to zero.
First, in step S2, the motor drive device 400 increases the angle θ3 by a prescribed value. This process of step S2 corresponds to the change control described above. Next, in step S4, the motor drive device 400 calculates, based on the equation (3), a value based on the phase difference Δp (first value).
Next, in step S6, the motor drive device 400 calculates the second value by time-integrating the first value. This time integration is time integration in the sampling period described above. Step S6 is also a process of calculating a total value of the second values from the time the start signal C was received. In other words, in step S6, the motor drive device 400 adds a currently calculated second value to a total value of the second values calculated in previous step S6.
Next, in step S8, the motor drive device 400 calculates θ2 (third value) by performing PID control on the second value calculated in step S6. Next, in step S10, the motor drive device 400 outputs the angle θ1 (θ2+θ3) to the coordinate transformation unit 250 and the coordinate transformation unit 320. Next, in step S12, the motor drive device 400 determines whether or not a prescribed time period has elapsed since the start of the initial control. The prescribed time period is 200 ms, for example. When the determination is YES in step S12, the initial control ends (the initial control flag is erased), and the process of
When the determination is NO in step S12, on the other hand, the process of
The horizontal axis of
As described above in
One method for improving the accuracy of estimating the rotational position of a rotor in a sensorless configuration employs superimposition of harmonic signals. In an SPM (surface permanent magnetic) motor, however, the superimposition of harmonic signals cannot be employed. In the motor drive device 400 of the present embodiment, the initial control can be performed without employing the superimposition of harmonic signals.
Further, the motor drive device 400 performs the position control by performing the prescribed control for making the second value equal to zero. Therefore, the motor drive device 400 can make the amount of difference equal to zero by the prescribed control.
Further, the prescribed control is PID control on the correlation value (see
Further, the motor drive device 400 calculates the arc tangent value of the value of the d axis current and the value of the q axis current as the first value (see
Further, the motor drive device 400 ends the initial control when the prescribed time period elapses from the start of the initial control, as shown in step S12. Therefore, the motor drive device 400 can determine whether or not to end the initial control by relatively simple control.
Further, the motor drive device 400 performs the change control of gradually changing the designated position 40 with the passage of time (step S2 in
Further, the rotor 110A is configured in the form of a two-pole magnet, as shown in
(1) According to the embodiment described above, the motor drive device 400 calculates the arc tangent value of the value of the d axis current and the value of the q axis current as the first value (the value based on the phase difference Δp between the phase of the d axis current and the phase of the q axis current), as described in
Even with such a configuration, the motor drive device 400 can calculate the first value without performing a complicated arithmetic operation, such as an arithmetic operation of a trigonometric function used to calculate the phase. In a modification, Id/Iq may be used instead in the right side of the equation (4).
(2) The termination condition for the initial control in the embodiment described above is the lapse of the prescribed time period since the start of the initial control (see S12 of
The flowchart of
As shown in
(3) The configuration of the motor drive device 400 described above does not include a resolver. However, the motor drive device 400 may include a resolver. For example, even if the motor drive device 400 includes a resolver before shipment of the motor drive device 400, the angular displacement Δθ may still occur. Even in such a case, the angular displacement Δθ can be made equal to zero by the position control of the motor drive device 400.
(1) A motor drive device of the present disclosure includes a motor, an inverter, and a control device. The motor includes a rotor, and a stator around which coils of three phases are wound. The inverter drives the motor. The control device controls the inverter. The control device performs coordinate transformation of a current flowing through the motor into a d axis current and a q axis current. The control device calculates a correlation value by integrating a value based on the d axis current and the q axis current, the correlation value correlated with an amount of difference between a position of the rotor and a designated position. The control device performs, based on the correlation value, position control for causing the position of the rotor to match the designated position.
According to such a configuration, the motor drive device performs the position control based on the correlation value correlated with the amount of difference between the position of the rotor and the designated position. Therefore, the motor drive device can reduce the amount of time for the position of the rotor to reach the designated position.
(2) In the motor drive device according to (1), the control device performs the position control by performing prescribed control for making the correlation value equal to zero.
According to such a configuration, the amount of difference can be made equal to zero by the prescribed control.
(3) In the motor drive device according to (1) or (2), the prescribed control is PID control on the correlation value.
According to such a configuration, the amount of difference can be made equal to zero by a relatively simple arithmetic operation.
(4) In the motor drive device according to any one of (1) to (3), the value based on the d axis current and the q axis current is an arc tangent value of a value of the d axis current and a value of the q axis current.
According to such a configuration, the value based on the d axis current and the q axis can be calculated with a relatively simple configuration.
(5) In the motor drive device according to any one of (1) to (3), the value based on the d axis current and the q axis current is a division value, the division value being determined by division of a value of the d axis current by a value of the q axis current, or division of the value of the q axis current by the value of the d axis current.
According to such a configuration, the value based on the d axis current and the q axis current can be calculated without performing a complicated arithmetic operation, such as an arithmetic operation of a trigonometric function.
(6) In the motor drive device according to any one of (1) to (5), the control device changes the designated position with passage of time.
According to such a configuration, the amount of time for the position of the rotor to reach the designated position can be reduced even when the amount of difference is 180 degrees.
(7) In the motor drive device according to any one of (1) to (6), the control device ends the position control when a prescribed time period elapses from a start of the position control.
According to such a configuration, it can be determined whether or not to end the position control with a relatively simple configuration.
(8) In the motor drive device according to any one of (1) to (6), the control device ends the position control when a variation in the correlation value is less than a threshold value.
According to such a configuration, it can be determined whether or not to end the position control with a relatively simple configuration.
(9) In the motor drive device according to any one of (1) to (8), the rotor includes a two-pole magnet.
According to such a configuration, while the configuration of the rotor can be simplified because the rotor includes a two-pole magnet, the amount of difference tends to increase. However, the amount of difference can be suppressed by the motor drive device of the present disclosure.
Although the embodiments of the present disclosure have been described, it should be understood that the embodiments disclosed herein are illustrative and non-restrictive in every respect. The scope of the present disclosure is defined by the terms of the claims and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.
Number | Date | Country | Kind |
---|---|---|---|
2023-053003 | Mar 2023 | JP | national |