Motor drive device

By converting the current coordinates into d-axis and q-axis currents in the motor drive device and using the relevant values ​​for position control, the problem of long rotor position setting time is solved and more efficient position control is achieved.

CN118739950APending Publication Date: 2024-10-01TOYOTA INDUSTRIES CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410361410.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-29
Filing Date
2024-03-27
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When setting the position of the rotor to a designated position in the existing motor drive device, there is a problem that the angle deviation is large and the time is extremely long.

Method used

By converting the current coordinates of the motor into d-axis current and q-axis current, and integrating based on these values, the correlation value related to the difference between the rotor position and the specified position is calculated, and the correlation value is used for position control to shorten the rotor position. The time it takes to reach the specified location.

Benefits of technology

It effectively shortens the time for the rotor position to reach the designated position, improves the accuracy and efficiency of position control, and avoids the time extension caused by large angle deviation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118739950A_ABST
    Figure CN118739950A_ABST
Patent Text Reader

Abstract

The invention provides a motor driving device. A motor drive device (400) is provided with: a motor (110) having a rotor (110A); and a control device (300) that controls the motor (110). The control device (300) calculates a first value on the basis of a d-axis current and a q-axis current of the motor (110). The control device (300) calculates a second value by integrating the first value. The control device (300) calculates the third value by executing a predetermined control for setting the second value to zero. The control device (300) executes position control for matching the rotational position of the rotor with the specified position on the basis of the third value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a motor drive device. Background Art

[0002] Conventionally, there are known motor drive devices for controlling a motor having a rotor. For example, the motor drive device disclosed in Japanese Patent Publication No. 2002-369572 estimates the position of the rotor in a sensorless manner. When starting to control the motor, the motor drive device performs an initial operation to set the position of the rotor to a given initial position (specified position).

[0003] When the above-mentioned initial operation is performed, the position of the rotor may deviate greatly from the specified position by an angle. In this case, a problem occurs in that it takes a long time until the position of the rotor reaches the specified position. Summary of the invention

[0004] The present disclosure has been made to solve such a problem, and an object of the present disclosure is to reduce the time required until the position of the rotor reaches a specified position.

[0005] (1) The motor drive device disclosed in the present invention includes a motor, an inverter, and a control device. The motor has a rotor and a stator wound with a three-phase coil. The inverter drives the motor. The control device controls the inverter. The control device transforms the coordinates of the current flowing through the motor into a d-axis current and a q-axis current. The control device calculates a correlation value related to the difference between the position of the rotor and a specified position by integrating the values ​​based on the d-axis current and the q-axis current. The control device performs position control for making the position of the rotor consistent with the specified position based on the correlation value.

[0006] According to such a configuration, the motor drive device performs position control based on the correlation value related to the difference between the position of the rotor and the designated position. Therefore, the motor drive device can shorten the time until the position of the rotor reaches the designated position.

[0007] The foregoing and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 It is a functional block diagram of the electrical system.

[0009] Figure 2 It is a functional block diagram of the control device.

[0010] Figure 3 It is a diagram for explaining initial control.

[0011] Figure 4It is a diagram for explaining initial control.

[0012] Figure 5 This is a functional block diagram of the correction calculation unit.

[0013] Figure 6 This is an example of experimental results.

[0014] Figure 7 A diagram used to explain initial control.

[0015] Figure 8 This is a diagram for explaining robustness, etc.

[0016] Fig. 9 4 is a flowchart showing the process of initial control of the motor drive device 400 .

[0017] Fig.10 It is a graph showing the simulation results.

[0018] Fig.11 This is a functional block diagram of a correction calculation unit according to a modified example.

[0019] Fig.12 1 is a flowchart showing the processing of the motor drive device according to the modification. DETAILED DESCRIPTION

[0020] Hereinafter, the embodiment of the present disclosure will be described in detail with reference to the accompanying drawings. In addition, the same reference numerals are attached to the same or corresponding parts in the drawings, and their description will not be repeated.

[0021] Figure 1 2 is a block diagram of an electric system 500. The electric system 500 is mounted on, for example, an electric vehicle. The electric system 500 includes a battery 150, an SMR (System Main Relay) 230, an inverter 210, a motor 110, and a control device 300. The control device 300 is also called a calculation circuit.

[0022] The motor 110 is a three-phase AC rotating electric machine typically composed of a permanent magnet motor. The motor 110 has a U-phase coil, a V-phase coil, and a W-phase coil connected in a star configuration as a stator winding. One end of each phase coil is connected to each other at a neutral point 22. The other end of each phase coil is connected to a connection point (not shown) of a switching element of each phase arm of the inverter 210.

[0023] The positive electrode and the negative electrode 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).

[0024] The inverter 210 drives the motor 110. The inverter 210 is composed of a three-phase inverter. When the electric vehicle is running, the inverter 210 controls the current or voltage of each phase coil of the motor 110 according to the action command value (representatively, the torque value Tr described later) set to generate the driving force required during the running (vehicle driving torque, power generation torque, etc.) to operate the motor 110.

[0025] The current sensor 24V detects the V-phase current Iv flowing through the motor 110. The current sensor 24W detects the W-phase current Iw flowing through the motor 110. The V-phase current Iv and the W-phase current Iw are input to the coordinate conversion unit 320 (see Figure 2 ). In addition, since the sum of the instantaneous values ​​of the three-phase currents Iu, Iv, and Iw is zero, Figure 1 As shown, it is sufficient to configure the motor current to detect two phases (for example, V-phase current Iv and W-phase current Iw). Figure 2 The U-phase current Iu is not recorded.

[0026] The control device 300 controls the SMR 230 and the inverter 210, etc. In addition, the control device 300 has a CPU (Central Processing Unit) 302 and a memory 304 as such components. The memory 304 has, for example, a ROM (Read Only Memory) and a RAM (Random Access Memory). The program executed by the CPU 302 is stored in the ROM. The RAM temporarily stores data (for example, voltage characteristic quantities described later) generated by the execution of the program in the CPU 302. In addition, the motor drive device 400 includes a motor 110 and the control device 300. In the motor drive device 400 of the present embodiment, a sensorless structure is adopted in which there is no sensor (revolving transformer) for detecting the rotational position of the motor 110.

[0027] [Functional block diagram of control device]

[0028] Figure 2 300 is a functional block diagram of the control device 300, etc. Figure 2 In the example, the control device 300 includes a PI operation unit 240, a coordinate transformation unit 250, a PWM (Pulse Width Modulation) unit 260, a control unit 310, a coordinate transformation unit 320, an estimation unit 330, an angle operation unit 340, a switch unit 350, and a correction operation unit 360. The motor 110 includes a rotor 110A and a stator 110B. The rotor 110A corresponds to the "rotor" of the present disclosure. The stator 110B is composed of a three-phase coil ( Figure 1 It is composed of a U-phase coil, a V-phase coil and a W-phase coil).

[0029] The control device 300 can communicate with a host controller (not shown). The host controller sends a start signal C to the control device 300 when the electrical system 500 is started. In addition, the host controller sends a control signal D when the initial control is completed. In addition, the host controller can be a device different from the control device 300, or can be integrated with the control device 300. The start signal C is a signal for performing initial control on the control device 300. The control signal D is a signal for performing normal control on the control device 300.

[0030] The control device 300 executes initial control when receiving the start signal C. The initial control is a control for making the rotation position of the motor 110 (rotating member 110A) coincide with a specified position (see the following description). Figure 3 The designated position is a position designated by the control device 300. The initial control corresponds to the "position control" of the present disclosure.

[0031] When the control device 300 receives the control signal D, it executes normal control. Normal control is, for example, control during driving of an electric vehicle equipped with the electrical system 500. In addition, from the time when the execution of the initial control starts, the initial control flag is saved in a given storage area (for example, Figure 1 The initial control flag is a flag indicating that the initial control is being executed. And, when the initial control is completed, the initial control flag is cleared. The control device 300 of this embodiment executes the initial control in each given cycle (sampling cycle described later). In addition, the control device 300 executes normal control in each given cycle.

[0032] The switch unit 350 can be switched to the first state or the second state under the control of the control unit 310. The first state is a state in which the angle θ1 output from the adding unit 370 is output as the angle θ5 to the coordinate transformation unit 250 and the coordinate transformation unit 320. The second state is a state in which the angle θ4 output from the estimating unit 330 is output as the angle θ5 to the coordinate transformation unit 250 and the coordinate transformation unit 320. Figure 2 In the example of , the first state is shown.

[0033] The control unit 310 performs initial control in a state where the state of the switch unit 350 is set to the first state. In addition, the control unit 310 performs normal control in a state where the state of the switch unit 350 is set to the second state.

[0034] [Normal Control]

[0035] Next, the normal control is described. The control signal D includes, for example, a torque value Tr, and the control device 300 performs control to make the motor 110 generate a torque of the torque value Tr as the normal control. The control unit 310 generates the d-axis current command value Idc and the q-axis current command value Iqc required for the motor 110 to generate a torque corresponding to the torque value Tr according to a pre-made table or the like. In addition, the d-axis current is a current generated by a magnetic field in a direction parallel to the direction of the magnetic field generated by the rotor 110A. In addition, the q-axis current is a current orthogonal to the d-axis current.

[0036] The coordinate transformation unit 320 transforms the V-phase current Iv and the W-phase current Iw into the d-axis current Id and the q-axis current Iq of the command axis coordinate dc-qc by using the coordinate transformation formula (3-phase → 2-phase) of the angle θ5 output from the switch unit 350. That is, the coordinate transformation unit 320 transforms the current coordinates flowing through the motor 110 into the d-axis current and the q-axis current. The coordinate transformation formula of the coordinate transformation unit 320 is, for example, formula (1). In addition, in formula (1) and formula (2) described later, "u" of the current Iu, "w" of the current Iw, and "5" of θ5 are represented by subscripts.

[0037]

Mathematical formula 1

[0038]

[0039] The V-phase current Iv is detected by the current sensor 24V. In addition, 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 the three-phase AC coordinates as stationary coordinates. The d-axis current Id and the q-axis current Iq are output to the subtraction unit 311 and the subtraction unit 312, respectively. In addition, the d-axis current Id and the q-axis current Iq are output to the estimation unit 330 and the correction operation unit 360.

[0040] The estimation unit 330 estimates the 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 .

[0041] Subtraction unit 311 calculates a deviation ΔId (ΔId=Idc-Id) between the d-axis current value and the command value of the d-axis current, and outputs ΔId to PI calculation unit 240. Subtraction unit 312 calculates a deviation ΔIq (ΔIq=Iqc-Iq) between the q-axis current value and the command value of the q-axis current, and outputs ΔIq to PI calculation unit 240.

[0042] The PI operation unit 240 performs a PI (proportional integral) operation based on a given gain on the d-axis current deviation ΔId and the q-axis current deviation ΔIq to obtain a control deviation. The PI operation unit 240 calculates the command values ​​of the applied voltage in each axis direction of the command axis coordinate dc-qc, that is, the d-axis voltage command value Vdc and the q-axis voltage command value Vqc, according to the control deviation. The d-axis voltage command value Vdc is the command value of the d-axis. The q-axis voltage command value Vqc is the command value of the q-axis. In this way, the PI operation unit 240 performs feedback control.

[0043] The coordinate conversion unit 250 converts the d-axis voltage command value Vdc and the q-axis voltage command value Vqc into the respective phase voltage command values ​​Vuc, Vvc, and Vwc of the U phase, the V phase, and the W phase on the three-phase AC coordinates as the stationary coordinates by using the coordinate conversion formula (2-phase → 3-phase) of the 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).

[0044]

Mathematical formula 2

[0045]

[0046] The PWM unit 260 generates a switching control signal based on the comparison between the voltage command values ​​Vuc, Vvc, and Vwc of each phase and a given carrier, and outputs the signal to the inverter 210. The inverter 210 performs switching control according to the switching control signal. The 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 by the switching control.

[0047] In this way, in normal control, a closed loop is formed to control the motor current to the current command value (Idc, Iqc) corresponding to the torque value Tr. Through this closed loop, the output torque of the motor 110 is controlled according to the torque value Tr. That is, the control unit 310 drives the motor 110 (rotates the rotor 110A) based on the control signal (in the present embodiment, the current command value (Idc, Iqc)).

[0048] [For initial control]

[0049] Next, the initial control will be described. As described above, the initial control is a control for making the rotation position of the motor 110 coincide with a designated position (initial position). Figure 3 is a diagram used to explain the initial control. Figure 3 In the example of (A), the γ axis and the δ axis are shown as plane coordinates. The rotor 110A is described in the 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.

[0050] 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 given value. This makes it possible to generate a magnetic field at the designated position 40 without causing the motor 110 to generate torque ( Figure 4 By generating such a magnetic field, the control unit 310 rotates the rotating member 110A so that the origin C of the rotating member 110A is located at a designated position 40 (command angle) designated by the control unit 310. The origin C is a given position of the rotating member 110A.

[0051] The designated position 40 becomes a position corresponding to the angle θ1 (angle θ5). Angle θ1 is also called a command angle. That is, the control unit 310 can also change the designated position 40 by changing the angle θ1 while setting the q-axis current to zero and the d-axis current to a given value. In addition, as a modified example, the magnetic field generated at the designated position 40 can also be set to the N pole.

[0052] exist Figure 3 In (A), an example is shown in which the initial designated position 40 is 0 degrees on the γ axis (ie, angle θ1 = 0 degrees). Figure 3 In (A), an angle deviation Δθ is shown. The angle deviation Δθ is the deviation between the specified position 40 and the actual rotation position of the motor 110. The angle deviation Δθ corresponds to the "difference amount" of the present disclosure. Since the N pole of the rotating member 110A is pulled to the S pole of the specified position 40, Δθ gradually becomes smaller.

[0053] Figure 3 (B) is a graph showing the relationship between the time t elapsed from the time of initial control and the angle deviation Δθ. Figure 3 As shown in (B), corresponding to the passage of time t, the angle deviation Δθ becomes smaller while vibrating. Furthermore, it is preferred to end the initial control when the angle deviation Δθ belongs to a predetermined reference range. The reference range is a range shown by 0±M. M is a predetermined margin value. The control unit 310 performs normal control after the angle deviation Δθ belongs to the reference range. Therefore, the motor drive device 400 can perform normal control in a state where the angle deviation between the rotation angle of the motor 110 identified by the motor drive device 400 (the estimated angle of the motor drive device 400) and the actual rotation angle of the motor 110 is suppressed.

[0054] Figure 4 1 shows a case where the angle deviation Δθ is large when the initial control is performed. Figure 4As shown, when the angle deviation Δθ is large, the time required from the execution of the initial control until the angle deviation Δθ falls within the reference range becomes extremely large. In addition, if the initial control is switched to the normal control before the angle deviation Δθ falls within the reference range, the motor 110 may become out of step, etc.

[0055] Therefore, the motor drive device 400 of the present embodiment performs initial control that can reduce the time until the rotational position of the motor 110 reaches the specified position even when the angle deviation Δθ is large. The initial control of the present embodiment will be described in detail below.

[0056] Return the description Figure 2 . As described above, in the initial control, the state of the switch unit 350 becomes the first state in which the angle θ1 from the addition unit 370 is output to the coordinate transformation unit 320. In the initial control, the control unit 310 outputs the angular velocity ωc as the command value of the angular velocity of the rotating member 110A of the angle calculation unit 340 to the angle calculation unit 340. As described later, the control unit 310 increases the angular velocity ωc as time passes. In the initial control, first, the control unit 310 sets the angle θ1 as the initial angle, so that the initial designated position 40 generates a magnetic field of the S pole. The initial angle is set to 0 degrees. Thus, the control unit 310 can, for example, Figure 3 The designated location 40 shown generates a magnetic field.

[0057] The angle calculation unit 340 outputs the angle θ3 by performing a predetermined calculation. The predetermined calculation includes, for example, a calculation of integrating the angular velocity ωc. The angle θ3 is output to the adding unit 370.

[0058] The correction calculation unit 360 calculates a correction value (angle θ2) corresponding to the angle deviation Δθ. As described above, the angle deviation Δθ is the deviation between the specified position 40 and the actual rotation position of the motor 110. In addition, as described above, the motor drive device 400 does not detect the actual rotation position of the motor 110 because it does not have a resolver.

[0059] Figure 5 360 is a functional block diagram of the correction operation unit 360. The correction operation unit 360 includes an inverse tangent unit 362, an integrating unit 364, and a PID unit 366. In addition, the control device 300 generates a magnetic field at the initial designated position 40, thereby detecting the V-phase current Iv through the current sensor 24V and detecting the W-phase current Iw through the current sensor 24W. These V-phase current Iv and W-phase current Iw are input to the inverse tangent unit 362. The inverse tangent unit 362 calculates the first value by calculating the inverse tangent of the value of the d-axis current Id and the value of the q-axis current Iq as shown in the following formula (3).

[0060] 1st value = arctan(Iq / Id) (3)

[0061] The first value corresponds to the "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 a "value based on the phase deviation Δp of the phase of the d-axis current and the phase of the q-axis current". The first value approximates the phase deviation Δp. The first value is output to the integration unit 364. In addition, as a modified example, "Iq / Id" in equation (3) can be set to "Id / Iq".

[0062] The integrator 364 calculates the second value by performing an integration process on the first value. The integration process is a time integration. The second value corresponds to the "correlation value related to the angle deviation Δθ". In other words, the second value corresponds to the "correlation value related to the difference between the position of the rotor 110A and the specified position 40".

[0063] 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 "given control" in the present disclosure.

[0064] Here, generally, PID control is performed on a deviation which is a difference between an actual value and a target value. In the present embodiment, the second value corresponds to the actual value. In addition, the second value is a value based on the angle deviation Δθ, and in the present embodiment, the second value is set to zero as a target. Therefore, in the present embodiment, zero corresponds to the target value. Therefore, since the deviation is the difference between the second value and zero, it becomes the second value itself. Therefore, the second value as the deviation is input to the PID unit 366.

[0065] The PID unit 366 calculates the third value by performing PID control on the second value. The third value corresponds to the angle θ2. The third value (angle θ2) calculated by the PID unit 366 is output to the adder 370.

[0066] The adder 370 outputs the angle θ1, which is the sum of the angle θ2 and the angle θ3, to the switch 350. The angle θ1 is output from the switch 350 to the coordinate conversion unit 250 and the coordinate conversion unit 320 as the angle θ5. The coordinate conversion unit 320 and the coordinate conversion unit 250 perform an angle conversion based on the angle θ1, so that the designated position 40 can be changed in a direction in which the angle deviation Δθ becomes smaller. Therefore, the motor drive device 400 can reduce the time until the rotation position of the rotor 110A reaches the designated position 40.

[0067] [About the second value]

[0068] Next, the reason why the correction calculation unit 360 of the present embodiment uses the second value will be described. Figure 6 This is an example of the result of the experiment conducted by the inventor. Figure 6 (A)~ Figure 6 The horizontal axis of (C) represents time. Figure 6 The vertical axis of (A) is the above-mentioned angular deviation Δθ. Figure 6 The vertical axis of (B) is the first value. Figure 6 The vertical axis of (C) is the second value. Figure 6 The inventors used a resolver to detect the angular deviation Δθ of (A).

[0069] exist Figure 6 In each of (A) to (C), frame L1, frame L2, and frame L3 are added to the portion of interest. The inventors detected the angle deviation Δθ, the first value, and the second value and found that there is a correlation between the angle deviation Δθ and the second value.

[0070] In particular, as shown by the angle deviation Δθ in the frame L1 and the second value in the frame L3, the timing when the angle deviation Δθ reaches a maximum value and the timing when it reaches a minimum value are roughly consistent with the timing when the second value reaches a minimum value and the timing when it reaches a maximum value, respectively. Therefore, the motor drive device 400 of the present embodiment can calculate the second value for reducing the angle deviation Δθ based on the second value.

[0071] Figure 7 It is used to illustrate and Figure 3 as well as Figure 4 Figure 2 shows the initial control diagram under different conditions. Figure 7 In (A), the case where the origin of the rotating member 110A and the initial designated position 40 are separated by 180 degrees (i.e., the case where Δθ is 180 degrees) is shown. In this case, even if a magnetic field is generated at the initial designated position 40, the rotating member 110A does not rotate. Therefore, the angle deviation Δθ does not change (refer to Figure 7 (B)).

[0072] Therefore, in this embodiment, the control unit 310 executes Figure 2 The angular velocity ωc (i.e., angle θ3) is controlled to gradually increase with the passage of time. Through this change control, the designated position 40 can be changed, and the angle deviation Δθ can be set to an angle different from 180 degrees. As a result, the N pole of the rotating member 110A can be pulled to the changed designated position 40 (S pole). Therefore, even if the angle deviation Δθ is 180 degrees, the change control can be performed by the control unit 310 to rotate the rotating member 110A. Therefore, the motor drive device 400 can make the origin of the rotating member 110A located at the designated position 40.

[0073] [About PID control]

[0074] As described above, PID unit 366 performs PID control. By PID unit 366 performing PID control, the second value can be brought closer to zero more appropriately.

[0075] However, in general, noise added to the phase of the d-axis current and the phase of the q-axis current is sometimes included in the target signal for performing D control. In this case, the differential term based on the D control often deteriorates the robustness of the control device 300. Concerned about the deterioration of this robustness, a structure in which PI control is performed instead of D control is considered. However, in such PI control, it is sometimes impossible to appropriately make the second value close to zero.

[0076] Figure 8 This is a diagram for explaining that D control deteriorates robustness. Figure 8 The formula (A) is a formula based on the differentiation of D control when the target signal for performing D control does not contain noise. Figure 8 In the formula (A), "x(t)" represents a target signal for executing D control, and "T" represents a sampling period (control period) of the control device 300 (PID unit 366).

[0077] However, according to the CPU 302 (refer to Figure 1 ), sometimes there is a mixture of the case where PID control is performed in the first sampling period and the case where PID control is performed in the second sampling period. The first sampling period is the designed period T of the control device 300. The second sampling period is a period obtained by taking the error Te into account with respect to the designed period T. In this way, the case where the first sampling period and the second sampling period are mixed is called "period mismatch".

[0078] Figure 8 The formula (B) is a formula for differentiation based on D control when the error signal Err(t) is taken into account for the target signal and a periodic variation occurs. In addition, the formula (C) is a formula obtained by expanding the formula (B).

[0079] As shown in part D1 of equation (C), the differentiated signal contains periodic variations. Furthermore, as shown in part D2, the differentiated signal contains secondary noise signals such as xe(t) and xe(tT), which deteriorates the above-mentioned robustness.

[0080] In contrast, the target signal of the PID control performed by the PID unit 366 of the present embodiment corresponds to the second value calculated by performing the integration process of the first value of the integration unit 364. In general, even if the signal contains the above-mentioned noise, the noise is suppressed by performing the integration process. Therefore, since the PID unit 366 can perform PID control on the signal with suppressed noise, it is possible to appropriately make the second value close to zero while suppressing the degradation of robustness.

[0081] [flow chart]

[0082] Fig. 9 4 is a flowchart showing the process of initial control of the motor drive device 400 . Fig. 9 The motor drive device 400 starts when it receives the above-mentioned start signal C. In addition, the motor drive device 400 executes the above-mentioned sampling period T at each sampling period T. Fig. 9 That is, the process is repeated from the time when the motor drive device 400 receives the start signal C until the end condition shown in step S12 described later is met. Fig. 9 processing.

[0083] First, in step S2, the motor drive device 400 increases the angle θ3 by a given value. The process of step S2 corresponds to the above-mentioned change control. Next, in step S4, the motor drive device 400 calculates a value (first value) based on the phase deviation Δp based on the above-mentioned equation (3).

[0084] Next, in step S6, the motor drive device 400 calculates the second value by time-integrating the first value. The time integration is the time integration at the sampling period. In addition, step S6 is a process of calculating the total value of the second value from the time when the start signal C is received. That is, in step S6, the motor drive device 400 adds the second value calculated this time to the total value of the second value calculated in the previous step S6.

[0085] Next, in step S8, the motor drive device 400 calculates θ2 (the 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 a given period has passed since the start of initial control. The given period is, for example, 200 ms. If it is determined to be "yes" in step S12, the initial control ends (the above-mentioned initial control flag is eliminated), Fig. 9 The processing is finished.

[0086] On the other hand, if the judgment in step S12 is "No", the initial control flag remains. Fig. 9 That is, when it is determined as "No" in step S12, the following initial control of the amount of sampling cycle is performed.

[0087] [Simulation results]

[0088] Fig.10 4 is a diagram showing the simulation result of the motor drive device 400 of the present embodiment. The motor drive device 400 of the present embodiment is compared with the motor drive device of the comparative example. The motor drive device of the comparative example is a device that performs the above-mentioned change control but does not have the correction calculation unit 360. In this simulation, in order to detect the actual angle of the rotating member 110A, the motor drive device 400 of the present embodiment and the motor drive device of the comparative example are equipped with a rotary transformer.

[0089] Fig.10 CA)~ Fig.10 The horizontal axis of (C) represents time. Fig.10 (A) and Fig.10 The vertical axis of (B) represents the electrical angle, Fig.10 (C) represents the above-mentioned angle deviation Δθ.

[0090] Fig.10 (A) is a diagram showing the simulation results of the motor drive device of the comparative example. Fig.10 In (A), the angle θ1 (=θ3) is indicated by a dotted line, and the actual rotation angle of the rotating member 110A of the comparative example is indicated by a solid line. Fig.10 As shown in (A), in the motor drive device of the comparative example, it is temporarily shown that the angle θ3 is close to the actual angle.

[0091] Fig.10 (B) is a diagram showing the simulation results of the motor drive device 400 according to the present embodiment. Fig.10 In (B), the angle θ1 (=θ2+θ3) is indicated by a solid line, and the actual rotation angle of the rotating member 110A is indicated by a dotted line. In addition, the angle θ3 is indicated by a dashed line. Fig.10 As shown in (B), in the motor drive device 400 of the present embodiment, it is shown that the angle θ1 is close to the actual angle.

[0092] Fig.10 (C) is 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 represented by a solid line, and the angle deviation Δθ of the motor drive device of the comparative example is represented by a dotted line. Fig.10As shown in (C), the angle deviation Δθ decreases earlier in the motor drive device 400 of the present embodiment than in the motor drive device of the comparative example. That is, the time from the start of initial control until the rotation position of the rotor 110A reaches the specified position is shortened in the motor drive device 400 of the present embodiment than in the motor drive device of the comparative example.

[0093] [Functions and Effects of the Motor Drive Device of the Present Embodiment]

[0094] Above, such as Figure 5 as well as Figure 6 As described in the examples above, the motor drive device 400 of the present embodiment calculates the correlation value (second value) by integrating the value (first value) based on the d-axis current and the q-axis current. Furthermore, the motor drive device 400 performs initial control for aligning the rotational position of the rotating member 110A with the designated position 40 based on the correlation value. Specifically, the motor drive device 400 performs initial control using a command value based on the correlation value. In this way, since the motor drive device 400 performs initial control using a correlation value that is correlated with the angle deviation Δθ, the time until the rotational position of the rotating member 110A reaches the designated position can be shortened.

[0095] In addition, in a sensorless structure, as a method of improving the estimation accuracy of the rotational position of the rotating part, there is a method of using high-order harmonic signal superposition. However, in a motor using SPM (surface permanent magnetic, surface-mounted permanent magnet), high-order harmonic signal superposition cannot be used. If the motor drive device 400 of this embodiment, initial control can be performed even without using high-order harmonic signal superposition.

[0096] Furthermore, the motor drive device 400 performs position control by executing a given control for setting the second value to zero. Therefore, the motor drive device 400 can set the difference amount to zero through the given control.

[0097] In addition, the given control is the PID control for the relevant value (refer to Figure 5 ). Therefore, the motor drive device 400 can calculate the third value through relatively simple control.

[0098] Furthermore, the motor drive device 400 calculates the arc tangent value of the d-axis current value and the q-axis current value as the first value (see Figure 5 ). Therefore, the motor drive device 400 can calculate the first value through relatively simple control.

[0099] Furthermore, the motor drive device 400 ends the initial control when a predetermined period of time has elapsed since the start of the initial control as shown in step S12. Therefore, the motor drive device 400 can determine whether the initial control has been ended by relatively simple control.

[0100] In addition, the motor driving device 400 performs the above-mentioned change control ( Fig. 9 Step S2). Therefore, even if Figure 7 As shown, the value of Δθ is set to 180 degrees, and the motor drive device 400 can also appropriately perform the initial control.

[0101] In addition, if Figure 3 As shown, the rotor 110A is composed of a two-pole magnet. Therefore, the structure of the rotor 110A can be simply formed, but on the other hand, there is a tendency that the angle deviation Δθ is easily generated. However, according to the motor drive device 400 of this embodiment, even if it is assumed that the rotor 110A as a two-pole magnet with a large angle deviation Δθ is used, the initial control can be appropriately performed.

[0102] [Other embodiments]

[0103] (1) According to the above-mentioned embodiment, the motor drive device 400 is described as follows Figure 5 As described above, the arctangent of the d-axis current and the q-axis current is calculated as the first value (a value based on the phase deviation Δp between the d-axis current and the q-axis current). However, the first value may be calculated by other methods.

[0104] Fig.11 4 is a functional block diagram of a correction calculation unit 360A of the motor drive device 400 according to the present modification. Fig.11 The correction operation unit 360A is to convert Figure 5 The arctangent unit 362 of the correction operation unit 360 is replaced by a division operation unit 362A. The division operation unit 362A calculates the first value by calculating the division value of the d-axis current value and the q-axis current value as shown in the following equation (4).

[0105] 1st value = Iq / Id (4)

[0106] In such a configuration, the motor drive device 400 can also calculate the first value without performing complicated calculations such as trigonometric functions used for calculating the phase. In addition, as a modified example, the right side of the equation (4) may be set to Id / Iq.

[0107] (2) The above-described embodiment has been described in which the termination condition of the initial control is a condition that a predetermined period has elapsed since the start of the initial control (see Fig. 9 Step S12). However, the end condition may also be set to other conditions. Fig.12 1 is a flowchart showing the processing of motor drive device 400 according to this modification.

[0108] Fig.12 The flowchart is Fig. 9 The flowchart of step S12 is replaced by step S12A. The termination condition of step S12A is the condition that the change amount of the second value is less than the threshold value. Hereinafter, the control performed by the control device 300 with one sampling cycle is also referred to as "cycle control". The change amount is the difference between the second value calculated by the previous cycle control and the second value calculated by the current cycle control.

[0109] like Figure 6 (A) and Figure 6 As shown in (C), the decrease in the angle deviation Δθ is correlated with the change in the second value. This modification example is based on this correlation example. In such a configuration, the motor drive device 400 can also determine whether the position control has been terminated with a relatively simple configuration.

[0110] (3) The above-mentioned motor drive device 400 is described as having a structure without a rotary transformer. However, the motor drive device 400 may also have a rotary transformer. For example, before the motor drive device 400 is shipped, even if the motor drive device 400 is assumed to have a rotary transformer, an angle deviation Δθ may occur. In such a case, the angle deviation Δθ can be set to zero by the above-mentioned position control of the motor drive device 400.

[0111] [Note]

[0112] (1) The motor drive device disclosed in the present invention includes a motor, an inverter, and a control device. The motor has a rotor and a stator wound with a three-phase coil. The inverter drives the motor. The control device controls the inverter. The control device transforms the coordinates of the current flowing through the motor into a d-axis current and a q-axis current. The control device calculates a correlation value related to the difference between the position of the rotor and a specified position by integrating the values ​​based on the d-axis current and the q-axis current. The control device performs position control for making the position of the rotor consistent with the specified position based on the correlation value.

[0113] According to such a configuration, the motor drive device performs position control based on the correlation value related to the difference between the position of the rotor and the designated position. Therefore, the motor drive device can shorten the time until the position of the rotor reaches the designated position.

[0114] (2) In the motor drive device described in (1), the control device performs position control by executing a given control for setting the correlation value to zero.

[0115] According to such a configuration, the difference amount can be set to zero through a given control.

[0116] (3) In the motor drive device described in (1) or (2), the given control is PID control for the correlation value.

[0117] According to such a configuration, the difference amount can be set to zero through relatively simple calculation.

[0118] (4) In the motor drive device described in 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 the d-axis current value and the q-axis current value.

[0119] According to such a configuration, the value based on the d-axis current and the q-axis current can be calculated with a relatively simple configuration.

[0120] (5) In the motor drive device described in any one of (1) to (3), 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.

[0121] According to such a configuration, the values ​​based on the d-axis current and the q-axis current can be calculated without performing complicated calculations such as calculations of trigonometric functions.

[0122] (6) In the motor drive device described in any one of (1) to (5), the control device changes the designated position in accordance with the passage of time.

[0123] According to such a configuration, even if the difference amount is set to 180 degrees, the time required until the position of the rotor reaches the specified position can be shortened.

[0124] (7) In the motor drive device described in any one of (1) to (6), the control device ends the position control when a given period of time has elapsed from the start of the position control.

[0125] According to such a configuration, whether or not the position control has been terminated can be determined with a relatively simple configuration.

[0126] (8) In the motor drive device described in any one of (1) to (6), the control device ends the position control when the amount of change in the correlation value is less than a threshold value.

[0127] According to such a configuration, whether or not the position control has been terminated can be determined with a relatively simple configuration.

[0128] (9) In the motor drive device described in any one of (1) to (8), the rotor is composed of a two-pole magnet.

[0129] According to such a configuration, although the rotor can be made into a simple structure by forming the rotor with two-pole magnets, the difference amount tends to increase. However, the difference amount can be suppressed by the motor drive device disclosed in the present invention.

[0130] The embodiments of the present invention have been described above, but the embodiments disclosed herein are to be considered in all respects as illustrative rather than restrictive. The scope of the present invention is indicated by the claims, and is intended to include all modifications within the meaning and scope equivalent to the claims.

Claims

1. A motor drive device, characterized in that: have: The electric motor includes a rotor and a stator on which three-phase coils are wound; an inverter for driving the electric motor; and a control device for controlling the inverter, The control device performs the following processing: The current flowing through the motor is converted into a d-axis current and a q-axis current. By integrating the values ​​based on the d-axis current and the q-axis current, a correlation value related to the difference between the position of the rotor and a specified position is calculated, Position control for making the rotational position of the rotor coincide with the specified position is performed based on the correlation value.

2. The motor drive device according to claim 1, wherein: The control device performs the position control by performing a given control for setting the correlation value to zero.

3. The motor drive device according to claim 2, wherein: The given control is a PID control for the related value.

4. The motor drive device according to any one of claims 1 to 3, wherein: The value based on the d-axis current and the q-axis current is an arc tangent value of the value of the d-axis current and the value of the q-axis current.

5. The motor drive device according to any one of claims 1 to 3, 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. The motor drive device according to any one of claims 1 to 3, wherein: The control device changes the designated position according to the passage of time.

7. The motor drive device according to any one of claims 1 to 3, wherein: The control device ends the position control when a predetermined period of time has elapsed from the start of the position control.

8. The motor drive device according to any one of claims 1 to 3, wherein: The control device ends the position control when the amount of change in the correlation value is less than a threshold value.

9. The motor drive device according to any one of claims 1 to 3, wherein: The rotor is composed of a two-pole magnet.