CN107918052A - The compensation calculation method of load curve - Google Patents

The compensation calculation method of load curve Download PDF

Info

Publication number
CN107918052A
CN107918052A CN201711033468.0A CN201711033468A CN107918052A CN 107918052 A CN107918052 A CN 107918052A CN 201711033468 A CN201711033468 A CN 201711033468A CN 107918052 A CN107918052 A CN 107918052A
Authority
CN
China
Prior art keywords
point
intermediate variable
time
record
load curve
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
CN201711033468.0A
Other languages
Chinese (zh)
Other versions
CN107918052B (en
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.)
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
Wasion Group Co Ltd
Original Assignee
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
Wasion Group 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 State Grid Corp of China SGCC, China Electric Power Research Institute Co Ltd CEPRI, Wasion Group Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201711033468.0A priority Critical patent/CN107918052B/en
Publication of CN107918052A publication Critical patent/CN107918052A/en
Application granted granted Critical
Publication of CN107918052B publication Critical patent/CN107918052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R22/00Arrangements for measuring time integral of electric power or current, e.g. electricity meters
    • G01R22/06Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
    • G01R22/10Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods using digital techniques
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of compensation calculation method of load curve, including record the time point of power down and the time point re-powered;Using the time point of power down and the time apart from particular point in time is converted into as starting point, and the time point re-powered is scaled the time apart from particular point in time as end point;The record strip number required supplementation between starting point to end point is calculated using acyclic computational methods;Since the power down time point of record, the data of obtained record strip number are disposably supplemented, so as to complete the compensation of load curve.The present invention replaces former cycle calculations method by using acyclic computational methods and calculates the data amount check required supplementation with, the extremely abbreviation realization of function, sentence is succinct, use this algorithm function, properties of product can be greatly lifted, especially need the occasion called repeatedly;Finally, the method for the present invention fast response time, computing is quick and meets that national standard, method are simple and reliable.

Description

The compensation calculation method of load curve
Technical field
Present invention relates particularly to a kind of compensation calculation method of load curve.
Background technology
With the development and the improvement of people's living standards of national economy technology, electric energy has become the daily production of people With essential secondary energy sources in life, production and life to people bring endless facility.
Unique parts of the electric energy meter as electrical energy measurement in electric system, its importance are self-evident.At present, in ammeter In (charged pool power supply have time clock feature) industry, load curve is that one kind is in daily use and very important part.Load curve Mean ammeter by the voltage in a certain fixed intervals cycle (such as 1 minute, 5 minutes, 10 minutes) recording electrical meter operational process, These information are drawn as curve by the information such as electric current, electricity in chronological order.Load curve have the function of it is very more, including side Customer analysis electricity consumption situation is helped, helps user to verify whether user has situations such as power stealing, analyzes ammeter operating status, and work as When exception or query occurs in main station system, the load curve in table can be ferreted out to compare and analyze.So now Society's increasingly flourishing epoch, the stored record of load curve are extremely important.
At present, electric energy meter be with (such as 1 minute, 5 minutes, 10 minutes) a certain fixed intervals cycle storage voltage, electric current, The data such as electricity, after some time that has a power failure, then after the power is turned on, are mended to ensure the continuity of load curve, it is necessary to calculate after the power is turned on The load curve record number of power failure is repaid, compensation way is all supplement is by the time point of the record in need in power failure section One specific value, such as 0 or 1 etc.;Current general calculating process is as follows:
1. ammeter records power down time, form:Time-division date (year recording interval be 00-99, such as 1 day 10 January in 2017 Point 05 minute, then be recorded as 17.01.01.10:05);
2. ammeter powers on, ammeter time, i.e., the time re-powered after power down are obtained;
3. 0 point divided when power down time (time-division date) Old_Rtc_Time is converted into distance 1 day 0 January in 2000 Clock number (needs to consider leap year situation);
4. 0 point divided when power-on time (time-division date) New_Rtc_Time is converted into distance 1 day 0 January in 2000 Clock number (needs to consider leap year situation), identical with the conversion method of power down time;
5. step-length is used by starting point of the number of minutes of power down time progressively to be compared for 1, if want gap periods compensation Points, often run into a gap periods, by compensation points plus 1, iterative cycles are until the number of minutes of power-on time, and round-robin algorithm is most Power down time is obtained eventually records number to the period load curve to be compensated altogether is powered on;
After 6. load curve record number renewal has compensated, ammeter is continued to run with by the load curve number after compensation.
But above-mentioned round-robin algorithm, due to using step-length progressively to be compared for 1 circulation, take very long, monopolize MCU, Speed responsive is slow, when serious program operation will be caused " false crash " phenomenon of card machine occur, especially power off time span is big, non- Chang Mingxian.Such as, it is assumed that power down time is 17 year 18 minutes January 1 day 2 point, and power-on time is 17 year 08 minute May 20 day 8 point, load In 1 minute storage cycle of curve, can be scaled (17*365+ 17 year 18 minutes January 1 day 2 point by power down time by the above process 5+1) * 24*60+2*60+18=8943978 (minute), similarly power-on time is to be scaled (17* 17 year 08 minute May 20 day 8 point 365+5+31+28+31+30+20) * 24*60+8*60+8=9144488 (minute) are, it is necessary to which the number of circulation is:End point minute Number-starting point the number of minutes=9144488-8943978=200510 times.When the memory gap cycle is 1 minute, compensation The record number of load curve is equal to 200510;Similarly assume the memory gap cycle to be revised as 5 minutes, also to circulate 200510 Secondary, the record number of the load curve of compensation is equal to 40102.Program repeat is needed to exist from the point of view of cycle-index 200510 times is needed This runs always, very time-consuming, it will " false crash " phenomenon occurs, is not suitable with for ammeter compensation calculation.
The content of the invention
It is an object of the invention to provide a kind of fast response time, computing is quick and meets that national standard, method simply may be used The compensation calculation method of the load curve leaned on.
The compensation calculation method of this load curve provided by the invention, includes the following steps:
S1. the time point of electric energy meter record power down and the time point re-powered;
S2. the time point of power down is converted into the time apart from particular point in time as starting point by electric energy meter, while will weight The time point newly powered on is scaled the time apart from particular point in time as end point;
S3. according to the obtained starting points of step S3 and end point, calculated using acyclic computational methods from starting point to knot The record strip number required supplementation between spot;
S4. since the power down time point of record, the disposable data for supplementing the record strip number that step S3 is obtained, so that complete Into the compensation of load curve.
Record time point described in step S1 include record power down and the year, month, day re-powered, when and divide.
0 divides when particular point in time described in step S2 is 1 day 0 January in 2000.
The record required supplementation between starting point to end point is calculated using acyclic computational methods described in step S3 Bar number, specially calculates record strip number using following steps:
A. the size of starting point and end point is judged, so as to judge whether starting point and end point are wrong;
B. it is starting point+1 to record the first intermediate variable, while it is end point to record the second intermediate variable;
C. difference of the 3rd intermediate variable for the second intermediate variable and the first intermediate variable is recorded;
Whether the memory gap cycle for D. judging load curve is 1:If the memory gap cycle of load curve is 1, It is the 3rd intermediate variable+1 to the record strip number for finally needing to compensate;
If E. the memory gap cycle of load curve be not 1, the 4th intermediate variable of record for the 3rd intermediate variable divided by Memory gap cycle and rounding;The 5th intermediate variable is recorded at the same time as the first intermediate variable divided by memory gap cycle and remainder, The 6th intermediate variable is recorded as the second intermediate variable divided by memory gap cycle and remainder;
F. judge whether the 5th intermediate variable is more than whether the 6th intermediate variable or the 5th intermediate variable are 0:
If it is 0 that the 5th intermediate variable, which is more than the 6th intermediate variable or the 5th intermediate variable, finally needed to compensate Record strip number be the 4th intermediate variable+1, the record strip number for otherwise finally needing to compensate is the 4th intermediate variable.
The compensation calculation method of this load curve provided by the invention, original is replaced by using acyclic computational methods Cycle calculations method, there is good versatility, can consult and use, has good in similar requirement in different fields Adaptability;And the data amount check that requires supplementation with calculated using acyclic algorithm, and the extremely abbreviation realization of function, sentence letter It is clean, using this algorithm function, properties of product can be greatly lifted, especially need the occasion called repeatedly;Finally, it is of the invention Method fast response time, computing is quick and meets that national standard, method are simple and reliable.
Brief description of the drawings
Fig. 1 is the method flow diagram of the method for the present invention.
Fig. 2 is the flow chart of the acyclic algorithm in the method for the present invention.
Embodiment
It is the method flow diagram of the method for the present invention as shown in Figure 1:The compensation calculation of this load curve provided by the invention Method, includes the following steps:
S1. the time point of electric energy meter record power down and the time point re-powered;Record time point include record power down and The year, month, day that re-powers, when and point, for example power down point is 05 minute January 1 day 10 point in 2017, then is recorded as 17.01.01.10:05;
S2. the time point of power down is converted into the time apart from particular point in time as starting point by electric energy meter, while will weight The time point newly powered on is scaled the time apart from particular point in time as end point;Particular point in time can use existing general Time point, i.e. 1 day 0 January in 2000 when 0 divide;Using power down time point apart from particular point in time the number of minutes as starting point, with Time point is re-powered apart from the number of minutes at feature time point as end point;
S3. according to the obtained starting points of step S3 and end point, calculated using acyclic computational methods from starting point to knot The record strip number required supplementation between spot;Specially record strip number is calculated using following steps:
A. the size of starting point and end point is judged, so as to judge whether starting point and end point are wrong;
B. it is starting point+1 to record the first intermediate variable, while it is end point to record the second intermediate variable;
C. difference of the 3rd intermediate variable for the second intermediate variable and the first intermediate variable is recorded;
Whether the memory gap cycle for D. judging load curve is 1:If the memory gap cycle of load curve is 1, It is the 3rd intermediate variable+1 to the record strip number for finally needing to compensate;
If E. the memory gap cycle of load curve be not 1, the 4th intermediate variable of record for the 3rd intermediate variable divided by Memory gap cycle and rounding;The 5th intermediate variable is recorded at the same time as the first intermediate variable divided by memory gap cycle and remainder, The 6th intermediate variable is recorded as the second intermediate variable divided by memory gap cycle and remainder;
F. judge whether the 5th intermediate variable is more than whether the 6th intermediate variable or the 5th intermediate variable are 0:
If it is 0 that the 5th intermediate variable, which is more than the 6th intermediate variable or the 5th intermediate variable, finally needed to compensate Record strip number be the 4th intermediate variable+1, the record strip number for otherwise finally needing to compensate is the 4th intermediate variable;
S4. since the power down time point of record, the disposable data for supplementing the record strip number that step S3 is obtained, so that complete Into the compensation of load curve.
From the above it can be seen that, it is assumed that power down time is 17 year 18 minutes January 1 day 2 point, and power-on time is in May, 17 20 days 8 points 08 minute, 1 minute storage cycle of load curve, pass through the present invention acyclic computational methods processing, the value of calculating When the memory gap cycle is 1 minute, the record number of the load curve of compensation is equal to 200510;Similarly assume storage Gap periods are revised as 5 minutes, and the record number of the load curve of compensation is equal to 40102.It can be seen that the method for the present invention and existing The bar number for having the supplementary data that technology is calculated is consistent, but the method for the present invention uses acyclic computational methods, journey Only needs order performs sequence, without circulation, therefore only needs the calculating of simple several steps to draw, is greatly shortened Run time.
With the MCU master chips of certain famous brand name, there are following data in 24M dominant frequency actual tests:
Former cycle calculations method is setting span for 8 months, it is necessary to which cycle-index is about 8*30*24*60=345600 Secondary, program, which calculates elapsed time, about needs 26 seconds, and former cycle calculations method is setting span for 12 months, it is necessary to which cycle-index is big About 365*24*60=525600 times, program, which calculates elapsed time, about needs 48 seconds.Using acyclic computational methods, program The elapsed time of above-mentioned time span is calculated within 2mS, is influenced from time span, compensation numerical value can be computed correctly out, Do not influence the normal operation of program, solve ammeter and calculate that time-consuming when compensating load curve, improve response speed, no matter when Between span it is much, occur without card machine pause " false crash " phenomenon so that the smooth operations of MCU, be greatly shortened calculating operation when Between, significant effect.

Claims (4)

1. a kind of compensation calculation method of load curve, includes the following steps:
S1. the time point of electric energy meter record power down and the time point re-powered;
S2. the time point of power down is converted into the time apart from particular point in time as starting point by electric energy meter, at the same will again on The time point of electricity is scaled the time apart from particular point in time as end point;
S3. according to the obtained starting points of step S3 and end point, calculated using acyclic computational methods from starting point to end point Between the record strip number that requires supplementation with;
S4. since the power down time point of record, the disposable data for supplementing the record strip number that step S3 is obtained, so as to complete to bear The compensation of lotus curve.
2. the compensation calculation method of load curve according to claim 1, it is characterised in that during record described in step S1 Between point include record power down and re-power year, month, day, when and minute.
3. the compensation calculation method of load curve according to claim 1, it is characterised in that during specific described in step S2 Between point 0 minute when being 1 day 0 January in 2000.
4. the compensation calculation method of the load curve according to one of claims 1 to 3, it is characterised in that described in step S3 The record strip number required supplementation between starting point to end point is calculated using acyclic computational methods, specially using following step It is rapid to calculate record strip number:
A. the size of starting point and end point is judged, so as to judge whether starting point and end point are wrong;
B. it is starting point+1 to record the first intermediate variable, while it is end point to record the second intermediate variable;
C. difference of the 3rd intermediate variable for the second intermediate variable and the first intermediate variable is recorded;
Whether the memory gap cycle for D. judging load curve is 1:If the memory gap cycle of load curve is 1, obtain most The record strip number for needing to compensate eventually is the 3rd intermediate variable+1;
If E. the memory gap cycle of load curve is not 1, the 4th intermediate variable of record is the 3rd intermediate variable divided by storage Gap periods and rounding;The 5th intermediate variable is recorded at the same time as the first intermediate variable divided by memory gap cycle and remainder, record 6th intermediate variable is the second intermediate variable divided by memory gap cycle and remainder;
F. judge whether the 5th intermediate variable is more than whether the 6th intermediate variable or the 5th intermediate variable are 0:
If it is 0 that the 5th intermediate variable, which is more than the 6th intermediate variable or the 5th intermediate variable, obtain finally needing the note compensated Record article number is the 4th intermediate variable+1, and the record strip number for otherwise finally needing to compensate is the 4th intermediate variable.
CN201711033468.0A 2017-10-30 2017-10-30 Compensation calculation method of load curve Active CN107918052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711033468.0A CN107918052B (en) 2017-10-30 2017-10-30 Compensation calculation method of load curve

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711033468.0A CN107918052B (en) 2017-10-30 2017-10-30 Compensation calculation method of load curve

Publications (2)

Publication Number Publication Date
CN107918052A true CN107918052A (en) 2018-04-17
CN107918052B CN107918052B (en) 2020-02-07

Family

ID=61894963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711033468.0A Active CN107918052B (en) 2017-10-30 2017-10-30 Compensation calculation method of load curve

Country Status (1)

Country Link
CN (1) CN107918052B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108508248A (en) * 2018-04-23 2018-09-07 威胜集团有限公司 Data for electric energy meter mend settlement method
CN109490618A (en) * 2018-09-30 2019-03-19 宁波三星智能电气有限公司 A kind of amended record method of load curves of electric energy meter
CN109490611A (en) * 2018-10-29 2019-03-19 宁波三星智能电气有限公司 A kind of time counting method of embedded device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654531A (en) * 2011-03-04 2012-09-05 河南电力试验研究所 Remedying method and remedying device of lacked electric energy qualitative data
CN103424733A (en) * 2013-08-12 2013-12-04 江苏林洋电子股份有限公司 Correction method for digital quantity input electric energy information sampling data loss
CN104200395A (en) * 2014-08-22 2014-12-10 国家电网公司 Technology for achieving missing data intelligent automatic additional recording based on automatic additional recording strategy definition
CN105930930A (en) * 2016-04-21 2016-09-07 国家电网公司 Load data calibration method based on load characteristic analysis and load prediction technology
CN106203741A (en) * 2016-08-10 2016-12-07 国家电网公司 Multi-element heterogeneous Data Cleaning Method for network load prediction
CN106372763A (en) * 2016-10-25 2017-02-01 国家电网公司 Improved-support-vector-machine-based power load prediction correction method
CN106651651A (en) * 2016-12-12 2017-05-10 全球能源互联网研究院 Data filling method and device for utilization power curve of grid user

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654531A (en) * 2011-03-04 2012-09-05 河南电力试验研究所 Remedying method and remedying device of lacked electric energy qualitative data
CN103424733A (en) * 2013-08-12 2013-12-04 江苏林洋电子股份有限公司 Correction method for digital quantity input electric energy information sampling data loss
CN104200395A (en) * 2014-08-22 2014-12-10 国家电网公司 Technology for achieving missing data intelligent automatic additional recording based on automatic additional recording strategy definition
CN105930930A (en) * 2016-04-21 2016-09-07 国家电网公司 Load data calibration method based on load characteristic analysis and load prediction technology
CN106203741A (en) * 2016-08-10 2016-12-07 国家电网公司 Multi-element heterogeneous Data Cleaning Method for network load prediction
CN106372763A (en) * 2016-10-25 2017-02-01 国家电网公司 Improved-support-vector-machine-based power load prediction correction method
CN106651651A (en) * 2016-12-12 2017-05-10 全球能源互联网研究院 Data filling method and device for utilization power curve of grid user

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108508248A (en) * 2018-04-23 2018-09-07 威胜集团有限公司 Data for electric energy meter mend settlement method
CN108508248B (en) * 2018-04-23 2020-08-25 威胜集团有限公司 Data compensation settlement method for electric energy meter
CN109490618A (en) * 2018-09-30 2019-03-19 宁波三星智能电气有限公司 A kind of amended record method of load curves of electric energy meter
CN109490618B (en) * 2018-09-30 2020-12-15 宁波三星智能电气有限公司 Method for supplementing load curve of electric energy meter
CN109490611A (en) * 2018-10-29 2019-03-19 宁波三星智能电气有限公司 A kind of time counting method of embedded device
CN109490611B (en) * 2018-10-29 2021-03-05 宁波三星智能电气有限公司 Time statistical method for embedded equipment

Also Published As

Publication number Publication date
CN107918052B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN107918052A (en) The compensation calculation method of load curve
CN110457867A (en) A kind of time series data based on machine learning is filled up and restoring method
CN101741086A (en) Method for comprehensively evaluating precision of stability calculation models and parameters based on PMU data
Gontarz et al. Resource consumption monitoring in manufacturing environments
CN107992520B (en) Abnormal electricity consumption identification method based on electricity consumption behavior track
CN104657788A (en) Method for predicting key industrial electricity consumption based on industrial condition index
CN107730097B (en) Bus load prediction method and device and computing equipment
CN109636035A (en) Load forecasting model creation method and device, Methods of electric load forecasting and device
CN107909508A (en) A kind of distribution transformer load abnormality alarming method
CN109490618A (en) A kind of amended record method of load curves of electric energy meter
CN106324513B (en) A kind of battery capacity Display Realization method of current discharge
CN116632838A (en) Method and device for analyzing electric energy supply of power generation enterprise
CN101727098B (en) Cycle time target measuring method and system
Wang et al. Online realization of an ambient signal-based load modeling algorithm and its application in field measurement data
CN103001251A (en) Maximum power point tracking (MPPT) method and device of photovoltaic grid-connected inverter
Abdullah et al. Power quality signals classification system using time-frequency distribution
CN103760514A (en) Rapid detection method and device of electric energy meter
CN115691251A (en) Industrial operation teaching training system, method and equipment based on Internet of things
CN109726365A (en) A kind of method and apparatus of load forecast
CN111355243A (en) Method and device for identifying electrical load
Callan Productivity, scale economies and technical change: reconsidered
Jie et al. Reestimating the capital stock of China
CN115473216A (en) Method and system for improving line loss calculation of power grid
CN115333232A (en) Online monitoring method for abnormal starting and stopping state of transformer and related device
Ren et al. An empirical research on the relationship between foreign direct investment and carbon dioxide emission intensity of China

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant