Permanent magnet synchronous motor speed regulation method and control system

By selecting different speed regulation methods according to the speed difference value, the speed regulation performance of new energy vehicle motors is optimized, the problem of slow speed regulation response in the existing technology is solved, the shift time is shortened, and the vehicle's power performance and driving are improved. Feel.

CN119030383APending Publication Date: 2024-11-26DONGFENG OFF ROAD VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410937701.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The existing new energy vehicle motor speed regulation method is slow to respond, resulting in a long shift time, affecting power performance and driving experience, especially in the case of large moment of inertia or high-power motors, the problem is even more serious.

Method used

By obtaining the working mode command and speed target of the speed control unit, calculating the speed difference value, and selecting different speed regulation methods based on the difference value and the set threshold value, entering the maximum torque speed regulation or speed ring PI speed regulation, optimizing motor control, Shorten the speed adjustment time.

Benefits of technology

It improves motor speed regulation performance, shortens gear shifting time, reduces power interruption, and improves vehicle driving comfort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030383A_ABST
    Figure CN119030383A_ABST
Patent Text Reader

Abstract

The invention discloses a permanent magnet synchronous motor speed regulation method and control system, and the method comprises the steps: obtaining a rotating speed mode switching instruction sent by a variable speed control unit, and switching the working mode of a motor control unit from a torque mode to a rotating speed mode; a rotating speed target instruction sent by the variable speed control unit is obtained through the motor control unit, and the current rotating speed value of the permanent magnet synchronous motor is calculated and obtained; performing rotation speed difference calculation on the rotation speed target and the current rotation speed value of the permanent magnet synchronous motor through a motor control unit to obtain a rotation speed difference; comparing the rotating speed difference value with a set rotating speed threshold value of the permanent magnet synchronous motor to obtain a comparison result; according to the comparison result, selecting different speed regulation methods to regulate the speed of the permanent magnet synchronous motor; according to the invention, the speed regulation time of the permanent magnet synchronous motor can be shortened, the speed regulation performance is improved, and the gear shifting time is reduced, so that the power interruption time is reduced, and the vehicle driving comfort is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of motor control for new energy vehicles, and more specifically, relates to a permanent magnet synchronous motor speed regulation method and control system. Background Art

[0002] In the electric drive assembly of the multi-speed reducer of new energy vehicles, when switching gears (upshifting or downshifting), there is a speed difference between the engaging teeth and the engaged teeth. In order to enable smooth engagement, it is necessary to adjust the speed of the motor in the electric drive assembly to make the speeds of the engaging teeth and the engaged teeth consistent.

[0003] In the development of two-speed electric drive axles for some new energy off-road vehicles, electric drive axles / electric drive assemblies with single-motor two-speed reducers are designed. The two gears are designed to use low-speed and high-speed ratios when starting at low speed and climbing, and high-speed and low-speed ratios when high speed, so as to improve the power and economy of the entire electric drive axle on the vehicle. During the driving process of the vehicle, when the shift point is reached or the shift is forced, the TCU (transmission control unit) in the electric drive axle assembly first removes the current gear to neutral according to the built-in program strategy, and then sends instructions to control the MCU (motor control unit) to drive the motor for speed regulation. After reaching the target speed, the TCU judges that the speed difference threshold meets the requirements and switches the gear from neutral to the target gear. The performance of each link in the above shifting process is crucial. Among them, after the TCU switches the gear to neutral, the motor speed regulation process is the top priority. The speed regulation time of the motor speed increase and speed decrease, the stability of the speed after speed regulation, and the stability of torque fluctuations have a crucial impact on the shifting performance.

[0004] However, the conventional method of motor speed regulation is to use the speed PI (proportional integral) regulation when the motor is controlled and the motor enters the speed control mode (also called the speed control loop, speed loop control mode). Under this method, the motor speed response is slow and the speed regulation time is long, which will greatly increase the speed regulation time and then increase the gear shifting time. In this case, the vehicle will have a long power interruption while driving, affecting the driving experience and the power performance of the vehicle. If the vehicle is equipped with a rotor with a large moment of inertia or a high-power motor, the problem of conventional speed regulation will become more serious. Summary of the invention

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a permanent magnet synchronous motor speed regulation method and control system, which switches the control mode of the motor control unit by obtaining the working mode instruction issued by the speed control unit; obtains the speed target issued by the speed control unit and obtains the speed value of the current motor, calculates the speed difference between the speed target and the speed value of the current motor, and compares the speed difference with the set threshold; according to the comparison result of the speed difference with the set threshold, different speed regulation methods are performed according to different speed intervals; when the speed difference is greater than or equal to the set threshold, enters the maximum torque speed regulation link, and calculates the maximum torque that can be output by the motor; according to the maximum torque that can be output by the motor, determines the D-axis and Q-axis currents input to the current loop; according to the calculated D-axis and Q-axis currents, performs current loop PI control to drive the permanent magnet synchronous motor; when the speed difference is less than the set threshold, enters the speed loop PI link and the current loop PI link to control and drive the permanent magnet synchronous motor to rotate. According to the permanent magnet synchronous motor speed regulation method and control system provided by the present invention, the motor speed regulation time of the multi-speed electric drive assembly can be shortened, the speed regulation performance can be improved, the gear shifting time can be reduced, thereby reducing the power interruption time and improving the driving comfort of the vehicle.

[0006] In order to achieve the above object, one aspect of the present invention provides a permanent magnet synchronous motor speed control method, comprising the following steps:

[0007] S1: Obtaining a speed mode switching instruction issued by a speed control unit, and switching the working mode of the motor control unit from a torque mode to a speed mode;

[0008] S2: Obtaining the speed target instruction issued by the speed control unit through the motor control unit, calculating and obtaining the current speed value of the permanent magnet synchronous motor;

[0009] S3: calculating the speed difference between the speed target and the current speed value of the permanent magnet synchronous motor through the motor control unit to obtain the speed difference;

[0010] S4: comparing the speed difference with the set speed threshold of the permanent magnet synchronous motor through a motor control unit to obtain a comparison result; and selecting different speed regulation methods to regulate the speed of the permanent magnet synchronous motor according to the comparison result;

[0011] S5: The speed control unit detects and determines whether the speed of the permanent magnet synchronous motor meets the standard. If it meets the standard, it sends a torque mode switching command and a target torque command to the motor control unit to maintain the speed of the permanent magnet synchronous motor during the gear engagement process, so that the speed does not drop during the gear engagement time interval, so as to facilitate the smooth engagement of the related gear structure; otherwise, execute the next step;

[0012] S6: Repeat steps S1 to S5 until the permanent magnet synchronous motor speed reaches the standard.

[0013] Furthermore, the speed difference in step S3 is calculated as the absolute value of the difference between the speed target and the current speed value of the motor.

[0014] Furthermore, the set speed threshold of the permanent magnet synchronous motor in step S4 can be calibrated, and the set speed threshold can be adjusted according to different permanent magnet synchronous motor characteristics and speed regulation performance requirements.

[0015] Furthermore, in step S4, the speed difference is compared with a set speed threshold of the permanent magnet synchronous motor to obtain a comparison result; and selecting different speed regulation methods to regulate the speed of the permanent magnet synchronous motor according to the comparison result includes:

[0016] S41: Compare the speed difference with the set speed threshold of the permanent magnet synchronous motor to determine whether a speed threshold determination condition is met; if so, enter the maximum torque speed regulation link to adjust the speed of the permanent magnet synchronous motor; if not, execute the next step;

[0017] S42: Entering the speed loop PI speed regulation link and the current loop PI speed regulation link in sequence to adjust the speed of the permanent magnet synchronous motor;

[0018] Furthermore, the speed threshold judgment condition in step S41 is: the speed difference is greater than or equal to the set speed threshold of the permanent magnet synchronous motor; when the speed difference is greater than or equal to the set speed threshold of the permanent magnet synchronous motor, the maximum torque speed regulation link is entered to adjust the speed of the permanent magnet synchronous motor; when the speed difference is less than the set speed threshold of the permanent magnet synchronous motor, the speed loop PI link and the current loop PI link are entered to drive the permanent magnet synchronous motor to rotate.

[0019] Furthermore, in step S41, entering the maximum torque speed regulation link to regulate the speed of the permanent magnet synchronous motor includes:

[0020] S411: Determine a current operating mode of the permanent magnet synchronous motor, and calculate a maximum torque that can be output by the permanent magnet synchronous motor according to the current operating mode of the permanent magnet synchronous motor;

[0021] S412: Determine the D-axis and Q-axis currents input to the current loop according to the maximum torque that can be output by the permanent magnet synchronous motor;

[0022] S413: Performing current loop PI control according to the D-axis and Q-axis currents input to the current loop and outputting SVPWM to the hardware to drive the permanent magnet synchronous motor to rotate.

[0023] Further, in step S411, calculating the maximum torque that can be output by the permanent magnet synchronous motor according to the current working mode of the permanent magnet synchronous motor includes:

[0024] S4111: Determine the maximum available power of the motor system according to the power battery SOC, the maximum allowable charging or discharging current of the power battery, and the bus voltage;

[0025] S4112: Determine the maximum output power of the motor according to the peak power limit of the motor and the maximum power available of the motor system;

[0026] S4113: Calculate a torque limit value according to the maximum output power and current speed of the motor and set it as T1;

[0027] S4114: Calculate the motor external characteristic torque limit value according to the current bus voltage and the current motor speed by looking up the table, and set it as T2;

[0028] S4115: Calculate the torque limit value considering the temperature derating according to the current motor temperature and set it to T3;

[0029] S4116: Calculate the torque limit value taking into account the temperature derating according to the temperature of the motor control unit and set it to T4;

[0030] S4117: calibrate the motor peak torque limit according to the motor characteristics and performance, and set it to T5;

[0031] The unit is Nm,

[0032] S4118: Based on T1, T2, T3, T4, and T5 obtained by the above calculations, the minimum value is taken as the maximum torque that the motor can output.

[0033] Furthermore, in step S4112, the maximum output power of the motor is the smaller value between the peak power limit of the motor and the maximum power available of the motor system.

[0034] Furthermore, in step S412, the D-axis and Q-axis currents input to the current loop are determined according to the maximum torque that the permanent magnet synchronous motor can output; including: querying the calibrated motor MAP table according to the maximum torque that the current motor can output, the current motor speed, the current bus voltage, and the current motor temperature obtained in the above steps to obtain the D-axis and Q-axis currents of the current loop PI.

[0035] The second aspect of the present invention provides a permanent magnet synchronous motor speed control system for implementing the permanent magnet synchronous motor speed control method, comprising: a speed control unit TCU, a motor control unit MCU and a permanent magnet synchronous motor;

[0036] The transmission control unit TCU is used to switch the gear of the electric drive multi-speed reducer according to the vehicle driving intention, and when switching the gear, sends a torque and speed control mode switching instruction, a speed target instruction and a torque target instruction to the motor control unit MCU;

[0037] The motor control unit MCU is a motor control unit, which is used to receive the torque and speed control mode switching instructions, speed target instructions, and torque target instructions sent by the speed control unit TCU, implement control, and execute the permanent magnet synchronous motor speed regulation method;

[0038] When the speed of the permanent magnet synchronous motor reaches the standard, the speed control unit TCU switches the operating mode of the motor control unit MCU from the speed mode to the torque mode, and sends a torque command that can maintain the current speed of the permanent magnet synchronous motor to the motor control unit MCU, so that the speed of the permanent magnet synchronous motor does not drop during the time gap of gear engagement, thereby facilitating the smooth engagement of the relevant shaft and gear structures on the gear.

[0039] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0040] (1) A permanent magnet synchronous motor speed control method and control system of the present invention adopts segmented speed regulation of the permanent magnet synchronous motor, and selects different speed control methods according to different speed differences to match the characteristics of different speed stages of the permanent magnet synchronous motor. After the working mode of the motor control unit is switched from the torque control mode to the speed control mode, the traditional speed PI loop and current PI loop are not directly adopted, but the speed difference between the currently detected motor speed and the target speed sent by the TCU is used to judge whether the speed threshold judgment condition is met. The threshold value can be calibrated according to the system characteristics and the actual test results. When the speed difference is greater than or equal to the threshold, the direct maximum torque speed regulation mode is entered, and the maximum torque that the motor can currently output is directly calculated according to the current speed and related boundary conditions, and the D-axis and Q-axis currents are calculated by looking up the table according to the maximum torque, and the current loop PI and FOC control algorithms are entered. When the speed difference is less than the threshold, that is, when the motor speed regulation enters the final stage, according to the conventional control algorithm, the speed loop PI regulation and the current loop PI regulation are entered to adjust the stability of the motor speed in the latter stage. The segmented speed regulation method of the present invention has the advantages of improving the speed regulation performance and shortening the motor speed regulation time for electric vehicle drive motor speed regulation, especially for high-power and large rotational inertia motors. At the same time, the method comprehensively considers the motor system itself and the capabilities of the high-voltage power supply system. While regulating the speed, it effectively protects itself and other systems, and avoids the motor speed increase and decrease during speed regulation to affect other systems of the electric vehicle, thereby affecting the safety of the vehicle.

[0041] (2) A permanent magnet synchronous motor speed control method and control system of the present invention can improve the speed control performance under the current conventional permanent magnet synchronous motor speed control mode and method, improve the speed response performance, and reduce the speed control time; it can improve the gear shifting performance of the reducer gear switching in a multi-gear electric drive, shorten the motor speed control time, reduce the gear shifting time, and then reduce the impact of power interruption during gear shifting. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A schematic flow chart of a permanent magnet synchronous motor speed regulation method according to an embodiment of the present invention;

[0043] Figure 2 A schematic diagram of a calculation process of a maximum torque that can be output by a permanent magnet synchronous motor in a method for speed regulation of a permanent magnet synchronous motor according to an embodiment of the present invention;

[0044] Figure 3 This is a structural schematic diagram of a permanent magnet synchronous motor speed control system according to an embodiment of the present invention;

[0045] Figure 4 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0047] Current loop PI control is a commonly used control strategy in motor control systems, especially in vector control of permanent magnet synchronous motors. The PI controller adjusts the current through proportional and integral parts to achieve fast response and reduce steady-state error.

[0048] In FOC (Field-Oriented Control), the debugging of the current loop is very critical, as it directly affects the performance of the system.

[0049] like Figure 1 and Figure 2 As shown, one aspect of the present invention provides a permanent magnet synchronous motor speed control method, comprising the following steps:

[0050] S1: Obtaining a speed mode switching instruction issued by a speed control unit, and switching the working mode of the motor control unit from a torque mode to a speed mode;

[0051] S2: Obtaining the speed target instruction issued by the speed control unit through the motor control unit, calculating and obtaining the current speed value of the permanent magnet synchronous motor;

[0052] S3: calculating the speed difference between the speed target and the current speed value of the permanent magnet synchronous motor through the motor control unit to obtain the speed difference;

[0053] S4: comparing the speed difference with the set speed threshold of the permanent magnet synchronous motor through a motor control unit to obtain a comparison result; and selecting different speed regulation methods to regulate the speed of the permanent magnet synchronous motor according to the comparison result;

[0054] S5: The speed control unit detects and determines whether the speed of the permanent magnet synchronous motor meets the standard. If it meets the standard, it sends a torque mode switching command and a target torque command to the motor control unit to maintain the speed of the permanent magnet synchronous motor during the gear engagement process, so that the speed does not drop during the gear engagement time interval, so as to facilitate the smooth engagement of the related gear structure; otherwise, execute the next step;

[0055] S6: Repeat steps S1 to S5 until the permanent magnet synchronous motor speed reaches the standard.

[0056] Furthermore, the speed difference in step S3 is calculated as the absolute value of the difference between the speed target and the current speed value of the motor.

[0057] Furthermore, the set speed threshold N1 of the permanent magnet synchronous motor in step S4 can be calibrated, and the set speed threshold can be adjusted according to different permanent magnet synchronous motor characteristics and speed regulation performance requirements.

[0058] Furthermore, in step S4, the speed difference is compared with a set speed threshold of the permanent magnet synchronous motor to obtain a comparison result; and selecting different speed regulation methods to regulate the speed of the permanent magnet synchronous motor according to the comparison result includes:

[0059] S41: Compare the speed difference with the set speed threshold of the permanent magnet synchronous motor to determine whether a speed threshold determination condition is met; if so, enter the maximum torque speed regulation link to adjust the speed of the permanent magnet synchronous motor; if not, execute the next step;

[0060] S42: Entering the speed loop PI speed regulation link and the current loop PI speed regulation link in sequence to regulate the speed of the permanent magnet synchronous motor.

[0061] Further, the speed threshold judgment condition in step S41 is: the speed difference is greater than or equal to the set speed threshold of the permanent magnet synchronous motor, that is, |speed difference ≥ N1; when the speed difference is greater than or equal to the set speed threshold of the permanent magnet synchronous motor, the maximum torque speed regulation link is entered to adjust the speed of the permanent magnet synchronous motor; when the speed difference is less than the set speed threshold of the permanent magnet synchronous motor, the speed loop PI link and the current loop PI link are entered to drive the permanent magnet synchronous motor to rotate;

[0062] Furthermore, in step S41, entering the maximum torque speed regulation link to regulate the speed of the permanent magnet synchronous motor includes:

[0063] S411: Determine a current operating mode of the permanent magnet synchronous motor, and calculate a maximum torque that can be output by the permanent magnet synchronous motor according to the current operating mode of the permanent magnet synchronous motor;

[0064] S412: Determine the D-axis and Q-axis currents input to the current loop according to the maximum torque that can be output by the permanent magnet synchronous motor;

[0065] S413: Performing current loop PI control according to the D-axis and Q-axis currents input to the current loop and outputting SVPWM to the hardware to drive the permanent magnet synchronous motor to rotate.

[0066] Furthermore, in step S411, the current working mode of the permanent magnet synchronous motor is determined, including: the electric / generating mode of the permanent magnet synchronous motor is determined, that is, the positive and negative direction of the torque is determined, specifically, it is determined according to the positive and negative signs of the difference between the current speed and the target speed. When the current speed is higher than the target speed and the difference is positive, the motor is in the deceleration generating mode, and the direction of the output torque is opposite to the direction of the speed; when the current speed is lower than the target speed and the difference is negative, the motor is in the speed-up electric mode, and the direction of the output torque is the same as the direction of the speed.

[0067] Furthermore, if Figure 2 As shown, in step S411, calculating the maximum torque that can be output by the permanent magnet synchronous motor according to the current working mode of the permanent magnet synchronous motor includes:

[0068] S4111: Determine the maximum available power of the motor system according to the power battery SOC, the maximum allowable charging or discharging current of the power battery, and the bus voltage;

[0069] S4112: Determine the maximum output power of the motor according to the peak power limit of the motor and the maximum power available of the motor system;

[0070] S4113: Calculate a torque limit value according to the maximum output power and current speed of the motor and set it as T1;

[0071] S4114: Calculate the motor external characteristic torque limit value according to the current bus voltage and the current motor speed by looking up the table, and set it as T2;

[0072] S4115: Calculate the torque limit value considering the temperature derating according to the current motor temperature and set it to T3;

[0073] S4116: Calculate the torque limit value taking into account the temperature derating according to the temperature of the motor control unit and set it to T4;

[0074] S4117: calibrate the motor peak torque limit according to the motor characteristics and performance, and set it to T5;

[0075] The unit is Nm,

[0076] S4118: Based on T1, T2, T3, T4, and T5 obtained by the above calculations, the minimum value is taken as the maximum torque that the motor can output.

[0077] Furthermore, in step S4112, the maximum output power of the motor is the smaller value between the peak power limit of the motor and the maximum power available of the motor system.

[0078] Furthermore, the calculation of the torque limit in step S4113 is expressed by formula (1):

[0079] T1 = (9550 * maximum motor output power) / current motor speed (1)

[0080] Among them, the unit of T1 is Nm, the unit of power is kW, and the unit of speed is rpm; in this step, the calculation steps of the motor's electric mode torque and generating mode torque are the same.

[0081] Furthermore, in step S4114, the unit of T2 is Nm; the table lookup object in this step is the calibrated motor MAP table, and different bus voltages and speeds and electric / generating modes correspond to different motor external characteristics.

[0082] Further, in step S4115, the unit of T3 is Nm, and T3 is defined as kp1*T2; wherein kp1 is the torque output coefficient, temp1_100pct and temp1_0pct are the motor temperature thresholds, corresponding to kp1=100% and kp1=0 respectively; when the current temperature of the motor is less than or equal to temp1_100pct, kp1 is 1, the current temperature of the motor is in [temp1_100pct, temp1_0pct], and kp1 changes in the interval [100%, 0] according to a linear relationship.

[0083] Further, in step S4116, the unit of T4 is Nm, and T4 is defined as kp2*T2; wherein, kp2 is the torque output coefficient, temp2_100pct and temp2_0pct are the temperature thresholds of the motor control unit, corresponding to kp2=100% and kp2=0 respectively, when the current temperature of the motor control unit is less than or equal to temp2_100pct, kp2 is 1, the current temperature of the motor control unit is in [temp2_100pct, temp2_0pct], and kp2 changes in the interval [100%, 0] according to a linear relationship.

[0084] Furthermore, in step S4117, the motor peak torque limit T5 is in Nm. This step is the peak torque limit of the motor itself and can be calibrated according to the motor characteristics and performance.

[0085] Furthermore, in step S412, the D-axis and Q-axis currents input to the current loop are determined according to the maximum torque that the permanent magnet synchronous motor can output; including: querying the calibrated motor MAP table according to the maximum torque that the current motor can output, the current motor speed, the current bus voltage, and the current motor temperature obtained in the above steps to obtain the D-axis and Q-axis currents of the current loop PI.

[0086] Furthermore, step S5 also includes the permanent magnet synchronous motor feeding back the speed to the motor control unit through the position sensor; the speed control unit detects and determines whether the speed of the permanent magnet synchronous motor meets the standard, and if it meets the standard, it sends a torque mode switching instruction and a target torque instruction to the motor control unit to maintain the speed of the permanent magnet synchronous motor during the gear engagement process, so that the speed does not drop within the time gap of the gear engagement, thereby facilitating the smooth engagement of the relevant gear structure; otherwise, the above steps are repeated until the speed of the permanent magnet synchronous motor meets the standard.

[0087] A permanent magnet synchronous motor speed regulation method of the present invention adopts segmented regulation of the speed of the permanent magnet synchronous motor, and selects different speed regulation control methods according to different speed differences to match the characteristics of different speed stages of the permanent magnet synchronous motor. After the working mode of the motor control unit is switched from the torque control mode to the speed control mode, the traditional speed PI loop and current PI loop are not directly adopted. Instead, the speed difference between the currently detected motor speed and the target speed sent by the speed control unit is used to judge whether the speed threshold judgment condition is met. The threshold value can be calibrated according to the system characteristics and the actual test results; when the speed difference is greater than or equal to the speed threshold, the direct maximum torque speed regulation mode is entered, and the maximum torque that the motor can currently output is directly calculated according to the current speed and related boundary conditions, and the D-axis and Q-axis currents are calculated according to the maximum torque lookup table, and the current loop PI and FOC control algorithms are entered. When the speed difference is less than the threshold, that is, when the motor speed regulation enters the final stage, according to the conventional control algorithm, the speed loop PI regulation and the current loop PI regulation are entered to adjust the stability of the motor speed in the latter stage;

[0088] The present invention adopts a method of optimizing the speed regulation performance by dividing the speed range and the speed segment. It is oriented to the speed regulation range with large speed difference (the difference between the current speed and the target speed) and the control system for driving the rotor with large rotational inertia. It has the advantages of fast speed regulation, short speed regulation time, stable speed after the speed regulation is completed, and small torque fluctuation.

[0089] like Figure 3 As shown, the second aspect of the present invention provides a permanent magnet synchronous motor speed control system, comprising a speed control unit TCU, a motor control unit MCU and a permanent magnet synchronous motor; the speed control unit TCU is used to switch the gear of the electric drive multi-speed reducer according to the driving intention of the vehicle, and when switching the gear, sends a torque, speed control mode switching instruction, a speed target instruction and a torque target instruction to the motor control unit MCU; the motor control unit MCU is a motor control unit, which is used to receive the torque, speed control mode switching instruction, speed target instruction and torque target instruction sent by the speed control unit TCU, implement control and execute the permanent magnet synchronous motor speed control method; when the speed of the permanent magnet synchronous motor reaches the standard, the speed control unit TCU switches the operating mode of the motor control unit MCU from the speed mode to the torque mode, and sends a smaller torque instruction to the motor control unit MCU to maintain the current speed of the permanent magnet synchronous motor, so that the speed of the permanent magnet synchronous motor does not drop during the time gap of the gear combination, so as to facilitate the smooth combination of the relevant shaft and gear structure on the gear, and the smaller torque instruction can be calibrated and adjusted according to different system characteristics.

[0090] It should be noted that the permanent magnet synchronous motor speed control system provided in this embodiment can be a computer program (including program code) running in a computer device, for example, the permanent magnet synchronous motor speed control system is an application software; the permanent magnet synchronous motor speed control system can be used to execute the corresponding steps in the above method provided in the embodiment of the present application.

[0091] In some feasible implementations, the permanent magnet synchronous motor speed control system provided in this embodiment can be implemented by a combination of software and hardware. As an example, the permanent magnet synchronous motor speed control system provided in the embodiment of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the permanent magnet synchronous motor speed control method provided in the embodiment of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.

[0092] In some feasible implementations, the permanent magnet synchronous motor speed control system provided in this embodiment can be implemented in software, which can be software in the form of programs and plug-ins, and includes a series of modules to implement the permanent magnet synchronous motor speed control method provided in the embodiment of the present invention.

[0093] The permanent magnet synchronous motor speed control system provided in this embodiment can improve the speed regulation performance under the current conventional permanent magnet synchronous motor speed regulation mode and method, improve the speed response performance, and reduce the speed regulation time; it can improve the gear shifting performance of the reducer gear switching in the multi-gear electric drive, shorten the motor speed regulation time, reduce the gear shifting time, and then reduce the impact of power interruption during gear shifting.

[0094] A third aspect of the present invention further provides an electronic device, Figure 4 Schematic diagram of the structure of the electronic device of this embodiment. Figure 4As shown, the electronic device 1000 in this embodiment may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned electronic device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1004 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Figure 4 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0095] like Figure 4 In the electronic device 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0096] Obtaining a speed mode switching instruction issued by a speed control unit, and switching the working mode from a torque mode to a speed mode;

[0097] Obtain the speed target command issued by the speed control unit, calculate and obtain the current speed value of the permanent magnet synchronous motor;

[0098] Calculate the speed difference between the speed target and the current speed value of the permanent magnet synchronous motor to obtain the speed difference;

[0099] Compare the speed difference with the set speed threshold of the permanent magnet synchronous motor to obtain a comparison result; and select different speed regulation methods to regulate the speed of the permanent magnet synchronous motor according to the comparison result;

[0100] Detect and determine whether the speed of the permanent magnet synchronous motor meets the standard. If it meets the standard, send a torque mode switching instruction and a target torque instruction to the motor control unit to maintain the speed of the permanent magnet synchronous motor during the gear engagement process, so that the speed does not drop within the time interval of the gear engagement, so as to facilitate the smooth engagement of the relevant gear structure; otherwise, repeat steps S1 to S4 until the speed of the permanent magnet synchronous motor meets the standard.

[0101] It should be understood that in some feasible implementations, the processor 1001 may be a central processing unit (CPU), or other general-purpose processors, DSPs, ASICs, FPGAs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0102] In a specific implementation, the electronic device 1000 can execute the above-mentioned functions through its built-in functional modules. Figure 1 For the implementation methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.

[0103] The electronic device provided in this embodiment can improve the speed regulation performance under the current conventional permanent magnet synchronous motor speed regulation mode and method, improve the speed response performance, and reduce the speed regulation time; it can improve the gear shifting performance of the reducer gear switching in the multi-gear electric drive, shorten the motor speed regulation time, reduce the gear shifting time, and then reduce the impact of power interruption during gear shifting.

[0104] The present application also provides a computer-readable storage medium, which stores a computer program and is executed by a processor to implement Figure 1 For the methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.

[0105] The computer-readable storage medium provided in this embodiment can improve the speed regulation performance under the current conventional permanent magnet synchronous motor speed regulation mode and method, improve the speed response performance, and reduce the speed regulation time; it can improve the gear shifting performance of the reducer gear switching in the multi-gear electric drive, shorten the motor speed regulation time, reduce the gear shifting time, and then reduce the impact of power interruption during gear shifting.

[0106] Any reference to memory, storage, database or other medium used in the embodiments provided in the present application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0107] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A permanent magnet synchronous motor speed control method, It is characterized in that The steps include: S1: Obtaining a speed mode switching instruction issued by a speed control unit, and switching the working mode of the motor control unit from a torque mode to a speed mode; S2: Obtaining the speed target instruction issued by the speed control unit through the motor control unit, calculating and obtaining the current speed value of the permanent magnet synchronous motor; S3: calculating the speed difference between the speed target and the current speed value of the permanent magnet synchronous motor through the motor control unit to obtain the speed difference; S4: comparing the speed difference with the set speed threshold of the permanent magnet synchronous motor through a motor control unit to obtain a comparison result; and selecting different speed regulation methods to regulate the speed of the permanent magnet synchronous motor according to the comparison result; S5: The speed control unit detects and determines whether the speed of the permanent magnet synchronous motor meets the standard. If it meets the standard, it sends a torque mode switching command and a target torque command to the motor control unit to maintain the speed of the permanent magnet synchronous motor during the gear engagement process, so that the speed does not drop during the gear engagement time interval, so as to facilitate the smooth engagement of the related gear structure; otherwise, execute the next step; S6: Repeat steps S1 to S5 until the permanent magnet synchronous motor speed reaches the standard.

2. A permanent magnet synchronous motor speed control method according to claim 1, Features: In step S3, the speed difference is calculated as the absolute value of the difference between the speed target and the current speed value of the motor.

3. A permanent magnet synchronous motor speed control method according to claim 1, Features: In step S4, the set speed threshold of the permanent magnet synchronous motor can be calibrated, and the set speed threshold can be adjusted according to different permanent magnet synchronous motor characteristics and speed regulation performance requirements.

4. A permanent magnet synchronous motor speed control method according to any one of claims 1 to 3, Features: In step S4, the speed difference is compared with a set speed threshold of the permanent magnet synchronous motor to obtain a comparison result; and different speed regulation methods are selected according to the comparison result to regulate the speed of the permanent magnet synchronous motor, including: S41: Compare the speed difference with the set speed threshold of the permanent magnet synchronous motor to determine whether a speed threshold determination condition is met; if so, enter the maximum torque speed regulation link to adjust the speed of the permanent magnet synchronous motor; if not, execute the next step; S42: Entering the speed loop PI speed regulation link and the current loop PI speed regulation link in sequence to regulate the speed of the permanent magnet synchronous motor.

5. A permanent magnet synchronous motor speed control method according to claim 4, Features: The speed threshold judgment condition in step S41 is: the speed difference is greater than or equal to the set speed threshold of the permanent magnet synchronous motor; when the speed difference is greater than or equal to the set speed threshold of the permanent magnet synchronous motor, the maximum torque speed regulation link is entered to adjust the speed of the permanent magnet synchronous motor; when the speed difference is less than the set speed threshold of the permanent magnet synchronous motor, the speed loop PI link and the current loop PI link are entered to drive the permanent magnet synchronous motor to rotate.

6. A permanent magnet synchronous motor speed control method according to claim 5, Features: Entering the maximum torque speed regulation link in step S41 to adjust the speed of the permanent magnet synchronous motor includes: S411: Determine a current operating mode of the permanent magnet synchronous motor, and calculate a maximum torque that can be output by the permanent magnet synchronous motor according to the current operating mode of the permanent magnet synchronous motor; S412: Determine the D-axis and Q-axis currents input to the current loop according to the maximum torque that can be output by the permanent magnet synchronous motor; S413: Performing current loop PI control according to the D-axis and Q-axis currents input to the current loop and outputting SVPWM to the hardware to drive the permanent magnet synchronous motor to rotate.

7. A permanent magnet synchronous motor speed control method according to claim 6, Features: In step S411, calculating the maximum torque that can be output by the permanent magnet synchronous motor according to the current working mode of the permanent magnet synchronous motor includes: S4111: Determine the maximum available power of the motor system according to the power battery SOC, the maximum allowable charging or discharging current of the power battery, and the bus voltage; S4112: Determine the maximum output power of the motor according to the peak power limit of the motor and the maximum power available of the motor system; S4113: Calculate a torque limit value according to the maximum output power and current speed of the motor and set it as T1; S4114: Calculate the motor external characteristic torque limit value according to the current bus voltage and the current motor speed by looking up the table, and set it as T2; S4115: Calculate the torque limit value considering the temperature derating according to the current motor temperature and set it to T3; S4116: Calculate the torque limit value taking into account the temperature derating according to the temperature of the motor control unit and set it to T4; S4117: calibrate the motor peak torque limit according to the motor characteristics and performance, and set it to T5; The unit is Nm, S4118: Based on T1, T2, T3, T4, and T5 obtained by the above calculations, the minimum value is taken as the maximum torque that the motor can output.

8. A permanent magnet synchronous motor speed control method according to claim 7, Features: In step S4112, the maximum output power of the motor is the smaller value between the peak power limit of the motor and the maximum power available of the motor system.

9. A permanent magnet synchronous motor speed control method according to claim 6, Features: In step S412, the D-axis and Q-axis currents input to the current loop are determined according to the maximum torque that the permanent magnet synchronous motor can output; including: querying the calibrated motor MAP table according to the maximum torque that the current motor can output, the current motor speed, the current bus voltage, and the current motor temperature obtained in the above steps to obtain the D-axis and Q-axis currents of the current loop PI.

10. A permanent magnet synchronous motor speed control system, It is characterized in that A permanent magnet synchronous motor speed control method for implementing any one of claims 1 to 9, comprising: a speed control unit TCU, a motor control unit MCU and a permanent magnet synchronous motor; The transmission control unit TCU is used to switch the gear of the electric drive multi-speed reducer according to the vehicle driving intention, and when switching the gear, sends a torque and speed control mode switching instruction, a speed target instruction and a torque target instruction to the motor control unit MCU; The motor control unit MCU is a motor control unit, which is used to receive the torque and speed control mode switching instructions, speed target instructions, and torque target instructions sent by the speed control unit TCU, implement control, and execute the permanent magnet synchronous motor speed regulation method; When the speed of the permanent magnet synchronous motor reaches the standard, the speed control unit TCU switches the operating mode of the motor control unit MCU from the speed mode to the torque mode, and sends a torque command that can maintain the current speed of the permanent magnet synchronous motor to the motor control unit MCU, so that the speed of the permanent magnet synchronous motor does not drop during the time gap of gear engagement, thereby facilitating the smooth engagement of the relevant shaft and gear structures on the gear.