Field of the Invention
The present invention relates to a Mark-Space amplitude modulator for measuring reactive power consumption or reactive energy consumption.
Description of the Prior Art
A Mark-Space amplitude modulator of this kind is known from the German Offenlegungsschrift OS No. 32 21 448, FIG. 13.
Summary of the Invention
It is an object of the present invention to create a Mark-Space amplitude modulator for measuring reactive power consumption or reactive energy consumption whose 90.degree. phase shift circuit operates properly even when input valves to be measured are subject to large and unknown level variations or interferences or both, such as noise, mains harmonics or switching spikes.
This object is attained in an apparatus of the aforedescribed kind for determining the reactive energy of a circuit, by providing a mark-space modulator, a pulse amplitude modulator, and a delay circuit connected between the mark-space modulator and the pulse amplitude modulator. A regulator is interconnected between the mark-space modulator and the delay circuit, so as to maintain a phase angle, which normally occurs at an operating frequency of the delay circuit, as close as possible to 90 degrees between its input and its output, even when the signal input is subject to any level variations or to any interference.
Description of the Drawings
A representative embodiment of the invention is shown in the drawings and is described in detail hereinafter, and wherein
FIG. 1 is a block diagram of a Mark-Space amplitude modulator,
FIG. 2 is a block diagram of a first version of a regulator,
FIG. 3 is a block diagram of a time-voltage converter,
FIG. 4 is a logic diagram of an exclusive or logic gate array,
FIG. 5 is a block diagram of an accumulator,
FIG. 6 is a block diagram of a second version of a regulator,
FIG. 7 is a circuit diagram of a pulse amplitude modulator, and
FIG. 8 is a block diagram of a delay circuit based upon a random access memory.
The same reference numbers designate the same components in all Figures of the drawings.
Description of the Preferred Embodiments
The Mark-Space amplitude modulator according to FIG. 1 includes:
a mark-space modulator 1,
a delay circuit 2,
a first pulse amplitude modulator 3,
a regulator 4,
a first input signal terminal 5,
a bipolar second input signal terminal 6,
an output signal terminal 7, and
an input terminal for a clock signal 8.
The Mark-Space amplitude modulator has two terminals hereinafter designated as an input terminal and as an output terminal.
In FIG. 1, connections are established:
between the first input signal terminal 5 of the Mark-Space amplitude modulator and the input terminal of the mark-space modulator 1,
between the output terminal of the mark-space modulator 1 and a data input terminal 9 of delay circuit 2,
between the output terminal of the delay circuit 2 and a pulse input terminal 10 of a first pulse amplitude modulator 3, as well as a first signal input terminal 11 of a regulating means 4,
between the output terminal 12 of the regulating means, or regulator 4, and a clock input terminal 13 of the delay circuit 2,
between the bipolar second input signal terminal 6 of the Mark-Space amplitude modulator and a bipolar modulating input terminal 14 of the first pulse amplitude modulator 3,
between the output terminal of the pulse amplitude modulator 3 and an output signal terminal 7 of the Mark-Space amplitude modulator,
between a clock signal terminal 8 and a clock input terminal 15 of the regulator 4, and
by means of a wire connection 16, between a second input signal terminal 17 of the regulator 4 and one of the two terminals of the mark-space modulator 1.
The wire connection 16 schematically indicates that the second signal terminal 17 of the regulator 4 is optionally connected to either one or the other of the two terminals of the mark-space modulator 1. The wire connection need not in reality be present, since the choice of connections is unambiguously determined by the chosen design of the regulator. Once the design is given, the choice of connections is determined and a hard-wired connection can be made between this terminal and the second input signal terminal 17 of regulator 4.
The regulator 4 shown in FIG. 2 includes:
a time-voltage converter 18,
an exclusive or gate array 19,
an accumulator 20, and
a rate multiplier 21.
In FIG. 2 connections are established:
between the first input signal terminal 11 of the regulator 4 and a common unipolar input terminal 22 of the exclusive or gate array 19:
between the second input signal terminal 17 of the regulator 4 and the input signal terminal of the time-voltage converter 18;
between the clock input terminal 15 of the regulator 4 and the clock input terminals 23 of the time-voltage converter 18, 24 of the accumulator 20 and 25 of the rate multiplier 21;
between the output terminal of the rate multiplier 21 and the output terminal 12 of the regulator 4;
and additionally bus connections are established:
between the bus output terminal of the time-voltage converter 18 and the bus input terminal 26 of the exclusive or gate array 19;
between the bus output terminal of the exclusive or gate array 19 and the bus input terminal 27 of the accumulator 20; and
between the bus output terminal of the accumulator 20 and the parallel-in bus input terminal of the rate multiplier 21.
If necessary, a further delay circuit not shown in the drawings may be inserted in the regulator 4 between the first input signal terminal 11 and the common input terminal 22 of the exclusive or gate array 19 for compensation of any additional delay times generated in the time-voltage converter 18.
The time-voltage converter 18 shown in FIG. 3 includes:
a synchronizing D-flip flop 28,
a binary counter 29, and
an N-bit intermediate storage register 30.
In FIG. 3 connections are established:
between the input signal terminal of the time-voltage converter 18 and the D-input terminal of the synchronizing D-flip flop 28, as well as the forward/backward counting input terminal 31 of the binary counter 29;
between the clock input terminal 23 of the time-voltage converter 18 and the clock input terminals
32 of the synchronizing D-flip flop 28 and
33 of the binary counter 29;
between the Q-output terminal of the synchronizing D-flip flop 28 and the reset input terminal R of the binary counter 29, as well as the clock input terminal 34 of the intermediate storage register 30.
Additionally, bus connections are established:
between the bus output terminal of the binary counter 29 and the bus input terminal of the intermediate storage register 30; and
between the bus output terminal of the storage register 30 and the bus output terminal of the time-voltage converter 18.
The exclusive or gate array 19 shown in FIG. 4 includes N two-input exclusive or gates 35. The first input terminal of each exclusive or gate 35 is connected to a common unipolar input terminal 22 of array 19. The N second input terminals of the exclusive or gates 35 form in combination an N-bit bus input terminal which is connected to the bus input terminal 26 of the array 19. In a like manner, the N output terminals of exclusive or gates 35 form an N-bit bus output terminal connected to the N-bit bus output terminal of the array 19.
Accumulator 20 shown in FIG. 5 includes:
an adder, 36, and
an N-bit accumulator storage register 37.
In FIG. 5, an N-bit bus connection is established:
between the bus input terminal 27 of the accumulator 20 and a first N-bit bus input terminal of the adder 37;
between the bus output terminal of the adder 36 and the bus input terminal of the accumulator storage register 37;
between the bus output terminal of the accumulator storage register 37 and a second N-bit bus input terminal of the adder 36 as well as the bus output terminal of the accumulator 20;
and a unipolar connection is established:
between the clock input terminal 24 of the accumulator 20 and the clock input terminal of the accumulator storage register 37.
The regulator 4 shown in FIG. 6 includes:
a filter 38,
a second pulse amplitude modulator 39,
a frequency converter 40,
a forward/backward binary counter 41,
an exclusive or gate 42, and
a rate multiplier 21.
In FIG. 6, connections are established:
between the first signal input terminal 11 of the regulator 4, and a first input terminal of the exclusive or gate 42;
between the output terminal of the exclusive or gate 42 and the pulse input terminal 47 of the second pulse amplitude modulator 39;
between the second signal input terminal 17 of the regulator 4 and the input terminal of the filter 38;
between a bipolar output terminal of the filter 38 and a bipolar modulting input terminal 46 of the second pulse amplitude modulator 39;
between the output terminal of the second pulse amplitude modulator 39 and the input terminal of the frequency converter 40;
between the polarity signal output terminal P' of the frequency converter 40 and a second input terminal of the exclusive or gate 42;
between a direction signal output terminal E of the frequency converter 40 and a forward/backward input counting terminal 43 of the forward/backward binary counter 41;
between a measurement signal output terminal F of the frequency converter 40 and a clock input terminal 44 of the forward/backward binary counter 41;
between a clock input terminal 15 of the regulator 4 and the clock input terminals of the forward/backward binary counter 41 and of the rate multiplier 21;
between the output terminal of the rate multiplier 21 and the output terminal 12 of the regulator 4; and:
a bus connection is also established between the parallel-out bus output terminal of the forward/backward binary counter 41 and the parallel-in bus input terminal of the rate multiplier 21.
The pulse amplitude modulator 3 or 39 shown in FIG. 7 includes a double-pole double-throw switch 48.
In FIG. 7, a connection is established between the pulse input terminal 10 or 47 of the pulse amplitude modulator 3 or 39 and a control input terminal of the switch 48.
A first switch-throw contact 48a of the switch 48 switches a first pole of the bipolar modulating input terminal 14 or 46 either to the unipolar output terminal of the pulse amplitude modulator 3 or 39, or to neutral ground, while its second switch throw-contact 48b switches a second pole of the modulating input terminal 14 or 46 either to neutral ground or to a unipolar output terminal of the pulse amplitude modulator 3 or 39.
The delay circuit 2 shown in FIG. 8 includes:
a single-pole switch 49,
a random access memory 50,
a binary address counter 51, and
a D-flip flop 52.
In FIG. 8 connections are established:
between a clock input terminal 13 of the delay circuit 2 and the clock input terminal of binary address counter 51, as well as the control input terminal of single-pole switch 49 and read/write input terminal 53 of random access memory 50;
from the data-in/data-out terminal 54 of the random access memory 50, on the one hand via the normally closed and openable contact of the switch 49 to the data-in input terminal 9 of the delay circuit 2 and on the other hand via the normally open and closable contact of the switch 49 to the output terminal of the delay circuit 2; and:
a bus connection is also established between the parallel-out bus output terminal of the address counter 51 and the address bus input terminal of the random access memory 50.
Operation of the Invention
The use and design of a Mark-Space amplitude modulator for the multiplication of two values such as, for example, the current and potential of electrical supply mains, to determine power or energy consumption is known, for example, from U.S. Pat. No. 3,602,843.
It is also known that for determining the reactive power consumption or reactive energy consumption, one of the two values must be phase-shifted 90.degree. before multiplication in order to simulate the equation: ##EQU1## where the second time-dependent term sin (2.omega.t+.phi.) must be eliminated, for example, by integration, and where:
u=U.multidot.cos .omega.t is the instantaneous value of an AC voltage,
i=I.multidot.cos (.omega.t+.phi.) is the instantaneous value of an associated AC current phase-shifted by a phase angle .phi.,
i(90.degree.)=I.multidot.cos (.omega.t+.phi.+90.degree.) is the instantaneous value of the AC current phase-shifted by a supplementary 90.degree.,
k=(-1/2) is a constant, and
Q=U.multidot.I sin .phi. is the reactive power.
It is known from the state of the art described above that the 90.degree. phase shift need not necessarily take place before the multiplication, but may be effected by an equivalent time-delay shift within the Mark-Space amplitude modulator by means of a delay circuit 2 interposed between the mark-space modulator 1 and a subsequent pulse amplitude modulator 3.
In FIG. 1, the delay circuit 2 and the regulator 4 form a feedback regulation circuit so designed that in stable operation cos .alpha.=0, i.e. .alpha.=90.degree., where .alpha. is the phase angle between the output signal u'(90.degree.) and the input signal u' of the delay circuit 2.
Both variations of the regulator 4 shown in FIGS. 2 and 6 made use of the following mathematical laws: ##EQU2## where the second time-dependent term cos (2 .omega.t+.alpha.) must again be eliminated by integration, for example by means of an accumulator 20 (FIG. 2) or by means of a forward/backward binary counter 41 (FIG. 6), and where:
u'=U' cos .omega.t is the instantaneous value of the input signal of the delay circuit 2, and
u'(.alpha.)=U' cos (.omega.t+.alpha.) is the instantaneous value of the output signal of the delay circuit 2.
In the first version, the regulator 4 is designed according to FIG. 2 and the output signal of the mark-space modulator 1, which is also the input signal u' of the delay circuit 2, arrives at the second signal input terminal 17 of the regulator 4 in FIG. 1 by means of the wire connection 16. The output signal u'(.alpha.) is fed to first signal input terminal 11 of regulator 4.
u' constitutes a Mark-Space modulated signal and is reconverted into an amplitude modulated signal in regulator 4 (FIG. 2) by means of the time-voltage converter 18. The instantaneous values of the amplitude appear sequentially as N-bit digital balues at bus input terminal 26 of the exclusive or gate array 19, which operates as a multiplier yielding the mathematical product u'.multidot.u'(.alpha.). Since u'(.alpha.) is a digital mark-Space modulated signal, consisting only of the binary values "0" and "1", in order to perform the multiplication operation, it suffices to multiply each bit of the N-bit value at the bus input terminal 26 by the simultaneously appearing binary value of u'(.alpha.) by means of an exclusive or gate. In other words, the exclusive or gate array 19 consists of N exclusive or gates 35 interconnected according to the logic diagram of FIG. 4.
The N-bit digital result of the multiplication is integrated in the accumulator 20 to eliminate the cos (2.omega.t+.alpha.) term, as already mentioned above and the digital value of (.intg.U'.sup.2 cos .alpha.dt) thus obtained is loaded into the rate multiplier 21 as the factor (m/n). The accumulator 20 consists principally of an accumulator storage register 37 in which the old multiplication result is stored and to which the new multiplication result is added, namely, accumulated by means of an adder 36.
In the second version of the invention, the regulator 4 is designed according to FIG. 6 and the input signal of the Mark-Space modulator 1 now arrives at second input signal terminal 17 of the regulator 4 (FIG. 1) by means of a wire connection 16, as well as via a filter 38 (FIG. 6) in bipolar form to a modulating input 46 of a second pulse amplitude modulator 39. The design of both pulse amplitude modulators 3 and 39 is identical, and is known per se. It is shown again in FIG. 7 for sake of completeness only. It consists of a double-pole switch 48 which operates at the clocking rate of the binary signal appearing at the pulse input 10 or 47, so that the bipolar signal at the modulating input 14 or 46 appears at the output terminal of the pulse amplitude modulator 3 or 39 once inverted, and once non-inverted at the same clocking rate. This switch therefore constitutes a double-throw switch and operates as a multiplier, and wherein the product of the multiplication appears, however, on its output terminal only in the form of an area under square-wave pulses, the values of the amplitudes of which are equal to the values of the input signal of the mark-space modulator 1 and the pulse-gap/pulse duration values of which are those of u'(.alpha.). Since u' is only the Mark-Space modulated signal of the input signal of mark-space modulator 1, the input signal is merely another representation of u'. It is amplitude modulated instead of Mark-Space modulated. The area enclosed by the output signal of the pulse amplitude modulator 39 is accordingly proportional to the product [u'.multidot.u'(.alpha.)] and is converted by the frequency converter 40 into a square wave measurement signal whose frequency is, in turn, proportional to the product [u'.multidot.u'(.alpha.)] and appears on a a measurement signal output terminal F of the frequency converter 40. If the value of the product is positive, a binary "1" appears on the direction signal output terminal E of the frequency converter 40 instructing forward/backward binary counter 41 to count up. If the value of the product is negative, a binary "0" appears on the direction signal output terminal E instructing forward/backward counter 41 to count down. The forward/backward counter 41 measures the frequency of the measurement signal cumulatively by counting the pulses. It operates thus as an accumulator and eliminates consequently the time-dependent term cos (2.omega.t+.alpha.) by integration. The count, which corresponds to the product .intg.U'.sup.2 cos .alpha.dt, is loaded into rate multiplier 21 as the factor (m/n).
Frequency converter 40 is described in U.S. Pat. No. 4,124,821 and the current designations E, F and P' are taken from FIGS. 1 and 5 thereof.
In both versions the clock signal 8 appearing on the clock input terminal 15 of the regulator 4 (FIG. 1) is a square-wave signal of frequency f. The frequency of the output signal of rate multiplier 21 is then f'=(m/n)f. For the case m=1, a programmable divider, for example, MC 14018 B as manufactured by Motorola, may be used in place of the rate multiplier 21. In this case the frequency of the output signal is (f/n).
The output signal of rate multiplier 21, or of the frequency divider, forms the clock signal for delay circuit 2. The delay circuit 2 may, for instance, be a digital shift register such as MC 14006 B. It may also be made up of a random access memory 50 according to FIG. 8.
If the delay circuit 2 includes L memory cells, the phase delay between u'(.alpha.) and u' is (L/f')=(L.multidot.n/m.multidot.f), where L is normally a constant. L can, however, be made variable by reading the output signal u'(.alpha. not at the shift register's serial output terminal, but at a terminal of its parallel-out terminal set which may be selected at will by an array of selection switches not shown.
In the feedback circuits 2;4, the value of the .intg.U'.sup.2 cos .alpha.dt and therefore also the ratio m:n varies until the time delay (L.multidot.n/m.multidot.f) of the delay circuit 2 in stable operation reaches a value corresponding to cos.alpha.=0, namely .alpha.=90.degree..
In this case the input signal of the first pulse amplitude modulator 3 is phase-shifted 90.degree. with respect to the output signal of the Mark-Space amplitude modulator and the value k.multidot.U.multidot.I.multidot.sin.phi.=kQ, neglecting the term sin(2.omega.t+.phi.) of Equation 1, appears on its output terminal.
The time-voltage converter 18 according to FIG. 3 operates thus: the rising flanks of its input signal are brought into synchronizarion by means of the clock signal 8 appearing on clock input terminal 23 (cf. FIG. 1) and by means of the synchronizing D-flip flop 28 (FIG. 3). Each synchronized rising flank of the input signal resets the binary counter 29 to zero through its reset input terminal R. From this moment on, if the input signal has a binary value of "1", the binary counter 29 counts the pulses of the clock signal 8 forwardly. If the input signal has a binary value of "0", the binary counter 29 counts backwardly instead of forwardly. The difference of these two counts is stored in the intermediate storage register 30 when the next synchronized flank of the input signal rises, and simultaneously the binary counter 29 is reset to zero in preparation for the next counting operation. The time-voltage converter 18 therefore suppresses the Mark-Space modulation by re-converting the Mark-Space values back into amplitude values.
The delay circuit 2 shown in FIG. 8 operates as a shift register as mentioned above. In a first cycle, the write cycle, the binary values of Mark-Space modulated output signal u' of the mark-space modulator 1 are written into the random access memory 50 through the data input terminal 9 by means of the clock signal with a clock frequency
The clock pulses of this clock signal are counted by the binary counter 51 and the binary count value forms the addresses successively, increasing in time of random access memory 50. Thereby a binary "0" or "1" is written into each cell of the random access memory 30, representing the instantaneous value of the scanned Mark-Space modulation signal u'. In a second cycle of operation, the read cycle, the positive-going flank of the clock signal switches single-pole switch 49 to connect the data in-out terminal 54 with the output of delay circuit 2. At the same time, the random access memory 50 is switched by means of its read/write input terminal 53 to the read mode. The stored binary values of the scanned Mark-Space modulated signal u' are now read out of the random access memory 50 phase-shifted as values of signal u'(.alpha.), and are fed to the output terminal of the delay circuit 2. At the end of the read cycle, the negative-going flank of the clock signal switches the single pole switch 49 and the read/write input terminal 53 back again to permit a new write cycle, and the new value of u' is written into the random access memory 50 at the same address.
The rate multiplier 21 may, for instance, be type MC 14527 B, the adder 36 MC 14008 B, the random access memory 50 MCM 14537 and the address counter 51 MC 14163 B, as manufactured by Motorola.
The D-flip floprs 28 and 52 may be, for instance, MC 14013B, counters 29 and 41 MC 14516 B, storage registers 30 and 37 MC 14042 B, exclusive or gates 35 and 42 MC 14507 B, and switches 48 and 49 MC 14066 B.
All components MC XXXX B or MCM XXXX are, for instance, integrated circuits such as described in the data manual entitled "The European CMOS Selection" of the Motorola Company of Phoenix, Ariz. These are all conventional components of digital electronic technology with standardized functions and are known to the average expert.
I wish it to be understood that I do not desire to be limited to the exact details of the method or of the construction shown and described, for obvious modifications will occur to a person skilled in the art.