Method of controlling an electrical machine
11121657 · 2021-09-14
Assignee
Inventors
Cpc classification
H02P21/13
ELECTRICITY
International classification
Abstract
A method is described for estimating a position of a rotor in a synchronous electric machine having a rotor. The method has the steps of: inputting the initial rotor angle into a power converter, injecting a first voltage waveform with a first fundamental frequency into the power converter,—injecting a second voltage waveform with a second fundamental frequency into the power converter, the second voltage waveform being offset with an offset angle δθ, determining a resulting second axis current in the power converter at the second fundamental frequency, adjusting, for each torque value, the offset angle δθ so that the resulting second axis current at the second fundamental frequency becomes zero, and estimating the position of the rotor based on the plurality of offset angle values.
Claims
1. A method for estimating a position of a rotor in a synchronous electric machine, wherein the method comprises the steps of: inputting an initial rotor angle, in a known reference frame, into a power converter controlling the electric machine, injecting a first voltage waveform into the power converter, wherein the first voltage waveform has a first fundamental frequency and includes a component along a first axis of the reference frame and a component along a second axis being orthogonal to the first axis, and wherein the first voltage waveform is such that it effects the torque from the machine to vary between at least one positive torque value and at least one negative torque value and that the mean output torque is zero, injecting a second voltage waveform into the power converter, wherein the second voltage waveform has a second fundamental frequency and includes a component which is offset with an offset angle δθ with respect to the first axis in the reference frame, determining a resulting second axis current in the power converter at the second fundamental frequency, adjusting, for each torque value, the offset angle δθ so that the resulting second axis current at the second fundamental frequency becomes zero, and storing a respective plurality of offset angle δθ values, and estimating the position of the rotor based on the plurality of offset angle values.
2. The method according to claim 1, wherein the power converter comprises a first vector rotator and a second vector rotator, wherein the first vector rotator is arranged to convert, using the initial rotor angle as input, the first voltage waveform and the second voltage waveform in the reference frame to voltages in the stationary frame of the electric machine, and wherein the second vector rotator is arranged to convert using the initial rotor angle as input, the currents in the electric machine from the stationary frame of the electric machine to the reference frame.
3. The method according to claim 2, wherein the first voltage waveform has incrementally increasing or decreasing amplitude.
4. The method according to claim 2 wherein the frequency of the first voltage waveform is 20-100 Hz.
5. The method according to claim 2, wherein the frequency of the second voltage waveform is higher than the frequency of the first voltage waveform, and preferably higher than 200 Hz.
6. The method according to claim 2, wherein the adjusting, for each torque value, of the offset angle δθ is performed using a control loop feedback mechanism.
7. The method according to claim 1, wherein the first voltage waveform has incrementally increasing or decreasing amplitude.
8. The method according to claim 7, wherein the amplitude increases in such a way that the resulting torque of the machine increases from a value in the range of 0-10% of the maximum torque to a value of 80-100% of the maximum torque.
9. The method according to claim 7, wherein the amplitude decreases in such a way that the resulting torque of the machine decreases from a value in the range of 80-100% of the maximum torque to a value of 0-10% of the maximum torque.
10. The method according to claim 1 wherein the frequency of the first voltage waveform is 20-100 Hz.
11. The method according to claim 1, wherein the frequency of the second voltage waveform is higher than the frequency of the first voltage waveform, and preferably higher than 200 Hz.
12. The method according to claim 1, wherein the adjusting, for each torque value, of the offset angle δθ is performed using a control loop feedback mechanism.
13. The method according to claim 12, wherein the control loop feedback mechanism applies a correction based on at least an integral term, preferably an integral and a proportional term.
14. A non-transitory computer-readable medium storing a computer program comprising computer executable components which when executed by processing circuitry of a control system causes the control system to perform the following steps: inputting an initial rotor angle, in a known reference frame, into a power converter controlling the electric machine, injecting a first voltage waveform into the power converter, wherein the first voltage waveform has a first fundamental frequency and includes a component along a first axis of the reference frame and a component along a second axis being orthogonal to the first axis, and wherein the first voltage waveform is such that it effects the torque from the machine to vary between at least one positive torque value and at least one negative torque value and that the mean output torque is zero, injecting a second voltage waveform into the power converter, wherein the second voltage waveform has a second fundamental frequency and includes a component which is offset with an offset angle δθ with respect to the first axis in the reference frame, determining a resulting second axis current in the power converter at the second fundamental frequency, adjusting, for each torque value, the offset angle δθ so that the resulting second axis current at the second fundamental frequency becomes zero, and storing a respective plurality of offset angle δθ values, and estimating the position of the rotor based on the plurality of offset angle values.
15. A control system for controlling an electrical machine, wherein the control system comprises: processing circuitry, and a storage medium having a computer program which when executed by the processing circuitry causes the control system to perform the following steps: inputting an initial rotor angle, in a known reference frame, into a power converter controlling the electric machine, injecting a first voltage waveform into the power converter, wherein the first voltage waveform has a first fundamental frequency and includes a component along a first axis of the reference frame and a component along a second axis being orthogonal to the first axis, and wherein the first voltage waveform is such that it effects the torque from the machine to vary between at least one positive torque value and at least one negative torque value and that the mean output torque is zero, injecting a second voltage waveform into the power converter, wherein the second voltage waveform has a second fundamental frequency and includes a component which is offset with an offset angle δθ with respect to the first axis in the reference frame, determining a resulting second axis current in the power converter at the second fundamental frequency, adjusting, for each torque value the offset angle δθ so that the resulting second axis current at the second fundamental frequency becomes zero, and storing a respective plurality of offset angle δθ values, and estimating the position of the rotor based on the plurality of offset angle values.
16. An electrical power system comprising: an electrical machine, a power converter configured to control the electrical machine, a control system configured to control the power converter, and a control system for controlling the electrical machine, wherein the control system for controlling the electrical machine comprises: processing circuitry, and a storage medium having a computer program which when executed by the processing circuitry causes the control system to perform the following steps: inputting an initial rotor angle, in a known reference frame, into a power converter controlling the electric machine, injecting a first voltage waveform into the power converter, wherein the first voltage waveform has a first fundamental frequency and includes a component along a first axis of the reference frame and a component along a second axis being orthogonal to the first axis, and wherein the first voltage waveform is such that it effects the torque from the machine to vary between at least one positive torque value and at least one negative torque value and that the mean output torque is zero, injecting a second voltage waveform into the power converter, wherein the second voltage waveform has a second fundamental frequency and includes a component which is offset with an offset angle δθ with respect to the first axis in the reference frame, determining a resulting second axis current in the power converter at the second fundamental frequency, adjusting, for each torque value, the offset angle δθ so that the resulting second axis current at the second fundamental frequency becomes zero, and storing a respective plurality of offset angle δθ values, and estimating the position of the rotor based on the plurality of offset angle values.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) In the following description of preferred embodiments of the invention reference will be made to the accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
DESCRIPTION OF PREFERRED EMBODIMENTS
(9) In the following description of preferred embodiments similar features in the different drawings will be denoted with the same reference numeral.
(10)
(11) The control system 10 comprises a storage medium 3 and processing circuitry 5. The storage medium comprises computer code which when executed by the processing circuitry 5 causes the control system 1 to perform the steps of the methods described herein.
(12) The storage medium 3 may for example be embodied as a memory, such as a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or an electrically erasable programmable read-only memory (EEPROM) and more particularly as a non-volatile storage medium of a device in an external memory such as a USB (Universal Serial Bus) memory or a Flash memory, such as a compact Flash memory.
(13) The processing circuitry 5 may use any combination of one or more of a suitable central processing unit (CPU), multiprocessor, microcontroller, digital signal processor (DSP), application specific integrated circuit (ASIC), field programmable gate arrays (FPGA) etc., capable of executing any herein disclosed operations concerning control of a power converter and an electrical machine.
(14)
(15) In the following, an exemplifying method for estimating the position of the rotor in a synchronous machine will be described. The estimation method may be performed with a part of the control system 10 in
(16) The control system 10 comprises an estimator 8 which will be described in more detail below. The estimator of
(17)
(18) In such cases where the magnetic relation between the d-axis currents and the d-axis fluxes is also affected by the q-axis current (and vice versa, when the q-axis quantities are affected by the d-axis current), a cross-coupling term L.sub.dq is introduced in the voltage equations. The following matrix expression originates from equations (1.1) and (1.2) with addition of the cross-coupling term.
(19)
(20) For a high-frequency injection in the d-axis, the following voltage waveform is used:
(21)
(22) The high-frequency injection is output from the estimator 3 in
(23)
(24) Extracting the currents as function of the voltages, it follows
(25)
(26) As the supplied injected voltage is given in the estimated dq reference frame, an estimated electric position θ.sub.observer, not necessarily equal to the actual electric position, is considered. In presence of a position error Δθ, the relation between the estimated position θ.sub.observer and the actual position θ.sub.me is:
θ.sub.observer=θ.sub.me+Δθ (1.7)
(27) The difference between the estimated and the actual dq reference frame translates into a rotating matrix based on the position error Δθ:
(28)
(29) Therefore, the high-frequency currents in the actual dq reference frame become:
(30)
(31) Solving (1.9) returns:
(32)
(33) As can be seen in (1.10), î.sub.q.sup.h can be demodulated (to remove the term sin(ω.sub.h.Math.t)) and used for extracting rotor position.
(34)
(35) However, by controlling î.sub.q.sup.h=0, equation (1.11) introduces some position error which is equal to:
(36)
(37) Of course, an absence of L.sub.dq returns a zero position error, and the rotor position can be extracted by controlling î.sub.q.sup.h=0 without errors. In presence of a non-zero L.sub.dq, by imposing Δθ=0 the equation (1.11) indicates the magnitude of the error signal ε as a function of L.sub.dq:
(38) And if Δθ=0 the equation (1.11) will indicate the magnitude of the error signal i.e. ε which is a function of L.sub.dq
(39)
(40) In order to determine Δθ the control system 10 of
(41) The control of the first voltage waveform u.sub.d, u.sub.q is improved if an optional feed forward block 20 is provided which feeds forward the derivative of the current times the inductance L. Another optional block is the resistive voltage block 21.
(42) The first step of the method for estimating a position of the rotor 2, is to input an initial rotor angle into the power converter 4. More specifically the initial rotor angle is input into each one of the first vector rotator VR1 and the second vector rotator VR2 from an angle block 9. In a second step the first voltage waveform u.sub.d, u.sub.q is injected into the power converter 4, and more specifically into the first vector rotator VR1. The first voltage waveform u.sub.d, u.sub.q has a first fundamental frequency which is determined by the oscillator 7 and comprises a component along a first axis and a component along a second axis being orthogonal to the first axis in a reference frame. Due to the oscillation of the first voltage waveform u.sub.d, u.sub.q between positive and negative values the torque from the electric machine 1 will also vary between positive and negative torque values such that the mean output torque is zero. The first voltage waveform u.sub.d, u.sub.q has a sufficiently high frequency so that the rotor 2 remains stationary. The rotor 2 remains stationary due to the inertia of the rotor 2. The frequency of the first voltage waveform u.sub.d, u.sub.q is 20-100 Hz. This will result in the stator remaining stationary for all practically used stators.
(43) The control system 10 comprises an estimator 8, which in a third step injects a second voltage waveform u.sub.d.sup.h into the power converter 4, wherein the second voltage waveform u.sub.d.sup.h has a second fundamental frequency and comprises a component which is offset with an offset angle δθ with respect to the first axis in the reference frame. The second voltage waveform u.sub.d.sup.h has a frequency which is higher than the frequency of the first voltage waveform u.sub.d, u.sub.q, preferably above 200 Hz. In a preferred embodiment the frequency of the second voltage waveform u.sub.d.sup.h is half of the switching frequency of the control system 10. In a fourth step a resulting second axis current i.sub.q.sup.h in the power converter 4 is determined, at the second fundamental frequency. The second axis is in the direction orthogonal to the first axis. This is achieved by determining the total current i.sub.q in the second direction. The low frequency part of the total current i.sub.q in the second direction is filtered out. In the embodiment shown in
(44) The adjustment of the offset angle will now be described in short. The estimator 8 comprises an oscillator 12 which is arranged to output an oscillating voltage signal u.sub.d.sup.h at the second fundamental frequency. The oscillating voltage signal is sent to an estimator vector rotator VR3, which rotates the oscillating voltage signal with an angle δθ. This angle will eventually be equal to the offset angle Δθ. The sign changed oscillating voltage signal is in block 13 multiplied with the resulting second axis current i.sub.q.sup.h at the second fundamental frequency. The output from block 13 is input to a PI-controller 14, which outputs an estimator frequency ω.sub.e. The estimator frequency ω.sub.e is integrated in an integrating block 15 adjusting δθ accordingly. The result of the integration in block 13 is input to the estimator voltage rotator VR3. The shown estimator uses a control loop feedback mechanism. The output from the integrating block will eventually be equal to the offset angle of the electric machine 1. The described estimation of the offset angle is performed for each torque value.
(45)
(46)
(47)
(48)
(49) The described method may be used as an initialization run at setup of an electric machine. In such an initialization run the torque is preferably varied between 0 and 100% of the maximum torque. A good estimation may be achieved by using resulting torque values in the machine which increases from a value in the range of 0-10% of the maximum torque to a value of 80-100% of the maximum torque.
(50) It is not necessary to perform the method by increasing the amplitude of the torque. It is also possible to use decreasing torque values. The resulting torque values of the machine could be arranged to decrease from a value in the range of 80-100% of the maximum torque to a value of 0-10% of the maximum torque.
(51) The described embodiments may be amended in many ways without departing from the scope of the present invention, which is limited only by the amended claims.