Motor control method and motor control system based on three-level inverter

By calculating the phase difference of the motor control system and the angle compensation angle caused by the systematic delay, the current and voltage are transformed, which solves the problem of the motor rotor angle estimation error in the sensor-free inverter and improves the accuracy and efficiency of the motor control. .

CN118573071APending Publication Date: 2024-08-30ROBERT BOSCH GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310193804.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

Smart Images

  • Figure CN118573071A
    Figure CN118573071A
Patent Text Reader

Abstract

The present application provides a control method for controlling a motor, applied to a motor control system based on a three-level inverter, the method comprising determining a phase difference, converting a first sampling current into a second sampling current with a sum of the phase difference and a first compensation angle as a total compensation angle, the compensation angle comprising the phase difference, the phase difference is a phase difference between an input voltage input to a motor by the motor control system and a first sampling current sampled from the motor; converting the second sampling current into a corresponding sampling voltage; and generating the input voltage to be input to the motor based on the transformed sampled voltage; wherein the second sampling current and the sampling voltage are two-phase current and voltage under a two-axis coordinate system respectively. The invention further provides a motor control system based on the three-level inverter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of motor control, and more specifically, to a control method and system for controlling a motor. Background Art

[0002] In the market, some inverters obtain the motor rotor angle through sampling sensors. In this case, angle compensation is not required, but sensors need to be set. Other inverters do not set sensors, but estimate the motor rotor angle to save costs, but there are errors in the estimation. For inverters that do not use sensors, it is necessary to avoid the impact of estimation errors on motor operation. Summary of the invention

[0003] The present application provides a motor control method, which is applied to a motor control system based on a three-level inverter. The method includes: determining a phase difference between an input voltage input to a motor by the motor control system and a first sampled current sampled from the motor; using the sum of the phase difference and a first compensation angle as a total compensation angle, transforming the first sampled current into a second sampled current; transforming the second sampled current into a corresponding sampled voltage; and generating the input voltage to be input to the motor based on the transformed sampled voltage; wherein the second sampled current and the sampled voltage are respectively two-phase current and voltage in a two-axis coordinate system; wherein the first compensation angle is an angle compensation for a first systematic delay caused by the motor control system.

[0004] According to the motor control method of the present application, as an example, transforming the first sampling current into the second sampling current based on the compensation angle includes: transforming the first sampling current into a two-axis coordinate system by a first transformation to obtain an intermediate current; transforming the intermediate current into a second sampling current by a second transformation based on the compensation angle, the second sampling current being a direct-axis current and a quadrature-axis current.

[0005] According to the motor control method of the present application, as an example, the sampling voltage is a direct-axis voltage and a quadrature-axis voltage obtained by transforming the direct-axis current and the quadrature-axis current; and the input voltage generated by the transformed sampling voltage and input to the motor includes: transforming the direct-axis voltage and the quadrature-axis voltage into an intermediate two-phase voltage through a third transformation; and transforming the intermediate two-phase voltage into the input voltage.

[0006] According to the motor control method of the present application, as an example, the first transformation is a Clark transformation, the second transformation is a Park transformation, and the third transformation is an inverse Park transformation.

[0007] According to the motor control method of the present application, as an example, the equivalent transfer function of the first systematic delay is a first-order inertia link, and the value of the first compensation angle is equal to the lag angle of the phase frequency corresponding to the cutoff frequency in the Bode diagram of the first-order inertia link.

[0008] According to the motor control method of the present application, as an example, the total compensation angle also includes a second compensation angle, which is an angle compensation for the second systematic delay caused by the motor control system. That is, the total compensation angle is the sum of the phase difference, the first compensation angle and the second compensation angle.

[0009] According to another aspect of the present application, a motor control system based on a three-level inverter is also provided, including: a compensation angle processing unit, used to calculate the sum of the phase difference and the first compensation angle between the input voltage input to the motor by the motor control system and the first sampling current sampled from the motor; a first processing unit, used to transform the first sampling current into a second sampling current with the sum of the phase difference and the first compensation angle as the total compensation angle; a second processing unit, used to transform the second sampling current into a corresponding sampling voltage; a third processing unit, used to generate the input voltage input to the motor from the transformed sampling voltage; wherein the second sampling current and the sampling voltage are respectively two-phase current and voltage in a two-axis coordinate system; and the first compensation angle is an angle compensation for a first systematic delay caused by the motor control system.

[0010] According to the motor control system based on a three-level inverter of the present application, as an example, the first processing unit includes: a first converter, used to transform the first sampling current into a two-axis coordinate system by a first transformation to obtain an intermediate current; a second converter, used to transform the intermediate current into a second sampling current by a second transformation based on a compensation angle, and the second sampling current is a direct-axis current and a quadrature-axis current.

[0011] According to the three-level inverter-based motor control system of the present application, as an example, the compensation angle calculation unit is configured to sum the phase difference, the first compensation angle and the second compensation angle, and transmit the sum to the first processing unit as the total compensation angle; the second compensation angle is an angle compensation for the second systematic delay caused by the motor control system.

[0012] According to the present application, a motor control system based on a three-level inverter is also provided. The control system includes a memory storing instructions and a controller. The controller is configured to implement the methods described above when executing the instructions.

[0013] According to the present application, a controller is also provided. The controller can be set to a motor control system based on a three-level inverter. The controller is configured to implement the above-mentioned methods when executing instructions stored in a memory.

[0014] According to the present application, a motor control system based on a three-level inverter is also provided, which includes a three-level inverter space vector pulse width modulator, a Clark converter, a Park converter, a PI controller, and an inverse Park converter. The control system also includes: a processing module, which is configured to calculate a phase difference according to the direct-axis current, direct-axis voltage, quadrature-axis current, and quadrature-axis voltage transformed by the Park converter, and transmit the sum of the phase difference, the first compensation angle, and the second compensation angle to the Park converter; the Park converter uses the sum as the total compensation angle to transform the next direct-axis current and quadrature-axis current; the phase difference is the phase difference between the input voltage input to the motor by the three-level inverter space vector pulse width modulator and the sampled current sampled from the motor; the first compensation angle is an angle compensation for a first systematic delay caused by the motor control system, and the equivalent transfer function of the first systematic delay is a first-order inertia link; the second compensation angle is an angle compensation for a second systematic delay caused by the motor control system.

[0015] According to the three-level inverter-based motor control system of the present application, as an example, the processing module is further configured to determine the first compensation angle based on the lag angle of the phase frequency corresponding to the cutoff frequency in the Bode diagram of the first-order inertia link.

[0016] According to the three-level inverter-based motor control system of the present application, as an example, the system further includes a memory for storing a mapping relationship between the compensation angle and the rated current and rated voltage of the motor.

[0017] According to another aspect of the present application, a power battery system is also provided, which provides a motor control system based on a three-level inverter including any one of the motor control methods described above, or includes the controller described above, or includes any one of the motor control systems based on a three-level inverter described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The following will describe the embodiments of the present application in detail with reference to the accompanying drawings so that the present application can be more fully understood, wherein:

[0019] Figure 1 is a schematic diagram of a motor control system according to some examples of the present application;

[0020] Figure 2 It is a schematic diagram of the principle of a three-level inverter;

[0021] Figure 3 is a flow chart of a motor control method according to some examples of the present application, and the motor control method can be applied to a motor control system based on a three-level inverter;

[0022] Figure 4 According to some examples of this application Figure 3 Flow chart of step S302;

[0023] Figure 5 yes Figure 3 A specific flow chart of an implementation of step S306;

[0024] Figure 6 It is the Bode diagram simulation analysis of the first-order inertia link;

[0025] Figure 7 is a structural schematic diagram of a motor control system based on a three-level inverter according to an example of the present application;

[0026] Figure 8 It is a structural schematic diagram of an existing motor control system based on a three-level inverter;

[0027] Fig. 9 It is a structural diagram of a motor control system based on a three-level inverter according to some specific examples of the present application. DETAILED DESCRIPTION

[0028] In order to help those skilled in the art to accurately understand the subject matter for which protection is sought in the present application, the specific implementation of the present application will be described in detail below in conjunction with the accompanying drawings.

[0029] Figure 1 1 is a schematic diagram of a motor control system according to some examples of the present application. As shown in the figure, the motor control system 2 is electrically connected to the motor 1 to control the operation of the motor 1. As an example, the motor 1 is a permanent magnet synchronous motor (PMSM), and the motor control system 2 is a control system based on a three-level inverter vector, and the motor control system 2 is also referred to as the three-level inverter vector control system 2 hereinafter.

[0030] The three-level inverter vector control system 2 outputs three voltages V a 、V b and V c , where V a 、V b and V c It is generated by three identical one-phase circuits. Figure 2 This is a schematic diagram of the principle of a three-level inverter. Figure 2As shown, each phase includes, for example, 4 switching tubes and 2 clamping diodes. By reasonably controlling the state of the switching tubes of each phase in phase A 200, phase B 202 and phase C 204, a three-level three-phase voltage can be output to drive the motor 1. The switching tubes of phase A 200 include Sa1, Sa2, Sa3 and Sa4, the switching tubes of phase B 202 include Sb1, Sb2, Sb3 and Sb4, and the switching tubes of phase C 204 include Sc1, Sc2, Sc3 and Sc4. The three-level inverter in this example is a known neutral point clamped (NPC) three-level structure, but other types of three-level structures, such as a flying capacitor (FC) three-level structure, are not excluded.

[0031] The voltage V generated by the three-level inverter vector control system 2 a 、V b and V c Acting on motor 1, sampling the stator three-phase current I from motor 1 a ,I b and I c The sampled current is fed back to the three-level inverter vector control system 2, and the control system 2 performs vector calculation based on the current, and adjusts the control of the motor 1 according to the calculation result, thereby forming a closed-loop control of the motor 1. a ,I b and I c , we can only sample I a ,I b , according to I a ,I b and I c The sum of is zero and I is calculated c .

[0032] Figure 3 is a flow chart of a motor control method according to some examples of the present application, which can be implemented by a motor control system based on a three-level inverter. Figure 3 As shown, in step S300, the phase difference between the input voltage input to the motor by the motor control system and the first sampled current sampled from the motor is determined. Figure 1 The voltage V transmitted from the motor control system 2 to the motor 1 a 、V b and V c The three-phase current I sampled from the motor a ,I b and I c The phase difference between the first sampling current I a ,I b and I cThe first sampling current is a three-phase current, and the second sampling current is a two-phase current under a two-axis system. In step S301, the first sampling current is transformed into a second sampling current using the determined phase difference and the sum of the first compensation angle as the total compensation angle. In step S302, the second sampling current is transformed into a corresponding sampling voltage, that is, a two-axis voltage corresponding to the second sampling current is generated. In step S304, the transformed sampling voltage, that is, the two-axis voltage is transformed into a three-phase input voltage to be input to the motor.

[0033] It should be understood that, as a closed-loop control system, the input voltage used to generate the phase difference and the three-phase input voltage subsequently converted from the two-axis voltage are both input voltages input to the motor by the motor system, but they are input voltages input to the motor at different times. The input voltage used to generate the phase difference is a set of input voltages that are earlier than the three-phase input voltages input to the motor converted from the two-axis voltage, that is, the phase difference is generated based on the voltage input voltage previously input to the motor, and the phase difference is then used as part of the compensation angle to generate the current and voltage under the two-axis system, and finally converted into the three-phase input voltage that is subsequently input to the motor.

[0034] In combination Figure 3 In the control method described for controlling a motor, the phase difference is caused by the delay of the inductive load of the motor body, which is related to the power factor of the motor itself, and the power factor can be determined by the second sampled current and the second axis voltage under the two-axis system.

[0035] For a motor control system based on a three-level inverter, the rotor angle is estimated when no sensor is used to sense the rotor angle. In this case, the estimation error will cause the calculation result to be less accurate. According to the motor control method of the example of the present application, the angle error caused by the phase difference between the input voltage and the sampled current and the first systematic delay is introduced as compensation into the originally estimated rotor angle, so that the estimation of the second sampled current is more accurate and the control process of the entire motor is more precise.

[0036] Figure 4 According to this application Figure 3 Flow chart of some exemplary methods of step S301 in FIG. Figure 4 As shown, in step S3010, the first sampled current is converted into a two-axis system through a first transformation to obtain an intermediate current of the two-axis system. a ,I b and I c Get the variables in the two-axis coordinate system (α-β axis system), the α-axis current I α and β-axis current I β , where the current I α and current I βare mutually orthogonal time-varying currents. In step S3012, the sum of the phase difference and the first compensation angle is used as the total compensation angle, and the two-axis system is rotated by the second transformation to transform the obtained intermediate current into the second sampled current. For example, according to the total compensation angle, the two-axis system is rotated to align with the rotor flux of the motor. The α-axis current I α and β-axis current I β Here, the orthogonal current is transformed into the rotating coordinate system, that is, the direct axis (d axis) current I d and the quadrature axis (q axis) current I q .

[0037] As an example, the first transformation is Clark transformation and the second transformation is Park transformation. It should be noted that although in the examples of the present application, the first transformation and the second transformation are Clark transformation and Park transformation respectively, in actual applications, other transformation methods that can transform the first sampling current from a three-phase current to a two-axis system may be used.

[0038] Figure 3 According to the control method for controlling the motor shown, in combination with Figure 4 In the example of , the sampling voltage corresponding to the second sampling current in step S302 is the direct axis voltage V d and the quadrature axis voltage V q The second sampling current is converted into a direct axis voltage V through PI control. d and the quadrature axis voltage V q PI control exemplarily includes an outer loop for controlling the motor speed and an outer loop for controlling the transformed current I d and I q The inner ring.

[0039] Figure 3 A specific implementation process of step S304 in Figure 5 In step S3040, the direct axis voltage Vd and the quadrature axis voltage Vq are transformed into two-axis voltage V in the α-β coordinate system by the third transformation. α and V β , which can be called the middle two-phase voltage. Here, the third transformation example is Park inverse transformation. Then, in step S3042, the two-axis voltage is transformed into a three-phase input voltage input to the motor. The α-axis voltage V α and β-axis voltage V β Converted to voltage V a 、V b and V c , applied to the motor.

[0040] According to some examples of the present application, the phase difference can be calculated by formula (1):

[0041]

[0042] Where Phi is the phase difference, I d is the direct axis current, U d is the direct axis voltage, I q is the quadrature axis current, U q is the quadrature axis voltage, IEfc is the three-phase current I a ,I b and I c Valid values.

[0043] The first compensation angle is the angle compensation for the first systematic delay caused by the motor control system. Figure 1 and Figure 2 In the space vector pulse width modulation of the three-level inverter, after a series of vector calculations and conversions, the voltage V output to the motor by the motor control system based on the three-level inverter is a 、V b and V c , after acting on the motor, the motor current I is sampled a ,I b and I c , and then the current I a ,I b and I c Feedback to the motor control system, thus forming a closed-loop control. In this process, the duty cycle can only be calculated after the current sampling is completed, and the calculated duty cycle can only take effect on the inverter in the next sampling cycle, thus causing a one-beat delay due to the digital control itself. This article refers to such control delay caused by the digital control of the motor closed-loop control system itself as the first systematic delay caused by the motor control system.

[0044] According to the example of the present application, the error caused by the first systematic delay is eliminated by the first compensation angle. Equation (2) is the equivalent transfer function of the first systematic delay, which is a first-order inertia link, and the delay time is a sampling period Ts:

[0045]

[0046] Based on the equivalent transfer function (2), the Bode diagram analysis of the first-order inertia link can keep the input signal amplitude unchanged and reduce the output signal amplitude to the maximum value by changing the frequency. times the maximum value The phase-frequency characteristic lag angle corresponding to times (i.e., the cut-off frequency) is used as the first compensation angle.

[0047] Taking Ts as 0.1 seconds and frequency f as 10 Hz as a specific example, the equivalent transfer function (2) is:

[0048]

[0049] Figure 6 The Bode diagram simulation analysis of the first-order inertia link of this specific example is shown. Figure 6 As shown in the figure, the horizontal axis is the frequency of the output signal, the vertical axis of the upper graph is the baud value, and the vertical axis of the lower graph is the phase. Keeping the input signal amplitude unchanged and changing the input signal frequency, the output signal amplitude is reduced to the maximum value. That is, the -3dB point, which is the cutoff frequency. Figure 6 In the lower figure, the phase-frequency characteristic of the -3dB point of the amplitude-frequency characteristic lags by 45° (-45°), and 45° is used as the first compensation angle.

[0050] According to some examples of the present application, the error caused by the second systematic delay will also be compensated, that is, the second compensation angle is introduced, so that the total compensation angle is the sum of the phase difference, the first compensation angle and the second compensation angle. The second systematic delay is caused by the motor control system hardware itself. It should be understood that after the motor control system design is completed, the duration of the second systematic delay is fixed. Therefore, the second compensation angle used to eliminate the second systematic delay can be determined after the system design is completed, or in other words, the size of the second compensation angle depends on the system hardware itself and can be determined after the system design is completed, so that it is introduced as compensation in subsequent calculations.

[0051] As described above in conjunction with the accompanying drawings, the control method for controlling a motor according to an example of the present application collects, for example, the three-phase stator current I of the motor. a ,I b and I c , transform them into a two-axis coordinate system, and then rotate the two-axis coordinate system to obtain I d and I q According to I d ,I q 、V d and V q The phase difference is calculated. The sum of the phase difference, the first compensation angle for the first systematic delay caused by the system digital conversion, and the second compensation angle for the second systematic delay caused by the hardware design itself is used as the total compensation angle and introduced into the next I d and I q , making the subsequent PI control and the transformation of two-axis to three-phase voltage more accurate, easier to generate the desired voltage, and more accurate control system.

[0052] According to some examples of the present application, the control method for controlling the motor may further include constructing a mapping relationship between the total compensation angle and the rated current and rated speed of the motor, and storing it in the control system. In some cases, the compensation angle may be determined from the mapping table according to the rated current and rated speed of the motor. Generally, it is preferred to calculate the compensation angle in real time in the control method described above in conjunction with the accompanying drawings.

[0053] Figure 7 is a structural diagram of a motor control system based on a three-level inverter according to an example of this application. Figure 7 As shown, the control system includes a compensation angle calculation unit 70, a first processing unit 71, a second processing unit 72, and a third processing unit 73. The compensation angle calculation unit 70 is used to calculate the sum of the phase difference and the first compensation angle between the input voltage input to the motor by the motor control system and the first sampling current sampled from the motor. The phase difference and the first compensation angle have been described above in conjunction with the control method and will not be repeated here. The first processing unit 71 is used to transform the first sampling current into the second sampling current using the sum of the phase difference and the first compensation angle as the total compensation angle. The second conversion unit 72 is used to transform the second sampling current into a corresponding sampling voltage. The third conversion unit 73 is used to generate an input voltage to be input to the motor from the transformed sampling voltage.

[0054] According to some examples of the present application, the first processing unit 71 includes a first converter 710 and a second converter 712. The first converter 710 converts the first sampled current into a two-axis coordinate system by a first conversion to obtain an intermediate current. The second converter 712 converts the intermediate current into a second sampled current by a second conversion based on the total compensation angle, and the second sampled current is a direct axis current and a quadrature axis current. As an example, the first conversion is a Clark conversion, and the second conversion is a Park conversion.

[0055] According to some examples of the present application, the compensation angle calculation unit 70 is configured to calculate the sum of the phase difference, the first compensation angle and the second compensation angle, and the sum is used as the total compensation angle. As an example, the compensation angle calculation unit 70 may include a first unit 701, a second unit 702 and a third unit 703. The first unit 701 is used to calculate the phase difference according to the second sampled current and the sampled voltage. It can be understood that the moment when the first unit 701 calculates the phase difference is Tcurrent, but the second sampled current and the sampled voltage used to calculate the phase difference are determined based on the three-phase voltage before the moment Tcurrent and the corresponding three-phase current collected. The second unit 702 is used to obtain the first compensation angle and the second compensation angle, and the first compensation angle and the second compensation angle have been described above and will not be repeated. It should be understood that the first compensation angle can be determined according to the process of determining the first compensation angle described above, and the second compensation angle is a predetermined fixed value. The third unit 73 sums the phase difference, the first compensation angle, and the second compensation angle, and outputs their sum as the total compensation angle, so that the motor control system uses the sum as compensation for the rotor angle when transforming the next second sampled current.

[0056] Figure 7 The control system for controlling the motor shown can be used to implement the above combined Figures 3 to 6 Any one of the control methods described in . For example, the compensation angle calculation unit 70 calculates the phase difference and the sum of the phase difference and the first compensation angle (S300), and the first conversion unit 71 uses the sum of the phase difference and the first compensation angle as the total compensation angle to convert the first sampling current into the second sampling current (S301) as the second sampling current. The second conversion unit 72 converts (S302) the second sampling current into a corresponding sampling voltage. The third conversion unit 73 converts (S304) the converted sampling voltage into an input voltage input to the motor. The first sampling current, the first conversion, the second sampling current, the second conversion, the sampling voltage, the third conversion, etc. have all been explained above and will not be repeated for the sake of brevity.

[0057] Combination Figure 7 The control system for controlling the motor described can be implemented as a software module, which can be incorporated into an existing controller in an existing electric control system based on a three-level inverter, or an existing component for estimating the rotor angle. Alternatively, it can also be implemented as a separate controller in a combination of software and hardware, and then incorporated into an electric control system based on a three-level inverter.

[0058] According to some examples of the present application, another motor control system based on a three-level inverter is also provided, the system comprising a memory storing instructions and a controller. The controller is configured to implement the control method described above when executing the instructions.

[0059] The present application also provides a controller, which can be set in a motor control system based on a three-level inverter. The controller is configured to implement the control method described above when executing instructions stored in a memory.

[0060] Figure 8 The schematic diagram of the structure of an existing motor control system based on a three-level inverter is shown in FIG. As shown in the figure, the motor control system includes a three-level space vector modulator (SvPwm) 22, a Clark converter 24, a Park converter 26, a speed estimator 28, a PI controller 20 and a Park inverse converter 27.

[0061] The three-level space vector modulator 22 applies a voltage V a 、V b and V c To the motor 1. The Clark converter 24 collects the first sampled current I from the motor 1 a ,I b and I c Converted to α-axis current I α and β-axis current I β The α-axis current I α and β-axis current I β is transmitted to the Park converter 26 to be converted into a d-axis current I d and q-axis current I q The speed estimator 28 is based on the parameters in the α-β coordinate system, the current I α 、Current I β , voltage V α , voltage V β The angular velocity ω and the motor rotor angle θ are determined. The angular velocity ω is transmitted to the PI controller 20, and the rotor angle θ is introduced into the Park converter 26 so as to be converted into I according to formula (3): d and I q :

[0062]

[0063] Wherein, θ is the rotor angle of motor 1.

[0064] The PI controller 20 includes an outer loop controller 201 for controlling the motor speed and a controller 202 for controlling the converted current I d and I q The inner loop controller 202. After the PI controller 20, the current I d and I q Converted into two-axis voltage V d and V q, and finally converted into a three-phase voltage input to the motor 1 through the Park inverter 27 and the three-level space vector modulator (SvPwm) 22.

[0065] Fig. 9 is a schematic diagram of a motor control system based on a three-level inverter according to an example of the present application. Figure 8 In comparison, the motor control system of the present application example includes a processing module 30 in addition to a three-level space vector modulator (SvPwm) 22 ′, a Clark converter 24 ′, a Park converter 26 ′, a speed estimator 28 ′, a PI controller 20 ′ and a Park inverse converter 27 ′.

[0066] The processing module 30 is configured to calculate the phase difference (refer to formula (1)) based on the direct-axis current, direct-axis voltage, quadrature-axis current, and quadrature-axis voltage transformed by the Park converter 26', and to calculate the sum of the phase difference and the first compensation angle and the second compensation angle, and transmit the sum to the Park converter 26', so that the Park converter 26' combines the sum as the total compensation angle with the rotor angle θ estimated by the speed estimator 28' to transform the next direct-axis current and quadrature-axis current. That is, according to each example of the present application, when performing the second transformation or more specifically, when performing the Park transformation, the angle used is the motor rotor angle used by the motor control system with the compensation angle added, that is, the rotor angle θ in the above formula (3) is corrected to the sum of θ and the total compensation angle. In this way, the angle error caused by the phase difference and the systematic delay of the motor can be compensated.

[0067] The processing module 30 can be implemented as a software module and can be incorporated into, for example, the speed estimator 28' or the Park converter 26'. Alternatively, the processing module 30 can be implemented as a software program in a separate hardware such as a controller and electrically connected to other systems in the system, wherein such a controller can only implement the required computing functions, for example, a separate processor such as a single chip microcomputer, a DSP, etc.

[0068] Combination of the above Figures 3 to 6 Each of the control methods described can be implemented in, for example, Fig. 9 In the motor control system based on the three-level inverter shown in the example. Fig. 9 and Figures 3 to 6 The processing module 30 calculates the phase difference, and calculates the sum of the phase difference, the first compensation angle and the second compensation angle (S300). The sum is used as the total compensation angle, and the first sampling current is converted into the second sampling current (S301) by the Clark converter 24' and the Park converter 26'. Specifically, the Clark converter 24' converts (S3010) the first sampling current into the α-axis current I in the two-axis coordinate system (α-β axis system)α and β-axis current I β , and the Park converter 26' converts the current I α and current I β Convert (S3012) to direct axis (d axis) current I d and the quadrature axis (q axis) current I q The PI controller 20' converts the second sampled current into a corresponding sampled voltage, that is, generates a two-axis voltage corresponding to the second sampled current (S302). Specifically, the PI controller 20' controls the motor speed by controlling the outer loop controller 201' and the converted current I d and I q The inner loop controller 202' iteratively calculates and generates the direct axis voltage V d and the quadrature axis voltage V q The Park inverter 27' converts the direct-axis voltage V d and the quadrature axis voltage V q Transform (S3040) to V α and V β It should be understood that in the Park inverse transformation process, the angle parameter used is consistent with the angle parameter used in the Park transformation (the sum of the rotor angle θ and the total compensation angle); it is then converted (S3042) into a three-phase input voltage (S304) to be input to the motor through a three-level space vector modulator (SvPwm) 22'.

[0069] and Figure 8 Compared with the existing motor control system shown in FIG. 1 , according to the motor control system of the present application, in the three-phase current to two-axis (for example, Park transformation), the delay caused by the phase difference, the first systematic delay and the second systematic delay are taken into account, so that the corresponding compensation angle is introduced into the transformation calculation to eliminate the error caused by the delay, so that the motor control system based on the transformed I d and I q Finally, a voltage that is more in line with expectations can be obtained. Angle compensation makes the three-phase voltage of the three-phase level inverter in the closed-loop control system more in line with the expected voltage value, which makes the motor have lower power consumption, higher efficiency and better dynamic stability performance.

[0070] According to some examples of the present application, the motor control system may further include a memory, such as Fig. 9The memory 32 indicated by the dotted line in the figure is used to store the mapping relationship between the rated current, the rated speed and the total compensation angle. The total compensation angle here is the sum of the phase difference and the first compensation angle described above, or in some examples, the total compensation angle is the sum of the phase difference, the first compensation angle and the second compensation angle. The mapping relationship can be constructed in an appropriate manner (for example, in an appropriate data structure manner) and stored. In some possible cases, the corresponding total compensation angle can be determined from the mapping table according to the rated current and the rated speed of the motor.

[0071] When the methods according to the examples of the present application are adopted by a motor control system or when the motor control system according to the present application is used or when the motor control system and the processor according to the present application are combined with an existing motor system, a more comprehensive angle compensation can be provided to the control system without using a sensor to sense the angle, so as to compensate for the error in the estimated rotor angle. Figures 3 to 6 The described approach is applied, for example, to Figure 8 In the existing motor control system, or according to the processor of the example of this application, or Figure 7 The motor control system shown is combined with, for example, Figure 8 In the existing motor control system shown.

[0072] The present application also provides a power battery system, which includes any one of the motor control systems based on the three-level inverter as described above, or includes a motor control system based on the three-level inverter that adopts the motor control method or motor control system as described above, or a motor control system based on the three-level inverter that adopts the controller as described above.

[0073] Although specific embodiments of the present application have been shown and described in detail to illustrate the principles of the present application, it should be understood that the present application can be implemented in other ways without departing from such principles.

Claims

1. A motor control method, applied to a motor control system based on a three-level inverter, characterized in that: The method comprises: determining a phase difference between an input voltage inputted to a motor by the motor control system and a first sampled current sampled from the motor; Using the sum of the phase difference and the first compensation angle as the total compensation angle, transforming the first sampling current into the second sampling current; converting the second sampling current into a corresponding sampling voltage; and generating the input voltage to be input to the motor based on the transformed sampled voltage; Wherein, the second sampled current and the sampled voltage are respectively two-phase current and voltage in a two-axis coordinate system; The first compensation angle is an angle compensation for a first systematic delay caused by the motor control system.

2. The motor control method according to claim 1, characterized in that: The method of converting the first sampling current into the second sampling current by taking the sum of the phase difference and the first compensation angle as the total compensation angle comprises: The first sampling current is transformed into a two-axis coordinate system by a first transformation to obtain an intermediate current; The intermediate current is transformed into a second sampling current by a second transformation based on the total compensation angle, and the second sampling current includes a direct-axis current and a quadrature-axis current.

3. The motor control method according to claim 2, characterized in that: The first transformation is a Clark transformation, the second transformation is a Park transformation, and the sampling voltage is a direct-axis voltage and a quadrature-axis voltage obtained by transforming the direct-axis current and the quadrature-axis current; And generating the input voltage to be input to the motor based on the transformed sampled voltage comprises: The direct-axis voltage and the quadrature-axis voltage are transformed into intermediate two-phase voltages by Park inverse transformation; as well as The intermediate two-phase voltage is converted into the input voltage.

4. The motor control method according to claim 3, characterized in that: The phase difference is calculated according to the following formula: Where Phi is the phase difference, I d is the direct axis current, I q is the quadrature axis current, V d is the direct axis voltage, V q is the quadrature-axis voltage, and IEfc is the effective value of the first sampling current.

5. The motor control method according to any one of claims 1 to 4, characterized in that: The equivalent transfer function of the first systematic delay is a first-order inertia link, and the value of the first compensation angle is equal to the lag angle of the phase frequency corresponding to the cutoff frequency in the Bode diagram of the first-order inertia link.

6. The motor control method according to claim 5, characterized in that: The total compensation angle also includes a second compensation angle, which is an angle compensation for a second systematic delay caused by the motor control system.

7. The motor control method according to claim 1, characterized in that: A mapping relationship between the total compensation angle and the rated current and rated speed of the motor is constructed and stored in the motor control system.

8. A motor control system based on a three-level inverter, characterized in that: The system comprises: a compensation angle calculation unit, configured to calculate a sum of a phase difference between an input voltage inputted to the motor by the motor control system and a first sampled current sampled from the motor and a first compensation angle; A first processing unit, configured to transform the first sampling current into a second sampling current by taking the sum of the phase difference and the first compensation angle as a total compensation angle; A second processing unit, used for converting the second sampling current into a corresponding sampling voltage; a third processing unit, configured to generate the input voltage to be input to the motor from the transformed sampled voltage; Wherein, the second sampled current and the sampled voltage are respectively two-phase current and voltage in a two-axis coordinate system; The first compensation angle is an angle compensation for a first systematic delay caused by the motor control system.

9. The motor control system based on the three-level inverter according to claim 8, characterized in that: The compensation angle calculation unit is configured to calculate the sum of the phase difference, the first compensation angle and the second compensation angle, and input the sum to the first unit, wherein the second compensation angle is an angle compensation for a second systematic delay caused by the motor control system.

10. A motor control system based on a three-level inverter, characterized in that: The control system comprises a memory storing instructions and a controller, wherein the controller is configured to implement the method according to any one of claims 1 to 7 when executing the instructions.

11. A motor control system based on a three-level inverter, comprising a three-level inverter space vector pulse width modulator, a Clark converter, a Park converter, a PI controller, and an inverse Park converter, characterized in that: The control system further comprises: a processing module configured to calculate a phase difference according to the direct-axis current, the direct-axis voltage, the quadrature-axis current, and the quadrature-axis voltage transformed by the Park converter, and transmit the sum of the phase difference, the first compensation angle, and the second compensation angle to the Park converter; The Park converter is configured to convert the sum into a direct-axis current and a quadrature-axis current by using the sum as a total compensation angle; Wherein, the phase difference is the phase difference between the input voltage input to the motor by the three-level inverter space vector pulse width modulator and the sampled current sampled from the motor; Wherein, the first compensation angle is an angle compensation for a first systematic delay caused by the motor control system, and the equivalent transfer function of the first systematic delay is a first-order inertia link; The second compensation angle is an angle compensation for a second systematic delay caused by the motor control system.

12. The motor control system based on the three-level inverter according to claim 11, characterized in that: The processing module is configured to determine the first compensation angle based on a lag angle of a phase frequency corresponding to a cutoff frequency in a Bode diagram of the first-order inertia link.

13. The motor control system based on the three-level inverter according to claim 12, characterized in that: The system also includes a memory for storing a mapping relationship between the compensation angle and a rated current and a rated voltage of the motor.

14. A power battery system, characterized in that: The power battery system includes a motor control system based on a three-level inverter to which the motor control method described in any one of claims 1 to 7 is applied, or includes a control system as described in claim 10, or includes a motor control system based on a three-level inverter as described in any one of claims 11 to 13.