Background of the Invention
1. Field of the Invention
The present invention relates to a method and circuit arrangement for simulating the machine flux of a rotating-field machine from the terminal voltages and conductor currents of at least two phases of the stator of the rotating-field machine and more particularly, to a method and circuit wherein each component of the machine flux is formed by integrating the stator terminal voltage of the same phase which is reduced by the ohmic voltage drop in that phase of the stator winding of the rotating-field machine, and the integrated inductive voltage drop is subtracted from the integral so obtained. The term "rotating-field machine" includes synchronous and asynchronous machines which can be operated as motors or generators.
2. Description of the Prior Art
A method of the kind above mentioned is known from U.S. Pat. No. 4,335,343 corresponding to German Auslegeschrift No. 2833593. The disclosure of U.S. Pat. No. 4,335,343 is hereby incorporated by reference. For regulating rotating-field machines, the actual value of the amplitude and phase of the magnetic machine flux is frequently required since the torque generated by the rotating-field machine, which is equal to the product of the machine flux and the current component perpendicular to the flux, can thereby be determined. The direct determination of the machine flux, for instance, by magnetic measuring pickups or by a measuring winding is not practical because such measurement pickups or windings are not provided in commercially available machines. According to U.S. Pat. No. 4,335,343, mentioned above, the machine flux is therefore determined by means of a computing circuit from the stator terminal voltages and conductor currents of two of the three phases of the rotating-field machine. This computing circuit is called the voltage model of the rotating-field machine. The determination of a system for simulating the machine flux begins with the fact that the voltage u.sub.i induced in each machine leg is proportional to the change of the flux and to the number of turns w in that leg:
The flux can then be calculated by integrating the voltage induced in that leg of the rotating-field machine. The terminal voltage of the machine includes, however, besides the induced voltage u.sub.i, also the ohmic and inductive voltage drops due to the copper resistance and the leakage inductance of the stator. Corrections to account for these voltage drops are made by simulating them electronically and subtracting them from the terminal voltage. Such computing circuits are realized at present exclusively by analog means. In conjunction with digital computers, however, a digital realization of the computing circuit would be advantageous because signal exchange is simplified by digital representations and the calculation of the flux can be performed by the digital computer itself, thereby saving separate analog components.
So far, digital realizations of the voltage model have failed due to the difficulties in the analog to digital (A/D) conversion of the terminal voltages. The excessively large errors that occur during sampling and A/D conversion of the terminal voltages at low machine speeds prevent simple conversion techniques. This is caused on the one hand by the fact that at low machine speeds, the terminal voltages become very small, so that the steps of the A/D converter lead to large sampling errors. Furthermore, the terminal voltages contain steep commutation peaks which are very large compared to the basic component of the terminal voltages, especially at low speeds. These commutations peaks, however, occur at random, and may or may not be present during any particular sampling instant of the A/D converter. In the subsequent integration, too large an amount is integrated if the sampling instant coincided with a commutation peak, or too low an amount if the commutation peak was not present. The integrators contained in the computing circuit integrate every error in the A/D conversion, so that incorrect values are produced very rapidly. It is therefore an object of the present invention to develop a method for simulating the machine flux of a rotating-field machine in such a manner that it can be carried out by digital means without sampling error.
Summary of the Invention
According to the present invention, this problem is solved by the provision that the digitized values of the stator terminal voltages and conductor currents are averaged within the sampling period of a corresponding digital evaluation system, and that the integration is carried out by adding up the averaged values and by multiplication with the sampling period.
According to the method of the invention, because the digitized averages instead of the instantaneous values of the terminal voltages and conductor currents which have inherent errors for the reasons above mentioned are used, the problem of integrating errors in the digital sampling is eliminated. This occurs because the forming of averages already includes the integration of the measured values, thereby in a sense displacing integration ahead of the analog to digital conversion. The problem of sampling the commutation peaks as well as the difficulty of processing small terminal voltages is thus eliminated. In order to integrate the digitized values, the averages merely need to be summed up.
The summing can be realized in a simple manner with a digital cumulative summation stage which sums the present average value with the cumulative sum of the averages at prior sampling times. Such a stage therefore includes a means for storing the cumulative sum for a time equal to the sampling period of the digital evaluation system. At the input to the summation stage are the sum of the output voltage of the summation stage via a feedback loop and the respective digitized average of the terminal voltage reduced by the ohmic voltage drop of the rotating-field machine.
The digital summation stage preferably includes a digital memory, the setting input of which is addressed by a transfer clock signal delayed relative to the main clock of the digital evaluation system. The summation stage can thereby be realized in a simple manner by a commercially available digital memory such as a shift register composed of D type flip-flops.
In order to form averaged digitized values of the terminal voltages and conductor currents, the latter can be fed via an integrating A/D converter to a first digital memory, the output of which is connected to the first input of a digital subtraction stage and also to the input of the second digital memory. The output of the second digital memory is connected to the second input of the digital subtraction stage. The output of the digital subtraction stage is connected to the input of a third digital memory, at the output of which a digitized signal proportional to the desired average value is present. Within each clock period of the digital evaluation system, first, the first memory, then the third memory and finally, the second memory receives a setting pulse. The formation of the averages of the terminal voltages and conductor currents can thereby be carried out with simple commercially available components.
According to the invention, the integrating A/D converter preferably comprises a voltage to frequency converter followed by a pulse counter. The voltage to frequency converter can be advantageously preceded by a summer, have at its first input the analog quantity to be converted and at its second input, a shifting voltage which is larger than the maximum negative value for the terminal voltage and which is chosen so that it causes within a sampling period of the digital evaluation system a full count-down of the following counter. The counter capacity of the counter is thereby counted through exactly once due to the shifting voltage. By this provision, the voltage to frequency converter need only process positive quantities.
These and other novel features and advantages of the invention will described in greater detail in the following detailed description.
Brief Description of the Drawings
FIG. 1 is a block diagram of a known analog system for simulating the flux components;
FIG. 2 is a block diagram of the system according to the invention for simulating the flux components;
FIG. 3 is a timing diagram of certain of the signals present in FIG. 2;
FIG. 4 is a more detailed block diagram of the summing stages of FIG. 2;
FIG. 5 is a more detailed block diagram of the average forming stages of FIG. 2; and
FIG. 6 is a block diagram of the A/D converter of FIG. 5 which may be employed to practice the invention.
Detailed Description
The mathematical foundation for the method will first be explained. As already shown in the aforementioned U.S. Pat. No. 4,335,343, every component of the magnetic flux in the rotor is obtained by subtracting the ohmic voltage drop from the corresponding component of the stator terminal voltage, by integrating the difference and then subtracting from this value the integrated inductive voltage drop. This relation is indicated by the following equations: ##EQU1## where .phi..sub.R,S is the component of the rotor flux in the direction of the phase R or S of the stator of the rotating-field machine in the 120.degree. three phase R, S, T rotating-field system; i.sub.R,S is the component of the stator current in the respective phase R or S of the stator; and R.sub.1 is the primary copper resistance.
b.sub.1 and b.sub.2 are chosen as abbreviations for the following quantities which can be derived from the machine equation of the rotating-field machine: ##EQU2## where 1.sigma..sub.2 is the primary leakage inductance; 1.sigma..sub.2 is the secondary leakage inductance; and 1 is the main inductance.
Formulas 1 to 4 are the basis for the conventional analog voltage model, such as is known, for instance, from the aforementioned U.S. Pat. No. 4,335,343. FIG. 1 shows a block diagram of this known analog voltage model. The terminal voltage U.sub.R and U.sub.S of the R and S phases of the machine stator are fed via coefficient multipliers 7 and 8 to inputs of analog subtraction stages 9 and 10 respectively. The currents i.sub.R and i.sub.S in the the phases R and S of the stator are fed via coefficient multipliers 5 and 6 to the respective second inputs of the subtraction stages 9 and 10. According to equations 1 and 2, the coefficient multipliers 7 and 8 multiply by the factor b.sub.2 and the coefficient multipliers 5 and 6 by the factors b.sub.2 R.sub.1. The quantities b.sub.2 U.sub.R -b.sub.2 R.sub.1 i.sub.R and b.sub.2 U.sub.S -b.sub.2 R.sub.1 i.sub.s are therefore formed by the subtraction stages 9 and 10, respectively. The output signals of the subtraction stages 9 and 10 are fed to integrators 19 and 20, respectively, which integrate the mentioned differences according to equations 1 and 2. The respective outputs of the integrators 19 and 20 are each connected to the inputs of respective second analog subtraction stages 17 and 18. The currents i.sub.R and i.sub.S are coupled via coefficient multipliers 15 and 16 to the second inputs of the subtraction stages 17 and 18. The coefficient multipliers 15 and 16 are each set to the value b.sub.1, so that the values i.sub.R b.sub.1 and i.sub.S b.sub.1 are subtracted from the respective integrals according to equations 1 and 2. Equations 1 and 2 are thus converted into an analog computing circuit. As already explained, however, the method according to the block diagram of FIG. 1 is not suitable for digital realization because the terminal voltages U.sub.R and U.sub.S would carry large errors after the required A/D conversion, which would be integrated by the integrators 19 and 20. For this reason, a method for simulating the machine flux is needed which works with already integrated values. According to the invention, in order to accomplish this objective, the integrals in equations 1 and 2 are first replaced by the sum of the averages. ##EQU3## Here, v' is the running number of the sampling period T.
Equations 5 and 6 still mathematically describe the exact voltage model. The instantaneous values i.sub.R and i.sub.S can be replaced according to the invention, by the values of i.sub.R and i.sub.S averaged over a clock period of an associated digital evaluation system. Since the clock periods are generally very short, the error caused thereby is small. For abbreviation, the average values of the leg currents i.sub.R and i.sub.S and the terminal voltages U.sub.R and U.sub.S respectively, are designated by a bar: ##EQU4##
FIG. 2 shows a block diagram by which equations 7 and 8 are realized. The conductor currents i.sub.R and i.sub.S as well as the terminal voltages U.sub.R and U.sub.S are fed to respective mean value formers 1 to 4, yet to be explained in detail, which each form therefrom the digitized averages i.sub.R and i.sub.S and U.sub.R and U.sub.S. The digitized average currents i.sub.R and i.sub.S are fed via coefficient multipliers 5a and 6a to the inputs Z2 of subtraction stages 9a and 10a, respectively, which contrary to the subtraction stages 9 and 10 in the analog block diagram, operate digitally. The digitized averages of the terminal voltages U.sub.R and U.sub.S, respectively, are fed directly to the inputs Z1 of the subtraction stages 9a and 10a in the illustrated embodiment. The integrators 19 and 20 in the analog voltage model of FIG. 1 are replaced by the summing circuits comprising summer 11 and cumulative storage stage 13, and the summer 12 and cumulative storage stage 14, respectively. Cumulative storage stages 13 and 14 provide means for storing the cumulative value of the averages for the previous clock period during the present clock period, and might comprise, for example, shift registers comprising D type flip-flops which transfer into memory the data present at the output of summer 11 or 12 once the sum has been computed. The multiplication required according to equations 7 and 8 by the factor b.sub.2 T is accomplished with coefficient multipliers 7a and 8a respectively connected between the subtraction circuits 9a and 10a and the summers 11 and 12. Since the coefficient multipliers 7a and 8a already contain the factor b.sub.2, the coefficient multipliers 5a and 6a are set to the factor R.sub.1, contrary to the analog voltage model of FIG. 1. The digital coefficient multipliers 15a and 16a and the digital subtraction circuits 17a and 18a again correspond to the analog coefficient multipliers 15 and 16 and the subtraction circuits 17 and 18.
In the following, the operation of the cumulative summation circuits comprising summers 11 and 12 and cumulative storage stages 13 and 14 are explained with the aid of the timing diagram of FIG. 3. It is the purpose of these circuits, as already explained, to sum up the differences, present at the outputs of the subtraction circuits 9 and 10, between the scaled conductor currents i.sub.R and i.sub.S and the terminal voltages U.sub.R and U.sub.S, averaged over one clock period. In FIG. 3, the signal designated U.sub.9 is present at the output of the subtraction stage 9 of FIG. 2. It is assumed that the output signal of cumulative storage stage 13, designated U.sub.13, is initially 0. The output signal of the summer, 11, designated U.sub.11, therefore agrees at first with the signal U.sub.9. After one clock period T.sub.t of the associated digital evaluation system, the input signal to the storage stage 13 is transferred to the output and is returned via feedback loop 20 to the input of summer 11 which forms the new signal U.sub.11. Thus, the signal U.sub.9 present during the second clock period is added, after the end of the time T.sub.t, to the signal U.sub.9 present during the first clock period. After a further time T.sub.t, the new cumulative sum U.sub.11 again appears at the output of the storage stage 13 and is fed back again to the summer 11. Thus, there occurs in the third clock period a further summation of the signal U.sub.9 with the value of the signal U.sub.13 present at the output of the storage stage 13. When the signal U.sub.9 goes back to zero, the output signal of the storage stage 13 retains its value. It has therefore been shown that the circuits comprising the summing circuits 11 and 12 and the storage stages 13 and 14 perform the desired summation of the digitized values, averaged within a sampling period, of the terminal voltages U.sub.R and U.sub.S and the conductor currents i.sub.R and i.sub.S.
The storage stages 13 and 14 can be realized, as shown in FIG. 4, for instance, with a digital memory 13a, the setting input S of which is addressed by a clock generator TG of an associated digital evaluation system via a delay stage V1. After each pulse of the clock generator TG occurs, the signal which is present for a short time at the input of the memory 13 is transferred into the memory 13. A delay of the transfer relative to the clock signal of the clock generator TG is necessary so that the formation of the averages of the input signals taking place in the same clock period is completed by the time the transfer command occurs.
FIG. 5 illustrates a realization of each of the average formers 1 to 4. In FIG. 5, an input signal, for instance, the leg current i.sub.R, is fed to the analog input of the integrating A/D converter 1a. The integrated digitized value of the input signal i.sub.R is therefore present at the digital output of the A/D converter 1a. In order to form therefrom values of the input signal i.sub.R averaged over a clock period, the respective difference of the integrals of the input signal i.sub.R for two successive clock pulses must be formed. For this purpose, the digital output of the integrating A/D converter 1a, is coupled to the memory inputs of memory 1b. For each clock pulse of the clock generator TG which is connected to the setting input of the memory 1b, the signal present is transferred into the memory 1b. The output of memory 1b is connected to the input of the memory 1c as well as to one input of the subtraction circuit 1d. The clock generator TG is coupled to the setting input of the memory 1c via two series connected delay stages having delay times V1 and V2. Because the memory 1c stores the contents of the memory 1b only at the end of the delay time V1+V2, it still contains the old input value when a clock pulse occurs, while the memory 1b stores the new input value. At the output of the subtraction stage 1d is therefore present the difference between the input value in the present clock period and the input value in the preceding clock period. The output of the subtraction circuited is connected to the input of a further memory 1e, the setting input of which is connected to the output of the delay stage V1. The memory 1e thereby stores the desired difference of the integrated values at the end of the delay time V1. The delay stage V1 is necessary to ensure setting the memory 1b for the new input value before the difference is stored in the memory 1e. After the desired difference is stored in the memory 1e, the memory 1c is set to a new value at the end of the delay time of the delay stage V2. The output signal of memory 1e is then scaled by the factor 1/T by coefficient multiplier 1f to form the average. The desired digitized value of the input signal, averaged over one clock period, is thus present at the output.
Integrating A/D converters in the form of integrated circuits are commercially available, however, which output a value of the input voltage averaged over a sampling period. An integrated circuit can therefore be used for every average former 1 to 4.
FIG. 6 shows an example of the integrating A/D converter 1a of FIG. 5. The signal to be converted, for instance, the conductor current i.sub.R, is fed to the input of a voltage to frequency converter 1g, which is followed by a pulse counter 1b. The counter 1h sums up the pulses of the voltage to frequency converter 1g, i.e., the digital integral of the input variable i.sub.R is formed. This type of integrating A/D converter also assures that the commutation peaks are included in the formation of the integral. In addition, the voltage to frequency converter 1g does not have incremental steps like a conventional A/D converter, which could have an adverse effect on the accuracy of the conversion in the case of small input values.
The voltage to frequency converter 1g must be able to process positive as well as negative input values. A voltage to frequency converter capable of processing only positive values is sufficient, however, if the input variable is coupled via a summer 1i, as shown in FIG. 6. At the second input of the latter a signal is present which is larger in magnitude than the largest negative value of the input signal. Therefore, a positive signal is always present at the voltage input of the voltage to frequency converter 1g. The value present at the second input of the summer 1i is furthermore chosen so that it causes the counter 1h to count down exactly one time within a sampling period of the digital evaluation system, i.e., the counter runs through its counter capacity exactly one time. Thus, the signal added to the input signal causes no change of the counter contents in the absence of an input signal because the counter counts down exactly through its full counter capacity.
The method according to the invention can also be realized according to the block diagram of FIG. 2 in part by software. The only hardware that is required are integrating A/D converters, for instance, as shown in FIG. 6. The method described can thereby be used to particular advantage for computer controlled regulating systems, the hardware expense being reduced to a minimum.
In the foregoing specification, the invention has been described with reference to a specific exemplary embodiment thereof. It will, however, be evident that various modifications and changes may be made thereunto without departure from the broader spirit and scope of the invention as set forth in the appended claims. The specification and drawings are, accordingly, to be regarded in an illustrative rather than in a restrictive sense.