Method for Estimating Parameters of a DC Machine by the Laplace Transform
20180226909 ยท 2018-08-09
Inventors
Cpc classification
H02P23/14
ELECTRICITY
H02P21/14
ELECTRICITY
G05B19/18
PHYSICS
International classification
Abstract
A method for estimating parameters of a direct current machine by Laplace transform performed by a computer system. The method includes establishing a transient model of the DC machine and a transfer function based on the transient mode; transforming the transfer function from the time domain to the frequency domain by the Laplace transform to obtain each of an armature current and a rotational speed of the DC machine as a function of frequency; expressing the armature current and the rotational speed as polynomial fractions by polynomial regression, and comparing the functions of the frequency and the polynomial fractions to output values of the armature resistance, the armature inductance, the back electromotive force constant, the moment of inertia and the friction coefficient. As such, the accuracy and operational efficiency in estimating the parameters of the DC machine can be improved.
Claims
1. A method for estimating parameters of a direct current (DC) machine by Laplace transform as executed by a computer system dedicated to estimating the parameters of the direct current machine, wherein the computer system includes a calculation module, a human machine interface, a data retrieval module, a servo driver, a servo motor and the DC machine, with the method comprising: establishing a transient model of the direct current machine by the calculation module, wherein the transient model includes an equivalent circuit and an equivalent mechanism, wherein the equivalent circuit includes an armature resistance, an armature inductance and a back electromotive force constant, and wherein the equivalent mechanism includes a moment of inertia and a friction coefficient; sampling a terminal voltage, an armature current and a rotational speed of the direct current machine at a plurality of time points by the computer system, as performed by the data retrieval module; quantizing each of the terminal voltage, the armature current and the rotational speed into a discrete value at each of the plurality of time points when the direct current machine is started, as performed by the data retrieval module; generating an estimated value of each of the terminal voltage, the armature current and the rotational speed based on the discrete values of the terminal voltage, the armature current and the rotational speed, as performed by the data retrieval module; establishing a transfer function based on the transient mode by the calculation module, wherein the transfer function generates a first frequency domain function of the estimated value of the armature current and a second frequency domain function of the estimated value of the rotational speed according to the Laplace transform; expressing the first and second frequency domain functions to generate third and fourth frequency domain functions, respectively, as performed by the calculation module; making the first and third frequency domain functions equal to each other and the second and fourth frequency domain functions equal to each other to generate relational equations of the armature resistance, the armature inductance, the back electromotive force constant, the moment of inertia, and the friction coefficient, as performed by the calculation module; obtaining relational equations of the armature resistance, the armature inductance, the back electromotive force constant, the moment of inertia and the friction coefficient by setting the first and third frequency domain functions equal to each other and the second and fourth frequency domain functions equal to each other, as performed by the calculation module; expressing a difference between an actual value of the armature current and the estimated value of the armature current by a first error function to generate coefficients of a polynomial fraction of the third frequency domain function, and a difference between an actual value of the armature current and the estimated value of the armature current by a second error function to generate coefficients of a polynomial fraction of the fourth frequency domain function, as performed by the calculation module; generating coefficients of a polynomial fraction of the estimated value of the rotational speed according to a plurality of frequency domain values of the rotational speed and the first error function; adjusting the relational equations according to the coefficients of the polynomial fractions of the third and fourth frequency domain functions; and outputting the estimated values of the armature resistance and the armature inductance, the back electromotive force constant, a value of the moment of inertia and a value of the friction coefficient to the data retrieval module.
2. The method for estimating the parameters of the direct current machine by the Laplace transform as claimed in claim 1, wherein the transfer function is expressed as:
3. The method for estimating the parameters of the direct current machine by the Laplace transform as claimed in claim 2, wherein the first frequency domain function is expressed as:
4. The method for estimating the parameters of the direct current machine by the Laplace transform as claimed in claim 2, wherein the third frequency domain function is expressed as:
5. The method for estimating the parameters of the direct current machine by the Laplace transform as claimed in claim 4, wherein the polynomial fraction of the armature current is expressed as:
6. The method for estimating the parameters of the direct current machine by the Laplace transform as claimed in claim 5, wherein a partial derivative of each of the coefficients of the polynomial fraction of the first error function is made zero to obtain the coefficients as:
7. The method for estimating the parameters of the direct current machine by the Laplace transform as claimed in claim 2, wherein the second error function is expressed as:
8. The method for estimating the parameters of the direct current machine by the Laplace transform as claimed in claim 7, wherein the fourth frequency domain function is expressed as:
9. The method for estimating the parameters of the direct current machine by the Laplace transform as claimed in claim 8, wherein the second error function is expressed as:
10. The method for estimating the parameters of the direct current machine by the Laplace transform as claimed in claim 9, wherein a partial derivative of each of the coefficients of the polynomial fraction of the second error function is made zero to obtain the coefficients as:
11. An apparatus for estimating parameters of a direct current machine by Laplace transform, comprising a computer system dedicated to performing the method for estimating the parameters of the direct current machine by the Laplace transform as claimed in claim 1.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The present invention will become more fully understood from the detailed description given hereinafter and the accompanying drawings which are given by way of illustration only, and thus are not limitative of the present invention, and wherein:
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
DETAILED DESCRIPTION OF THE INVENTION
[0034]
[0035] Based on the above transient model, the relations of the equivalent circuit can be established. An estimated value of the terminal voltage of the DC machine can be expressed as the following equation (1):
[0036] {circumflex over (v)} is the estimated value of the terminal voltage of the DC machine, is an estimated value of the armature current of the DC machine, R.sub.a is the armature resistance, L.sub.a is the armature inductance, is an estimated value of a back electromotive force, and d/dt is the rate of change of the estimated value of the armature current.
[0037] In addition, the relation between the estimated value of the back electromotive force () and an estimated value of the rotational speed of the DC machine can be expressed as the following equation (2):
=K.sub.E{circumflex over ()},(2).
[0038] is the estimated value of the back electromotive force, K.sub.E is the back electromotive force constant, and {circumflex over ()} is the estimated value of the rotational speed.
[0039] Therefore, the above equation (1) may be rewritten as the following equation (3):
[0040] {circumflex over (v)}, and {circumflex over ()} are the estimated values of the terminal voltage, the armature current and the rotational speed, respectively. R.sub.a, L.sub.a and K.sub.E are the armature resistance, the armature inductance and the back electromotive force constant, respectively. d/dt is the rate of change of the estimated value of the armature current.
[0041] Moreover, when the DC machine has no load, the relations of the equivalent mechanism can be described by the following equations (4) and (5):
[0042] T is an estimated value of a torque, J is the moment of inertia, B is the friction coefficient, K.sub.T is a torque constant. and are the estimated values of the armature current and the rotational speed, respectively. d/dt is the rate of change of the estimated value of the rotational speed.
[0043] Besides, since the back electromotive force constant K.sub.E is equal to the torque constant K.sub.T, each of the back electromotive force constant K.sub.E (in equation (3)) and the torque constant K.sub.T (in equation (5)) can be replaced by a parameter K in this embodiment. As a result, based on the relations of the equivalent circuit and the equivalent mechanism of the transient model, a transfer function of the DC machine can be established as:
[0044] {circumflex over (v)}, and {circumflex over ()} are the estimated values of the terminal voltage, the armature current and the rotational speed, respectively. R.sub.a, L.sub.a, J and B are the armature resistance, the armature inductance, the moment of inertia and the friction coefficient, respectively. P is a differential divisor, and K is the back electromotive force constant or the torque constant.
[0045] Since the DC machine is modeled as a second-order circuit characterized by a second-order differential equation, a zero-input response and a zero-state response are generated when applying a step function input. However, since the zero-input response is an exponential function which is not easy to decompose and analyze during the operation, the operational efficiency is low. Therefore, the exponential function can be transformed to into a polynomial by Laplace Transform in this embodiment to effectively reduce the operational complexity, improving the operational efficiency.
[0046] Specifically, when an input voltage is a step function with a value {circumflex over (V)}, the Laplace transform of the input voltage can be represented as {circumflex over (V)}/S, wherein S is a complex frequency. Thus, the above equation (6) can be transformed from the time domain to the frequency domain by the Laplace transform as shown in the following equation (7):
[0047] {circumflex over (V)}, and are the estimated values of the terminal voltage, the armature current and the rotational speed in the frequency domain, respectively. R.sub.a, L.sub.a, J and B are the armature resistance, the armature inductance, the moment of inertia and the friction coefficient, respectively. S is the complex frequency and K is the back electromotive force constant or the torque constant.
[0048] Thus, a first frequency domain function of the estimated value of the armature current can be obtained based on equations 7a-7h below, and a second frequency domain function of the estimated value of the rotational speed can be obtained based on equations 7i-7k below:
[0049] (s) and (s) are the frequency domain functions of the estimated values of the armature current and the rotational speed. {circumflex over (v)} is the estimated value of the terminal voltage. R.sub.a, L.sub.a, J and B are the armature resistance, the armature inductance, the moment of inertia and the friction coefficient, respectively. S is the complex frequency and K is the back electromotive force constant or the torque constant.
[0050] With reference to
[0051] In this embodiment, referring to
[0052] The method for estimating the parameters of the DC machine by the Laplace transform according to the embodiment of the invention may include, but is not limited to, a sampling step S1, a transforming step s2, a noise filtering step S3, a parameter calculating step S4 and a parameter outputting step S5.
[0053] In the sampling step S1, after the DC machine is started, the data retrieval module 3 of the computer system samples the terminal voltage, the armature current and the rotational speed of the DC machine at different time points. The terminal voltage, the armature current and the rotational speed are respectively quantized into a set of discrete values based on the sampling time. The calculation module 1 of the computer system obtains an estimated value of the terminal voltage from the set of discrete values of the terminal voltage, an estimated value of the armature current from the set of discrete values of the armature current, and an estimated value of the rotational speed from the set of discrete values of the rotational speed. The principle in obtaining the estimated values from the sets of discrete values can be readily appreciated by the skilled person and therefore is not described herein.
[0054] The transforming step S2 is configured to respectively transform the estimated values of the terminal voltage, the armature current and the rotational speed from time domain to frequency domain. Namely, the estimated value of each of the terminal voltage, the armature current and the rotational speed is transformed from an exponential function into a polynomial to reduce the operational complexity in the time domain.
[0055] In the transforming step S2 of this embodiment, the computer system is able to transform the estimated value of each of the armature current and the rotational speed into a polynomial by the Laplace transform. For example, if a time domain signal is composed of a single exponential component, the exponential component can be expressed as the following equation (10):
x(n)=e.sup.n/N,n=0,1, . . . N1,(10).
[0056] x(n) is the time domain value of the exponential component, n is the sampling sequence of the exponential component (e.g., n=1, 2, . . . , N1), a is a coefficient of the exponential component, e.sup.n/N is an exponential term of the exponential component, and 1/ is a time constant.
[0057] Moreover, equation (10) can be transformed into a polynomial in the frequency domain by the Laplace transform as follows:
[0058] X(s) is the frequency domain value of the exponential component, x(n) is the time domain value of the exponential component, n is the sampling sequence of the exponential component (e.g., n=1, 2, . . . , N1), e.sup.sn/N is an exponential term, and SiN is a frequency resolution.
[0059] According to the above equations (10) and (11), X(s) can be further expressed as:
[0060] In the above equation (12), the result of the numerator of the equation (12) is approximately 1 when +s>5. The numerator can be derived from the following equation (13):
1e.sup.(+s)|.sub.+s>51,(13).
[0061] In addition, the result of the denominator of the equation (12) is approximately (+s) when N>>+S. The denominator can be derived from the following equation (14):
1e.sup.(+s)|.sub.+s>5+s/N,(14).
[0062] Therefore, according to the above equations (12) and (13), the result of the equation (12) is approximately as:
[0063] X(s) is the frequency domain value of the exponential component, is the coefficient of the exponential component, 1/ is the time constant, S is a lower limit of the complex frequency and S.sub.2 is an upper limit of the complex frequency.
[0064] However, in the above equation (15), the lower limit S.sub.1 must satisfy the condition of the above equation (13) (i.e. +s.sub.1>5) and the upper limit S.sub.2 must satisfy the condition of the above equation (14) (i.e. N>>+s.sub.2), such that the complex frequency in the interval [S.sub.1, S.sub.2] can be substituted into the above equation (15). Namely, for the complex frequency in the interval [S.sub.1, S.sub.2], the estimated values of the armature current and the rotational speed can be respectively transformed into a polynomial by the Laplace transform.
[0065] On the other hand, if the time domain signal consists of a plurality of exponential components, the plurality of exponential components can be expressed as the following equation (16):
[0066] x(n) is the time domain value of the sum of the plurality of exponential components, n is the sampling sequence of the plurality of exponential components (e.g., n=1, 2, . . . , N1), .sub.m is the coefficient of the m.sup.th exponential component, e.sup..sup.
[0067] Moreover, the Laplace transform of the sum of the plurality of exponential components in the above equation (16) is shown in the following equation (17):
[0068] X(s) is the frequency domain value of the sum of the plurality of exponential components, .sub.m is the coefficient of the m.sup.th exponential component, 1/.sub.m is the time constant for the m.sup.th exponential component, S.sub.1 is the lower limit of the complex frequency and S.sub.2 is the upper limit of the complex frequency.
[0069] Since the step response of the DC machine can be expressed as the following equation (18):
x(n)=.sub.0+.sub.1e.sup..sup.
[0070] x(n) is the time domain value of the sum of the plurality of exponential components, .sub.n is the coefficient of the n.sup.th exponential component, n is the sampling sequence of the plurality of exponential components (e.g., n=1, 2), and e.sup..sup.
[0071] Therefore, once the Laplace transform is applied, the step response of the DC machine can be expressed as the following equation (19):
[0072] X(s) is the frequency domain value of the sum of the plurality of exponential components, a, is the coefficient of the n.sup.th exponential component, S is the complex frequency, and 1/.sub.n is the time constant for the n.sup.th exponential component (e.g., n=1, 2).
[0073] Furthermore, the above equation (19) may be rewritten as a polynomial fraction as shown in the following equation (20) or (21):
[0074] X(s) is the frequency domain value of the sum of the plurality of exponential components, b.sub.1, b.sub.2, c.sub.0, c.sub.1 and d.sub.0 are coefficients of the polynomial fractions, and S is the complex frequency.
[0075] Since the actual values of the terminal voltage, the armature current and the rotational speed may contain noise due to the commutation of the DC machine, the estimated parameter values of the DC machine as calculated may have a large difference from the actual parameter values of the DC machine. Thus, in this embodiment, the noise filtering step S3 is able to filter the noise from the estimated values of the terminal voltage, the armature current and the rotational speed by polynomial regression. Besides, the noise filtering step S3 is able to maintain the transient characteristics of the DC machine during the filtering process of the noise, so that the estimated values of the DC machine parameter as calculated can be consistent with the actual behavior of the DC machine.
[0076] In summary, after the noise is filtered from the above equations (8) using polynomial regression, a third frequency domain function of the estimated value of the filtered armature current can be rewritten as the following equation (22):
[0077] (s) is a frequency domain function of the estimated value of the armature current in the frequency domain after the filtering of the noise. b.sub.1, b.sub.2, c.sub.0 and c.sub.1 are coefficients of the polynomial fraction, and S is the complex frequency.
[0078] In order to make the estimated values of the parameters of the DC machine close to the actual values, in this embodiment, the parameter calculating step S4 can minimize the differences between the estimated values and the actual values of the parameters of the DC machine by the following equation (23), allowing the estimated values of the parameters of the DC machine to approach the actual values.
[0079] For example, assuming that the actual values of the armature current in the frequency domain is I, then an error function between the actual value and the estimated value of the armature current is expressed as the following equation (23):
[0080] E.sub.1 is the difference between the actual value and the estimated value of the armature current in the frequency domain, S is the complex frequency, S.sub.1 is the lower limit of the complex frequency, S.sub.2 is the upper limit of the complex frequency, I(s) is the function of the actual value of the armature current in the frequency domain, and (s) is the function of the estimated value of the armature current in the frequency domain after the noise is filtered.
[0081] Based on the above equation (22), when the actual value of the armature current is equal to the estimated value of the armature current (the difference between the actual value and the estimated value is 0), since both
and ((s.sup.3+b.sub.2s.sup.2+b.sub.1s)I(s)(c.sub.1s+c)).sup.2 are zero and have the same solution, the equation (23) can be rewritten as follow:
[0082] E.sub.1 is the difference between the actual value and the estimated value of the armature current, S is the complex frequency, S.sub.1 is the lower limit of the complex frequency, S.sub.2 is the upper limit of the complex frequency, I(s) is the function of the actual value of the armature current in the frequency domain, and b.sub.1, b.sub.2, c.sub.0 and c.sub.1 are the coefficients of the polynomial fraction.
[0083] Besides, the partial derivative of each of the coefficients of the polynomial fraction in the error function is made zero, the coefficients of the polynomial fraction can be derived from the following equations (25), (26), (27) and (28):
[0084] In view of the foregoing, the above equations (25), (26), (27) and (28) can be rewritten as the following equation (29):
[0085] b.sub.1, b.sub.2, c.sub.0 and c.sub.1 are the coefficients of the polynomial fraction in the equation (22).
[0086] Based on the equations (8) and (22), b.sub.1, b.sub.2, c.sub.0 and c.sub.1 are
respectively.
[0087] In addition, according to the above equations (9), a fourth frequency domain function of the estimated value of the filtered rotational speed can be rewritten as:
[0088] (s) is the estimated value of the rotational speed in the frequency domain after the noise is filtered, b.sub.1, b.sub.2 and d.sub.0 are coefficients of the polynomial fraction, and S is the complex frequency.
[0089] For example, assume an actual value of the rotational speed in the frequency domain is W. In this case, an error function between the actual value W and an estimated value can be expressed as:
[0090] E.sub.W is the difference between the actual value and the estimated value of the rotational speed, S is the complex frequency, S.sub.1 is a lower limit of the complex frequency, and S.sub.2 is an upper limit of the complex frequency. W(s) is the actual value of the rotational speed in the frequency domain. (s) is the estimated value of the rotational speed in the frequency domain.
[0091] Based on the above, when the actual value of the armature current is equal to the estimated value of the armature current in the frequency domain (the difference between the actual value and the estimated value is 0), since both
and ((s.sup.3+b.sub.2s.sup.2+b.sub.1s)W(s)d.sub.0)).sup.2 are zero and have the same solution, the equation (30) can be introduced into equation (31) to obtain equation (32) below:
[0092] E.sub.w is the difference between the actual value and the estimated value of the rotational speed in the frequency domain, S is the complex frequency, S.sub.1 is a lower limit of the complex frequency, S.sub.2 is an upper limit of the complex frequency, W(s) is the actual value of the rotational speed in the frequency domain, and b.sub.1, b.sub.2 and d.sub.0 are coefficients of the polynomial fraction.
[0093] Based on equations (22) and (30), since the armature current and the rotational speed are the signals from the transient model, their characteristic roots would be the same. Therefore, equations (30) and (22) have the same denominators whose efficiencies are already obtained from equation (29). As a result, the partial derivatives of the coefficients of the polynomial fraction in the error function are set as zero. The coefficients of the polynomial fraction are calculated as follows:
[0094] The equation (33) can be derived as equation (34) below:
[0095] The coefficient d.sub.0 can be derived from equations (9) and (30) as
[0096] Based on the above, since the coefficients c.sub.0 and c.sub.1 of the polynomial fraction are
respectively, it can be derived that L.sub.a={circumflex over (v)}/c.sub.1 and
In addition, the coefficients b.sub.1 and b.sub.2 of the polynomial fraction are
respectively. Therefore, it can be derived that
Furthermore, since d.sub.0 is
it can be derived that
[0097] Based on the above, the parameters of the DC machine can be expressed as equations (35)-(39).
[0098] The parameter outputting step S5 may output the estimated values of the parameters of the DC machine by the computer system. In this embodiment, the estimated values of the DC machine include the armature resistance R.sub.a, the armature inductance L.sub.a, the back electromotive force constant (K.sub.E), the moment of inertia (J) and the friction coefficient (B).
[0099] In order to verify the processing capability against the noise of the present invention, and to evaluate the accuracy and reliability under the practical applications, a DC machine (e.g., the one with the power of 150 W) is provided as an example to verify and evaluate the present invention.
[0100] The following Table 1 is the estimated results of the parameters of the DC machine.
TABLE-US-00001 TABLE 1 Parameters Values R.sub.a () 21.99 L.sub.a (mH) 4.81 K 0.124 J (g .Math. m.sup.2) 7.4 B (g .Math. m/rps) 3.4
[0101]
[0102] In addition, by using a programming language (such as C++, Java, etc.), the method for estimating the parameters of the DC machine by the Laplace transform according to the above embodiment of the invention can be implemented as a computer program (such as a DC machine parameter estimation program for determining whether the estimated values of the DC machine parameter are consistent with the actual behavior of the DC machine). The coding method of the computer program can be understood by a person skilled in the art. The program code can be utilized to produce a program product with a built-in computer program. Based on this, when the computer system loads and executes the computer program, the method according to the above embodiment of the invention can be performed.
[0103] In summary, through expressing the discrete values of the terminal voltage, the armature current and the rotational speed by polynomial regression, the method for estimating the parameters of the DC machine by the Laplace transform according to an embodiment of the invention is able to maintain the transient characteristics of the DC machine during the filtering process of the noise. Moreover, the method according to the embodiment of the invention may transform the parameters of the DC machine from the time domain to the frequency domain, effectively reducing the operational complexity. Advantageously, the accuracy and operational efficiency in estimating the parameters of the DC machine can be improved.
[0104] Although the invention has been described in detail with reference to its presently preferable embodiments, it will be understood by one of ordinary skill in the art that various modifications can be made without departing from the spirit and the scope of the invention, as set forth in the appended claims.