Motor active discharge control method and device, computer equipment and storage medium

By dynamically adjusting the calculation mode of the discharge current and combining the bus voltage error and the field weakening current, the problem of discharge failure during high-speed operation of the motor is solved, and safe discharge of the motor at high speed is achieved.

CN118920956APending Publication Date: 2024-11-08CHONGQING JINKANG POWER NEW ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, the problem of active discharge failure during high-speed operation of motors, especially when the voltage variation range is large, is that the fixed direct-axis current cannot be completely discharged within the specified time, resulting in charge accumulation and posing a safety hazard.

Method used

By acquiring the actual direct-axis current of the motor, the calculation mode of the discharge current is dynamically adjusted. Combined with the bus voltage error and field weakening current, PI control and anti-saturation control algorithms are used to dynamically adjust the discharge current to ensure that the motor can discharge safely and effectively when running at high speed.

Benefits of technology

It enables the rapid and safe release of bus voltage and back electromotive force energy during high-speed motor operation, avoiding the safety hazards of charge accumulation and ensuring the safety and stability of the motor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118920956A_ABST
    Figure CN118920956A_ABST
Patent Text Reader

Abstract

The invention relates to a motor active discharge control method and device, computer equipment and a storage medium. The method comprises the steps that the actual direct-axis current of a motor is acquired; according to comparison between the actual direct-axis current and a safety range, determining a calculation mode of the discharge current, determining the discharge current corresponding to the calculation mode, and when the actual direct-axis current is greater than or equal to a discharge lower limit threshold of the safety range and is less than zero, adopting a first mode, obtaining a discharge current of a first mode according to a discharge voltage error between the bus voltage and the target voltage and the weak magnetic current; and controlling the motor to actively discharge according to the discharge current corresponding to the calculation mode. By adopting the method, the problem of discharge failure under a high-speed working condition in the prior art can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a method, device, computer equipment and storage medium for controlling active discharge of a motor. Background Art

[0002] Active discharge of the motor refers to the process in which the bus capacitors and back electromotive force quickly release charge when the motor power is cut off. In the drive motor controller of electric vehicles, bus capacitors play an important role in storing and releasing energy. However, if these capacitors cannot be discharged effectively after the power is cut off, it may cause charge accumulation and damage to the system and components.

[0003] The active discharge process is fast and effective, and can quickly reduce the amount of charge in the bus capacitor and the amount of charge of the back electromotive force, thereby avoiding the potential safety hazards caused by charge accumulation.

[0004] At present, it is possible to use the motor winding discharge, by giving the motor direct axis current I d, and using the loss of the motor stator winding and power devices to release energy. The advantage of this method is that there is no need to add an additional discharge circuit, but the fixed I d current discharge may cause discharge failure during the high-speed process of the motor due to the influence of negative electromotive force, and when the voltage variation range is relatively large, the given fixed ID current cannot completely discharge the electricity within the specified time. Summary of the invention

[0005] Based on this, a motor active discharge control method, device, computer equipment and storage medium are provided to improve the problem of discharge failure under high-speed conditions in the prior art.

[0006] On the one hand, a method for controlling active discharge of a motor is provided, comprising:

[0007] Get the actual direct-axis current of the motor;

[0008] According to the comparison between the actual direct-axis current and the safety range, a calculation mode of the discharge current is determined, and the discharge current corresponding to the calculation mode is determined, including:

[0009] When the actual direct-axis current is greater than or equal to the discharge lower limit threshold of the safety range and less than zero, the first mode is adopted, and the discharge current of the first mode is obtained according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current;

[0010] The motor is actively discharged according to the discharge current corresponding to the calculation mode.

[0011] In one embodiment, the step of determining a calculation mode of the discharge current and determining the discharge current corresponding to the calculation mode further includes:

[0012] When the actual direct-axis current is less than the discharge lower limit threshold, the second mode is adopted, and an anti-saturation control algorithm is adopted according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current to obtain the discharge current of the second mode.

[0013] In one embodiment, the step of determining a calculation mode of the discharge current and determining the discharge current corresponding to the calculation mode further includes:

[0014] When the actual direct-axis current is greater than or equal to zero, the third mode is adopted, and the discharge current of the third mode is determined according to the weak magnetic current.

[0015] In one embodiment, obtaining the discharge current of the first mode includes determining the discharge current of the first mode according to the following mathematical expression:

[0016]

[0017] Among them, Id 1 is the discharge current, V err is the discharge voltage error, Id is the integral term from time 0 to time n in PI control. 2 is the weak magnetic current, Kp is the discharge proportion parameter, and Ki is the discharge integral parameter.

[0018] In one embodiment, obtaining the discharge current of the second mode includes determining the discharge current of the second mode according to the following mathematical expression:

[0019]

[0020] Among them, Id 1 is the discharge current, V err is the discharge voltage error, is the integral term from time 0 to time n in PI control, Id is the integral term from the nth to the n+1th moment in PI control. 2 is the weak magnetic current, Kp is the discharge proportion parameter, and Ki is the discharge integral parameter.

[0021] In one embodiment, the field weakening current is determined according to the following mathematical expression:

[0022]

[0023] Among them, Id 2 is the field weakening current, V err Kp is the discharge voltage error at any time from 0 to n, 1 is the weak magnetic ring ratio parameter, Ki 1 is the integral parameter of the weak magnetic loop, Verr1 is the field weakening voltage error;

[0024] The field weakening voltage error is determined according to the following mathematical expression:

[0025]

[0026] Among them, V is the bus voltage, Mlref is the voltage utilization, Ud is the direct-axis voltage, and Uq is the quadrature-axis voltage.

[0027] In one embodiment, obtaining the actual direct-axis current of the motor includes:

[0028] Determine the quadrature axis current of the motor according to the torque error between the actual torque of the motor and the zero torque;

[0029] Determining the actual direct-axis current according to the quadrature-axis current, the discharge current, and the weak magnetic current includes determining the actual direct-axis current according to the following mathematical expression:

[0030] Id 3 =-K 1 ×Iq 1 -Id 1 +Id 2

[0031] Among them, K 1 is the quadrature axis current coefficient, and the quadrature axis current coefficient is negatively correlated with the motor temperature, Iq 1 is the quadrature axis current, Id 1 is the discharge current, Id 2 is the magnetic weakening current.

[0032] On the other hand, a motor active discharge control device is provided, the device comprising:

[0033] An acquisition module is used to obtain the actual direct-axis current of the motor;

[0034] A calculation module, used to determine a calculation mode of the discharge current according to a comparison between the actual direct-axis current and the safety range, and to determine the discharge current corresponding to the calculation mode, including:

[0035] When the actual direct-axis current is greater than or equal to the discharge lower limit threshold of the safety range and less than zero, the first mode is adopted, and the discharge current of the first mode is obtained according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current;

[0036] The execution module is used to control the active discharge of the motor according to the discharge current corresponding to the calculation mode.

[0037] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the method is implemented when the processor executes the computer program.

[0038] A computer-readable storage medium is also provided, on which a computer program is stored, and when the computer program is executed by a processor, the method described above is implemented.

[0039] The above-mentioned motor active discharge control method, device, computer equipment and storage medium adjust the calculation mode of the discharge current by comparing the actual direct-axis current with the safety range. When the actual direct-axis current is within the safety range, that is, greater than or equal to the discharge lower limit threshold and less than zero, the discharge current of the first mode is obtained according to the discharge voltage error between the bus voltage and the target voltage and the weak magnetic current calculation. Under the premise of safety, combined with weak magnetic control, the bus voltage and the energy of the back electromotive force can be quickly released when the motor rotates at high speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 1 is a flow chart of a method for controlling active discharge of a motor in one embodiment;

[0041] Figure 2 A schematic diagram of the relationship between the quadrature-axis current coefficient and the motor temperature in one embodiment;

[0042] Figure 3 A schematic diagram of a process flow of active discharge of a motor in one embodiment;

[0043] Figure 4 is a structural block diagram of a motor active discharge control device in one embodiment;

[0044] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application 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 application and are not used to limit the present application.

[0046] When the car recognizes the need to park and sleep, or after the vehicle has collided, active discharge control is required to quickly discharge the bus capacitor in the car inverter to below the specified voltage. The current active discharge control process, such as bridge arm direct discharge: using PWM (pulse width modulation) to control the IGBT (insulated gate bipolar transistor) switch, the switching loss consumes the energy in the capacitor; discharge resistor discharge: active discharge is achieved through active discharge resistors, and a discharge resistor is connected in series between the positive and negative busbars to consume the energy of the capacitor through resistor heating; motor winding discharge: given the motor D-axis current Id, the loss of the motor stator winding and power devices is used to release the energy in the capacitor.

[0047] Each active discharge method has its own advantages and disadvantages. Among them, motor winding discharge has low cost and does not require additional discharge circuits, so it is widely used. However, most active discharges in motor controllers are calibrated to discharge with a fixed direct-axis current. This method may fail to discharge during high-speed operation of the motor due to the influence of back electromotive force, etc., and when the voltage variation range is relatively large, the given fixed direct-axis current cannot completely discharge the power within the specified time.

[0048] In one embodiment, a motor active discharge control method is provided, which determines a discharge current calculation mode based on a range of actual direct-axis current, and dynamically adjusts the discharge current to achieve a rapid discharge effect.

[0049] In one embodiment, the method is as follows Figure 1 As shown, the following steps are included:

[0050] Step 110, obtaining the actual direct-axis current of the motor.

[0051] In a permanent magnet synchronous motor, the current vector can be decomposed into two components: the direct axis current and the quadrature axis current. These two components correspond to the direct axis and quadrature axis directions of the motor, respectively, and have different functions and influences. The direct axis current, also known as the d-axis current, is related to the discharge current in actual implementation, and is also affected by the back electromotive force and torque generated during the high-speed rotation of the motor.

[0052] In this embodiment, the actual direct axis current is defined as Id 3 .

[0053] Step 120: Determine a calculation mode of the discharge current based on a comparison between the actual direct-axis current and the safety range, and determine the discharge current corresponding to the calculation mode.

[0054] In the present application, the calculation method of the discharge current is dynamically adjusted according to the range of the actual direct-axis current, exemplarily:

[0055] When the actual direct-axis current is greater than or equal to the discharge lower limit threshold of the safety range and less than zero, the first mode is adopted, and the discharge current of the first mode is obtained according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current.

[0056] It can be understood that, in active discharge control, the discharge current refers to the discharge current in the direct axis direction.

[0057] The safety range is set based on the safety of the motor itself and considering the saturation effect during control. In this embodiment, a certain redundancy is set based on the phase current peak value. For example:

[0058] Define the phase current peak value as Is max ;

[0059] The lower discharge threshold that defines the safety range is Understandably, Is max The coefficient before can be adjusted according to the actual situation;

[0060] when At this time, based on the current bus voltage V and the target voltage V 1 The discharge voltage error V err =VV 1 , and the field weakening current Id 2 , obtain the discharge current of the first mode.

[0061] For example, based on the PI (proportional integral) control algorithm, the bus voltage is quickly reduced to the target voltage, and weak magnetic control is performed at the same time, and discharge is performed within the full speed range, effectively ensuring that the motor can discharge successfully when running at high speed.

[0062] Specifically, when When , the discharge current of the first mode is calculated according to formula (1):

[0063]

[0064] Among them, Id 1 is the discharge current, Kp×V err is the proportional term of PI control, V err is the discharge voltage error, Id is the integral term from time 0 to time n in PI control. 2 is the weak magnetic current, Kp is the discharge proportion parameter, and Ki is the discharge integral parameter.

[0065] Field weakening current Id 2It can be calculated based on the weak magnetic control algorithm. The purpose of weak magnetic control is to increase the speed range of the motor when the bus voltage and the motor back electromotive force are constant, so that when certain special working conditions occur, the motor can operate above the rated speed. Weak magnetic control is performed during active discharge, and discharge can be performed over the full speed range.

[0066] In another embodiment, when the actual direct-axis current is less than the discharge lower limit threshold, the second mode is adopted, and an anti-saturation control algorithm is adopted according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current to obtain the discharge current of the second mode.

[0067] It should be pointed out that when , the PI control has the risk of saturation and needs anti-saturation treatment.

[0068] For example, when When , the discharge current of the second mode is calculated according to formula (2):

[0069]

[0070] The benefit of anti-saturation PI control is that it can effectively solve the integral saturation problem, improve the control performance and stability of the system, better adapt to changes in the dynamic characteristics of the system, and ensure that the system can maintain stable performance under various working conditions.

[0071] In another embodiment, when the actual direct-axis current is greater than or equal to zero, the third mode is adopted, and the discharge current of the third mode is determined according to the weak magnetic current.

[0072] In the actual implementation process, when Id 3 When ≥0, the discharge current of the third mode is calculated according to formula (3):

[0073] -Id 1 =Id 2 (3)

[0074] When the actual direct-axis current is greater than or equal to zero, a weak magnetic field control algorithm is used to achieve active discharge to meet the high-speed operation requirements of the motor.

[0075] Combining the above formulas (1), (2) and (3), the mathematical expressions of the discharge current in different calculation modes in this embodiment are as follows:

[0076]

[0077] Step 130 , controlling the motor to actively discharge according to the discharge current corresponding to the calculation mode.

[0078] The above-mentioned active discharge control method is adopted, different calculation modes are adopted in different situations, the discharge current is dynamically adjusted, and when the motor is running at high speed, combined with weak magnetic control, the bus voltage is quickly discharged to the target voltage.

[0079] On the other hand, when the actual direct-axis current is high (second mode, third mode), using a lower active discharge current is beneficial to motor safety.

[0080] In one embodiment, the field weakening current is determined according to the field weakening voltage error, wherein the field weakening voltage error can be calculated according to formula (4):

[0081]

[0082] Then calculate the weak magnetic current according to formula (5):

[0083]

[0084] Among them, Id 2 is the field weakening current, V err Kp is the discharge voltage error at any time from 0 to n, 1 is the weak magnetic ring ratio parameter, Ki 1 is the integral parameter of the weak magnetic loop, V err1 is the weak field voltage error, V is the bus voltage, Mlref is the voltage utilization, Ud is the direct axis voltage, and Uq is the quadrature axis voltage.

[0085] By adopting weak magnetic control, the high-speed rotation requirements of the motor can be met while actively discharging.

[0086] In another embodiment, since the I d current decoupling is incomplete, there will be a part of I q component in the given I d current process. In order to eliminate the torque, the actual direct-axis current is determined based on the quadrature-axis current, the discharge current and the weak magnetic current, wherein the quadrature-axis current is determined based on the torque error between the actual torque of the motor and zero torque.

[0087] For example, the actual motor torque is defined as Torq, then the torque error Torq err =0-Torq,

[0088] The quadrature axis current is determined according to formula (6):

[0089]

[0090] Among them, Kp 2 is the torque proportional coefficient, Ki 2 is the torque integral coefficient.

[0091] Actual direct axis current Id 3Determine according to formula (7):

[0092] Id 3 =-K 1 ×Iq 1 -Id 1 +Id 2 (7)

[0093] Among them, K 1 is the quadrature-axis current coefficient, and the quadrature-axis current coefficient is negatively correlated with the motor temperature.

[0094] By setting the quadrature axis current coefficient which is negatively correlated with the motor temperature, a higher Id can be obtained when the motor temperature is high. 3 , so that the active discharge control process can actively adjust the calculation mode, use a smaller discharge current, improve safety, K 1 The relationship with the motor temperature is as follows Figure 2 As shown, the motor temperature cut-off value (120°C) can be set based on actual conditions.

[0095] like Figure 3 As shown, a control process for active discharge of a motor is provided. In response to a request for active discharge from a VCU (vehicle control unit), a BMS (battery management system) controls the relay to disconnect quickly, and after disconnection, active discharge is performed to control the direct-axis component I d=I d3 and the quadrature-axis component I q=I q1 of the motor current vector.

[0096] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0097] In one embodiment, Figure 4 As shown, a motor active discharge control device is provided, including: an acquisition module 210, a calculation module 220 and an execution module 230, wherein:

[0098] An acquisition module 210 is used to acquire the actual direct-axis current of the motor;

[0099] The calculation module 220 is used to determine the calculation mode of the discharge current according to the comparison between the actual direct-axis current and the safety range, and determine the discharge current corresponding to the calculation mode, including:

[0100] When the actual direct-axis current is greater than or equal to the discharge lower limit threshold of the safety range and less than zero, the first mode is adopted, and the discharge current of the first mode is obtained according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current;

[0101] The execution module 230 is used to control the active discharge of the motor according to the discharge current corresponding to the calculation mode.

[0102] Specifically, the calculation module 220 determines the discharge current of the first mode according to the following mathematical expression:

[0103]

[0104] Among them, Id 1 is the discharge current, V err is the discharge voltage error, Id is the integral term from time 0 to time n in PI control. 2 is the weak magnetic current, Kp is the discharge proportion parameter, and Ki is the discharge integral parameter.

[0105] In one embodiment, the calculation module 220 is also used to adopt the second mode when the actual direct-axis current is less than the discharge lower limit threshold, and adopt an anti-saturation control algorithm according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current to obtain the discharge current of the second mode.

[0106] Specifically, the calculation module 220 determines the discharge current of the second mode according to the following mathematical expression:

[0107]

[0108] Among them, Id 1 is the discharge current, V err is the discharge voltage error, is the integral term from time 0 to time n in PI control, Id is the integral term from the nth to the n+1th moment in PI control. 2 is the weak magnetic current, Kp is the discharge proportion parameter, and Ki is the discharge integral parameter.

[0109] In one embodiment, the calculation module 220 is further configured to adopt the third mode when the actual direct-axis current is greater than or equal to zero, and determine the discharge current of the third mode according to the magnetic field weakening current.

[0110] In one embodiment, the calculation module 220 determines the field weakening current according to the following mathematical expression:

[0111]

[0112] Among them, Id 2 is the field weakening current, V err Kp is the discharge voltage error at any time from 0 to n, 1 is the weak magnetic ring ratio parameter, Ki 1 is the integral parameter of the weak magnetic loop, V err1 is the field weakening voltage error;

[0113] The field weakening voltage error is determined according to the following mathematical expression:

[0114]

[0115] Among them, V is the bus voltage, Mlref is the voltage utilization, Ud is the direct-axis voltage, and Uq is the quadrature-axis voltage.

[0116] In one embodiment, the acquisition module 210 determines the quadrature-axis current of the motor according to the torque error between the actual torque of the motor and the zero torque;

[0117] Determining the actual direct-axis current according to the quadrature-axis current, the discharge current, and the weak magnetic current includes determining the actual direct-axis current according to the following mathematical expression:

[0118] Id 3 =-K 1 ×Iq 1 -Id 1 +Id 2

[0119] Among them, K 1 is the quadrature-axis current coefficient, and the quadrature-axis current coefficient is negatively correlated with the motor temperature.

[0120] For the specific definition of the motor active discharge control device, please refer to the definition of the motor active discharge control method above, which will not be repeated here. Each module in the above motor active discharge control device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0121] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a motor active discharge control method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0122] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0123] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0124] Get the actual direct-axis current of the motor;

[0125] According to the comparison between the actual direct-axis current and the safety range, a calculation mode of the discharge current is determined, and the discharge current corresponding to the calculation mode is determined, including:

[0126] When the actual direct-axis current is greater than or equal to the discharge lower limit threshold of the safety range and less than zero, the first mode is adopted, and the discharge current of the first mode is obtained according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current;

[0127] The motor is actively discharged according to the discharge current corresponding to the calculation mode.

[0128] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0129] The step of determining a calculation mode of the discharge current and determining the discharge current corresponding to the calculation mode further includes:

[0130] When the actual direct-axis current is less than the discharge lower limit threshold, the second mode is adopted, and an anti-saturation control algorithm is adopted according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current to obtain the discharge current of the second mode.

[0131] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0132] The step of determining a calculation mode of the discharge current and determining the discharge current corresponding to the calculation mode further includes:

[0133] When the actual direct-axis current is greater than or equal to zero, the third mode is adopted, and the discharge current of the third mode is determined according to the weak magnetic current.

[0134] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0135] The obtaining of the discharge current of the first mode includes determining the discharge current of the first mode according to the following mathematical expression:

[0136]

[0137] Among them, Id 1 is the discharge current, V err is the discharge voltage error, Id is the integral term from time 0 to time n in PI control. 2 is the weak magnetic current, Kp is the discharge proportion parameter, and Ki is the discharge integral parameter.

[0138] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0139] The obtaining of the discharge current of the second mode includes determining the discharge current of the second mode according to the following mathematical expression:

[0140]

[0141] Among them, Id 1 is the discharge current, V err is the discharge voltage error, is the integral term from time 0 to time n in PI control, Id is the integral term from the nth to the n+1th moment in PI control. 2 is the weak magnetic current, Kp is the discharge proportion parameter, and Ki is the discharge integral parameter.

[0142] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0143] The field weakening current is determined according to the following mathematical expression:

[0144]

[0145] Among them, Id 2 is the field weakening current, V err Kp is the discharge voltage error at any time from 0 to n, 1 is the weak magnetic ring ratio parameter, Ki 1 is the integral parameter of the weak magnetic loop, V err1 is the field weakening voltage error;

[0146] The field weakening voltage error is determined according to the following mathematical expression:

[0147]

[0148] Among them, V is the bus voltage, Mlref is the voltage utilization, Ud is the direct-axis voltage, and Uq is the quadrature-axis voltage.

[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0150] The step of obtaining the actual direct-axis current of the motor includes:

[0151] Determine the quadrature axis current of the motor according to the torque error between the actual torque of the motor and the zero torque;

[0152] Determining the actual direct-axis current according to the quadrature-axis current, the discharge current, and the weak magnetic current includes determining the actual direct-axis current according to the following mathematical expression:

[0153] Id 3 =-K 1 ×Iq 1 -Id 1 +Id 2

[0154] Among them, K 1 is the quadrature-axis current coefficient, and the quadrature-axis current coefficient is negatively correlated with the motor temperature.

[0155] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0156] Get the actual direct-axis current of the motor;

[0157] According to the comparison between the actual direct-axis current and the safety range, a calculation mode of the discharge current is determined, and the discharge current corresponding to the calculation mode is determined, including:

[0158] When the actual direct-axis current is greater than or equal to the discharge lower limit threshold of the safety range and less than zero, the first mode is adopted, and the discharge current of the first mode is obtained according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current;

[0159] The motor is actively discharged according to the discharge current corresponding to the calculation mode.

[0160] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0161] The step of determining a calculation mode of the discharge current and determining the discharge current corresponding to the calculation mode further includes:

[0162] When the actual direct-axis current is less than the discharge lower limit threshold, the second mode is adopted, and an anti-saturation control algorithm is adopted according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current to obtain the discharge current of the second mode.

[0163] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0164] The step of determining a calculation mode of the discharge current and determining the discharge current corresponding to the calculation mode further includes:

[0165] When the actual direct-axis current is greater than or equal to zero, the third mode is adopted, and the discharge current of the third mode is determined according to the weak magnetic current.

[0166] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0167] The obtaining of the discharge current of the first mode includes determining the discharge current of the first mode according to the following mathematical expression:

[0168]

[0169] Among them, Id 1 is the discharge current, V err is the discharge voltage error, Id is the integral term from time 0 to time n in PI control. 2 is the weak magnetic current, Kp is the discharge proportion parameter, and Ki is the discharge integral parameter.

[0170] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0171] The obtaining of the discharge current of the second mode includes determining the discharge current of the second mode according to the following mathematical expression:

[0172]

[0173] Among them, Id 1 is the discharge current, V err is the discharge voltage error, is the integral term from time 0 to time n in PI control, Id is the integral term from the nth to the n+1th moment in PI control. 2 is the weak magnetic current, Kp is the discharge proportion parameter, and Ki is the discharge integral parameter.

[0174] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0175] The field weakening current is determined according to the following mathematical expression:

[0176]

[0177] Among them, Id 2 is the field weakening current, V err Kp is the discharge voltage error at any time from 0 to n, 1 is the weak magnetic ring ratio parameter, Ki 1 is the integral parameter of the weak magnetic loop, V err1 is the field weakening voltage error;

[0178] The field weakening voltage error is determined according to the following mathematical expression:

[0179]

[0180] Among them, V is the bus voltage, Mlref is the voltage utilization, Ud is the direct-axis voltage, and Uq is the quadrature-axis voltage.

[0181] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0182] The step of obtaining the actual direct-axis current of the motor includes:

[0183] Determine the quadrature axis current of the motor according to the torque error between the actual torque of the motor and the zero torque;

[0184] Determining the actual direct-axis current according to the quadrature-axis current, the discharge current, and the weak magnetic current includes determining the actual direct-axis current according to the following mathematical expression:

[0185] Id 3 =-K 1 ×Iq 1 -Id 1 +Id 2

[0186] Among them, K 1is the quadrature-axis current coefficient, and the quadrature-axis current coefficient is negatively correlated with the motor temperature.

[0187] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many 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).

[0188] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0189] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A motor active discharge control method, characterized in that: include: Get the actual direct-axis current of the motor; According to the comparison between the actual direct-axis current and the safety range, a calculation mode of the discharge current is determined, and the discharge current corresponding to the calculation mode is determined, including: When the actual direct-axis current is greater than or equal to the discharge lower limit threshold of the safety range and less than zero, the first mode is adopted, and the discharge current of the first mode is obtained according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current; The motor is actively discharged according to the discharge current corresponding to the calculation mode.

2. The motor active discharge control method according to claim 1, characterized in that: The step of determining a calculation mode of the discharge current and determining the discharge current corresponding to the calculation mode further includes: When the actual direct-axis current is less than the discharge lower limit threshold, the second mode is adopted, and an anti-saturation control algorithm is adopted according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current to obtain the discharge current of the second mode.

3. The motor active discharge control method according to claim 1, characterized in that: The step of determining a calculation mode of the discharge current and determining the discharge current corresponding to the calculation mode further includes: When the actual direct-axis current is greater than or equal to zero, the third mode is adopted, and the discharge current of the third mode is determined according to the weak magnetic current.

4. The motor active discharge control method according to claim 1, characterized in that: The obtaining of the discharge current of the first mode includes determining the discharge current of the first mode according to the following mathematical expression: Wherein, Id1 is the discharge current, V err is the discharge voltage error, is the integral term from time 0 to time n in PI control, Id2 is the weak magnetic current, Kp is the discharge proportion parameter, and Ki is the discharge integral parameter.

5. The motor active discharge control method according to claim 2, characterized in that: The obtaining of the discharge current of the second mode includes determining the discharge current of the second mode according to the following mathematical expression: Wherein, Id1 is the discharge current, V err is the discharge voltage error, is the integral term from time 0 to time n in PI control, is the integral term from the nth to the n+1th moment in the PI control, Id2 is the weak magnetic current, Kp is the discharge proportion parameter, and Ki is the discharge integral parameter.

6. The motor active discharge control method according to any one of claims 1 to 5, characterized in that: The field weakening current is determined according to the following mathematical expression: Wherein, Id2 is the weak magnetic current, V err is the discharge voltage error at any time from 0 to n, Kp1 is the weak magnetic loop proportional parameter, Ki1 is the weak magnetic loop integral parameter, V err1 is the field weakening voltage error; The field weakening voltage error is determined according to the following mathematical expression: Among them, V is the bus voltage, Mlref is the voltage utilization, Ud is the direct-axis voltage, and Uq is the quadrature-axis voltage.

7. The motor active discharge control method according to claim 1, characterized in that: The step of obtaining the actual direct-axis current of the motor includes: Determine the quadrature axis current of the motor according to the torque error between the actual torque of the motor and the zero torque; Determining the actual direct-axis current according to the quadrature-axis current, the discharge current, and the weak magnetic current includes determining the actual direct-axis current according to the following mathematical expression: Id3=-K1×Iq1-Id1+Id2 Among them, K1 is the quadrature-axis current coefficient, and the quadrature-axis current coefficient is negatively correlated with the motor temperature, Iq1 is the quadrature-axis current, Id1 is the discharge current, and Id2 is the weak magnetic current.

8. A motor active discharge control device, characterized in that: The device comprises: An acquisition module is used to obtain the actual direct-axis current of the motor; A calculation module, used to determine a calculation mode of the discharge current according to a comparison between the actual direct-axis current and the safety range, and to determine the discharge current corresponding to the calculation mode, including: When the actual direct-axis current is greater than or equal to the discharge lower limit threshold of the safety range and less than zero, the first mode is adopted, and the discharge current of the first mode is obtained according to the discharge voltage error between the bus voltage and the target voltage, and the weak magnetic current; The execution module is used to control the active discharge of the motor according to the discharge current corresponding to the calculation mode.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.