Motor control method, device and equipment and computer readable storage medium

By compensating the current prediction model of permanent magnet synchronous motors with parameter mismatch compensation, the torque response speed of the motor is improved, and the problem of slow torque response speed of the traditional vector control scheme is solved, thereby achieving more efficient motor control.

CN118900070APending Publication Date: 2024-11-05SHENZHEN INVT ELECTRIC
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411167922.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

Traditional vector control schemes have slow torque response speed in permanent magnet synchronous motors and are not suitable for high-performance applications.

Method used

By determining the initial motor current prediction model based on the mathematical model of the motor and compensating the parameter mismatch based on the error between the predicted current and the actual current, the target motor current prediction model is obtained, thereby improving the accuracy of current prediction and torque response speed.

Benefits of technology

It improves the torque response speed of the motor and the robustness of the system parameters, significantly improving the control effect of the motor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118900070A_ABST
    Figure CN118900070A_ABST
Patent Text Reader

Abstract

The invention discloses a motor control method, device and equipment and a computer readable storage medium, and relates to the technical field of motor control, and the method comprises the steps: determining an initial motor current prediction model according to a mathematical model of a motor; performing parameter mismatch compensation on the initial motor current prediction model according to an error between a first predicted motor current predicted in the previous beat and an actual motor current in the current beat to obtain a target motor current prediction model; according to the target motor current prediction model, predicting a second prediction motor current of the motor in the next beat at the current beat; determining a current delay error of the current beat according to the first predicted motor current and the second predicted motor current; and performing current loop control on the motor according to the current delay error of the current beat. The method can improve the torque response speed of the motor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of motor control technology, and in particular to a motor control method, device, equipment and computer-readable storage medium. Background Art

[0002] At present, permanent magnet synchronous motors with high-performance permanent magnets have become the focus of attention due to their advantages such as small size, high power density, small moment of inertia and fast dynamic response. Vector control technology is an important control method for permanent magnet synchronous motors. However, the traditional vector control scheme has the defect of slow torque response speed and cannot be applied to high-performance applications. Therefore, how to improve the torque response speed of the motor has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0003] The purpose of this application is to provide a motor control method, device, equipment and computer-readable storage medium, which can improve the torque response speed of the motor.

[0004] In order to solve the above technical problems, the present application provides a motor control method, comprising:

[0005] determining an initial motor current prediction model based on a mathematical model of the motor;

[0006] According to the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat, the initial motor current prediction model is subjected to parameter mismatch compensation to obtain a target motor current prediction model;

[0007] According to the target motor current prediction model, predicting in the current beat a second predicted motor current of the motor in the next beat;

[0008] Determining a current delay error of a current beat according to the first predicted motor current and the second predicted motor current;

[0009] The motor is subjected to current loop control according to the current delay error of the current beat.

[0010] In some embodiments, performing parameter mismatch compensation on the initial motor current prediction model according to an error between a first predicted motor current predicted in a previous beat and an actual motor current in a current beat to obtain a target motor current prediction model includes:

[0011] Determining a stator compensation voltage according to an error between a first predicted motor current predicted in a previous beat and an actual motor current in a current beat;

[0012] adding the stator compensation voltage to a mathematical model of the motor;

[0013] The target motor current prediction model is obtained according to the mathematical model of the motor to which the stator compensation voltage is added.

[0014] In some embodiments, determining the stator compensation voltage according to the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat includes:

[0015] The error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat is processed by proportional integration to obtain the stator compensation voltage.

[0016] In some embodiments, the stator compensation voltage includes a motor direct-axis compensation voltage and a motor quadrature-axis compensation voltage; the stator compensation voltage is obtained by performing proportional integration processing on the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat, including:

[0017] The error between the motor direct axis current predicted in the previous beat and the actual motor direct axis current in the current beat is multiplied by the proportionality coefficient to obtain a first proportional term;

[0018] The error between the motor direct axis current predicted in the previous beat and the actual motor direct axis current in the current beat is multiplied by the integral coefficient and then divided by the differential operator to obtain the first integral term;

[0019] Adding the first proportional term to the first integral term to obtain a motor direct-axis compensation voltage;

[0020] The error between the motor quadrature-axis current predicted in the previous beat and the actual motor quadrature-axis current in the current beat is multiplied by the proportionality coefficient to obtain a second proportional term;

[0021] The error between the motor quadrature-axis current predicted in the previous beat and the actual motor quadrature-axis current in the current beat is multiplied by the integral coefficient and then divided by the differential operator to obtain a second integral term;

[0022] The second proportional term and the second integral term are added to obtain a motor quadrature-axis compensation voltage.

[0023] In some embodiments, determining the initial motor current prediction model according to the mathematical model of the motor includes:

[0024] The mathematical model of the motor is discretized using the bilinear transformation method to obtain the initial motor current prediction model.

[0025] In some embodiments, performing current loop control on the motor according to the current delay error of the current beat includes:

[0026] Obtaining a current feedback value according to the current delay error of the current beat and the actual motor current of the current beat;

[0027] Current loop control is performed according to the current feedback value.

[0028] In some embodiments, obtaining a current feedback value according to the current delay error of the current beat and the actual motor current of the current beat includes:

[0029] The actual motor direct axis current of the current beat is subtracted from the motor direct axis current delay error of the current beat to obtain the motor direct axis current feedback value;

[0030] The actual quadrature-axis current of the motor in the current beat is subtracted from the quadrature-axis current delay error of the motor in the current beat to obtain the quadrature-axis current feedback value of the motor.

[0031] In order to solve the above technical problems, the present application also provides a motor control device, comprising:

[0032] A first determination module, used to determine an initial motor current prediction model according to a mathematical model of the motor;

[0033] A compensation module, used to perform parameter mismatch compensation on the initial motor current prediction model according to an error between a first predicted motor current predicted in a previous beat and an actual motor current in a current beat, so as to obtain a target motor current prediction model;

[0034] A prediction module, configured to predict, in a current beat, a second predicted motor current of the motor in a next beat according to the target motor current prediction model;

[0035] A second determination module, configured to determine a current delay error of a current beat according to the first predicted motor current and the second predicted motor current;

[0036] A control module is used to perform current loop control on the motor according to the current delay error of the current beat.

[0037] In order to solve the above technical problems, the present application also provides a motor control device, including:

[0038] Memory for storing computer programs;

[0039] A processor is used to implement the steps of the motor control method as described above when executing the computer program.

[0040] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the motor control method as described above are implemented.

[0041] In order to solve the above technical problems, the present application also provides a computer program product, including a computer program / instruction, which implements the steps of the motor control method described above when executed by a processor.

[0042] The motor control method provided in the present application includes: determining an initial motor current prediction model according to a mathematical model of the motor; performing parameter mismatch compensation on the initial motor current prediction model according to the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat to obtain a target motor current prediction model; predicting the second predicted motor current of the motor in the next beat in the current beat according to the target motor current prediction model; determining the current delay error of the current beat according to the first predicted motor current and the second predicted motor current; and performing current loop control on the motor according to the current delay error of the current beat. It can be seen that the motor control method provided in the present application performs parameter mismatch compensation on the initial motor current prediction model according to the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat, and the obtained target motor current prediction model is more accurate. Using the target motor current prediction model to predict the motor current can improve the accuracy of current prediction, thereby improving the torque response speed and the parameter robustness of the system.

[0043] The motor control device, equipment and computer-readable storage medium provided in this application all have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the prior art and the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

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

[0046] Figure 2 A schematic diagram of a motor control architecture provided in an embodiment of the present application;

[0047] Figure 3 A torque response time schematic diagram provided in an embodiment of the present application;

[0048] Figure 4 A schematic diagram of a motor control device provided in an embodiment of the present application;

[0049] Figure 5 A schematic diagram of a motor control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The core of this application is to provide a motor control method, device, equipment and computer-readable storage medium, which can improve the torque response speed of the motor.

[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0052] Please refer to Figure 1 , Figure 1 A flow chart of a motor control method provided in an embodiment of the present application is provided. Figure 1 As shown, the method includes:

[0053] S101: determining an initial motor current prediction model according to a mathematical model of the motor;

[0054] In this embodiment, the motor is a permanent magnet synchronous motor. A mathematical model of the permanent magnet synchronous motor is established. The permanent magnet synchronous motor can be a surface mounted permanent magnet synchronous motor, etc. Taking the surface mounted permanent magnet synchronous motor as an example, L d =L q =L s , the stator voltage equation of the surface-mounted permanent magnet synchronous motor, that is, the mathematical model of the motor is:

[0055] ;

[0056] Among them, L d is the direct-axis inductance, L q is the quadrature-axis inductance, L s is the stator inductance, u d is the motor direct-axis voltage, u q is the motor quadrature axis voltage, i d is the motor direct axis current, i q is the motor quadrature axis current, R s is the stator resistance, ω e is the electrical angular velocity, ψ f is the permanent magnet flux, and s is the differential operator.

[0057] An initial motor current prediction model is determined based on a mathematical model of the motor.

[0058] In some embodiments, determining the initial motor current prediction model according to the mathematical model of the motor includes:

[0059] The mathematical model of the motor is discretized using the bilinear transformation method to obtain the initial motor current prediction model.

[0060] Assume the control period of the system is T s , the mathematical model of the above motor is discretized by bilinear transformation method to obtain the initial motor current prediction model:

[0061] ;

[0062] Among them, i d (k) is the motor direct axis current of k beats, i q (k) are the quadrature axis currents of the motor for k beats, u d (k) is the motor direct axis voltage at k beats, u q (k) is the quadrature axis voltage of the motor at k beats, u d (k+1) is the calculated motor direct axis voltage of k+1 beats, u q (k+1) is the calculated motor quadrature axis voltage of k+1 beats, i d (k+1) is the predicted value of the motor direct axis current at k+1 beats, i q (k+1) is the predicted value of the motor quadrature-axis current at k+1 beats.

[0063] Optionally, the mathematical model of the motor is subjected to Euler discretization processing to obtain an initial motor current prediction model.

[0064] S102: According to the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat, parameter mismatch compensation is performed on the initial motor current prediction model to obtain a target motor current prediction model.

[0065] The initial motor current prediction model has an inductance parameter mismatch problem, which leads to an increase in the current prediction error, affects the torque response speed of the motor, and thus makes the control effect of the motor poor. For this reason, this embodiment corrects the initial motor current prediction model through feedforward compensation to improve the accuracy of current prediction, that is, according to the error between the first predicted motor current predicted by the initial motor current prediction model in the previous beat and the actual motor current of the current beat, the initial motor current prediction model is compensated for parameter mismatch, and after obtaining the target motor current prediction model, the motor current of the next beat is predicted according to the target motor current prediction model in the current beat, and according to the error between the motor current of the next beat predicted by the target motor current prediction model in the current beat and the actual motor current of the next beat, the initial motor current prediction model is compensated for parameter mismatch again to obtain a new target motor current prediction model, and so on, so that the initial motor current prediction model is continuously compensated for parameter mismatch, thereby improving the accuracy of the motor current predicted by the target motor current prediction model.

[0066] In some embodiments, according to the error between the first predicted motor current predicted in the previous beat and the actual motor current of the current beat, the initial motor current prediction model is compensated for parameter mismatch, and the target motor current prediction model is obtained, including:

[0067] Determining a stator compensation voltage according to an error between a first predicted motor current predicted in a previous beat and an actual motor current in a current beat;

[0068] Adding stator compensation voltage to the mathematical model of the motor;

[0069] According to the mathematical model of the motor with the stator compensation voltage added, a target motor current prediction model is obtained.

[0070] The direct axis compensation voltage v is determined based on the error between the motor direct axis current predicted by the motor current prediction model in the previous beat and the actual motor direct axis current in the current beat. d The quadrature-axis compensation voltage v is determined based on the error between the quadrature-axis current of the motor predicted by the motor current prediction model in the previous beat and the actual quadrature-axis current of the motor in the current beat. q . The direct axis compensation voltage v d With quadrature axis compensation voltage v q Adding this to the motor mathematical model, we get:

[0071] .

[0072] According to the mathematical model with stator compensation voltage added, the target motor current prediction model is obtained. Similarly, the mathematical model can be discretized by bilinear transformation method to obtain the target motor current prediction model:

[0073] .

[0074] In some embodiments, determining the stator compensation voltage according to an error between a first predicted motor current predicted in a previous beat and an actual motor current in a current beat includes:

[0075] The error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat is processed by proportional integration to obtain the stator compensation voltage.

[0076] This embodiment sets a closed-loop correction link based on the PI (proportional integral) control theory, and uses the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat as the input of the closed-loop correction link. The closed-loop correction link performs proportional integration processing on the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat to obtain the stator compensation voltage. The direct axis compensation voltage v d With quadrature axis compensation voltage v q .

[0077] In some embodiments, the stator compensation voltage includes a motor direct axis compensation voltage and a motor quadrature axis compensation voltage; the stator compensation voltage is obtained by performing proportional integration processing on the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat, including:

[0078] The error between the motor direct axis current predicted in the previous beat and the actual motor direct axis current in the current beat is multiplied by the proportionality coefficient to obtain a first proportional term;

[0079] The error between the motor direct axis current predicted in the previous beat and the actual motor direct axis current in the current beat is multiplied by the integral coefficient and then divided by the differential operator to obtain the first integral term;

[0080] Adding the first proportional term to the first integral term to obtain a motor direct-axis compensation voltage;

[0081] The error between the motor quadrature-axis current predicted in the previous beat and the actual motor quadrature-axis current in the current beat is multiplied by the proportionality coefficient to obtain a second proportional term;

[0082] The error between the motor quadrature-axis current predicted in the previous beat and the actual motor quadrature-axis current in the current beat is multiplied by the integral coefficient and then divided by the differential operator to obtain a second integral term;

[0083] The second proportional term and the second integral term are added to obtain the motor quadrature-axis compensation voltage.

[0084] That is, the closed-loop correction link obtains the direct-axis compensation voltage v d With quadrature axis compensation voltage v q It is expressed as follows:

[0085] .

[0086] Among them, e d (k) is the error between the predicted k-beat motor direct-axis current and the actual motor direct-axis current, e q (k) The error between the predicted quadrature-axis current of the motor at k beats and the actual quadrature-axis current, kp is the proportional coefficient, ki is the integral coefficient, and s is the differential operator.

[0087] S103: Predicting a second predicted motor current of the motor in the next beat in the current beat according to the target motor current prediction model.

[0088] S104: Determine a current delay error of a current beat according to the first predicted motor current and the second predicted motor current.

[0089] S105: Perform current loop control on the motor according to the current delay error of the current beat.

[0090] According to the target motor current prediction model, the motor current of the motor in the next beat, i.e., the second predicted motor current, is predicted in the current beat. According to the first predicted motor current and the second predicted motor current, the current delay error of the current beat is determined, and the current delay error includes the direct axis current delay error and the quadrature axis current delay error, and then the motor is current-loop controlled according to the current delay error.

[0091] Let the current beat be k, then k-1 beat is the previous beat, and k+1 is the next beat. Subtract the direct-axis current of the k+1 beat predicted at k beat from the direct-axis current of the k beat predicted at k-1 beat to obtain the direct-axis current delay error of k beat. Subtract the quadrature-axis current of the k+1 beat predicted at k beat from the quadrature-axis current of the k beat predicted at k-1 beat to obtain the quadrature-axis current delay error of k beat. It is expressed as follows:

[0092] .

[0093] e dp (k) is the direct axis current delay error of k beats, e qp (k) is the quadrature-axis current delay error of k beats; i dp (k+1) is the predicted k+1 beat direct axis current, i dp (k) is the predicted k-beat direct-axis current, i qp (k+1) is the predicted quadrature-axis current of k+1 beat, i qp (k) is the predicted quadrature-axis current of k beats.

[0094] In some embodiments, performing current loop control on a motor according to a current delay error includes:

[0095] The current feedback value is obtained according to the current delay error of the current beat and the actual motor current of the current beat;

[0096] The current loop is controlled according to the current feedback value.

[0097] In some embodiments, obtaining the current feedback value according to the current delay error of the current beat and the actual motor current of the current beat includes:

[0098] The actual motor direct axis current of the current beat is subtracted from the motor direct axis current delay error of the current beat to obtain the motor direct axis current feedback value;

[0099] The actual quadrature-axis current of the motor in the current beat is subtracted from the quadrature-axis current delay error of the motor in the current beat to obtain the quadrature-axis current feedback value of the motor.

[0100] The current feedback value obtained based on the current delay error of the current beat and the actual motor current of the current beat is expressed as follows:

[0101] .

[0102] In the above formula, i dfd (k) is the motor direct axis current feedback value of k beats, i dfd (k) is the quadrature axis current feedback value of the motor at k beats. d (k) is the actual motor direct axis current for k beats, i q (k) is the actual quadrature-axis current of k beats.

[0103] The process of performing current loop control according to the current feedback value can refer to any existing technology. For example, refer to Figure 2 As shown, the current loop control based on the current feedback value control mainly includes: inputting the current feedback value into the current regulator, obtaining the motor direct-axis voltage setting and the motor quadrature-axis voltage setting according to the current regulator output and the feedforward decoupling, and performing coordinate system transformation on the motor direct-axis voltage setting and the motor quadrature-axis voltage setting to obtain Shaft voltage setting and Shaft voltage given, Shaft voltage setting and The shaft voltage is given by space vector pulse width modulation, and the two-level inverter controls the permanent magnet synchronous motor according to the data of space vector pulse modulation. Figure 2 In the formula, ASR stands for speed regulator, ACR stands for current regulator, and n ref represents the reference speed, n represents the speed, i q * indicates the given quadrature axis current, i d * indicates the direct axis current given, u q * indicates the motor quadrature axis voltage setting, u d * indicates the motor direct axis voltage setting, u α *express Shaft voltage given, u β *express The shaft voltage is given, PMSM stands for permanent magnet synchronous motor.

[0104] Take a 100kW permanent magnet synchronous motor as an example, under the condition of carrier frequency 1k, refer to Figure 3 As shown, the torque response time of the solution provided in the present application is significantly lower than the torque response time of traditional vector control, thereby achieving the effect of effectively improving the torque response speed.

[0105] In summary, the motor control method provided in the present application performs parameter mismatch compensation on the initial motor current prediction model according to the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat, and the obtained target motor current prediction model is more accurate. Using the target motor current prediction model to predict the motor current can improve the accuracy of current prediction and improve the parameter robustness of the system.

[0106] In addition, the motor control method in the prior art is to perform current loop control on the motor based on the error between the predicted motor current of the current beat and the actual motor current of the current beat. Compared with the prior art, the present application uses the error between the motor current of the next beat predicted by the current beat and the motor current of the current beat predicted by the previous beat, that is, the current delay error of the current beat to perform current loop control, which can eliminate the influence of the current delay compensation value imbalance caused by the sudden change of the actual parameters of the motor on the motor vector control system, and improve the torque response speed of the motor. At the same time, this method does not change the original vector control, and the current delay error of the current beat is obtained according to the motor current of the next beat predicted by the current beat and the motor current of the current beat predicted by the previous beat, and the motor is controlled by the current loop according to the current delay error of the current beat, which is easier to implement.

[0107] The present application also provides a motor control device, and the device described below can be referred to in correspondence with the method described above. Figure 4 , Figure 4 A schematic diagram of a motor control device provided in an embodiment of the present application, combined with Figure 4 As shown, the device comprises:

[0108] A first determination module 10 is used to determine an initial motor current prediction model according to a mathematical model of the motor;

[0109] A compensation module 20, configured to perform parameter mismatch compensation on the initial motor current prediction model according to an error between a first predicted motor current predicted in a previous beat and an actual motor current in a current beat, to obtain a target motor current prediction model;

[0110] A prediction module 30, configured to predict, in a current beat, a second predicted motor current of the motor in a next beat according to a target motor current prediction model;

[0111] A second determination module 40, configured to determine a current delay error of a current beat according to the first predicted motor current and the second predicted motor current;

[0112] The control module 50 is used to perform current loop control on the motor according to the current delay error of the current beat.

[0113] Based on the above embodiment, as a specific implementation, the compensation module 20 includes:

[0114] a compensation voltage determination unit, configured to determine a stator compensation voltage according to an error between a first predicted motor current predicted in a previous beat and an actual motor current in a current beat;

[0115] A compensation voltage adding unit, used for adding a stator compensation voltage to a mathematical model of the motor;

[0116] The prediction model determination unit is used to obtain a target motor current prediction model according to a mathematical model of the motor to which a stator compensation voltage is added.

[0117] Based on the above embodiment, as a specific implementation manner, the compensation voltage determination unit is specifically used for:

[0118] The error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat is processed by proportional integration to obtain the stator compensation voltage.

[0119] Based on the above embodiment, as a specific implementation method, the stator compensation voltage includes the motor direct axis compensation voltage and the motor quadrature axis compensation voltage; the compensation voltage determination unit includes:

[0120] A first proportional calculation subunit, configured to multiply the error between the motor direct-axis current predicted in the previous beat and the actual motor direct-axis current in the current beat by a proportional coefficient to obtain a first proportional term;

[0121] A first integral calculation subunit is used to multiply the error between the motor direct-axis current predicted in the previous beat and the actual motor direct-axis current in the current beat by an integral coefficient and then divide the result by a differential operator to obtain a first integral term;

[0122] A first summing subunit, used for adding the first proportional term and the first integral term to obtain a motor direct-axis compensation voltage;

[0123] A second proportional calculation subunit is used to multiply the error between the motor quadrature-axis current predicted in the previous beat and the actual motor quadrature-axis current in the current beat by a proportional coefficient to obtain a second proportional term;

[0124] A second integral calculation subunit is used to multiply the error between the motor quadrature-axis current predicted in the previous beat and the actual motor quadrature-axis current in the current beat by the integral coefficient and then divide the result by the differential operator to obtain a second integral term;

[0125] The second summing subunit is used to add the second proportional term and the second integral term to obtain the motor quadrature-axis compensation voltage.

[0126] Based on the above embodiment, as a specific implementation manner, the first determining module 10 is specifically used for:

[0127] The mathematical model of the motor is discretized using the bilinear transformation method to obtain the initial motor current prediction model.

[0128] Based on the above embodiment, as a specific implementation, the control module 50 includes:

[0129] A feedback value calculation unit, used to obtain a current feedback value according to a current delay error of a current beat and an actual motor current of a current beat;

[0130] The current loop control unit is used to perform current loop control according to the current feedback value.

[0131] Based on the above embodiment, as a specific implementation, the feedback value calculation unit includes:

[0132] A direct-axis current feedback value calculation subunit is used to obtain a direct-axis current feedback value of the motor by subtracting the actual direct-axis current of the motor at the current beat from the direct-axis current delay error of the motor at the current beat;

[0133] The quadrature-axis current feedback value calculation subunit is used to obtain the quadrature-axis current feedback value of the motor by subtracting the actual quadrature-axis current of the motor at the current beat from the quadrature-axis current delay error of the motor at the current beat.

[0134] The present application also provides a motor control device, referring to Figure 5 As shown, the device includes a memory 1 and a processor 2 .

[0135] Memory 1, used for storing computer programs;

[0136] Processor 2 is used to execute the computer program to implement the following steps:

[0137] An initial motor current prediction model is determined based on the mathematical model of the motor; based on the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat, parameter mismatch compensation is performed on the initial motor current prediction model to obtain a target motor current prediction model; based on the target motor current prediction model, a second predicted motor current of the motor in the next beat is predicted in the current beat; based on the first predicted motor current and the second predicted motor current, a current delay error in the current beat is determined; and current loop control of the motor is performed based on the current delay error in the current beat.

[0138] For an introduction to the equipment provided in this application, please refer to the above method embodiments, and this application will not go into details here.

[0139] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0140] An initial motor current prediction model is determined based on the mathematical model of the motor; based on the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat, parameter mismatch compensation is performed on the initial motor current prediction model to obtain a target motor current prediction model; based on the target motor current prediction model, a second predicted motor current of the motor in the next beat is predicted in the current beat; based on the first predicted motor current and the second predicted motor current, a current delay error in the current beat is determined; and current loop control of the motor is performed based on the current delay error in the current beat.

[0141] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0142] For an introduction to the computer-readable storage medium provided in this application, please refer to the above method embodiment, and this application will not go into details here.

[0143] The present application also provides a computer program product, including a computer program / instruction, which implements the following steps when the computer program / instruction is executed by a processor:

[0144] An initial motor current prediction model is determined based on the mathematical model of the motor; based on the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat, parameter mismatch compensation is performed on the initial motor current prediction model to obtain a target motor current prediction model; based on the target motor current prediction model, a second predicted motor current of the motor in the next beat is predicted in the current beat; based on the first predicted motor current and the second predicted motor current, a current delay error in the current beat is determined; and current loop control of the motor is performed based on the current delay error in the current beat.

[0145] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the devices, equipment, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0146] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0147] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0148] The motor control method, device, equipment and computer-readable storage medium provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A motor control method, characterized in that: include: determining an initial motor current prediction model based on a mathematical model of the motor; According to the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat, the initial motor current prediction model is subjected to parameter mismatch compensation to obtain a target motor current prediction model; According to the target motor current prediction model, predicting in the current beat a second predicted motor current of the motor in the next beat; Determining a current delay error of a current beat according to the first predicted motor current and the second predicted motor current; The motor is subjected to current loop control according to the current delay error of the current beat.

2. The motor control method according to claim 1, characterized in that: The performing parameter mismatch compensation on the initial motor current prediction model according to the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat to obtain the target motor current prediction model comprises: Determining a stator compensation voltage according to an error between a first predicted motor current predicted in a previous beat and an actual motor current in a current beat; adding the stator compensation voltage to a mathematical model of the motor; The target motor current prediction model is obtained according to the mathematical model of the motor to which the stator compensation voltage is added.

3. The motor control method according to claim 2, characterized in that: Determining the stator compensation voltage according to the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat includes: The error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat is processed by proportional integration to obtain the stator compensation voltage.

4. The motor control method according to claim 3, characterized in that: The stator compensation voltage includes a motor direct axis compensation voltage and a motor quadrature axis compensation voltage; the stator compensation voltage is obtained by performing proportional integration processing on the error between the first predicted motor current predicted in the previous beat and the actual motor current in the current beat, including: The error between the motor direct axis current predicted in the previous beat and the actual motor direct axis current in the current beat is multiplied by the proportionality coefficient to obtain a first proportional term; The error between the motor direct axis current predicted in the previous beat and the actual motor direct axis current in the current beat is multiplied by the integral coefficient and then divided by the differential operator to obtain the first integral term; Adding the first proportional term to the first integral term to obtain a motor direct-axis compensation voltage; The error between the motor quadrature-axis current predicted in the previous beat and the actual motor quadrature-axis current in the current beat is multiplied by the proportionality coefficient to obtain a second proportional term; The error between the motor quadrature-axis current predicted in the previous beat and the actual motor quadrature-axis current in the current beat is multiplied by the integral coefficient and then divided by the differential operator to obtain a second integral term; The second proportional term and the second integral term are added to obtain a motor quadrature-axis compensation voltage.

5. The motor control method according to claim 1, characterized in that: Determining the initial motor current prediction model according to the mathematical model of the motor includes: The mathematical model of the motor is discretized using the bilinear transformation method to obtain the initial motor current prediction model.

6. The motor control method according to claim 1, characterized in that: The performing current loop control on the motor according to the current delay error of the current beat includes: Obtaining a current feedback value according to the current delay error of the current beat and the actual motor current of the current beat; The motor is subjected to current loop control according to the current feedback value.

7. The motor control method according to claim 6, characterized in that: The step of obtaining a current feedback value according to the current delay error of the current beat and the actual motor current of the current beat includes: The actual motor direct axis current of the current beat is subtracted from the motor direct axis current delay error of the current beat to obtain the motor direct axis current feedback value; The actual quadrature-axis current of the motor in the current beat is subtracted from the quadrature-axis current delay error of the motor in the current beat to obtain the quadrature-axis current feedback value of the motor.

8. A motor control device, characterized in that: include: A first determination module, used to determine an initial motor current prediction model according to a mathematical model of the motor; A compensation module, used to perform parameter mismatch compensation on the initial motor current prediction model according to an error between a first predicted motor current predicted in a previous beat and an actual motor current in a current beat, so as to obtain a target motor current prediction model; A prediction module, configured to predict, in a current beat, a second predicted motor current of the motor in a next beat according to the target motor current prediction model; A second determination module, configured to determine a current delay error of a current beat according to the first predicted motor current and the second predicted motor current; A control module is used to perform current loop control on the motor according to the current delay error of the current beat.

9. A motor control device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the motor control method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the motor control method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Motor control method and device, program product and storage medium

    CN122068814A

  • A motor control method, device, program product, and storage medium

    CN122068814B