Motor Control Device
The motor control device improves accuracy by detecting bus currents, converting to rotating coordinates, predicting currents, and correcting errors, addressing inaccuracies in motor control due to predicted current errors.
Patent Information
- Application Number
- JP2021056000
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-29
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2041-03-29
AI Technical Summary
The use of predicted current in motor control leads to inaccuracies due to errors between predicted and actual motor currents, reducing the accuracy of motor control.
A motor control device that includes a switching module, detection unit, calculation units, and error correction mechanisms to improve accuracy by detecting bus currents, calculating three-phase currents, converting to rotating coordinates, predicting currents using motor models, extracting error components, and correcting predicted values.
Enhances the accuracy of motor control by reducing errors between predicted and actual motor currents.
Smart Images

Figure 0007567624000001 
Figure 0007567624000002 
Figure 0007567624000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a motor control device. [Background technology]
[0002] A motor control device that controls the drive of a motor has a switching module that generates a three-phase AC voltage (hereinafter sometimes referred to as a "three-phase voltage") to be applied to the motor. The switching module is composed of multiple switching elements. The switching module is also called an inverter.
[0003] Furthermore, when vector control is used for the motor control device, the motor control device generates a d-axis current command value and a q-axis current command value so that the rotation speed of the motor coincides with a speed command value (target speed), and generates a d-axis voltage command value and a q-axis voltage command value from the d-axis current command value and the q-axis current command value. Furthermore, the motor control device converts the d-axis voltage command value and the q-axis voltage command value into three-phase voltage command values.
[0004] PWM (Pulse Width Modulation) is known as a technology for controlling a switching module based on three-phase voltage command values. PWM is a technology that changes the output voltage of a switching module (i.e., three-phase voltage) by adjusting the on / off time of multiple switching elements that make up the switching module. A signal that controls the on / off of the switching elements (hereinafter sometimes referred to as a "PWM signal") is generated based on the result of comparing a carrier signal, which is the carrier wave of the PWM, with a comparison value. By controlling the on / off of the switching elements according to the PWM signal, a three-phase voltage is applied to the motor, controlling the drive of the motor.
[0005] There is also known a technology (hereinafter sometimes referred to as a "position sensorless method") for controlling the drive of a motor without using a sensor (hereinafter sometimes referred to as a "position sensor") for detecting the rotational position of the motor rotor (hereinafter sometimes referred to as the "rotor position"). In the position sensorless method, the rotor position is estimated without using a position sensor by detecting the three-phase current (hereinafter sometimes referred to as the "motor current") flowing through the motor.
[0006] Also, the "single-shunt detection method" is known as a method for detecting motor current. In the single-shunt detection method, two phases of the motor current are detected based on the bus current flowing between the DC power supply and the switching module that generates the three-phase voltage, and the remaining one phase of current is calculated from the two phases of current using Kirchhoff's law.
[0007] A prior art technique has been proposed in which the current that will be detected this time is predicted using the current detected last time and the voltage used in the previous control, and the predicted current is used for motor control. [Prior art documents] [Patent documents]
[0008] [Patent Document 1] JP 2008-067556 A Summary of the Invention [Problem to be solved by the invention]
[0009] However, an error occurs between the predicted current and the current that actually flows through the motor, and therefore the accuracy of the motor control decreases if the predicted current is used as is for motor control.
[0010] Therefore, the present disclosure proposes a technique that can improve the accuracy of motor control. [Means for solving the problem]
[0011] The motor control device of the present disclosure includes a switching module, a detection unit, a first calculation unit, a conversion unit, a prediction unit, a second calculation unit, an extraction unit, a third calculation unit, and a control unit. The switching module converts a DC voltage supplied from a DC power source into an AC voltage and applies the AC voltage to a motor. The detection unit detects a bus current of the switching module using a resistor connected between the DC power source and the switching module. The first calculation unit calculates a three-phase current of a fixed coordinate in the motor based on the bus current. The conversion unit converts the three-phase current into a two-phase current of a rotating coordinate. The prediction unit calculates a first predicted value of the two-phase current according to a motor model formula of the motor. The second calculation unit calculates a difference between the two-phase current and the first predicted value. The extraction unit extracts an error component included in the difference. The third calculation unit corrects the first predicted value using the error component to calculate a corrected second predicted value. The control unit controls the motor using the second predicted value. Effect of the Invention
[0012] According to the disclosed technology, the accuracy of motor control can be improved. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of a motor control device according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a diagram illustrating a configuration example of an error correction unit according to an embodiment of the present disclosure. [Diagram 3] FIG. 3 is a diagram illustrating an example of the operation of the error component extraction unit according to the embodiment of the present disclosure. [Figure 4] FIG. 4 is a diagram illustrating an example of the operation of the error component extraction unit according to the embodiment of the present disclosure. [Diagram 5] FIG. 5 is a diagram illustrating an example of the operation of the error component extraction unit according to the embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. In the following embodiments, the same components are denoted by the same reference numerals.
[0015] [Example] <Motor control device configuration> Fig. 1 is a diagram showing an example of the configuration of a motor control device according to an embodiment of the present disclosure. The motor control device 100 shown in Fig. 1 controls the driving of a motor M using a position sensorless method, a single shunt detection method, and PWM. In Fig. 1, the motor control device 100 includes subtraction units 46, 47, and 52, a d-axis current setting unit 48, a speed control unit 49, a d-axis and q-axis voltage setting unit 45, a dq / 3φ conversion unit 43, a PWM unit 41, a switching module 10, and a DC power supply E DC and a shunt resistor Rs. The motor control device 100 also has a DC voltage detection unit 31, a current detection unit 21, AD conversion units 71, 72, a 3φ current calculation unit 61, a DC voltage calculation unit 32, a 3φ / dq conversion unit 42, a position / speed estimation unit 44, a 1 / Pn processing unit 51, and an error correction unit 80.
[0016] The subtraction units 46, 47, 52, the d-axis current setting unit 48, the speed control unit 49, the d-axis / q-axis voltage setting unit 45, the dq / 3φ conversion unit 43, the PWM unit 41, the DC voltage detection unit 31, the current detection unit 21, the AD conversion units 71, 72, the 3φ current calculation unit 61, the DC voltage calculation unit 32, the 3φ / dq conversion unit 42, the position / speed estimation unit 44, the 1 / Pn processing unit 51, and the error correction unit 80 are realized as hardware, for example, by an MCU (Micro Control Unit). The subtraction units 46, 47, 52, the d-axis current setting unit 48, the speed control unit 49, the d-axis / q-axis voltage setting unit 45, the dq / 3φ conversion unit 43, the PWM unit 41, the position / speed estimation unit 44, and the 1 / Pn processing unit 51 constitute a control unit that controls the drive of the motor M.
[0017] The switching module 10 also has upper arm switching elements SWup, SWvp, SWwp and lower arm switching elements SWun, SWvn, SWwn.
[0018] In the motor control device 100, the d-axis current setting unit 48 sets a predetermined d-axis current command value id * is output to the subtraction unit 46.
[0019] The subtraction unit 46 receives the d-axis current command value id from the d-axis current setting unit 48. * is input to the subtraction unit 46, and the d-axis current id is input from the error correction unit 80. The subtraction unit 46 calculates the d-axis current command value id * The d-axis current deviation Δid is calculated by subtracting the d-axis current id from the d-axis current deviation Δid, and the calculated d-axis current deviation Δid is output to the d-axis and q-axis voltage setting unit 45.
[0020] The speed control unit 49 calculates the q-axis current command value iq so that the speed deviation Δω input from the subtraction unit 52 approaches zero. * Calculate the q-axis current command value iq * is output to the subtraction unit 47.
[0021] The subtraction unit 47 receives the q-axis current command value iq * is input to the subtraction unit 47, and the q-axis current iq is input from the error correction unit 80. The subtraction unit 47 subtracts the q-axis current command value iq * The d-axis / q-axis voltage setting unit 45 calculates the q-axis current deviation Δiq by subtracting the q-axis current iq from the d-axis / q-axis voltage setting unit 45.
[0022] The d-axis and q-axis voltage setting unit 45 receives the d-axis current deviation Δid from the subtraction unit 46, the q-axis current deviation Δiq from the subtraction unit 47, and the d-axis current id and the q-axis current iq from the error correction unit 80. The d-axis and q-axis voltage setting unit 45 adjusts the d-axis voltage command value Vd so that the d-axis current deviation Δid and the q-axis current deviation Δiq approach zero. * and q-axis voltage command value Vq * Calculate the d-axis voltage command value Vd * and q-axis voltage command value Vq * The d-axis voltage command value Vd * and q-axis voltage command value Vq *also changes according to the U-phase current iu, the V-phase current iv, and the W-phase current iw, which are the motor currents calculated by the 3φ current calculation unit 61.
[0023] The position / speed estimation unit 44 receives the d-axis current id and the q-axis current iq from the error correction unit 80, and receives the d-axis voltage command value Vd from the d-axis / q-axis voltage setting unit 45. * and q-axis voltage command value Vq * The position and speed estimation unit 44 receives the d-axis current id, the q-axis current iq, and the d-axis voltage command value Vd * , and the q-axis voltage command value Vq * Based on this, the position / speed estimation unit 44 estimates the electrical angular velocity ωe of the motor M and the rotational phase angle θdq of the motor M in the rotational coordinates (dq coordinates). The position / speed estimation unit 44 outputs the estimated angular velocity ωe to the 1 / Pn processing unit 51 and the error correction unit 80, and outputs the estimated rotational phase angle θdq to the 3φ / dq conversion unit 42 and the dq / 3φ conversion unit 43.
[0024] The 1 / Pn processing unit 51 converts the electrical angular velocity ωe into a mechanical angular velocity ωm of the rotor of the motor M by dividing the angular velocity ωe by the number of pole pairs of the motor M, and outputs the converted angular velocity ωm to the subtraction unit 52.
[0025] The subtraction unit 52 receives the angular velocity ωm from the 1 / Pn processing unit 51, and receives a velocity command value ωm from outside the motor control device 100 (for example, from a higher-level controller of the motor control device 100). * The subtraction unit 52 receives the speed command value ωm * The speed deviation Δω is calculated by subtracting the angular velocity ωm from the velocity deviation Δω, and the calculated velocity deviation Δω is output to the velocity control unit 49.
[0026] The dq / 3φ conversion unit 43 converts the two-phase d-axis voltage command value Vd * and q-axis voltage command value Vq * The three-phase voltage command value Vu * ,Vv * ,Vw * The dq / 3φ conversion unit 43 converts the converted voltage command value Vu * ,Vv* ,Vw * to the PWM unit 41.
[0027] The PWM unit 41 receives a voltage command value Vu from the dq / 3φ conversion unit 43. * ,Vv * ,Vw * is input to the PWM unit 41, and a DC voltage Vdc is input from the DC voltage calculation unit 32. A carrier signal, which is a carrier wave of the PWM, is input to the PWM unit 41 from outside the motor control device 100 (for example, from a higher-level controller of the motor control device 100). The PWM unit 41 calculates a voltage command value Vu * ,Vv * ,Vw * Based on the DC voltage Vdc and the carrier signal, three-phase PWM signals Up, Un, Vp, Vn, Wp, and Wn are generated, and the generated PWM signals Up, Un, Vp, Vn, Wp, and Wn are output to the switching module 10 and the 3φ current calculation unit 61.
[0028] The switching module 10 includes a DC power supply E DC A DC voltage is supplied from the power supply 10, and PWM signals Up, Un, Vp, Vn, Wp, and Wn are input from the PWM unit 41. The switching module 10 is DC The switching module 10 converts a DC voltage supplied from the inverter 11 into a three-phase AC voltage in accordance with the PWM signals Up to Wn, and applies the converted three-phase AC voltage to the motor M. The motor M is driven by applying the three-phase AC voltage to the motor M. In the switching module 10, the switching elements SWup, SWun, SWvp, SWvn, SWwp, and SWwn are turned on / off in accordance with the PWM signals Up, Un, Vp, Vn, Wp, and Wn, thereby converting the DC voltage into a three-phase voltage. Freewheeling diodes Dup, Dun, Dvp, Dvn, Dwp, and Dwn are connected to both ends of the switching elements SWup, SWun, SWvp, SWvn, SWwp, and SWwn.
[0029] The current detection unit 21 detects the DC power supply E DCThe shunt resistor Rs connected between the DC power supply E and the switching module 10 is used to detect the bus current Is of the switching module 10. DC The N line L is a DC line between the N-side terminal in N The shunt resistor Rs is placed on the DC power supply E DC The P line L is a DC line between the P-side terminal in P The shunt resistor Rs may be disposed on the upper side of the shunt resistor 72. The shunt resistor Rs is supplied with the U-phase current, V-phase current, and W-phase current, which are the motor currents, and a bus current Is corresponding to the PWM signal. When the bus current Is flows through the shunt resistor Rs, a voltage drop occurs across the shunt resistor Rs. The current detection unit 21 detects the bus current Is flowing through the shunt resistor Rs from the magnitude of this voltage drop and the resistance value of the shunt resistor Rs. Furthermore, the current detection unit 21 calculates an analog voltage VA1 expressed by equation (1) based on the shunt resistor Rs and the bus current Is, and outputs the calculated analog voltage VA1 to the AD conversion unit 72. "k" in equation (1) indicates a predetermined amplification factor. VA1 = k × (Rs · Is) … (1)
[0030] The AD conversion unit 72 samples the analog voltage VA1 to convert it into a digital voltage value VA2, and outputs the converted digital voltage value VA2 to the 3φ current calculation unit 61.
[0031] The 3φ current calculation unit 61 calculates the motor current using a single shunt detection method. The 3φ current calculation unit 61 calculates the motor currents, U-phase current iu, V-phase current iv, and W-phase current iw, based on the resistance value of the shunt resistor Rs, the amplification factor k, the digital voltage value VA2, and the PWM signals Up to Wn, and outputs the calculated motor currents iu, iv, and iw to the 3φ / dq conversion unit 42.
[0032] The 3φ / dq conversion unit 42 converts the motor currents iu, iv, iw, which indicate a three-phase current vector in a fixed coordinate system, into a d-axis current and a q-axis current, which indicate a two-phase current vector in a rotating coordinate system, using the rotational phase angle θdq input from the position / speed estimation unit 44. Hereinafter, the d-axis current after conversion in the 3φ / dq conversion unit 42 may be referred to as the “detected d-axis current”, and the q-axis current after conversion in the 3φ / dq conversion unit 42 may be referred to as the “detected q-axis current”. The 3φ / dq conversion unit 42 outputs the detected d-axis current id_det and the detected q-axis current iq_det to the error correction unit 80.
[0033] The error correction unit 80 receives the detected d-axis current id_det and the detected q-axis current iq_det from the 3φ / dq conversion unit 42, the angular velocity ωe from the position / speed estimation unit 44, and the d-axis voltage command value Vd * and q-axis voltage command value Vq * and determines a d-axis current id to be output to the position / speed estimation unit 44, the d-axis / q-axis voltage setting unit 45, and the subtraction unit 46, and a q-axis current iq to be output to the position / speed estimation unit 44, the d-axis / q-axis voltage setting unit 45, and the subtraction unit 47. The error correction unit 80 will be described in detail later.
[0034] The DC voltage detection unit 31 detects the P line L P and N Line L N and outputs the detected analog bus voltage VB1 to the AD conversion unit 71.
[0035] The AD conversion unit 71 samples the analog bus voltage VB1 to convert the analog bus voltage VB1 into a digital bus voltage value VB2, and outputs the converted digital bus voltage value VB2 to the DC voltage calculation unit 32.
[0036] The DC voltage calculation unit 32 calculates a DC voltage Vdc from the digital bus voltage value VB2, and outputs the calculated DC voltage Vdc to the PWM unit 41.
[0037] <Configuration of error correction section> 2 is a diagram showing a configuration example of an error correction unit in the embodiment of the present disclosure. In FIG. 2, the error correction unit 80 includes a current prediction unit 81, a difference calculation unit 82, an error component extraction unit 83, a correction unit 84, and a current determination unit 85. The current prediction unit 81 receives the d-axis voltage command value Vd * and q-axis voltage command value Vq * and angular velocity ωe is input from position / speed estimation unit 44. A detected d-axis current id_det and a detected q-axis current iq_det are input from 3φ / dq conversion unit 42 to difference calculation unit 82 and current determination unit 85.
[0038] Here, the d-axis voltage command value Vd * and q-axis voltage command value Vq * is expressed by the motor model equations shown in equations (2.1) and (2.2). In equations (2.1) and (2.2), "R" is the winding resistance of the motor M, "id" is the d-axis current output from the current determination unit 85 at the previous control timing (hereinafter may be referred to as the "previous d-axis current"), "p" is the differential operator of (d / dt), "Ld" is the d-axis inductance of the motor M, "ωe" is the angular velocity input from the position / speed estimation unit 44, "Lq" is the q-axis inductance of the motor M, "iq" is the q-axis current output from the current determination unit 85 at the previous control timing (hereinafter may be referred to as the "previous q-axis current"), and "Ψ" is the linkage magnetic flux of the motor M. The winding resistance R, the d-axis inductance Ld, the q-axis inductance Lq, and the linkage magnetic flux Ψ are parameters (hereinafter may be referred to as the "motor parameters") that determine the characteristics of the motor M. Vd * =R·id+p·Ld·id-ωe·Lq·iq …(2.1) Vq * =R·iq+p·Lq·iq+ωe·Ld·id+ωe·Ψ …(2.2)
[0039] Furthermore, when the carrier frequency fc in the motor control device 100 is used, the formulas (2.1) and (2.2) can be transformed into the formulas (3.1) and (3.2). In the formulas (3.1) and (3.2), "ΔId" is the amount of change (hereinafter sometimes referred to as "d-axis current change") of the d-axis current predicted to be output from the current determination unit 85 at the current control timing (hereinafter sometimes referred to as "predicted d-axis current") relative to the previous d-axis current, and "ΔIq" is the amount of change (hereinafter sometimes referred to as "q-axis current change") of the q-axis current predicted to be output from the current determination unit 85 at the current control timing (hereinafter sometimes referred to as "predicted q-axis current") relative to the previous q-axis current. Vd * =R·id+Ld·ΔId·fc-ωe·Lq·iq …(3.1) Vq * =R·iq+Lq·ΔIq·fc+ωe·Ld·id+ωe·Ψ …(3.2)
[0040] Solving equations (3.1) and (3.2) for the d-axis current change and the q-axis current change gives equations (4.1) and (4.2). ΔId = (Vd * -R·id+ωe·Lq·iq) / (Ld·fc) …(4.1) ΔIq=(Vq * -R·iq-ωe·Ld·id-ωe·Ψ) / (Lq·fc) …(4.2)
[0041] Therefore, the current prediction unit 81 calculates a predicted d-axis current id_pre and a predicted q-axis current iq_pre according to equations (5.1) and (5.2) using the past d-axis current id determined by the current determination unit 85 at the previous control timing and input from the current determination unit 85, and the past q-axis current iq determined by the current determination unit 85 at the previous control timing and input from the current determination unit 85. id_pre = id + ΔId … (5.1) iq_pre=iq+ΔIq …(5.2)
[0042] In this way, the current prediction unit 81 calculates the predicted d-axis current id_pre and the predicted q-axis current iq_pre according to the motor model equation of the motor M, and outputs the calculated predicted d-axis current id_pre and predicted q-axis current iq_pre to the difference calculation unit 82 and the correction unit 84.
[0043] The difference calculation unit 82 calculates the difference id_dif between the detected d-axis current id_det and the predicted d-axis current id_pre (hereinafter sometimes referred to as the “d-axis difference”) and the difference iq_dif between the detected q-axis current iq_det and the predicted q-axis current iq_pre (hereinafter sometimes referred to as the “q-axis difference”) in accordance with equations (6.1) and (6.2). The difference calculation unit 82 outputs the calculated d-axis difference id_dif and q-axis difference iq_dif to the error component extraction unit 83. id_dif=id_det-id_pre …(6.1) iq_dif = iq_det - iq_pre ... (6.2)
[0044] The error component extraction unit 83 extracts the error component id_err contained in the d-axis difference id_dif (hereinafter sometimes referred to as the "d-axis error component") from the d-axis difference id_dif, and extracts the error component iq_err contained in the q-axis difference iq_dif (hereinafter sometimes referred to as the "q-axis error component") from the q-axis difference iq_dif, and outputs the extracted d-axis error component id_err and q-axis error component iq_err to the correction unit 84. Details of the error component extraction unit 83 will be described later.
[0045] The correction unit 84 calculates a corrected predicted d-axis current (hereinafter may be referred to as a "corrected d-axis current") id_pre_cr by correcting the predicted d-axis current id_pre using the d-axis error component id_err, and outputs the calculated corrected d-axis current id_pre_cr to the current determination unit 85. The correction unit 84 also calculates a corrected predicted q-axis current (hereinafter may be referred to as a "corrected q-axis current") iq_pre_cr by correcting the predicted q-axis current iq_pre using the q-axis error component iq_err, and outputs the calculated corrected q-axis current iq_pre_cr to the current determination unit 85. For example, the correction unit 84 calculates the corrected d-axis current id_pre_cr by subtracting the d-axis error component id_err from the predicted d-axis current id_pre, and calculates the corrected q-axis current iq_pre_cr by subtracting the q-axis error component iq_err from the predicted q-axis current iq_pre.
[0046] The current determination unit 85 determines the d-axis current id and the q-axis current iq to be used for controlling the motor M at the current control timing.
[0047] Here, there are periods during which the 3φ current calculation unit 61 can calculate the three-phase motor currents iu, iv, and iw (hereinafter sometimes referred to as the "calculatable period"), and periods during which the 3φ current calculation unit 61 cannot calculate the three-phase motor currents iu, iv, and iw (hereinafter sometimes referred to as the "uncalculatable period").
[0048] During a calculation possible period, the current determination unit 85 determines the detected d-axis current id_det as the d-axis current id to be used for controlling the motor M at the current control timing, and outputs the detected d-axis current id_det of the detected d-axis current id_det and the corrected d-axis current id_pre_cr to the position / speed estimation unit 44, the d-axis / q-axis voltage setting unit 45, the subtraction unit 46, and the current prediction unit 81. On the other hand, during a calculation impossible period, the current determination unit 85 determines the corrected d-axis current id_pre_cr as the d-axis current id to be used for controlling the motor M at the current control timing, and outputs the corrected d-axis current id_pre_cr of the detected d-axis current id_det and the corrected d-axis current id_pre_cr to the position / speed estimation unit 44, the d-axis / q-axis voltage setting unit 45, the subtraction unit 46, and the current prediction unit 81.
[0049] Furthermore, during a calculation possible period, the current determination unit 85 determines the detected q-axis current iq_det as the q-axis current iq used for controlling the motor M at the current control timing, and outputs the detected q-axis current iq_det of the detected q-axis current iq_det and the corrected q-axis current iq_pre_cr to the position / speed estimation unit 44, the d-axis / q-axis voltage setting unit 45, the subtraction unit 46, and the current prediction unit 81. On the other hand, during a calculation impossible period, the current determination unit 85 determines the corrected q-axis current iq_pre_cr as the q-axis current iq used for controlling the motor M at the current control timing, and outputs the corrected q-axis current iq_pre_cr of the detected q-axis current iq_det and the corrected q-axis current iq_pre_cr to the position / speed estimation unit 44, the d-axis / q-axis voltage setting unit 45, the subtraction unit 46, and the current prediction unit 81.
[0050] For example, the current determination unit 85 determines the three-phase voltage command value Vu * ,Vv * ,Vw * The pulse width of the PWM signal for the middle phase, which is the phase with the second largest voltage command value in * ,Vv * ,Vw * the difference between the pulse width of the PWM signal for the minimum phase, which is the phase having the smallest voltage command value in * ,Vv * ,Vw * The current determination unit 85 determines whether or not the difference between the pulse width of the PWM signal for the maximum phase, which is the phase having the maximum voltage command value, and the pulse width of the PWM signal for the intermediate phase (hereinafter sometimes referred to as the "second pulse width difference") is less than a predetermined threshold value TH1, as shown in equations (7.1) and (7.2). Then, the current determination unit 85 determines a period in which at least one of the two inequalities of equations (7.1) and (7.2) holds as a calculation-impossible period, and determines a period in which neither of the two inequalities of equations (7.1) and (7.2) holds as a calculation-impossible period. First Pulse Width Difference <TH1 …(7.1) Second Pulse Width Difference <TH1 …(7.2)
[0051] For example, the current determination unit 85 determines a period when the magnitude of noise superimposed on the detected d-axis current id_det (hereinafter sometimes referred to as "d-axis noise") is equal to or greater than a predetermined threshold TH2, or when the magnitude of noise superimposed on the detected q-axis current iq_det (hereinafter sometimes referred to as "q-axis noise") is equal to or greater than the threshold TH2, to be an incalculable period. On the other hand, the current determination unit 85 determines a period when both the magnitude of the d-axis noise and the magnitude of the q-axis noise are less than the threshold TH2 to be a calculable period.
[0052] <Operation of the error component extraction unit> 3, 4, and 5 are diagrams for explaining an example of the operation of the error component extraction unit of the embodiment of the present disclosure. Hereinafter, the detected d-axis current id_det and the detected q-axis current iq_det may be collectively referred to as the "detected current". Hereinafter, the predicted d-axis current id_pre and the predicted q-axis current iq_pre may be collectively referred to as the "predicted current". Hereinafter, the d-axis difference id_dif and the q-axis difference iq_dif may be collectively referred to as the "current difference". Hereinafter, the d-axis error component id_err and the q-axis error component iq_err may be collectively referred to as the "current error component".
[0053] As shown in FIG. 3, the frequency components of the detected current include, in addition to the current fundamental wave component, a frequency component (hereinafter sometimes referred to as a "rotational order component") that depends on the order of the rotational frequency of the motor M (hereinafter sometimes referred to as a "rotational order"), and an error component of a component generated due to an error in a motor parameter (hereinafter sometimes referred to as a "parameter error component"). An example of the rotational order component is pulsation due to cogging torque. As shown in FIG. 4, the frequency components of the predicted current include, in addition to the current fundamental wave component, a parameter error component. As shown in FIG. 5, the frequency components of the current difference, which is the difference between the detected current and the predicted current, include a rotational order component, a parameter error component, and a current error component of a frequency component generated due to a delay in calculation of the predicted current (hereinafter sometimes referred to as a "calculation delay component"). Hereinafter, the extraction of the current error component from the current difference will be described with reference to three extraction examples, extraction examples 1, 2, and 3.
[0054] <Extraction example 1> In extraction example 1, the error component extracting unit 83 extracts rotation order components as current error components from the d-axis difference id_dif and the q-axis difference iq_dif.
[0055] The rotational order components include harmonic components, and the order of the frequency at which the rotational order components appear is determined by the number of poles of the motor M, the number of slots of the motor M, and the rotational speed of the motor M. For example, if the rotational speed of the motor M is the fundamental frequency and the motor M is an X-pole Y-slot motor, the rotational order components appear at the frequency of the least common multiple of X and Y. Furthermore, the rotational order components also appear at the frequencies of the orders of half, two, three, ..., n times the least common multiple of X and Y. For example, if the motor M is a 6-pole 9-slot motor, the rotational order components appear at the 18th order frequency, which is the least common multiple of 6 and 9, as well as the 9th order frequency, which is half the least common multiple of 6 and 9, and the 18 x n order frequencies of 36th, 54th, ... Therefore, for example, when the rotation speed of the motor M is 30 [rps], rotation order components appear at frequencies of 270 [Hz], 540 [Hz], 1080 [Hz], 1620 [Hz], ..., 540 × n [Hz]. In this way, the rotation order components appear at specific frequencies.
[0056] Therefore, in extraction example 1, the error component extraction unit 83 performs Fourier series expansion on the d-axis difference id_dif to extract multiple frequency components corresponding to the rotation order components on the d-axis from the multiple order frequency components. Similarly, the error component extraction unit 83 performs Fourier series expansion on the q-axis difference iq_dif to extract multiple frequency components corresponding to the rotation order components on the q-axis from the multiple order frequency components. In this way, the error component extraction unit 83 performs Fourier series expansion on the current difference to extract multiple frequency components corresponding to the rotation order components from the multiple order frequency components.
[0057] In this manner, in extraction example 1, the error component extracting unit 83 extracts the rotation order component from the current difference as the current error component.
[0058] <Extraction example 2> In extraction example 2, the error component extracting unit 83 extracts the calculation delay components from the d-axis difference id_dif and the q-axis difference iq_dif as the current error components.
[0059] Since the calculation delay component is a frequency component occurring due to the calculation of the predicted d-axis current id_pre and the predicted q-axis current iq_pre, as shown in Fig. 5, the calculation delay component appears at a specific frequency equal to the rotation speed of the motor M. For example, when the rotation speed of the motor M is 30 [rps], the calculation delay component appears at a frequency of 30 [Hz].
[0060] Therefore, in extraction example 2, the error component extraction unit 83 performs Fourier series expansion on the d-axis difference id_dif to extract a specific frequency component corresponding to the calculation delay component on the d-axis from the d-axis difference id_dif among the frequency components of multiple orders. Similarly, the error component extraction unit 83 performs Fourier series expansion on the q-axis difference iq_dif to extract a specific frequency component corresponding to the calculation delay component on the q-axis from the frequency components of multiple orders. In this way, the error component extraction unit 83 performs Fourier series expansion on the current difference to extract a specific frequency component corresponding to the calculation delay component from the frequency components of multiple orders from the current difference.
[0061] In this manner, in extraction example 2, the error component extracting unit 83 extracts the calculation delay component from the current difference as the current error component.
[0062] <Extraction example 3> In extraction example 3, the error component extracting unit 83 extracts parameter error components from the d-axis difference id_dif and the q-axis difference iq_dif as current error components.
[0063] Since the actual motor parameters are not fixed values but are values that change depending on the state of the motor M, an error occurs between the fixed motor parameters set in equations (2.1) and (2.2) and the actual motor parameters. As described above, the predicted d-axis current id_pre and the predicted q-axis current iq_pre are calculated based on equations (2.1) and (2.2) in which the fixed motor parameters are set, and therefore, due to the error between the motor parameters, a steady error occurs between the detected d-axis current id_det and the predicted d-axis current id_pre, and between the detected q-axis current iq_det and the predicted q-axis current iq_pre. In other words, the parameter error components are so-called offset components that do not have frequency components, as shown in FIG. 5.
[0064] Therefore, in extraction example 3, the error component extraction unit 83 extracts the parameter error component on the d-axis from the d-axis difference id_dif by filtering the d-axis difference id_dif with a low-pass filter. Similarly, the error component extraction unit 83 extracts the parameter error component on the q-axis from the q-axis difference iq_dif by filtering the q-axis difference iq_dif with a low-pass filter.
[0065] In this manner, in extraction example 3, the error component extracting section 83 extracts the parameter error component as the current error component from the current difference.
[0066] Extraction examples 1, 2, and 3 have been described above.
[0067] The error component extracting unit 83 may extract one or more of the rotation order component, the calculation delay component, and the parameter error component from the d-axis difference id_dif and the q-axis difference iq_dif.
[0068] The above describes the embodiment.
[0069] As described above, the motor control device (motor control device 100 in the embodiment) of the present disclosure includes a switching module (switching module 10 in the embodiment), a detection unit (current detection unit 21 in the embodiment), a first calculation unit (3φ current calculation unit 61 in the embodiment), a conversion unit (3φ / dq conversion unit 42 in the embodiment), a prediction unit (current prediction unit 81 in the embodiment), a second calculation unit (difference calculation unit 82 in the embodiment), an extraction unit (error component extraction unit 83 in the embodiment), a third calculation unit (correction unit 84 in the embodiment), and a control unit (control unit in the embodiment). The switching module converts a DC voltage supplied from a DC power supply into an AC voltage and applies the AC voltage to a motor (motor M in the embodiment). The detection unit detects a bus current of the switching module using a resistor (shunt resistor Rs in the embodiment) connected between the DC power supply and the switching module. The first calculation unit calculates a three-phase current of a fixed coordinate in the motor based on the bus current. The conversion unit converts the three-phase currents in the fixed coordinates into two-phase currents in the rotating coordinates (detected d-axis current id_det, detected q-axis current iq_det in the embodiment). The prediction unit calculates first predicted values of the two-phase currents (predicted d-axis current id_pre, predicted q-axis current iq_pre in the embodiment) according to a motor model equation of the motor. The second calculation unit calculates differences between the two-phase currents and the first predicted values (d-axis difference id_dif, q-axis difference iq_dif in the embodiment). The extraction unit extracts error components included in the differences (d-axis error component id_err, q-axis error component iq_err in the embodiment). The third calculation unit corrects the first predicted value using the error components to calculate second predicted values after correction (corrected d-axis current id_pre_cr, corrected q-axis current iq_pre_cr in the embodiment). The control unit controls the motor using the second predicted values.
[0070] For example, the extractor extracts a frequency component that depends on the rotation order of the motor as the error component.
[0071] Furthermore, for example, the extractor extracts, as the error component, a frequency component caused by a delay in calculation of the first predicted value.
[0072] Furthermore, for example, the extraction unit extracts, as the error component, an offset component between the motor parameter included in the motor model formula and the actual motor parameter of the motor.
[0073] This reduces the error between the first predicted value and the current actually flowing through the motor, thereby improving the accuracy of motor control. [Explanation of symbols]
[0074] 100 Motor control device 10 Switching Module 21 Current detection section 42 3φ / dq conversion section 61 3φ current calculation section 80 Error correction section 81 Current prediction section 82 Difference calculation part 83 Error component extraction part 84 Correction section 85 Current determination section
Claims
1. a switching module that converts a DC voltage supplied from a DC power source into an AC voltage and applies the AC voltage to a motor; a detection unit that detects a bus current of the switching module using a resistor connected between the DC power source and the switching module; a first calculation unit that calculates three-phase currents of a fixed coordinate system in the motor based on the bus currents; A conversion unit for converting the three-phase current into a two-phase current in a rotating coordinate system; a prediction unit that calculates a first predicted value of the two-phase current according to a motor model equation of the motor; a second calculation unit that calculates a difference between the two-phase currents and the first predicted value; an extraction unit that extracts an error component included in the difference; a third calculation unit that calculates a corrected second predicted value by correcting the first predicted value using the error component; a control unit that controls the motor using the second predicted value; A motor control device comprising:
2. The extraction unit extracts a frequency component that depends on a rotation order of the motor as the error component. The motor control device according to claim 1 .
3. The extraction unit extracts, as the error component, a frequency component caused by a delay in calculation of the first predicted value. The motor control device according to claim 1 .
4. the extraction unit extracts, as the error component, an offset component between a motor parameter included in the motor model formula and an actual motor parameter of the motor; The motor control device according to claim 1 .
Citation Information
Patent Citations
Motor controller
JP2008067556A
Controller for rotary machine
JP2013062900A
