Motor control method and device, controller, electronic equipment and medium

By receiving the target speed command and predicting the efficiency corresponding to the modulation rate and current phase angle, adjusting the modulation rate and current phase angle of the motor, the problem of modulation rate and current phase angle adjustment in motor control is solved, and the optimal speed and efficiency are achieved. Reduces switching losses and current waveform distortion problems.

CN118971703APending Publication Date: 2024-11-15NINGBO AUX ELECTRIC CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411094077.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In motor control, how to reasonably adjust the modulation rate and current phase angle to achieve the best speed and efficiency, avoiding the problem of increasing switching loss and heat loss by increasing the modulation rate, and excessive current phase angle, resulting in current waveform distortion and harmonic loss.

Method used

By receiving the target speed command, the efficiency corresponding to the modulation rate and the current phase angle is predicted and adjusted. If the first efficiency is greater than the second efficiency, PWM control is performed based on the target modulation rate; if the first efficiency is less than the second efficiency, the target current phase angle is performed based on the target current phase angle. PWM control, adjusting the modulation rate and current phase angle for optimal rotational speed and efficiency.

Benefits of technology

It realizes the rational adjustment of the modulation rate and current phase angle in motor control, improves the speed and efficiency, reduces the problems of switching losses and current waveform distortion, and improves the operating efficiency of the motor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118971703A_ABST
    Figure CN118971703A_ABST
Patent Text Reader

Abstract

According to the motor control method and device, the controller, the electronic equipment and the medium provided by the invention, when the target rotating speed instruction is received, the first efficiency corresponding to the target rotating speed instruction when the current modulation rate is adjusted to the target modulation rate is predicted based on the target rotating speed instruction and the first efficiency characteristic diagram; on the basis of the target rotating speed instruction and a second efficiency characteristic diagram, predicting second efficiency corresponding to the target rotating speed instruction when the current phase angle is adjusted to the target current phase angle; then, if the first efficiency is greater than the second efficiency, performing PWM control on the motor based on the target modulation rate, and if the first efficiency is less than the second efficiency, performing PWM control on the motor based on the target current phase angle; therefore, in the motor control, the modulation rate and the current phase angle can be reasonably adjusted to realize the optimal rotating speed and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of motor control technology, and in particular to a motor control method, device, controller, electronic equipment and medium. Background Art

[0002] In SVPWM (Space Vector Pulse Width Modulation), adjusting the modulation rate and the current phase angle are two commonly used methods for regulating the motor speed.

[0003] The modulation rate, i.e. the duty cycle of the PWM (Pulse Width Modulation) signal, can directly affect the motor's supply voltage. Generally speaking, increasing the modulation rate will increase the motor's supply voltage, thereby increasing the speed, but it will also increase the inverter's switching frequency, resulting in higher switching losses and heat losses, which may lead to reduced efficiency. Conversely, reducing the modulation rate will reduce the supply voltage, thereby reducing the speed, but it will also reduce switching losses, which may improve efficiency.

[0004] The adjustment of the current phase angle affects the power factor and torque output of the motor. Generally speaking, increasing the current phase angle can provide greater torque and help increase the speed, but if it exceeds the optimal phase angle, it may cause current waveform distortion and increase harmonic loss, thereby reducing efficiency. Similarly, too small a current phase angle will reduce torque output and reduce speed, but it may also lead to reduced efficiency because the motor may not be able to operate at the optimal operating point.

[0005] Therefore, in motor control, how to reasonably adjust the modulation rate and current phase angle to achieve the optimal speed and efficiency is a problem that needs to be considered. Summary of the invention

[0006] The problem solved by the present invention is: how to reasonably apply overmodulation control and magnetic field weakening control in motor control to achieve optimal rotation speed and efficiency.

[0007] In order to solve the above problems, the present invention provides a motor control method, the motor control method comprising:

[0008] receiving a target speed command;

[0009] Based on the target speed command and a first efficiency characteristic diagram, predicting a first efficiency corresponding to the target speed command when adjusting the current modulation rate to the target modulation rate, wherein the first efficiency characteristic diagram reflects the maximum speed and efficiency of the motor at different modulation rates;

[0010] Based on the target speed command and the second efficiency characteristic diagram, predicting a second efficiency corresponding to the target speed command when adjusting the current phase angle to the target current phase angle, wherein the second efficiency characteristic diagram reflects the maximum speed and efficiency of the motor at different current phase angles;

[0011] If the first efficiency is greater than the second efficiency, performing PWM control on the motor based on the target modulation rate;

[0012] If the first efficiency is less than the second efficiency, PWM control is performed on the motor based on the target current phase angle.

[0013] Compared with the prior art, the motor control method of the present invention has the following advantages:

[0014] When a target speed command is received, a first efficiency corresponding to the target speed command when the current modulation rate is adjusted to the target modulation rate is predicted based on the target speed command and the first efficiency characteristic diagram, and then a second efficiency corresponding to the target speed command when the current current phase angle is adjusted to the target current phase angle is predicted based on the target speed command and the second efficiency characteristic diagram; then, if the first efficiency is greater than the second efficiency, PWM control is performed on the motor based on the target modulation rate; if the first efficiency is less than the second efficiency, PWM control is performed on the motor based on the target current phase angle; thereby, the modulation rate and current phase angle can be reasonably adjusted in motor control to achieve optimal speed and efficiency.

[0015] Optionally, adjusting the current modulation rate to the target modulation rate includes: increasing the current modulation rate to the target modulation rate or decreasing the current modulation rate to the target modulation rate;

[0016] The step of performing PWM control on the motor based on the target modulation rate comprises:

[0017] If the target speed command is an acceleration command, the motor is PWM controlled by increasing the current modulation rate to the target modulation rate to increase the speed of the motor;

[0018] If the target speed command is a deceleration command, the motor is PWM controlled by reducing the current modulation rate to the target modulation rate to reduce the speed of the motor.

[0019] Optionally, the step of performing PWM control on the motor by adjusting the current modulation rate to the target modulation rate includes:

[0020] Obtain target current command, current d-axis current and current q-axis current;

[0021] Calculating a d-axis current command and a q-axis current command according to the target current command and the current current phase angle;

[0022] Calculating an initial d-axis voltage and an initial q-axis voltage according to the d-axis current command, the q-axis current command, the current d-axis current, and the current q-axis current;

[0023] Obtaining a reference voltage vector according to the target modulation rate, the initial d-axis voltage, and the initial q-axis voltage, wherein the modulation rate corresponding to the reference voltage vector is the target modulation rate;

[0024] If the target modulation rate is greater than 1, based on the phase angle of the reference voltage vector and the voltage space vector diagram, the action time of each non-zero voltage vector in the PWM control is extended to obtain a target voltage vector, and the target voltage vector is used to perform PWM control on the motor to adjust the current modulation rate to the target modulation rate;

[0025] If the target modulation rate is not greater than 1, the reference voltage vector is used to perform PWM control on the motor to adjust the current modulation rate to the target modulation rate.

[0026] Optionally, the step of obtaining a reference voltage vector according to the target modulation rate, the initial d-axis voltage and the initial q-axis voltage comprises:

[0027] Calculating a phase angle of the reference voltage vector according to the initial d-axis voltage and the initial q-axis voltage;

[0028] The magnitude of the reference voltage vector is calculated according to the target modulation rate and the DC bus voltage.

[0029] Optionally, the magnitude of the reference voltage vector satisfies the following formula:

[0030]

[0031] Among them, |V t | is the magnitude of the reference voltage vector, M is the target modulation rate, V dc is the DC bus voltage.

[0032] Optionally, the voltage space vector diagram includes six non-zero vectors, the six non-zero vectors form a regular hexagon and divide the voltage vector space into six sectors, each sector includes a predefined set area;

[0033] The step of extending the action time of each non-zero voltage vector in PWM control based on the phase angle of the reference voltage vector and the voltage space vector diagram to obtain the target voltage vector comprises:

[0034] Acquire a target sector where the reference voltage vector is located in the voltage vector space;

[0035] If the reference voltage vector is in a set region in the target sector, a non-zero vector in the set region is used as a target voltage vector;

[0036] If the reference voltage vector is in another area of ​​the target sector except the set area, the phase angle of the reference voltage vector is changed to obtain a target voltage vector located in the other area and connected to the edge of the regular hexagon.

[0037] Optionally, adjusting the current current phase angle to the target current phase angle includes: increasing the current current phase angle to the target current phase angle or decreasing the current current phase angle to the target current phase angle;

[0038] The step of performing PWM control on the motor based on the target current phase angle comprises:

[0039] If the target speed command is an acceleration command, the motor is subjected to PWM control by increasing the current current phase angle to the target current phase angle to increase the speed of the motor;

[0040] If the target speed instruction is a deceleration instruction, the motor is PWM controlled by reducing the current current phase angle to the target current phase angle to reduce the speed of the motor.

[0041] Optionally, the step of performing PWM control on the motor by adjusting the current current phase angle to the target current phase angle comprises:

[0042] Obtain target current command, current d-axis current and current q-axis current;

[0043] Calculating a d-axis current command and a q-axis current command according to the target current command and the target current phase angle;

[0044] Calculating a d-axis output voltage and a q-axis output voltage according to the d-axis current command, the q-axis current command, the current d-axis current, and the current q-axis current;

[0045] Based on the d-axis output voltage and the q-axis output voltage, the motor is subjected to PWM control to adjust a current phase angle to a target current phase angle.

[0046] The present invention also provides a motor control device, the motor control device comprising:

[0047] A receiving module, used for receiving a target speed instruction;

[0048] a first prediction module, configured to predict, based on the target speed command and a first efficiency characteristic diagram, a first efficiency corresponding to the target speed command when the current modulation rate is adjusted to the target modulation rate, wherein the first efficiency characteristic diagram reflects the maximum speed and efficiency of the motor at different modulation rates;

[0049] A second prediction module, for predicting a second efficiency corresponding to the target speed command when adjusting the current phase angle to the target current phase angle based on the target speed command and a second efficiency characteristic diagram, wherein the second efficiency characteristic diagram reflects the maximum speed and efficiency of the motor at different current phase angles;

[0050] a first control module, configured to perform PWM control on the motor based on the target modulation rate if the first efficiency is greater than the second efficiency;

[0051] A second control module is configured to perform PWM control on the motor based on the target current phase angle if the first efficiency is less than the second efficiency.

[0052] The present invention further provides a controller, which includes a processor and a memory, wherein the memory is used to store a program, and the processor is used to implement the above-mentioned motor control method when executing the program.

[0053] The present invention also provides an electronic device, which includes the above-mentioned controller.

[0054] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the motor control method described above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 The present invention is a circuit diagram of an existing frequency converter.

[0056] Figure 2 It is a schematic diagram of an existing voltage space vector diagram.

[0057] Figure 3 This is an existing modulation rate-output voltage characteristic diagram.

[0058] Figure 4 This is an existing motor speed-torque characteristic diagram.

[0059] Figure 5 A schematic structural diagram of a motor control system provided by the present invention.

[0060] Figure 6 A block diagram of a controller provided by the present invention.

[0061] Figure 7A schematic flow chart of a motor control method provided by the present invention.

[0062] Figure 8 A first efficiency characteristic diagram provided by the present invention.

[0063] Fig. 9 A second efficiency characteristic diagram provided by the present invention.

[0064] Fig.10 Another first efficiency characteristic diagram provided by the present invention.

[0065] Fig.11 Another second efficiency characteristic diagram provided by the present invention.

[0066] Fig.12 A schematic diagram of another voltage space vector diagram provided by the present invention.

[0067] Fig.13 A schematic diagram of an output voltage waveform provided by the present invention.

[0068] Fig.14 This is an application example diagram provided by the present invention.

[0069] Fig.15 A block diagram of a motor control device provided by the present invention.

[0070] Description of reference numerals:

[0071] 10 - controller; 11 - processor; 12 - memory; 13 - bus; 100 - motor control device; 101 - receiving module; 102 - first prediction module; 103 - second prediction module; 104 - first control module; 105 - second control module. DETAILED DESCRIPTION

[0072] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0073] PWM is a technology that converts analog signals into digital signals and controls the average value of the output voltage by adjusting the width of the pulse. Specifically, the PWM signal is a periodic waveform whose duty cycle (i.e. the proportion of the high level time in the entire cycle) changes, thereby achieving the purpose of modulating the control voltage or current.

[0074] SVPWM is a technology used to control three-phase motors. It achieves precise control of motor voltage and current by decomposing the three-phase voltage vector into space vectors and using PWM technology to control the on-time of switching elements.

[0075] SVPWM uses six switching elements to control the voltage of a three-phase motor, with two switching elements for each phase. These switching elements are usually IGBTs or transistors, which can be in the on or off state. By controlling the on time of these switching elements, the voltage and current on the motor can be changed.

[0076] like Figure 1 As shown, the inverter includes six switching elements a, b, c, a', b', c', and each phase has two switching elements, namely the upper bridge switch (a, b, c) and the lower bridge switch (a', b', c'). In SVPWM, the on or off state of each switching element is controlled by S[a, b, c] and S'[a', b', c'] to synthesize seven basic voltage vectors, and each basic voltage vector is encoded with a 3-bit number. For example, S4 = [1, 0, 0] means that the switching elements a, b', c' are in the on state, and the switching elements a', b, c are in the off state. That is, the inverter has eight working states in total, which can form seven basic voltage vectors, among which the basic voltage vectors formed by the two working states S0 = [0, 0, 0] and S7 = [1, 1, 1] are the same, both of which are zero vectors.

[0077] After drawing the seven basic voltage vectors on the voltage vector plane, we can form the following Figure 2 The voltage space vector diagram is shown in Figure 1. Among the seven basic voltage vectors, there are six non-zero vectors V1-V6, and the corresponding switching element working states are S1-S6, with amplitudes of V dc is a DC voltage, and the difference between two adjacent non-zero vectors in space is In addition, a zero vector is also included (not shown in the figure).

[0078] like Figure 2 As shown, the six non-zero vectors form a regular hexagon and divide the voltage vector space into six sectors (sectors I-VI), each sector corresponding to The zero vector is at the origin of the voltage space vector diagram, and the range inside the regular hexagon corresponds to the voltage range that the inverter can output.

[0079] In SVPWM, adjusting the modulation rate and current phase angle are two commonly used methods to regulate the motor speed.

[0080] The modulation rate is an important parameter that describes the relationship between the modulation signal size and the carrier signal size. The formula is as follows:

[0081]

[0082] At this time, M is the modulation rate, |V t | is the voltage vector V t The size of V dcis the DC bus voltage.

[0083] The modulation rate can affect the output voltage. Figure 3 As shown, Figure 3 This is the modulation rate-output voltage characteristic diagram. The output voltage ratio in the diagram refers to the ratio of the output voltage to the DC bus voltage. Figure 3 It can be seen that as the modulation rate increases, the output voltage will also increase, and the output voltage is related to the speed. Therefore, the motor speed can be adjusted by adjusting the modulation rate.

[0084] However, generally speaking, increasing the modulation rate will increase the output voltage, thereby increasing the speed, but it will also increase the switching frequency of the inverter, resulting in higher switching losses and heat losses, which may lead to a decrease in efficiency. Conversely, reducing the modulation rate will reduce the output voltage, thereby reducing the speed, but it will also reduce switching losses, which may increase efficiency. Therefore, it is necessary to set an appropriate modulation rate to take into account both speed and efficiency.

[0085] The current phase angle refers to the phase difference between the AC current waveform and the voltage waveform, reflecting the time delay or advance of the current waveform relative to the voltage waveform within one cycle.

[0086] Adjustment of the current phase angle affects the power factor and torque output of the motor, thereby affecting the speed, such as Figure 4 As shown, Figure 4 This is the motor speed-torque characteristic diagram. It can be seen from the figure that by setting the current phase angle to β1 greater than 0, the driving range of the motor can be expanded from A to B, thereby increasing the motor speed.

[0087] However, generally speaking, increasing the current phase angle can provide greater torque and help increase the speed, but if it exceeds the optimal phase angle, it may cause current waveform distortion, increase harmonic losses, and thus reduce efficiency. Similarly, too small a current phase angle will reduce torque output and reduce speed, but it may also lead to reduced efficiency because the motor may not be able to operate at the optimal operating point. Therefore, it is also necessary to set a suitable current phase angle to take into account both speed and efficiency.

[0088] Therefore, in motor control, how to reasonably adjust the modulation rate and current phase angle to achieve the optimal speed and efficiency is a problem that needs to be considered.

[0089] To address this problem, when receiving a target speed command, the embodiment of the present invention first predicts the first efficiency corresponding to the target speed command when the current modulation rate is adjusted to the target modulation rate based on the target speed command and the first efficiency characteristic diagram, and then predicts the second efficiency corresponding to the target speed command when the current current phase angle is adjusted to the target current phase angle based on the target speed command and the second efficiency characteristic diagram; then, if the first efficiency is greater than the second efficiency, the motor is PWM controlled based on the target modulation rate, and if the first efficiency is less than the second efficiency, the motor is PWM controlled based on the target current phase angle; thereby, the modulation rate and current phase angle can be reasonably adjusted in motor control to achieve the best speed and efficiency. This is described in detail below.

[0090] In order to make the technical solution to be introduced below easier to understand, before introducing the motor control method provided by the embodiment of the present invention, the motor control system is first introduced.

[0091] like Figure 5 As shown, the motor control system includes a frequency converter and a controller. The frequency converter is electrically connected between the AC power supply and the motor, and is used to receive input from the AC power supply and convert it into a voltage and frequency suitable for the motor.

[0092] The inverter and controller are electrically connected, and the controller runs control algorithms that determine the required PWM signals based on the operating status and performance requirements of the motor. Based on the PWM signals output by the controller, the switching elements (such as IGBTs or transistors) in the inverter will switch in a specific pattern to adjust the voltage and frequency output to the motor.

[0093] The frequency converter includes: a rectifier circuit, a smoothing capacitor, a frequency conversion circuit and a shunt resistor. The AC power output by the AC power source is converted into DC power by the rectifier circuit and the smoothing capacitor, and is supplied to the frequency conversion circuit formed by the switch elements 4a-9a. The switch elements 4a-9a are connected in parallel with freewheeling diodes 4b-9b. The circuit of the upper bridge arm side switch elements and the lower bridge arm side switch elements formed by the switch elements 4a-9a is divided into three phases, and the connection point of the upper bridge arm and the lower bridge arm is electrically connected to the motor.

[0094] It should be pointed out that Figure 5 The switching elements 4a-9a in the embodiment may be IGBTs or transistors, and correspond to Figure 1 The switching elements a, a', b, b', c, c'.

[0095] The controller includes: a current detection unit, a two-phase conversion unit, a rotation position speed estimation unit, a speed control unit, a current control unit, a modulation unit and a PWM signal generation unit. These units use internal timing functions to control the on and off of switch elements 4a-9a, so that the output voltage of the frequency conversion circuit can accurately match the speed command of the motor, that is, the output voltage of the frequency conversion circuit is consistent with the voltage condition required by the speed command of the motor.

[0096] The controller's control logic for the inverter is as follows:

[0097] 1. Current detection module: detects the three-phase AC current (I U ,I V ,I W ).

[0098] 2. Rotation position speed estimation unit: Based on the three-phase AC current (I U ,I V ,I W ), and estimate the actual speed of the motor.

[0099] 3. 2-phase conversion unit: convert the three-phase AC current (I U ,I V ,I W ), converted into the actual two-phase current value I d ,I q .

[0100] 4. Speed ​​detection unit: First, based on the input speed command and the actual speed provided by the rotation position speed estimation unit, the current command I is calculated through proportional integral control * ; Based on the current command I * and the current phase angle β, according to the following formula:

[0101] I d * =I * ×sin(β)

[0102] I q * =I * ×cos(β)

[0103] Calculate and output a 2-axis current command I consisting of the d-axis in the magnetic flux direction and the q-axis perpendicular to it. d * ,I q * .

[0104] The current phase angle β can be set according to the motor load, for example, to maximize the driving torque, or to maximize the efficiency, etc. The setting of the current phase value β in this embodiment needs to take into account the motor speed and efficiency, which will be described in detail later.

[0105] 5. Current control unit: According to the two-phase current value I output by the two-phase conversion unit d ,I q and the 2-axis current command I output by the speed detection unit d * ,I q * , calculate the d-axis voltage V d and q-axis voltage V q .

[0106] 6. The modulation unit adopts SVPWM mode for modulation, including:

[0107] (1) Based on the input speed command and the d-axis voltage V provided by the current control unit d and q-axis voltage V q , using the motor control method provided by the embodiment of the present invention, calculate the output voltage vector that can achieve the best speed and efficiency, which is detailed below;

[0108] (2) Decompose the output voltage vector to obtain three phase voltages.

[0109] 7. PWM signal generating unit: Calculate the PWM duty cycle according to the three phase voltages provided by the modulation unit, and further generate the corresponding PWM signal according to the calculated PWM duty cycle, and control the switching action of the switching elements 4a-9a in the inverter through the PWM signal, and finally generate a voltage waveform at the output end of the inverter that can achieve the best speed and efficiency.

[0110] The motor control system introduced above is applied to electronic equipment, which is a device that needs to achieve optimal speed and efficiency, for example, it can be household appliances such as air conditioners and washing machines, or it can be cars, generators, etc. The following embodiments are explained using air conditioners as an example. The air conditioner can be an air conditioner using a heat pump system, for example, an air source heat pump air conditioning system, etc.

[0111] The motor control method provided by the present invention is applied to the above Figure 5 The controller in the controller, specifically the modulation unit in the controller. Figure 6 , Figure 6 The block diagram of the controller 10 provided by the present invention is as follows. The controller 10 includes a processor 11, a memory 12 and a bus 13, and the processor 11 is connected to the memory 12 via the bus 13.

[0112] The memory 12 is used to store programs. After receiving an execution instruction, the processor 11 executes the program to implement the motor control method disclosed in this embodiment.

[0113] The memory 12 may include a high-speed random access memory (RAM) and may also include a non-volatile memory (NVM).

[0114] The processor 11 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the motor control method provided in this embodiment can be completed by an integrated logic circuit of hardware in the processor 11 or an instruction in the form of software. The above-mentioned processor 11 may be a general-purpose processor, including a central processing unit (CPU), a microcontroller unit (MCU), a complex programmable logic device (CPLD), a field programmable gate array (FPGA), an embedded ARM and other chips.

[0115] The present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the processor 11, the motor control method disclosed in this embodiment is implemented.

[0116] Based on the controller 10 and the motor control system introduced above, the motor control method provided by the present invention is introduced in detail.

[0117] Please refer to Figure 7 , Figure 7 The flowchart of the motor control method provided by the present invention is shown, and the motor control method may include the following steps:

[0118] S101, receiving a target speed instruction.

[0119] In this embodiment, the target speed instruction is input by the user and may be an acceleration instruction or a deceleration instruction.

[0120] S102, based on the target speed command and the first efficiency characteristic diagram, predicting a first efficiency corresponding to the target speed command when adjusting the current modulation rate to the target modulation rate, wherein the first efficiency characteristic diagram reflects the maximum speed and efficiency of the motor at different modulation rates.

[0121] S103, based on the target speed instruction and the second efficiency characteristic diagram, predicting the second efficiency corresponding to the target speed instruction when adjusting the current phase angle to the target current phase angle, wherein the second efficiency characteristic diagram reflects the maximum speed and efficiency of the motor at different current phase angles.

[0122] In this embodiment, the first efficiency characteristic diagram may be a modulation rate-efficiency-speed characteristic curve diagram, such as Figure 8 As shown, it can reflect the maximum speed and efficiency of the motor at different modulation rates. Therefore, when the target speed command is known, the target modulation rate and the first efficiency corresponding to the target speed command can be obtained from the first efficiency characteristic diagram.

[0123] The first efficiency characteristic diagram may be a current phase angle-efficiency-speed characteristic curve diagram, such as Fig. 9 As shown, it can reflect the maximum speed and efficiency of the motor at different current phase angles. Therefore, when the target speed command is known, the target current phase angle and the second efficiency corresponding to the target speed command can be obtained from the second efficiency characteristic diagram.

[0124] If the target speed command is an acceleration command, firstly, based on the acceleration command and the first efficiency characteristic diagram, the first efficiency corresponding to the acceleration command when the current modulation rate is adjusted to the target modulation rate is predicted, such as Fig.10 As shown, assuming that the acceleration instruction is as shown by the arrow in the figure, find the target modulation rate M1 and the first efficiency E21 corresponding to the acceleration instruction from the figure. Then, based on the acceleration instruction and the second efficiency characteristic diagram, predict the second efficiency corresponding to the acceleration instruction when adjusting the current current phase angle to the target current phase angle, as shown in Fig.11 As shown, assuming that the acceleration instruction is as shown by the arrow in the figure, find out the target current phase angle β1 and the second efficiency E11 corresponding to the acceleration instruction from the figure.

[0125] If the target speed command is a deceleration command, firstly, based on the deceleration command and the first efficiency characteristic diagram, the first efficiency corresponding to the deceleration command when the current modulation rate is adjusted to the target modulation rate is predicted, such as Fig.10 As shown, assuming that the deceleration instruction is as shown by the arrow in the figure, find the target modulation rate M2 and the first efficiency E22 corresponding to the deceleration instruction from the figure. Then, based on the deceleration instruction and the second efficiency characteristic diagram, predict the second efficiency corresponding to the deceleration instruction when adjusting the current current phase angle to the target current phase angle, as shown in Fig.11 As shown, assuming that the deceleration instruction is as shown by the arrow in the figure, find out the target current phase angle β2 and the second efficiency E12 corresponding to the deceleration instruction from the figure.

[0126] It should be pointed out that Figure 8 When SVPWM is in the overmodulation region (i.e., the voltage vector V t The magnitude is greater than Figure 2The modulation rate-efficiency-speed characteristic curve when SVPWM is in the linear modulation area (the voltage vector V t The magnitude is not greater than Figure 2 When the radius of the inscribed circle of the regular hexagon is 0, the first efficiency can be calculated as 100.

[0127] S104: If the first efficiency is greater than the second efficiency, PWM control is performed on the motor based on the target modulation rate.

[0128] S105: If the first efficiency is less than the second efficiency, PWM control is performed on the motor based on the target current phase angle.

[0129] In this embodiment, when the target speed command is an acceleration command, if the first efficiency is greater than the second efficiency, the motor is PWM controlled based on the target modulation rate; if the first efficiency is less than the second efficiency, the motor is PWM controlled based on the target current phase angle to accelerate the motor. Fig.10 and 11 If E21>E11, the motor is PWM controlled by increasing the modulation rate to M1. If E21<E11, the motor is PWM controlled by increasing the current phase angle to β1, thereby accelerating the motor.

[0130] When the target speed command is a deceleration command, if the first efficiency is greater than the second efficiency, the motor is PWM controlled based on the target modulation rate; if the first efficiency is less than the second efficiency, the motor is PWM controlled based on the target current phase angle to decelerate the motor. Fig.10 and 11 If E22>E12, the motor is PWM controlled by reducing the modulation rate to M2. If E22<E12, the motor is PWM controlled by increasing the current phase angle to β2, thereby decelerating the motor.

[0131] The control method in steps S104 and S105 is described in detail below.

[0132] In a possible implementation, the process of performing PWM control on the motor based on the target modulation rate in step S104 may include S1041 to S1042.

[0133] S1041: If the target speed command is an acceleration command, the motor is PWM controlled by increasing the current modulation rate to the target modulation rate to increase the speed of the motor.

[0134] S1042: If the target speed command is a deceleration command, the motor is PWM controlled by reducing the current modulation rate to the target modulation rate to reduce the speed of the motor.

[0135] In this embodiment, when the target speed instruction is an acceleration instruction, if the efficiency of increasing the current modulation rate to the target modulation rate is greater than the efficiency of increasing the current current phase angle to the target current phase angle, the motor is PWM controlled by increasing the current modulation rate to the target modulation rate. When the target speed instruction is a deceleration instruction, if the efficiency of reducing the current modulation rate to the target modulation rate is greater than the efficiency of reducing the current current phase angle to the target current phase angle, the motor is PWM controlled by reducing the current modulation rate to the target modulation rate.

[0136] Optionally, increasing the current modulation rate to the target modulation rate or decreasing the current modulation rate to the target modulation rate is collectively referred to as adjusting the current modulation rate to the target modulation rate. The process of adjusting the current modulation rate to the target modulation rate to perform PWM control on the motor in S1041 to S1042 may include 104A to S104F.

[0137] S104A, obtaining the target current command, the current d-axis current, and the current q-axis current.

[0138] In this embodiment, the target current command is the current command I calculated by the speed detection unit described above. * .

[0139] S104B, calculating the d-axis current command and the q-axis current command according to the target current command and the current current phase angle.

[0140] In this embodiment, this step is to calculate the 2-axis current command I d * 、i q * The current phase angle used in the calculation here is the currently set current phase angle.

[0141] S104C, calculating an initial d-axis voltage and an initial q-axis voltage according to the d-axis current command, the q-axis current command, the current d-axis current, and the current q-axis current.

[0142] In this embodiment, this step is the calculation process of the current control unit introduced above, which will not be described in detail here.

[0143] S104D, obtaining a reference voltage vector according to the target modulation rate, the initial d-axis voltage, and the initial q-axis voltage, wherein the modulation rate corresponding to the reference voltage vector is the target modulation rate.

[0144] Combined with Fig.10 and 11 When the target speed command is an acceleration command, the target modulation rate is M1, and when the target speed command is a deceleration command, the target modulation rate is M2.

[0145] Optionally, the phase angle of the reference voltage vector may be calculated based on the initial d-axis voltage and the initial q-axis voltage, and the magnitude of the reference voltage vector may be calculated based on the target modulation rate and the DC bus voltage. The detailed calculation process may include:

[0146] 1. Convert the initial d-axis voltage and the initial q-axis voltage to the α-axis and β-axis to obtain the α-axis voltage V α and β-axis voltage V β , the formula is as follows:

[0147] V α =cosθ×V d -sinθ×V q

[0148] V β = sinθ×V d +cosθ×V q

[0149] 2. According to the α-axis voltage V α and β-axis voltage V β , calculate the voltage vector V t , the formula is as follows:

[0150]

[0151] θ t =tan -1 (V β / V α )

[0152] At this time, |V t | is the magnitude of the voltage vector, θ t is the phase angle of the voltage vector.

[0153] 3. Maintain voltage vector V t The phase angle remains unchanged, and the voltage vector V is adjusted according to the target modulation rate. t The size of the reference voltage vector is obtained, and the size of the reference voltage vector satisfies the following formula:

[0154]

[0155] At this time, |V t | is the magnitude of the reference voltage vector, M is the target modulation rate, V dc is the DC bus voltage.

[0156] That is, when the target speed command is an acceleration command, M1 is substituted into the above formula, and when the target speed command is a deceleration command, M2 is substituted into the above formula to obtain the size of the reference voltage vector corresponding to the target modulation rate.

[0157] S104E, if the target modulation rate is greater than 1, based on the phase angle of the reference voltage vector and the voltage space vector diagram, the action time of each non-zero voltage vector in the PWM control is extended to obtain the target voltage vector, and the target voltage vector is used to perform PWM control on the motor to adjust the current modulation rate to the target modulation rate.

[0158] In this embodiment, if the target modulation rate is greater than 1, it means that the SVPWM is in the overmodulation region and the reference voltage vector cannot be used directly. Fig.12 As shown, the reference voltage vector V t The phase angle θ t Change to θ rt , to get the reference voltage vector V t Located in the same sector, and with θ rt The target voltage vector V is the phase angle and the length from the origin to the edge of the regular hexagon is the size rt .

[0159] In one possible implementation, Fig.12 As shown, each sector includes a predefined setting area (ie, the shaded portion in the figure), each sector has two setting areas and each setting area includes a non-zero vector of the sector. On this basis, S104E may include S104E1 to S104E3.

[0160] S104E1, obtaining a target sector where the reference voltage vector is located in the voltage vector space.

[0161] In this embodiment, the reference voltage vector V t The target sector in the voltage vector space satisfies the following formula:

[0162]

[0163] Among them, N s is the target sector, θ t is the phase angle of the reference voltage vector. For example, combined with Fig.12 , reference voltage vector V t In sector I.

[0164] S104E2, if the reference voltage vector is in a set region in the target sector, a non-zero vector in the set region is used as a target voltage vector.

[0165] S104E3, if the reference voltage vector is in other areas of the target sector except the set area, the phase angle of the reference voltage vector is changed to obtain a target voltage vector located in other areas and connected to the edge of the regular hexagon.

[0166] In this embodiment, if the reference voltage vector Vt If it is in the set area, the non-zero vector in the set area is directly used as the target voltage vector V rt , for example, combined with Fig.12 , if the reference voltage vector V t If the vector V2 is in the setting area shown in the figure, the non-zero vector V2 in the setting area is directly used as the target voltage vector V rt .

[0167] If the reference voltage vector V t In other areas, according to the formula Change the reference voltage vector V t The phase angle is θ rt , and obtain the target voltage vector V located in other areas and connected to the edge of the regular hexagon rt .

[0168] That is, first use the following formula to convert the reference voltage vector V t The phase angle θ t Change to θ rt :

[0169]

[0170] Among them, θ rt is the phase angle of the target voltage vector, θ t is the reference voltage vector V t The phase angle, θ s is the set phase angle, and n is an integer; θ h is the phase angle of the set area, and 0<θ t -θ s <θ h and Indicates that the reference voltage vector is in the set area. Indicates that the reference voltage vector is in an area other than the set area.

[0171] Then, in the voltage vector space, take θ rt The voltage vector with a phase angle of and a size of the length from the origin to the edge of the regular hexagon is the target voltage vector.

[0172] from Figure 2 It can be seen that two adjacent non-zero vectors and a zero vector can form a random voltage vector V t , with voltage vector V t Taking sector I as an example, it satisfies the following formula:

[0173] V t ts =V1t1+V2t2+V0t0

[0174] t s =t1+t2+t0

[0175] Among them, t s is the carrier period, t1, t2, t0 are the pulse amplitude times of non-zero vectors V1, V2 and zero vector respectively.

[0176] Therefore, at the phase angle θ rt When the carrier frequency is determined, the pulse amplitude of the output voltage vector can be compensated to obtain the value of θ rt The target voltage vector is a phase angle with the length from the origin to the edge of the regular hexagon as its size, including:

[0177] The first step is to use the following formula based on the phase angle θ rt , calculate the pulse amplitude time of the two non-zero vectors and the pulse amplitude time of the zero vector in the target sector:

[0178]

[0179] t2=t s ·M·sin(θ rt )

[0180] t0=t s -(t1+t2)

[0181] Among them, t1 and t2 are the pulse amplitude time of the two non-zero vectors in the target sector, t0 is the pulse amplitude time of the zero vector, and t s is the carrier period. For example, combined with Fig.12 , t1 and t2 are the pulse amplitude times of the non-zero vectors V1 and V2 respectively.

[0182] In the second step, t1, t2, and t0 are compensated according to the following formula to obtain the action time of the two non-zero vectors and the action time of the zero vector in the target sector:

[0183] t1'=t s t1 / (t1+t2)

[0184] t2'=t s t2 / (t1+t2)

[0185] t0'=0

[0186] Among them, t1' and t2' are the action time of two non-zero vectors, and t0' is the action time of zero vector. Fig.12 , t1' and t2' are the action times of non-zero vectors V1 and V2 respectively.

[0187] After obtaining the action times t1' and t2 of the two non-zero vectors in the target sector, based on the two non-zero vectors and their action times, we can obtain the value of θ rt The target voltage vector V is the phase angle and the length from the origin to the edge of the regular hexagon is the size rt For example, combined with Fig.12 , target voltage vector V rt Satisfy the formula:

[0188] V rt t s =V1t1'+V2t1'

[0189] In this embodiment, the set area of ​​each sector in the voltage vector space includes: an area where the pulse amplitude time of any non-zero vector in the sector is greater than 1. For example, in combination with Fig.12 , taking sector I as an example, the sector has two non-zero vectors V1 and V2, and the set area is the area where t1>1 or t2>1.

[0190] Obviously, the target voltage vector V obtained in the above manner is rt , extending the interval By increasing the action time of the six non-zero vectors, the waveform of the output voltage can be made closer to a square.

[0191] The output voltage waveform obtained by this overmodulation method is as follows Fig.13 As shown, from Fig.13 It can be clearly seen that the waveform is closer to a square wave, which can achieve a higher voltage output and realize a motor drive with a high and stable output voltage during acceleration and deceleration operation.

[0192] S104F, if the target modulation rate is not greater than 1, use the reference voltage vector to perform PWM control on the motor to adjust the current modulation rate to the target modulation rate.

[0193] In this embodiment, if the target modulation rate is not greater than 1, it means that the SVPWM is in the linear modulation area. At this time, the reference voltage vector is directly used to perform PWM control on the motor to adjust the current modulation rate to the target modulation rate to achieve acceleration or deceleration of the motor.

[0194] In a possible implementation, the process of performing PWM control on the motor based on the target current phase angle in step S105 may include S1051 to S1052.

[0195] S1051: If the target speed command is an acceleration command, the motor is PWM controlled by increasing the current current phase angle to the target current phase angle to increase the speed of the motor.

[0196] S1052: If the target speed command is a deceleration command, the motor is PWM controlled by reducing the current current phase angle to the target current phase angle to reduce the speed of the motor.

[0197] In this embodiment, when the target speed instruction is an acceleration instruction, if the efficiency of increasing the current modulation rate to the target modulation rate is less than the efficiency of increasing the current current phase angle to the target current phase angle, the motor is PWM controlled by increasing the current current phase angle to the target current phase angle. When the target speed instruction is a deceleration instruction, if the efficiency of reducing the current modulation rate to the target modulation rate is less than the efficiency of reducing the current current phase angle to the target current phase angle, the motor is PWM controlled by reducing the current current phase angle to the target current phase angle.

[0198] Optionally, increasing the current current phase angle to the target current phase angle or decreasing the current current phase angle to the target current phase angle is collectively referred to as adjusting the current current phase angle to the target current phase angle. The process of adjusting the current current phase angle to the target current phase angle to perform PWM control on the motor in S1051 to S1052 may include S105A to S105D.

[0199] S105A, obtaining the target current command, the current d-axis current, and the current q-axis current.

[0200] In this embodiment, the target current command is the current command I calculated by the speed detection unit described above. * .

[0201] S105B, calculating the d-axis current command and the q-axis current command based on the target current command and the target current phase angle.

[0202] In this embodiment, this step is to calculate the 2-axis current command I d * ,I q * The current phase angle used in the calculation here is the target current phase angle. That is, when the target speed command is an acceleration command, the target current phase angle is β1, and when the target speed command is a deceleration command, the target current phase angle is β2.

[0203] S105C, calculating the d-axis output voltage and the q-axis output voltage according to the d-axis current command, the q-axis current command, the current d-axis current, and the current q-axis current.

[0204] In this embodiment, this step is the calculation process of the current control unit introduced above, which will not be described in detail here.

[0205] S105D, based on the d-axis output voltage and the q-axis output voltage, PWM control is performed on the motor to adjust the current phase angle to the target current phase angle.

[0206] In this embodiment, this step is the process in which the modulation unit performs modulation in the SVPWM manner and the PWM signal generation unit controls the switch action, which will not be described in detail here.

[0207] Further, in order to better illustrate the embodiments of the present invention, the following is a Fig.14 The application examples shown are used to describe the embodiments of the present invention. Fig.14 As shown, the motor control method provided in this embodiment may include the following process:

[0208] 1. Assuming that an acceleration command is received at time t1, compare the efficiency E1 of increasing the modulation rate from m2 to m3 and the efficiency E2 of increasing the current phase angle from β1 to β2. If the comparison result is E1<E2, that is, the efficiency of increasing the current phase angle is higher, the motor is PWM controlled by increasing the current phase angle from β1 to β2, and the modulation rate m2 is kept unchanged, for example, m2 is 1.3;

[0209] 2. Assuming that a new acceleration command is received at time point t2, compare the efficiency E1 of increasing the modulation rate from m2 to m3 and the efficiency E3 of increasing the current phase angle from β2 to β3. If the comparison result is E1>E3, that is, the efficiency of increasing the modulation rate is higher, the motor is PWM controlled by increasing the modulation rate from m2 to m3, and the current phase angle β2 is kept unchanged, for example, β2 is 50deg.

[0210] And so on, so that the optimal speed and efficiency can be achieved every time an acceleration command or a deceleration command is received.

[0211] In order to execute the corresponding steps in the above embodiment and various possible implementation modes, an implementation method of a motor control device is provided below.

[0212] Please refer to Fig.15 , which is a functional module diagram of the motor control device 100 provided by the present invention. It should be noted that the basic principle and technical effect of the motor control device 100 described in this embodiment are the same as those of the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in this embodiment can refer to the corresponding contents of the aforementioned method embodiment. The motor control device 100 is applied to the aforementioned controller 10. Fig.15 The motor control device 100 is introduced. The motor control device 100 includes: a receiving module 101 , a first prediction module 102 , a second prediction module 103 , a first control module 104 and a second control module 105 .

[0213] The receiving module 101 is used to receive a target speed instruction.

[0214] The first prediction module 102 is used to predict the first efficiency corresponding to the target speed instruction when the current modulation rate is adjusted to the target modulation rate based on the target speed instruction and the first efficiency characteristic diagram, wherein the first efficiency characteristic diagram reflects the maximum speed and efficiency of the motor at different modulation rates.

[0215] The second prediction module 103 is used to predict the second efficiency corresponding to the target speed instruction when the current current phase angle is adjusted to the target current phase angle based on the target speed instruction and the second efficiency characteristic diagram, wherein the second efficiency characteristic diagram reflects the maximum speed and efficiency of the motor at different current phase angles.

[0216] The first control module 104 is configured to perform PWM control on the motor based on a target modulation rate if the first efficiency is greater than the second efficiency.

[0217] The second control module 105 is configured to perform PWM control on the motor based on a target current phase angle if the first efficiency is less than the second efficiency.

[0218] Optionally, adjusting the current modulation rate to the target modulation rate includes: increasing the current modulation rate to the target modulation rate or decreasing the current modulation rate to the target modulation rate;

[0219] The first control module 104 is specifically used for:

[0220] If the target speed command is an acceleration command, the motor is PWM controlled by increasing the current modulation rate to the target modulation rate to increase the motor speed;

[0221] If the target speed command is a deceleration command, the motor is PWM controlled by reducing the current modulation rate to the target modulation rate to reduce the speed of the motor.

[0222] Optionally, the first control module 104 performs PWM control on the motor by adjusting the current modulation rate to the target modulation rate, including:

[0223] Obtain target current command, current d-axis current and current q-axis current;

[0224] Calculate the d-axis current command and the q-axis current command according to the target current command and the current current phase angle;

[0225] Calculate an initial d-axis voltage and an initial q-axis voltage according to a d-axis current command, a q-axis current command, a current d-axis current, and a current q-axis current;

[0226] A reference voltage vector is obtained according to the target modulation rate, the initial d-axis voltage and the initial q-axis voltage, wherein the modulation rate corresponding to the reference voltage vector is the target modulation rate;

[0227] If the target modulation rate is greater than 1, based on the phase angle of the reference voltage vector and the voltage space vector diagram, the action time of each non-zero voltage vector in the PWM control is extended to obtain the target voltage vector, and the target voltage vector is used to perform PWM control on the motor to adjust the current modulation rate to the target modulation rate;

[0228] If the target modulation rate is not greater than 1, the reference voltage vector is used to perform PWM control on the motor to adjust the current modulation rate to the target modulation rate.

[0229] Optionally, the first control module 104 executes a method of obtaining a reference voltage vector according to the target modulation rate, the initial d-axis voltage and the initial q-axis voltage, including:

[0230] Calculating a phase angle of a reference voltage vector according to an initial d-axis voltage and an initial q-axis voltage;

[0231] The magnitude of the reference voltage vector is calculated according to the target modulation rate and the DC bus voltage.

[0232] Optionally, the voltage space vector diagram includes six non-zero vectors, the six non-zero vectors form a regular hexagon and divide the voltage vector space into six sectors, each sector includes a predefined set area;

[0233] The first control module 104 executes the phase angle and voltage space vector diagram of the reference voltage vector to extend the action time of each non-zero voltage vector in the PWM control to obtain the target voltage vector, including:

[0234] Obtaining a target sector where a reference voltage vector is located in a voltage vector space;

[0235] If the reference voltage vector is in a set region in the target sector, a non-zero vector in the set region is used as the target voltage vector;

[0236] If the reference voltage vector is located in other areas of the target sector except the set area, the phase angle of the reference voltage vector is changed to obtain a target voltage vector located in other areas and connected to the edge of the regular hexagon.

[0237] Optionally, adjusting the current current phase angle to the target current phase angle includes: increasing the current current phase angle to the target current phase angle or decreasing the current current phase angle to the target current phase angle;

[0238] The second control module 105 is specifically used for:

[0239] If the target speed command is an acceleration command, the motor is PWM controlled by increasing the current phase angle to the target current phase angle to increase the motor speed;

[0240] If the target speed command is a deceleration command, the motor is PWM controlled by reducing the current phase angle to the target current phase angle to reduce the speed of the motor.

[0241] Optionally, the second control module 105 performs PWM control on the motor by adjusting the current current phase angle to the target current phase angle, including:

[0242] Obtain target current command, current d-axis current and current q-axis current;

[0243] Calculate the d-axis current command and the q-axis current command according to the target current command and the target current phase angle;

[0244] Calculate the d-axis output voltage and the q-axis output voltage according to the d-axis current command, the q-axis current command, the current d-axis current, and the current q-axis current;

[0245] Based on the d-axis output voltage and the q-axis output voltage, the motor is PWM controlled to adjust the current phase angle to the target current phase angle.

[0246] In summary, the present invention provides a motor control method, device, controller, electronic device and medium. When receiving a target speed command, the first efficiency corresponding to the target speed command when the current modulation rate is adjusted to the target modulation rate is first predicted based on the target speed command and the first efficiency characteristic diagram, and then the second efficiency corresponding to the target speed command when the current current phase angle is adjusted to the target current phase angle is predicted based on the target speed command and the second efficiency characteristic diagram; then, if the first efficiency is greater than the second efficiency, the motor is PWM controlled based on the target modulation rate; if the first efficiency is less than the second efficiency, the motor is PWM controlled based on the target current phase angle; thereby, the modulation rate and current phase angle can be reasonably adjusted in motor control to achieve optimal speed and efficiency.

[0247] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.

Claims

1. A motor control method, characterized in that: The motor control method comprises: receiving a target speed command; Based on the target speed command and a first efficiency characteristic diagram, predicting a first efficiency corresponding to the target speed command when adjusting the current modulation rate to the target modulation rate, wherein the first efficiency characteristic diagram reflects the maximum speed and efficiency of the motor at different modulation rates; Based on the target speed command and the second efficiency characteristic diagram, predicting a second efficiency corresponding to the target speed command when adjusting the current phase angle to the target current phase angle, wherein the second efficiency characteristic diagram reflects the maximum speed and efficiency of the motor at different current phase angles; If the first efficiency is greater than the second efficiency, performing PWM control on the motor based on the target modulation rate; If the first efficiency is less than the second efficiency, PWM control is performed on the motor based on the target current phase angle.

2. The motor control method according to claim 1, characterized in that: The adjusting the current modulation rate to the target modulation rate includes: increasing the current modulation rate to the target modulation rate or decreasing the current modulation rate to the target modulation rate; The step of performing PWM control on the motor based on the target modulation rate comprises: If the target speed command is an acceleration command, the motor is PWM controlled by increasing the current modulation rate to the target modulation rate to increase the speed of the motor; If the target speed command is a deceleration command, the motor is PWM controlled by reducing the current modulation rate to the target modulation rate to reduce the speed of the motor.

3. The motor control method according to claim 2, characterized in that: The step of performing PWM control on the motor by adjusting the current modulation rate to the target modulation rate comprises: Obtain target current command, current d-axis current and current q-axis current; Calculating a d-axis current command and a q-axis current command according to the target current command and the current current phase angle; Calculating an initial d-axis voltage and an initial q-axis voltage according to the d-axis current command, the q-axis current command, the current d-axis current, and the current q-axis current; Obtaining a reference voltage vector according to the target modulation rate, the initial d-axis voltage, and the initial q-axis voltage, wherein the modulation rate corresponding to the reference voltage vector is the target modulation rate; If the target modulation rate is greater than 1, based on the phase angle of the reference voltage vector and the voltage space vector diagram, the action time of each non-zero voltage vector in the PWM control is extended to obtain a target voltage vector, and the target voltage vector is used to perform PWM control on the motor to adjust the current modulation rate to the target modulation rate; If the target modulation rate is not greater than 1, the reference voltage vector is used to perform PWM control on the motor to adjust the current modulation rate to the target modulation rate.

4. The motor control method according to claim 3, characterized in that: The step of obtaining a reference voltage vector according to the target modulation rate, the initial d-axis voltage and the initial q-axis voltage comprises: Calculating a phase angle of the reference voltage vector according to the initial d-axis voltage and the initial q-axis voltage; The magnitude of the reference voltage vector is calculated according to the target modulation rate and the DC bus voltage.

5. The motor control method according to claim 4, characterized in that: The magnitude of the reference voltage vector satisfies the following formula: Among them, |V t | is the magnitude of the reference voltage vector, M is the target modulation rate, V dc is the DC bus voltage.

6. The motor control method according to claim 3, characterized in that: The voltage space vector diagram includes six non-zero vectors, the six non-zero vectors form a regular hexagon and divide the voltage vector space into six sectors, each sector includes a predefined set area; The step of extending the action time of each non-zero voltage vector in PWM control based on the phase angle of the reference voltage vector and the voltage space vector diagram to obtain the target voltage vector comprises: obtaining the target sector where the reference voltage vector is located in the voltage vector space; If the reference voltage vector is in a set region in the target sector, a non-zero vector in the set region is used as a target voltage vector; If the reference voltage vector is in another area of ​​the target sector except the set area, the phase angle of the reference voltage vector is changed to obtain a target voltage vector located in the other area and connected to the edge of the regular hexagon.

7. The motor control method according to claim 1, characterized in that: The adjusting the current current phase angle to the target current phase angle comprises: increasing the current current phase angle to the target current phase angle or decreasing the current current phase angle to the target current phase angle; The step of performing PWM control on the motor based on the target current phase angle comprises: If the target speed command is an acceleration command, the motor is subjected to PWM control by increasing the current current phase angle to the target current phase angle to increase the speed of the motor; If the target speed instruction is a deceleration instruction, the motor is PWM controlled by reducing the current current phase angle to the target current phase angle to reduce the speed of the motor.

8. The motor control method according to claim 7, characterized in that: The step of performing PWM control on the motor by adjusting the current current phase angle to the target current phase angle comprises: Obtain target current command, current d-axis current and current q-axis current; Calculating a d-axis current command and a q-axis current command according to the target current command and the target current phase angle; Calculating a d-axis output voltage and a q-axis output voltage according to the d-axis current command, the q-axis current command, the current d-axis current, and the current q-axis current; Based on the d-axis output voltage and the q-axis output voltage, the motor is subjected to PWM control to adjust a current phase angle to a target current phase angle.

9. A motor control device, characterized in that: The motor control device comprises: A receiving module, used for receiving a target speed instruction; a first prediction module, configured to predict, based on the target speed command and a first efficiency characteristic diagram, a first efficiency corresponding to the target speed command when the current modulation rate is adjusted to the target modulation rate, wherein the first efficiency characteristic diagram reflects the maximum speed and efficiency of the motor at different modulation rates; A second prediction module, for predicting a second efficiency corresponding to the target speed command when adjusting the current phase angle to the target current phase angle based on the target speed command and a second efficiency characteristic diagram, wherein the second efficiency characteristic diagram reflects the maximum speed and efficiency of the motor at different current phase angles; a first control module, configured to perform PWM control on the motor based on the target modulation rate if the first efficiency is greater than the second efficiency; A second control module is configured to perform PWM control on the motor based on the target current phase angle if the first efficiency is less than the second efficiency.

10. A controller, characterized in that: The controller includes a processor and a memory, wherein the memory is used to store a program, and the processor is used to implement the motor control method according to any one of claims 1 to 8 when executing the program.

11. An electronic device, characterized in that: The electronic device comprises the controller according to claim 10.

12. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the motor control method according to any one of claims 1 to 8 is implemented.