CN101718814A - Method for measuring and calculating electrical quantities of safety and stability control device based on FPGA - Google Patents

Method for measuring and calculating electrical quantities of safety and stability control device based on FPGA Download PDF

Info

Publication number
CN101718814A
CN101718814A CN200910212652A CN200910212652A CN101718814A CN 101718814 A CN101718814 A CN 101718814A CN 200910212652 A CN200910212652 A CN 200910212652A CN 200910212652 A CN200910212652 A CN 200910212652A CN 101718814 A CN101718814 A CN 101718814A
Authority
CN
China
Prior art keywords
fpga
value
current
phase
control device
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.)
Pending
Application number
CN200910212652A
Other languages
Chinese (zh)
Inventor
李秋华
宋锦海
宣筱青
李雪明
叶振风
张长银
徐军
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.)
Nanjing NARI Group Corp
State Grid Electric Power Research Institute
Original Assignee
Nanjing NARI Group Corp
State Grid Electric Power Research Institute
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 Nanjing NARI Group Corp, State Grid Electric Power Research Institute filed Critical Nanjing NARI Group Corp
Priority to CN200910212652A priority Critical patent/CN101718814A/en
Publication of CN101718814A publication Critical patent/CN101718814A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Emergency Protection Circuit Devices (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The invention discloses a method, which is used for measuring and calculating the electrical quantities of an electrical power line component based on an FPGA in real time to obtain effective three-phase voltage and current values, effective zero sequence voltage and current values, and the frequencies of all phases. The method comprises the following steps: firstly, receiving a sampling message of an IEC 61850-9-1 standard to acquire the current sampling value of each electrical quantity of the line component; performing FFT processing on the electrical quantities in the FPGA to obtain a real value and a virtual value of a fundamental component; and reading the real value and the virtual value out by a coordinate rotation digital computer (CORDIC) in the FPGA, calculating the effective three-phase voltage and current values, the effective zero voltage and current values, and current phase angles of three-phase voltage, and then calculating the frequency of each phase according to the phase angle by software. The method has the advantages of meeting the requirements of the complexity, high real-time property and high accuracy of the calculation of the electrical quantities when the safety and stability control device is switched in a plurality of lines in an intelligent power grid, and overcoming shortcomings in the conventional method.

Description

A kind of safety and stability control device method for measuring and calculating electrical of realizing based on FPGA
Technical field:
The invention belongs to power system automatic field, be a kind of based on FPGA (Field-Programmable GateArray, field programmable gate array) the electrical quantities measurement sampled value is carried out real-time parallel and calculate, obtain the method for A, B, C three-phase voltage current effective value, electric current and voltage zero-sequence component effective value and each phase frequency.Can satisfy the in real time high and high-precision requirement that the safety and stability control device electric parameters is calculated under the intelligent grid framework.
Background technology:
In traditional safety and stability control device of electric network, hardware is at first nursed one's health the electromagnetic transformer output signal, carries out fixed step size sampling (being generally weekly ripple 24 points) by the analog-to-digital conversion chip then, then calculates electric parameters based on fourier algorithm in software.Calculative electric parameters mainly comprises each phase voltage current effective value, electric current and voltage zero-sequence component effective value and each phase frequency in safety and stability control device.Wherein survey frequency adopts " zero passage relative method " that analog signal conversion is become square-wave signal usually, then in software based on surveying all method survey frequencies.Because CPU also need undertake complicated tasks such as electric power system fault judgement, so software adopts recursion discrete Fourier algorithm (DFT) rather than real time algorithm usually in order to save time when realizing fourier algorithm.
The developing direction of electrical network is to set up strong intelligent grid, requires the primary equipment digitizing, the secondary device networking.As the domestic digital transformer substation that has put into operation, its electronic type voltage, current transformer are directly changed into digital signal with the element simulation signal, send to merge cells by fiber optic Ethernet then, merge cells is at the equipment of process layer between electronic mutual inductor and bay device in the digital transformer substation, it with 7 current transformers and 5 voltage transformer (VT) combination framing, sends to measure and control device by fiber optic Ethernet according to IEC 61850-9-1 standard.Owing to corresponding circuit of a merge cells or element (the following circuit that all abbreviates as), and safety and stability control device need insert many circuits, this just requires CPU not only will finish existing functions such as electric parameters calculating, fault judgement in step-length in the time in real time, also to finish the fiber optic Ethernet multi-channel data and receive and handle, obviously unable to do what one wishes.So, adopt two CPU mode of operations in actual applications mostly, a CPU is responsible for fiber optic Ethernet sampled value data processing, and another CPU is responsible for electric parameters calculating and fault judgement is handled, and so not only causes unreliable factor to increase, brought simultaneously a new problem again, how to realize the data communication between two CPU, solution comprises: dual port RAM communication, high-speed serial communication etc., in fact these not only increase design cost, have improved design complexities simultaneously greatly.In addition,, can't accurately record frequency, and safety and stability control device is very high to the frequency measurement requirement, accuracy requirement 0.01Hz by hardware " zero passage relative method " because the electronic mutual inductor output signal is a digital signal.In fact, the software frequency measurement is calculated complicated, has further increased the weight of the CPU burden and has caused realizing difficulty.
Summary of the invention:
Goal of the invention of the present invention is to overcome the deficiency of existing method, design a kind of method for measuring and calculating electrical based on the FPGA realization, is applied to the real-time calculating of many power circuits of safety and stability control device under the intelligent grid framework or element electric parameters.
The present invention adopts following technical scheme to realize the foregoing invention purpose:
A kind of safety and stability control device method for measuring and calculating electrical of realizing based on FPGA may further comprise the steps:
(1) CPU receives the sampling message that merge cells sends, and obtains power circuit or element three-phase voltage, electric current instantaneous sampling value and electric current and voltage zero-sequence component instantaneous sampling value u a, i a, u b, i b, u c, i c, u 0, i 0
(2) CPU calculates buffer zone and writes above-mentioned electric parameters instantaneous value in FPGA, and starts calculating;
(3) the FFT processing module among the FPGA is carried out the FFT processing to electric parameters instantaneous value in the step (2), obtains the real part and the imaginary part of above-mentioned electric parameters fundametal compoment;
(4) real part and the imaginary values that obtains in rotation of coordinate computing machine (CORDIC) the module read step (3) among the FPGA, thus calculate three-phase voltage, current effective value, voltage, current zero sequence effective value U a, I a, U b, I b, U c, I c, U 0, I 0And the current phase angle of three-phase voltage
(5) the current phase angle of three-phase voltage that calculates of CPU read step (4)
Figure G2009102126520D0000032
And then calculate power circuit or element A, B, C three-phase frequency f a, f b, f c
(6) repeating step (1) begins next sampled value and calculates.
Further technical scheme of the present invention can be:
A kind of safety and stability control device method for measuring and calculating electrical of realizing based on FPGA, CPU reception sampling message is realized by fiber optic Ethernet in the described step (1).
Further technical scheme of the present invention can be:
A kind of safety and stability control device method for measuring and calculating electrical of realizing based on FPGA, the sampling message that CPU receives in the described step (1) is the sampled value message of IEC 61850-9-1 standard.
Effect and advantage adopt the inventive method to solve the problem that existing method exists, and have also satisfied the big and high requirement of real-time of many line electricity tolerance of safety and stability control device calculated amount under the intelligent grid simultaneously.CPU only needs to write the current sampled value of each phase voltage electric current to FPGA inside, starts then and calculates, and FPGA can calculate each electric parameters effective value and three-phase voltage phase angle in real time, and software just can calculate each phase frequency according to phase angle.In a word, adopt the inventive method speed advantage when calculating many line electricity tolerance fairly obvious, avoided problems such as hardware design complexity that based on dual-CPU architecture in the past brings and unreliable factor increase simultaneously again.
Description of drawings:
Fig. 1 is the inventive method flow chart of steps.
Fig. 2 is 1 circuit method for measuring and calculating electrical of safety and stability control device structural representation.
Fig. 3 is intelligent FFT processing module FFT_LINE cut-away view.
Fig. 4 is based on the method for measuring and calculating electrical software operation process flow diagram that FPGA realizes.
Fig. 5 is CPU software side of the present invention and FPGA hardware side data exchange synoptic diagram.
Fig. 6 is safety and stability control device phase-to phase fault sampling record ripple figure.
The inventive method that is based on Fig. 7 realize phase-to phase fault effective value calculated curve.
Measuring and calculating electrical structural representation when Fig. 8 is 4 circuits of safety and stability control device access.
Embodiment:
In being applied to the safety and stability control device development process of intelligent grid, consider that safety and stability control device sampling circuit element is more, cause the calculated amount complexity, so adopt our bright method, Fig. 1 is the inventive method flow chart of steps.Structural representation when Fig. 2 is 1 power circuit of safety and stability control device measuring and calculating or element, the CPU model is selected the MPC8323 of Freescale company, the integrated ethernet mac layer of this chip internal, outside sheet, expand PHY (Physical layer) chip and optical module, can receive the fiber optic Ethernet sampled value message that meets IEC 61850-9-1 standard that merge cells sends.The FPGA model is selected the EP3C10 of altera corp for use, and utilizing the VHDL hardware description language to design based on top-down method in FPGA is intelligent FFT processing module (FFT_LINE), rotation of coordinate computing machine (CORDIC) processing module and the startup register and the status register of arithmetic element with the circuit element.Be connected between CPU and the FPGA and comprise address bus, data bus and read-write control, chip selection signal etc.Start register among the FPGA and be used for CPU software control FPGA startup computing, whether status register is used to indicate the FPGA computing to finish.Fig. 3 is intelligent FFT processing module FFT_LINE cut-away view.Merge cells sends the circuit sampled value message that meets IEC 61850-9-1 standard in real time by fiber optic Ethernet, after software receives IEC 61850-9-1 message, the data waveform is carried out weekly 32 extractions of ripple, parses the current sampled value u of this circuit element a, i a, u b, i b, u c, i c, u 0, i 0Totally 8 electric parameters write the input block (BUFF) among Fig. 3, start FPGA then and calculate.Corresponding 1 32 word buffer zone of each electric parameters among Fig. 3, input BUFF size is 8 * 32 words totally 256 words.Intelligence FFT processing module contains the input data processing unit, its 32 point data that will write each electric parameters input BUFF recently copy to calculates computing among the BUFF, like this to each electric parameters, only need the current sampled value of input just can carry out real-time FFT and handle, realized Intelligent treatment continuous 32 point data of a cycle that deposits the input block recently in.In FFT_LINE, the FFT of 8 electric parameters handles by FFT_LINE core controller control serial processing.After the computing of intelligence FFT processing module finishes each electric parameters fundametal compoment real part and imaginary values are kept in the output BUFF, then the rotation of coordinate computer processing module reads each electric parameters fundametal compoment real part and the imaginary values among the FFT_LINE module output BUFF, calculates three-phase voltage effective value, three-phase current effective value and electric current and voltage zero sequence effective value U a, I a, U b, I b, U c, I c, U 0, I 0, also calculate the current phase angle of three-phase voltage simultaneously And send computing to CPU and finish signal, a circuit element FPGA is about 40us operation time.When software judge FPGA calculate finish after, just read FPGA operation result U a, I a, U b, I b, U c, I c, U 0, I 0, and according to current phase angle
Figure G2009102126520D0000052
Phase angle with all wavefront calculating
Figure G2009102126520D0000053
Calculate each phase frequency f of circuit element a, f b, f c, so far, calculate 1 line electricity tolerance according to current sampled value and finish, enter next sampled value and calculate in real time.
Because electric parameters ripple 32 point samplings weekly, the desirable power frequency 50Hz of electric system, so the inventive method adopts 1600Hz regularly to interrupt in software design, i.e. timing step-length 625us.In order further to improve software operation efficient, the present invention has adopted CPU software and FPGA hardware flowing water operation mechanism in the specific implementation, can avoid software to wait for that the FPGA computing finishes, and concrete software flow is seen accompanying drawing 4.Whether software is had no progeny in entering, at first inquire about the FPGA running status and finish, and the FPGA computing finishes certainly already under the normal condition, because FPGA operation only 40us consuming time, and time between interruptions 625us.Read the electric current and voltage effective value U that FPGA calculates a, I a, U b, I b, U c, I c, U 0, I 0And angle values
Figure G2009102126520D0000054
Basis then Calculate the circuit element frequency f a, f b, f cAnd then extract the current sampled value of circuit and write the corresponding electric parameters input of FPGA BUFF, start computing then.Accompanying drawing 5 is CPU software of the present invention, FPGA hardware data exchange synoptic diagram.
Accompanying drawing 6 is safety and stability control device line attachment A, sampled value wave record playback curve when B mutually phase-to phase fault takes place, Fig. 7 is based on the A that the inventive method is calculated, B phase effective value curve, through long-time testing authentication, these effective value computing method have higher precision than classic method, reach 1/8192.For the precision of verifying software frequency measurement, the present invention utilizes protection tester simulation 45Hz-55Hz operation power circuit the software frequency-measurement accuracy to be verified result such as table 1 reach the 0.01Hz accuracy requirement of safety and stability control device.
Table 1
The test sequence number Reference value (Hz) Actual measured value (Hz) Error (Hz)
??1 ??45.000 ??44.997 ??0.003
The test sequence number Reference value (Hz) Actual measured value (Hz) Error (Hz)
??2 ??46.000 ??46.003 ??0.003
??3 ??47.000 ??47.002 ??0.002
??4 ??48.000 ??48.002 ??0.002
??5 ??49.000 ??49.001 ??0.001
??6 ??50.000 ??49.999 ??0.001
??7 ??51.000 ??50.999 ??0.001
??8 ??52.000 ??51.998 ??0.002
??9 ??53.000 ??53.001 ??0.001
??10 ??54.000 ??53.997 ??0.003
??11 ??55.000 ??54.996 ??0.004
When safety and stability control device inserts many circuit elements, now suppose 4 circuit elements, integrated 4 intelligent FFT processing module FFT_LINE in fpga chip then, Fig. 8 is 4 circuit measuring and calculating electricals of the safety and stability control device structural representation that adopts the inventive method, 4 shared 1 CORDIC modules of FFT_LINE module, consume about 4000 triggers of FPGA resource, i.e. every about 1000 triggers of circuit mean consumption FPGA resource this moment.Independent parallel work fully between each FFT_LINE module in the FPGA is so 4 circuit FPGA still are about 40us operation time.The same Fig. 4 of software operation process flow diagram, just this moment, software need receive 4 road fiber optic Ethernet sampled value messages, and extracted the current sampled value of each bar circuit, write respectively then that each bar circuit input BUFF calculates among the FPGA.On the MPC8323 processor platform, the auxiliary FPGA of software finishes 4 line electricity tolerance and calculates about 100us consuming time altogether, and be 625us break period, and visible software also has a large amount of time to be used for tasks such as fault judgement.
The foregoing description is the result show: the inventive method can satisfy the requirement of electric parameters calculating complexity, high real-time, high precision computation when safety and stability control device inserts many circuits under the intelligent grid.

Claims (3)

1. a safety and stability control device method for measuring and calculating electrical of realizing based on FPGA is characterized in that, may further comprise the steps:
(1) CPU receives the sampling message that merge cells sends, and obtains power circuit or element three-phase voltage, electric current instantaneous sampling value and electric current and voltage zero-sequence component instantaneous sampling value u a, i a, u b, i b, u c, i c, u 0, i 0
(2) CPU calculates buffer zone and writes above-mentioned electric parameters instantaneous value in FPGA, and starts calculating;
(3) the FFT processing module among the FPGA is carried out the FFT processing to electric parameters instantaneous value in the step (2), obtains the real part and the imaginary part of above-mentioned electric parameters fundametal compoment;
(4) real part and the imaginary values that obtains in rotation of coordinate computing machine (CORDIC) the module read step (3) among the FPGA, thus calculate three-phase voltage, current effective value, voltage, current zero sequence effective value U a, I a, U b, I b, U c, I c, U 0, I 0And the current phase angle of three-phase voltage
Figure F2009102126520C0000011
(5) the current phase angle of three-phase voltage that calculates of CPU read step (4)
Figure F2009102126520C0000012
And then calculate power circuit or element A, B, C three-phase frequency f a, f b, f c
(6) repeating step (1) begins next sampled value and calculates.
2. a kind of safety and stability control device method for measuring and calculating electrical of realizing based on FPGA according to claim 1 is characterized in that:
CPU reception sampling message is realized by fiber optic Ethernet in the described step 1).
3. a kind of safety and stability control device method for measuring and calculating electrical of realizing based on FPGA according to claim 1 is characterized in that:
The sampling message that CPU receives in the described step 1) is the sampled value message of IEC 61850-9-1 standard.
CN200910212652A 2009-11-13 2009-11-13 Method for measuring and calculating electrical quantities of safety and stability control device based on FPGA Pending CN101718814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910212652A CN101718814A (en) 2009-11-13 2009-11-13 Method for measuring and calculating electrical quantities of safety and stability control device based on FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910212652A CN101718814A (en) 2009-11-13 2009-11-13 Method for measuring and calculating electrical quantities of safety and stability control device based on FPGA

Publications (1)

Publication Number Publication Date
CN101718814A true CN101718814A (en) 2010-06-02

Family

ID=42433418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910212652A Pending CN101718814A (en) 2009-11-13 2009-11-13 Method for measuring and calculating electrical quantities of safety and stability control device based on FPGA

Country Status (1)

Country Link
CN (1) CN101718814A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346455A (en) * 2011-04-29 2012-02-08 山东科汇电力自动化有限公司 Design method of sampling module
CN103023392A (en) * 2012-11-26 2013-04-03 江苏力普电子科技有限公司 Low-voltage frequency converter with rotate speed tracking start
CN111781415A (en) * 2020-07-10 2020-10-16 陕西航空电气有限责任公司 Real-time calculation method for effective value of alternating voltage suitable for DSP controller
CN113034307A (en) * 2021-03-05 2021-06-25 西安热工研究院有限公司 Data acquisition method for power enterprise
CN114089031A (en) * 2021-10-11 2022-02-25 北京智芯微电子科技有限公司 Electric energy metering chip and harmonic power factor calculation method and device thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346455A (en) * 2011-04-29 2012-02-08 山东科汇电力自动化有限公司 Design method of sampling module
CN102346455B (en) * 2011-04-29 2013-07-10 山东科汇电力自动化有限公司 Design method of sampling module
CN103023392A (en) * 2012-11-26 2013-04-03 江苏力普电子科技有限公司 Low-voltage frequency converter with rotate speed tracking start
CN111781415A (en) * 2020-07-10 2020-10-16 陕西航空电气有限责任公司 Real-time calculation method for effective value of alternating voltage suitable for DSP controller
CN111781415B (en) * 2020-07-10 2023-02-28 陕西航空电气有限责任公司 Real-time calculation method for effective value of alternating voltage suitable for DSP controller
CN113034307A (en) * 2021-03-05 2021-06-25 西安热工研究院有限公司 Data acquisition method for power enterprise
CN114089031A (en) * 2021-10-11 2022-02-25 北京智芯微电子科技有限公司 Electric energy metering chip and harmonic power factor calculation method and device thereof

Similar Documents

Publication Publication Date Title
CN103675522B (en) The multi-functional secondary device of a kind of intelligent substation towards interval
CN101515015B (en) Power quality monitoring and recording device of power system
CN102401871B (en) Failure message integrated device based on FPGA and ARM hardware platform
CN103336264B (en) Digital electric energy meter quantity value tracing system based on analog quantity detection and digital electric energy meter quantity value tracing method based analog quantity detection
CN201993462U (en) Three-phase intelligent electric energy meter checking device
CN101692104A (en) Power quality and synchronized phasor monitoring device for power system
CN201859213U (en) Intelligent energy meter verifying device
CN103472432A (en) Intelligent substation electric energy measuring secondary circuit real load error detection device and method
CN101718814A (en) Method for measuring and calculating electrical quantities of safety and stability control device based on FPGA
CN104502735A (en) Three-phase unbalance monitoring system for low-voltage power distribution cabinet
CN201569691U (en) Electric power quality monitoring and synchronous phasor monitoring device of power system
CN103472433A (en) Intelligent substation electric energy measuring secondary system virtual load error detection device and method
CN106483397A (en) A kind of electric energy quality detection device of high accuracy high bandwidth and measuring method
CN201402287Y (en) Voltage drop detecting device of secondary circuit of voltage transformer
CN101968537B (en) Error magnitude calibration device and transferring method for digital power quality analyzer
CN206248746U (en) A kind of power network electric energy quality monitoring terminal
CN107478881A (en) Three-phase electric energy meter by-pass current detection method and its system
CN202230155U (en) Three-phase digital intelligent electric energy quality detection device
CN201654223U (en) Verification device for electric energy meters
CN207036924U (en) Electric energy measurement multilevel iudge device
CN203433104U (en) Real load error detector for secondary electric-energy metering loop of intelligent transformer station
CN205643688U (en) Single -phase electric energy meter detection device
CN105301449A (en) Portable line loss measuring and calculating apparatus for power distribution network
CN204374309U (en) A kind of three-phase imbalance monitoring system being applicable to low-voltage distribution cabinet
CN106405477A (en) Evaluation method and device for metering performance under dynamic load

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100602