A single-phase electric energy meter design method based on a large-current built-in relay

By designing a single-phase energy meter based on a high-current built-in relay, the problems of metering error and imperfect control in traditional energy meters under high-current conditions are solved, achieving efficient and accurate energy metering and safe management.

CN119619977BActive Publication Date: 2025-12-05GUIZHOU POWER GRID CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411750799.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-12-05
Estimated Expiration
2044-12-02

AI Technical Summary

Technical Problem

Traditional single-phase energy meters are susceptible to interference in high-current environments, resulting in large metering errors, complex operation, and imperfect overcurrent and overload control, making it difficult to meet the needs of high-power devices.

Method used

Design a single-phase energy meter based on a high-current built-in relay. Through initializing EEPROM data, clearing the energy level, comparing parameters, accumulating energy, and controlling overcurrent and overload, it can achieve accurate measurement and rapid response of high current.

Benefits of technology

It improves the metering accuracy and reliability of electricity meters, ensures the accuracy of electricity consumption data, prevents equipment damage and safety accidents, and enhances the adaptability and intelligence level of electricity meters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119619977B_ABST
    Figure CN119619977B_ABST
Patent Text Reader

Abstract

The application discloses a single-phase electric energy meter design method based on a large-current built-in relay and belongs to the technical field of power system metering, which comprises the following steps: a user connects a power supply; an electric energy meter system starts and initializes EEPROM data; the system carries out electric quantity zero clearing operation and metering processing; table calibration parameters are read through EEPROM and are loaded to a metering chip to carry out parameter comparison; after all the table calibration parameters are confirmed to be correct, active electric quantity and reactive electric quantity are accumulated according to the electric energy direction and data initialization is carried out; the system detects pulses at regular time intervals and judges validity; according to the change of power consumption demand, the maximum demand is calculated and different power processing is carried out; and during the system operation, electric energy meter overcurrent overload control and voltage loss monitoring are carried out throughout the whole process. The application improves metering precision through dynamic power factor and demand calculation, simultaneously realizes overcurrent overload control and voltage loss monitoring, effectively improves electric energy meter operation safety and data reliability, and has remarkable technical and economic benefits.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of power system metering, in particular to a single-phase electric energy meter design method based on a large-current built-in relay. BACKGROUND

[0002] With the continuous promotion of smart grids and fine management, the detection, control and management functions of electric energy meters become increasingly important. As a key device for electric energy metering, the design of single-phase electric energy meters not only needs to meet the requirements of metering accuracy, but also should have the ability to monitor and control large currents to cope with the widespread existence of high-power devices in modern power consumption environments.

[0003] As an indispensable part of the power system, the design method and performance of single-phase electric energy meters directly affect the accuracy and reliability of power metering. Traditional single-phase electric energy meter design methods rely on small current relays, which meet the demand of electric energy metering within a certain range, but in the face of large current environment.

[0004] In the traditional design of electric energy meters, the main focus is on accurate metering of electric energy. However, with the continuous increase of power load, especially the widespread use of high-power electrical appliances in residential and commercial power consumption, electric energy meters are often placed in high-intensity working conditions. Traditional electric energy meters may have the risk of current overload when dealing with large currents, thereby affecting their safety and reliability. Therefore, improving the design of electric energy meters by introducing large-current relays to enhance their protection and control capabilities in large-current conditions is a pressing problem to be solved.

[0005] Small current relays are easily disturbed in large current environment, resulting in increased metering error. Secondly, existing electric energy meters have complex operations in terms of electric quantity clearing, parameter comparison and power consumption mode detection, and are prone to failure. Thirdly, the handling of overcurrent overload control and voltage loss monitoring is not perfect, and it is difficult to meet the needs of actual application. In particular, in terms of electric energy meter initialization, electric energy accumulation and data initialization, existing technologies have certain limitations.

[0006] The single-phase electric energy meter design method based on a large-current relay invented by our side, aiming at the shortcomings of existing technologies, proposes an innovative solution with high practical value and market prospects in the field of single-phase electric energy meter design. SUMMARY

[0007] In view of the above existing problems, the present application develops a single-phase electric energy meter based on a large-current relay, which can efficiently and accurately complete electric energy metering, and has rapid response capability to abnormal conditions such as overcurrent and short circuit to protect the safety of the circuit and user equipment. At the same time, the electric energy meter should also have a good data verification mechanism to ensure its reliability under extreme working conditions.

[0008] To solve the above technical problems, a single-phase electric energy meter design method based on a large-current built-in relay is provided, comprising,

[0009] When the user turns on the power, the electric energy meter system starts and initializes the EEPROM data, the system performs the power clearing operation, and the power clearing flag is observed to determine whether to perform the clearing operation and perform the metering processing; the calibration parameters are read from the EEPROM and loaded into the metering chip, and parameter comparison is performed; after all the calibration parameters are confirmed to be correct, the system allows the power to be used, and the active power and the reactive power are accumulated according to the power direction and initialized; for the power mode, the system detects the pulse and judges the validity at regular time, calculates the maximum demand according to the change of power demand, and processes different powers, and performs the overcurrent and overload control and voltage loss monitoring of the electric energy meter during the system operation.

[0010] As a preferred scheme of the single-phase electric energy meter design method based on a large-current built-in relay, wherein: the zero clearing operation includes that the user turns on the power, the electric energy meter system starts, initializes the EEPROM data, performs the power-on zero clearing operation of the electric energy meter, and observes whether the power clearing flag appears:

[0011] When the power clearing flag does not appear, the metering processing is directly performed;

[0012] When the power clearing flag appears, it is detected whether the supply voltage of the EEPROM data is sufficient, when the supply voltage is sufficient, the power clearing operation is ended, and when the supply voltage is insufficient, the power clearing operation is performed, and the metering processing is performed after the zero clearing;

[0013] The metering processing includes that the system reads the calibration parameters from the EEPROM data and transmits them to the RAM, loads the calibration parameters to the metering chip, reads the calibration parameters from the metering chip and compares them with the data in the RAM, and confirms whether the data loaded into the metering chip is consistent with the RAM:

[0014] When the comparison result is consistent, the meter enters the normal working state, the parameters in one metering chip are detected every second, and the cycle is repeated multiple times until all the calibration parameters are detected, and when the calibration parameters are correct, the calibration parameter processing is completed, and when the calibration parameters are incorrect, the metering chip is hard reset and the calibration parameters are reloaded to the metering chip until the calibration parameters are correct;

[0015] When the comparison result is inconsistent, the calibration parameters are reloaded to the metering chip until the comparison is correct.

[0016] As a preferred scheme of the design method of the single-phase electric energy meter based on the large-current built-in relay, wherein: the cumulative counting of the active electric quantity and the reactive electric quantity comprises, after all the comparison of the loaded calibration parameters is correct, sending a prompt to inform the user to start using electricity and read the current rate, the electric meter pulse constant, the current electric energy direction, and the cumulative counting of the active and reactive electric quantities according to the electric energy direction, and the calculation of the comprehensive composite energy is:

[0017] E composite = E active +k·(E reactive +E apparent )

[0018]

[0019] wherein, E composite is the total energy value of the active, reactive and apparent power influence, E active is the active electric quantity, E reactive is the reactive electric quantity, E apparent is the apparent energy, and k is the weight factor for adjusting the influence of the reactive and apparent energy on the total energy;

[0020] The dynamic power factor is established to consider the current load condition:

[0021]

[0022] wherein, PF dynamic represents the real-time value of the power factor under the current load condition, U represents the effective voltage, I represents the effective current, and a represents the coefficient reflecting the influence of the instantaneous current on the dynamic power factor, and I transient represents the instantaneous current;

[0023] When the read total active direction is positive, the cumulative counting of the positive active total and rate electric energy is performed, the total reactive direction is judged in the electric quantity counting, when the total reactive direction is positive, the cumulative counting of the two-quadrant power total and rate electric energy is judged, when the total reactive direction is negative, the cumulative counting of the three-quadrant reactive total and rate electric energy is judged, and then the cumulative counting of the three-phase electric energy is judged respectively;

[0024] When the read total active direction is negative, the cumulative counting of the reverse active total and rate electric energy is performed, the total reactive direction is judged in the electric quantity counting, when the total reactive direction is positive, the cumulative counting of the one-quadrant power total and rate electric energy is judged, when the total reactive direction is negative, the cumulative counting of the four-quadrant reactive total and rate electric energy is judged, and then the cumulative counting of the three-phase electric energy is judged respectively;

[0025] The data initialization comprises: judging the electric quantity data initialization after the electric quantity accumulation, recovering the current total electric quantity and the rate data from the backup total and rate electric quantity RAM data, recovering the current total electric quantity and the rate pulse data from the backup total and rate pulse RAM data, and checking whether the electric quantity and pulse RAM passes the check; when the check does not pass, reading the EE electric quantity data and assigning the value to the RAM; continuously checking whether the electric quantity RAM passes the check; when the check passes, comparing whether the total pulse and the rate pulse relationship is normal; and when the data relationship is normal, initializing the related local parameters and the electric quantity related to the charge.

[0026] As a preferred scheme of the single-phase electric energy meter design method based on the large-current built-in relay, the detection pulse comprises: when the user needs to obtain the historical electric quantity data, the system reads the electric quantity and pulse data in the EEPROM and increases the check bit, wherein the dynamic demand and the pulse relationship are:

[0027] MD t = max(P t ,P previous +m·(P pulse ))

[0028] MD t is the current demand at time t, P t is the instantaneous power at the current time t, P previous is the historical demand, m is the pulse adjustment factor of the influence of the pulse quantity on the demand, and P pulse is the number of the current pulse.

[0029] When the dynamic demand and the pulse relationship are met, it is considered that the electric quantity RAM passes the check, and the electric energy pulse distribution is allowed to be performed;

[0030] When the electric energy pulse distribution is performed, the user continuously uses the power mode, the system detects the pulse in the timing interrupt, and accumulates the effective pulse according to the set condition, wherein the timing interrupt is detected in the 1MS timing interrupt, 15 low levels and 15 high levels are continuously monitored, it is considered that the pulse is effective, the reactive pulse number is added by 1, and whether the apparent electric energy and the split-phase electric energy meet one pulse is calculated according to the register value, the corresponding pulse number is added by 1, and the effective pulse is accumulated.

[0031] The judgment of the effectiveness comprises the judgment of the effectiveness of the reactive pulse and the judgment of the effectiveness of the energy.

[0032] As a preferred scheme of the single-phase electric energy meter design method based on the large-current built-in relay, the pulse validity comprises periodically reading the energy register within one minute when the electricity demand changes, calculating the maximum demand data, judging whether the accumulated count value is less than 120, accumulating the register into the buffer zone when the count value is less than 120, and shifting the previous 60 buffer zone data backward by one space when the count value exceeds 120.

[0033] The maximum demand data is calculated as follows: when the electric energy pulse frequency exceeds a specified threshold A, the maximum demand is calculated by calling a maximum demand calculation function, reading the pulse number structure of 60 minutes, adding the pulse numbers in the pulse number structure bodies of the same number of demand periods as the recent one, obtaining the total number of pulses in the demand period, multiplying the total number of pulses in the demand period by the energy represented by each pulse, and then dividing by the maximum demand period to obtain the demand value of the last time:

[0034] When the electric energy pulse frequency is less than the specified threshold A, the maximum demand is calculated by calling the maximum demand calculation function to calculate the demand value of this time, adding the pulse numbers in the pulse number structure bodies of the same number of demand periods as the recent one, subtracting 1 to obtain the total number of pulses in the demand period, subtracting the time tag of the earliest pulse in the pulse number structure body that is recursively propagated forward by the same number of demand periods from the time tag of the last pulse in the last pulse number structure body, taking the current time difference as the time period for calculating the demand this time, multiplying the total number of pulses by the energy represented by each pulse, and then dividing by the time period for calculating the demand this time to obtain the demand value of the last time.

[0035] As a preferred scheme of the single-phase electric energy meter design method based on the large-current built-in relay, the maximum demand comprises active demand processing, reactive demand processing, apparent demand processing, and split-phase demand processing in the minute message.

[0036] The active demand processing comprises calling the calculated maximum demand to calculate the demand value of this time, judging whether the active direction is positive, comparing the demand value with the current reverse active maximum demand when the active direction is negative, and taking the larger value as the total active maximum demand, comparing the demand value with the current forward active maximum demand when the active direction is positive, and taking the larger value as the total active maximum demand, judging whether the rate maximum demand timer exceeds the demand period when the total active maximum demand is obtained, comparing the demand value with the rate maximum demand according to the current rate when the rate maximum demand timer is greater than or equal to the demand period, and taking the larger value as the rate maximum demand, calling the maximum demand storage function to store the active maximum demand and the occurrence time, and adding 1 to the rate maximum demand timer and calling the maximum demand storage function to store the active maximum demand and the occurrence time when the rate maximum demand timer is less than the demand period.

[0037] The reactive demand processing includes calling the maximum demand calculation function to calculate the current demand value, judging whether the reactive combination mode word contains the current quadrant, when the current single-phase quadrant is contained, comparing the demand value with the total maximum demand of the current reactive combination, and taking the larger value as the total maximum demand of the current reactive combination, judging whether the rate maximum demand timer exceeds the demand period, when the rate maximum demand timer is greater than or equal to the demand period, comparing the demand value with the rate maximum demand of the current reactive combination according to the current rate, and taking the larger value as the rate maximum demand of the current reactive combination, and judging the current quadrant; when the rate maximum demand timer is less than the demand period, adding 1 to the rate maximum demand timer and judging the current quadrant;

[0038] When the current single-phase quadrant is not contained, directly judging the current quadrant, comparing the demand value with the total maximum demand of the current quadrant, and taking the larger value as the total maximum demand of the current quadrant, judging whether the rate maximum demand timer exceeds the demand period, when the rate maximum demand timer is greater than or equal to the demand period, comparing the demand value with the rate maximum demand of the current quadrant according to the current rate, and taking the larger value as the rate maximum demand of the current quadrant, when the rate maximum demand timer is less than the demand period, adding 1 to the rate maximum demand timer and calling the maximum demand storage function to store the active maximum demand and the occurrence time;

[0039] The apparent demand processing includes calling the maximum demand calculation function to calculate the current demand value, judging whether the apparent power direction is positive, when the apparent power direction is positive, comparing the demand value with the current positive apparent maximum demand, and taking the larger value as the apparent total maximum demand, when the apparent power direction is negative, comparing the demand value with the current reverse apparent maximum demand, and taking the larger value as the apparent total maximum demand, when the apparent total maximum demand is obtained, judging whether the rate maximum demand timer exceeds the demand period, when the rate maximum demand timer is greater than or equal to the demand period, comparing the demand value with the rate maximum demand according to the current rate, and taking the larger value as the rate maximum demand, calling the maximum demand storage function to store the apparent maximum demand and the occurrence time, when the rate maximum demand timer is less than the demand period, adding 1 to the rate maximum demand timer and then calling the maximum demand storage function to store the apparent maximum demand and the occurrence time;

[0040] The single-phase required amount processing includes: calling a maximum required amount calculation function to calculate the current required amount value; judging whether the active power direction is positive; when the active power direction is negative, comparing the required amount value with the current reverse active maximum required amount, and taking the larger value as the reverse active total maximum required amount; when the active power direction is positive, comparing the required amount value with the current positive active maximum required amount, and taking the larger value as the positive active total maximum required amount; when the total active maximum required amount is obtained, calling a read EE data function to read 60 pulse number data of the reactive required amount, starting from the time of the nearest minute and recursively calculating the required amount pulse number in the same period of time, multiplying the accumulated pulse number by the energy represented by a single pulse and dividing by the required amount period to obtain the last required amount value; judging whether the reactive combination mode contains the current single-phase quadrant; when the current single-phase quadrant is not contained, judging whether it is the current quadrant, comparing the required amount value with the total maximum required amount of the current quadrant, and taking the larger value as the total maximum required amount of the single-phase current quadrant; calling the maximum required amount calculation function to calculate the current required amount value; judging the apparent power direction and the total maximum required amount; and calling a maximum required amount storage function to store the maximum required amount and the occurrence time.

[0041] As a preferred scheme of the single-phase electric energy meter design method based on a large-current built-in relay, the overcurrent overload control and the voltage loss monitoring include that the overcurrent overload control includes that when the load power exceeds a set limit value, the built-in switch in the electric meter is controlled to be opened, wherein the built-in switch in the electric meter is closed in a specified time period, the power of the electric meter is calculated, and when the electric meter detects that the power returns to a normal value, the built-in switch is controlled to be closed to supply power.

[0042] When the overcurrent phenomenon occurs, the built-in relay is pulled out of the circuit, and overcurrent information is reported to a master station; the built-in switch in the electric meter is closed in a specified time period to judge whether the current is overloaded; and only when it is judged that the current is not overloaded, the built-in switch is closed to keep supplying power.

[0043] The overcurrent threshold value for judging whether the current is overloaded is set as:

[0044] I adaptive = I rated + δ · max (MD t , I short )

[0045] wherein I adaptive is an adaptive current threshold value, I rated represents the maximum current bearing capacity of the electric meter in design, δ is a required amount feedback factor for calibrating dynamic required amount, and I short is a short-term burst current.

[0046] The pressure loss monitoring includes, when the electric energy meter is powered off to full pressure loss, full pressure loss detection is performed, a 60-second delay timer is initialized after the battery is opened, the delay timer is reduced by 1, whether there is a wake-up is detected:

[0047] When there is no wake-up display, whether there is power-on is detected, when there is power-on, power-on processing is performed, when there is no power-on, whether the timer is 0 is detected, when the timer is 0, the current and full pressure loss detection completion flag are detected and stored, and the battery is closed; when the timer is not 0, the delay timer is continuously reduced by 1, and whether it is woken up to detect the current and full pressure loss detection completion flag is detected;

[0048] When there is a wake-up, the wake-up display is issued, and whether there is power-on is further detected, when there is power-on, power-on processing is performed, when there is no power-on, whether the full pressure loss detection completion flag is valid or the time difference from the power-off time is greater than 1 minute is checked:

[0049] When the full pressure loss detection completion flag is valid and the time difference from the power-off time is greater than 1 minute, when the time end is not displayed, the wake-up display is reissued and further detection is re-performed; when the full pressure loss detection completion flag is invalid or the time difference from the power-off time is not more than 1 minute, whether the time difference from the power-off time is equal to 1 minute is checked:

[0050] When it is equal to 1 minute, the current and full pressure loss detection completion flag are detected and stored, whether the time end is displayed is observed, when the time end is not displayed, the wake-up display is reissued and further detection is re-performed; when it is not equal to 1 minute, whether the time end is displayed is observed, when the time end is not displayed, the wake-up display is reissued and further detection is re-performed; when the time end is displayed, the wake-up display closes the battery and continues to open and delay for 1 second, and whether there is a wake-up is detected again:

[0051] When there is a wake-up at this time, the wake-up display is issued, and whether there is power-on is further detected, when there is no wake-up display, whether the time difference from the power-off time is equal to 1 minute is checked again, when it is equal to 1 minute, the current and full pressure loss detection completion flag are detected and stored, and when it is not equal to 1 minute, the delay is 1 second again until the current and full pressure loss detection completion flag are detected.

[0052] Another object of the present application is to provide a single-phase electric energy meter design system based on a large-current built-in relay, which aims to solve technical problems such as accurate electric energy metering, reliable data processing and storage, real-time monitoring and control, system stability and safety, demand calculation and optimization, and adaptation to different power consumption modes, and through self-checking and zeroing operation of the initialization and metering module, parameter comparison of the metering processing unit, electric quantity accumulation and data backup verification of the electric quantity accumulation and data processing module, and pulse detection, overcurrent and overload control, and voltage loss monitoring of the monitoring and control module, efficient, accurate and safe electric energy metering and management are realized, power safety is ensured, and power efficiency is improved.

[0053] As a preferred scheme of the single-phase electric energy meter design system based on a large-current built-in relay, the system comprises an initialization and metering module, an electric quantity accumulation and data processing module, and a monitoring and control module.

[0054] The initialization and metering module comprises a system initialization unit and a metering processing unit, the initialization unit starts the electric energy meter system after the user turns on the power, initializes the EEPROM data, and performs system electric quantity zeroing operation, the metering processing unit reads the EEPROM data, transmits the metering chip to the calibration parameter, compares the parameters, and allows the power to be started after the parameters are correct;

[0055] The electric quantity accumulation and data processing module comprises an electric quantity accumulation unit and a data initialization unit, the electric quantity accumulation unit accumulates active power and reactive power according to the electric energy direction, calculates the comprehensive composite energy, and establishes a dynamic power factor, the data initialization unit initializes the data after the electric quantity accumulation, backs up and restores the electric quantity data, and performs electric quantity and pulse RAM verification;

[0056] The monitoring and control module comprises a pulse detection unit, an overcurrent and overload control unit, and a voltage loss monitoring unit, the pulse detection unit detects the pulse at regular intervals and judges the validity, distributes the electric energy pulse, and calculates the maximum demand, the overcurrent and overload control unit is responsible for overcurrent and overload control, and turns off the built-in switch when the load power exceeds the set limit, and turns on the built-in switch after the normality is restored, and the voltage loss monitoring unit monitors the voltage loss and performs corresponding processing.

[0057] A computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of the single-phase electric energy meter design method based on a large-current built-in relay when executing the computer program.

[0058] A computer readable storage medium stores a computer program, and the computer program implements the steps of the single-phase electric energy meter design method based on a large-current built-in relay when executed by a processor.

[0059] The beneficial effects of the present application: after the user of the present application turns on the power, the electric energy meter system starts and initializes the EEPROM data, performs the power clearing operation, ensures the accurate start of each measurement period, avoids the cumulative error, and improves the accuracy of measurement; at the same time, by observing the power clearing flag to determine whether to perform the clearing operation and perform the measurement processing, the measurement error is effectively avoided, and the accuracy of the user's power data is ensured.

[0060] The calibration parameters are read by the EEPROM and loaded to the measurement chip, parameter comparison is performed, the correct parameters are ensured for the measurement chip, data transmission errors are prevented, and the reliability of measurement is further ensured.

[0061] After all the calibration parameters are confirmed to be correct, the system allows the power to be started, and the active power and the reactive power are accumulated according to the direction of the electric energy, and the data is initialized, detailed power information is provided for the user, and the accuracy of the power accumulation is ensured.

[0062] Finally, the validity is judged by the timing detection pulse, the maximum demand is calculated and different power processing is performed, and the overcurrent overload control and voltage loss monitoring are performed throughout the process, which improves the adaptability, safety and intelligent level of the electric energy meter, provides data support for power system dispatching, and effectively prevents the occurrence of equipment damage and safety accidents. BRIEF DESCRIPTION OF DRAWINGS

[0063] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0064] Figure 1 The overall flow chart of a single-phase electric energy meter design method based on a large-current built-in relay provided for an embodiment of the present application.

[0065] Figure 2 The system scheme module diagram of a single-phase electric energy meter design method based on a large-current built-in relay provided for an embodiment of the present application. DETAILED DESCRIPTION

[0066] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application will be described in detail below with reference to the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.

[0067] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, it will be apparent to one skilled in the art that the present application can be practiced without the specific details set forth in this description. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the present application.

[0068] It should also be noted that, as used herein, "the embodiment" and "embodiments" refers to any one of the implementations of the present application, including specific feature, structure, or characteristic within the present application. "In one embodiment" and "in another embodiment" do not necessarily refer to the same embodiment, though they can. The terms "in one embodiment" and "in another embodiment" are used interchangeably with the term "in at least one embodiment."

[0069] The present application is described in detail below with reference to the attached drawing figures, wherein the embodiments of the application are shown by way of illustration. As should be understood, the drawings are not intended to limit the present application, but are intended to be exemplary only. In the drawings, like references numerals can be used to denote like components throughout the various figures.

[0070] In the description of the present application, it should be noted that the terms "upper and lower, inside and outside" and the like indicate the positional or relative relationship shown in the drawings, and are only for the purpose of facilitating the description of the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first, second or third" are only for the purpose of description, and cannot be understood as indicating or implying relative importance.

[0071] In the present application, unless otherwise specifically defined and limited, the terms "mounting, connecting, and connecting" should be broadly understood, for example: it can be a fixed connection, detachable connection or integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, it can also be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0072] Embodiment 1, refer to Figure 1 As a first embodiment of the present application, the embodiment provides a single-phase electric energy meter design method based on a large-current built-in relay, comprising:

[0073] S1: the user turns on the power, the electric energy meter system starts and initializes the EEPROM data, the system performs the electric quantity zero operation, and observes the electric quantity zero flag to determine whether to perform the zero operation and perform the metering processing.

[0074] Specifically, the user turns on the power, the electric energy meter system starts, initializes the EEPROM data, performs the electric energy meter power-on zero operation, and observes whether the electric quantity zero mark appears:

[0075] When the electric quantity zero mark does not appear, the metering processing is directly performed;

[0076] When the electric quantity zero mark appears, it is detected whether the supply voltage of the EEPROM data is sufficient, when the supply voltage is sufficient, the electric zero operation is ended, when the supply voltage is insufficient, the electric quantity zero operation is performed, and after zeroing, the metering processing is performed;

[0077] The metering processing includes that the system reads the meter calibration parameters from the EEPROM data and transmits them to the RAM, loads the meter calibration parameters to the metering chip, reads the meter calibration parameters from the metering chip and compares them with the data in the RAM, and confirms whether the data loaded to the metering chip is consistent with the RAM:

[0078] When the comparison result is consistent, the meter enters the normal working state, the parameters in one metering chip are detected every second, and the cycle is repeated multiple times until all the meter calibration parameters are detected, and when the meter calibration parameters are correct, the meter calibration parameter processing is completed, and when the meter calibration parameters are incorrect, the metering chip is hard reset and the meter calibration parameters are reloaded to the metering chip until the meter calibration parameters are correct;

[0079] When the comparison result is inconsistent, the meter calibration parameters are reloaded to the metering chip until the comparison is correct.

[0080] S2: Read the meter calibration parameters from the EEPROM and load them to the metering chip, and perform parameter comparison.

[0081] S3: After all the meter calibration parameters are confirmed to be correct, the system allows the power to be used, and the active power and reactive power are accumulated according to the electric energy direction and the data is initialized.

[0082] Further, when all the loaded meter calibration parameters are compared correctly, a prompt is sent to the user to start using the power and read the current rate, the electric meter pulse constant, the current electric energy direction, the active and reactive power are accumulated according to the electric energy direction, and the comprehensive composite energy is calculated as:

[0083] E composite = E active + k·(E reactive + E apparent )

[0084]

[0085] Wherein, E composite is the total energy value affected by the active, reactive and apparent power, E active is the active power, and E reactiveFor no function, E apparent For apparent energy, k is the weight factor of adjusting the influence of reactive and apparent energy on total energy;

[0086] The dynamic power factor is established to consider the current load condition:

[0087]

[0088] Wherein, PF dynamic Indicates the real-time value of the power factor under the current load condition, U indicates the effective voltage, I indicates the effective current, and a indicates the coefficient reflecting the influence of instantaneous current on dynamic power factor, I transient Indicates the instantaneous current;

[0089] When the total active direction read is positive, the positive total active and rate energy is accumulated, the total active direction is judged, the total reactive direction is judged in the electric quantity accumulation, when the total reactive direction is positive, the two-quadrant total and rate energy is judged and accumulated, when the total reactive direction is negative, the three-quadrant total and rate energy is judged and accumulated, and then the three-phase energy is judged and accumulated respectively;

[0090] When the total active direction read is negative, the reverse total active and rate energy is accumulated, the total active direction is judged, the total reactive direction is judged in the electric quantity accumulation, when the total reactive direction is positive, the one-quadrant total and rate energy is judged and accumulated, when the total reactive direction is negative, the four-quadrant total and rate energy is judged and accumulated, and then the three-phase energy is judged and accumulated respectively;

[0091] The data initialization includes judging the electric quantity accumulation to initialize the electric quantity data, restoring the current total electric quantity and rate data from the backup total and rate electric quantity RAM data, restoring the current total electric quantity and rate pulse data from the backup total and rate pulse RAM data, and then judging whether the electric quantity and pulse RAM passes the verification, when the verification fails, reading the EE electric quantity data and assigning it to the RAM, continuously verifying whether the electric quantity RAM passes the verification, when the verification passes, comparing whether the total pulse and rate pulse relationship is normal, when the data relationship is normal, initializing the related local parameters and the electric quantity related to the charge.

[0092] S4: For the power consumption mode, the system detects the pulse and judges the validity in time, calculates the maximum demand according to the change of power consumption demand, processes different powers, and performs overcurrent overload control and voltage loss monitoring of the electric energy meter during the system operation.

[0093] Further, when the user needs to obtain historical power consumption data, the system reads the electric quantity and pulse data in the EEPROM and increases the check bit, wherein the dynamic demand and the pulse relationship are:

[0094] MD t= max (P t , P previous + m · (P pulse ))

[0095] Wherein, MD t is the current demand at time t, P t is the instantaneous power at the current time t, P previous is the historical demand, m is the pulse adjustment factor of the pulse number affecting the demand, P pulse is the number of the current pulse;

[0096] When the dynamic demand and pulse relationship are met, it is considered that the electricity RAM check is passed, and the electric energy pulse distribution is allowed to be carried out;

[0097] When the electric energy pulse distribution is carried out, the user is in the power consumption mode, the system detects the pulse in the timing interrupt, and accumulates the effective pulse according to the set condition, the timing interrupt is detected in 1MS timing interrupt, 15 low levels and 15 high levels are continuously monitored, and it is considered that the pulse is effective, the reactive pulse number is added by 1, and the apparent electric energy and the split-phase electric energy are calculated according to the register value to determine whether a pulse is met, and the corresponding pulse number is added by 1 to accumulate the effective pulse;

[0098] The judgment validity includes the reactive pulse validity judgment and the energy validity judgment;

[0099] The reactive pulse validity judgment includes that the detection is carried out in 8MS timing interrupt, and the dynamic validity count of high level and low level is defined as:

[0100]

[0101] Wherein, is the dynamic high level count in the current time t, N H is the basic high level count, is the dynamic low level count in the current time window t, N L is the basic low level count, a is the adjustment coefficient of the sensitivity of controlling the high level count promotion, b is the adjustment coefficient of the sensitivity of controlling the low level count promotion, E his is the average energy in the historical window;

[0102] When and , it is considered that the pulse is effective, wherein, N th,H is the defined effective high level count threshold, N th,L is the defined effective low level count threshold, the high level dynamic count and the energy level are combined to judge the validity of the active pulse:

[0103]

[0104] Combining low-level dynamic counting and energy level, reactive pulse effectiveness is judged:

[0105]

[0106] Final total effectiveness judgment is:

[0107]

[0108] Wherein, is the effectiveness value of active pulse, W h is the weighting factor of active pulse effectiveness judgment, is the effectiveness value of reactive pulse, W l is the weighting factor of reactive pulse effectiveness judgment, V eff is the comprehensive effectiveness judgment value, K V is the threshold value of comprehensive effectiveness judgment, only when V eff is greater than K V , it is considered to be an effective pulse;

[0109] The effectiveness of the energy is judged, including, after confirming the pulse effectiveness, the system performs main loop calling, updates the instantaneous power data once every 312.5ms, reads the registers of the metering chip for phase voltage, current, active power, reactive power, apparent power, and obtains the actual value, power factor, and reads the electric energy register to perform pulse judgment:

[0110] In the 500MS timing interrupt, the total active forward and reverse, reactive forward and reverse, apparent forward and reverse, and the active forward and reverse, reactive forward and reverse, and apparent forward and reverse electric energy registers of the split-phase are read respectively, and the effectiveness of the energy is judged.

[0111] It should be noted that when the demand for electricity changes, the energy register is periodically read within one minute, the maximum demand data is calculated, and it is judged whether the cumulative counting value is less than 120 times. When the counting value is less than 120, the register is accumulated in the buffer area. When the counting value exceeds 120, the previous 60 buffer area data is shifted one space backward.

[0112] Wherein, the maximum demand data is calculated as follows: when the electric energy pulse frequency exceeds the specified threshold A, the maximum demand is calculated by calling the maximum demand calculation function to calculate the demand value, reading the pulse number structure of 60 minutes, adding the pulse numbers in the pulse number structure body of the same number of pulses in the demand period, obtaining the total number of pulses in the demand period, and then multiplying the total number of pulses in the demand period by the energy represented by each pulse and dividing by the maximum demand period to obtain the demand value of the last time:

[0113] When the electric energy pulse frequency is less than a specified threshold A, the maximum demand is calculated by calling a maximum demand calculation function to calculate the current demand value, reading the 60-minute pulse number structure, adding the pulse numbers in the pulse number structure bodies of the same number of demand periods as the most recent one and then subtracting 1 to obtain the total number of pulses in the demand period, subtracting the time stamp of the earliest pulse in the pulse number structure body that is the same number of demand periods as the most recent one from the time stamp of the last pulse in the most recent pulse number structure body, and taking the current time difference as the time period for the current demand calculation, multiplying the total number of pulses by the energy represented by each pulse and then dividing by the time period for the current demand calculation to obtain the demand value of the most recent one.

[0114] It should also be noted that the maximum demand includes active demand processing, reactive demand processing, apparent demand processing, and split-phase demand processing in the minute message.

[0115] The active demand processing includes calling the calculated maximum demand to calculate the current demand value, determining whether the active direction is positive, comparing the demand value with the current reverse active maximum demand when the active direction is negative, and taking the larger value as the total active maximum demand, comparing the demand value with the current forward active maximum demand when the active direction is positive, and taking the larger value as the total active maximum demand, determining whether the rate maximum demand timer exceeds the demand period when the total active maximum demand is obtained, comparing the demand value with the rate maximum demand according to the current rate when the rate maximum demand timer is greater than or equal to the demand period, and taking the larger value as the rate maximum demand, calling the maximum demand storage function to store the active maximum demand and the occurrence time, and adding 1 to the rate maximum demand timer and then calling the maximum demand storage function to store the active maximum demand and the occurrence time when the rate maximum demand timer is less than the demand period.

[0116] The reactive demand processing includes calling the maximum demand calculation function to calculate the current demand value, determining whether the reactive combination mode word contains the current quadrant, comparing the demand value with the current reactive combination total maximum demand when the current single-phase quadrant is contained, and taking the larger value as the total maximum demand of the current reactive combination, determining whether the rate maximum demand timer exceeds the demand period, comparing the demand value with the current reactive combination mode rate maximum demand according to the current rate when the rate maximum demand timer is greater than or equal to the demand period, and taking the larger value as the current reactive combination rate maximum demand, and determining whether the current is in which quadrant when the rate maximum demand timer is less than the demand period.

[0117] When the current single-phase quadrant is not included, the current quadrant is directly determined, the maximum demand is compared with the total maximum demand of the current quadrant, and the larger value is taken as the total maximum demand of the current quadrant. Whether the maximum demand timer exceeds the demand period is determined. When the maximum demand timer is greater than or equal to the demand period, the demand value is compared with the maximum demand of the current rate according to the current rate, and the larger value is taken as the maximum demand of the current rate. When the maximum demand timer is less than the demand period, the maximum demand timer is added by 1 to call the maximum demand storage function to store the maximum active demand and the occurrence time.

[0118] The apparent demand processing includes calling the maximum demand calculation function to calculate the current demand value, determining whether the apparent power direction is positive, comparing the demand value with the current positive apparent maximum demand when the apparent power direction is positive, and taking the larger value as the total apparent maximum demand. When the apparent power direction is negative, the demand value is compared with the current reverse apparent maximum demand, and the larger value is taken as the total apparent maximum demand. When the total apparent maximum demand is obtained, whether the maximum demand timer exceeds the demand period is determined. When the maximum demand timer is greater than or equal to the demand period, the demand value is compared with the maximum demand according to the current rate, and the larger value is taken as the maximum demand. The maximum demand storage function is called to store the apparent maximum demand and the occurrence time. When the maximum demand timer is less than the demand period, the maximum demand timer is added by 1 to call the maximum demand storage function to store the apparent maximum demand and the occurrence time.

[0119] The split-phase demand processing includes calling the maximum demand calculation function to calculate the current demand value, determining whether the active power direction is positive, comparing the demand value with the current reverse active maximum demand when the active power direction is negative, and taking the larger value as the reverse active total maximum demand. When the active power direction is positive, the demand value is compared with the current positive active maximum demand, and the larger value is taken as the positive active total maximum demand. When the total active maximum demand is obtained, the EE data reading function is called to read the reactive demand 60 pulse number data. From the time of the nearest minute, the same time as the demand period is recursively calculated. The demand pulse number in this time period is accumulated. The accumulated pulse number is multiplied by the energy represented by a single pulse and divided by the demand period to obtain the latest demand value. Whether the reactive combination mode includes the current single-phase quadrant is determined. When the current single-phase quadrant is not included, the current quadrant is determined. The demand value is compared with the total maximum demand of the current quadrant, and the larger value is taken as the total maximum demand of the current quadrant of the single-phase. The maximum demand calculation function is called to calculate the current demand value. The apparent power direction and the total apparent maximum demand are determined. The maximum demand storage function is called to store the maximum demand and the occurrence time.

[0120] It should be noted that the overcurrent overload control includes that when the load power exceeds the set limit value, the meter controls the built-in switch to be opened, wherein the meter closes the built-in switch in a specified time period to calculate the power of the meter, and the meter controls the built-in switch to be closed when the meter detects that the power returns to a normal value to supply power;

[0121] When the overcurrent phenomenon occurs, the built-in relay pulls the switch and reports the overcurrent information to the master station, the meter closes the built-in switch in a specified time period to determine whether the current is overloaded, and only when it is determined that the current is not overloaded, the built-in switch is closed to maintain power supply;

[0122] The overcurrent threshold value for determining whether the current is overloaded is set as:

[0123] I adaptive = I rated + δ·max(MD t , I short )

[0124] Wherein, I adaptive is an adaptive current threshold value, I rated represents the maximum current carrying capacity of the meter designed, δ is a demand feedback factor for calibrating dynamic demand, and I short is a short-term burst current;

[0125] The voltage loss monitoring includes that when the electric energy meter is powered off to full voltage loss, full voltage loss detection is performed, a 60-second delay timer is initialized after the battery is turned on, the delay timer is reduced by 1, and whether there is a wake-up is detected:

[0126] When there is no wake-up display, whether there is power-on is detected, when there is power-on, power-on processing is performed, when there is no power-on, whether the timer is 0 is detected, when the timer is 0, the current and full voltage loss detection completion flag are detected and stored, and the battery is turned off; when the timer is not 0, the delay timer is continuously reduced by 1, and whether it is woken up to detect the current and full voltage loss detection completion flag is detected;

[0127] When there is a wake-up, the wake-up display is sent, and whether there is power-on is further detected, when there is power-on, power-on processing is performed, when there is no power-on, whether the full voltage loss detection completion flag is valid or the time difference from the power-off time is greater than 1 minute is checked:

[0128] When the full voltage loss detection completion flag is valid and the time difference from the power-off time is greater than 1 minute, when the time is not displayed, the wake-up display is sent again and further detection is performed again; when the full voltage loss detection completion flag is invalid or the time difference from the power-off time is not more than 1 minute, whether the time difference from the power-off time is equal to 1 minute is checked:

[0129] When equal to 1 minute, the current and full voltage loss detection completion flag are detected and stored, and whether the time end is displayed is observed, when the time end is not displayed, the wake-up display is re-issued and further detection is re-performed; when not equal to 1 minute, whether the time end is displayed is observed, when the time end is not displayed, the wake-up display is re-issued and further detection is re-performed; when the time end is displayed, the wake-up display is closed, the battery continues to be opened and is delayed for 1 second, and whether there is a wake-up is detected again:

[0130] When there is a wake-up at this time, the wake-up display is issued, and whether there is a power-on is further detected, when there is no wake-up display, whether the time difference from the power-off time is equal to 1 minute is checked again, when equal to 1 minute, the current and full voltage loss detection completion flag are detected and stored, and when not equal to 1 minute, the delay is performed again for 1 second until the current and full voltage loss detection completion flag are detected.

[0131] Embodiment 2, the second embodiment of the application, which is different from the first two embodiments is:

[0132] The functions described above can be implemented in software, firmware, or hardware, and the software can be stored in a computer-readable storage medium, including a floppy disk, a USB, a ROM, a RAM, a CD, a DVD, and a memory of a mobile phone. The software can be used to cause a computer device (such as a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the application. The foregoing storage media are merely examples, and the software can be stored in any other storage medium.

[0133] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a list of executable instructions for implementing logic functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device, such as a computer-based system, a system including a processor, or other system that can fetch and execute instructions from the instruction execution system, apparatus or device, or in conjunction with these instructions. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transport programs for use by an instruction execution system, apparatus or device, or in conjunction with these instructions.

[0134] More specific examples (a non-exhaustive list) of the computer-readable medium include the following: an electrical connection (electronic) having one or more wires, a portable computer diskette (magnetic), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer readable medium can be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, for example via an optical scanner, then compiled, interpreted or otherwise processed, as necessary, and stored in a computer memory in order to be executed.

[0135] It should be understood that aspects of the application can be implemented in hardware, software, firmware or combinations thereof. In the embodiments described above, various steps or methods can be implemented, for example, by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, and in another embodiment, any of the following techniques, which are well known in the art, can be used to implement the application: a hybrid of the techniques mentioned above; a combination of one or more of the techniques mentioned above; or one or more other techniques suitable for use in the computer-based systems described above.

[0136] Embodiment 3, with reference to Figure 2 For a third embodiment of the application, the embodiment provides a single-phase electric energy meter design system based on a large-current built-in relay, including an initialization and metering module 10, an electric quantity accumulation and data processing module 20, a monitoring and control module 30;

[0137] The initialization and metering module 10 includes a system initialization unit 101 and a metering processing unit 102. The initialization unit 101 starts the electric energy meter system after the user turns on the power, initializes the EEPROM data, and performs system electric quantity zero operation. The metering processing unit 102 performs EEPROM data reading, transmits calibration parameters to the metering chip, compares parameters, and allows power consumption to start after the parameters are correct.

[0138] The electric quantity accumulation and data processing module 20 includes an electric quantity accumulation unit 201 and a data initialization unit 202. The electric quantity accumulation unit 201 accumulates active and reactive electric quantities according to the electric energy direction, calculates comprehensive composite energy, and establishes a dynamic power factor. The data initialization unit 202 initializes data after electric quantity accumulation, backs up and restores electric quantity data, and performs electric quantity and pulse RAM verification.

[0139] The monitoring and control module 30 comprises a pulse detection unit 301, an overcurrent overload control unit 302 and a pressure loss monitoring unit 303. The pulse detection unit 301 detects pulses and judges validity, distributes electric energy pulses and calculates maximum demand. The overcurrent overload control unit 302 is responsible for overcurrent overload control, and opens the built-in switch when the load power exceeds the set limit, and closes after recovery. The pressure loss monitoring unit 303 monitors pressure loss and performs corresponding processing.

[0140] The system initialization unit 101 of the initialization and metering module 10 starts, performs self-checking and zeroing operation; after the system initialization unit 101 is completed, the metering processing unit 102 reads the meter calibration parameters in the EEPROM, performs comparison and ensures that the parameters are correct; after the metering parameters are confirmed to be correct, the user is notified to start power consumption, and the electric quantity accumulation unit 201 starts to accumulate active and reactive electric quantity; at the same time of electric quantity accumulation, the data initialization unit 202 performs data backup and verification to ensure the accuracy of data; the pulse detection unit 301 of the monitoring and control module 30 detects pulses, judges validity and calculates maximum demand; during power consumption, the overcurrent overload control unit 302 of the monitoring and control module 30 monitors current condition, and the pressure loss monitoring unit 303 monitors power supply state; once overcurrent, overload or pressure loss is monitored, the corresponding unit will take measures (such as opening the built-in switch, reporting information, etc.) and try to recover to normal state; each module will feed back key information to the system for further processing or recording.

[0141] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not limited. Although the present application is described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be modified or replaced equivalently without departing from the spirit and scope of the technical solutions of the present application, which should be covered in the scope of the claims of the present application.

Claims

1. A design method of single-phase electric energy meter based on high current built-in relay, characterized in that: Comprising, The user turns on the power supply, the electric energy meter system starts and initializes the EEPROM data, the system performs the electric quantity zero clearing operation, observes the electric quantity zero clearing flag to determine whether to perform the zero clearing operation and performs the metering processing; The table correction parameters are read through the EEPROM and loaded to the metering chip to perform the parameter comparison; After all the table correction parameters are confirmed to be correct, the system allows the power consumption to start, and the active electric quantity and the reactive electric quantity are accumulated according to the electric energy direction and initialized; For the power consumption mode, the system detects the pulse and judges the validity in a time manner, calculates the maximum demand according to the power consumption demand change, and performs the processing of different powers, and performs the overcurrent and overload control and the voltage loss monitoring of the electric energy meter during the system operation; The accumulation of the active electric quantity and the reactive electric quantity includes that after the comparison of all the loaded table correction parameters is correct, a prompt is sent to inform the user to start the power consumption and read the current rate, the electric energy meter pulse constant and the current electric energy direction, the active electric quantity and the reactive electric quantity are accumulated according to the electric energy direction, and the comprehensive composite energy is calculated as: wherein, is the total energy value of the active, reactive and apparent power influence, is the active energy, is the reactive energy, is the apparent energy, is the weight factor for the adjustment of the reactive and apparent energy influence on the total energy. The dynamic power factor is established to consider the current load condition: wherein, represents the real-time value of the power factor under the current load condition, represents the effective voltage, represents the effective current, represents a coefficient reflecting the influence of the instantaneous current on the dynamic power factor, represents the instantaneous current; When the read total active direction is positive, the positive total active and rate electric energy is accumulated, the total active direction is judged, the total reactive direction is judged in the electric quantity accumulation, when the total reactive direction is positive, the two-quadrant total active and rate electric energy is judged and accumulated, when the total reactive direction is negative, the three-quadrant total reactive and rate electric energy is judged and accumulated, and then the three-phase electric energy is judged and accumulated respectively; When the read total active direction is negative, the reverse total active and rate electric energy is accumulated, the total active direction is judged, the total reactive direction is judged in the electric quantity accumulation, when the total reactive direction is positive, the one-quadrant total active and rate electric energy is judged and accumulated, when the total reactive direction is negative, the four-quadrant total reactive and rate electric energy is judged and accumulated, and then the three-phase electric energy is judged and accumulated respectively; The data initialization includes that after the electric quantity accumulation is judged, the electric quantity data initialization is performed, the current total electric quantity and rate data are recovered from the backup total and rate electric quantity RAM data, the current total electric quantity and rate pulse data are recovered from the backup total and rate pulse RAM data, whether the electric quantity and pulse RAM passes the verification is compared, when the verification does not pass, the EE electric quantity data is read and assigned to the RAM, the electric quantity RAM verification is continuously inspected, when the verification passes, the relationship between the total pulse and the rate pulse is compared, when the data relationship is normal, the related local parameters and the initialization of the related electric quantity for the charge are performed; The pulse detection includes that when the user needs to obtain the historical power consumption data, the system reads the electric quantity and pulse data in the EEPROM, and increases the verification bit, wherein the dynamic demand and the pulse relationship are: wherein, is the current demand at time t, is the instantaneous power at the current time t, is the historical demand, is the pulse adjustment factor for the number of pulses effect on demand, is the number of current pulses; When the dynamic demand and the pulse relationship are met, it is considered that the electric quantity RAM passes the verification, and the electric energy pulse distribution is allowed to be performed; When the electric energy pulse is distributed, the user continues to be in the power consumption mode, the system detects the pulse in the timing interruption, and accumulates the effective pulse according to the set condition, the timing interruption is detected in the 1MS timing interruption, 15 low levels and 15 high levels are continuously monitored, the pulse is considered to be effective, the number of reactive pulses is added by 1, and the apparent electric energy and the split-phase electric energy are calculated according to the register value to determine whether one pulse is met, and the corresponding pulse number is added by 1 to accumulate the effective pulse. The judgment validity includes the judgment of the reactive pulse validity and the judgment of the energy validity.

2. The design method of a single-phase electric energy meter based on a large-current built-in relay according to claim 1, characterized in that: The zero clearing operation includes that the user turns on the power supply, the electric energy meter system starts, the EEPROM data is initialized, the electric energy meter power-on zero clearing operation is performed, and whether the electric quantity zero clearing flag appears is observed: When the electric quantity zero clearing flag does not appear, the metering processing is directly performed; When the electric quantity zero clearing flag appears, whether the supply voltage of the EEPROM data is sufficient is detected, when the supply voltage is sufficient, the electric zero clearing operation is ended, when the supply voltage is insufficient, the electric quantity zero clearing operation is performed, and after the zero clearing, the metering processing is performed; The metering processing includes that the system reads the meter calibration parameters from the EEPROM data and transmits them to the RAM, loads the meter calibration parameters to the metering chip, reads the meter calibration parameters from the metering chip and compares them with the data in the RAM, and confirms whether the data loaded to the metering chip is consistent with the data in the RAM: When the comparison result is consistent, the meter enters the normal working state, the parameters in one metering chip are detected every second, the detection is repeated for multiple times until all the meter calibration parameters are detected, and when the meter calibration parameters are correct, the meter calibration parameter processing is completed, when the meter calibration parameters are incorrect, the metering chip is hard reset and the meter calibration parameters are loaded to the metering chip again until the meter calibration parameters are correct; When the comparison result is inconsistent, the meter calibration parameters are loaded to the metering chip again until the comparison is correct.

3. The design method of a single-phase electric energy meter based on a large-current built-in relay according to claim 2, characterized in that: The pulse validity includes that when the power consumption demand changes, the energy register is periodically read within one minute, the maximum demand data is calculated, and whether the accumulated count value is less than 120 is judged, when the count value is less than 120, the register is accumulated to the buffer area, and when the count value exceeds 120, the data of the previous 60 buffer areas is shifted by one space; The maximum demand data is calculated as follows: when the electric energy pulse frequency exceeds the specified threshold A, the maximum demand is calculated by calling the maximum demand calculation function, the pulse number structure of 60 minutes is read, the pulse numbers in the pulse number structure bodies of the same number of pulse periods are added, the total number of pulses in the demand period is obtained, and then the total number of pulses in the demand period is multiplied by the energy represented by each pulse and divided by the maximum demand period to obtain the demand value of the last time: When the frequency of the electric energy pulse is less than a specified threshold A, the maximum demand is calculated by calling a maximum demand calculation function to calculate the current demand value, reading the pulse number structure for 60 minutes, adding the pulse numbers in the pulse number structure bodies of the same number of demand periods as the most recent one and then subtracting 1 to obtain the total number of pulses in the demand period, subtracting the time stamp of the last pulse in the most recent pulse number structure body from the time stamp of the earliest pulse in the pulse number structure body that is recursively propagated by the same number of demand periods, taking the current time difference as the time period for the current demand calculation, multiplying the total number of pulses by the energy represented by each pulse and then dividing by the time period for the current demand calculation to obtain the demand value of the most recent calculation.

4. The design method of a single-phase electric energy meter based on a large-current built-in relay according to claim 3, characterized in that: The maximum demand includes active demand processing, reactive demand processing, apparent demand processing and split-phase demand processing in the minute message; The active demand processing includes calling the calculated maximum demand to calculate the current demand value, determining whether the active direction is positive, comparing the demand value with the current reverse active maximum demand when the active direction is negative and taking the larger value as the total active maximum demand, comparing the demand value with the current positive active maximum demand when the active direction is positive and taking the larger value as the total active maximum demand, determining whether the rate maximum demand timer exceeds the demand period when the total active maximum demand is obtained, comparing the demand value with the rate maximum demand according to the current rate when the rate maximum demand timer is greater than or equal to the demand period and taking the larger value as the rate maximum demand, calling a maximum demand storage function to store the active maximum demand and the occurrence time, and adding 1 to the rate maximum demand timer and then calling the maximum demand storage function to store the active maximum demand and the occurrence time when the rate maximum demand timer is less than the demand period. The reactive demand processing includes calling the maximum demand calculation function to calculate the current demand value, determining whether the current single-phase quadrant is contained in the reactive combination mode, comparing the demand value with the current total maximum demand of the reactive combination when the current single-phase quadrant is contained and taking the larger value as the total maximum demand of the current reactive combination, determining whether the current quadrant is the first quadrant when the current single-phase quadrant is not contained, comparing the demand value with the total maximum demand of the current quadrant and taking the larger value as the total maximum demand of the current quadrant, determining whether the rate maximum demand timer exceeds the demand period when the rate maximum demand timer is greater than or equal to the demand period, comparing the demand value with the rate maximum demand of the current quadrant according to the current rate and taking the larger value as the rate maximum demand of the current quadrant, adding 1 to the rate maximum demand timer and then calling the maximum demand storage function to store the active maximum demand and the occurrence time when the rate maximum demand timer is less than the demand period. ​ The apparent demand processing includes calling a maximum demand calculation function to calculate the current demand value, judging whether the apparent power direction is positive, when the apparent power direction is positive, comparing the demand value with the current positive apparent maximum demand, and taking the larger value as the total apparent maximum demand, when the apparent power direction is negative, comparing the demand value with the current negative apparent maximum demand, and taking the larger value as the total apparent maximum demand, when the total apparent maximum demand is obtained, judging whether the rate maximum demand timer exceeds the demand period, when the rate maximum demand timer is greater than or equal to the demand period, comparing the demand value with the rate maximum demand according to the current rate, and taking the larger value as the rate maximum demand, calling a maximum demand storage function to store the apparent maximum demand and the occurrence time, when the rate maximum demand timer is less than the demand period, calling the maximum demand storage function to store the apparent maximum demand and the occurrence time after the rate maximum demand timer is increased by 1; The single-phase demand processing includes calling a maximum demand calculation function to calculate the current demand value, judging whether the active power direction is positive, when the active power direction is negative, comparing the demand value with the current negative active maximum demand, and taking the larger value as the total negative active maximum demand, when the active power direction is positive, comparing the demand value with the current positive active maximum demand, and taking the larger value as the total positive active maximum demand, when the total active maximum demand is obtained, calling an EE data reading function to read the reactive demand 60-pulse data, starting from the most recent minute and recursively calculating the demand value in the same period as the demand period, adding the demand pulses in this period, multiplying the added pulse number by the energy represented by a single pulse, and dividing the result by the demand period to obtain the most recent demand value, judging whether the reactive combination mode contains the current single-phase quadrant, when the current single-phase quadrant is not contained, judging whether it is the current quadrant, comparing the demand value with the total maximum demand of the current quadrant, and taking the larger value as the total maximum demand of the single-phase current quadrant, calling a maximum demand calculation function to calculate the current demand value, judging the apparent power direction and the total apparent maximum demand, and calling a maximum demand storage function to store the maximum demand and the occurrence time.

5. The design method of a single-phase electric energy meter based on a large-current built-in relay according to claim 4, characterized in that: The overcurrent overload control and voltage loss monitoring includes that the overcurrent overload control includes that when the load power exceeds the set limit value, the built-in switch of the electric meter is controlled to be opened, the power of the electric meter is calculated when the built-in switch is closed for a specified period of time, the built-in switch is controlled to be closed when the electric meter detects that the power returns to the normal value, and power supply is performed; When the overcurrent phenomenon occurs, the built-in relay is pulled to trip, overcurrent information is reported to the master station, the built-in switch is closed for a specified period of time to judge whether the current is overloaded, and the built-in switch is closed only when it is judged that the current is not overloaded, and power supply is maintained. The overcurrent threshold value for judging whether the current is overloaded is set as: wherein, is an adaptive current threshold, represents the maximum current carrying capacity of the meter design, is a demand feedback factor for calibrating dynamic demand, is a short term burst current; The voltage loss monitoring includes that when the electric energy meter is powered off to full voltage loss, full voltage loss detection is performed, a 60-second delay timer is initialized after the battery is turned on, the delay timer is reduced by 1, and whether the electric energy meter is awakened is detected. When there is no wake-up display, whether there is power-on is detected, when there is power-on, power-on processing is performed, when there is no power-on, whether the timer is 0 is detected, when the timer is 0, the current and full pressure loss detection completion flag are detected and stored, and the battery is closed; When the timer is not 0, the delay timer continues to decrease by 1, and whether it is woken up to detect the current and full pressure loss detection completion flag is detected; When there is wake-up, the wake-up display is issued, further detection whether there is power-on is performed, when there is power-on, power-on processing is performed, when there is no power-on, whether the full pressure loss detection completion flag is valid or the time difference from the power-off time is greater than 1 minute is checked: When the full pressure loss detection completion flag is valid and the time difference from the power-off time is greater than 1 minute, when the time is not displayed, the wake-up display is reissued and further detection is re-performed; when the full pressure loss detection completion flag is invalid or the time difference from the power-off time is not more than 1 minute, whether the time difference from the power-off time is equal to 1 minute is checked: When it is equal to 1 minute, the current and full pressure loss detection completion flag are detected and stored, and whether the time is displayed is observed, when the time is not displayed, the wake-up display is reissued and further detection is re-performed; when it is not equal to 1 minute, whether the time is displayed is observed, when the time is not displayed, the wake-up display is reissued and further detection is re-performed; when the time is displayed, the wake-up display closes the battery and continues to open and delay for 1 second, and whether there is wake-up is detected again: When there is wake-up at this time, the wake-up display is issued, further detection whether there is power-on is performed, when there is no wake-up display, whether the time difference from the power-off time is equal to 1 minute is checked again, when it is equal to 1 minute, the current and full pressure loss detection completion flag are detected and stored, and when it is not equal to 1 minute, the delay is 1 second again until the current and full pressure loss detection completion flag are detected.

6. A system for designing a single-phase electric energy meter based on a large-current built-in relay according to any one of claims 1 to 5, characterized in that: It includes initialization and metering module, power accumulation and data processing module, monitoring and control module; The initialization and metering module includes a system initialization unit and a metering processing unit. The initialization unit starts the electric energy meter system after the user turns on the power, initializes the EEPROM data, and performs system power zero operation. The metering processing unit reads the EEPROM data, transmits the meter calibration parameters to the metering chip, compares the parameters, and allows the power to be used after the parameters are correct. The power accumulation and data processing module includes a power accumulation unit and a data initialization unit. The power accumulation unit accumulates active power and reactive power according to the direction of electric energy, calculates comprehensive composite energy, and establishes a dynamic power factor. The data initialization unit initializes data after power accumulation, backs up and restores power data, and performs power and pulse RAM verification. The monitoring and control module includes a pulse detection unit, an overcurrent and overload control unit, and a pressure loss monitoring unit. The pulse detection unit detects pulses regularly and judges validity, distributes electric energy pulses, and calculates maximum demand. The overcurrent and overload control unit is responsible for overcurrent and overload control. When the load power exceeds the set limit, the built-in switch is opened, and it is closed after recovery. The pressure loss monitoring unit monitors the pressure loss and performs corresponding processing. 7.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-8 when the computer program is executed by the processor. The computer program is executed by the processor to implement the steps of the single-phase electric energy meter design method based on the large-current built-in relay according to any one of claims 1 to 5.

8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the single-phase electric energy meter design method based on the large-current built-in relay according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Single-phase static electric energy meter and circuit control method thereof

    CN101315394A

  • Three-phase intelligent watt-hour meter inspection device and method

    CN102087352A