Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method overcomes the defects of the prior art and has the capability of simultaneously realizing current control, rotor position observation and multi-parameter identification.
The invention adopts the following technical scheme for solving the technical problems:
an adaptive current control method with rotor position observation and multi-parameter identification comprises the following steps:
step 1, sampling gamma-axis and delta-axis currents after a permanent magnet synchronous motor control system is interrupted to obtain gamma-axis actual current iγ(k) And delta axis actual current iδ(k);
Step 2, calculating a gamma axis current reference value i
γ_ref(k) And derivative term thereof
Calculating a delta axis current reference value i
δ_ref(k) And derivative term thereof
In order to meet the self-adaptive continuous excitation condition of the system, a high-frequency current signal is injected into a gamma axis;
step 3, the actual current i of the gamma axis is measuredγ(k) And a gamma axis current reference value iγ_ref(k) The input current error calculation module calculates and obtains a current error signal e under a gamma axisγ(k) Let the delta axis actual current iδ(k) And delta axis current reference value iδ_ref(k) The input current error calculation module calculates and obtains a current error signal e under a delta axisδ(k);
Step 4, current error signal e under the gamma axis is processed
γ(k) As the input of an inductance identification module, a resistance identification module and a gamma axis counter electromotive force observation module, the current error signal e under the delta axis is used
δ(k) The calculated inductance identification value is used as the input of an inductance identification module, a resistance identification module and a delta-axis counter-electromotive force observation module
Resistance identification value
Gamma-axis back-emf observations
Delta axis back emf observations
The inductance identification module, the resistance identification module, the gamma axis counter electromotive force observation module and the delta axis counter electromotive force observation module correspond to the calculation formulas as follows:
wherein k isR、kL、kλThe gain coefficients of resistance identification, inductance identification and gamma delta axis counter electromotive force observation are normal numbers respectively; omega (k) is the electrical angular frequency of the motor; k represents the k time; superscript · denotes derivative;
step 5, observing the gamma axis counter electromotive force
Delta axis back emf observations
The calculation value of the permanent magnetic flux linkage is obtained through calculation as the input of the permanent magnetic flux linkage calculation module; observing the gamma axis back electromotive force
Delta axis back emf observations
As the input of a phase-locked loop, extracting the angle information of a rotor to realize the control without a position sensor;
step 6, the gamma axis current reference value i
γ_ref(k) Delta axis current reference value i
δ_ref(k) Current error signal e under gamma axis
γ(k) Delta axis current error signal e
δ(k) The inductance identification value
Resistance identification value
Gamma-axis back-emf observations
Delta axis back emf observations
As the input of the current controller of the self-adaptive all-state feedback, the gamma axis modulation voltage u is obtained by calculation
γc(k) And delta axis modulation voltage u
δc(k) The calculation formula is as follows:
wherein k iseIs a current error gain, and keIs a normal number;
step 7, modulating the gamma axis voltage uγc(k) And delta axis modulation voltage uδc(k) Inputting the current signal into a PWM modulator for modulation, updating the PWM duty ratio, ending interruption, and waiting for the next interruption trigger.
As a preferable scheme of the present invention, the frequency of the high-frequency current signal in step 2 is 2-3 times of the electrical frequency of the permanent magnet synchronous motor, the electrical frequency of the permanent magnet synchronous motor is ω (k)/(2 pi), and ω (k) is the electrical angular frequency of the motor.
As a preferred embodiment of the present invention, the derivative term of step 2
And derivative term
All are calculated by adopting a backward Euler mode.
As a preferable scheme of the present invention, the calculation value of the permanent magnetic flux linkage in step 5 is calculated by the following formula:
wherein the content of the first and second substances,
calculating the value of permanent magnetic flux linkage;
is a gamma axis back emf observation;
is a delta axis back emf observation; omega (k) is the electrical angular frequency of the motor; k denotes the k time.
As a preferred embodiment of the present invention, the modulation method in step 7 is SPWM or SVPWM.
Compared with the prior art, the invention adopting the technical scheme has the following technical effects:
1. the self-adaptive current control method has the capability of simultaneously realizing current control, rotor position observation and multi-parameter identification.
2. The self-adaptive current control method can ensure that the rotor position observation has strong robustness to parameter change and absolute accuracy.
3. The self-adaptive current control method can ensure the stability and convergence property of multi-parameter identification under the control of no position sensing.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
Fig. 1 is a general architecture diagram of an adaptive current control method with rotor position observation and multi-parameter identification according to the present invention. The permanent magnet synchronous motor control system comprises the following modules: the device comprises a current error calculation module 1, an inductance identification module 2, a resistance identification module 3, a gamma axis counter electromotive force observation module 4, a delta axis counter electromotive force observation module 5, a permanent magnetic linkage calculation module 6, a phase-locked loop 7 and a self-adaptive full-state feedback current controller 8.
The input of the inductance identification module, the resistance identification module, the gamma axis counter-electromotive force observation module and the delta axis counter-electromotive force observation module is current error signals under gamma and delta axes, and the stability of the current error signals is ensured by the designed self-adaptive rate and the selected Lyapunov function.
The self-adaptive rate is designed as follows:
wherein k is
R、k
L、k
λThe gain coefficients of resistance identification, inductance identification and back emf observation under the gamma delta axis are all normal numbers.
Respectively representing a resistance identification value, an inductance identification value, a counter electromotive force observation value under a gamma axis and a counter electromotive force observation value under a delta axis; e.g. of the type
γ(k) Is a current error signal in the gamma axis, e
δ(k) Is the current error signal in the delta axis; i.e. i
γ(k)、i
γ_ref(k)、i
δ(k) And i
δ_ref(k) The gamma axis actual current, the gamma axis current reference value, the delta axis actual current and the delta axis current reference value are respectively.
The chosen Lyapunov function is as follows:
wherein V is the selected Lyapunov function, L is the motor inductance,
the method comprises the following steps of respectively identifying a resistance identification error, an inductance identification error, a counter electromotive force observation error under a gamma axis and a counter electromotive force observation error under a delta axis.
Under the above adaptive rate, the derivative of the lyapunov function is:
it is obvious that
Negative determination, therefore the designed adaptive current control method with rotor position observation and multi-parameter identification is stable.
The input of the permanent magnetic flux linkage calculation module is gamma and delta axis back electromotive force obtained by observation, and the calculated value of the permanent magnetic flux linkage is obtained by the following formula:
wherein the content of the first and second substances,
and omega (k) is the electrical angular frequency of the motor.
The phase-locked loop inputs the back electromotive forces of gamma and delta axes obtained by observation, wherein the back electromotive forces comprise rotor angle error information, and the rotor angle information is extracted through the phase-locked loop so as to realize the control without a position sensor.
The flow of the self-adaptive current control method of the invention is as follows:
s1: the interruption begins, and enters the main program of the algorithm
S11: the system is interrupted and current sampling is carried out to obtain the actual current i of the gamma axisγ(k) And delta axis actual current iδ(k);
S12: calculating a current reference value iγ_ref(k)、iδ_ref(k) And derivative terms thereof, i to satisfy the adaptive continuous excitation conditionγ_ref(k) Adding high-frequency signals, wherein the frequency is 2-3 times of the electrical frequency of the motor generally; the derivative term can be approximately processed in a backward Euler mode;
s13: the input current error calculation module obtains a current error signal.
S2: counter-electromotive force observer and each parameter identification module work
S21: the current error signal e under the gamma axis
γ(k) As the input of an inductance identification module, a resistance identification module and a gamma axis counter electromotive force observation module, the current error signal e under the delta axis is used
δ(k) The calculated inductance identification value is used as the input of an inductance identification module, a resistance identification module and a delta-axis counter-electromotive force observation module
Resistance identification value
Gamma-axis back-emf observations
Delta axis back emf observations
S22: the back electromotive force under the gamma and delta axes obtained by observation is used as the input of the permanent magnetic flux linkage calculation module and the phase-locked loop to calculate the calculated value of the permanent magnetic flux linkage
And tracking the rotor position;
s3: the current controller works based on the full-state feedback to calculate uγc(k) And uδc(k) The calculation formula is as follows:
will uγc(k) And uδc(k) Inputting the Pulse Width Modulation (PWM) signal into a PWM modulator, updating the PWM duty ratio, wherein the debugging mode can be SPWM (Sinusoidal Pulse Width Modulation) or Space Vector Pulse Width Modulation (SVPWM);
s4: and (5) ending the interruption, and waiting for the next interruption trigger.
The above embodiments are only for illustrating the technical idea of the present invention, and the protection scope of the present invention is not limited thereby, and any modifications made on the basis of the technical scheme according to the technical idea of the present invention fall within the protection scope of the present invention.