CN109241132B - Method for retrieving daily time table rate of electric energy meter - Google Patents

Method for retrieving daily time table rate of electric energy meter Download PDF

Info

Publication number
CN109241132B
CN109241132B CN201810885143.3A CN201810885143A CN109241132B CN 109241132 B CN109241132 B CN 109241132B CN 201810885143 A CN201810885143 A CN 201810885143A CN 109241132 B CN109241132 B CN 109241132B
Authority
CN
China
Prior art keywords
day
time
current
rate
retrieval
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.)
Active
Application number
CN201810885143.3A
Other languages
Chinese (zh)
Other versions
CN109241132A (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.)
Ningbo Sanxing Smart Electric Co Ltd
Original Assignee
Ningbo Sanxing Smart 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 Ningbo Sanxing Smart Electric Co Ltd filed Critical Ningbo Sanxing Smart Electric Co Ltd
Priority to CN201810885143.3A priority Critical patent/CN109241132B/en
Publication of CN109241132A publication Critical patent/CN109241132A/en
Application granted granted Critical
Publication of CN109241132B publication Critical patent/CN109241132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Devices That Are Associated With Refrigeration Equipment (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method for searching the daily time table rate of electric energy meter features thatThe method comprises the following steps: it comprises the following steps: (1) the electric energy meter MCU acquires a current day-time period meter and the maximum number M0 supported by the current day-time period meter; (2) retrieving the current time of day table starting with the first entry; … (7) obtaining the current time, the start time T of the Nth periodnStart time T of the N +1 th periodn+1Judgment of Tn (the same day)≤Tn +1 (the day)Is there any If yes, entering step (8), otherwise, entering step (9); (8) judging the current time of day table as a sequence, and judging Tn (the same day)≤T<Tn +1 (the day)Is there any (9) Judging whether the current time of day table is out of order or not, and judging whether the current time T is at T or notn (the same day)And Tn +1 (the next day)Is there The method can still accurately retrieve the current rate to be used when the time-of-day table is out of order.

Description

Method for retrieving daily time table rate of electric energy meter
Technical Field
The invention relates to the technical field of electric energy meters, in particular to a method for retrieving the daily time period meter rate of an electric energy meter.
Background
The multi-rate electric energy meter is also called time-sharing metering electric energy meter, and is an electric energy meter which respectively meters the electricity consumption condition of users according to different time periods. According to the size of the power load, a plurality of different time intervals can be set, the power supply department carries out different electricity prices on the electricity consumption in different time intervals, and the economic means encourages users to actively take the measures of avoiding peaks and filling valleys, so that the power load curve is slowed down, the utilization rate of the power generation equipment is improved, and unsafe factors caused by too large change of the load curve are reduced.
A day time table is usually preset in an MCU of an existing electric energy meter, as shown in fig. 1, each day time table includes start times of a plurality of time periods, that is, a first time of the day time table is a start time T of a first time period1The second is the starting time T of the second period2… and so on, the Nth is the start time T of the Nth periodnThe N +1 th is the start time T of the N +1 th periodn+1And the starting time T of the Nth periodnA start time T less than the N +1 th periodn+1The current time T and the starting time of each time period of the day time period table are sequentially compared to search the current rate to be used, and the specific search method is as follows: obtaining the starting time T of the Nth time periodnAnd a start time T of the N +1 th periodn+1Judgment of Tn (the same day)≤T<Tn +1 (the day)Is there any? T is a unit ofn (the same day)、Tn +1 (the day)All the time of the day, if yes, the current rate F to be used is searchedNAnd if not, continuing to inquire the next item of the time-of-day table. In practice, it is sometimes desirable that the time period corresponding to some rates is not on the same day, for example, it is desirable that the time period corresponding to some rates is 17:00(the same day)-1:00(the following day)Then in the time of day table, the start time of the corresponding Nth period is 17:00, thThe initial time of the N +1 time interval is 1:00, so that the initial time of the Nth time interval is greater than the initial time of the N +1 time interval, which is called as time-of-day table disorder, the disorder generally appears in the last two time intervals, and the current rate to be used cannot be accurately retrieved when the time-of-day table disorder is carried out by adopting the conventional electric energy meter time-of-day table rate retrieval method.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method for searching the rate of the electric energy meter in the time of day can accurately search the rate which is required to be used when the time of day table is out of order.
The technical solution of the invention is as follows: a method for searching the daily time table rate of an electric energy meter is characterized by comprising the following steps: it comprises the following steps:
(1) the method comprises the steps that an electric energy meter MCU obtains a current time-of-day table pre-stored in a memory and the maximum number M0 supported by the current time-of-day table, wherein M0 is more than or equal to 2;
(2) retrieving the current time of day table starting with the first entry;
(3) judging whether the number N of the current retrieval bars is equal to the maximum number M0 supported by the current time-of-day table, if so, entering the step (4), and if not, entering the step (7);
(4) obtaining the current time T and the starting time T corresponding to the last time of the current day time period tableM0And a first corresponding start time T1Judgment of TM0 (the day)≤T1 (the same day)Is there any? If yes, entering the step (5), and if not, entering the step (6);
(5) judgment of TM0 (the day)≤T<T1 (the same day)Is there any? Here TM0 (the day),T1 (the same day)The time of the day is all, if yes, the current rate F to be used is foundNAnd ending the retrieval, if not, judging that the rate which should be used currently cannot be found and ending the retrieval;
(6) judging whether the current time T is at TM0 (the day)And T1 (the next day)Where T is1 (the next day)If the time is the next day, the current rate F to be used is searchedNAnd the search of this time is ended,if not, judging that the rate which is currently used cannot be found and finishing the retrieval;
(7) obtaining the current time and the starting time T of the Nth time period corresponding to the current retrieval number NnAnd a start time T of the N +1 th periodn+1Judgment of Tn (the same day)≤Tn +1 (the day)Is there any? Here Tn (the same day),Tn +1 (the day)If the time is the same as the current time, the step (8) is carried out, and if not, the step (9) is carried out;
(8) judging the current time of day table as a sequence, and judging Tn (the same day)≤T<Tn +1 (the day)Is there any? If yes, the current rate F to be used is searchedNAnd ending the retrieval, if not, automatically adding 1 to the number N of the current retrieval pieces and returning to the step (3) to continue the retrieval of the current time-of-day table;
(9) judging whether the current time of day table is out of order or not, and judging whether the current time T is at T or notn (the same day)And Tn +1 (the next day)Where T isn +1 (the next day)If the time is the next day, the current rate F to be used is searchedNAnd finishing the retrieval, if not, automatically adding 1 to the number N of the current retrieval pieces, and returning to the step (3) to continue the retrieval of the current time-of-day table.
After the method is adopted, the invention has the following advantages:
the method for retrieving the rates of the time-of-day table of the electric energy meter considers the disorder condition of the time-of-day table, and adopts different judgment conditions aiming at the two different conditions of the sequence and the disorder of the time-of-day table, so that the rates which are used currently can be retrieved accurately when the time-of-day table is disorder.
Preferably, the day time table includes a main day time table and a standby day time table, the main day time table is set as the current day time table by default, in the step (1), before the current day time table pre-stored in the memory is acquired by the electric energy meter MCU, it is first determined whether to activate the standby day time table, if so, the standby day time table is set as the current day time table, and if not, the current day time table is not changed. The setup may utilize the alternate time of day table to quickly modify the parameters of the current time of day table.
Preferably, the standby day time tables are set to be two or more, and when the standby day time tables are judged to be activated, one of the standby day time tables is set as the current day time table. The setting can obtain different modification results of the parameters of the current day time table by selecting different standby day time tables, and the modification is more flexible and convenient.
Preferably, the spare time-of-day table is set to 2-8. The arrangement can well meet the actual use requirements without excessively increasing the storage capacity and the complexity of software design.
Preferably, the master time-of-day table is set to 1. This arrangement can make the main processing flow simpler.
Preferably, the maximum number M0 of supported bars in the current time of day table is set in the range of 2-10 bars. The reasonable number of the time-of-day table number can not only meet the actual use requirement, but also can not increase the complexity of software.
Preferably, the maximum number M0 supported by the current time of day table is 10. The setting can make the rate parameter setting more diversified, and can better meet the actual use requirements.
Preferably, in the step (1), the electric energy meter MCU further obtains the current rate F being usedN' the current rate F to be used is found in the step (5) or the step (6) or the step (8) or the step (9)NIn time, the current rate F to be used needs to be judgedNWith the rate F currently in useNIf the two rates are the same, switching to the rate F which is currently usedNAnd if the two are the same, the rate switching is not carried out. The arrangement can rapidly and accurately switch the rates.
Drawings
FIG. 1 is a schematic diagram of a conventional electric energy meter time-of-day table;
FIG. 2 is a schematic view of a sequential electric energy meter time-of-day table in embodiment 1;
FIG. 3 is a schematic diagram of an out-of-order electric energy meter time-of-day table in embodiment 2;
Detailed Description
The invention is further described with reference to the following embodiments in conjunction with the accompanying drawings.
Example 1:
a method for searching the daily time table rate of an electric energy meter comprises the following steps:
(1) the method comprises the steps that an electric energy meter MCU obtains a current time-of-day table pre-stored in a memory and the maximum number M0 supported by the current time-of-day table, wherein M0 is more than or equal to 2;
(2) retrieving the current time of day table starting with the first entry;
(3) judging whether the number N of the current retrieval bars is equal to the maximum number M0 supported by the current time-of-day table, if so, entering the step (4), and if not, entering the step (7);
(4) obtaining the current time T and the starting time T corresponding to the last time of the current day time period tableM0And a first corresponding start time T1Judgment of TM0 (the day)≤T1 (the same day)Is there any? If yes, entering the step (5), and if not, entering the step (6);
(5) judgment of TM0 (the day)≤T<T1 (the same day)Is there any? Here TM0 (the day),T1 (the same day)The time of the day is all, if yes, the current rate F to be used is foundNAnd ending the retrieval, if not, judging that the rate which should be used currently cannot be found and ending the retrieval;
(6) judging whether the current time T is at TM0 (the day)And T1 (the next day)Where T is1 (the next day)If the time is the next day, the current rate F to be used is searchedNAnd ending the retrieval, if not, judging that the rate which should be used currently cannot be found and ending the retrieval;
(7) obtaining the current time and the starting time T of the Nth time period corresponding to the current retrieval number NnAnd a start time T of the (N + 1) th periodn+1Judgment of Tn (the same day)≤Tn +1 (the day)Is there any? Here Tn (the same day),Tn +1 (the same day)If the time is the same as the current time, the step (8) is carried out, and if not, the step (9) is carried out;
(8) judging the current time of day table as a sequence, and judging Tn (the same day)≤T<Tn +1 (the same day)Is there any? If yes, the current rate F to be used is searchedNAnd ending the retrieval, if not, automatically adding 1 to the number N of the current retrieval pieces and returning to the step (3) to continue the retrieval of the current time-of-day table;
(9) judging whether the current time of day table is out of order or not, and judging whether the current time T is at T or notn (the same day)And Tn +1 (the next day)Where T isn +1 (the next day)If the time is the next day, the current rate F to be used is searchedNAnd finishing the retrieval, if not, automatically adding 1 to the number N of the current retrieval pieces and returning to the step (3) to continue the retrieval of the current day-time table.
In this embodiment, assume that the current time T is 18: 00, when the current number of search items N is 3, T3 (the same day)≤T4 (the same day)And 17:00(the same day)≤T<23:00(the same day)Therefore, the rate F which is currently used is searched under the condition that the current time of day table is in sequenceNIs F3(ii) a Assume that the current time T is 24: 00, when the current number of retrieval pieces N is equal to the maximum number of pieces M0 supported by the current time of day table, that is, when the current number of retrieval pieces N is 4, the current time T is at the last corresponding start time 23 of the current time of day table: 00(the same day)Start time 2 corresponding to the first bar: 00(the following day)Thus finding the currently due rate FNAs a charge rate F4
Example 2:
a method for searching the daily time table rate of an electric energy meter comprises the following steps:
(1) the day time period table comprises a main day time period table and a standby day time period table, the main day time period table is set to be 1, the standby day time period table is set to be 2-8, the main day time period table is set as the current day time period table by default, whether the standby day time period table is activated or not is judged by the electric energy meter MCU, if yes, one standby day time period table is set as the current day time period table, if not, the current day time period table is not changed, and then the current day time period table stored in the memory in advance, the maximum number M0 supported by the current day time period table and the current date time period table are acquired by the electric energy meter MCURate of use FN', M0 are arranged into 2-10 strips;
(2) retrieving the current time of day table starting with the first entry;
(3) judging whether the number N of the current retrieval bars is equal to the maximum number M0 supported by the current time-of-day table, if so, entering the step (4), and if not, entering the step (7);
(4) obtaining the current time T and the starting time T corresponding to the last time of the current day time period tableM0And a first corresponding start time T1Judgment of TM0 (the day)≤T1 (the same day)Is there any? If yes, entering the step (5), and if not, entering the step (6);
(5) judgment of TM0 (the day)≤T<T1 (the same day)Is there any? Here TM0 (the day),T1 (the same day)The time of the day is all, if yes, the current rate F to be used is foundNAnd the search is ended after the step (10) is carried out, if not, the rate which is currently used cannot be found and the search is ended;
(6) judging whether the current time T is at TM0 (the day)And T1 (the next day)Where T is1 (the next day)If the time is the next day, the current rate F to be used is searchedNAnd the search is ended after the step (10) is carried out, if not, the rate which is currently used cannot be found and the search is ended;
(7) obtaining the current time and the starting time T of the Nth time period corresponding to the current retrieval number NnAnd a start time T of the N +1 th periodn+1Judgment of Tn (the same day)≤Tn +1 (the day)Is there any? Here Tn (the same day),Tn +1 (the day)If the time is the same as the current time, the step (8) is carried out, and if not, the step (9) is carried out;
(8) judging the current time of day table as a sequence, and judging Tn (the same day)≤T<Tn +1 (the day)Is there any? If yes, the current rate F to be used is searchedNAnd the step (10) is entered, the retrieval is ended, if not, the number N of the current retrieval is automatically added by 1, and the step (3) is returned to continue the current day time periodSearching a table;
(9) judging whether the current time of day table is out of order or not, and judging whether the current time T is at T or notn (the same day)And Tn +1 (the next day)Where T isn +1 (the next day)If the time is the next day, the current rate F to be used is searchedNAnd ending the retrieval after the step (10), if not, automatically adding 1 to the number N of the current retrieval and returning to the step (3) to continue the retrieval of the current day-time table;
(10) judging the current rate F to be usedNWith the rate F currently in useNIf the two rates are the same, switching to the rate F which is currently usedNAnd if the two are the same, the rate switching is not carried out.
In this embodiment, assume that the current time T is 18: 00, when the current number of search items N is 3, T3 (the same day)>T4 (the same day)And the current time T is at T3 (the same day)And T4 (the next day)Therefore, the rate F which is currently used is found under the condition that the current time of day table is out of orderNIs F3Therefore, the correct rate can be found no matter the current time of day table is in sequence or out of sequence.

Claims (8)

1. A method for searching the daily time table rate of an electric energy meter is characterized by comprising the following steps: it comprises the following steps:
(1) the method comprises the steps that an electric energy meter MCU obtains a current time-of-day table pre-stored in a memory and the maximum number M0 supported by the current time-of-day table, wherein M0 is more than or equal to 2;
(2) retrieving the current time of day table starting with the first entry;
(3) judging whether the number N of the current retrieval items is equal to the maximum number M0 supported by the current day time period table, if so, entering the step (4), otherwise, entering the step (7);
(4) obtaining the current time T and the starting time T corresponding to the last time of the current day time period tableM0And a first corresponding start time T1Judgment of TM0 (the day)≤T1 (the same day)Whether the result is true or not; if yes, entering the step (5), and if not, entering the step (6);
(5) judgment of TM0 (the day)≤T<T1 (the same day)Whether the result is true or not; here TM0 (the day),T1 (the same day)The time of the day is all, if yes, the current rate F to be used is foundNAnd ending the retrieval, if not, judging that the rate which should be used currently cannot be found and ending the retrieval;
(6) judging whether the current time T is at TM0 (the day)And T1 (the next day)Where T is1 (the next day)If the time is the next day, the current rate F to be used is searchedNAnd ending the retrieval, if not, judging that the rate which should be used currently cannot be found and ending the retrieval;
(7) obtaining the current time and the starting time T of the Nth time period corresponding to the current retrieval number NnAnd a start time T of the N +1 th periodn+1Judgment of Tn (the same day)≤Tn +1 (the day)Whether the result is true or not; here Tn (the same day),Tn +1 (the day)If the time is the same as the current time, the step (8) is carried out, and if not, the step (9) is carried out;
(8) judging the current time of day table as a sequence, and judging Tn (the same day)≤T<Tn +1 (the day)Whether the result is true or not; if yes, the current rate F to be used is searchedNAnd ending the retrieval, if not, automatically adding 1 to the number N of the current retrieval pieces and returning to the step (3) to continue the retrieval of the current time-of-day table;
(9) judging whether the current time of day table is out of order or not, and judging whether the current time T is at T or notn (the same day)And Tn +1 (the next day)Where T isn +1 (the next day)If the time is the next day, the current rate F to be used is searchedNAnd finishing the retrieval, if not, automatically adding 1 to the number N of the current retrieval pieces, and returning to the step (3) to continue the retrieval of the current time-of-day table.
2. The method for retrieving the time-of-day table rate of the electric energy meter according to claim 1, wherein: the day time period table comprises a main day time period table and a standby day time period table, the main day time period table is set as the current day time period table by default, in the step (1), before the current day time period table stored in the memory in advance is acquired by the electric energy meter MCU, whether the standby day time period table is activated or not is judged, if yes, the standby day time period table is set as the current day time period table, and if not, the current day time period table is not changed.
3. The method for retrieving the time-of-day table rate of the electric energy meter according to claim 2, wherein: the standby time-of-day tables are set to be two or more, and when the standby time-of-day tables are judged to be activated, one standby time-of-day table is set as the current time-of-day table.
4. The method of claim 3 for retrieving the time-of-day table rate of the electric energy meter, wherein the method comprises the following steps: the spare time-of-day table is set to 2-8.
5. The method for retrieving the time-of-day table rate of the electric energy meter according to claim 2, wherein: the master time of day table is set to 1.
6. The method for retrieving the time-of-day table rate of the electric energy meter according to claim 1, wherein: the maximum number of supported bars M0 for the current time of day table is set in the range of 2-10 bars.
7. The method of claim 6, wherein the method comprises the following steps: the maximum number of pieces M0 supported by the current time of day table is 10.
8. The method for retrieving the time-of-day rates of the electric energy meter according to claim 1, characterized in that: in the step (1), the electric energy meter MCU obtains the current rate F in useN' the current rate F to be used is found in the step (5) or the step (6) or the step (8) or the step (9)NIn time, the current rate F to be used needs to be judgedNWith the rate F currently in useNIf the two rates are the same, switching to the rate F which is currently usedNIf the two are the same, no rate cut is madeAnd (4) changing.
CN201810885143.3A 2018-08-06 2018-08-06 Method for retrieving daily time table rate of electric energy meter Active CN109241132B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810885143.3A CN109241132B (en) 2018-08-06 2018-08-06 Method for retrieving daily time table rate of electric energy meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810885143.3A CN109241132B (en) 2018-08-06 2018-08-06 Method for retrieving daily time table rate of electric energy meter

Publications (2)

Publication Number Publication Date
CN109241132A CN109241132A (en) 2019-01-18
CN109241132B true CN109241132B (en) 2022-05-13

Family

ID=65070598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810885143.3A Active CN109241132B (en) 2018-08-06 2018-08-06 Method for retrieving daily time table rate of electric energy meter

Country Status (1)

Country Link
CN (1) CN109241132B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101900801A (en) * 2010-07-15 2010-12-01 田卫华 Intelligent electric energy meter field test device and test method thereof
CN105911322A (en) * 2016-06-24 2016-08-31 国网江苏省电力公司电力科学研究院 Electric energy metering system and method with flexibly-configured time-sharing electricity price parameters
CN108022042A (en) * 2017-11-30 2018-05-11 云南电网有限责任公司 Provincial power network examination compensation quick calculation method is realized based on memory database Redis

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7647137B2 (en) * 2007-03-13 2010-01-12 Honeywell International Inc. Utility demand forecasting using utility demand matrix

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101900801A (en) * 2010-07-15 2010-12-01 田卫华 Intelligent electric energy meter field test device and test method thereof
CN105911322A (en) * 2016-06-24 2016-08-31 国网江苏省电力公司电力科学研究院 Electric energy metering system and method with flexibly-configured time-sharing electricity price parameters
CN108022042A (en) * 2017-11-30 2018-05-11 云南电网有限责任公司 Provincial power network examination compensation quick calculation method is realized based on memory database Redis

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于GPRS/GSM的一体化配电自动化系统设计与实现;樊东亮;《工程科技》;20120527;全文 *

Also Published As

Publication number Publication date
CN109241132A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
RU2016100971A (en) INTELLIGENT SIM SELECTION SUPPORTING A RICH ENTRANCE OF INPUT FACTORS
CN106383864B (en) A kind of inquiry request treating method and apparatus of time series database
US9172274B2 (en) System, method, and apparatus for operating a power distribution system
US10594132B2 (en) Electricity amount detection method and device, terminal and storage medium
CN105865037B (en) A kind of interior water heater group group automatic control system with learning algorithm of building
CN104239153A (en) Method and device for balancing multi-core CPU load
CN104424156A (en) Core processing method and device of processor and terminal
CN105260909A (en) Hotel service system and hotel information acquiring method
CN103853131A (en) power monitoring device and power analysis method thereof
CN109241132B (en) Method for retrieving daily time table rate of electric energy meter
CN103543901B (en) The method and apparatus generating menu
CN109470918A (en) The electricity data processing method and IR46 electric energy meter of IR46 electric energy meter
DE102021134615A1 (en) DEVICE AND METHOD FOR CONTEXT-BASED BATTERY CHARGING
CN105138643A (en) Patent retrieval system and retrieval method thereof
CN103034773B (en) The optimized algorithm of heating-furnace scheduling
CN103546506A (en) Wireless storage management system
CN111025068A (en) Method and device for reading load curve data of electric meter and electronic equipment
CN105488616A (en) Data recording method and device after replacement of drawer type power distribution cabinet
WO2015183268A1 (en) Voltage selectors coupled to processor cores
CN103488506A (en) Method and device for unloading management of application programs
CN109636232A (en) A kind of distribution key element recognition methods based on user&#39;s sensing reliability
CN106789248A (en) Power utility check distribution method and device
CN103634469A (en) System and method for automatic sequencing and fixing of mobile phone desktop
CN102364465A (en) File storage method and storage cluster
US9778960B2 (en) Thermal prioritized computing application scheduling

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