Motor drive device
The motor drive device enhances rotor positioning accuracy by transforming currents into d-axis and q-axis values, using PID control to minimize angular deviation, thus reducing alignment time.
Patent Information
- Application Number
- JP2023053003
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-10
- Estimated Expiration
- 2043-03-29
AI Technical Summary
Conventional motor drive devices experience significant angular deviation between the rotor position and the designated position during initial operation, leading to prolonged time for the rotor to reach the designated position.
A motor drive device that includes a control device capable of transforming current into d-axis and q-axis currents, calculating a correlation value based on these currents to align the rotor position, and performing position control using PID control to minimize the angular deviation.
The solution significantly reduces the time required for the rotor to reach the designated position by accurately aligning it through simple calculations and control strategies, even with large initial angular deviations.
Smart Images

Figure 2024141394000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a motor drive device. [Background technology]
[0002] Conventionally, motor drive devices that control a motor having a rotor are known. For example, the motor drive device disclosed in Japanese Patent Laid-Open Publication No. 2002-369572 (Patent Document 1) estimates the position of the rotor in a sensorless manner. When starting to control the motor, this motor drive device executes an initial operation to set the position of the rotor to a predetermined initial position (designated position). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2002-369572 A Summary of the Invention [Problem to be solved by the invention]
[0004] When the above-mentioned initial operation is performed, there may be a large angular deviation between the rotor position and the designated position, which may cause a problem that it takes a long time for the rotor position to reach the designated position.
[0005] The present disclosure has been made to solve such problems, and its purpose is to reduce the time it takes for the rotor to reach a specified position. [Means for solving the problem]
[0006] (1) A motor drive device according to the present disclosure includes a motor, an inverter, and a control device. The motor has a rotor and a stator around which three-phase coils are wound. The inverter drives the motor. The control device controls the inverter. The control device performs coordinate conversion of a current flowing through the motor into a d-axis current and a q-axis current. The control device calculates a correlation value that correlates with the amount of difference between the rotor position and a specified position by integrating a value based on the d-axis current and the q-axis current. The control device executes position control based on the correlation value to match the rotor position to the specified position.
[0007] With this configuration, the motor drive device executes position control based on a correlation value that correlates with the difference between the rotor position and the designated position, thereby shortening the time it takes for the rotor to reach the designated position.
[0008] (2) In the motor drive device described in (1), the control device performs position control by executing a predetermined control for making the correlation value zero.
[0009] According to this configuration, the difference amount can be made zero by performing a predetermined control.
[0010] (3) The motor drive device according to (1) or (2), wherein the predetermined control is a PID control for the correlation value.
[0011] With this configuration, the difference amount can be made zero by a relatively simple calculation.
[0012] (4) The motor drive device according to any one of (1) to (3), wherein the value based on the d-axis current and the q-axis current is an arctangent value of a value of the d-axis current and a value of the q-axis current.
[0013] According to this configuration, a value based on the d-axis current and the q-axis current can be calculated with a relatively simple configuration.
[0014] (5) The motor drive device according to any one of (1) to (3), wherein the value based on the d-axis current and the q-axis current is a value obtained by dividing the value of the d-axis current by the value of the q-axis current.
[0015] According to this configuration, it is possible to calculate a value based on the d-axis current and the q-axis current without performing complex calculations such as calculations of trigonometric functions.
[0016] (6) In the motor drive device according to any one of (1) to (5), the control device changes the designated position in accordance with the passage of time.
[0017] With this configuration, even if the difference amount is 180 degrees, it is possible to shorten the time until the rotor reaches the designated position.
[0018] (7) In the motor drive device according to any one of (1) to (6), the control device terminates the position control when a predetermined period of time has elapsed since the position control was started.
[0019] According to this configuration, it is possible to determine whether or not the position control has ended with a relatively simple configuration.
[0020] (8) In the motor drive device according to any one of (1) to (6), the control device terminates the position control when an amount of change in the correlation value is less than a threshold value.
[0021] According to this configuration, it is possible to determine whether or not the position control has ended with a relatively simple configuration.
[0022] (9) The motor drive device according to any one of (1) to (8), wherein the rotor is formed of a two-pole magnet.
[0023] With this configuration, the rotor is made up of a two-pole magnet, which allows the rotor to have a simple configuration, but the difference tends to be large. However, the motor drive device of the present disclosure can reduce the difference. Effect of the Invention
[0024] In the present disclosure, the time required for the rotational position of the rotor to reach a designated position can be reduced. [Brief description of the drawings]
[0025] [Figure 1] FIG. 2 is a functional block diagram of an electrical system. [Diagram 2] FIG. 2 is a functional block diagram of a control device. [Diagram 3] FIG. 11 is a diagram for explaining an initial control. [Figure 4] FIG. 11 is a diagram for explaining an initial control. [Diagram 5] FIG. 4 is a functional block diagram of a correction calculation unit. [Figure 6] This is an example of an experimental result. [Figure 7] FIG. 11 is a diagram for explaining an initial control. [Figure 8] FIG. 13 is a diagram for explaining robustness and the like. [Figure 9] 13 is a flowchart showing an initial control process of the motor driving device 400. [Figure 10] FIG. 13 is a diagram showing a simulation result. [Figure 11] FIG. 11 is a functional block diagram of a correction calculation unit according to a modified example. [Figure 12] 10 is a flowchart showing a process of a motor drive device according to a modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0026] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are designated by the same reference characters and their description will not be repeated.
[0027] 1 is a block diagram of an electrical system 500. The electrical system 500 is mounted on, for example, an electric vehicle. The electrical system 500 includes a battery 150, a system main relay (SMR) 230, an inverter 210, a motor 110, and a control device 300. The control device 300 is also referred to as an arithmetic circuit.
[0028] Motor 110 is a three-phase AC rotating electric machine typically constituted by a permanent magnet motor. Motor 110 has star-connected U-phase coil, V-phase coil, and W-phase coil as stator windings. One end of each phase coil is connected to each other at neutral point 22. The other end of each phase coil is connected to a connection point (not shown) of the switching element of each phase arm of inverter 210.
[0029] The positive and negative electrodes of the battery 150 are connected to the SMR 230. In addition, the voltage from the battery 150 is supplied to the inverter 210 via a converter (not shown).
[0030] The inverter 210 drives the motor 110. The inverter 210 is configured as a three-phase inverter. When the electric vehicle is traveling, the inverter 210 controls the current or voltage of each phase coil of the motor 110 so that the motor 110 operates according to an operation command value (typically, a torque value Tr described later) that is set to generate a driving force (vehicle driving torque, power generation torque, etc.) required for the traveling.
[0031] Current sensor 24V detects a V-phase current Iv flowing through motor 110. Current sensor 24W detects a W-phase current Iw flowing through motor 110. V-phase current Iv and W-phase current Iw are input to coordinate conversion unit 320 (see FIG. 2) of control device 300. Since the sum of instantaneous values of three-phase currents Iu, Iv, Iw is zero, it is sufficient to arrange for detection of motor currents for two phases (for example, V-phase current Iv and W-phase current Iw) as shown in FIG. 1. Therefore, U-phase current Iu is not shown in FIG. 2 described below.
[0032] The control device 300 controls the SMR 230 and the inverter 210. The control device 300 has a CPU (Central Processing Unit) 302 and a memory 304 as main components. The memory 304 has, for example, a ROM (Read Only Memory) and a RAM (Random Access Memory). The ROM stores a program executed by the CPU 302. The RAM temporarily stores data (for example, voltage feature quantities described below) generated by the execution of the program in the CPU 302. The motor drive device 400 includes the motor 110 and the control device 300. The motor drive device 400 of this embodiment employs a sensorless configuration that does not have a sensor (resolver) that detects the rotational position of the motor 110.
[0033] [Control device function block diagram] 2 is a functional block diagram of the control device 300 and the like. In the example of FIG. 2, the control device 300 has a PI calculation unit 240, a coordinate conversion unit 250, a PWM (Pulse Width Modulation) unit 260, a control unit 310, a coordinate conversion unit 320, an estimation unit 330, an angle calculation unit 340, a switch unit 350, and a correction calculation unit 360. The motor 110 has a rotor 110A and a stator 110B. The rotor 110A corresponds to the "rotor" of the present disclosure. The stator 110B is composed of wound three-phase coils (the U-phase coil, the V-phase coil, and the W-phase coil of FIG. 1).
[0034] The control device 300 is capable of communicating 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 also transmits a control signal D when the initial control ends. The higher-level controller may be a device separate from the control device 300, or may be integrated with the control device 300. The start signal C is a signal for causing the control device 300 to execute the initial control. The control signal D is a signal for causing the control device 300 to execute normal control.
[0035] When the control device 300 receives the start signal C, it executes initial control. The initial control is a control for matching the rotational position of the motor 110 (rotor 110A) with a designated position (see FIG. 3, etc., described later). The designated position is a position designated by the control device 300. The initial control corresponds to the "position control" of the present disclosure.
[0036] When the control device 300 receives the control signal D, it executes normal control. The normal control is, for example, control performed while the electric vehicle in which the electrical system 500 is mounted is being driven. Note that an initial control flag is stored in a predetermined storage area (for example, a part of the memory 304 in FIG. 1) from the time when execution of the initial control starts. The initial control flag is a flag indicating that the initial control is being executed. When the initial control ends, the initial control flag is erased. The control device 300 of this embodiment executes the initial control at predetermined intervals (sampling intervals described below). The control device 300 also executes normal control at the predetermined intervals.
[0037] The switch unit 350 can be switched between a first state and a second state under the control of the control unit 310. The first state is a state in which the angle θ1 output from the adder 370 is output as the angle θ5 to the coordinate conversion unit 250 and the coordinate conversion unit 320. The second state is a state in which the angle θ4 output from the estimation unit 330 is output as the angle θ5 to the coordinate conversion unit 250 and the coordinate conversion unit 320. The example in FIG. 2 shows the first state.
[0038] The control unit 310 executes the initial control with the switch unit 350 in the first state, and also executes the normal control with the switch unit 350 in the second state.
[0039] [Normal control] Next, normal control will be described. The control signal D includes, for example, a torque value Tr, and the control device 300 executes normal control to cause the motor 110 to generate a torque of the torque value Tr. The control unit 310 generates a d-axis current command value Idc and a q-axis current command value Iqc required to cause the motor 110 to generate a torque corresponding to the torque value Tr, according to a previously created table or the like. The d-axis current is a current that generates a magnetic field in a direction parallel to the direction of the magnetic field generated by the rotor 110A. The q-axis current is a current that is perpendicular to the d-axis current.
[0040] Coordinate conversion unit 320 converts V-phase current Iv and W-phase current Iw into d-axis current Id and q-axis current Iq in command axis coordinate dc-qc by a coordinate conversion equation (3-phase → 2-phase) using angle θ5 output from switch unit 350. That is, coordinate conversion unit 320 performs coordinate conversion of the current flowing through motor 110 into a d-axis current and a q-axis current. The coordinate conversion equation of coordinate conversion unit 320 is, for example, equation (1). Note that in equation (1) and equation (2) described below, "u" of current Iu, "w" of current Iw, and "5" of θ5 are indicated by subscripts.
[0041]
number
[0042] The V-phase current Iv is detected by current sensor 24V. Moreover, the W-phase current Iw is detected by current sensor 24W. The V-phase current Iv and the W-phase current Iw are current values on a three-phase AC coordinate system, which is a stationary coordinate system. The d-axis current Id and the q-axis current Iq are output to subtraction units 311 and 312, respectively. Moreover, the d-axis current Id and the q-axis current Iq are output to estimation unit 330 and correction calculation unit 360.
[0043] The estimation unit 330 estimates a rotation angle θ4 of the motor by a predetermined calculation based on the d-axis current Id and the q-axis current Iq. The estimated angle θ4 is output to the switch unit 350.
[0044] The subtraction unit 311 calculates the deviation ΔId (ΔId=Idc−Id) between the d-axis current value and the d-axis current command value, and outputs ΔId to the PI calculation unit 240. The subtraction unit 312 calculates the deviation ΔIq (ΔIq=Iqc−Iq) between the q-axis current value and the q-axis current command value, and outputs ΔIq to the PI calculation unit 240.
[0045] The PI calculation unit 240 performs PI (proportional integral) calculation using a predetermined gain on the d-axis current deviation ΔId and the q-axis current deviation ΔIq to obtain a control deviation. The PI calculation unit 240 calculates a d-axis voltage command value Vdc and a q-axis voltage command value Vqc, which are command values for the applied voltages in the respective axial directions in the command axis coordinates dc-qc, according to the control deviation. The d-axis voltage command value Vdc is the command value for the d-axis. The q-axis voltage command value Vqc is the command value for the q-axis. In this way, the PI calculation unit 240 executes feedback control.
[0046] The coordinate conversion unit 250 converts the d-axis voltage command value Vdc and the q-axis voltage command value Vqc into U-phase, V-phase, and W-phase voltage command values Vuc, Vvc, and Vwc on the three-phase AC coordinates, which are stationary coordinates, by a coordinate conversion formula (2-phase to 3-phase) using an angle θ5 output from the switch unit 350 described later. The coordinate conversion formula of the coordinate conversion unit 250 is, for example, formula (2).
[0047]
number
[0048] The PWM unit 260 generates a switching control signal based on a comparison between the voltage command values Vuc, Vvc, Vwc in each phase and a predetermined carrier wave, and outputs the signal to the inverter 210. The inverter 210 executes switching control in accordance with the switching control signal. An AC voltage is applied to the motor 110 by the switching control to output a torque in accordance with the torque value Tr input to the control unit 310.
[0049] In this way, in normal control, a closed loop is formed that controls the motor current to the current command value (Idc, Iqc) corresponding to the torque value Tr. This closed loop controls the output torque of the motor 110 according to the torque value Tr. In other words, the control unit 310 drives the motor 110 (rotates the rotor 110A) based on the control signal (in this embodiment, the current command value (Idc, Iqc)).
[0050] [Initial control] Next, the initial control will be described. As described above, the initial control is a control for matching the rotational position of the motor 110 with a specified position (initial position). FIG. 3 is a diagram for explaining the initial control. In the example of FIG. 3(A), γ-axis and δ-axis are shown as plane coordinates. The rotor 110A is drawn on this plane coordinates. Since the rotor 110A is composed of a two-pole permanent magnet, the motor 110 of this embodiment is a so-called two-pole motor.
[0051] 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 the d-axis current to a predetermined value. This makes it possible to prevent the motor 110 from generating torque and to generate a magnetic field (a magnetic field of the south pole in the example of FIG. 4) at the specified position 40. By generating such a magnetic field, the control unit 310 rotates the rotor 110A so that the origin C of the rotor 110A is located at the specified position 40 (command angle) specified by the control unit 310. The origin C is a predetermined position of the rotor 110A.
[0052] The designated position 40 corresponds to the angle θ1 (angle θ5). The angle θ1 is also called a command angle. That is, the control unit 310 can change the designated position 40 by changing the angle θ1 while the q-axis current is set to zero and the d-axis current is set to a predetermined value. As a modified example, the magnetic field generated at the designated position 40 may be an N pole.
[0053] FIG. 3(A) shows an example in which the initial designated position 40 is 0 degrees on the γ-axis (i.e., angle θ1=0 degrees). FIG. 3(A) also shows an angular deviation Δθ. The angular deviation Δθ is the amount of deviation between the designated position 40 and the actual rotational position of the motor 110. The angular deviation Δθ corresponds to the "difference amount" in this disclosure. Since the north pole of the rotor 110A is attracted to the south pole of the designated position 40, Δθ gradually becomes smaller.
[0054] FIG. 3B is a diagram showing the relationship between the time t that has elapsed since the initial control was performed and the angle deviation Δθ. As shown in FIG. 3B, the angle deviation Δθ becomes smaller while oscillating as the time t elapses. Then, it is preferable that the initial control is terminated when the angle deviation Δθ falls within a predetermined reference range. The reference range is a range indicated by 0±M, where M is a predetermined margin value. The control unit 310 executes normal control after the angle deviation Δθ falls within the reference range. Therefore, the motor driving device 400 can execute normal control in a state in which the angle deviation between the rotation angle of the motor 110 recognized by the motor driving device 400 (the angle estimated by the motor driving device 400) and the actual rotation angle of the motor 110 is suppressed.
[0055] Fig. 4 shows a case where the angle deviation Δθ is large when the initial control is executed. As shown in Fig. 4, when the angle deviation Δθ is large, a long time is required from when the initial control is executed until the angle deviation Δθ falls within the reference range. Furthermore, if the initial control is switched to the normal control before the angle deviation Δθ falls within the reference range, the motor 110 may lose synchronism.
[0056] Therefore, the motor drive device 400 of this embodiment executes initial control that can reduce the time it takes for the rotational position of the motor 110 to reach the designated position even when the angle misalignment Δθ is large. Details of the initial control of this embodiment will be described below.
[0057] Returning to FIG. 2 for explanation, as described above, in the initial control, the state of the switch unit 350 is the first state in which the angle θ1 from the adder unit 370 is output to the coordinate conversion unit 320. In the initial control, the control unit 310 outputs the angular velocity ωc to the angle calculation unit 340 as a command value of the angular velocity of the rotor 110A of the angle calculation unit 340. As will be described later, the control unit 310 increases the angular velocity ωc over time. In the initial control, first, the control unit 310 sets the angle θ1 as the initial angle, thereby generating a magnetic field of the S pole at the initial designated position 40. The initial angle is set to 0 degrees. This allows the control unit 310 to generate a magnetic field at the designated position 40 shown in FIG. 3, for example.
[0058] The angle calculation unit 340 executes a predetermined calculation to output the angle θ3. The predetermined calculation includes, for example, a calculation to integrate the angular velocity ωc. The angle θ3 is output to the addition unit 370.
[0059] Correction calculation unit 360 calculates a correction value (angle θ2) according to angle deviation Δθ. As described above, angle deviation Δθ is the amount of deviation between designated position 40 and the actual rotational position of motor 110. As described above, motor drive device 400 does not include a resolver and therefore does not detect the actual rotational position of motor 110.
[0060] 5 is a functional block diagram of the correction calculation unit 360. The correction calculation unit 360 has an arc tangent unit 362, an integrator unit 364, and a PID unit 366. In addition, the control device 300 generates a magnetic field at the initial specified position 40, whereby the V-phase current Iv is detected by the current sensor 24V, and the W-phase current Iv is detected by the current sensor 24W. These V-phase current Iv and W-phase current Iv are input to the arc tangent unit 362. The arc tangent unit 362 calculates a first value by calculating the arc tangent of the value of the d-axis current Id and the value of the q-axis current Iq, as shown in the following equation (3).
[0061] 1st value = arctan(Iq / Id) (3) This first value corresponds to "a value based on the d-axis current and the q-axis current" in the present disclosure. More specifically, the first value is an example of "a value based on a phase shift Δp between the phase of the d-axis current and the phase of the q-axis current". The first value is approximated to the phase shift Δp. This first value is output to the integrating unit 364. As a modified example, "Iq / Id" in equation (3) may be expressed as "Id / Iq".
[0062] The integrator 364 calculates the second value by executing an integration process on the first value. This integration process is a time integration. The second value corresponds to a "correlation value correlating with the angular deviation Δθ." In other words, the second value corresponds to a "correlation value correlating with the difference amount between the position of the rotor 110A and the designated position 40."
[0063] The second value is output to the PID unit 366. The PID unit 366 executes PID (Proportional, Integral, Derivative) control on the second value. The PID control by the PID unit 366 is an example of the "predetermined control" of the present disclosure.
[0064] Generally, PID control is performed on the deviation, which is the difference between the actual measurement value and the target value. In this embodiment, the second value corresponds to the actual measurement value. The second value is a value based on the angle deviation Δθ, and in this embodiment, the target is to make the second value zero. Therefore, in this embodiment, zero corresponds to the target value. Therefore, the deviation is the difference between the second value and zero, and therefore becomes the second value itself. Therefore, the second value, which is the deviation, is input to the PID unit 366.
[0065] The PID unit 366 calculates a third value by executing 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.
[0066] Adder 370 outputs angle θ1, which is the sum of angle θ2 and angle θ3, to switch unit 350. Switch unit 350 outputs angle θ1 as angle θ5 to coordinate converter 250 and coordinate converter 320. Coordinate converter 320 and coordinate converter 250 perform angle conversion based on angle θ1, so that designated position 40 can be changed in a direction that reduces angle deviation Δθ. Therefore, motor drive device 400 can reduce the time it takes for the rotational position of rotor 110A to reach designated position 40.
[0067] [About the second value] Next, the reason why the correction calculation unit 360 of this embodiment uses the second value will be explained. FIG. 6 is an example of the results of an experiment conducted by the inventor. The horizontal axis of FIG. 6(A) to FIG. 6(C) indicates time. The vertical axis of FIG. 6(A) indicates the above-mentioned angle deviation Δθ. The vertical axis of FIG. 6(B) indicates the first value. The vertical axis of FIG. 6(C) indicates the second value. Note that the inventor detected the angle deviation θ in FIG. 6(A) using a resolver.
[0068] 6(A) to 6(C), the focused portions are marked with frames L1, L2, and L3. As a result of detecting the angle deviation Δθ, the first value, and the second value, the inventors discovered that there is a correlation between the angle deviation Δθ and the second value.
[0069] In particular, as shown by the angle deviation Δθ in frame L1 and the second value in frame L3, the timings at which the angle deviation Δθ becomes a maximum value and a minimum value approximately coincide with the timings at which the second value becomes a minimum value and a maximum value, respectively. Therefore, the motor drive device 400 of this embodiment can calculate the second value for reducing the angle deviation Δθ based on the second value.
[0070] Fig. 7 is a diagram for explaining the initial control in a situation different from Fig. 3 and Fig. 4. Fig. 7(A) shows a case where the origin of rotor 110A and initial designated position 40 are separated by 180 degrees (i.e., Δθ is 180 degrees). In this case, rotor 110A does not rotate even if a magnetic field is generated at initial designated position 40. Therefore, the angular deviation Δθ does not change (see Fig. 7(B)).
[0071] Therefore, in this embodiment, the control unit 310 executes a change control to gradually increase the angular velocity ωc (i.e., angle θ3) in FIG. 2 over time. This change control can change the designated position 40, and the angle shift Δθ can be set to an angle other than 180 degrees. As a result, the N pole of the rotor 110A can be attracted to the changed designated position 40 (S pole). Therefore, even if the angle shift Δθ is 180 degrees, the control unit 310 executes this change control to rotate the rotor 110A. Therefore, the motor drive device 400 can position the origin of the rotor 110A at the designated position 40.
[0072] [About PID control] As described above, the PID unit 366 executes the PID control. By the PID unit 366 executing the PID control, it is possible to more appropriately bring the second value closer to zero.
[0073] However, in general, noise that affects the phase of the d-axis current and the phase of the q-axis current may be included in the target signal for which the D control is performed. In this case, the differential term due to the D control often deteriorates the robustness of the control device 300. In consideration of this deterioration in robustness, a configuration may be considered in which the D control is not performed but the PI control is performed. However, such PI control may not be able to appropriately bring the second value closer to zero.
[0074] Fig. 8 is a diagram for explaining that the D control deteriorates robustness. Equation (A) in Fig. 8 is an equation for differentiation by the D control when the target signal for which the D control is executed does not contain noise. In the equation in Fig. 8(A), "x(t)" indicates the target signal for which the D control is executed, and "T" indicates the sampling period (control period) of the control device 300 (PID unit 366).
[0075] Depending on the performance of CPU 302 (see FIG. 1) of motor drive device 400, PID control may be performed in a first sampling period and in a second sampling period. The first sampling period is period T designed for control device 300. The second sampling period is period T designed with error Te added. Such a mixture of the first sampling period and the second sampling period is referred to as "period variation."
[0076] Equation (B) in Figure 8 is an equation for differentiation by D control when the error signal Err(t) is added to the target signal and periodic variation occurs. Equation (C) is an expansion of equation (B).
[0077] As shown in part D1 of formula (C), the signal after differentiation contains periodic variations. Furthermore, as shown in part D2, the signal after differentiation contains two noise signals, xe(t) and xe(tT), which deteriorates the robustness described above.
[0078] In contrast, the target signal of the PID control executed by the PID unit 366 in this embodiment corresponds to the second value calculated by integrating the first value by the integrator 364. In general, even if the signal contains the above-mentioned noise, the noise is suppressed by executing the integration process. Therefore, the PID unit 366 can execute the PID control on the signal in which the noise has been suppressed, and can appropriately bring the second value closer to zero while suppressing deterioration of robustness.
[0079] [flowchart] Fig. 9 is a flowchart showing the initial control process of motor drive device 400. Fig. 9 starts when motor drive device 400 receives the above-mentioned start signal C. Motor drive device 400 also executes the process of Fig. 9 for each sampling period T. That is, the process of Fig. 9 is repeated from when motor drive device 400 receives start signal C until a termination condition indicated in step S12 described below is satisfied.
[0080] First, in step S2, motor drive device 400 increases angle θ3 by a predetermined value. The process in step S2 corresponds to the change control described above. Next, in step S4, motor drive device 400 calculates a value (first value) based on phase shift Δp using equation (3) above.
[0081] Next, in step S6, motor driving device 400 calculates a second value by time integrating the first value. This time integration is time integration in the above-mentioned sampling period. Step S6 is a process of calculating the sum of the second values from the time when start signal C is received. That is, in step S6, motor driving device 400 adds the second value calculated this time to the sum of the second values calculated in the previous step S6.
[0082] Next, in step S8, motor drive device 400 calculates θ2 (third value) by executing PID control on the second value calculated in step S6. Next, in step S10, motor drive device 400 outputs angle θ1 (θ2+θ3) to coordinate conversion unit 250 and coordinate conversion unit 320. Next, in step S12, motor drive device 400 determines whether or not a predetermined period has elapsed since the start of initial control. The predetermined period is, for example, 200 ms. If YES is determined in step S12, initial control ends (the above-mentioned initial control flag is cleared), and the processing in FIG. 9 ends.
[0083] On the other hand, if the determination in step S12 is NO, the initial control flag remains set and the process in Fig. 9 ends. In other words, if the determination in step S12 is NO, the initial control for the next sampling period is executed.
[0084] [Simulation results] 10 is a diagram showing the results of a simulation of motor drive device 400 of this embodiment. Motor drive device 400 of this embodiment is compared with a motor drive device of a comparative example. The motor drive device of the comparative example is a device that executes the change control described above but does not have correction calculation unit 360. In this simulation, a resolver was provided in motor drive device 400 of this embodiment and the motor drive device of the comparative example to detect the actual angle of rotor 110A.
[0085] The horizontal axis in Figures 10(A) to 10(C) represents time, the vertical axis in Figures 10(A) and 10(B) represents electrical angle, and Figure 10(C) represents the angle deviation Δθ.
[0086] Fig. 10(A) is a diagram showing the simulation results of the motor drive device of the comparative example. In Fig. 10(A), the angle θ1 (=θ3) is shown by a dashed line, and the actual rotation angle of the rotor 110A of the comparative example is shown by a solid line. As shown in Fig. 10(A), in the motor drive device of the comparative example, the angle θ3 is shown to be approaching the actual angle.
[0087] Fig. 10(B) is a diagram showing the simulation results of the motor drive device 400 of this embodiment. In Fig. 10(B), the angle θ1 (=θ2+θ3) is shown by a solid line, and the actual rotation angle of the rotor 110A is shown by a dashed line. In addition, the angle θ3 is shown by a dashed line. As shown in Fig. 10(B), in the motor drive device 400 of this embodiment, it is shown that the angle θ1 is approaching the actual angle.
[0088] FIG. 10C shows a comparison result between the motor drive device of the comparative example and the motor drive device 400 of the present embodiment. The angle deviation Δθ of the motor drive device 400 of the present embodiment is shown by a solid line, and the angle deviation Δθ of the motor drive device of the comparative example is shown by a dashed line. As shown in FIG. 10C, the motor drive device 400 of the present embodiment has a smaller angle deviation Δθ earlier than the motor drive device of the comparative example. In other words, the motor drive device 400 of the present embodiment has a shorter time from when the initial control is started until the rotational position of the rotor 110A reaches the designated position than the motor drive device of the comparative example.
[0089] [Functions and Effects of the Motor Drive Device of the Present Embodiment] As described above with reference to FIG. 5 and FIG. 6, the motor driving device 400 of this embodiment calculates a correlation value (second value) by integrating a value (first value) based on the d-axis current and the q-axis current. Then, the motor driving device 400 executes initial control for matching the rotational position of the rotor 110A with the designated position 40, based on the correlation value. Specifically, the motor driving device 400 executes initial control using a command value based on the correlation value. In this way, the motor driving device 400 executes initial control using a correlation value that is correlated with the angle deviation Δθ, and therefore the time until the rotational position of the rotor 110A becomes the designated position can be shortened.
[0090] In addition, in a sensorless configuration, a method of using harmonic signal superposition is available as a method of improving the estimation accuracy of the rotor rotational position. However, harmonic signal superposition cannot be used in a motor that employs an SPM (surface permanent magnetic). With the motor drive device 400 of this embodiment, initial control can be performed without using harmonic signal superposition.
[0091] Furthermore, motor drive device 400 performs position control by executing a predetermined control for making the second value zero. Therefore, motor drive device 400 can make the difference amount zero by the predetermined control.
[0092] Moreover, the predetermined control is a PID control for the correlation value (see FIG. 5). Therefore, motor driving device 400 can calculate the third value by a relatively simple control.
[0093] Furthermore, motor driving device 400 calculates the arctangent value of the d-axis current value and the q-axis current value as the first value (see FIG. 5). Therefore, motor driving device 400 can calculate the first value through relatively simple control.
[0094] Furthermore, as shown in step S12, when a predetermined period has elapsed since the start of the initial control, motor drive device 400 ends the initial control. Therefore, motor drive device 400 can determine whether or not to end the initial control through relatively simple control.
[0095] Furthermore, motor driving device 400 executes the above-described change control for gradually changing designated position 40 over time (step S2 in FIG. 9). Therefore, motor driving device 400 can properly execute initial control even if the value of Δθ is 180 degrees as shown in FIG.
[0096] 3, the rotor 110A is configured with a two-pole magnet. Therefore, while the configuration of the rotor 110A can be simplified, there is a tendency for an angle deviation Δθ to easily occur. However, according to the motor drive device 400 of this embodiment, even if the rotor 110A is a two-pole magnet that causes a large angle deviation Δθ, it is possible to properly execute initial control.
[0097] [Other embodiments] (1) In the above embodiment, motor drive device 400 is configured to calculate the arctangent value of the d-axis current value and the q-axis current value as the first value (a value based on the phase shift Δp between the phases of the d-axis current and the q-axis current) as described in Fig. 5. However, the first value may be calculated by other methods.
[0098] Fig. 11 is a functional block diagram of a correction calculation unit 360A of a motor drive device 400 of this modified example. The correction calculation unit 360A in Fig. 11 is a calculation unit in which the arc tangent unit 362 of the correction calculation unit 360 in Fig. 5 is replaced with a division unit 362A. The division unit 362A calculates a first value by calculating a division value between the value of the d-axis current and the value of the q-axis current, as shown in the following equation (4).
[0099] 1st value = Iq / Id (4) Even with this configuration, motor drive device 400 can calculate the first value without performing complex calculations such as trigonometric functions used to calculate the phase. As a modified example, the right side of equation (4) may be Id / Iq.
[0100] (2) In the above embodiment, the termination condition for the initial control has been described as being that a predetermined period of time has elapsed since the start of the initial control (see step S12 in FIG. 9). However, the termination condition may be another condition. FIG. 12 is a flowchart showing the process of motor drive device 400 of this modified example.
[0101] The flowchart in Fig. 12 is a flowchart in which step S12 in Fig. 9 is replaced with step S12A. The termination condition of step S12A is that the amount of change in the second value is less than a threshold value. Hereinafter, the control performed by the control device 300 in one sampling period is also referred to as "period control." The amount of change is the difference value between the second value calculated in the previous period control and the second value calculated in the current period control.
[0102] As shown in Figures 6(A) and 6(C), there is a correlation between the reduction in the angle deviation Δθ and the amount of change in the second value. This modified example is an example based on this correlation. Even with this configuration, motor drive device 400 can determine whether or not position control has ended with a relatively simple configuration.
[0103] (3) The above-described motor drive device 400 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 shipping, an angle deviation Δθ may occur. Even in such a case, the above-described position control of the motor drive device 400 can reduce the angle deviation Δθ to zero.
[0104] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present disclosure is defined by the claims, not by the description of the embodiments described above, and is intended to include all modifications within the meaning and scope of the claims. [Explanation of symbols]
[0105] 22 neutral point, 24V, 24W current sensor, 40 specified position, 110 motor, 110A rotor, 150 battery, 210 inverter, 240 PI calculation unit, 250, 320 coordinate conversion unit, 260 PWM unit, 300 control device, 304 memory, 310 control unit, 311, 312 subtraction unit, 330 estimation unit, 340 angle calculation unit, 350 switch unit, 360, 360A correction calculation unit, 362 arc tangent unit, 362A tangent unit, 364 integration unit, 366 PID unit, 370 addition unit, 400 motor drive device, 500 electrical system.
Claims
1. a motor having a rotor and a stator around which three-phase coils are wound; an inverter that drives the motor; A control device for controlling the inverter, The control device includes: A current flowing through the motor is coordinate-transformed into a d-axis current and a q-axis current; calculating a correlation value that correlates with a difference between the rotor position and a specified position by integrating a value based on the d-axis current and the q-axis current; a motor drive device which executes position control based on the correlation value to make the rotational position of the rotor coincide with the designated position.
2. The motor drive device according to claim 1 , wherein the control device performs the position control by executing a predetermined control for making the correlation value zero.
3. The motor drive device according to claim 2 , wherein the predetermined control is a PID control for the correlation value.
4. 4. The motor drive device according to claim 1, wherein the value based on the d-axis current and the q-axis current is an arctangent value of the value of the d-axis current and the value of the q-axis current.
5. 4. The motor drive device according to claim 1, wherein the value based on the d-axis current and the q-axis current is a division value of the value of the d-axis current and the value of the q-axis current.
6. 4. The motor drive device according to claim 1, wherein the control device changes the designated position in accordance with the passage of time.
7. 4. The motor drive device according to claim 1, wherein the control device terminates the position control when a predetermined period has elapsed since the start of the position control.
8. 4. The motor drive device according to claim 1, wherein the control device terminates the position control when an amount of change in the correlation value is less than a threshold value.
9. 4. The motor drive device according to claim 1, wherein the rotor is formed of a two-pole magnet.
Citation Information
Patent Citations
Device and method for estimating magnetic pole position of synchronous electric motor
JP2008206330A
Controller of power steering device
JP2019050684A
Power conversion device
JP2022175990A
Power Conversion Device
US20240097589A1
Motor apparatus and control method therefor
JP2002369572A
