Disclosure of Invention
Aiming at the technical problems in the prior art, the invention provides a permanent magnet synchronous motor model prediction torque control method, which specifically comprises the following steps:
step one, measuring a current signal and a rotor position signal through a sensor in each sampling period, and performing delay compensation.
Predicting the output torque and the stator flux linkage of the permanent magnet synchronous motor under the action of a zero voltage vector based on a mathematical model of the permanent magnet synchronous motor;
step three, determining an optimal voltage vector according to errors between the torque and the stator flux linkage predicted in the step two and a given reference torque and a given reference stator flux linkage respectively;
and step four, applying the optimal voltage vector determined in the step three to a system for torque control.
Further, the second step specifically includes:
the discrete mathematical model of the permanent magnet synchronous motor under the action of the zero voltage vector is as follows:
in the formula id(k+1)、iq(k +1) is the dq axis current at the k +1 moment after one-step delay compensation; i.e. id0(k+2)、iq0(k +2) applying a zero voltage vector predicted based on the permanent magnet synchronous motor model to dq-axis current at the k +2 moment after a sampling period; rsIs the motor stator winding resistance; l isd、LqRespectively dq axis inductance; lambda [ alpha ]fIs a main magnetic flux of a permanent magnet; omegarIs the rotor electrical angular velocity; ts is the sampling period.
Output torque T of permanent magnet synchronous motor at k moment under action of zero voltage vectore0(k) Magnetic linkage psi with stators0(k) Respectively as follows:
in the formula, P is the pole number of the permanent magnet synchronous motor.
Further, the determining an optimal voltage vector in the third step specifically includes:
as can be seen from the above equation, both the output torque and the stator flux linkage change smoothly by the zero voltage vector, and the inverter operates without switching, so that the use of the zero voltage can reduce the torque ripple and the switching loss of the inverter.
Under the action of a zero voltage vector, the errors of the predicted output torque and the stator flux linkage with the given reference torque and the given stator flux linkage are respectively as follows:
for model-predictive torque control, too much zero vector usage results in a reduction in the average torque output by the motor, and too little zero vector usage results in a significant increase in inverter switching frequency. By taking these factors into consideration, a reasonable torque error and stator flux linkage error threshold (D) should be setT0,Dψ0). If the error between the predicted torque under the action of the zero vector and the stator flux linkage and a given reference value is within an allowable range, the optimal voltage vector output by the inverter is the zero vector, otherwise, the optimal vector needs to be further selected from the non-zero voltage vectors, as shown in the following formula:
because the changing direction of the stator flux linkage is consistent with the direction of the applied non-zero voltage vector, when the non-zero voltage vector needs to be selected, the optimal non-zero voltage vector can be selected by adopting the subarea of the stator flux linkage and the voltage vector selection table based on the basic principle of direct torque control.
Compared with the traditional direct torque control and model prediction direct torque control, the method provided by the invention can reduce the number of the optimal voltage vectors to be determined, saves evaluation function calculation, greatly reduces the calculation amount, improves the real-time performance of processing and has a plurality of beneficial effects.
Detailed Description
The technical scheme of the method provided by the invention is further explained in detail with reference to the attached drawings.
Fig. 1 is a block diagram of a conventional model predictive torque control system of a permanent magnet synchronous motor. In the conventional model-based predictive torque control, a voltage equation of the discrete permanent magnet synchronous motor in a dq two-phase rotation coordinate system can be expressed as follows:
in the formula, Vd(k)、Vq(k) For the dq-axis voltage at time k, id(k)、iq(k) Dq axis current, ω, at time kr(k) Is the electrical angular velocity of the rotor.
Wherein,
the discrete permanent magnet synchronous motor stator flux linkage equation is as follows:
ψd(k)=Ldid(k)+λf
ψq(k)=Lqiq(k)
in the formula, #d(k) And psiq(k) D-axis and q-axis flux linkages, psi, at time ks(k) The stator flux linkage is at time k.
The discrete output torque equation is:
in the formula, Te(k) And outputting the electromagnetic torque at the moment k, wherein P is the pole number of the permanent magnet synchronous motor.
As can be seen from fig. 1, the control of the model-predicted torque control can be divided into the following four steps:
1) measurement: the relevant state variables, such as current signals, bus voltage signals, rotor position signals, etc., are obtained by sensor measurements.
2) And (3) prediction: and respectively predicting the output torque and the stator flux linkage of the inverter under 7 switching states by using a discrete mathematical model of the permanent magnet synchronous motor according to the motor state variable obtained by measurement.
3) Evaluation: the evaluation functions in 7 switching states are calculated respectively, and the value of the evaluation function is minimum by the optimal voltage vector.
4) The application comprises the following steps: the inverter outputs an optimum voltage vector.
In the process, the output torque and the stator flux linkage of the motor after 7 voltage vectors are acted are respectively predicted in one sampling period, and meanwhile, an evaluation function is required to be calculated 7 times, so that the calculation burden is heavy
As shown in fig. 2, the method for controlling the model predicted torque of the permanent magnet synchronous motor provided by the present invention specifically includes the following steps:
step one, measuring a current signal and a rotor position signal through a sensor in each sampling period, and performing delay compensation.
Predicting the output torque and the stator flux linkage of the permanent magnet synchronous motor under the action of a zero voltage vector based on a mathematical model of the permanent magnet synchronous motor;
step three, determining an optimal voltage vector according to errors between the torque and the stator flux linkage predicted in the step two and a given reference torque and a given reference stator flux linkage respectively;
and step four, applying the optimal voltage vector determined in the step three to a system for torque control.
In a preferred embodiment of the present application, the second step specifically includes:
establishing a discrete mathematical model of the permanent magnet synchronous motor under the action of a zero voltage vector:
in the formula id(k+1)、iq(k +1) is d-axis current and q-axis current at the k +1 moment after one-step delay compensation; i.e. id0(k+2)、iq0(k +2) applying a zero voltage vector predicted based on the permanent magnet synchronous motor model to dq-axis current at the k +2 moment after a sampling period; rsIs the motor stator winding resistance; l isd、LqRespectively dq axis inductance; lambda [ alpha ]fIs a main magnetic flux of a permanent magnet; omegarIs the rotor electrical angular velocity; ts is the sampling period.
Output torque T of permanent magnet synchronous motor at k moment under action of zero voltage vectore0(k) Magnetic linkage psi with stators0(k) Respectively as follows:
wherein, P is the pole number of the permanent magnet synchronous motor.
In a preferred embodiment of the present application, the determining an optimal voltage vector in step three specifically includes:
under the action of a zero voltage vector, the errors of the predicted output torque and the stator flux linkage with the given reference torque and the given stator flux linkage are respectively as follows:
the error is compared with a stator flux linkage error threshold (D)T0,Dψ0) And comparing, selecting a zero voltage vector as an optimal voltage vector output by the inverter when the voltage is smaller than the threshold value, and otherwise, selecting the optimal voltage vector from the non-zero voltage vectors.
In a preferred embodiment of the present application, when the non-zero voltage vector needs to be selected, based on the basic principle of direct torque control, the optimal non-zero voltage vector is selected by using the partition of the stator flux linkage and the voltage vector selection table.
According to the method provided by the invention, the optimal voltage vector can be determined by utilizing the subarea of the stator flux linkage and the voltage vector selection table in the traditional direct torque control theory according to the torque and flux linkage errors, so that an evaluation function is cancelled, and the complicated adjustment work of a weight factor in the evaluation function is saved.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.