METHOD FOR DETERMINING THE POSITION AND/OR THE SPEED OF AN ELECTRIC MACHINE ROTOR BY PROCESSING THE SIGNALS OF A POSITION SENSOR

Information

  • Patent Application
  • 20230030663
  • Publication Number
    20230030663
  • Date Filed
    December 09, 2020
    4 years ago
  • Date Published
    February 02, 2023
    a year ago
Abstract
The invention determines at least one of the angular speed and the angular position of a rotor of an electric machine through determination of the harmonics, using a closed loop comprising a harmonic observer, phase difference correction and a first phase-locked loop that estimates the position of the rotor.
Description
BACKGROUND OF THE INVENTION
Field of the Invention

The present invention relates to the field of determining the position and/or the speed of a rotor of an electric machine.


Description of the Prior Art

Precise knowledge of at least one of the angular position and the angular speed of an electric machine rotor is useful notably for controlling and monitoring electric machines. Indeed, at least one of rotor position and speed is often essential data for controlling such electric machines, notably for controlling at least one of the torque and the rotational speed thereof.


There is a wide variety of position sensors that have been developed for this application, including notably magnetostrictive sensors, encoders, solvers, GMR (Giant MagnetoResistance) sensors, and inductive sensors. Such sensors can generate two signals with a first signal of cosine wave type and a second signal of sine wave type, from which at least one of the rotor position and speed are reconstructed.


Ideally, these signals should have the same amplitude, no offset, and they should be orthogonal (with a phase difference strictly equal to 90°). However, these signals may comprise harmonics which, upon reconstruction of at least one of the rotor position and speed, can generate significant inaccuracies for rotor position or speed determination. Moreover, there may also be a phase difference between these two signals (due to the position of the position sensor for example), which may also generate an error when determining the rotor position or speed. These inaccuracies and errors have a significant impact on electric machine control or electric machine monitoring. Indeed, an error in the rotor position can for example generate an unsuitable torque setpoint for use of the electric machine, or torque harmonics, etc.


In order to limit the impact of harmonics and of phase difference, several technical solutions have been developed.


For example, patent application DE-102,014,226,604 describes a method of correcting the angular position of the rotor. This method uses the measurement of two position sensors arranged at 90° to each other around the rotor, and provides an estimation of a correction value depending on the phase difference of the signals from the two position sensors. However, this method only allows the phase difference to be corrected, but not the harmonics.


Patent application DE102,016,220,188 describes a method of correcting rotation sensor measurements generating sine and cosine signals, by use of static correction and dynamic correction. Static correction is based on charts and dynamic correction is intended to take into account the amplitude difference between the signals and the offset differences. However, this method does not enable continuous correction of the harmonics. Additionally, using charts may not provide optimal correction and requires preparing complex charts that may notably depend on the rotational speed and the load of the electric machine.


Published US patent application 2019/0,031,046 relates to the elimination of offset in signals measuring the position of an electric machine. This method is based on the addition and the subtraction of signals and on the use of integrators by use of a motion state filter. This method therefore allows to eliminate only offsets and does not determine and eliminate harmonics.


SUMMARY OF THE INVENTION

The present invention determines the speed and the position of a rotor in a precise and errorless manner. The invention relates to a method of determining at least one of the angular speed and the angular position of a rotor of an electric machine through determination of the harmonics, using a closed loop comprising a harmonic observer, phase difference correction and a first phase-locked loop that estimates the position of the rotor.


Furthermore, the invention relates to a method of determining at least one of the speed and the position of an electric machine rotor by precisely determining the harmonics, through continuous correction of the measurement signals only when the harmonic observer is convergent, the corrected signals are used to determine at least one of the position and the speed of the rotor. Determination of the harmonics is performed using a closed loop comprising a harmonic observer, phase difference correction, and a first phase-locked loop that estimates the position of the rotor.


The invention relates to a method of determining at least one of the position and the speed of an electric machine rotor by use of a sensor that determines the position of the rotor The position sensor generates a cosine signal and a sine signal. This method utilizes a closed loop comprising a harmonic state observer, correction of the phase difference of the generated cosine and sine signals and a first phase-locked loop PLL. The state observer of the harmonics relates the generated cosine and sine signals and a value of the rotor position estimated is by the first phase-locked loop PLL to the harmonics. The correction of the phase difference identifies and corrects the phase difference of the generated cosine and sine signals by use of the harmonics determined by the state observer of the harmonics, and the first phase-locked loop PLL estimates at least one of the position and the speed of the rotor from the corrected cosine and sine signals.


According to one embodiment, the following steps are carried out:


a) determining the harmonics of the generated cosine and sine signals by use of the closed loop comprising the state observer of the harmonics, the correction of the phase difference of the generated cosine and sine signals, and the first phase-locked loop PLL;


b) determining whether the state observer of the harmonics is convergent;


c) continuously correcting the generated cosine and sine signals by updating the determined harmonics when the state observer of the harmonics is convergent; and


d) determining at least one of the position and the speed of the rotor by use of a second phase-locked loop PLL from the corrected cosine and sine signals.


Advantageously, convergence of the state observer of the harmonics is determined by verifying the equation:





√{square root over (|ya−ŷa|2+|yb−ŷb|2)}<ε


with ya and yb being the generated cosine and sine signals, ŷa and ŷb being signals reconstructed by use of the estimated position and ε being a predetermined threshold.


Preferably, the first and second phase-locked loops PLL comprise a proportional integral controller and an integrator.


Advantageously, the transfer function of the first and second phase-locked loops PLL is written as follows:









θ
^

(
s
)


θ

(
s
)


=


1
+



K
p


K
i


*
s



1
+



K
p


K
i


*
s

+


1

K
i


*

s
2








with θ being the position of the rotor, {circumflex over (θ)} being the estimated position of the rotor, s the being Laplace parameter, Kp being the proportional coefficient of the proportional integral controller and Ki being the integral coefficient of the proportional integral controller.


According to one implementation, the integral coefficient Ki of the first phase-locked loop is less than the integral coefficient Ki of the second phase-locked loop.


According to one aspect, the cosine and sine signals are corrected by filtering the determined harmonics and possibly by correcting the phase difference of the cosine and sine signals.


According to one feature, the state observer of the harmonics involves a transfer function expressed as:









y
^

k

y

=



α
*
s



s
2

+


(

k
*
ω

)

2




1
+




k
=

0

n





α
*
s



s
2

+


(

k
*
ω

)

2










with s being the Laplace parameter, a being again, k being the order of the harmonic being considered, n being the number of harmonics of the cosine and sine signals, w being a fundamental frequency, y being a generated signal considered among the cosine and sine signals, and ŷk being the estimated harmonic of order k of the generated signal considered among the cosine and sine signal.


According to one embodiment, the gain a is less than the fundamental frequency, preferably the gain a is less than one tenth of the fundamental frequency ω.


According to one embodiment, the state observer of the harmonics further determines the fundamental coefficients of the harmonics and the offsets of the generated cosine and sine signals.


According to an implementation, the phase difference between the generated cosine and sine signals is identified by means of the fundamental coefficients of the harmonics using an arctangent function.


Advantageously, the phase difference ϕ between the generated cosine and sine signals is determined by use of the equation:






ϕ
=

atan



(



L

1

b


*
sin



(
ϕ
)




L

1

b


*
cos



(
ϕ
)



)







with







L

1

b


*
sin



(
ϕ
)


=



-


L
^


11

b



*
cos



(
Δθ
)


-



L
^


12

b


*
sin



(
Δθ
)











L

1

b


*
cos



(
ϕ
)


=




L
^


12

b


*
cos



(
Δθ
)


-



L
^


11

b


*
sin



(
Δθ
)







and with L1b being the fundamental coefficient of one of the generated cosine and sine signals, {circumflex over (L)}11b and {circumflex over (L)}12b the being fundamental coefficients determined by the state observer of the harmonics, Δθ being the difference between the measured position of the rotor and the position of the rotor estimated by the first phase-locked loop PLL.


According to an embodiment, the phase difference of one of the generated cosine and sine signals is corrected by use of the equation:







y

fb
-
correction


=


L

1

b


*



y
fb

-



y
fa


L

1

a



*

(


L

1

b


*
sin



(
Φ
)


)




(


L

1

b


*
cos



(
Φ
)


)







with yfb-correction being the fundamental of the corrected generated signal of one of the generated cosine and sine signals, L1a and L1b being the fundamental coefficients of the generated cosine and sine signals, yfa and yfb being the fundamentals of the measured generated cosine and sine signals, and ϕ being phase difference.


According to an aspect, the position sensor is one of a magnetostrictive sensor, an inductive sensor, an encoder, a GMR sensor, an AMR sensor, a TMR sensor or a solver.


Furthermore, the invention relates to a method of controlling an electric machine, the electric machine comprising a sensor that determines the position of the rotor of the electric machine, the position sensor generating a cosine signal and a sine signal, wherein the following steps are carried out:


a) determining at least one of position and the speed of the rotor by use of the method according to one of the above features and the signals generated by the position sensor; and


b) controlling the electric machine according to the at least one of predetermined position and/or the predetermined speed.





BRIEF DESCRIPTION OF THE FIGURES

Other features and advantages of the method according to the invention will be clear from reading the description hereafter of embodiments given by way of non-limitative example, with reference to the accompanying figures wherein:



FIG. 1 illustrates the steps of the method according to a first embodiment of the invention;



FIG. 2 illustrates the steps of the method according to a second embodiment of the invention;



FIG. 3 illustrates the construction of a phase-locked loop according to an embodiment of the invention;



FIG. 4 illustrates the reference rotational speed for an application example of the method according to the invention;



FIG. 5 illustrates the rotational speed determined with the method according to an embodiment of the invention for the application example of FIG. 4; and



FIG. 6 illustrates the position error between the reference position and the position determined with the method according to an embodiment for the application example of FIG. 4.





DETAILED DESCRIPTION OF THE INVENTION

The present invention relates to the determination of the position of a rotor of an electric machine. The electric machine is provided with an angular position sensor that generates a cosine signal and a sine signal while measuring. In the rest of the description, these two signals are referred to as measurement signals Moreover, in the rest of the description, what is referred to as position is the angular position of the rotor and what is referred to as speed is the angular speed of the rotor. The present invention is suited for any electric machine whose position is to be measured. The present invention is particularly suited for permanent magnet-assisted synchronous reluctance machines that are very sensitive to position measurement.


The position sensor can be selected from among magnetostrictive sensors, inductive sensors, encoders and solvers, a GMR sensor (based on Giant MagnetoResistance), an AMR sensor (based on Anisotropic MagnetoResistance), a TMR sensor (based on Tunnel effect MagnetoResistance) or any other sensor capable of generating a cosine measurement signal and a sine measurement signal.


What is referred to as harmonic is a primary decomposition element of a periodic function, here the periodic function corresponds to the measurement signals. What is referred to as fundamental is the harmonic of first order of the measurement signals, that is the first harmonic. What is referred to as offset is the continuous offset of the measurement signals.


Preferably, the method according to the invention can use a single position sensor, thus limiting inaccuracies related to the multiplication of sensors and to the difficulty in precisely positioning several sensors.


According to a first embodiment, the method may use a closed loop allowing to determine the harmonics of the measurement signals and to deduce therefrom at least one of the position and the speed of the rotor. The closed loop is described in detail in connection with step 1 in the rest of the description. The steps of the closed loop can be carried out by a computer system or an electronic system, notably a computer or electronic system that controls the electric machine.



FIG. 1 schematically illustrates, by way of non-limitative example, the steps of the method according to the first embodiment of the invention. The position sensor CAP first generates measurement signals y. The harmonics of the measurements are then determined by use of a closed loop BF, which comprises a harmonic state observer OBS, a phase difference corrector CORD and a first phase-locked loop PLL1. Harmonic state observer OBS determines the harmonics from measurement signals y and from the rotor position Gobs estimated by first phase-locked loop PLL1. Harmonic state observer OBS also determines signals y_hf formed by the suppression of the harmonics of order strictly greater than 1 from measurement signals y. Phase difference corrector CORD identifies and corrects the phase difference, as well as the offset and the amplitudes of measurement signals y_hf to form a corrected signal yd from the identified harmonics. First phase-locked loop PLL1 estimates an estimated rotor position Gobs from corrected signal yd. For this first embodiment, at least one of the estimated rotor position and speed are obtained by first phase-locked loop PLL1.


The method according to the second embodiment of the invention comprises the following steps:


1) Determination of harmonics;


2) Determination of the harmonic observer convergence;


3) Correction of the observed harmonics;


4) Correction of the measurement signals; and


5) Determination of at least one of the rotor position and speed.


These steps are detailed in the rest of the description. The steps can be carried out by a computer system or an electronic system, notably a computer or electronic system that controls the electric machine.



FIG. 2 schematically illustrates, by way of non-limitative example, the steps of the method according to the second embodiment of the invention. Position sensor CAP first generates measurement signals y. The harmonics of the measurements are then determined by use of a closed loop BF, which comprises a harmonic state observer OBS, a phase difference corrector CORD and a first phase-locked loop PLL1. Harmonic state observer OBS determines the harmonics H from measurement signals y and from the rotor position Gobs estimated by first phase-locked loop PLL1. Harmonic state observer OBS also determines signals y_hf formed by the suppression of the harmonics of order strictly greater than 1 from measurement signals y. Phase difference corrector CORD identifies and corrects the phase difference, as well as the offset and the amplitudes of measurement signals y_hf to form a corrected signal yd from the identified harmonics. First phase-locked loop PLL1 estimates an estimated rotor position Gobs from corrected signal yd. Furthermore, the method according to the invention comprises a step of correcting the harmonics COROBS if the convergence C of harmonic state observer OBS is ensured. The corrected harmonics are denoted by Hc. Besides, the method according to the invention comprises a step of suppressing harmonics CORH of measurement signal y from the determined corrected harmonics Hc. The corrected signal is denoted by yc. In addition, the method according to the invention comprises a second phase-locked loop PLL2 that estimates the position {circumflex over (θ)} of at least one of the rotor and the speed {circumflex over (ω)} of the rotor from signal yc. According to an embodiment of the invention, the method can further comprise feedback of position {circumflex over (θ)} estimated by second phase-locked loop PLL2 for correction of the harmonics CORH. For this second embodiment, at least one of the estimated rotor position and speed are obtained by second phase-locked loop PLL2.


1) Determination of Harmonics


This step determines the harmonics of the measurement signals generated by the position sensor using a closed loop. A closed loop is understood to be a succession of steps wherein one output of the steps is also used as input for at least one other step that precedes it. In other words, the closed loop comprises at least one feedback.


The closed loop comprises:


a harmonic state observer that relates the measurement signals and the estimated rotor position to the measurement signal harmonics, and filters from the measurement signals the harmonics of order strictly greater than 1;


a phase difference corrector that identifies and corrects the amplitude, the offset and the phase of the filtered measurement signals by use of the harmonics of order less than or equal to 1, determined by the harmonic state observer;


a first phase-locked loop that estimates the position of the rotor from the corrected signals; and


a feedback of the position estimated by the first phase-locked loop to an input of the harmonic state observer.


A state observer is an extension of a model represented as a state representation. When the state of a system is not measurable, an observer allowing the state to be reconstructed from a model of the dynamic system and measurements of other quantities is designed.


A phase-locked loop (PLL) is an electronic or computer assembly allowing locking the phase or the output frequency of a system to the phase or the frequency of the input signal. It can also lock an output frequency to a multiple of the input frequency. The first phase-locked loop provides better harmonic identification.


According to an embodiment of the invention, the harmonic state observer can use, for each harmonic of order k, a transfer function of the form:









y
^

k

y

=



α
*
s



s
2

+


(

k
*
ω

)

2




1
+




k
=

0

n





α
*
s



s
2

+


(

k
*
ω

)

2










with s being the Laplace parameter, a being a state observer gain, k being the order of the harmonic considered, n being the number of harmonics of the measurement signals, w being the fundamental frequency with θ=ω*t, θ being the angular position, y being the generated signal considered among the cosine and sine signal, and ŷk being the estimated harmonic of order k of the generated signal considered among the cosine and sine signal.


Advantageously, state observer gain a can be determined to be less than fundamental frequency ω. Preferably, state observer gain a can be less than one tenth of fundamental frequency ω. Gain a allows adjusting the convergence of the harmonic state observer. According to an embodiment example, gain a can be 10. This value provides fast convergence without significant deformation of the observed signal.


According to an embodiment, the transfer function can be determined by use of the following operations:


The measurement signals, denoted by ya and yb respectively, which contain the harmonics, can be written as follows:






y
a
=L
0a
+L
1a sin(θ)+L2a sin(2θ+ϕa2)+L3a sin(3θ+ϕα2)+ . . . +Lna sin(nθ+ϕan)






y
b
=L
0b
+L
1b cos(θ+ϕ)+L2b sin(2θ+ϕb2)+L3b sin(3θ+ϕb2)+ . . . +Lnb sin(nθ+ϕbn)





or:






y
a
=L
0a
+L
11a sin(θ)+L12a cos(θ)+L21a sin(2θ)+L22a cos(2θ)+L31a sin(3θ)+L32a cos(3θ)+ . . . +Ln1a sin(nθ)+Ln2a cos(nθ)






y
b
=L
0b
+L
11b sin(θ)+L12b cos(θ)+L21b sin(2θ)+L22b cos(2θ)+L31b sin(3θ)+L32b cos(3θ)+ . . . +Ln1b sin(nθ)+Ln2b cos(nθ)


In these equations and in the rest of the description, subscript a designates the first measurement signal (the cosine signal for example) and subscript b designates the second measurement signal (the sine signal for example). In these equations, θ=ω*t, with ω being the fundamental frequency, L11a, L12a, L11b, L12b being the fundamental coefficients of the measurement signals (that is the coefficients related to the fundamental of the harmonics), Li1a, Li2a, Li1b, Li2b (with i ranging between 2 and n, n being the harmonic of highest frequency being considered) being the coefficients of the harmonics of the measurement signals, L0a and L0a being the offsets of the measurement signals (i.e. the continuous offsets).


To simplify this writing, the vectors can be denoted by L and W (without subscripts a and b):






L=[L0L11L12L21L22 . . . Ln1Ln2]T,






W=[1 sin(θ)cos(θ)sin(2θ)cos(2θ) . . . sin(nθ)cos(nθ)]T


and the vector of the estimation of coefficients L can be defined as follows:






{circumflex over (L)}=[custom-charactercustom-charactercustom-charactercustom-charactercustom-character . . . custom-charactercustom-character]T





It can be written:






y=L
T
*W, et ŷ={circumflex over (L)}
T
*W


According to the following documents:

  • Osowski, S. (1992). Neural Network for Estimation of Harmonic Components in a Power System. IEEE Generation, Transmission and Distribution, (pp. 129-135), and
  • Siyu Leng, W. L.-Y. (2009). Active Power Filter for Three-Phase Current. IEEE American Control Conference, (pp. 2140-2147). MO, USA,


    it can be written:






{circumflex over (L)}=P*(y−ŷ)*W


where P is the diagonal matrix of dimension (2n+1)*(2n+1) defined by:






P=diag(α)


with α the state observer gain.


The estimator of coefficients L can then be written as follows:






custom-character=α*(y−ŷ)






custom-character=α*(y−ŷ)*sin(θ)






custom-character=α*(y−ŷ)*cos(θ)






custom-character=α*(y−ŷ)*sin(2θ)






custom-character=α*(y−ŷ)*cos(2θ)





. . .






custom-character=α*(y−ŷ)*sin(nθ)






custom-character=α*(y−ŷ)*cos(nθ)


The estimation of the fundamental part denoted by ŷf can be extracted from these equations by removing the harmonics denoted by ŷh and the offsets denoted by ŷoffset:






ŷ
f
=y−ŷ
h
−ŷ
offset






o{dot over (u)}=
custom-character
et ŷ
hi=2n(custom-charactersin(iθ)+custom-charactercos(iθ))


Using the Laplace transform to form the following equation:






y(t)−ŷ(t)=y(t)−Σk=0n(ŷk(t))o{dot over (u)}yk(t)=({circumflex over (L)}k1 sin(k*θ)+{circumflex over (L)}k2 cos(k*θ))


with k the harmonic order number. We can then write:








y

(
s
)

-


y
^

(
s
)


=


y

(
s
)

-




k
=

0

n







y
^

k

(
s
)







with






ŷ
k=custom-character({circumflex over (L)}k1 sin(k*θ))+custom-character({circumflex over (L)}k2 cos(k*θ))


with custom-character the Laplace transform.


it can be written:









y
^

k

(
s
)

=


(


y

(
s
)

-


y
^

(
s
)


)

*


α
*
s



s
2

+


(

k
*
ω

)

2








The transfer function can then be written for each harmonic of order k:









y
^

k

y

=



α
*
s



s
2

+


(

k
*
ω

)

2




1
+




k
=

0

n





α
*
s



s
2

+


(

k
*
ω

)

2










For fundamental (k=1), the transfer function between fundamental ŷf and measurement y can be written:







H

(
s
)

=





y
^

f

(
s
)


y

(
s
)


=


1
+


α
*
s



s
2

+

ω
2





1
+




k
=

0

n





α
*
s



s
2

+


(

k
*
ω

)

2











According to an implementation of the invention, the harmonic state observer can further determine the fundamental coefficients of the harmonics and the offsets of the measurement signals.


According to an embodiment, for the phase difference correction step, the phase difference between the measurement signals, preferably between the fundamentals of the measurement signals, can be identified by use of the fundamental coefficients of the harmonics. This phase difference identification can be carried out by use of an arctangent function.


Advantageously, phase difference ϕ between the fundamentals of the measurement signals can be determined by the equations:






ϕ
=

atan



(



L

1

b


*
sin



(
ϕ
)




L

1

b


*
cos



(
ϕ
)



)







using







L

1

b


*
sin



(
ϕ
)


=



-


L
^


11

b



*
cos



(
Δθ
)


-



L
^


12

b


*
sin



(
Δθ
)











L

1

b


*
cos



(
ϕ
)


=




L
^


12

b


*
cos



(
Δθ
)


-



L
^


11

b


*
sin



(
Δθ
)







with L1b being the fundamental coefficient of one of the generated cosine and sine signals, {circumflex over (L)}11b and {circumflex over (L)}12b being the fundamental coefficients determined by the harmonic state observer, AO being the difference between the measured rotor position and the rotor position estimated by the first phase-locked loop PLL.


Indeed, for this step, the following operations can be carried out:


With the hypothesis ŷfa=ya and if ŷfa=ya (subscript f denotes the fundamental), it can be written by the following equations:






{circumflex over (L)}
11a sin({circumflex over (θ)})+{circumflex over (L)}12a cos({circumflex over (θ)})=L1a*sin(θ).






{circumflex over (L)}
11b sin({circumflex over (θ)})+{circumflex over (L)}12b cos({circumflex over (θ)})=L1b*cos(θ+ϕ)


with {circumflex over (θ)} the estimated value of the rotor position (corresponding to θobs in FIG. 1 or FIG. 2). Fundamental signal coefficients La and Lb can be calculated by the following equations:






L
=√{square root over ({circumflex over (L)}11a2+{circumflex over (L)}12a2)},L1b=√{square root over ({circumflex over (L)}11b2+{circumflex over (L)}12b2)}


By putting θ={circumflex over (θ)}+Δθ, it can be written:









L

1

a


*
sin



(
θ
)


=



L

1

a


*
sin



(


θ
^

+

Δ

θ


)


=



L

1

a


*
sin



(

θ
^

)

*
cos



(

Δ

θ

)


+


L

1

a


*
cos



(

θ
^

)

*
sin



(
Δθ
)





,

et











L

1

b


*
cos



(

θ
+
ϕ

)


=



L

1

b


*
cos



(


θ
^

+
Δθ
+
ϕ

)








=




L

1

b


*
cos



(

θ
^

)

*
cos



(

Δθ
+
ϕ

)


-


L

1

b


*
sin



(

θ
^

)

*
sin



(

Δθ
+
ϕ

)










it can be obtained:






{circumflex over (L)}
11a
=L
1a*cos(Δθ),{circumflex over (L)}12a=L1a*sin(Δθ)






{circumflex over (L)}
11b
=−L
1b*sin(Δθ+ϕ),{circumflex over (L)}12b=L1b*cos(Δθ+ϕ)


From these equations, we can show that:











cos



(
Δθ
)


=



L
^


11

a



L

1

a




,





sin



(
Δθ
)


=



L
^


12

a



L

1

a














L

1

b


*
sin



(
ϕ
)


=



-


L
^


11

b



*
cos



(
Δθ
)


-



L
^


12

b


*
sin




(
Δθ
)

.











L

1

b


*
cos



(
ϕ
)


=



-


L
^


12

b



*
cos



(
Δθ
)


-



L
^


11

b


*
sin



(
Δθ
)







By injecting the last two equations, phase difference 1 can be identified in the following equation:






ϕ
=

atan



(



L

1

b


*
sin



(
ϕ
)




L

1

b


*
cos



(
ϕ
)



)






One of the two measurement signals can be corrected from the identified phase difference to eliminate the phase difference. A signal without phase difference can therefore be reconstructed by use of the values determined for the fundamentals of the harmonics of the measurement signals, the values of the fundamental coefficients and the identified phase difference angle.


According to an embodiment of the invention, the phase difference of one of the measurement signals is corrected by use of the equation:







y

fb
-
correction


=


L

1

b


*



y
fb

-



y
fa


L

1

a



*

(


L

1

b


*
sin



(
ϕ
)


)




(


L

1

b


*
cos



(
ϕ
)


)







with yfb-correction the fundamental of the measurement signal considered, L1a and L1b the fundamental coefficients of the measurement signals, yfa and yfb the fundamentals of the measurement signals, and ϕ the phase difference.


Indeed, by definition:






y
fa
=L
1a*sin(θ),yfb=L1b*cos(θ+ϕ)


and it is desired to establish the corrected fundamental signal defined by:






y
fb-correction
=L
1b*cos(θ)


If we use the following development:







cos



(
θ
)


=



cos



(

θ
+
ϕ

)


-

sin



(
θ
)

*
sin



(
ϕ
)




cos



(
ϕ
)







it can be obtained:







y

fb
-
correction


=




L

1

b


*
cos



(

θ
+
ϕ

)


-


L

1

b


*
sin



(
θ
)

*
sin



(
ϕ
)




cos



(
ϕ
)







By replacing with the definition of the fundamental signals, we can have:







y

fb
-
correction


=


L

1

b


*



y
fb

-



y
fa


L

1

a



*

(


L

1

b


*
sin



(
ϕ
)


)




(


L

1

b


*
cos



(
ϕ
)


)







According to an embodiment of the invention, the first phase-locked loop can notably comprise a proportional integral controller and an integrator.


Preferably, the first phase-locked loop can be in accordance with the embodiment of FIG. 3. For this embodiment, the first phase-locked loop comprises as the input a sine signal sin(θ) and a cosine signal −cos(θ). Sine signal sin(θ) is multiplied by a signal corresponding to the cosine of the angular position {circumflex over (θ)} (for this step, {circumflex over (θ)} corresponds to Gobs of FIGS. 1 and 2) estimated by the output of the first phase-locked loop. Cosine signal −cos(θ) is multiplied by a signal corresponding to the sine of the angular position {circumflex over (θ)} estimated by the output of the first phase-locked loop. The outputs of the multipliers are then added together. A signal ϵ corresponding to sin(θ)×cos({circumflex over (θ)})−cos(θ)×sin({circumflex over (θ)}), which is equal to sin(θ−{circumflex over (θ)}), is thus obtained. Signal ϵ is then passed through a proportional integral PI controller for estimating the rotational speed of the rotor {circumflex over (ω)}. The PI controller comprises a proportional coefficient denoted by Kp and an integral coefficient Ki. This signal is subsequently integrated in an integrator, which corresponds to the 1/s function in the Laplace domain, to estimate rotor position {circumflex over (θ)}.


For this embodiment, the transfer function of the first phase-locked loop can be written:









θ
^

(
s
)


θ

(
s
)


=


1
+



K
p


K
i


*
s



1
+



K
p


K
i


*
s

+


1

K
i


*

s
2








with θ being the rotor position, {circumflex over (θ)} being the rotor position estimated by the first phase-locked loop, s being the Laplace parameter, Kp being the proportional coefficient of the proportional integral controller and Ki being the integral coefficient of the proportional integral controller.


Indeed, the first phase-locked loop allows the following relation to be written:








θ
^

(
s
)

=


1
s

*

(


K
p

+


K
i

s


)

*

ϵ

(
s
)






By use of a linear approximation such as:





ϵ=sin(θ−{circumflex over (θ)})≈θ−{circumflex over (θ)}


the following equation can be obtained:








θ
^

(
s
)

=


1
s

*

(


K
p

+


K
i

s


)

*

(


θ

(
s
)

-


θ
^

(
s
)


)






which allows the above transfer function to be obtained.


According to an aspect of the invention, coefficients Kp and Ki verify the following inequations Kp>0 and Ki>0 for the phase-locked loop to be stable.


The natural frequency of the phase-locked loop ωPLL is ωPLL=√{square root over (Ki)}.


For a good performance of the phase-locked loop, coefficients Kp and Ki are determined so that the quality factor mPLL as defined below is close to 1.







m
PLL

=



ω
PLL

2

*


K
p


K
i







For the first embodiment, the at least one of the estimated rotor position and/or speed are obtained by the first phase-locked loop.


For the second embodiment, steps 2) to 5) described hereafter are carried out.


2) Determination of the Harmonic Observer Convergence


This step determines the convergence of the harmonic state observer of the closed loop, to activate correction of the harmonics only if the harmonic state observer is convergent. Thus, only good harmonic estimations are kept and corrections based on non-converged values are avoided, which prevents inaccuracies and at least one of rotor position and speed determination errors. Thus, determination of the position and/or the rotational speed of the rotor is improved.


The convergence of the harmonic state observer can be determined using any means.


According to an embodiment of the invention, the convergence of the harmonic state observer can be determined by use of the following equation:





√{square root over (|ya−ŷa|2+|y0−ŷb|2)}<ε


with ϵ being a predetermined threshold, ya and yb being the measurement signals, and ŷa and ŷb being the estimated signals reconstructed from the harmonics determined by the harmonic state observer and the position determined by the first phase-locked loop.


According to an embodiment of the invention, the observer convergence can be determined when the above equation is verified over a constant or variable time interval, over one or more electrical revolutions for example.


3) Correction of the Observed Harmonics


This step corrects the harmonics observed by use of the first phase-locked loop in order to synchronize them with the second phase-locked loop. Generally, the electrical positions of the two phase-locked loops differ by a quantity denoted by ΔθPLL. The reference position, denoted by θ here, is estimated by the second phase-locked loop, whose kinematics is faster than that of the first phase-locked loop. The observer is considered to be convergent. We then have, for example for the sine signal denoted by a:






ŷ
ka
=y
ka






{circumflex over (L)}
k1a

PLL1

={circumflex over (L)}
k1a

PLL1
cos(kΔθPLL)+{circumflex over (L)}k2aPLL1 sin(kΔθPLL)






{circumflex over (L)}
k1a

PLL1
sin (custom-character) +{circumflex over (L)}k2apLL1cos(custom-character)=Lka*sin(kΔθ+ϕak).


The values of the harmonics associated with the second phase-locked loop are sought:






{circumflex over (L)}
k1a

PLL2

=L
ka*cos(ϕak) and {circumflex over (L)}k2aPLL2=Lka*sin(ϕak)


The following values are calculated:






{circumflex over (L)}
k1a

PLL2

={circumflex over (L)}
k1a

PLL1
cos(kΔθPLL)+{circumflex over (L)}k2aPLL1 sin(kΔθPLL)






{circumflex over (L)}
k2a

PLL2

={circumflex over (L)}
k2a

PLL1
cos(kΔθPLL)−{circumflex over (L)}k1aPLL1 sin(kΔθPLL)


It is noted that the above calculation is for each harmonic, of a compensatory rotation of the harmonics observed, by an angle equal to the angle difference observed by the two phase-locked loops multiplied by the order of the harmonic considered.


According to an embodiment of the invention, quantity ΔθPLL can be determined as described hereafter. It should be noted the definition (y1a is the phase reference of the system) is included:






y
1a
=L
11a*sin(θ)


Therefore, L12a is 0 by definition, as well as ϕa1.


The equation {circumflex over (L)}k2aPLL1=Lka*sin(kΔθPLLak) is applied to harmonic 1, the result is: {circumflex over (L)}12aPLL1=Lka*sin(ΔθPLL), and similarly: {circumflex over (L)}11aPLL1=Lka*cos(ΔθPLL), from which calculates possible of Lka and ΔθPLL.


4) Correction of the Measurement Signals


This step continuously corrects the measurement signals to eliminate the effects of the harmonics determined in step 1) and corrected in step 3), only when the harmonic state observer has been determined convergent in step 2). In other words, correction of the measurement signals is activated when the harmonic state observer provides reliable observations.


When the harmonic state observer is not convergent, the measurement signals are corrected by the last harmonic values observed when the observer was convergent, and the signals are used in step 5).


According to an embodiment of the invention, the measurement signals can be continuously corrected by filtering the harmonics determined in steps 1) and 3).


Filtering the harmonics in the measurement signals is obtained with:






y
c
=y−L
0a
−L
21a sin(2θ)−L22a cos(2θ)−L31a sin(3θ)−L32a cos(3θ)− . . . −Ln1a sin(nθ)−Ln2a cos(nθ)


According to an embodiment of the invention, the phase difference, the amplitude and the offset of signals yc can then be corrected by a method identical to that used in step 1).


5) Determination of the Rotor Position and/or Speed


This step determines at least one of the position and the speed of the rotor by a second phase-locked loop from the corrected measurement signals when the harmonic state observer is convergent (at the end of step 3), and from the uncorrected measurement signals when the harmonic state observer is divergent.


The second phase-locked loop can have the same structure as the first phase-locked loop (according to FIG. 3). The constituent elements and the transfer function are identical to those described in step 1. However, the coefficients of the PI controller may be different. In particular, integral coefficient Ki of the first phase-locked loop may be less than integral coefficient Ki of the second phase-locked loop. Integral coefficient Ki of the first phase-locked loop can be related to the resonance of the mechanical system, while integral coefficient Ki of the second phase-locked loop can depend on the electrical bandwidth. The first phase-locked loop thus has slower kinematics than the second phase-locked loop.


Furthermore, the invention relates to a method of controlling an electric machine, the electric machine comprising a sensor for determining the angular position of the rotor of the electric machine. The position sensor generates a cosine signal and a sine signal. The control method comprises the following steps:


a) determining at least one of the position and the speed of the rotor by the method of determining at least one of the rotor position and speed according to any one of the variants or variant combinations described above, the method being applied to the measurement signals of the position sensor, and


b) controlling the electric machine according to the determined at least one of position and speed.


According to an embodiment of the invention, the torque or the rotational speed of the electric machine can notably be controlled.


The invention further relates to a method of monitoring an electric machine, the electric machine comprising a sensor for determining the angular position of the rotor of the electric machine. The position sensor generates a cosine signal and a sine signal. The monitoring method comprises the following steps:


a) determining at least one of the position and the speed of the rotor by the method of determining at least one of the rotor position and speed according to any one of the variants or variant combinations described above, the method being applied to the measurement signals of the position sensor, and


b) monitoring the electric machine according to the determined at least one of position and speed.


According to an embodiment of the invention, the monitoring method can comprise a step of diagnosis of abnormal electric machine operation. In this case, the monitoring method can comprise an electric machine control step in order to take account of the abnormal operation of the electric machine. For example, control in case of abnormal electric machine operation can stop the electric machine.


It is clear that the invention is not limited to the embodiments of the steps described above by way of example and that it encompasses all variant embodiments.


Examples

The features and advantages of the method according to the invention will be clear from reading the application example hereafter.


This example simulates the method of determining the position and the speed of the rotor according to the second embodiment of the invention. For this simulation, theoretical measurement signals are considered of the form:






y
α=0.95*sin(ωt)+0.05+0.09*sin(2ωt)−0.04*cos(2ωt)+0.02*sin(3ωt)+wa,






y
b=1.05*cos(ωt+ϕ)+0.03−0.086*sin(2ωt)+0.051*cos(2ωt)−−0.025*cos(3ωt)+wb,


For this example, the value of fundamental phase difference ϕ is 3°, the noises are denoted by wa and wb, and the gain of the harmonic state observer a is 10.



FIG. 4 illustrates the evolution of reference rotational speed ωref in rad/s as a function of time T in s for the simulation. The rotational speed ωref considered comprises five phases: a first phase between 0 and 3 s with a slight increase in rotational speed ωref, a second phase between 3 and 4 s with a sharp increase in rotational speed ωref, a third phase between 4 and 5.5 s of stability of rotational speed ωref, a fourth phase between 5.5 and 7 s of sharp decrease in rotational speed ωref, and a fifth phase between 7 and 10 s of stability of rotational speed ωref.


For the simulation, the two phase-locked loops according to the structure illustrated in FIG. 3 are used. For the first phase-locked loop, a natural frequency ωPLL of 60 rad/s is selected, which implies an integral coefficient Ki of 3600. For the second phase-locked loop, a natural frequency ωPLL of 400 rad/s is selected, which implies an integral coefficient Ki of 160,000. For the first phase-locked loop, the value of proportional coefficient Kp is 120. For the second phase-locked loop, the value of proportional coefficient Kp is 800. Thus, for each phase-locked loop, the value of quality factor mPLL is 1.


For this example, FIG. 5 illustrates the rotational speed ωest in rad/s estimated with the method according to the invention as a function of time T in s, at the output of the second phase-locked loop. FIG. 6 illustrates difference Δθ in rad between the angle estimated by the method according to the invention and the reference angle as a function of time T in s, at the output of the second phase-locked loop. It is first observed that the estimated speed is similar to the reference speed. It is also noted that, in the low-speed zone (up to about 85 rad/s), the harmonic observer is not activated yet, there is therefore a large estimation error. However, as soon as the rotational speed reaches the threshold of 85 rad/s (which substantially corresponds to √{square root over (2)} times the natural frequency of the first phase-locked loop), the harmonic observer is operating, which implies convergence of the harmonic observer, which in turn provides good speed and position estimations by the second phase-locked loop. In particular, from the second phase to the fifth phase, the speed and position estimations remain reliable. It is also noted that, when the rotational speed decreases (fourth phase), the speed and position estimation remains good, although the rotational speed is less than √{square root over (2)} times the natural frequency of the second phase-locked loop.


The method according to the invention therefore allows to precisely and reliably determine the position and the rotational speed of the rotor of an electric machine.

Claims
  • 1. A method of determining the position and/or the speed of a rotor of an electric machine by means of a sensor (CAP) that determines the position of said rotor, said position sensor (CAP) generating a cosine signal and a sine signal, characterized in that the method utilizes a closed loop (BF) comprising a harmonic state observer (OBS), correction of said phase difference (CORΦ) of said generated cosine and sine signals, and a first phase-locked loop (PLL1), said state observer of said harmonics (OBS) relating said generated cosine and sine signals and a value of said rotor position (θobs) estimated by said first phase-locked loop (PLL1) to said harmonics, said correction of a phase difference (CORΦ) identifying and correcting the phase difference of said generated cosine and sine signals by means of said harmonics determined by said state observer of said harmonics (OBS), and said first phase-locked loop (PLL1) estimating the position and/or the speed of said rotor from said corrected cosine and sine signals.
  • 2. A method of determining the position and/or the speed of a rotor as claimed in claim 1, wherein the following steps are carried out: a) determining the harmonics of said generated cosine and sine signals by means of said harmonic state observer (OBS) of said closed loop (BF) comprising said state observer of said harmonics (OBS), said correction of said phase difference (CORΦ) of said generated cosine and sine signals, and said first phase-locked loop (PLL1),b) determining whether said state observer (OBS) of said harmonics is convergent,c) continuously correcting said generated cosine and sine signals (CORH) by updating said determined harmonics when said state observer of said harmonics is convergent, andd) determining said position and/or said speed of said rotor by means of a second phase-locked loop (PLL2) from said corrected cosine and sine signals.
  • 3. A method of determining the position and/or the speed of a rotor as claimed in claim 2, wherein the convergence of said state observer (OBS) of said harmonics is determined by verifying the equation: √{square root over (|ya−ŷa|2+|yb−ŷb|2)}<εwith ya and yb said generated cosine and sine signals respectively, ŷa and ŷb the signals reconstructed by means of an estimated position, and ε a predetermined threshold.
  • 4. A method of determining the position and/or the speed of a rotor as claimed in claim 2, wherein said first and second phase-locked loops (PLL1, PLL2) comprise a proportional integral (PI) controller and an integrator.
  • 5. A method of determining the position and/or the speed of a rotor as claimed in claim 4, wherein the transfer function of said first and second phase-locked loops PLL is written as follows:
  • 6. A method of determining the position and/or the speed of a rotor as claimed in claim 5, wherein said integral coefficient Ki of said first phase-locked loop (PLL1) is less than said integral coefficient Ki of said second phase-locked loop (PLL2).
  • 7. A method of determining the position and/or the speed of a rotor as claimed in claim 2, wherein said cosine and sine signals are corrected (CORH) by filtering said determined harmonics and possibly by correcting the phase difference of said cosine and sine signals.
  • 8. A method of determining the position and/or the speed of a rotor as claimed in claim 1, wherein said state observer (OBS) of said harmonics involves a transfer function:
  • 9. A method of determining the position and/or the speed of a rotor as claimed in claim 8, wherein said gain α is less than said fundamental frequency, preferably said gain a is less than one tenth of said fundamental frequency ω.
  • 10. A method of determining the position and/or the speed of a rotor as claimed in claim 8, wherein said state observer (OBS) of said harmonics further determines fundamental coefficients of said harmonics and said offsets of said generated cosine and sine signals.
  • 11. A method of determining the position and/or the speed of a rotor as claimed in claim 10, wherein said phase difference between said generated cosine and sine signals is identified by means of said fundamental coefficients of said harmonics using an arctangent function.
  • 12. A method of determining the position and/or the speed of a rotor as claimed in claim 11, wherein said phase difference Φ between said generated cosine and sine signals is determined by means of the equation:
  • 13. A method of determining the position and/or the speed of a rotor as claimed in claim 1, wherein said phase difference (CORΦ) of one of said generated cosine and sine signals is corrected by means of the equation:
  • 14. A method of determining the position and/or the speed of a rotor as claimed in claim 1, wherein said position sensor is a magnetostrictive sensor, an inductive sensor, an encoder, a GMR sensor, an AMR sensor, a TMR sensor or a solver.
  • 15. A method of controlling an electric machine, said electric machine comprising a sensor that determines the position of the rotor of said electric machine, said position sensor generating a cosine signal and a sine signal, wherein the following steps are carried out: a) determining said position and/or said speed of said rotor by means of said method as claimed in any one of the previous claims and said signals generated by said position sensor, andb) controlling said electric machine according to said predetermined position and/or speed.
Priority Claims (1)
Number Date Country Kind
FR1914641 Dec 2019 FR national
Parent Case Info

Reference is made to PCT/EP2020/085206 filed Dec. 9, 2020, designating the United States, and French Application No. 19/14.641 filed Dec. 17, 2019, which are incorporated herein by reference in their entirety.

PCT Information
Filing Document Filing Date Country Kind
PCT/EP2020/085206 12/9/2020 WO