CN115166350A - Method and device for calculating demand of electric energy meter - Google Patents

Method and device for calculating demand of electric energy meter Download PDF

Info

Publication number
CN115166350A
CN115166350A CN202210653848.9A CN202210653848A CN115166350A CN 115166350 A CN115166350 A CN 115166350A CN 202210653848 A CN202210653848 A CN 202210653848A CN 115166350 A CN115166350 A CN 115166350A
Authority
CN
China
Prior art keywords
electric energy
time
demand
pulse
period
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
CN202210653848.9A
Other languages
Chinese (zh)
Other versions
CN115166350B (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.)
Jiangyin Changyi Group Co ltd
Original Assignee
Jiangyin Changyi 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 Jiangyin Changyi Group Co ltd filed Critical Jiangyin Changyi Group Co ltd
Priority to CN202210653848.9A priority Critical patent/CN115166350B/en
Publication of CN115166350A publication Critical patent/CN115166350A/en
Application granted granted Critical
Publication of CN115166350B publication Critical patent/CN115166350B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The application relates to a method and a device for calculating demand of an electric energy meter. The method comprises the following steps: determining a slip time and a power sampling period; judging whether the power collected in the current power sampling period is smaller than the starting power or not within each slip time, if so, accumulating the electric energy accumulation time, otherwise, accumulating the current power sampling period to the previous electric energy accumulation time, and finally determining the electric energy accumulation time within each slip time to obtain the total electric energy accumulation time within the demand period; obtaining an electric energy pulse accumulated value in each slip time according to the pulse constant after frequency division, the electric energy accumulated time in each slip time and the current power, thereby obtaining a total electric energy pulse accumulated value in a demand period; and calculating to obtain the demand according to the total electric energy pulse accumulated value, the total electric energy accumulated time, the pulse constant and the frequency division number of the pulse constant. The method can effectively solve the problem that the load change cannot be accurately reflected, and achieves the beneficial effect of improving the demand calculation precision.

Description

电能表需量计算方法和装置Electric energy meter demand calculation method and device

技术领域technical field

本申请涉及电能表技术领域,特别是涉及一种电能表需量计算方法、装置、计算机设备、存储介质和计算机程序产品。The present application relates to the technical field of electric energy meters, and in particular, to a method, apparatus, computer equipment, storage medium and computer program product for calculating the demand of electric energy meters.

背景技术Background technique

随着电动汽车的需求逐渐旺盛,当很多电动汽车接入到电网充电时,必然会带来电力线负荷的极大变动,电力部门就需要对电网的负荷做出预测和实施削峰填谷办法来保证电网电压稳定和负荷平衡。大工业用户负荷波动值很大,对电网的冲击尤其重大,现电力部门对工商业及其它用户中用电变压器容量在100千伏安以上的实行两部制电价,两部制电价由两部分电价构成,分别是“基本电价”和“电度电价”。“基本电价”一般按照变压器容量收取,也可按照每月的最大需量收取;“电度电价”即用户实际使用的电度电费。当需量做为一种计费方式时,此时在电能表中的需量的实现和计算方法就变得和电能计量同等重要。With the increasing demand for electric vehicles, when many electric vehicles are connected to the power grid for charging, it will inevitably bring about great changes in the load of the power line. Ensure grid voltage stability and load balance. The load fluctuation value of large industrial users is very large, and the impact on the power grid is particularly serious. At present, the power sector implements a two-part electricity price for industrial, commercial and other users with a power transformer capacity of more than 100 kVA, and the two-part electricity price consists of two parts. The components are "basic electricity price" and "electricity electricity price". "Basic electricity price" is generally charged according to the transformer capacity, and can also be charged according to the monthly maximum demand; When the demand is used as a billing method, the realization and calculation method of the demand in the electric energy meter becomes as important as the electric energy metering.

需量是一种功率计量,指的是一个规定的需量周期内的功率的平均值,最大需量指的是在规定的结算周期内记录的需量的最大值。Demand is a power measurement that refers to the average value of power in a specified demand period, and maximum demand refers to the maximum value of demand recorded in a specified billing period.

现有的需量计算方式包括如下几种:The existing demand calculation methods include the following:

1、滑差式。每个滑差时间t获取一个功率值Pi,i∈{1,...,n},n>1,n为滑差个数;当第一次到达需量周期T=n×t后,进行需量计算D=(P1+...+Pn)/n。此方式只能简单粗略的达到需量测量的目的,一旦某个滑差时间内由于用户用电设备正在启动或者设备运行异常,此时正好获取到的那个功率值为设备瞬时峰值,实际未产生能量也不会电网有冲击,所以这时的这个需量周期内,需量是不能准确反映用户的负荷的情况;或者一旦某个滑差时间内由于用户用电设备正好在关机,功率值被获取到后为很小值或者为0,这时的这个需量周期内,需量也是不能准确反映用户的负荷的情况。1. Slip type. Obtain a power value P i for each slip time t, i∈{1,...,n}, n>1, n is the number of slips; when the demand period T=n×t is reached for the first time , and perform demand calculation D=(P 1 +...+P n )/n. This method can only achieve the purpose of demand measurement simply and roughly. Once the user's electrical equipment is starting or the equipment is running abnormally within a certain slip period, the power value obtained at this time is the instantaneous peak value of the equipment, which is not actually generated. The energy will not have an impact on the power grid, so in this demand period at this time, the demand cannot accurately reflect the user's load; or once the user's electrical equipment is shut down during a certain slip period, the power value is changed. After it is obtained, it is a very small value or 0. In this demand period, the demand cannot accurately reflect the user's load.

2、针对上述滑差式的一种改进方法,在每个滑差时间内不是按照获取一个功率值做为计算,而是做平均功率,进行平均值计算,做为计算需量的P值。此方法可以对方法1的弊端做一些修正,但是只是有限的提高了功率获取的精度,不能根本上解决问题,依然可能存在以上的问题;同时由于增加了采样值,一般情况下一个功率值占用3个字节的存储空间,1分钟60个,就多出180个存储空间,由于需量分为正向有功、反向有功、无功1象限、无功2象限、无功3象限、无功4象限、分相有功、无功等,最多可能需增加4320个存储空间,对现有的电能表需要重新选择主控MCU芯片,增加成本。2. An improved method for the above slip formula, in each slip time, instead of obtaining a power value as the calculation, the average power is calculated, and the average value is calculated as the P value of the calculated demand. This method can make some corrections to the disadvantages of method 1, but it only improves the accuracy of power acquisition to a limited extent, and cannot fundamentally solve the problem. 3 bytes of storage space, 60 per minute, 180 more storage spaces, because the demand is divided into forward active, reverse active, reactive 1 quadrant, reactive 2 quadrant, reactive 3 quadrant, no Four quadrants of power, split-phase active power, reactive power, etc., may need to add up to 4320 storage spaces. For the existing electric energy meter, the main control MCU chip needs to be re-selected, which increases the cost.

3、采用电能累计法,每个滑差时间t获取电能累计值E,此时功率为P=E/t,其它计算方法同上。此方法能完全规避以上方法存在的问题,但是会带来的问题有:1)如果只是采用现有的0.01kWh精度的电能量累计值做为计算值或者采用1个脉冲的电能量精度累计值,必然会带来误差,前者误差更大。假设电能表脉冲常数为6400imp/kwh,当前功率为1kW,1min电能累计值为(6400/3600)*60=106.667个脉冲,0.0166kWh电量。当采用0.01kWh精度的电量计算时,损失了0.0066kWh电量计算值;当采用脉冲的方法,则损失了0.667个脉冲的计算值。2)假如在一个滑差时间t内,前一段时间有功率,电能也确实在累计,但是后一段时间无功率,此时无负荷,但是在计算中P=E/t,t依然为一个完整的滑差时间,导致P变小,不能准确反映负荷。3. The electric energy accumulation method is adopted, and the electric energy accumulation value E is obtained at each slip time t. At this time, the power is P=E/t, and other calculation methods are the same as above. This method can completely avoid the problems of the above methods, but the problems it will bring are: 1) If only the existing 0.01kWh precision electric energy accumulated value is used as the calculated value or the electric energy precision accumulated value of 1 pulse is used , will inevitably bring errors, the former error is greater. Assuming that the pulse constant of the electric energy meter is 6400imp/kwh, the current power is 1kW, the accumulated value of electric energy in 1min is (6400/3600)*60=106.667 pulses, and the electric power is 0.0166kWh. When using the power calculation with 0.01kWh accuracy, the calculated value of 0.0066kWh of power is lost; when the pulse method is used, the calculated value of 0.667 pulses is lost. 2) If in a slip time t, there is power in the previous period, the electric energy is indeed accumulating, but there is no power in the later period, and there is no load at this time, but in the calculation P=E/t, t is still a complete The slip time is longer, resulting in a smaller P, which cannot accurately reflect the load.

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述技术问题,提供一种提高计算精度、更能真实准确的反映负荷变动的电能表需量计算方法、装置、计算机设备、计算机可读存储介质和计算机程序产品。Based on this, it is necessary to provide a method, device, computer equipment, computer readable storage medium and computer program product for calculating the demand of an electric energy meter with improved calculation accuracy and more true and accurate reflection of load changes.

第一方面,本申请提供了一种电能表需量计算方法。方法包括:In a first aspect, the present application provides a method for calculating the demand of an electric energy meter. Methods include:

确定滑差时间t和功率采样周期t0,功率采样周期t0≤1s;Determine the slip time t and the power sampling period t 0 , and the power sampling period t 0 ≤ 1s;

在第i个滑差时间t内,初始电能累计时间为0,判断在当前功率采样周期t0采集到的功率是否小于启动功率,若小于启动功率,则电能累计时间不累加;否则,将所述当前功率采样周期t0累加到前一次的电能累计时间,最终确定第i个滑差时间t内的电能累计时间tE(i),其中,i∈{1,...,n},n>1;In the i-th slip time t, the initial electric energy accumulation time is 0, and it is judged whether the power collected in the current power sampling period t 0 is less than the starting power. If it is less than the starting power, the electric energy accumulation time is not accumulated; The current power sampling period t 0 is accumulated to the previous electric energy accumulation time, and finally the electric energy accumulation time t E (i) in the i-th slip time t is determined, where i∈{1,...,n}, n>1;

根据第i个滑差时间t内的电能累计时间tE(i)获得需量周期T内总的电能累计时间TE,其中需量周期T=n×t;Obtain the total electric energy accumulation time TE in the demand period T according to the electric energy accumulation time t E (i) in the i-th slip time t, where the demand period T=n×t;

根据分频后的脉冲常数、第i个滑差时间t内的电能累计时间tE(i)和当前功率计算得到第i个滑差时间t内的电能脉冲累计值Dt(i);According to the pulse constant after frequency division, the electric energy accumulation time t E (i) in the i-th slip time t and the current power, the electric energy pulse accumulation value D t (i) in the i-th slip time t is calculated;

根据第i个滑差时间t内的电能脉冲累计值Dt(i)获得需量周期T内总的电能脉冲累计值DTObtain the total electric energy pulse accumulation value D T in the demand period T according to the electric energy pulse accumulation value D t (i) in the i-th slip time t;

根据需量周期T内总的电能脉冲累计值DT、总的电能累计时间TE、脉冲常数和脉冲常数的分频数计算得到需量周期T内的需量P。The demand P in the demand period T is calculated according to the total electric energy pulse accumulation value D T , the total electric energy accumulation time TE , the pulse constant and the frequency division of the pulse constant in the demand period T.

在其中一个实施例中,计算得到需量周期T内的需量P按照如下公式计算:In one of the embodiments, the calculated demand P in the demand period T is calculated according to the following formula:

P=(DT/(C×k))/TE P=( D T /(C×k))/TE

其中,C为脉冲常数,k为脉冲常数的分频数。Among them, C is the pulse constant, and k is the frequency division number of the pulse constant.

在其中一个实施例中,需量周期T内总的电能累计时间TE按照如下公式计算:In one of the embodiments, the total electric energy accumulation time TE in the demand period T is calculated according to the following formula:

Figure BDA0003688472490000031
Figure BDA0003688472490000031

在其中一个实施例中,需量周期T内总的电能脉冲累计值DT按照如下公式计算:In one of the embodiments, the total electric energy pulse accumulated value D T in the demand period T is calculated according to the following formula:

Figure BDA0003688472490000032
Figure BDA0003688472490000032

在其中一个实施例中,方法还包括:在电能表的MCU中对脉冲常数进行分频。In one of the embodiments, the method further includes: dividing the frequency of the pulse constant in the MCU of the electric energy meter.

在其中一个实施例中,脉冲常数的分频数≥5。In one of the embodiments, the frequency division number of the pulse constant is greater than or equal to 5.

在其中一个实施例中,滑差时间t≥1min。In one of the embodiments, the slip time t≥1min.

在其中一个实施例中,需量周期T≥5min。In one of the embodiments, the demand period T≧5min.

第二方面,本申请还提供了一种电能表需量计算装置。装置包括:In a second aspect, the present application also provides an electric energy meter demand calculation device. The device includes:

周期确定模块,用于确定滑差时间t和功率采样周期t0,功率采样周期t0≤1s;a period determination module, used to determine the slip time t and the power sampling period t 0 , and the power sampling period t 0 ≤ 1s;

功率判断模块,用于在第i个滑差时间t内,判断在当前功率采样周期t0采集到的功率是否小于启动功率,若小于启动功率,则电能累计时间不累加;否则,将所述当前功率采样周期t0累加到前一次的电能累计时间,最终确定第i个滑差时间t内的电能累计时间tE(i),其中,i∈{1,...,n},n>1;The power judging module is used for judging whether the power collected in the current power sampling period t 0 is less than the starting power within the i-th slip time t, if it is less than the starting power, the electric energy accumulation time is not accumulated; otherwise, the described The current power sampling period t 0 is accumulated to the previous electric energy accumulation time, and finally the electric energy accumulation time t E (i) within the i-th slip time t is determined, where i∈{1,...,n},n >1;

电能累计时间确定模块,用于根据第i个滑差时间t内的电能累计时间tE(i获得需量周期T内总的电能累计时间TE,其中需量周期T=n×t;The electric energy accumulation time determining module is used to obtain the total electric energy accumulation time TE in the demand period T according to the electric energy accumulation time t E (i) in the ith slip time t, wherein the demand period T=n×t;

电能脉冲累计值计算模块,用于根据分频后的脉冲常数、第i个滑差时间t内的电能累计时间tE(i)和当前功率计算得到第i个滑差时间t内的电能脉冲累计值Dt(i),并根据第i个滑差时间t内的电能脉冲累计值Dt(i)获得需量周期T内总的电能脉冲累计值DTThe electric energy pulse accumulation value calculation module is used to calculate the electric energy pulse in the i-th slip time t according to the pulse constant after frequency division, the electric energy accumulation time t E (i) in the i-th slip time t and the current power Accumulated value D t (i), and obtain the total electric energy pulse accumulated value D T in the demand period T according to the electric energy pulse accumulated value D t (i) in the i-th slip time t;

需量计算模块,用于根据需量周期T内总的电能脉冲累计值DT、总的电能累计时间TE、脉冲常数和脉冲常数的分频数计算得到需量周期T内的需量P。The demand calculation module is used to calculate the demand P in the demand period T according to the total electric energy pulse accumulation value D T , the total electric energy accumulation time T E , the pulse constant and the frequency division number of the pulse constant in the demand period T .

第三方面,本申请还提供了一种计算机设备。计算机设备包括存储器和处理器,存储器存储有计算机程序,处理器执行计算机程序时实现上述电能表需量计算方法的步骤。In a third aspect, the present application also provides a computer device. The computer equipment includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps of the above-mentioned method for calculating the demand of an electric energy meter are implemented.

第四方面,本申请还提供了一种计算机可读存储介质。计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述电能表需量计算方法的步骤。In a fourth aspect, the present application also provides a computer-readable storage medium. A computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, implements the steps of the above-mentioned method for calculating the demand of an electric energy meter.

第五方面,本申请还提供了一种计算机程序产品。计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述电能表需量计算方法的步骤。In a fifth aspect, the present application also provides a computer program product. A computer program product includes a computer program that, when executed by a processor, implements the steps of the above method for calculating the demand of an electric energy meter.

上述电能表需量计算方法、装置、计算机设备、存储介质和计算机程序产品,通过采用功率判断来准确累计有效电能时间,并将脉冲计量方式进行分频,从而能够解决无法准确反映负荷变动的问题,达到提高需量计算精度的有益效果。The above electric energy meter demand calculation method, device, computer equipment, storage medium and computer program product can accurately accumulate the effective electric energy time by using power judgment, and divide the frequency of the pulse measurement method, so as to solve the problem that the load change cannot be accurately reflected , to achieve the beneficial effect of improving the accuracy of demand calculation.

附图说明Description of drawings

图1为一个实施例中电能表需量计算方法的流程示意图;1 is a schematic flowchart of a method for calculating the demand of an electric energy meter in one embodiment;

图2为一个实施例中电能表需量计算装置的结构框图;Fig. 2 is a structural block diagram of an electric energy meter demand calculation device in one embodiment;

图3为一个实施例中计算机设备的内部结构图。FIG. 3 is a diagram of the internal structure of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

在一个实施例中,如图1所示,提供了一种电能表需量计算方法,本实施例以该方法应用于终端进行举例说明,可以理解的是,该方法也可以应用于服务器,还可以应用于包括终端和服务器的系统,并通过终端和服务器的交互实现。本实施例中,该方法包括以下步骤:In one embodiment, as shown in FIG. 1 , a method for calculating the demand of an electric energy meter is provided. In this embodiment, the method is applied to a terminal for illustration. It can be understood that the method can also be applied to a server. It can be applied to a system including a terminal and a server, and is realized through the interaction of the terminal and the server. In this embodiment, the method includes the following steps:

步骤102,确定滑差时间t和功率采样周期t0,功率采样周期t0≤1s。Step 102, determine the slip time t and the power sampling period t 0 , and the power sampling period t 0 ≤ 1s.

对于功率采样周期t0来说,t0越小,功率判断越精确,电能累计时间也越准确;滑差时间必然大于功率采样周期,可选的,滑差时间t≥1min。For the power sampling period t 0 , the smaller t 0 is, the more accurate the power judgment is, and the more accurate the electric energy accumulation time is; the slip time must be greater than the power sampling period, optional, the slip time t≥1min.

步骤104,在第i个滑差时间t内,初始电能累计时间为0,判断在当前功率采样周期t0采集到的功率是否小于启动功率,若小于启动功率,则电能累计时间不累加;否则,将当前功率采样周期t0累加到前一次的电能累计时间,最终确定第i个滑差时间t内的电能累计时间tE(i),其中,i∈{1,...,n},n>1。Step 104, in the i-th slip time t, the initial electric energy accumulation time is 0, and it is judged whether the power collected in the current power sampling period t 0 is less than the starting power, if it is less than the starting power, the electric energy accumulation time is not accumulated; otherwise; , accumulate the current power sampling period t 0 to the previous electric energy accumulation time, and finally determine the electric energy accumulation time t E (i) in the i-th slip time t, where i∈{1,...,n} , n>1.

步骤106,根据第i个滑差时间t内的电能累计时间tE(i)获得需量周期T内总的电能累计时间TE,其中需量周期T=n×t。Step 106: Obtain the total electric energy accumulation time TE in the demand period T according to the electric energy accumulation time t E (i) in the i-th slip time t, where the demand period T=n×t.

可选的,需量周期T≥5min。Optionally, the demand period T≥5min.

可选的,需量周期T内总的电能累计时间TE按照如下公式计算:Optionally, the total electric energy accumulation time T E in the demand period T is calculated according to the following formula:

Figure BDA0003688472490000051
Figure BDA0003688472490000051

步骤108,根据分频后的脉冲常数、第i个滑差时间t内的电能累计时间tE(i和当前功率计算得到第i个滑差时间t内的电能脉冲累计值Dt(i)。Step 108, according to the pulse constant after frequency division, the electric energy accumulative time t E (i (i) in the ith slip time t and the current power to obtain the electric energy pulse accumulative value D t (i) in the i th slip time t .

步骤110,根据第i个滑差时间t内的电能脉冲累计值Dt(i)获得需量周期T内总的电能脉冲累计值DTStep 110: Obtain the total electric energy pulse accumulation value D T in the demand period T according to the electric energy pulse accumulation value D t (i) in the ith slip time t.

可选的,需量周期T内总的电能脉冲累计值DT按照如下公式计算:Optionally, the total electric energy pulse accumulated value D T in the demand period T is calculated according to the following formula:

Figure BDA0003688472490000052
Figure BDA0003688472490000052

步骤112,根据需量周期T内总的电能脉冲累计值DT、总的电能累计时间TE、脉冲常数和脉冲常数的分频数计算得到需量周期T内的需量P。Step 112: Calculate the demand P in the demand period T according to the total electric energy pulse accumulation value D T , the total electric energy accumulation time TE , the pulse constant and the frequency division number of the pulse constant in the demand period T.

可选的,需量周期T内的需量P按照如下公式计算:Optionally, the demand P in the demand period T is calculated according to the following formula:

P=(DT/(C×k))/TE P=( D T /(C×k))/TE

其中,C为脉冲常数,k为脉冲常数的分频数。Among them, C is the pulse constant, and k is the frequency division number of the pulse constant.

可选的,方法还包括:在电能表的MCU中对脉冲常数进行分频。Optionally, the method further includes: dividing the frequency of the pulse constant in the MCU of the electric energy meter.

可选的,脉冲常数的分频数≥5。Optionally, the frequency division number of the pulse constant is greater than or equal to 5.

具体的,本实施例中,电能表脉冲常数C为6400imp/kwh,当前设备功率为1kW,设备启动瞬时功率为8kW,尖峰功率14kW(瞬时值偶尔会被捕捉到);设定滑差时间t为1min,功率采样周期t0为1s,需量周期T为15min;脉冲分频数k为10。Specifically, in this embodiment, the pulse constant C of the electric energy meter is 6400imp/kwh, the current equipment power is 1kW, the equipment startup instantaneous power is 8kW, and the peak power is 14kW (the instantaneous value is occasionally captured); set the slip time t is 1min, the power sampling period t 0 is 1s, the demand period T is 15min; the pulse frequency division number k is 10.

在每个滑差时间1min内,每1s采样一次功率进行功率判断;本实施例中在需量周期15min内的最后一个滑差时间1min内,前30s有功率且大于启动功率,后30s无功率;其余滑差时间内均有功率且大于启动功率;由此可确定在一个需量周期15min内,第1-14个滑差时间内总的电能累计时间为14min,第15个滑差时间内的电能累计时间为30s,即0.5min,因此在需量周期15min内总的电能累计时间TE为14.5min。Within 1min of each slip time, power is sampled every 1s for power judgment; in this embodiment, within 1min of the last slip time within 15min of the demand period, there is power in the first 30s and is greater than the starting power, and no power in the last 30s ; The remaining slip time has power and is greater than the starting power; it can be determined that within a demand period of 15min, the total electric energy accumulation time in the 1st to 14th slip time is 14min, and the 15th slip time is 14min. The electric energy accumulation time is 30s, that is, 0.5min, so the total electric energy accumulation time TE in the demand period of 15min is 14.5min .

根据10分频后的脉冲常数、每个滑差时间1min内的电能累计时间和当前设备功率1kW可确定:According to the pulse constant after frequency division by 10, the electric energy accumulation time within 1min of each slip time and the current equipment power 1kW, it can be determined:

在前14个滑差时间内,每个滑差时间1min的电能脉冲累计值为(6400×10×1)/60=1066.67个脉冲,其中,/60是因为1min=1/60h,计算过程中需要将时间单位进行统一;In the first 14 slip times, the cumulative value of electric energy pulses for each slip time 1min is (6400×10×1)/60=1066.67 pulses, where /60 is because 1min=1/60h, during the calculation process The time unit needs to be unified;

第15个滑差时间1min的电能脉冲累计值为((6400×10×1)/60)×0.5=533.35个脉冲,其中,/60是因为1min=1/60h,且第15个滑差时间1min内的电能累计时间为0.5min,所以还需要×0.5,计算过程中需要将时间单位进行统一;The cumulative value of the electric energy pulse for the 15th slip time of 1min is ((6400×10×1)/60)×0.5=533.35 pulses, where /60 is because 1min=1/60h, and the 15th slip time The accumulated time of electric energy within 1min is 0.5min, so it also needs ×0.5, and the time unit needs to be unified in the calculation process;

因此,在一个需量周期15min内,总的电能脉冲累计值DT为1066.67×14+533.35=15466.73个脉冲。Therefore, in a demand period of 15min, the total electric energy pulse accumulated value D T is 1066.67×14+533.35=15466.73 pulses.

根据脉冲常数C、分频数k和总的电能脉冲累计值DT可计算得到本实施例中一个需量周期15min内的电量为:According to the pulse constant C, the frequency division number k and the total electric energy pulse accumulated value D T , it can be calculated that the electric quantity in a demand period of 15min in this embodiment is:

ET=DT/(C×k)=15466.73/(6400×10)kwhE T =D T /(C×k)=15466.73/(6400×10)kwh

最后按照公式ET/TE计算得到一个需量周期15min内的需量P为:Finally, according to the formula E T /T E , the demand P within a demand period of 15 minutes is calculated as:

P=ET/TE=(15466.73/(6400×10))/(14.5/60)=1.000kwP=E T /T E =(15466.73/(6400×10))/(14.5/60)=1.000kw

其中,14.5/60是为了将14.5min换算成小时,以满足时间单位上的统一。Among them, 14.5/60 is to convert 14.5min into hours to meet the unification of time units.

基于上述实施例的各项参数,若采用背景技术中提到的现有计算方式,可得到:Based on the parameters of the above embodiment, if the existing calculation method mentioned in the background technology is adopted, it can be obtained:

比较例1Comparative Example 1

采用背景技术中提到的方式1滑差式,则计算得到的需量D可能为:Using the slip equation of method 1 mentioned in the background art, the calculated demand D may be:

D=(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/15=1kW;D=(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/15=1kW;

D=(1+1+8+1+1+1+1+1+1+1+1+1+1+1+1)/15=1.466kW;D=(1+1+8+1+1+1+1+1+1+1+1+1+1+1+1)/15=1.466kW;

D=(1+1+14+1+1+1+1+1+1+1+1+1+1+1+1)/15=1.866kW;D=(1+1+14+1+1+1+1+1+1+1+1+1+1+1+1)/15=1.866kW;

D=(1+1+1+1+1+1+1+1+1+1+1+1+1+1+0)/15=0.933kW;D=(1+1+1+1+1+1+1+1+1+1+1+1+1+1+0)/15=0.933kW;

D=(1+1+8+1+1+1+1+1+1+1+1+1+1+1+0)/15=1.400kW;D=(1+1+8+1+1+1+1+1+1+1+1+1+1+1+0)/15=1.400kW;

D=(1+1+14+1+1+1+1+1+1+1+1+1+1+1+0)/15=1.800kW。D=(1+1+14+1+1+1+1+1+1+1+1+1+1+1+0)/15=1.800kW.

比较例2Comparative Example 2

采用背景技术中提到的方式2,则计算得到的需量D可能为:Using the method 2 mentioned in the background art, the calculated demand D may be:

D=(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/15=1kW;D=(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/15=1kW;

D=(1+1+1.116+1+1+1+1+1+1+1+1+1+1+1+1)/15=1.007kW;D=(1+1+1.116+1+1+1+1+1+1+1+1+1+1+1+1)/15=1.007kW;

D=(1+1+1.216+1+1+1+1+1+1+1+1+1+1+1+1)/15=1.014kW;D=(1+1+1.216+1+1+1+1+1+1+1+1+1+1+1+1)/15=1.014kW;

D=(1+1+1+1+1+1+1+1+1+1+1+1+1+1+0.5)/15=0.966kW;D=(1+1+1+1+1+1+1+1+1+1+1+1+1+1+0.5)/15=0.966kW;

D=(1+1+1.116+1+1+1+1+1+1+1+1+1+1+1+0.5)/15=0.9744kW;D=(1+1+1.116+1+1+1+1+1+1+1+1+1+1+1+0.5)/15=0.9744kW;

D=(1+1+1.216+1+1+1+1+1+1+1+1+1+1+1+0.5)/15=0.981kW。D=(1+1+1.216+1+1+1+1+1+1+1+1+1+1+1+0.5)/15=0.981kW.

比较例3Comparative Example 3

采用背景技术中提到的方式3电能累计法,则计算得到的需量D可能为:Using the method 3 electric energy accumulation method mentioned in the background art, the calculated demand D may be:

以脉冲计数法为例,如果1分钟存一次脉冲数,则Taking the pulse counting method as an example, if the number of pulses is stored once per minute, then

D=((106*14+53)/6400)/(15/60)=0.96kW;D=((106*14+53)/6400)/(15/60)=0.96kW;

如果15分钟脉冲总累加的话,此时可能前后还会损失小于一个脉冲数,主要原因就是当需量开始计算时,此时还没有脉冲出现,则If the pulses are accumulated in 15 minutes, less than one pulse may be lost before and after this time. The main reason is that when the demand starts to calculate, there is no pulse at this time,

D=((105.667+106.667*13+53.335)/6400)/(15/60)=0.966kW。D=((105.667+106.667*13+53.335)/6400)/(15/60)=0.966kW.

综上可以看出,与现有的需量计算方式相比,采用本申请的需量计算方法能够更为准确的反映负荷变动,计算精度也更高。To sum up, it can be seen that, compared with the existing demand calculation method, the demand calculation method of the present application can more accurately reflect the load change, and the calculation accuracy is also higher.

应该理解的是,虽然如上的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowcharts involved in the above embodiments are sequentially displayed according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but may be executed at different times. The order of execution of these steps or stages is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages in the other steps.

基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的电能表需量计算方法的电能表需量计算装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个电能表需量计算装置实施例中的具体限定可以参见上文中对于电能表需量计算方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application also provides an electric energy meter demand calculation device for implementing the above-mentioned electric energy meter demand calculation method. The solution to the problem provided by the device is similar to the solution described in the above method, so the specific limitations in the embodiments of one or more electric energy meter demand calculation device provided below can refer to the above for electric energy meter demand The limitation of the quantity calculation method will not be repeated here.

在一个实施例中,如图2所示,提供了一种电能表需量计算装置,包括:In one embodiment, as shown in FIG. 2, a device for calculating the demand of an electric energy meter is provided, including:

周期确定模块,用于确定滑差时间t和功率采样周期t0,功率采样周期t0≤1s;a period determination module, used to determine the slip time t and the power sampling period t 0 , and the power sampling period t 0 ≤ 1s;

功率判断模块,用于在第i个滑差时间t内,判断在当前功率采样周期t0采集到的功率是否小于启动功率,若小于启动功率,则电能累计时间不累加;否则,将当前功率采样周期t0累加到前一次的电能累计时间,最终确定第i个滑差时间t内的电能累计时间tE(i),其中,i∈{1,...,n},n>1;The power judgment module is used to judge whether the power collected in the current power sampling period t 0 is less than the starting power within the i-th slip time t. If it is less than the starting power, the electric energy accumulation time is not accumulated; otherwise, the current power The sampling period t 0 is accumulated to the previous electric energy accumulation time, and the electric energy accumulation time t E (i) in the i-th slip time t is finally determined, where i∈{1,...,n}, n>1 ;

电能累计时间确定模块,用于根据第i个滑差时间t内的电能累计时间tE(i)获得需量周期T内总的电能累计时间TE,其中需量周期T=n×t;The electric energy accumulation time determining module is used to obtain the total electric energy accumulation time TE in the demand period T according to the electric energy accumulation time t E (i) in the ith slip time t, wherein the demand period T=n×t;

电能脉冲累计值计算模块,用于根据分频后的脉冲常数、第i个滑差时间t内的电能累计时间tE(i)和当前功率计算得到第i个滑差时间t内的电能脉冲累计值Dt(i),并根据第i个滑差时间t内的电能脉冲累计值Dt(i)获得需量周期T内总的电能脉冲累计值DTThe electric energy pulse accumulation value calculation module is used to calculate the electric energy pulse in the i-th slip time t according to the pulse constant after frequency division, the electric energy accumulation time t E (i) in the i-th slip time t and the current power Accumulated value D t (i), and obtain the total electric energy pulse accumulated value D T in the demand period T according to the electric energy pulse accumulated value D t (i) in the i-th slip time t;

需量计算模块,用于根据需量周期T内总的电能脉冲累计值DT、总的电能累计时间TE、脉冲常数和脉冲常数的分频数计算得到需量周期T内的需量P。The demand calculation module is used to calculate the demand P in the demand period T according to the total electric energy pulse accumulation value D T , the total electric energy accumulation time T E , the pulse constant and the frequency division number of the pulse constant in the demand period T .

上述电能表需量计算装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned electric energy meter demand calculation device can be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器或终端,其内部结构图可以如图3所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储获取到的电能表冻结数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种用于电能表冻结的数据存储方法。In one embodiment, a computer device is provided, the computer device may be a server or a terminal, and its internal structure diagram may be as shown in FIG. 3 . The computer device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile storage media and internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used to store the obtained frozen data of the electric energy meter. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements a data storage method for freezing an electric energy meter.

本领域技术人员可以理解,图3中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 3 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现如下步骤:In one embodiment, a computer device is provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:

确定滑差时间t和功率采样周期t0,功率采样周期t0≤1s;Determine the slip time t and the power sampling period t 0 , and the power sampling period t 0 ≤ 1s;

在第i个滑差时间t内,初始电能累计时间为0,判断在当前功率采样周期t0采集到的功率是否小于启动功率,若小于启动功率,则电能累计时间不累加;否则,将当前功率采样周期t0累加到前一次的电能累计时间,最终确定第i个滑差时间t内的电能累计时间tE(i),其中,i∈{1,...,n},n>1;In the i-th slip time t, the initial electric energy accumulation time is 0, and it is judged whether the power collected in the current power sampling period t 0 is less than the starting power. If it is less than the starting power, the electric energy accumulation time is not accumulated; otherwise, the current The power sampling period t 0 is accumulated to the previous electric energy accumulation time, and finally the electric energy accumulation time t E (i) in the i-th slip time t is determined, where i∈{1,...,n}, n>1;

根据第i个滑差时间t内的电能累计时间tE(i)获得需量周期T内总的电能累计时间TE,其中需量周期t=n×t;Obtain the total electric energy accumulation time TE in the demand period T according to the electric energy accumulation time t E (i) in the i-th slip time t, where the demand period t=n×t;

根据分频后的脉冲常数、第i个滑差时间t内的电能累计时间tE(i)和当前功率计算得到第i个滑差时间t内的电能脉冲累计值Dt(i);According to the pulse constant after frequency division, the electric energy accumulation time t E (i) in the i-th slip time t and the current power, the electric energy pulse accumulation value D t (i) in the i-th slip time t is calculated;

根据第i个滑差时间t内的电能脉冲累计值Dt(i)获得需量周期T内总的电能脉冲累计值DTObtain the total electric energy pulse accumulation value D T in the demand period T according to the electric energy pulse accumulation value D t (i) in the i-th slip time t;

根据需量周期T内总的电能脉冲累计值DT、总的电能累计时间TE、脉冲常数和脉冲常数的分频数计算得到需量周期T内的需量P。The demand P in the demand period T is calculated according to the total electric energy pulse accumulation value D T , the total electric energy accumulation time TE , the pulse constant and the frequency division of the pulse constant in the demand period T.

在一个实施例中,该处理器执行计算机程序时还实现:In one embodiment, when the processor executes the computer program, it further implements:

需量周期T内的需量P按照如下公式计算:The demand P in the demand period T is calculated according to the following formula:

P=(DT/(C×k))/TEP=( D T /(C×k))/TE .

在一个实施例中,该处理器执行计算机程序时还实现:In one embodiment, when the processor executes the computer program, it further implements:

需量周期T内总的电能累计时间TE按照如下公式计算:The total electric energy accumulation time TE in the demand period T is calculated according to the following formula:

Figure BDA0003688472490000101
Figure BDA0003688472490000101

在一个实施例中,该处理器执行计算机程序时还实现:In one embodiment, when the processor executes the computer program, it further implements:

需量周期T内总的电能脉冲累计值DT按照如下公式计算:The total energy pulse accumulated value D T in the demand period T is calculated according to the following formula:

Figure BDA0003688472490000102
Figure BDA0003688472490000102

在一个实施例中,该处理器执行计算机程序时还实现:In one embodiment, when the processor executes the computer program, it further implements:

在电能表的MCU中对脉冲常数进行分频。The pulse constant is divided in the MCU of the energy meter.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现如下步骤:In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

确定滑差时间t和功率采样周期t0,功率采样周期t0≤1s;Determine the slip time t and the power sampling period t 0 , and the power sampling period t 0 ≤ 1s;

在第i个滑差时间t内,初始电能累计时间为0,判断在当前功率采样周期t0采集到的功率是否小于启动功率,若小于启动功率,则电能累计时间不累加;否则,将当前功率采样周期t0累加到前一次的电能累计时间,最终确定第i个滑差时间t内的电能累计时间tE(i),其中,i∈{1,...,n},n>1;In the i-th slip time t, the initial electric energy accumulation time is 0, and it is judged whether the power collected in the current power sampling period t 0 is less than the starting power. If it is less than the starting power, the electric energy accumulation time is not accumulated; otherwise, the current The power sampling period t 0 is accumulated to the previous electric energy accumulation time, and finally the electric energy accumulation time t E (i) in the i-th slip time t is determined, where i∈{1,...,n}, n>1;

根据第i个滑差时间t内的电能累计时间tE(i)获得需量周期T内总的电能累计时间TE,其中需量周期T=n×t;Obtain the total electric energy accumulation time TE in the demand period T according to the electric energy accumulation time t E (i) in the i-th slip time t, where the demand period T=n×t;

根据分频后的脉冲常数、第i个滑差时间t内的电能累计时间tE(i)和当前功率计算得到第i个滑差时间t内的电能脉冲累计值Dt(i);According to the pulse constant after frequency division, the electric energy accumulation time t E (i) in the i-th slip time t and the current power, the electric energy pulse accumulation value D t (i) in the i-th slip time t is calculated;

根据第i个滑差时间t内的电能脉冲累计值Dt(i)获得需量周期T内总的电能脉冲累计值DTObtain the total electric energy pulse accumulation value D T in the demand period T according to the electric energy pulse accumulation value D t (i) in the i-th slip time t;

根据需量周期T内总的电能脉冲累计值DT、总的电能累计时间TE、脉冲常数和脉冲常数的分频数计算得到需量周期T内的需量P。The demand P in the demand period T is calculated according to the total electric energy pulse accumulation value D T , the total electric energy accumulation time TE , the pulse constant and the frequency division of the pulse constant in the demand period T.

在一个实施例中,该处理器执行计算机程序时还实现:In one embodiment, when the processor executes the computer program, it further implements:

需量周期T内的需量P按照如下公式计算:The demand P in the demand period T is calculated according to the following formula:

P=(DT/(C×k))/TEP=( D T /(C×k))/TE .

在一个实施例中,该处理器执行计算机程序时还实现:In one embodiment, when the processor executes the computer program, it further implements:

需量周期T内总的电能累计时间TE按照如下公式计算:The total electric energy accumulation time TE in the demand period T is calculated according to the following formula:

Figure BDA0003688472490000111
Figure BDA0003688472490000111

在一个实施例中,该处理器执行计算机程序时还实现:In one embodiment, when the processor executes the computer program, it further implements:

需量周期T内总的电能脉冲累计值DT按照如下公式计算:The total energy pulse accumulated value D T in the demand period T is calculated according to the following formula:

Figure BDA0003688472490000112
Figure BDA0003688472490000112

在一个实施例中,该处理器执行计算机程序时还实现:In one embodiment, when the processor executes the computer program, it further implements:

在电能表的MCU中对脉冲常数进行分频。The pulse constant is divided in the MCU of the energy meter.

在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如下步骤:In one embodiment, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the following steps:

确定滑差时间t和功率采样周期t0,功率采样周期t0≤1s;Determine the slip time t and the power sampling period t 0 , and the power sampling period t 0 ≤ 1s;

在第i个滑差时间t内,初始电能累计时间为0,判断在当前功率采样周期t0采集到的功率是否小于启动功率,若小于启动功率,则电能累计时间不累加;否则,将当前功率采样周期t0累加到前一次的电能累计时间,最终确定第i个滑差时间t内的电能累计时间tE(i),其中,i∈{1,...,n},n>1;In the i-th slip time t, the initial electric energy accumulation time is 0, and it is judged whether the power collected in the current power sampling period t 0 is less than the starting power. If it is less than the starting power, the electric energy accumulation time is not accumulated; otherwise, the current The power sampling period t 0 is accumulated to the previous electric energy accumulation time, and finally the electric energy accumulation time t E (i) in the i-th slip time t is determined, where i∈{1,...,n}, n>1;

根据第i个滑差时间t内的电能累计时间tE(i)获得需量周期T内总的电能累计时间TE,其中需量周期T=n×t;Obtain the total electric energy accumulation time TE in the demand period T according to the electric energy accumulation time t E (i) in the i-th slip time t, where the demand period T=n×t;

根据分频后的脉冲常数、第i个滑差时间t内的电能累计时间tE(i)和当前功率计算得到第i个滑差时间t内的电能脉冲累计值Dt(i);According to the pulse constant after frequency division, the electric energy accumulation time t E (i) in the i-th slip time t and the current power, the electric energy pulse accumulation value D t (i) in the i-th slip time t is calculated;

根据第i个滑差时间t内的电能脉冲累计值Dt(i)获得需量周期T内总的电能脉冲累计值DTObtain the total electric energy pulse accumulation value D T in the demand period T according to the electric energy pulse accumulation value D t (i) in the i-th slip time t;

根据需量周期T内总的电能脉冲累计值DT、总的电能累计时间TE、脉冲常数和脉冲常数的分频数计算得到需量周期T内的需量P。The demand P in the demand period T is calculated according to the total electric energy pulse accumulation value D T , the total electric energy accumulation time TE , the pulse constant and the frequency division of the pulse constant in the demand period T.

在一个实施例中,该处理器执行计算机程序时还实现:In one embodiment, when the processor executes the computer program, it further implements:

需量周期T内的需量P按照如下公式计算:The demand P in the demand period T is calculated according to the following formula:

P=(DT/(C×k))/TEP=( D T /(C×k))/TE .

在一个实施例中,该处理器执行计算机程序时还实现:In one embodiment, when the processor executes the computer program, it further implements:

需量周期T内总的电能累计时间TE按照如下公式计算:The total electric energy accumulation time TE in the demand period T is calculated according to the following formula:

Figure BDA0003688472490000121
Figure BDA0003688472490000121

在一个实施例中,该处理器执行计算机程序时还实现:In one embodiment, when the processor executes the computer program, it further implements:

需量周期T内总的电能脉冲累计值DT按照如下公式计算:The total energy pulse accumulated value D T in the demand period T is calculated according to the following formula:

Figure BDA0003688472490000122
Figure BDA0003688472490000122

在一个实施例中,该处理器执行计算机程序时还实现:In one embodiment, when the processor executes the computer program, it further implements:

在电能表的MCU中对脉冲常数进行分频。The pulse constant is divided in the MCU of the energy meter.

需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all Information and data authorized by the user or fully authorized by the parties.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to a memory, a database or other media used in the various embodiments provided in this application may include at least one of a non-volatile memory and a volatile memory. Non-volatile memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random Memory) Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration and not limitation, the RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM). The database involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.

以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above examples only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be noted that, for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the present application should be determined by the appended claims.

Claims (10)

1.一种电能表需量计算方法,其特征在于,所述方法包括:1. A method for calculating the demand of an electric energy meter, wherein the method comprises: 确定滑差时间t和功率采样周期t0,所述功率采样周期t0≤1s;Determine the slip time t and the power sampling period t 0 , and the power sampling period t 0 ≤ 1s; 在第i个滑差时间t内,初始电能累计时间为0,判断在当前功率采样周期t0采集到的功率是否小于启动功率,若小于启动功率,则电能累计时间不累加;否则,将所述当前功率采样周期t0累加到前一次的电能累计时间,最终确定所述第i个滑差时间t内的电能累计时间tE(i),其中,i∈{1,...,n},n>1;In the i-th slip time t, the initial electric energy accumulation time is 0, and it is judged whether the power collected in the current power sampling period t 0 is less than the starting power. If it is less than the starting power, the electric energy accumulation time is not accumulated; The current power sampling period t 0 is accumulated to the previous electric energy accumulation time, and finally the electric energy accumulation time t E (i) in the i-th slip time t is determined, where i∈{1,...,n }, n>1; 根据所述第i个滑差时间t内的电能累计时间tE(i)获得需量周期T内总的电能累计时间TE,其中需量周期T=n×t;Obtain the total electric energy accumulation time TE in the demand period T according to the electric energy accumulation time t E (i) in the i-th slip time t, where the demand period T=n×t; 根据分频后的脉冲常数、所述第i个滑差时间t内的电能累计时间tE(i)和当前功率计算得到第i个滑差时间t内的电能脉冲累计值Dt(i);According to the pulse constant after frequency division, the electric energy accumulation time t E (i) in the i-th slip time t and the current power, the electric energy pulse accumulation value D t (i) in the i-th slip time t is obtained by calculating ; 根据所述第i个滑差时间t内的电能脉冲累计值Dt(i)获得所述需量周期T内总的电能脉冲累计值DTObtain the total electric energy pulse accumulation value D T in the demand period T according to the electric energy pulse accumulation value D t (i) in the i-th slip time t; 根据所述需量周期T内总的电能脉冲累计值DT、总的电能累计时间TE、脉冲常数和脉冲常数的分频数计算得到所述需量周期T内的需量P。The demand P in the demand period T is calculated according to the total electric energy pulse accumulation value D T , the total electric energy accumulation time TE , the pulse constant and the frequency division number of the pulse constant in the demand period T. 2.根据权利要求1所述的方法,其特征在于,所述计算得到所述需量周期T内的需量P按照如下公式计算:2. method according to claim 1, is characterized in that, the demand P in described demand period T that described calculation obtains is calculated according to following formula: P=(DT/(C×k))/TE P=( D T /(C×k))/TE 其中,C为脉冲常数,k为脉冲常数的分频数。Among them, C is the pulse constant, and k is the frequency division number of the pulse constant. 3.根据权利要求1所述的方法,其特征在于,所述需量周期T内总的电能累计时间TE按照如下公式计算:3. The method according to claim 1, wherein the total electric energy accumulation time TE in the demand period T is calculated according to the following formula:
Figure FDA0003688472480000011
Figure FDA0003688472480000011
4.根据权利要求1所述的方法,其特征在于,所述需量周期T内总的电能脉冲累计值DT按照如下公式计算:4. The method according to claim 1, wherein the total electric energy pulse accumulated value D T in the demand period T is calculated according to the following formula:
Figure FDA0003688472480000012
Figure FDA0003688472480000012
5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, wherein the method further comprises: 在电能表的MCU中对脉冲常数进行分频。The pulse constant is divided in the MCU of the energy meter. 6.根据权利要求1所述的方法,其特征在于,所述脉冲常数的分频数≥5。6 . The method according to claim 1 , wherein the frequency division number of the pulse constant is greater than or equal to 5. 7 . 7.根据权利要求1所述的方法,其特征在于,所述滑差时间t≥1min。7. The method according to claim 1, wherein the slip time t≥1min. 8.根据权利要求1所述的方法,其特征在于,所述需量周期T≥5min。8. The method according to claim 1, wherein the demand period T≥5min. 9.一种电能表需量计算装置,其特征在于,所述装置包括:9. An electric energy meter demand calculation device, wherein the device comprises: 周期确定模块,用于确定滑差时间t和功率采样周期t0,所述功率采样周期t0≤1s;a period determination module, configured to determine the slip time t and the power sampling period t 0 , the power sampling period t 0 ≤ 1s; 功率判断模块,用于在第i个滑差时间t内,判断在当前功率采样周期t0采集到的功率是否小于启动功率,若小于启动功率,则电能累计时间不累加;否则,将所述当前功率采样周期t0累加到前一次的电能累计时间,最终确定所述第i个滑差时间t内的电能累计时间tE(i),其中,i∈{1,...,n},n>1;The power judging module is used for judging whether the power collected in the current power sampling period t 0 is less than the starting power within the i-th slip time t, if it is less than the starting power, the electric energy accumulation time is not accumulated; otherwise, the described The current power sampling period t 0 is accumulated to the previous electric energy accumulation time, and finally the electric energy accumulation time t E (i) within the i-th slip time t is determined, where i∈{1,...,n} , n>1; 电能累计时间确定模块,用于根据所述第i个滑差时间t内的电能累计时间tE(i)获得需量周期T内总的电能累计时间TE,其中需量周期T=n×t;an electric energy accumulation time determining module, configured to obtain the total electric energy accumulation time TE in the demand period T according to the electric energy accumulation time t E (i) in the i-th slip time t, wherein the demand period T=n× t; 电能脉冲累计值计算模块,用于根据分频后的脉冲常数、所述第i个滑差时间t内的电能累计时间tE(i)和当前功率计算得到第i个滑差时间t内的电能脉冲累计值Dt(i),并根据所述第i个滑差时间t内的电能脉冲累计值Dt(i)获得所述需量周期T内总的电能脉冲累计值DTThe electric energy pulse accumulation value calculation module is used to calculate the electric energy in the ith slip time t according to the pulse constant after frequency division, the electric energy accumulation time t E (i) in the i th slip time t and the current power. electric energy pulse accumulation value D t (i), and obtain the total electric energy pulse accumulation value D T in the demand period T according to the electric energy pulse accumulation value D t (i) in the i-th slip time t; 需量计算模块,用于根据所述需量周期T内总的电能脉冲累计值DT、总的电能累计时间TE、脉冲常数和脉冲常数的分频数计算得到所述需量周期T内的需量P。The demand calculation module is used for calculating the demand period T according to the total electric energy pulse accumulation value D T , the total electric energy accumulation time T E , the pulse constant and the frequency division number of the pulse constant in the demand period T the demand P. 10.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至8中任一项所述的方法的步骤。10. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the method according to any one of claims 1 to 8 when the processor executes the computer program. step.
CN202210653848.9A 2022-06-10 2022-06-10 Electric energy meter demand amount calculating method and device Active CN115166350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210653848.9A CN115166350B (en) 2022-06-10 2022-06-10 Electric energy meter demand amount calculating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210653848.9A CN115166350B (en) 2022-06-10 2022-06-10 Electric energy meter demand amount calculating method and device

Publications (2)

Publication Number Publication Date
CN115166350A true CN115166350A (en) 2022-10-11
CN115166350B CN115166350B (en) 2025-07-29

Family

ID=83485385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210653848.9A Active CN115166350B (en) 2022-06-10 2022-06-10 Electric energy meter demand amount calculating method and device

Country Status (1)

Country Link
CN (1) CN115166350B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115856422A (en) * 2023-02-27 2023-03-28 中电装备山东电子有限公司 Method and system for calculating demand of electric energy meter

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08201435A (en) * 1995-01-31 1996-08-09 Toshiba Corp Demand electricity meter built-in type electricity meter
JP2003329708A (en) * 2002-05-16 2003-11-19 Mitsubishi Electric Corp Watt hour meter with transmitter
CN107861089A (en) * 2017-09-26 2018-03-30 国网江西省电力公司电力科学研究院 A kind of intelligent electric energy meter method of testing for being adapted to exceptional operating conditions
CN111736013A (en) * 2020-06-19 2020-10-02 杭州明特科技有限公司 Electric energy metering method and device for electric energy meter, storage medium and terminal
CN112782470A (en) * 2020-12-14 2021-05-11 浙江恒业电子有限公司 Method and system for improving metering precision of three-phase cost control intelligent electric meter based on MCU

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08201435A (en) * 1995-01-31 1996-08-09 Toshiba Corp Demand electricity meter built-in type electricity meter
JP2003329708A (en) * 2002-05-16 2003-11-19 Mitsubishi Electric Corp Watt hour meter with transmitter
CN107861089A (en) * 2017-09-26 2018-03-30 国网江西省电力公司电力科学研究院 A kind of intelligent electric energy meter method of testing for being adapted to exceptional operating conditions
CN111736013A (en) * 2020-06-19 2020-10-02 杭州明特科技有限公司 Electric energy metering method and device for electric energy meter, storage medium and terminal
CN112782470A (en) * 2020-12-14 2021-05-11 浙江恒业电子有限公司 Method and system for improving metering precision of three-phase cost control intelligent electric meter based on MCU

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
唐登平;李俊;郑欣;夏天;向鑫;李红斌;: "适用于复杂工况的高性能标准数字化电能表", 电测与仪表, no. 22, 25 November 2018 (2018-11-25), pages 145 - 151 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115856422A (en) * 2023-02-27 2023-03-28 中电装备山东电子有限公司 Method and system for calculating demand of electric energy meter
CN115856422B (en) * 2023-02-27 2023-06-06 中电装备山东电子有限公司 Electric energy meter demand amount calculating method and system

Also Published As

Publication number Publication date
CN115166350B (en) 2025-07-29

Similar Documents

Publication Publication Date Title
WO2020259096A1 (en) Method, device and system for estimating state of power of battery, and storage medium
AU2016416626B2 (en) Method and device for the use of an electrochemical energy storage device so as to optimize the service life
WO2024244239A1 (en) Battery cell soc estimation method, device, server, and storage medium
CN115808624A (en) A battery health detection method, device and storage medium
CN113805084A (en) Method and device for calculating battery capacity attenuation, computer equipment and storage medium
WO2022077874A1 (en) Electric energy curve data storage method, electric energy meter, and computer-readable storage medium
CN110470995A (en) Method, system and terminal equipment for obtaining battery remaining discharge time
CN118011240B (en) Method and device for evaluating consistency of batteries, storage medium and computer equipment
CN116718922A (en) Battery pack SOC estimation method, device, server and storage medium
CN115166350A (en) Method and device for calculating demand of electric energy meter
CN118671625A (en) Charging remaining time determination method, apparatus, computer device, medium, and program product
US11157974B2 (en) Prepaid utility metering with complex rates using advanced metering infrastructure (AMI) smart meters
CN112782601A (en) Method, system and equipment for acquiring health degree of battery and readable storage medium
CN111124811A (en) Method, system and device for acquiring SSD data retention time
WO2025260640A1 (en) Power control method and apparatus for energy storage system
CN119179900A (en) Intelligent ammeter data acquisition method and system based on Internet of things
CN119512450B (en) A method, apparatus and computer device for storing electricity meter data.
CN118937796A (en) Impedance measurement method, device, equipment, readable storage medium and program product
CN118671623A (en) Battery parameter determining method, device, computer equipment and storage medium
CN116540115A (en) Battery energy state monitoring method and battery system
CN115825764A (en) Battery cell K value determination method and device, computer equipment and medium
CN118011074B (en) Monitoring method, device, system and storage medium for voltage fluctuation in transformer area
WO2024252591A1 (en) Management device, management method, and program
CN110659824A (en) Electricity balance measurement method and device
CN117368766A (en) Power status updating method, device, computer equipment, storage medium and product

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