JPH07229933A - Digital calculation method for a.c. electricity quantity - Google Patents

Digital calculation method for a.c. electricity quantity

Info

Publication number
JPH07229933A
JPH07229933A JP2293494A JP2293494A JPH07229933A JP H07229933 A JPH07229933 A JP H07229933A JP 2293494 A JP2293494 A JP 2293494A JP 2293494 A JP2293494 A JP 2293494A JP H07229933 A JPH07229933 A JP H07229933A
Authority
JP
Japan
Prior art keywords
product
current
calculated
sampling
voltage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2293494A
Other languages
Japanese (ja)
Other versions
JP3206273B2 (en
Inventor
Satoshi Nishiyama
聡 西山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP02293494A priority Critical patent/JP3206273B2/en
Publication of JPH07229933A publication Critical patent/JPH07229933A/en
Application granted granted Critical
Publication of JP3206273B2 publication Critical patent/JP3206273B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To calculate effective electric power and phase difference with high precision even under fluctuation in A.C. circuit's frequency by storing three samplings of voltage/current data in a memory for calculation. CONSTITUTION:Three sampling of voltage/current data are stored in a memory, and the current, previous and the one before previous data for voltage and current, the current data for voltage and the one before previous data for current, and the one before previous data for voltage and the current data for current are multiplied each other, thus the first product calculation 11 - the fifth product calculation 15 are performed. Then, sampling phase angle calculation 24 is performed for its sine value calculation 45 to be done, and after processed with square value calculation 25, it is multiplied by four, so that the sixth product calculation 16 is conducted. Then, from the sum of the first and third products 11 and 13, both the fourth and fifth products 14 and 15 are subtracted so that the first addition calculation 31 is conducted, and the result is divided by the sixth product 16, or the first quotient calculation 41 is conducted. Further, the first quotient 41 and the second product 12 are added together as the second addition calculation 32, and that is taken as the effective electric power of A.C. circuit.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、所定周期でサンプリ
ングされた交流回路の電圧データと電流データと周波数
とから有効電力と位相差とを求める交流電気量のデジタ
ル演算方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of digitally calculating an AC electric quantity for obtaining active power and phase difference from voltage data, current data and frequency of an AC circuit sampled at a predetermined cycle.

【0002】[0002]

【従来の技術】交流回路をデジタル制御装置で制御した
り、デジタル保護リレーを使って保護することが多くな
ってきているので、交流回路の有効電力Pや電圧と電流
の位相差Δθをデジタル量で検出することが必要になっ
てきている。図4は有効電力の算出方法の従来例を示し
た計算手順図である。有効電力Pを演算するにあたって
は、この図4での図示は省略しているが、交流回路の周
波数の12倍のサンプリング周波数で電圧データと電流
データとを求めて、メモリー66には少なくとも今回電
圧サンプルデータVn ,前回電圧サンプルデータ
n- 1 ,前々回電圧サンプルデータVn-2 ,及び3回前
電圧サンプルデータVn-3 と、今回電流サンプルデータ
n ,前回電流サンプルデータIn-1 ,前々回電流サン
プルデータIn-2 ,及び3回前電流サンプルデータI
n-3 を格納する。第1積演算11はメモリー66から読
み出した今回電圧サンプルデータVn と今回電流サンプ
ルデータIn との積を演算し、第11積演算21は3回
前電圧サンプルデータVn-3 と3回前電流サンプルデー
タIn-3 との積を演算する。第4加算演算34は第1積
演算11の演算結果と第11積演算21の演算結果とを
加算するが、この加算結果が有効電力Pである。
2. Description of the Related Art Since an AC circuit is often controlled by a digital controller or protected by a digital protection relay, the active power P of the AC circuit and the phase difference Δθ between the voltage and the current are digitally measured. It has become necessary to detect in. FIG. 4 is a calculation procedure diagram showing a conventional example of a method of calculating active power. Although the illustration in FIG. 4 is omitted in calculating the active power P, the voltage data and the current data are obtained at a sampling frequency 12 times the frequency of the AC circuit, and at least the current voltage is stored in the memory 66. The sample data V n , the previous voltage sample data V n- 1 , the two- preceding voltage sample data V n- 2 , the three previous voltage sample data V n-3 , the current current sample data I n , the previous current sample data I n- 1 , two- preceding current sample data I n-2 , and three-preceding current sample data I
Store n-3 . The first product operation 11 calculates the product of the current voltage sample data V n read from the memory 66 and the current current sample data I n, and the eleventh product operation 21 is three times the previous voltage sample data V n-3 and three times. The product with the previous current sample data I n-3 is calculated. The fourth addition operation 34 adds the operation result of the first product operation 11 and the operation result of the eleventh product operation 21, and the addition result is the active power P.

【0003】この図4に図示の演算を数式で表したのが
下記の数1である。
The operation shown in FIG. 4 is represented by a mathematical expression as the following formula 1.

【0004】[0004]

【数1】P=Vn ・In +Vn-3 ・In-3 図5は位相差の算出方法の従来例を示した計算手順図で
ある。位相差Δθを演算する場合も前述の有効電力Pの
算出と同様に、交流回路の周波数の12倍のサンプリン
グ周波数で電圧データと電流データとを求め、メモリー
66には少なくとも今回,前回,前々回,及び3回前電
圧サンプルデータと、今回,前回,前々回,及び3回前
電流サンプルデータとを格納し、これらのデータを読み
出して演算を行う。
[Number 1] P = V n · I n + V n-3 · I n-3 and FIG. 5 is a calculation procedure diagram showing a conventional example of a method of calculating the phase difference. When calculating the phase difference Δθ, the voltage data and the current data are obtained at a sampling frequency that is 12 times the frequency of the AC circuit in the same manner as the above-described calculation of the active power P. The voltage sample data before and 3 times, and the current sample data, the previous time, the previous two times, and the current sample data before 3 times are stored, and these data are read out to perform the calculation.

【0005】即ち、第1積演算11が今回電圧サンプル
データVn と今回電流サンプルデータIn との積を演算
し、第11積演算21が3回前電圧サンプルデータV
n-3 と3回前電流サンプルデータIn-3 との積を演算
し、第4加算演算34が第1積演算11の演算結果と第
11積演算21の演算結果とを加算するのは前述した図
4の場合と同じであるが、更に第12積演算22が今回
電圧サンプルデータVn と3回前電流サンプルデータI
n-3 との積を演算し、第13積演算23が3回前電圧サ
ンプルデータVn-3 と今回電流サンプルデータIn との
積を演算し、第2減算演算36が第12積演算22の演
算結果から第13積演算23の演算結果を差し引く演算
を行う。次いで第3商演算43では、第2減算演算36
の演算結果を第4加算演算34の演算結果で除算する演
算を行い、その演算結果が tanΔθである。逆正接値演
算47ではこの tanΔθの逆正接を演算して位相差Δθ
を得ている。
That is, the first product operation 11 calculates the product of the current voltage sample data V n and the current current sample data I n, and the eleventh product operation 21 calculates the voltage sample data V three times before.
calculates the product of the n-3 and three times before the current sample data I n-3, the fourth addition operation 34 adds the calculation result of the calculation results and the 11 multiply operation 21 of the first AND operation 11 This is the same as the case of FIG. 4 described above, but the twelfth product operation 22 further includes the current voltage sample data V n and the current sample data I three times before.
calculates the product of the n-3, the product of the first 13 AND operation 23 3 times before voltage sample data V n-3 and the current current sample data I n is calculated, the second subtract operation 36 12th AND operation An operation of subtracting the operation result of the thirteenth product operation 23 from the operation result of No. 22 is performed. Next, in the third quotient operation 43, the second subtraction operation 36
The operation result is divided by the operation result of the fourth addition operation 34, and the operation result is tan Δθ. In the arctangent value calculation 47, the arctangent of this tan Δθ is calculated to calculate the phase difference Δθ.
Is getting

【0006】この図5に図示の演算を数式で表したのが
下記の数2である。
The operation shown in FIG. 5 is represented by a mathematical expression as the following expression 2.

【0007】[0007]

【数2】 [Equation 2]

【0008】[0008]

【発明が解決しようとする課題】ところで前記の図4の
従来例に図示の演算(即ち数1の演算)や図5の従来例
に図示の演算(即ち数2の演算)は、サンプリング周波
数が交流回路周波数の12倍とすることを前提にしてい
るので、交流回路の周波数が変動すると、この変動に伴
って演算結果に誤差を生じてしまう不都合がある。それ
故、周波数変動がある回路や、周波数変動は僅かであっ
ても演算結果が高精度であることが要求されているよう
な場合には、これらのデジタル演算結果を使用出来ない
不具合があった。
By the way, in the calculation shown in the conventional example of FIG. 4 (that is, the calculation of Equation 1) and the calculation shown in the conventional example of FIG. 5 (that is, the calculation of Equation 2), the sampling frequency is Since it is assumed that the frequency is 12 times the AC circuit frequency, if the frequency of the AC circuit fluctuates, there is a disadvantage that an error occurs in the calculation result due to this fluctuation. Therefore, there is a problem in that these digital calculation results cannot be used in the case where there is a circuit with frequency fluctuation or when the calculation result is required to be highly accurate even if the frequency fluctuation is slight. .

【0009】そこでこの発明の目的は、交流回路の周波
数に変動があっても、高い精度で有効電力Pと位相差Δ
θを算出できるようにすることにある。
Therefore, an object of the present invention is to accurately measure the active power P and the phase difference Δ even if the frequency of the AC circuit varies.
It is to be able to calculate θ.

【0010】[0010]

【課題を解決するための手段】上記の目的を達成するた
めにこの発明の交流電気量のデジタル演算方法は、交流
回路の電圧と電流とを所定のサンプリング周期で別々に
サンプリングして得られる電圧データと電流データの少
なくとも3回分をメモリーに記憶し、電圧の今回分サン
プリングデータと電流の今回分サンプリングデータとの
乗算による第1積を演算し、電圧の前回分サンプリング
データと電流の前回分サンプリングデータとの乗算によ
る第2積を演算し、電圧の前々回分サンプリングデータ
と電流の前々回分サンプリングデータとの乗算による第
3積を演算し、電圧の今回分サンプリングデータと電流
の前々回分サンプリングデータとの乗算による第4積を
演算し、電圧の前々回分サンプリングデータと電流の今
回分サンプリングデータとの乗算による第5積を演算
し、前記交流電圧の周波数と前記サンプリング周期と2
πとを乗算してサンプリング位相角を求めてこのサンプ
リング位相角の正弦値を演算し、このサンプリング位相
角正弦値の2乗を演算し、この2乗値を4倍する第6積
を演算し、前記第1積と第3積との和から前記第4積と
第5積とを差し引く第1加算を演算し、この第1加算結
果を前記第6積で除算する第1商を演算し、この第1商
と前記第2積との和を第2加算で演算し、この第2加算
結果を前記交流回路の有効電力とする。
In order to achieve the above object, a method for digitally calculating an AC electric quantity according to the present invention is a voltage obtained by separately sampling a voltage and a current of an AC circuit at a predetermined sampling cycle. At least three times of the data and the current data are stored in the memory, the first product is calculated by multiplying the current sampling data of the voltage and the current sampling data of the current, and the previous sampling data of the voltage and the previous sampling of the current are sampled. A second product is calculated by multiplication with the data, and a third product is calculated by multiplication of the voltage before-second batch sampling data and the current before-second batch sampling data, and the current current sampling data and the current before-second batch sampling data are calculated. The fourth product is calculated by multiplying by, and the sampling data of the voltage before the current and the current sampling of the current are sampled. It calculates a fifth product by multiplication with over motor, the frequency of the AC voltage sampling period and 2
The sampling phase angle is calculated by multiplying with π, the sine value of this sampling phase angle is calculated, the square of this sampling phase angle sine value is calculated, and the sixth product that multiplies this square value by 4 is calculated. , A first addition that subtracts the fourth product and the fifth product from the sum of the first product and the third product, and a first quotient that divides the first addition result by the sixth product , The sum of the first quotient and the second product is calculated by the second addition, and the result of the second addition is used as the active power of the AC circuit.

【0011】又は、交流回路の電圧と電流とを所定のサ
ンプリング周期で別々にサンプリングして得られる電圧
データと電流データの少なくとも3回分をメモリーに記
憶し、電圧の今回分サンプリングデータと電流の今回分
サンプリングデータとの乗算による第1積を演算し、電
圧の前回分サンプリングデータと電流の前回分サンプリ
ングデータとの乗算による第2積を演算し、電圧の前々
回分サンプリングデータと電流の前々回分サンプリング
データとの乗算による第3積を演算し、電圧の今回分サ
ンプリングデータと電流の前々回分サンプリングデータ
との乗算による第4積を演算し、電圧の前々回分サンプ
リングデータと電流の今回分サンプリングデータとの乗
算による第5積を演算し、電圧の今回分サンプリングデ
ータと電流の前回分サンプリングデータとの乗算による
第7積を演算し、電圧の前回分サンプリングデータと電
流の今回分サンプリングデータとの乗算による第8積を
演算し、前記交流電圧の周波数と前記サンプリング周期
と2πとの乗算により得られるサンプリング位相角の正
弦値を演算し、このサンプリング位相角正弦値の2乗を
演算し、前記第7積から第8積を差し引く第1減算を演
算し、この第1減算結果と前記サンプリング位相角正弦
値と4とを乗算する第9積を演算し、前記サンプリング
位相角正弦値の2乗値と前記第2積と4との乗算による
第10積を演算し、前記第1積と第3積と第10積との
和から前記第4積と第5積とを差し引く第3加算を演算
し、前記第9積をこの第3加算結果で除算する第2商を
演算し、この第2商の逆正接値を演算し、この逆正接値
を前記交流回路の電圧と電流の位相差とする。
Alternatively, at least three times of the voltage data and the current data obtained by separately sampling the voltage and the current of the AC circuit at a predetermined sampling period are stored in the memory, and the current sampling data of the voltage and the current sampling of the current are stored. The first product is calculated by multiplication with the minute sampling data, and the second product is calculated by multiplying the previous minute sampling data of the voltage and the previous minute sampling data of the current, and the pre-preceding sampling data of the voltage and the pre-preceding sampling of the current are calculated. The third product is calculated by multiplication with the data, and the fourth product is calculated by multiplying the current sampling data of the voltage and the pre-preceding sampling data of the current, and the pre-preceding sampling data of the voltage and the current sampling data of the current are calculated. The fifth product is calculated by multiplying by The seventh product is calculated by multiplication with the sampling data, and the eighth product is calculated by multiplying the previous sampling data of the voltage and the current sampling data of the current, and the eighth product of the frequency of the AC voltage, the sampling period and 2π is calculated. The sine value of the sampling phase angle obtained by the multiplication is calculated, the square of the sine value of the sampling phase angle is calculated, and the first subtraction that subtracts the eighth product from the seventh product is calculated. A ninth product is calculated by multiplying the sampling phase angle sine value by 4, and a tenth product is calculated by multiplying the squared value of the sampling phase angle sine value by the second product by 4. A third addition that subtracts the fourth product and the fifth product from the sum of the product, the third product, and the tenth product is calculated, and a second quotient that divides the ninth product by the third addition result is calculated. , Calculate the arctangent value of this second quotient Then, this arctangent value is used as the phase difference between the voltage and current of the AC circuit.

【0012】[0012]

【作用】この発明は、サンプリングされた電圧データと
電流データの少なくとも3回分(即ち今回分サンプリン
グデータ,前回分サンプリングデータ,及び前々回分サ
ンプリングデータ)をメモリーに格納する。又、サンプ
リング周期Tと交流回路の周波数fとから、θ=2π・
f・Tなる演算によりサンプリング位相角θを求めて s
inθを演算し、前記の3回分サンプリングデータと sin
θとにより、交流回路の周波数に影響されることのない
有効電力Pと位相差Δθとを算出する。
According to the present invention, at least three times of the sampled voltage data and current data (that is, the current sampling data, the previous sampling data, and the pre-previous sampling data) are stored in the memory. Further, from the sampling period T and the frequency f of the AC circuit, θ = 2π ·
Obtain the sampling phase angle θ by the calculation f · T s
In θ is calculated, and the sampling data for 3 times and sin
From θ, the effective power P and the phase difference Δθ that are not affected by the frequency of the AC circuit are calculated.

【0013】[0013]

【実施例】図1は本発明の第1実施例を表した計算手順
図であって、有効電力Pを算出する場合を表している。
図1の第1実施例において、メモリー66は今回電圧サ
ンプルデータVn ,前回電圧サンプルデータVn-1 ,及
び前々回電圧サンプルデータVn-2 と、今回電流サンプ
ルデータIn ,前回電流サンプルデータIn-1 ,及び前
々回電流サンプルデータIn-2 と、周波数fとサンプリ
ング周期Tとを記憶しており、これらのデータから下記
の演算を行う。即ち、第1積演算11は今回電圧サンプ
ルデータVn と今回電流サンプルデータIn との積を演
算し、第2積演算12は前回電圧サンプルデータVn-1
と前回電流サンプルデータIn-1 との積を演算し、第3
積演算13は前々回電圧サンプルデータVn-2 と前々回
電流サンプルデータIn-2との積を演算し、第4積演算
14は今回電圧サンプルデータVn と前々回電流サンプ
ルデータIn-2 との積を演算し、第5積演算15は前々
回電圧サンプルデータVn-2 と今回電流サンプルデータ
n との積を演算し、更にサンプリング位相角演算24
は周波数fとサンプリング周期Tと2πとの積であるサ
ンプリング位相角θを演算する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a calculation procedure diagram showing a first embodiment of the present invention, showing a case of calculating active power P.
In the first embodiment shown in FIG. 1, the memory 66 stores the current voltage sample data V n , the previous voltage sample data V n-1 , the two - preceding voltage sample data V n-2 , the current current sample data I n , and the previous current sample data. I n-1 , the current sample data I n-2 before two times, the frequency f and the sampling period T are stored, and the following calculation is performed from these data. That is, the first product calculation 11 calculates the product of the current voltage sample data V n and the current current sample data I n, and the second product calculation 12 calculates the previous voltage sample data V n-1.
And the previous current sample data I n-1 are calculated, and the third
The product operation 13 calculates the product of the previous-previous-time voltage sample data V n-2 and the previous - previous - time current sample data I n-2, and the fourth product operation 14 calculates the present-time voltage sample data V n and the previous-previous-time current sample data I n-2 . The fifth product operation 15 calculates the product of the voltage sample data V n−2 before this time and the current current sample data I n, and further the sampling phase angle operation 24
Calculates the sampling phase angle θ which is the product of the frequency f, the sampling period T and 2π.

【0014】正弦値演算45はサンプリング位相角θの
正弦値である sinθを演算し、2乗値演算25はこの s
inθを2乗して sin2 θを得ており、更に第6積演算1
6はこの sin2 θから4 sin2 θを演算する。一方、第
1加算演算31は第1積演算11の演算結果と第3積演
算13の演算結果との和から第4積演算14の演算結果
と第5積演算15の演算結果とを差し引く演算を行うの
で、その演算結果は下記の数3となる。
The sine value calculation 45 calculates sin θ which is the sine value of the sampling phase angle θ, and the square value calculation 25 calculates this s
In θ is squared to obtain sin 2 θ, and the sixth product operation 1
6 calculates the 4 sin 2 theta from the sin 2 theta. On the other hand, the first addition operation 31 is an operation of subtracting the operation result of the fourth product operation 14 and the operation result of the fifth product operation 15 from the sum of the operation result of the first product operation 11 and the operation result of the third product operation 13. Therefore, the calculation result is the following Expression 3.

【0015】[0015]

【数3】Vn ・In +Vn-2 ・In-2 −Vn ・In-2
n-2 ・In 第1商演算41は第1加算演算31の演算結果、即ち数
3を第6積演算16の演算結果、即ち4 sin2 θで除算
する。第2加算演算32はこの除算結果と第2積演算1
2の演算結果との和を演算するが、この演算結果が有効
電力Pである。即ち、図1に図示の演算を数式で表すと
下記の数4となる。
[Formula 3] V n · I n + V n-2 · I n-2 −V n · I n-2
The V n−2 · I n first quotient operation 41 divides the operation result of the first addition operation 31, that is, Formula 3, by the operation result of the sixth product operation 16, that is, 4 sin 2 θ. The second addition operation 32 is the result of this division and the second product operation 1
The sum of the calculation result and the calculation result of 2 is calculated, and this calculation result is the active power P. That is, the calculation shown in FIG.

【0016】[0016]

【数4】 [Equation 4]

【0017】図2は本発明の第2実施例を表した計算手
順図であって、位相差Δθを算出する場合を表してい
る。図2に図示の第2実施例も前述した図1の第1実施
例と同様に、メモリー66は今回電圧サンプルデータV
n ,前回電圧サンプルデータVn-1 ,及び前々回電圧サ
ンプルデータVn-2 と、今回電流サンプルデータIn
前回電流サンプルデータIn-1 ,及び前々回電流サンプ
ルデータIn-2 と、周波数fとサンプリング周期Tとを
記憶しており、これらのデータから下記の演算を行う。
即ち、第1積演算11は今回電圧サンプルデータVn
今回電流サンプルデータIn との積を演算し、第2積演
算12は前回電圧サンプルデータVn-1 と前回電流サン
プルデータIn-1 との積を演算し、第3積演算13は前
々回電圧サンプルデータVn-2と前々回電流サンプルデ
ータIn-2 との積を演算し、第4積演算14は今回電圧
サンプルデータVn と前々回電流サンプルデータIn-2
との積を演算し、第5積演算15は前々回電圧サンプル
データVn-2 と今回電流サンプルデータIn との積を演
算し、第7積演算17は今回電圧サンプルデータVn
前回電流サンプルデータIn-1 との積を演算し、第8積
演算18は前回電圧サンプルデータVn-1と今回電流サ
ンプルデータIn との積を演算し、更にサンプリング位
相角演算24は周波数fとサンプリング周期Tと2πと
の積であるサンプリング位相角θを演算する。
FIG. 2 is a calculation procedure diagram showing the second embodiment of the present invention, and shows the case where the phase difference Δθ is calculated. In the second embodiment shown in FIG. 2, the memory 66 stores the current voltage sample data V as in the first embodiment shown in FIG.
n , the previous voltage sample data V n-1 , the voltage sample data V n-2 two times before, and the current sample data I n ,
The previous current sample data I n-1 and the two - preceding current sample data I n- 2 , the frequency f and the sampling period T are stored, and the following calculation is performed from these data.
That is, the first product calculation 11 calculates the product of the current voltage sample data V n and the current current sample data I n, and the second product calculation 12 calculates the previous voltage sample data V n-1 and the previous current sample data I n-. 1 calculates the product of the third aND operation 13 calculates the product of the second last voltage sample data V n-2 and the second last current sample data I n-2, the fourth aND operation 14 this voltage sample data V n And the two- preceding current sample data I n-2
And the fifth product calculation 15 calculates the product of the voltage sample data V n−2 before this time and the current current sample data I n, and the seventh product calculation 17 calculates the current voltage sample data V n and the previous current. The product of the sample data I n-1 is calculated, the eighth product calculation 18 calculates the product of the previous voltage sample data V n-1 and the current current sample data I n, and the sampling phase angle calculation 24 calculates the frequency f. And the sampling phase angle θ which is the product of the sampling period T and 2π.

【0018】正弦値演算45はサンプリング位相角θの
正弦値である sinθを演算しており、第1減算演算35
は第7積演算17の演算結果から第8積演算18の演算
結果を差し引く演算を行い、第9積演算19はこれら第
1減算演算35の演算結果と正弦値演算45の演算結果
との積の4倍を演算する。よって第9積演算19の演算
結果は下記の数5となる。
The sine value calculation 45 calculates sin θ which is the sine value of the sampling phase angle θ, and the first subtraction calculation 35
Is a subtraction of the operation result of the eighth product operation 18 from the operation result of the seventh product operation 17, and the ninth product operation 19 is the product of the operation result of these first subtraction operation 35 and the operation result of sine value operation 45. 4 times is calculated. Therefore, the operation result of the ninth product operation 19 is the following Expression 5.

【0019】[0019]

【数5】4(Vn ・In-1 −Vn-1 ・In ) sinθ 一方、2乗値演算25は正弦値演算45の演算結果を2
乗して sin2 θを得ており、第10積演算20は2乗値
演算25が演算した sin2 θと第2積演算12の演算結
果との積の4倍を演算するので、その演算結果であるA
は下記の数6である。
Equation 5] 4 (V n · I n- 1 -V n-1 · I n) sinθ Meanwhile, squared value calculation 25 2 the calculation result of the sine value calculation 45
And multiply achieved a sin 2 theta, since the tenth AND operation 20 square value calculation 25 calculates four times the product of the operation result of sin 2 theta and a second AND operation 12 that operation, the operation The result is A
Is the following expression 6.

【0020】[0020]

【数6】A=4・Vn-1 ・In-1 ・ sin2 θ 更に、第3加算演算33は前述の第1積演算11の演算
結果と第3積演算13の演算結果と第10積演算20の
演算結果との和から第4積演算14の演算結果と第5積
演算15の演算結果とを差し引く演算を行っており、そ
の演算結果は下記の数7である。
[6] A = 4 · V n-1 · I n-1 · sin 2 θ Furthermore, the third addition operation 33 the calculation result of the calculation result and the third AND operation 13 of the first AND operation 11 described above and the A calculation is performed by subtracting the calculation result of the fourth product calculation 14 and the calculation result of the fifth product calculation 15 from the sum of the calculation result of the 10 product calculation 20 and the calculation result is the following Expression 7.

【0021】[0021]

【数7】Vn ・In +Vn-2 ・In-2 −Vn ・In-2
n-2 ・In+4・Vn-1 ・In-1 ・ sin2 θ 第2商演算42は前述した第9積演算19の演算結果
(数5参照)を第3加算演算33の演算結果(数7参
照)で除算する演算を行っており、その演算結果はtan
Δθである。逆正接値演算47でこの tanΔθの逆正接
値を演算することにより、位相差Δθが得られる。
[Formula 7] V n · I n + V n-2 · I n-2 −V n · I n-2
V n−2 · I n + 4 · V n−1 · I n−1 · sin 2 θ The second quotient operation 42 is the result of the operation of the ninth product operation 19 (see equation 5) described above in the third addition operation 33. An operation that divides by the operation result (see Equation 7) is performed, and the operation result is tan
Δθ. By calculating the arctangent value of this tan Δθ by the arctangent value calculation 47, the phase difference Δθ can be obtained.

【0022】図2の演算を数式で表すと下記の数8とな
る。但しこの数8の右辺の分母に記載のAは、前述した
数6に記載の値である。
The operation of FIG. 2 can be expressed by the following mathematical expression 8. However, A described in the denominator on the right side of Expression 8 is the value described in Expression 6 described above.

【0023】[0023]

【数8】 [Equation 8]

【0024】図3は図1の第1実施例と図2の第2実施
例との応用例を表した回路図である。図3の応用例回路
において、交流回路6に交流電圧検出器7を設けてアナ
ログ量の電圧信号を、アナログ入力回路50を構成して
いるアナロクフィルタ51とサンプルホルダ53とA/
D変換55とによりデジタル量に変換してデジタル演算
回路60へ与える。同様に交流電流検出器8が検出する
電流信号もアナログ入力回路50を構成しているアナロ
クフィルタ52とサンプルホルダ54とA/D変換56
とによりデジタル量に変換してデジタル演算回路60へ
与える。
FIG. 3 is a circuit diagram showing an application example of the first embodiment of FIG. 1 and the second embodiment of FIG. In the application example circuit of FIG. 3, an AC voltage detector 7 is provided in the AC circuit 6 to convert an analog voltage signal into an analog filter 51, a sample holder 53, an A /
It is converted into a digital amount by the D conversion 55 and given to the digital arithmetic circuit 60. Similarly, the current signal detected by the AC current detector 8 also includes the analog filter 52, the sample holder 54, and the A / D converter 56 that form the analog input circuit 50.
Is converted into a digital amount by and is given to the digital arithmetic circuit 60.

【0025】デジタル電圧信号はデジタルフィルタ61
で不要調波成分を取り除き、ゲイン補正63を介してメ
モリー66へ格納される。デジタル電流信号もデジタル
フィルタ62とゲイン補正64とを経てメモリー66へ
格納される。一方デジタルフィルタ61の出力から周波
数演算65が交流回路6の周波数を演算しているが、こ
の周波数が変動するとアナロクフィルタ51,52とデ
ジタルフィルタ61,62のゲインが変化する。よって
ゲイン補正63,64がこの周波数変動に伴うゲインの
変化を補正する。但し周波数変動に伴うアナロクフィル
タ51,52とデジタルフィルタ61,62のゲインの
変化が無視できる程度に小さく、演算結果の精度に影響
が無い場合は、ゲイン補正63,64を省略できるのは
勿論である。
The digital voltage signal is supplied to the digital filter 61.
The unnecessary harmonic component is removed by and stored in the memory 66 via the gain correction 63. The digital current signal is also stored in the memory 66 via the digital filter 62 and the gain correction 64. On the other hand, the frequency calculator 65 calculates the frequency of the AC circuit 6 from the output of the digital filter 61. If this frequency fluctuates, the gains of the analog filters 51 and 52 and the digital filters 61 and 62 change. Therefore, the gain corrections 63 and 64 correct the change in gain due to this frequency fluctuation. However, when the changes in the gains of the analog filters 51 and 52 and the digital filters 61 and 62 due to the frequency change are so small as to be negligible and the accuracy of the calculation result is not affected, the gain corrections 63 and 64 can be omitted. is there.

【0026】周波数演算65が演算する周波数fとメモ
リー66から読み出すサンプリングデータを有効電力演
算回路70に与えれば有効電力Pを出力し、位相差演算
回路80は位相差Δθを出力するが、有効電力演算回路
70は前述した図1に図示の計算手順で構成しており、
位相差演算回路80は図2に図示の計算手順で構成す
る。
If the frequency f calculated by the frequency calculator 65 and the sampling data read from the memory 66 are given to the active power calculation circuit 70, the active power P is output and the phase difference calculation circuit 80 outputs the phase difference Δθ. The arithmetic circuit 70 is configured by the calculation procedure shown in FIG.
The phase difference calculation circuit 80 is configured by the calculation procedure shown in FIG.

【0027】[0027]

【発明の効果】有効電力Pを数1を使って演算する従来
の演算方法や、位相差Δθを数2を使って演算する従来
の演算方法は、交流回路の周波数が変動すると、演算原
理から誤差を生じる。例えば交流回路の周波数が60Hzで
サンプリング周波数が 720Hzの場合に、交流周波数が±
5%変動する(即ち57Hzから63Hzまで変動する)と、有
効電力演算において最大で 7.8%の誤差を発生する。こ
れに対して、数4で表される有効電力Pの算出と、数8
で表される位相差Δθの算出には、周波数が変動しても
原理上誤差は生じない。本発明の計算手順に従って演算
回路を構成し、交流周波数が57Hzから63Hzまで変動した
場合の有効電力Pの総合誤差は0.13%以内であり、位相
差Δθの総合誤差は 0.1度以内を達成できており、デジ
タル制御を行う場合やデジタル保護リレーを使用する場
合の誤差を無視できる程度にまで小さくできる効果が得
られる。
The conventional calculation method for calculating the active power P by using the equation 1 and the conventional calculation method for calculating the phase difference Δθ by using the equation 2 are based on the calculation principle when the frequency of the AC circuit changes. It causes an error. For example, if the frequency of the AC circuit is 60Hz and the sampling frequency is 720Hz, the AC frequency is ±
A 5% fluctuation (that is, a fluctuation from 57Hz to 63Hz) causes a maximum error of 7.8% in the active power calculation. On the other hand, the calculation of the active power P represented by the equation 4 and the equation 8
In the calculation of the phase difference Δθ represented by, no error occurs in principle even if the frequency changes. The arithmetic circuit is configured according to the calculation procedure of the present invention, the total error of the active power P when the AC frequency fluctuates from 57 Hz to 63 Hz is within 0.13%, and the total error of the phase difference Δθ can be within 0.1 degree. Therefore, it is possible to obtain an effect that an error when performing digital control or when using a digital protection relay can be reduced to a negligible level.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1実施例を表した計算手順図FIG. 1 is a calculation procedure diagram showing a first embodiment of the present invention.

【図2】本発明の第2実施例を表した計算手順図FIG. 2 is a calculation procedure diagram showing a second embodiment of the present invention.

【図3】図1の第1実施例と図2の第2実施例との応用
例を表した回路図
FIG. 3 is a circuit diagram showing an application example of the first embodiment of FIG. 1 and the second embodiment of FIG.

【図4】有効電力の算出方法の従来例を示した計算手順
FIG. 4 is a calculation procedure diagram showing a conventional example of a method for calculating active power.

【図5】位相差の算出方法の従来例を示した計算手順図FIG. 5 is a calculation procedure diagram showing a conventional example of a phase difference calculation method.

【符号の説明】[Explanation of symbols]

6 交流回路 7 交流電圧検出器 8 交流電流検出器 11〜23 第1積演算〜第13積演算 24 サンプリング位相角演算 25 2乗値演算 31〜34 第1加算演算〜第4加算演算 35〜36 第1減算演算〜第2減算演算 41〜43 第1商演算〜第3商演算 45 正弦値演算 47 逆正接値演算 50 アナログ入力回路 51,52 アナログフィルタ 53,54 サンプルホルダ 55,56 A/D変換 60 デジタル演算回路 61,62 デジタルフィルタ 63,64 ゲイン補正 65 周波数演算 66 メモリー 70 有効電力演算回路 80 位相差演算回路 f 交流回路周波数 In 今回電流サンプルデータ In-1 前回電流サンプルデータ In-2 前々回電流サンプルデータ In-3 3回前電流サンプルデータ P 有効電力 T サンプリング周期 Vn 今回電圧サンプルデータ Vn-1 前回電圧サンプルデータ Vn-2 前々回電圧サンプルデータ Vn-3 3回前電圧サンプルデータ Δθ 位相差 θ サンプリング位相角6 AC circuit 7 AC voltage detector 8 AC current detector 11-23 First product operation-13th product operation 24 Sampling phase angle operation 25 Square value operation 31-34 First addition operation-4th addition operation 35-36 First subtraction operation to second subtraction operation 41 to 43 First quotient operation to third quotient operation 45 Sine value operation 47 Arctangent value operation 50 Analog input circuit 51,52 Analog filter 53,54 Sample holder 55,56 A / D Conversion 60 Digital calculation circuit 61,62 Digital filter 63,64 Gain correction 65 Frequency calculation 66 Memory 70 Active power calculation circuit 80 Phase difference calculation circuit f AC circuit frequency I n Current current sample data I n-1 Previous current sample data I n -2 second last current sample data I n-3 3 times before the current sample data P active power T sampling period V n now Voltage sample data V n-1 the previous voltage sample data V n-2 before last voltage sample data V n-3 3 times before voltage sample data Δθ phase difference θ sampling phase angle

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】交流回路の電圧と電流とを所定のサンプリ
ング周期で別々にサンプリングして得られる電圧データ
と電流データの少なくとも3回分をメモリーに記憶し、
電圧の今回分サンプリングデータと電流の今回分サンプ
リングデータとの乗算による第1積を演算し、電圧の前
回分サンプリングデータと電流の前回分サンプリングデ
ータとの乗算による第2積を演算し、電圧の前々回分サ
ンプリングデータと電流の前々回分サンプリングデータ
との乗算による第3積を演算し、電圧の今回分サンプリ
ングデータと電流の前々回分サンプリングデータとの乗
算による第4積を演算し、電圧の前々回分サンプリング
データと電流の今回分サンプリングデータとの乗算によ
る第5積を演算し、前記交流電圧の周波数と前記サンプ
リング周期と2πとを乗算してサンプリング位相角を求
めてこのサンプリング位相角の正弦値を演算し、このサ
ンプリング位相角正弦値の2乗を演算し、この2乗値を
4倍する第6積を演算し、前記第1積と第3積との和か
ら前記第4積と第5積とを差し引く第1加算を演算し、
この第1加算結果を前記第6積で除算する第1商を演算
し、この第1商と前記第2積との和を第2加算で演算
し、この第2加算結果を前記交流回路の有効電力とする
ことを特徴とする交流電気量のデジタル演算方法。
1. A memory stores at least three times of voltage data and current data obtained by separately sampling a voltage and a current of an AC circuit at a predetermined sampling period,
The first product is calculated by multiplying the current sampling data of the voltage and the current sampling data of the current, and the second product is calculated by multiplying the previous sampling data of the voltage and the previous sampling data of the current. The third product is calculated by multiplying the previous-second batch sampling data and the current previous-second batch sampling data, and the fourth product is calculated by multiplying the current-time previous sampling data by the current and the current previous-second batch sampling data. A fifth product is calculated by multiplying the sampling data by the current sampling data of the current, the frequency of the AC voltage is multiplied by the sampling period by 2π to obtain a sampling phase angle, and the sine value of this sampling phase angle is calculated. The square product of this sampling phase angle sine value is calculated, and the sixth product that multiplies this square value by 4 is obtained. Calculated and calculates a first adder subtracting said fourth product and the fifth product from the sum of the first product and the third product,
The first quotient of dividing the first addition result by the sixth product is calculated, the sum of the first quotient and the second product is calculated by the second addition, and the second addition result of the AC circuit is calculated. A method of digitally calculating the amount of alternating current electricity, which is characterized by using active power.
【請求項2】交流回路の電圧と電流とを所定のサンプリ
ング周期で別々にサンプリングして得られる電圧データ
と電流データの少なくとも3回分をメモリーに記憶し、
電圧の今回分サンプリングデータと電流の今回分サンプ
リングデータとの乗算による第1積を演算し、電圧の前
回分サンプリングデータと電流の前回分サンプリングデ
ータとの乗算による第2積を演算し、電圧の前々回分サ
ンプリングデータと電流の前々回分サンプリングデータ
との乗算による第3積を演算し、電圧の今回分サンプリ
ングデータと電流の前々回分サンプリングデータとの乗
算による第4積を演算し、電圧の前々回分サンプリング
データと電流の今回分サンプリングデータとの乗算によ
る第5積を演算し、電圧の今回分サンプリングデータと
電流の前回分サンプリングデータとの乗算による第7積
を演算し、電圧の前回分サンプリングデータと電流の今
回分サンプリングデータとの乗算による第8積を演算
し、前記交流電圧の周波数と前記サンプリング周期と2
πとの乗算により得られるサンプリング位相角の正弦値
を演算し、このサンプリング位相角正弦値の2乗を演算
し、前記第7積から第8積を差し引く第1減算を演算
し、この第1減算結果と前記サンプリング位相角正弦値
と4とを乗算する第9積を演算し、前記サンプリング位
相角正弦値の2乗値と前記第2積と4との乗算による第
10積を演算し、前記第1積と第3積と第10積との和
から前記第4積と第5積とを差し引く第3加算を演算
し、前記第9積をこの第3加算結果で除算する第2商を
演算し、この第2商の逆正接値を演算し、この逆正接値
を前記交流回路の電圧と電流の位相差とすることを特徴
とする交流電気量のデジタル演算方法。
2. A memory stores at least three times of voltage data and current data obtained by separately sampling the voltage and current of the AC circuit at a predetermined sampling period,
The first product is calculated by multiplying the current sampling data of the voltage and the current sampling data of the current, and the second product is calculated by multiplying the previous sampling data of the voltage and the previous sampling data of the current. The third product is calculated by multiplying the previous-second batch sampling data and the current previous-second batch sampling data, and the fourth product is calculated by multiplying the current-time previous sampling data by the current and the current previous-second batch sampling data. The fifth product is calculated by multiplying the sampling data by the current sampling data of the current, and the seventh product is calculated by multiplying the current sampling data of the voltage by the previous sampling data of the current, and the previous sampling data of the voltage is calculated. And the current sampling data of the current are multiplied to calculate the eighth product, The wavenumber sampling period and 2
The sine value of the sampling phase angle obtained by multiplication with π is calculated, the square of the sine value of the sampling phase angle is calculated, and the first subtraction that subtracts the eighth product from the seventh product is calculated. A ninth product is calculated by multiplying the subtraction result by the sampling phase angle sine value and 4, and a tenth product is calculated by multiplying the squared value of the sampling phase angle sine value by the second product and 4. A second quotient that calculates a third addition that subtracts the fourth product and the fifth product from the sum of the first product, the third product, and the tenth product, and divides the ninth product by the third addition result. Is calculated, and the arctangent value of the second quotient is calculated, and the arctangent value is used as the phase difference between the voltage and the current of the AC circuit.
JP02293494A 1994-02-22 1994-02-22 Digital calculation method of AC electricity quantity Expired - Lifetime JP3206273B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02293494A JP3206273B2 (en) 1994-02-22 1994-02-22 Digital calculation method of AC electricity quantity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02293494A JP3206273B2 (en) 1994-02-22 1994-02-22 Digital calculation method of AC electricity quantity

Publications (2)

Publication Number Publication Date
JPH07229933A true JPH07229933A (en) 1995-08-29
JP3206273B2 JP3206273B2 (en) 2001-09-10

Family

ID=12096468

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02293494A Expired - Lifetime JP3206273B2 (en) 1994-02-22 1994-02-22 Digital calculation method of AC electricity quantity

Country Status (1)

Country Link
JP (1) JP3206273B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005345124A (en) * 2004-05-31 2005-12-15 Sanyo Electric Co Ltd Data collector

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005345124A (en) * 2004-05-31 2005-12-15 Sanyo Electric Co Ltd Data collector
JP4628019B2 (en) * 2004-05-31 2011-02-09 三洋電機株式会社 Data collection device

Also Published As

Publication number Publication date
JP3206273B2 (en) 2001-09-10

Similar Documents

Publication Publication Date Title
EP0660120A1 (en) A method for the digital electronic measurement of periodic electrical quantities, and an instrument for the implementation of such a method
JP2689343B2 (en) AC power measuring device
CA2344645A1 (en) Method and device for determining the torque of an induction machine
JP3312504B2 (en) Position detection device
JPH07229933A (en) Digital calculation method for a.c. electricity quantity
JPS6234067A (en) Method and device for measuring active current and reactive current in alternating current system
JPH05252785A (en) Motor controller
JP2005295712A (en) Output current detection method of inverter device and device
JP2015169631A (en) resolver error correction structure, resolver and resolver error correction method
US6308139B1 (en) Digital process for determining the effective value of a periodic electric test signal
JP3307223B2 (en) Digital calculation method and calculation device for AC electricity quantity
JP3085496B2 (en) Sampling type measuring device
JP3612354B2 (en) Phase angle difference, frequency difference and frequency calculation method in digital type protective relay
JP2736810B2 (en) Average value measuring device
JP2982612B2 (en) PQ calculation correction method
JP2946152B2 (en) Frequency detector
JP2987635B2 (en) Digital signal processing method and apparatus
GB2163264A (en) Measurement of multi-phase electrical machine torque
JPH10148648A (en) Electric meter
JP2004170097A (en) Wattmeter and motor evaluation device using the same
JPH11326428A (en) Parameter measuring device for inverter circuit
JPH10243659A (en) Current control apparatus
JPS6128872A (en) Quantity of electricity measuring apparatus
JP2007309897A (en) Digital filter, and electronic watt-hour meter
JP2523787B2 (en) Digital type protective relay

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080706

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20080706

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090706

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090706

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20100706

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110706

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110706

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20120706

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120706

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130706

Year of fee payment: 12

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term