Abstract:
The amplitude value of a sinusoidal wave is calculated by operating means which processes absolute values of two data samples which are sampled from the sinusoidal wave at two points spaced 90° electrical degrees apart thereby producing an electrical signal proportional to the amplitude value. The operation means comprises a comparator, a combination of an adder and a subtractor, or a combination of a comparator and an adder. The output of the comparator or the combination is multiplied with a predetermined coefficient and then added together to produce said signal.

Description:
BACKGROUND OF THE INVENTION 
     This invention relates to apparatus for calculating the amplitude value of a sinusoidal wave, more particularly sinusoidal current or voltage of an electric power system. 
     To adequately operate a certain type of a protective relay for an electric power system it is necessary to calculate the amplitude value of the AC voltage or current of the power system. For this purpose, it has been the practice to sample at a predetermined interval the sinusoidal voltage, or current or both of the power system, convert the sample values into digital signals, encode the digital signals and then transmit the encoded digital signals to a receiving end for calculating the amplitude value of the sinusoidal voltage or current. The following two methods have been used to perform such calculation. 
     A. addition Method. 
     According to this method the absolute values of a plurality of data samples in one-half cycle of the input alternating current are added together, and the sum is multiplied with a predetermined coefficient. In an example shown in FIG. 1, an alternating current having a frequency of 50 Hz is sampled at a sampling frequency of 600 Hz, the data samples in one-half cycle are i m-5  through i m  and the amplitude value I is calculated by the following equation ##EQU1## WHERE I REPRESENTS AN INSTANTANEOUS VALUE, M A TIME SERIES. 
     The error of calculation according to equation (1) caused by the sampling phase is less than ±1.7 %. 
     B. square Method 
     From a formula of trigonometric function the following equation (2) holds ##EQU2## This equation shows that the sum of the squares of two data having phase angles different by 90° electrical is equal to the square of the amplitude value of an input alternating current quantity. In the case shown in FIG. 1 wherein an input having a frequency of 50 Hz is sampled at a frequency of 600 Hz, the square of the amplitude value is determined by the following equation. 
     
         I.sup.2 = i.sub.m.sup.2 + i.sub.m-3.sup.2                  (3) 
    
     With this equation no error is caused by the sampling phase. 
     The addition method and the square method described above have the following advantages and disadvantages. Thus, according to the square method the amplitude value is determined by two data dephased by 90° electrical, whereas according to the addition method it is necessary to use a plurality of data samples which are sampled from one half cycle of the input alternating current, thus in the example shown in FIG. 1 six data samples. This means that the operation device requires a larger member of memory elements, and that it is necessary to use a higher sampling frequency to attain the desired object. 
     Although the addition method is advantageous in that a quantity proportional to the amplitude value can readily be obtained by a simple addition operation, the square method requires a mathematical operation to obtain a square root according to equation (3). Where the protection of a power system is performed by an electronic computer in response to digital signals, the operation for determining the square root requires much longer time than the addition operation. 
     SUMMARY OF THE INVENTION 
     It is an object of this invention to provide an improved apparatus for calculating the amplitude value of a sinusoidal wave which can eliminate the disadvantage described above. 
     Generally stated, according to this invention there is provided apparatus for calculating the absolute value of a sinusoidal wave comprising operating means for processing the absolute values of two data samples from the sinusoidal wave at two points spaced 90° electrical apart thereby producing an electrical signal proportional to the amplitude value of the sinusoidal wave. The operating means comprises a comparator for producing a larger one and a smaller one of the absolute values of the two data samples, or a combination of an adder and a subtractor, or a combination of a comparator which produces a larger one or a smaller one of the absolute values of the two sampled data and an adder. In any case, the outputs from the comparator and the adder or subtractor are multiplied with predetermined coefficients and then added together to produce an electrical signal proportional to the amplitude. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The invention can be more fully understood from the following detailed description taken in conjunction with the accompanying drawings in which: 
     FIG. 1 is a graph showing a prior art method of calculating the amplitude value of a sinusoidal wave; 
     FIG. 2 is a block diagram showing one embodiment of the apparatus for calculating the amplitude value of this invention; 
     FIGS. 3A and 3B are vector diagrams showing the range of variation in the output Y of the apparatus shown in FIG. 2; 
     FIG. 4 is a block diagram showing another embodiment of this invention; 
     FIGS. 5A and 5B are vector diagrams showing the range of variation in the output Y of the apparatus shown in FIG. 4; and 
     FIGS. 6 and 7 are block diagrams showing still other embodiments of this invention. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     FIG. 2 shows a preferred embodiment of this invention wherein the data obtained by sampling a 50 H z  alternating current wave at a frequency of 600 Hz are applied to an input terminal A. The data are applied in parallel to an adder 1 and a subtractor 2. Adder 1 determines the sum of the absolute values of the two data samples having a phase difference of 90°, whereas subtractor 2 determines the difference of the absolute values of the two data samples, providing this difference as a positive output. The outputs from the adder and subtractor are multiplied with coefficients K 1  and K 2 , respectively, by coefficient multipliers 3 and 4 and the outputs thereof are added together by a second adder 5 thus producing an output Y ##EQU3## where i m  and i m-3  represent two data samples having a phase difference of 90° electrical. Denoting the amplitude of the AC input by I, then the data i m  and i m-3  are expressed by the following equation (5). ##EQU4## By substituting equation (5) into equation (4) equation (6) is obtained. ##EQU5## Considering the periodicity of equation (6) the value Y lies in a range expressed by the following equation (7) 
     
         Y = K.sub.1 I (sin ωt + cos ωt) + K.sub.2 I (cos ωt - sin ωt)                                                 (7) 
    
     where 0≦ωt ≦π/4 
     When equation (7) is modified by taking k = K 1  /K 2 , the following equation (8) is obtained 
     
         Y = K.sub.2 I {(k-1) sin ωt +(k+l) cos ωt} 
    
     
          =K.sub.2 I √(k-l).sup.2 + (k+l).sup.2 ·sin ( ωt + α)                                                  (8) 
    
     where ##EQU6## 
     FIG. 3A is a vector diagram showing the range of variation of Y where 0≦ ωt ≦π/4 in equation (8). The variation in the value of Y is minimum at α= 3/8 πas shown in FIG. 3B. When α= 3/8 π, the value of k is determined to be 2.41 by equation (9), and the range of variation of the value of Y can be shown by the following equation (10) 
     
         sin 3/8π = 0.924≦Y/ {K.sub.2 I √(-1) + (k+1).sup.2 }≦1.0                                              (10) 
    
     As can be noted from this equation, the range of variation is ±3.95 % about the center of variation. Taking a value of k 2  =O.282, the coefficient of equation (8) becomes 
     
         k.sub.2 I =√(k-1).sup.2 + (k+1).sup.2 = 1.03951. 
    
     Thus, from the output Y from adder 5, the amplitude value I can be determined with an error of ±3.96 %. Where a value proportional to the amplitude value I is to be determined, such value can be determined with an error of ±3.95 % by selecting coefficient K 2  so as to satisfy a condition k =2.41. By neglecting the error, the operation can be made more readily. For example, when k 1  = 2 and k 2  = 1 are selected, k 2  = 2. As a consequence, from equation (9) α=71.5° and the error of the value of Y can be calculated from equation (8) to be less than ±5.5% about the center. 
     As above described, according to this invention, it is possible to readily calculate the amplitude value of a sinusoidal wave by using two data samples dephased 90° electrical without performing an operation for determining a square root although the error is slightly increased whereby the defects of the addition method and the square method are eliminated. 
     Although in FIG. 2 two coefficient multipliers 3 and 4 are provided either one of them may be omitted by suitably selecting the coefficient. 
     In a modified embodiment shown in FIG. 4 a comparator 11 is provided to compare the absolute values of two data samples i m  and i m-3  having a phase difference of 90°. A smaller one Min {|i m  | , | i m-3  |} and a larger one Max {|i m  | , | i m-3  |} respectively selected by the comparator 11 are multiplied with coefficients k 1  and k 2  respectively by coefficient multipliers 12 and 13 and the outputs of the coefficient multipliers are added together by an adder 14 to provide an output Y 
     
         y = k.sub.1 min {|i.sub.m | , | i.sub.m-3 |} +K.sub.2 Max {| i.sub.m |, | i.sub.m-3 |}                                     (11) 
    
     By substituting equation (5) into equation (11), equation (11) is modified as follows. ##EQU7## Considering the periodicity of equation (12), the range of Y is expressed by 
     
         Y = K.sub.1 Isin ω t + K.sub.2 I cos ωt        (13) 
    
     where   0≦ ω t ≦π/4 
     Equation (13) can be modified as follows by putting 
     
         k = k.sub.1 /k.sub.2 
    
     
         Y = K.sub.2 I (k sin ωt + cos ωt) 
    
     
          = K.sub.2 I √k.sup.2 +1 sin ( ωt + α)  (14) 
    
     where ##EQU8## Where   0≦ωt≦π/4 , the range of Y expressed by equation (14) is shown by FIG. 5A and the variation of Y is minimum when α = 3/8 π as shown in FIG. 5B. Under these conditions, the value of k determined by equation 15 is equal to 0.414. Further from equation (14) ##EQU9## This means that the output signal Y varies within a range of ±3.96 %. Assume now that k 2  = 0.9605, the coefficient of equation (14) becomes equal to 1.03961 so that it It possible to determine the amplitude value within an error range of ±3.96 %. 1 α 
     Where a value proportional to the amplitude value is to be determined, such value can be determined with an error of ±3.96 % by selecting coefficient K 2  so as to satisfy a condition k = 0.414. it will be noted that this error is equal to the error of the first embodiment. By neglecting the error, the operation can be made more readily. For example, when k 1  = 1 and k 2  = 2 are selected k = 0.5. Consequently, from equation (15) Δ = 63.4° and the range of variation of Y can be limited to be less than ±5.6%. 
     FIG. 6 shows still another embodiment of this invention which comprises a comparator 20 which compares the absolute values of two data samples i m  and i m-3  also having a phase difference of 90° for producing a smaller one Min {|i m  | , |i m-3  |} , and an adder 21 which produces the sum of the absolute values of the data i m  and i m-3 . The outputs from comparator 20 and adder 21 are multiplied with coefficients K 11  and K 12 , respectively, by coefficient multipliers 22 and 23, and the outputs thereof are added each other by an adder 24 to produce an output Y, expressed by the following equation 
     
         Y.sub.1 = K.sub.11 Min {|i.sub.m |, |i.sub.m-3 |}+ K.sub.12 {|i.sub.m |+ |i.sub.m-3 |} 
    
     
          =(K.sub.11 + K.sub.12) · Min {|i.sub.m |, |i.sub.m-3 |} 
    
     
           + K.sub.12 Max {|i.sub.m | , |i.sub.m-3 |}                                               (17) 
    
     In equation (17) by putting K 1  = K 11  + K 12  and K 2  = K 12  an equation identical to equation (11) can be obtained with the result that a value proportional to the amplitude value can be obtained with an error of less than ±3.96% in the same manner as above described. Putting now k = K 1  /K 2  = 0.414, then K 11  = - 0.586 K 12 . 
     FIG. 7 shows still further modification of this invention which comprises a comparator 20a and an adder 21. In this case, the comparator 20a compares the absolute values of two data samples i m  and i m-3  and produces a larger one Max {|i m  | , |i m-3  |} as its output. The outputs from the comparator and the adder are multiplied with coefficients K 21  and K 22  respectively by coefficient multipliers 22 and 23 and the outputs thereof are added together by a second adder 24 thus producing an output Y 2   
     
         y.sub.2 = k.sub.21 max {|i.sub.m | , |i.sub.m-3 |} + K.sub.22 {|i.sub.m | + |i.sub.m-3 |} 
    
     
          = K.sub.22 Min {|i.sub.m |, |i.sub.m-3 |} 
    
     
           + (K.sub.21 + K.sub.22) Max {|i.sub.m |, |i.sub.m-3 |}                           (18) 
    
     If we put K 1  = K 22 , K 2  = K 21  + K 22 , equation (18) becomes to have the same form as equation (11) so that Y 2  represents a value proportional to the amplitude value with an error of less than ±3.96%. If k = K 1  /K 2  = 0.414, K 21  = 1.42 K 22 . 
     This embodiment too can calculate the amplitude value of a sinusoidal wave without calculating a square root as in the prior art method.