Motor control method and system and storage medium

By calculating the current harmonic factor and speed factor of the motor, combining the bus voltage, and using SVPWM for motor control, the problem of balance between the motor output power and current harmonic noise is solved, and the motor performance is improved.

CN118900061APending Publication Date: 2024-11-05GZK INTELLIGENT POWER TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410944720.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

The existing motor control methods are difficult to balance between increasing output power and reducing current harmonic noise, especially at medium and high speeds, where there are limitations and risks.

Method used

By calculating the current harmonic factor and speed factor of the motor, combining the bus voltage, dynamically adjusting the voltage amplitude and voltage limit value, and using space vector pulse width modulation (SVPWM) for motor control, the motor is achieved to balance the motor output power and current harmonic noise. .

Benefits of technology

On the basis of meeting the current harmonic conditions, the available voltage of the motor is increased, the balance between the motor output power and current harmonic noise is achieved, the control error is reduced, the limitation of a single control means is avoided, and the overall motor is improved performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118900061A_ABST
    Figure CN118900061A_ABST
Patent Text Reader

Abstract

The invention discloses a motor control method and system and a storage medium, and relates to the technical field of electric drive, and the motor control method comprises the steps: obtaining a current value of a motor, and calculating the current value to obtain a harmonic factor; obtaining the current rotating speed and the number of pole pairs of the motor, and calculating a speed factor based on the current rotating speed and the number of pole pairs of the motor; if the current value exceeds the preset harmonic current value, the speed factor, the harmonic factor and the bus voltage are combined to calculate the voltage amplitude, and the bus voltage is the voltage of a bus supplying power to the motor; and based on the voltage amplitude, calculating to obtain a voltage limit value, and performing motor control through the voltage limit value. According to the invention, the balance between the output voltage and the output power and the current harmonic in the motor control can be realized, and the closed-loop control of the motor can be realized according to the power or harmonic output level expected by an engineer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electric drive technology, and in particular to a motor control method, system and storage medium. Background Art

[0002] In motor control, the maximum power that the motor can output is limited by the maximum voltage that the inverter can output. In order to increase the output voltage, it is usually achieved by increasing the available voltage of the current regulator or combining it with an overmodulation algorithm. However, as the available voltage increases, the output voltage is no longer a complete sine wave, and the voltage harmonics and current harmonics increase accordingly, and the vibration noise of the motor also increases. Therefore, the natural mutual exclusion between the available voltage of the inverter and the harmonic noise of the motor is an inherent problem of motor control.

[0003] At present, the following three methods are usually used for motor control. The first method is to let the motor run in the linear working area to reduce the motor harmonics, but the voltage utilization rate of the motor is reduced and the maximum power that can be output is limited. The second method is to use the overmodulation algorithm to increase the available voltage, but the output harmonics of the motor will increase nonlinearly. The third method is to reduce the motor harmonics through harmonic injection or harmonic suppression algorithms, but because of the need to control high-frequency signals, this method is limited by the motor and cannot be used at medium and high speeds. If multiple harmonic current regulators are added, multiple PI parameters need to be adjusted, and the sources of the output voltage increase, which has certain limitations and risks.

[0004] Therefore, how to increase the available voltage of the motor on the basis of meeting the current harmonic conditions and achieve a balance between the motor output power and the current harmonic noise is a problem that needs to be solved urgently. Summary of the invention

[0005] The main purpose of the present application is to provide a motor control method, system and storage medium, aiming to solve the technical problem of balancing the motor output power and the current harmonic noise level.

[0006] To achieve the above object, the present application provides a motor control method, the motor control method comprising:

[0007] Acquire the current value of the motor, and obtain the harmonic factor by calculating the current value;

[0008] Obtaining a current rotation speed and a number of motor pole pairs of the motor, and calculating a speed factor based on the current rotation speed and the number of motor pole pairs;

[0009] If the current value exceeds the preset harmonic current value, the voltage amplitude is calculated by combining the speed factor, the harmonic factor and the bus voltage, where the bus voltage is the voltage of the bus supplying power to the motor;

[0010] Based on the voltage amplitude, a voltage limit value is calculated, and the motor is controlled by the voltage limit value.

[0011] In one embodiment, the step of obtaining the harmonic factor by calculating the current value includes:

[0012] The current value is subjected to Clark transformation and Park transformation according to the current motor angle to obtain a direct-axis current feedback value and a quadrature-axis current feedback value;

[0013] Receiving an input current instruction and filtering out a direct-axis fundamental current in the direct-axis current feedback value and a quadrature-axis fundamental current in the quadrature-axis current feedback value to obtain a direct-axis harmonic current value and a quadrature-axis harmonic current value, wherein the current instruction includes a direct-axis current instruction and a quadrature-axis current instruction;

[0014] Performing park coordinate transformation on the direct-axis harmonic current value and the quadrature-axis harmonic current value respectively to obtain harmonic current preprocessing values, wherein the harmonic current preprocessing values ​​include preprocessing values ​​of the direct-axis harmonic current value at the 5th, 7th, 11th and 13th harmonic currents, and preprocessing values ​​of the quadrature-axis harmonic current value at the 5th, 7th, 11th and 13th harmonic currents;

[0015] Performing weighted calculation on the harmonic current preprocessing value to obtain a weighted harmonic current value;

[0016] Subtracting a preset harmonic current value from the weighted harmonic current value to obtain a harmonic difference value;

[0017] If the harmonic difference is greater than zero, the harmonic factor is obtained by calculating the proportional gain and the integral gain of the harmonic difference.

[0018] In one embodiment, the step of performing weighted calculation on the obtained harmonic current preprocessing value to obtain a weighted harmonic current value includes:

[0019] Determine the corresponding weighting coefficients by the proportion of the effects of the 5th, 7th, 11th and 13th harmonic currents, wherein the weighting coefficients include a first weighting coefficient corresponding to the 5th harmonic current, a second weighting coefficient corresponding to the 7th harmonic current, a third weighting coefficient corresponding to the 9th harmonic current, a fourth weighting coefficient corresponding to the 11th harmonic current, and a fifth weighting coefficient corresponding to the 13th harmonic current;

[0020] The weighted coefficient is combined with the harmonic current preprocessing value to perform weighted calculation to obtain a weighted harmonic current value.

[0021] In one embodiment, the system of the motor includes a controller;

[0022] The step of calculating the speed factor based on the current speed and the number of motor pole pairs also includes:

[0023] The actual electrical frequency is calculated by using the current rotation speed and the number of motor pole pairs;

[0024] The effective switching frequency of the controller is calculated according to the controller algorithm;

[0025] Calculating the ratio of the effective switching frequency to the actual electrical frequency to obtain an actual carrier ratio;

[0026] The preset carrier ratio range is compared with the actual carrier ratio to obtain the speed factor.

[0027] In one embodiment, the step of calculating the effective switching frequency of the controller according to the algorithm of the controller includes:

[0028] If the controller uses a random PWM pulse width modulation wave algorithm, the effective switching frequency is the average of the maximum switching frequency and the minimum switching frequency of the random PWM wave algorithm;

[0029] If the controller does not use a random PWM wave algorithm, the effective switching frequency is a PWM switching frequency fixed by the controller.

[0030] In one embodiment, if the current value exceeds the preset harmonic current value, the step of calculating the voltage amplitude by combining the speed factor, the harmonic factor and the bus voltage comprises:

[0031] By means of the bus voltage, a limiting motor phase voltage and a maximum motor phase voltage are calculated;

[0032] The voltage amplitude is calculated by combining the limiting motor phase voltage and the maximum motor phase voltage with a speed factor and a harmonic factor.

[0033] In one embodiment, when the motor speed and the motor torque are in the same direction, the motor is in a motoring state, and when the motor speed and the motor torque are in opposite directions, the motor is in a generating state, and the voltage limit value includes a quadrature-axis voltage limit value and a direct-axis voltage limit value;

[0034] Based on the voltage amplitude, the step of calculating the voltage limit value comprises:

[0035] When the motor is in the motoring state, the voltage amplitude is used as the voltage limit value of the direct axis to limit the voltage of the direct axis, and the limited direct axis limit voltage is output;

[0036] The quadrature axis voltage limit value is obtained by combining the direct axis limit voltage and the voltage amplitude after output limitation to calculate;

[0037] When the motor is in the power generation state, the voltage amplitude is used as the voltage limit value of the quadrature axis to limit the quadrature axis voltage, and the quadrature axis limit voltage after the limit is output;

[0038] The direct-axis voltage limit value is obtained by calculating the quadrature-axis limit voltage and the voltage amplitude after output limitation.

[0039] In one embodiment, the system of the motor includes a controller;

[0040] The step of controlling the motor by using the voltage limit value comprises:

[0041] Performing triangular coordinate transformation on the direct-axis limiting voltage and the quadrature-axis limiting voltage to obtain an α-axis limiting voltage and a β-axis limiting voltage;

[0042] The α-axis limiting voltage and the β-axis limiting voltage are combined with the bus voltage to perform space vector pulse width modulation (SVPWM) operation to obtain a duty cycle output, wherein the SVPWM operation includes selecting a sector calculation method or a third harmonic injection method;

[0043] The duty cycle output is input to a controller for motor control.

[0044] In addition, to achieve the above-mentioned purpose, the present application also provides a motor control system, which includes a controller and a motor; the controller is used to execute the steps of the motor control method as described above.

[0045] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a program for implementing the motor control method is stored on the computer-readable storage medium. The program for implementing the motor control method is executed by a processor to implement the steps of the motor control method as described above.

[0046] The present application provides a motor control method, which first obtains the current value of the motor, and obtains the harmonic factor by calculating the current value, wherein the harmonic factor can reflect the main harmonic content of the motor; then obtains the current speed and the number of motor poles of the motor, and calculates the speed factor based on the current speed and the number of motor poles, wherein the speed factor can reflect the fast speed of the motor; then, if the current value exceeds the preset harmonic current value, the voltage amplitude is calculated by combining the speed factor, the harmonic factor and the bus voltage, wherein the bus voltage is the voltage of the bus supplying power to the motor, and when the current harmonic exceeds the acceptable range preset by the engineer, the voltage amplitude reflects the motor phase voltage under the influence of the speed and the size of the harmonics; finally, based on the voltage amplitude, the voltage limit value is calculated, and the motor is controlled by the voltage limit value.

[0047] In summary, the present application combines the harmonic factor and the speed factor, comprehensively considers the errors caused by the harmonics and the speed to the motor control, overcomes the technical defect that the motor cannot be well controlled due to the single control method, and increases the available voltage of the motor on the basis of meeting the current harmonic conditions, thereby achieving a balance between the motor output power and the current harmonic noise, achieving the effect of closed-loop control of the motor while meeting the power or harmonic output level expected by the engineer. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0050] Figure 1 A schematic diagram of a flow chart provided for an embodiment of a motor control method of the present application;

[0051] Figure 2 A schematic diagram of a simplified flow chart of a method for calculating harmonic factors provided in an embodiment of the motor control method of the present application;

[0052] Figure 3 A schematic diagram of a simplified flow chart of a speed factor calculation method provided in an embodiment of the motor control method of the present application;

[0053] Figure 4 A schematic diagram of a simplified flow chart of a voltage limit calculation method provided in an embodiment of the motor control method of the present application;

[0054] Figure 5 A flowchart of a motor control method provided in accordance with an embodiment of the motor control method of the present application;

[0055] Figure 6 Schematic diagram of the structure of the motor control system in the embodiment of the present application.

[0056] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0057] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0058] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0059] The main solution of this application is: obtain the current value of the motor, and obtain the harmonic factor by calculating the current value; obtain the current speed and the number of motor poles of the motor, and calculate the speed factor based on the current speed and the number of motor poles; if the current value exceeds the preset harmonic current value, the voltage amplitude is calculated by combining the speed factor, the harmonic factor and the bus voltage, and the bus voltage is the voltage of the bus that supplies power to the motor; based on the voltage amplitude, the voltage limit value is calculated, and the motor is controlled by the voltage limit value.

[0060] At present, the following three methods are usually used for motor control. The first method is to let the motor run in the linear working area to reduce the motor harmonics, but the voltage utilization rate of the motor is reduced and the maximum power that can be output is limited. The second method is to use the overmodulation algorithm to increase the available voltage, but the output harmonics of the motor will increase nonlinearly. The third method is to reduce the motor harmonics through harmonic injection or harmonic suppression algorithms, but because of the need to control high-frequency signals, this method is limited by the motor and cannot be used at medium and high speeds. If multiple harmonic current regulators are added, multiple PI parameters need to be adjusted, and the sources of the output voltage increase, which has certain limitations and risks.

[0061] The present application obtains the current current harmonic size and speed size in real time, calculates the harmonic factor and speed factor used to calculate the voltage limit, and updates the voltage limit that can be output by the dq-axis current loop. In this way, the available voltage size of the motor is increased on the basis of satisfying the current harmonic conditions. By controlling the fundamental current, the technical defect of being unable to exert a good control effect on the motor due to a single control method is overcome, and a balance is achieved between the motor output power and the current harmonic noise size, achieving the power or harmonic output level expected by the engineer and realizing the effect of closed-loop control of the motor.

[0062] The motor control system is a system that can adjust the output power and harmonic noise of the motor. The motor control system usually consists of a motor, a controller, etc.

[0063] It should be noted that the execution subject of this embodiment may be a controller or a device with a control chip, and this embodiment does not specifically limit this. The following takes the controller as the execution subject as an example to illustrate this embodiment and the following embodiments.

[0064] Based on this, the present application proposes a motor control method of the first embodiment, please refer to Figure 1 , the motor control method comprises steps S10 to S40:

[0065] Step S10, obtaining the current value of the motor, and obtaining the harmonic factor by calculating the current value;

[0066] It should be noted that the current value of the motor refers to the three currents of the motor, and the harmonic factor refers to the parameter that reflects the magnitude of the harmonic noise.

[0067] The harmonic factor is a necessary condition for the subsequent calculation of the voltage limit value. By calculating the harmonic factor, there is no need to add multiple harmonic current regulators during motor control, reducing the restrictions on the motor control system and the risk of multiple harmonic regulation.

[0068] In a feasible embodiment, in step S10, the step of obtaining the harmonic factor by calculating the current value includes steps A10 to A60:

[0069] Step A10, performing Clark transformation and Park transformation on the current value according to the current motor angle to obtain a direct-axis current feedback value and a quadrature-axis current feedback value;

[0070] It should be noted that the current motor angle refers to the angle between the starting position and the current position of the motor rotor when the motor is started.

[0071] In addition, it should be noted that the Clark transform is a method of converting three-phase AC current or voltage into two orthogonal DC components (usually called the α-axis and the β-axis) and a zero-sequence component (usually ignored). The Park transform further converts the result of the Clark transform into a coordinate system that rotates synchronously with the motor rotor, usually called the d-axis (direct axis) and the q-axis (quadrature axis). This transformation helps to decouple the torque and flux control of the motor. The direct-axis current feedback value is the d-axis current value obtained after the park transform, and the quadrature-axis current feedback value is the q-axis current value obtained after the park transform.

[0072] Step A20, receiving an input current instruction and filtering out the direct-axis fundamental current in the direct-axis current feedback value and the quadrature-axis fundamental current in the quadrature-axis current feedback value to obtain a direct-axis harmonic current value and a quadrature-axis harmonic current value, wherein the current instruction includes a direct-axis current instruction and a quadrature-axis current instruction;

[0073] It should be noted that the current command refers to the current target value generated according to the control requirements. Here we need to construct a direct-axis current command with the same current value as the direct-axis fundamental current, and a quadrature-axis current command with the same current value as the quadrature-axis fundamental current.

[0074] It should also be noted that the direct-axis harmonic current value and the quadrature-axis harmonic current value obtained after filtering the fundamental current are harmonic currents, which are current components other than the fundamental frequency (i.e., the power frequency). These current components are usually high-order frequency signals generated by nonlinear loads, power electronic equipment, or transformers.

[0075] Step A30, performing park coordinate transformation on the direct-axis harmonic current value and the quadrature-axis harmonic current value respectively to obtain harmonic current preprocessing values, wherein the harmonic current preprocessing values ​​include preprocessing values ​​of the direct-axis harmonic current value at the 5th, 7th, 11th and 13th harmonic currents, and preprocessing values ​​of the quadrature-axis harmonic current value at the 5th, 7th, 11th and 13th harmonic currents;

[0076] It should be noted that park coordinate transformation refers to the inverse process of park transformation, that is, the conversion from the coordinate system of synchronous rotation of the motor rotor to the fixed coordinate system, where the angle of park transformation corresponds to the corresponding harmonic order, the 5th harmonic corresponds to an angle of -6theta, the 7th harmonic corresponds to an angle of 6theta, the 11th harmonic corresponds to an angle of -12theta, and the 13th harmonic corresponds to an angle of 12theta, where theta is the current motor angle.

[0077] It is understandable that the harmonic current preprocessing value cannot directly reflect the size of each harmonic, and cannot directly perform subsequent weighted calculation. It is necessary to perform low-pass filtering and extraction on the harmonic current preprocessing value of each harmonic current. The 5th, 7th, 11th, and 13th harmonics are direct current, and other fundamental waves and harmonics are high-frequency components. The size of each current harmonic can be obtained by low-pass filtering, and Id5, Iq5, Id7, Iq7, Id11, Iq11, Id13, and Iq13 can be obtained.

[0078] Further, Id5 is the harmonic magnitude of the 5th harmonic direct-axis current, Id7 is the harmonic magnitude of the 7th harmonic direct-axis current, and so on.

[0079] Step A40, performing weighted calculation on the harmonic current preprocessing value to obtain a weighted harmonic current value;

[0080] It should be noted that the weighted harmonic current value refers to the harmonic current value after weighted calculation, which comprehensively reflects the 5th, 7th, 11th and 13th harmonic currents.

[0081] In a feasible embodiment, step A40, performing weighted calculation on the harmonic current preprocessing value to obtain the weighted harmonic current value also includes steps A400-A401:

[0082] Step A400, confirming the corresponding weighting coefficients according to the proportion of the effects of the 5th, 7th, 11th and 13th harmonic currents, wherein the weighting coefficients include a first weighting coefficient corresponding to the 5th harmonic current, a second weighting coefficient corresponding to the 7th harmonic current, a third weighting coefficient corresponding to the 9th harmonic current, a fourth weighting coefficient corresponding to the 11th harmonic current, and a fifth weighting coefficient corresponding to the 13th harmonic current;

[0083] It should be noted that when the motors are different, the contribution of the 5th, 7th, 11th and 13th harmonic currents is not the same, and the weighting coefficients will also change. The weighting coefficients reflect the degree of influence of each harmonic current on the harmonic noise. The higher the weighting coefficients, the greater the degree of influence.

[0084] Step A401, performing weighted calculation on the weighted coefficient in combination with the harmonic current preprocessing value to obtain a weighted harmonic current value.

[0085] It should be noted that weighted calculation needs to be performed according to the weighted formula, which is as follows:

[0086] Ihar_thd=k5*sqrt(Id5*Id5+Iq5*Iq5)+k7*sqrt(Id7*Id7+Iq7*Iq7)+k11*sqrt(Id1

[0087] 1*Id11+Iq11*Iq11)+k13*sqrt(Id13*Id13+Iq13*Iq13);

[0088] Among them, Ihar_thd refers to the weighted harmonic current value, k5 is the first weighting coefficient, k7 is the second weighting coefficient, k9, k11, k13 and so on.

[0089] In one embodiment, k5=0.8*k7=0.5*k11=0.4*k13, and k5+k7+k11+k13=1. The equivalent relationship between the harmonic proportion coefficients is k5=0.8*k7=0.5*k11=0.4*k13. Under the premise of satisfying k5+k7+k11+k13=1, it can be modified according to the electromagnetic characteristics of the motor. The equivalent coefficients of 0.8, 0.5 and 0.4 proposed in this embodiment are for reference only, and this embodiment does not make any specific limitations on this.

[0090] This embodiment obtains the weighted harmonic current value through weighted calculation. It is only necessary to adjust the weighted harmonic current value without adjusting the harmonic currents of each order, thereby reducing the adjustment of PI parameters and reducing control restrictions and risks.

[0091] Step A50, subtracting a preset harmonic current value from the weighted harmonic current value to obtain a harmonic difference value;

[0092] It should be noted that the preset harmonic current value is the current value set by the engineer. The preset harmonic current value reflects the main harmonic content that the motor can receive under the current motor and electronic control equipment. For different motors, it can be modified according to the engineer's experience and needs. The harmonic difference is used to calculate the subsequent harmonic factor.

[0093] Step A60: If the harmonic difference is greater than zero, the harmonic factor is obtained by calculating the proportional gain and the integral gain of the harmonic difference.

[0094] It should be noted that the calculation of proportional gain and integral gain can be achieved through the PI controller, and the formula for calculating the harmonic factor is:

[0095] Khar=kph*Ihar_err+∫kih*Ihar_err;

[0096] Among them, Khar is the harmonic factor, kph is the proportional gain, kih is the integral gain, and Ihar_err is the harmonic difference.

[0097] It should be noted that Khar is limited to the range of 0-1 during calculation, and the sizes of kph and kih depend on the control loop delay of the controller. For example, kph=0.05-0.2 and kih=0.005-0.01 may be taken. Kph and kih need to be adjusted according to actual conditions, and this embodiment does not make specific limitations on this.

[0098] It is understandable that when the harmonic difference is a negative value, it indicates that the actual harmonic current is within an acceptable range. In this case, there is no need to control the harmonic current through the harmonic factor, so the harmonic difference is limited to a positive value.

[0099] This embodiment calculates the harmonic factor so that when controlling the motor, it does not rely on the high-order harmonic control of the current, thereby reducing the control difficulty. In addition, the preset harmonic current value set by the engineer is added during the calculation, so that the engineer can increase the flexibility of the motor control method of this embodiment by adjusting the harmonic factor.

[0100] For example, to help understand the technical concept or technical principle of the motor control method of this embodiment, please refer to Figure 2 , Figure 2 A brief flow chart of a harmonic factor calculation method is provided, as follows:

[0101] The first step is to obtain the direct-axis current feedback value and the quadrature-axis current feedback value by current adoption and coordinate transformation;

[0102] The second step is to obtain the direct-axis harmonic current value and the quadrature-axis harmonic current value by filtering the fundamental current;

[0103] The third step is to obtain the magnitude of 5, 7, 11, and 13 current harmonics by filtering out high-order harmonics. The specific process is to obtain the harmonic current preprocessing value through coordinate transformation. The 5, 7, 11, and 13 harmonic currents in the harmonic current preprocessing value are direct current, and the fundamental wave and other harmonics are high-frequency components. The magnitude of 5, 7, 11, and 13 current harmonics can be obtained through a low-pass filter.

[0104] The fourth step is to obtain the weighted harmonic current value by weighting the harmonic currents of 5, 7, 11, and 13;

[0105] The fifth step is to calculate the harmonic factor by adding the weighted harmonic current value and the harmonic current value preset by the engineer.

[0106] It should be noted that the above examples are only used to assist in understanding the present application and do not constitute a limitation on the motor control method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0107] Step S20, obtaining the current speed and the number of motor pole pairs of the motor, and calculating the speed factor based on the current speed and the number of motor pole pairs;

[0108] It should be noted that the current speed refers to the real-time speed of the motor rotor, and the number of motor pole pairs refers to the number of two poles with opposite magnetic field polarities in the motor. The speed factor reflects the influence of the current speed on the motor control. By introducing the speed factor, the control error can be reduced.

[0109] In a feasible embodiment, the system of the motor includes a controller;

[0110] The step of calculating the speed factor based on the current speed and the number of motor pole pairs in step S20 includes steps B10 to B40:

[0111] Step B10, calculating the actual electrical frequency through the current rotation speed and the number of motor pole pairs;

[0112] It should be noted that the actual electrical frequency, namely the synchronous frequency, is the frequency at which the current and angle of the motor change when the motor rotates synchronously.

[0113] It can be understood that the actual electrical frequency can be calculated by the following formula:

[0114] fmotor = Spd*p / 60;

[0115] Among them, fmotor refers to the actual electrical frequency, Spd refers to the current speed, and p refers to the number of motor pole pairs.

[0116] Step B20, calculating and obtaining the effective switching frequency according to the algorithm of the controller;

[0117] It should be noted that the effective switching frequency refers to the average frequency of PWM (Pulse Width Modulation). PWM controls the output voltage or current of the power device by adjusting the switching time ratio of the electrical signal.

[0118] Further, in a feasible embodiment, step B20, the step of calculating the effective switching frequency of the controller according to the algorithm of the controller includes steps B200-B201:

[0119] Step B200, if the controller uses a random PWM pulse width modulation algorithm, the effective switching frequency is the average of the maximum switching frequency and the minimum switching frequency of the random PWM algorithm;

[0120] It should be noted that the random PWM pulse width modulation algorithm is a special PWM technology that improves the performance indicators of the system by introducing randomness, such as reducing electromagnetic interference (EMI), reducing audio noise or improving the energy efficiency of the system. Since the switching frequency of the random PWM pulse width modulation algorithm is not fixed, the maximum switching frequency and the minimum switching frequency will be generated. The effective switching frequency is calculated by the following formula:

[0121] fact=(fmax+fmin) / 2;

[0122] Among them, fact refers to the effective switching frequency, fmax refers to the maximum switching frequency, and fmin refers to the minimum switching frequency.

[0123] Step B201: If the controller does not use a random PWM algorithm, the effective switching frequency is a PWM switching frequency fixed by the controller.

[0124] It should be noted that when the algorithm used is not a random PWM algorithm, the controller has a fixed PWM switching frequency, and the effective switching frequency at this time is equal to the fixed PWM switching frequency.

[0125] Step B30, calculating the ratio of the effective switching frequency to the actual electrical frequency to obtain an actual carrier ratio;

[0126] It should be noted that the actual carrier ratio reflects the duty cycle of the signal. When the speed of the motor increases, the carrier ratio of the motor control decreases, the accuracy of the motor control decreases, and the current harmonics will increase (the harmonic factor increases).

[0127] Step B40, comparing the preset carrier ratio range with the actual carrier ratio to obtain the speed factor.

[0128] It should be noted that the preset carrier ratio range will be divided into three intervals for comparison with the actual carrier ratio, namely, the actual carrier ratio is within the preset carrier ratio range, the actual carrier ratio is less than the preset carrier ratio range, and the actual carrier ratio is greater than the preset carrier ratio range. When the actual carrier ratio is greater than the preset carrier ratio range, the speed factor is 1; when the actual carrier ratio is less than the preset carrier ratio range, the speed factor is 0; when the actual carrier ratio is within the preset carrier ratio range, the speed factor is calculated by the following formula:

[0129] Kspd = (Mratio - a) / (A - a);

[0130] Where Kspd is the speed factor, Mratio is the actual carrier ratio, a is the minimum value of the preset carrier ratio range, and A is the maximum value of the preset carrier ratio range.

[0131] The preset carrier ratio range is not fixed and needs to be adjusted by the engineer according to the performance of the motor, that is, A and a can be adjusted.

[0132] For example, the magnitude of the speed factor is: when Mratio ≥ 18, the speed factor Kspd = 1; when 8 < Mratio < 18, Kspd = (Mratio - 8) / 10; when Mratio ≤ 8, Kspd = 0.

[0133] Where A = 18 and a = 8.

[0134] The above examples are only used to assist in understanding the present application and do not constitute a limitation on the motor control method of the present application. Based on this technical concept, more forms of simple transformations are within the protection scope of the present application.

[0135] To increase the motor speed, the motor needs to increase the operating voltage. At this time, the speed factor is used to adjust the balance between harmonic noise and voltage magnitude, taking into account the natural characteristics of the motor speed and the control carrier ratio, and avoiding unnecessary control errors.

[0136] Exemplarily, to assist in understanding the technical concept or technical principle of the motor control method of this embodiment, please refer to Figure 3 , Figure 3 A brief flow schematic diagram of a speed factor calculation method is provided as follows:

[0137] The first step is to calculate the rotational speed frequency through the current motor speed and the number of motor pole pairs;

[0138] The second step is to calculate the effective switching frequency through calculation;

[0139] The third step is to calculate the actual carrier ratio;

[0140] The fourth step is to calculate the speed factor according to the set carrier ratio range. If the speed factor is within the range, it is calculated according to the upper and lower limits of the range. If it is less than the lower limit of the carrier ratio range, the speed factor is 0, and if it is greater than the upper limit of the carrier ratio range, the speed factor is 1.

[0141] It should be noted that the above examples are only used to assist in understanding the present application and do not constitute a limitation on the motor control method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0142] Step S30, if the current value exceeds the preset harmonic current value, the voltage amplitude is calculated by combining the speed factor, the harmonic factor and the bus voltage, where the bus voltage is the voltage of the bus supplying power to the motor;

[0143] It should be noted that the voltage amplitude refers to the maximum value of the motor phase voltage that can be output under the influence of speed factor and harmonic factor. The bus refers to a group of conductive bars inside the motor, which connect the various windings of the motor and play the role of current distribution and collection.

[0144] In a feasible embodiment, if the current value exceeds the preset harmonic current value in step S30, the step of calculating the voltage amplitude by combining the speed factor, the harmonic factor and the bus voltage includes steps C10 to C20:

[0145] Step C10, calculating the limiting motor phase voltage and the maximum motor phase voltage through the bus voltage;

[0146] It should be noted that limiting the motor phase voltage refers to the theoretical maximum value that the motor phase voltage can reach when the current value exceeds the preset harmonic current value. The maximum motor phase voltage refers to the theoretical maximum value that the motor phase voltage can reach when the current value does not exceed the preset harmonic current value.

[0147] Among them, the maximum motor phase voltage is two-thirds of the bus voltage, which is approximately equal to 0.667 bus voltage.

[0148] When the motor winding is connected in star connection, the motor phase voltage is limited to the root of one-third of the bus voltage, which is approximately equal to 0.577 bus voltage.

[0149] Step C20, combining the limited motor phase voltage and the maximum motor phase voltage with a speed factor and a harmonic factor to calculate a voltage amplitude.

[0150] It can be understood that the voltage amplitude can be calculated according to the following formula:

[0151] Umax=(0.667-(0.667-0.577)*Khar*Kspd)*Udc;

[0152] Where Umax is the voltage amplitude, Udc is the bus voltage, Khar is the harmonic factor, and Kspd is the speed factor.

[0153] The calculation of the voltage amplitude comprehensively considers the harmonic factor and the speed factor, thereby ensuring the balance of the output voltage and current harmonics in the motor control method of this embodiment.

[0154] Step S40: Based on the voltage amplitude, a voltage limit value is calculated, and the motor is controlled by the voltage limit value.

[0155] In a feasible embodiment, when the motor speed and the motor torque are in the same direction, the motor is in a motoring state, and when the motor speed and the motor torque are in opposite directions, the motor is in a generating state, and the voltage limit value includes a quadrature-axis voltage limit value and a direct-axis voltage limit value;

[0156] The step of calculating the voltage limit value based on the voltage amplitude in step S40 includes steps D10 to D40:

[0157] Step D10, when the motor is in the motoring state, limiting the voltage of the direct axis by taking the voltage amplitude as the voltage limit value of the direct axis, and outputting the limited direct axis limit voltage;

[0158] Step D20, calculating by combining the direct-axis limiting voltage and the voltage amplitude after output limitation to obtain the quadrature-axis voltage limiting value;

[0159] Step D30, when the motor is in the power generation state, limiting the voltage of the quadrature axis by taking the voltage amplitude as the voltage limit value of the quadrature axis, and outputting the quadrature axis limit voltage after the limit;

[0160] Step D40, calculating by combining the quadrature-axis limiting voltage and the voltage amplitude after output limitation, to obtain the direct-axis voltage limiting value.

[0161] It should be noted that the electric state and the power generation state can be determined by the direction of the motor speed and the motor torque. When the directions are the same, it is in the electric turntable, and when the directions are opposite, it is in the power generation state. The voltage limit value refers to the value for limiting the voltage amplitude.

[0162] It can be understood that when the motor is in the electric state, the voltage amplitude is used as the voltage limit value of the direct axis, and the quadrature axis voltage limit value is calculated by the following formula:

[0163] Uqlimit=sqrt(Umax*Umax–Ud*Ud);

[0164] Among them, Uqlimit is the quadrature-axis voltage limit value, Umax is the voltage amplitude, i.e. the direct-axis voltage limit value, and Ud is the direct-axis limit voltage.

[0165] When the motor is in the generating state, the voltage amplitude is used as the voltage limit value of the quadrature axis, and the direct axis voltage limit value is calculated by the following formula:

[0166] Udlimit=sqrt(Umax*Umax–Uq*Uq);

[0167] Among them, Udlimit is the direct-axis voltage limit value, Umax is the voltage amplitude, that is, the quadrature-axis voltage limit value, and Uq is the quadrature-axis limit voltage.

[0168] Through the motor control method of this embodiment, the limiting voltages of the direct axis and the quadrature axis can be calculated to ensure the subsequent motor control. Since the calculation of the limiting voltage introduces the voltage amplitude, the harmonic factor and the speed factor are comprehensively considered. Therefore, the motor control method of this embodiment does not rely on the high-order harmonic control of the current, takes into account the natural characteristics of the motor speed and the control carrier ratio, reduces the control difficulty, and avoids the control error caused by the change of the motor speed.

[0169] For example, to help understand the technical concept or technical principle of the motor control method of this embodiment, please refer to Figure 4 , Figure 4 A brief flow chart of a voltage limit calculation method is provided, as follows:

[0170] The first step is to obtain the calculated harmonic factor and speed factor (speed factor);

[0171] The second step is to calculate the voltage amplitude;

[0172] The third step is to determine whether the motor is in the electric state;

[0173] Step 4: When the motor is in the electric state, the d-axis voltage limit (direct-axis voltage limit value) is output; when the motor is not in the electric state (in the generating state), the q-axis voltage limit (quadrature-axis voltage limit value) is output;

[0174] Step 5: When the motor is in the electric state, the d-axis voltage command (direct-axis limit voltage) is obtained; when the motor is not in the electric state (in the power generation state), the q-axis voltage command (quadrature-axis limit voltage) is obtained;

[0175] Step 6. When the motor is in the motoring state, the q-axis voltage limit (quadrature-axis voltage limit value) is output; when the motor is not in the motoring state (in the generating state), the d-axis voltage limit (direct-axis voltage limit value) is output.

[0176] It should be noted that the above examples are only used to assist in understanding the present application and do not constitute a limitation on the motor control method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0177] In a feasible embodiment, the system of the motor includes a controller;

[0178] The step of controlling the motor by using the voltage limit value in step S40 includes steps E10 to E30:

[0179] Step E10, performing triangular coordinate transformation on the direct-axis limiting voltage and the quadrature-axis limiting voltage to obtain an α-axis limiting voltage and a β-axis limiting voltage;

[0180] It should be noted that the triangular coordinate transformation is equivalent to the inverse process of Park transformation, and the obtained direct axis limit voltage and quadrature axis limit voltage are converted to the stationary coordinate system. The α-axis limit voltage and β-axis limit voltage refer to the limit voltage in the stationary coordinate system.

[0181] Step E20, performing space vector pulse width modulation (SVPWM) operation on the α-axis limit voltage and the β-axis limit voltage in combination with the bus voltage to obtain a duty cycle output, wherein the SVPWM operation includes selecting a sector calculation method or a third harmonic injection method;

[0182] It should be noted that the space vector pulse width modulation SVPWM operation can be implemented by a dedicated microcontroller or digital signal processor (DSP). In practical applications, the SVPWM algorithm can be implemented by software programming or by some off-the-shelf SVPWM integrated circuits.

[0183] It is understandable that the SVPWM operation can choose between the sector calculation method and the third harmonic injection method. If the sector calculation method is selected, an overmodulation algorithm needs to be added to the SVPWM to ensure that the output voltage is within the real-time available voltage range. If the third harmonic injection method is selected, the duty cycle output of different voltages can be smoothly achieved through the limitations of the algorithm itself.

[0184] Step E30, inputting the duty cycle into a controller to perform motor control.

[0185] It should be noted that the duty cycle output refers to the proportion of time occupied by the high level (ie, the open state) within one cycle after the SVPWM operation.

[0186] By inputting the duty cycle output into the controller, the motor control method of this embodiment realizes an algorithm closed loop, thereby ensuring the balance of the output voltage and current harmonics in the motor control method of this embodiment.

[0187] For example, to help understand the technical concept or technical principle of the motor control method of this embodiment, please refer to Figure 5 , Figure 5 A flow chart of a motor control method is provided, as follows:

[0188] (1) After torque control or speed control, the q-axis current reference value IqRef (quadrature-axis current command) is output. Depending on whether the motor is running in torque control mode or speed control mode, IqRef can be output by methods including but not limited to current table lookup, speed PI control, etc.

[0189] (2) After weak magnetic control, the d-axis current set value IdRef (direct-axis current command) is output. IdRef can be output by methods including but not limited to current table lookup, bus voltage PI control, etc.

[0190] (3) If the motor is running in the electric state, the d-axis current loop is calculated first, and the d-axis current feedback IdFdb (direct-axis current feedback value) is obtained according to IdRef and sampling for PI control, and after being limited by Udlimit (direct-axis voltage limit value), Ud (direct-axis limit voltage) is output and participates in the voltage amplitude calculation. Then the q-axis current loop is calculated, and the q-axis current feedback IqFdb (quadratic-axis voltage limit value) is obtained according to IqRef and sampling for PI control, and after being limited by Uqlimit (quadratic-axis voltage limit value), Uq (quadratic-axis limit voltage) is output.

[0191] If the motor is running in the electric state, the q-axis current loop is calculated first, and the q-axis current feedback IqFdb is obtained according to IqRef and sampling for PI control, and after Uqlimit, Uq is output and participates in the voltage amplitude calculation. Then the d-axis current loop is calculated, and the d-axis current feedback IdFdb is obtained according to IdRef and sampling for PI control, and after Udlimit, Ud is output.

[0192] (4) According to the obtained Ud and Uq, the triangular coordinates are transformed to obtain Ualpha (α-axis limiting voltage) and Ubeta (β-axis limiting voltage) in the stationary coordinate system.

[0193] (5) Perform SVPWM calculation on Ualpha and Ubeta in combination with the bus voltage Udc. SVPWM can choose the sector calculation method or the third harmonic injection method. If the sector calculation method is selected, an overmodulation algorithm needs to be added to the SVPWM to ensure that the output voltage is within the real-time available voltage range. If the third harmonic injection method is selected, the duty cycle output of different voltages can be smoothly achieved through the limitations of the algorithm itself.

[0194] (6) The three-phase duty cycle output by the SVPWM algorithm is output to the hardware controller through the control chip to realize the closed loop of the entire motor control algorithm.

[0195] The calculation of harmonic factor, speed factor and voltage limit refers to the above Figure 2 , Figure 3 , Figure 4 As an example, Uqlimit and Udlimit can be obtained by calculating the harmonic factor, speed factor and voltage limit.

[0196] It should be noted that the above examples are only used to assist in understanding the present application and do not constitute a limitation on the motor control method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0197] The present application provides a motor control system. Figure 6 The energy storage converter includes a controller 101 and a motor 102, and the controller 101 is used to execute the steps of the motor control method in the above embodiment.

[0198] The motor control system provided in the embodiment of the present application can solve how to increase the available voltage of the motor on the basis of satisfying the current harmonic conditions, and achieve a balance between the motor output power and the current harmonic noise. Compared with the prior art, the beneficial effects of the energy storage converter provided in the embodiment of the present application are the same as the beneficial effects of the motor control method provided in the above embodiment, and will not be repeated here.

[0199] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the motor control method in the above-mentioned embodiment.

[0200] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0201] The computer-readable storage medium may be included in the motor control system; or may exist independently without being assembled into the motor control system.

[0202] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the motor control system, the motor control system: obtains the current value of the motor, and obtains the harmonic factor by calculating the current value; obtains the current speed of the motor and the number of motor pole pairs, and calculates the speed factor based on the current speed and the number of motor pole pairs; if the current value exceeds the preset harmonic current value, the voltage amplitude is calculated in combination with the speed factor, the harmonic factor and the bus voltage, and the bus voltage is the voltage of the bus that supplies power to the motor; based on the voltage amplitude, a voltage limit value is calculated, and the motor is controlled by the voltage limit value.

[0203] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0204] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0205] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0206] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned motor control method, and can solve the technical problem of how to increase the available voltage of the motor on the basis of satisfying the current harmonic conditions and achieve a balance between the motor output power and the current harmonic noise. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the motor control method provided in the above-mentioned embodiment, and will not be repeated here.

[0207] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A motor control method, It is characterized in that The motor control method comprises: Acquire the current value of the motor, and obtain the harmonic factor by calculating the current value; Obtaining a current rotation speed and a number of motor pole pairs of the motor, and calculating a speed factor based on the current rotation speed and the number of motor pole pairs; If the current value exceeds the preset harmonic current value, the voltage amplitude is calculated by combining the speed factor, the harmonic factor and the bus voltage, where the bus voltage is the voltage of the bus supplying power to the motor; Based on the voltage amplitude, a voltage limit value is calculated, and the motor is controlled by the voltage limit value.

2. The method according to claim 1, It is characterized in that The step of obtaining the harmonic factor by calculating the current value comprises: The current value is subjected to Clark transformation and Park transformation according to the current motor angle to obtain a direct-axis current feedback value and a quadrature-axis current feedback value; Receiving an input current instruction and filtering out a direct-axis fundamental current in the direct-axis current feedback value and a quadrature-axis fundamental current in the quadrature-axis current feedback value to obtain a direct-axis harmonic current value and a quadrature-axis harmonic current value, wherein the current instruction includes a direct-axis current instruction and a quadrature-axis current instruction; Performing park coordinate transformation on the direct-axis harmonic current value and the quadrature-axis harmonic current value respectively to obtain harmonic current preprocessing values, wherein the harmonic current preprocessing values ​​include preprocessing values ​​of the direct-axis harmonic current value at the 5th, 7th, 11th and 13th harmonic currents, and preprocessing values ​​of the quadrature-axis harmonic current value at the 5th, 7th, 11th and 13th harmonic currents; Performing weighted calculation on the harmonic current preprocessing value to obtain a weighted harmonic current value; Subtracting a preset harmonic current value from the weighted harmonic current value to obtain a harmonic difference value; If the harmonic difference is greater than zero, the harmonic factor is obtained by calculating the proportional gain and the integral gain of the harmonic difference.

3. The method according to claim 2, It is characterized in that The step of performing weighted calculation on the obtained harmonic current preprocessing value to obtain a weighted harmonic current value comprises: Determine the corresponding weighting coefficients by the proportion of the effects of the 5th, 7th, 11th and 13th harmonic currents, wherein the weighting coefficients include a first weighting coefficient corresponding to the 5th harmonic current, a second weighting coefficient corresponding to the 7th harmonic current, a third weighting coefficient corresponding to the 9th harmonic current, a fourth weighting coefficient corresponding to the 11th harmonic current, and a fifth weighting coefficient corresponding to the 13th harmonic current; The weighted coefficient is combined with the harmonic current preprocessing value to perform weighted calculation to obtain a weighted harmonic current value.

4. The method according to claim 1, It is characterized in that The system of the motor includes a controller; The step of calculating the speed factor based on the current speed and the number of motor pole pairs also includes: The actual electrical frequency is calculated by using the current rotation speed and the number of motor pole pairs; The effective switching frequency is calculated according to the controller algorithm; Calculating the ratio of the effective switching frequency to the actual electrical frequency to obtain an actual carrier ratio; The preset carrier ratio range is compared with the actual carrier ratio to obtain the speed factor.

5. The method according to claim 4, It is characterized in that The step of calculating the effective switching frequency of the controller according to the algorithm of the controller comprises: If the controller uses a random PWM pulse width modulation algorithm, the effective switching frequency is the average of the maximum switching frequency and the minimum switching frequency of the random PWM algorithm; If the controller does not use a random PWM algorithm, the effective switching frequency is a PWM switching frequency fixed by the controller.

6. The method according to claim 1, It is characterized in that If the current value exceeds the preset harmonic current value, the step of calculating the voltage amplitude by combining the speed factor, the harmonic factor and the bus voltage comprises: By means of the bus voltage, a limiting motor phase voltage and a maximum motor phase voltage are calculated; The voltage amplitude is calculated by combining the limiting motor phase voltage and the maximum motor phase voltage with a speed factor and a harmonic factor.

7. The method according to claim 1, It is characterized in that When the motor speed and the motor torque are in the same direction, the motor is in a motoring state; when the motor speed and the motor torque are in opposite directions, the motor is in a generating state; the voltage limit value includes a quadrature-axis voltage limit value and a direct-axis voltage limit value; Based on the voltage amplitude, the step of calculating the voltage limit value comprises: When the motor is in the motoring state, the voltage amplitude is used as the voltage limit value of the direct axis to limit the voltage of the direct axis, and the limited direct axis limit voltage is output; The quadrature axis voltage limit value is obtained by combining the direct axis limit voltage and the voltage amplitude after output limitation to calculate; When the motor is in the power generation state, the voltage amplitude is used as the voltage limit value of the quadrature axis to limit the quadrature axis voltage, and the quadrature axis limit voltage after the limit is output; The direct-axis voltage limit value is obtained by calculating the quadrature-axis limit voltage and the voltage amplitude after output limitation.

8. The method according to claim 7, It is characterized in that The system of the motor includes a controller; The step of controlling the motor by using the voltage limit value comprises: Performing triangular coordinate transformation on the direct-axis limiting voltage and the quadrature-axis limiting voltage to obtain an α-axis limiting voltage and a β-axis limiting voltage; The α-axis limiting voltage and the β-axis limiting voltage are combined with the bus voltage to perform space vector pulse width modulation (SVPWM) operation to obtain a duty cycle output, wherein the SVPWM operation includes selecting a sector calculation method or a third harmonic injection method; The duty cycle output is input to a controller for motor control.

9. A motor control system, It is characterized in that The motor control system includes a controller and a motor; The controller is used to execute the steps of the motor control method according to any one of claims 1 to 8.

10. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the motor control method according to any one of claims 1 to 8 are implemented.