A kind of electric weight computing method, device and ammeter opertaing device
Technical field
The invention belongs to the electrical management field, relate in particular to a kind of electric weight computing method, device and ammeter opertaing device.
Background technology
Along with the accumulating over a long period of huge, the electric quantity data of power consumer quantity, with the change of power device in the electric process, the change of subscriber data, cause when systematic analysis is calculated and inquire about, can count the result efficiently, in time, exactly, become a basic ground, urgent problem.This also is each Utilities Electric Co. special problem of being concerned about in management.
Meanwhile, along with the develop rapidly of the communication technology, also lay a good foundation for the management of electric power demand side.GPRS (General Packet Radio Service) (the General Packet Radio Service that China Mobile releases, GPRS) and the CDMA of CHINAUNICOM (Code Division Multiple Access, CDMA) business has real-time online, wide coverage, cheap, the high reliability features of expense, electric power enterprise can utilize the advantage of GPRS/CDMA public communication network to overcome the shortcoming of conventional channels in the past, build with wireless public network be main telecommunication media, in conjunction with the open communication network of multiple communication mode.Foundation is based on the data center of electric energy data, and realize functions such as electric weight clearing, electrical energy consumption analysis, line loss analyzing, distribution transformer monitoring, load management on this basis, power consuming administrative system based on this, can improve the management and the operation level of Utilities Electric Co. after putting into operation greatly, stop swindle and electricity filching behavior, for improving the service quality of electric power enterprise, the economic benefit of enterprises that increases electric power provides technical guarantee.
In the prior art of recent development, utilize GPRS to unite the data transmit-receive function of net or WCDMA net, on corresponding ammeter, insert the managing electric quantity terminal, can gather the service data of ammeter in real time, can realize long-range distribution transforming monitoring, and realize functions such as running status demonstration, abnormal information warning, Power Quality Detection, line loss analyzing, load management, remote meter reading, the equilibrium analysis of circuit electric weight, customer service.The realization of these functions depends on quick, the accurately calculating of electric weight.The accurate calculating of electric weight must be considered the change of user in the power business operation that is taken place with the electric process amount of falling into a trap device.
Enumerate explanation below respectively:
Change table: refer to the operation that electric industry metrological service changes the watt-hour meter of operation for a certain reason, may produce when changing table and remedy electric weight.The table of this ammeter ends sign indicating number and changes after changing table, should note changing table that table handling brings and end sign indicating number and change when carrying out the electric weight statistics, changes the expression condition and then should carry out the segmentation statistics to electric weight in the timing statistics scope if exist.In changing table, note the table time of changing, old table and end that sign indicating number, new table are minimum, the information such as electric weight, old table address, new table address of remedying are used in order to the main website software analysis.
Change voltage current transformer: the replacing voltage current transformer causes calculating stoichiometric point voltage, electric current one sub-value changes with the ratio of two sub-values, directly influences various electric power calculated values.
Change the ammeter direction of current: can adjust because of the electric current of certain reason ammeter inserts direction, user's electricity consumption direction can change.
Bypass is for confession: refer to the situation that electric industry department replaces a certain working line of same voltage registration in the transformer station to power by the by-pass line of the different voltages registrations of transformer station under specific condition.When calculating electric weight, bypass is not carried out electric weight calculating as an independent circuit, and the electric weight that has its to produce will be separated to each quilt for calculating in the circuit.Bypass happens occasionally for supplying, and time length is uncertain, and concrete generation has the system manager to carry out manual typing for information, entry information comprises that bypass, bypass are for the road, in generation,, in generation, carried out can carrying out corresponding calculated according to entry information when electric weight calculates for the concluding time for the start time.
Remedy electric weight: because the power consumption that cause specific gauging table meter can't metering user in certain period, electric industry metrological service will manually remedy so, and the electric weight of benefit is called remedies electric weight.Change in the table process or watt-hour meter might be remedied when breaking down.
To above situation, system must provide the associated databases table, and a situation arises gives record to each pen.Calculate certain user's the interior electric weight of section sometime, must consider whether above operation took place therebetween.Can know that according to this calculating each time must be inquired about above-mentioned each database table, also will bring the prolongation greatly of computing time.Especially along with the electricity consumption number of users, image data quantity, when various operation note quantity all rises to certain degree, make the time of calculating an electric weight all more than several seconds, the suchlike operations that relate to a large amount of calculating such as electrical energy consumption analysis, line loss analyzing obviously will just can be finished in the long-term time.
In sum, when user's power business operation note changed, electric weight calculated a large amount of resource of waste.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of electric weight computing method, is intended to solve in the prior art when user's power business operation note changes, and electric weight calculates a large amount of problem of resource of waste.
The embodiment of the invention is achieved in that a kind of electric weight computing method, said method comprising the steps of:
Deposit table according to data base querying start-stop sign indicating number and electric weight calculating middle junction, wherein, described electric weight calculating middle junction is deposited table record has the business operation classification when the business operation record changes to reach and the corresponding intermediate value of this business operation variation;
Deposit table calculating electric weight according to start-stop sign indicating number that inquires and electric weight calculating middle junction.
Another purpose of the embodiment of the invention is to provide a kind of electric weight calculation element, and described device comprises:
Electric weight calculates the information inquiry module, be used for depositing table according to data base querying start-stop sign indicating number and electric weight calculating middle junction, wherein, described electric weight calculating middle junction is deposited table record has the business operation classification when the business operation record changes to reach and the corresponding intermediate value of this business operation variation;
The electric weight computing module is used for depositing table calculating electric weight according to start-stop sign indicating number that inquires and electric weight calculating middle junction.
Another purpose of the embodiment of the invention is to provide a kind of ammeter opertaing device, and described ammeter opertaing device includes an electric weight calculation element, and described device comprises:
Electric weight calculates the information inquiry module, be used for depositing table according to data base querying start-stop sign indicating number and electric weight calculating middle junction, wherein, described electric weight calculating middle junction is deposited table record has the business operation classification when the business operation record changes to reach and the corresponding intermediate value of this business operation variation;
The electric weight computing module is used for depositing table calculating electric weight according to start-stop sign indicating number that inquires and electric weight calculating middle junction.
The embodiment of the invention is deposited table according to data base querying start-stop sign indicating number and electric weight calculating middle junction, wherein, this electric weight calculating middle junction is deposited table record has the business operation classification when the business operation record changes to reach and the corresponding intermediate value of this business operation variation, and calculate middle junction according to the start-stop sign indicating number that inquires and electric weight and deposit table and calculate electric weight, the embodiment of the invention has reduced the cost that electric weight calculates, and has saved resource.
Description of drawings
Fig. 1 is the process flow diagram of the electric weight computing method that provide of the embodiment of the invention;
Fig. 2 is the structural drawing of the electric weight calculation element that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is deposited table according to data base querying start-stop sign indicating number and electric weight calculating middle junction, wherein, this electric weight calculates middle junction and deposits table record and the business operation classification when the business operation record changes is arranged and change corresponding intermediate value with this business operation, and calculates middle junction according to the start-stop sign indicating number that inquires and electric weight and deposit and show the calculating electric weight.
Fig. 1 shows the flow process of the electric weight computing method that the embodiment of the invention provides, and details are as follows.
In step S101, a database is set;
In step S102, when the business operation record changed, generation changed corresponding electric weight calculating middle junction with this and deposits table, and this record comprises the classification and and the corresponding intermediate value of this business operation variation of this business operation.
Use following database table in this method, now list main field:
1) table quantity calculation table code table:
Ammeter identity sign (Identity, ID);
Acquisition time;
A table sign indicating number reading, this table sign indicating number reading comprise forward meritorious, oppositely meritorious, forward is idle, oppositely idle, and record is total respectively, point, period readings such as paddy are put down at the peak;
2) replacing table meter changes multiplying power and changes the directional information table:
The table meter ID that changes;
The time of changing;
Change sign, this replacings sign comprise change voltage transformer (VT) (Potential Transformer, PT) (Current Trensformer CT), changes and shows and change direction summation current transformer;
New PT and CT;
The table sign indicating number reading of former table during replacing;
Change the table sign indicating number reading of back table;
3) bypass is for supplying table:
Affiliated table meter ID;
The table meter ID that substitutes;
The time that begins to substitute;
Finish the alternative time;
4) remedy the electric weight record:
Ammeter ID;
Begin the time of remedying;
Finish to remedy the time;
Remedy the electric weight number;
5) electric weight surplus table:
Ammeter ID;
The surplus time;
Comprehensive multiplying power;
Traffic flag:
The electric weight direction;
The surplus reading.
In step S103, the electric weight calculating middle junction that generates is deposited table deposit database in.
In step S104, deposit table according to data base querying start-stop sign indicating number and electric weight calculating middle junction, wherein, this electric weight calculating middle junction is deposited table record has the business operation classification when the business operation record changes to reach and the corresponding intermediate value of this business operation variation.
In step S105, deposit table calculating electric weight according to start-stop sign indicating number that inquires and electric weight calculating middle junction.
By the method that the embodiment of the invention provides, shortened the time that electric weight calculates greatly, saved resource.
The embodiment of the invention also provides a kind of ammeter opertaing device, and this ammeter opertaing device includes an electric weight calculation element, sees also Fig. 2.
Database is provided with module 11 database is set.
When business operation record changed, electric weight calculated middle junction and deposits table computing module 12 and generate and change a corresponding electric weight with this and calculate middle junction and deposit table, and wherein, this record comprises the classification and and the corresponding intermediate value of this business operation variation of this business operation.
Electric weight calculates middle junction and deposits table and preserve module 13 and the electric weight that generates is calculated middle junction deposit table and deposit database in.
Electric weight calculates information inquiry module 14 and deposits table according to data base querying start-stop sign indicating number and electric weight calculating middle junction, wherein, this electric weight calculating middle junction is deposited table record has the business operation classification when the business operation record changes to reach and the corresponding intermediate value of this business operation variation.
Electric weight computing module 15 is deposited table calculating electric weight according to start-stop sign indicating number that inquires and electric weight calculating middle junction.As embodiments of the invention, this electric weight calculates the database table of using and also includes: table quantity calculation table code table, replacing table meter change multiplying power and change directional information table, bypass for supplying table and remedying the electric weight record, the detailed content of the database table of using is above being stated, just repeats no more herein.
The embodiment of the invention is deposited table according to data base querying start-stop sign indicating number and electric weight calculating middle junction, wherein, this electric weight calculating middle junction is deposited table record has the business operation classification when the business operation record changes to reach and the corresponding intermediate value of this business operation variation, and calculate middle junction according to the start-stop sign indicating number that inquires and electric weight and deposit table and calculate electric weight, solved in the prior art when user's power business operation note changes, electric weight calculates a large amount of problem of resource of waste.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.