Single-phase electric energy meter design method based on large-current built-in relay
By adopting a built-in relay with high current and advanced detection and control methods in a single-phase power meter, the safety and reliability problems of traditional power meter in a large current environment are solved, and efficient and accurate power metering and safety monitoring are achieved.
Patent Information
- Application Number
- CN202411750799.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-12-02
AI Technical Summary
When traditional single-phase electricity meters deal with large currents, there may be a risk of current overload, which affects its safety and reliability. They are complex in terms of power clearing, parameter comparison and power consumption mode detection, and are prone to failure.
The single-phase energy meter design method based on a built-in relay of high current is adopted, including the power meter system starting and initializing the EEPROM data after the user turns on the power supply, performing power clearing operations and parameter comparisons to ensure metering accuracy and safety, and improving the adaptability and safety of the energy meter through timed pulse detection, calculating the maximum demand, overcurrent overload control and loss-of-voltage monitoring.
It realizes efficient and accurate power measurement in a large current environment, has the ability to respond quickly to abnormal situations, ensures the safety of circuits and user equipment, and improves the reliability of the data verification mechanism.
Smart Images

Figure CN119619977A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system metering, and in particular to a design method of a single-phase electric energy meter based on a large current built-in relay. Background Art
[0002] With the continuous promotion of smart grid and refined management, the detection, control and management functions of energy meters are becoming increasingly important. As a key device for energy measurement, the design of single-phase energy meters not only needs to meet the requirements of measurement accuracy, but also should have the ability to monitor and control large currents to cope with the widespread existence of high-power consumption devices in modern power consumption environments.
[0003] As an indispensable part of the power system, the design method and performance of single-phase energy meters directly affect the accuracy and reliability of power measurement. Traditional single-phase energy meter design methods mostly rely on small current relays. Although they meet the needs of energy measurement within a certain range, they are not suitable for high current environments.
[0004] In the design of traditional energy meters, the main focus is on the accurate measurement of electric energy. However, with the continuous increase in power load, especially the widespread use of high-power electrical appliances in residential and commercial electricity, the energy meter is often placed in a high-intensity working state. When traditional energy meters handle large currents, there may be a risk of current overload, which affects their safety and reliability. Therefore, improving the design of energy meters and introducing high-current relays to enhance their protection and control capabilities under large current conditions is an issue that needs to be urgently addressed.
[0005] Small current relays are easily disturbed in high current environments, resulting in increased metering errors. Second, existing energy meters are complex to operate in terms of zeroing, parameter comparison, and power consumption mode detection, and are prone to failure. Third, the processing of overcurrent and overload control and voltage loss monitoring is not perfect, and it is difficult to meet the needs of practical applications. In particular, the existing technology has certain limitations in terms of energy meter initialization, energy accumulation, and data initialization.
[0006] The single-phase electric energy meter design method based on high-current relay invented by us aims at the deficiencies of the existing technology and proposes an innovative solution. It has high practical value and market prospects in the field of single-phase electric energy meter design. Summary of the invention
[0007] In view of the above existing problems, the present invention develops a single-phase electric energy meter based on a high-current relay, which can efficiently and accurately complete electric energy measurement, and has the ability to quickly respond to abnormal situations such as overcurrent and short circuit to protect the safety of circuits and user equipment. At the same time, the electric energy meter should also have a good data verification mechanism to ensure reliability under extreme working conditions.
[0008] In order to solve the above technical problems, a single-phase electric energy meter design method based on a large current built-in relay is proposed, including:
[0009] When the user turns on the power, the energy meter system starts and initializes the EEPROM data. The system performs a zeroing operation on the electricity, observes the zeroing flag to determine whether to perform the zeroing operation and perform metering processing; reads the calibration parameters through the EEPROM and loads them into the metering chip for parameter comparison; after all calibration parameters are confirmed to be correct, the system allows electricity to start, and accumulates active and reactive electricity according to the direction of electricity and initializes the data; for the electricity consumption mode, the system regularly detects pulses and determines the validity, calculates the maximum demand according to the change in electricity demand, and processes different powers, and performs overcurrent and overload control and voltage loss monitoring of the energy meter throughout the system operation.
[0010] As a preferred solution of the single-phase electric energy meter design method based on a large current built-in relay described in the present invention, the reset operation includes: the user turns on the power, the electric energy meter system starts, initializes the EEPROM data, performs the electric energy meter power-on reset operation, and observes whether the electric energy reset mark appears:
[0011] When there is no power reset mark, the metering process is carried out directly;
[0012] When the power reset sign appears, check whether the power supply voltage of the EEPROM data is sufficient. When the power supply voltage is sufficient, the power reset operation is terminated. When the power supply voltage is insufficient, the power reset operation is performed, and metering is performed after reset.
[0013] The metering process includes: the system reads out the calibration parameters through the EEPROM data and transfers them to the RAM, loads the calibration parameters to the metering chip, reads out 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 normal working state, and detects the parameters in one metering chip in turn every second, and repeats multiple times until all calibration parameters are detected. When the calibration parameters are correct, the calibration parameter processing is completed. 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, reload the calibration parameters to the metering chip until the comparison is correct.
[0016] As a preferred solution of the single-phase electric energy meter design method based on a large current built-in relay described in the present invention, the accumulation of active power and reactive power includes, when all loading calibration parameters are compared correctly, issuing a prompt to notify the user to start using electricity and reading the current rate, meter pulse constant, current electric energy direction, accumulating active and reactive power according to the electric energy direction, and calculating the comprehensive composite energy as follows:
[0017] E composite =E active +k·(E reactive +E apparent )
[0018]
[0019] Among them, E composite is the total energy value affected by active, reactive and apparent power, E active is the active energy, E reactive is the reactive energy, E apparent is the apparent energy, k is the weight factor for adjusting the influence of reactive power and apparent energy on the total energy;
[0020] Establish the dynamic power factor to take into account the current load conditions:
[0021]
[0022] Among them, PF dynamic It indicates the real-time value of the power factor under the current load conditions. U indicates the effective voltage, I indicates the effective current, and α indicates the coefficient reflecting the influence of the instantaneous current on the dynamic power factor. I transient Indicates instantaneous current;
[0023] When the total active direction read is positive, the total active power and rate electric energy in the positive direction are accumulated. After the total active direction is determined, the total reactive power direction is determined in the electric energy accumulation. When the total reactive power direction is positive, the total active power and rate electric energy of the second quadrant are determined and accumulated. When the total reactive power direction is negative, the total reactive power and rate electric energy of the third quadrant are determined and accumulated, and then the three-phase electric energy is determined and accumulated respectively.
[0024] When the total active direction read is negative, the total active power and rate electric energy in the reverse direction are accumulated. After determining the total active direction, the total reactive power direction is determined in the electric energy accumulation. When the total reactive power direction is positive, the total active power and rate electric energy of one quadrant are determined and accumulated. When the total reactive power direction is negative, the total reactive power and rate electric energy of four quadrants are determined and accumulated, and then the three-phase electric energy is determined and accumulated respectively.
[0025] The data initialization includes: initializing the power data after determining the accumulated power; restoring the current total power and rate data from the backup total and rate power RAM data; and restoring the current total power and rate pulse data from the backup total and rate pulse RAM data; checking whether the power and pulse RAM verification is passed; if the verification fails, reading the EE power data and assigning it to the RAM; continuously checking whether the power RAM verification is passed; if the verification passes, comparing whether the relationship between the total pulse and the rate pulse is normal; and if the data relationship is normal, initializing the relevant local parameters and the deduction-related power.
[0026] As a preferred solution of the single-phase electric energy meter design method based on a large current built-in relay described in the present invention, the detection pulse includes: when the user needs to obtain historical power consumption data, the system reads the power and pulse data in the EEPROM and adds a check bit, wherein the relationship between the dynamic demand and the pulse is:
[0027] MD t =max(P t ,P previous +m·(P pulse ))
[0028] Among them, 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 on the demand, P pulse is the number of current pulses;
[0029] When the dynamic demand and pulse relationship are met, the power RAM check is considered to have passed, and the power energy pulse distribution is allowed;
[0030] When distributing electric energy pulses, the user continues to be in the power consumption mode. The system detects pulses in the timing interruption and accumulates valid pulses according to the set conditions. The timing interruption is detected in the 1MS timing interruption. If 15 low levels and 15 high levels are continuously monitored, the pulse is considered to be valid, and the number of reactive pulses is increased by 1. The apparent electric energy and phase electric energy are calculated according to the register value to see whether a pulse is satisfied, and the corresponding number of pulses is increased by 1 to accumulate valid pulses.
[0031] The effectiveness judgment includes judging the effectiveness of reactive pulses and judging the effectiveness of energy.
[0032] As a preferred solution of the single-phase electric energy meter design method based on a large current built-in relay described in the present invention, wherein: the pulse is effective including, when the demand for electricity changes, regularly reading the energy register within one minute, calculating the maximum demand data, judging whether the cumulative count value is less than 120 times, when the count value is less than 120, accumulating the register into the buffer, when the count value exceeds 120, shifting the first 60 buffer data backward by one space;
[0033] Among them, the maximum demand data is calculated 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 current demand value, reading the pulse number structure of 60 minutes, adding the number of pulses in the pulse number structure with the same number as the demand cycle, and obtaining the total number of pulses in the demand cycle. Then, the total number of pulses in the demand cycle is multiplied by the energy represented by each pulse and divided by the maximum demand cycle to obtain the most recent demand value:
[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 current demand value, reading the 60-minute pulse number structure, adding the number of pulses in the most recent pulse number structure with the same number as the demand cycle and then subtracting 1 to obtain the total number of pulses in the demand cycle, subtracting the time stamp of the last pulse in the most recent pulse number structure from the time stamp of the earliest pulse in the pulse number structure with the same number as the demand cycle, and using the current time difference as the time period for this demand calculation, multiplying the total number of pulses by the energy represented by each pulse and dividing it by the time period for this demand calculation to obtain the most recent demand value.
[0035] As a preferred solution of the single-phase electric energy meter design method based on a large current built-in relay described in the present invention, wherein: the maximum demand includes the maximum demand processing in the minute message, active demand processing, reactive demand processing, apparent demand processing and phase demand processing;
[0036] The active power demand processing includes calling the calculated maximum demand 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 reverse active power maximum demand, and taking the larger value as the total active power maximum demand, when the active power direction is positive, comparing the demand value with the current forward active power maximum demand, and taking the larger value as the total active power maximum demand, when the total active power maximum demand is obtained, judging whether the rate maximum demand timer exceeds the demand cycle, when the rate maximum demand timer ≥ the demand cycle, 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 active power maximum demand and the occurrence time, when the rate maximum demand timer < the demand cycle, adding 1 to the rate maximum demand timer and calling the maximum demand storage function to store the active power maximum demand and the occurrence time;
[0037] The reactive power demand processing includes calling the maximum demand calculation function to calculate the current demand value, judging whether the reactive power combination mode word includes the current quadrant, when including the current single-phase quadrant, comparing the demand value with the total maximum demand of the current reactive power combination, and taking the larger value as the total maximum demand of the current reactive power combination, judging whether the rate maximum demand timer exceeds the demand cycle, when the rate maximum demand timer ≥ the demand cycle, comparing the demand value with the current reactive power combination mode rate maximum demand according to the current rate, and taking the larger value as the current reactive power combination rate maximum demand, judging which quadrant the current is in; when the rate maximum demand timer < the demand cycle, adding 1 to the rate maximum demand timer before judging which quadrant the current is in;
[0038] When the current single-phase quadrant is not included, directly determine which quadrant the current quadrant is in, compare the demand value with the total maximum demand of the current quadrant, and use the larger value as the total maximum demand of the current quadrant, and determine whether the rate maximum demand timer exceeds the demand cycle. When the rate maximum demand timer ≥ demand cycle, compare the demand value with the rate maximum demand of this quadrant according to the current rate, and use the larger value as the rate maximum demand of this quadrant. When the rate maximum demand timer < demand cycle, add 1 to the rate maximum demand timer and call the maximum demand storage function to store the maximum active demand and 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 forward 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 cycle, when the rate maximum demand timer ≥ the demand cycle, 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 < the demand cycle, adding 1 to the rate maximum demand timer and calling the maximum demand storage function to store the apparent maximum demand and the occurrence time;
[0040] The phase demand processing includes calling the 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 maximum reverse active demand, and taking the larger value as the total maximum reverse active demand, when the active power direction is positive, comparing the demand value with the current maximum forward active demand, and taking the larger value as the total maximum forward active demand, when the total maximum active demand is obtained, calling the EE data reading function to read 60 pulses of reactive demand data, starting from the most recent minute and recursively forward to the same period as the demand period time, accumulate the number of demand pulses in this time period, multiply the accumulated pulse number by the energy represented by a single pulse and divide it by the demand period to get the most recent demand value, determine whether the reactive power combination mode includes the current single-phase quadrant, when it does not include the current single-phase quadrant, determine which quadrant the current is, compare the demand value with the total maximum demand of the current quadrant, and take the larger value as the total maximum demand of the current quadrant of the single-phase, call the maximum demand calculation function to calculate this demand value, determine the apparent power direction and the apparent total maximum demand, and call the maximum demand storage function to store the maximum demand and occurrence time.
[0041] As a preferred solution of the single-phase electric energy meter design method based on a large current built-in relay described in the present invention, wherein: the overcurrent and overload control and voltage loss monitoring include, the overcurrent and overload control includes, when the load power exceeds the set limit value, the internal built-in switch of the electric meter is controlled to be disconnected, wherein the electric meter closes the built-in switch in a specified time period, calculates the power of the electric meter, and when the electric meter detects that the power returns to a normal value, the electric meter controls the built-in switch to close and supplies power;
[0042] When overcurrent occurs, the built-in relay will disconnect the circuit breaker and report the overcurrent information to the main station. The electric meter will close the built-in switch once in a specified time period to determine whether the current is overloaded. Only when it is determined that the current is not overloaded, the built-in switch will be closed to keep the power supply.
[0043] The overcurrent threshold for judging whether the current is overloaded is set as:
[0044] I adaptive =I rated +δ·max(MD t ,I short )
[0045] Among them, I adaptive is the adaptive current threshold, I rated represents the maximum current carrying capacity of the meter when it is designed, δ is the demand feedback factor for calibrating the dynamic demand, I short It is a short-term sudden current;
[0046] The pressure loss monitoring includes performing a full pressure loss detection when the electric energy meter loses power to full pressure loss, initializing a 60-second delay timer after turning on the battery, reducing the delay timer by 1, and detecting whether there is a wake-up:
[0047] When there is no wake-up display, check whether it is powered on. If it is powered on, perform power-on processing. When there is no power on, check whether the timer is 0. When the timer is 0, detect and store the current and full voltage loss detection completion flags, and turn off the battery. When the timer is not 0, continue to reduce the delay timer by 1 and then check whether it is awakened until the current and full voltage loss detection completion flags are detected.
[0048] When there is a wake-up, when the wake-up display is issued, further detection is performed to see if there is power on. If there is power on, power-on processing is performed. If there is no power on, check whether the full pressure loss detection completion mark is valid or the time difference with the power-off time is greater than 1 minute:
[0049] When the full pressure loss detection completion mark is valid and the difference between the time and the power-off time is greater than 1 minute, when the non-display time ends, re-issue the wake-up display and re-perform further detection; when the full pressure loss detection completion mark is invalid or the difference between the time and the power-off time is less than 1 minute, check whether the difference between the time and the power-off time is equal to 1 minute:
[0050] When it is equal to 1 minute, detect and store the current and full voltage loss detection completion mark, observe whether the display time is over, if it does not show the time is over, re-issue the wake-up display and re-test further; when it is not equal to 1 minute, observe whether the display time is over, if it does not show the time is over, re-issue the wake-up display and re-test further; when the display time is over, the wake-up display turns off the battery and continues to turn it on for 1 second, and then detect whether there is wake-up again:
[0051] When there is a wake-up at this time, when the wake-up display is issued, further detection is carried out to see if there is power on. When there is no wake-up display, check again whether the difference between the time and the power-off time is equal to 1 minute. When it is equal to 1 minute, detect and store the current and full voltage loss detection completion mark. When it is not equal to 1 minute, delay again for 1 second until the current and full voltage loss detection completion mark is detected.
[0052] Another object of the present invention is to provide a single-phase electric energy meter design system based on a large current built-in relay. The present invention 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. Through the self-check and zeroing operations of the initialization and metering modules, the parameter comparison of the metering processing unit, the electric energy accumulation and data processing module's electric energy accumulation and data backup verification, as well as the 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 achieved, thereby ensuring the safety of electricity use and improving the efficiency of electricity use.
[0053] As a preferred solution of the single-phase electric energy meter design system based on a large current built-in relay described in the present invention, it is characterized by including 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 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 a system power reset operation. The metering processing unit reads the EEPROM data, transmits the calibration parameters to the metering chip, compares the parameters, and allows electricity to be used after the parameters are correct.
[0055] 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 the comprehensive composite energy, and establishes a dynamic power factor. The data initialization unit performs data initialization, backups and restores power data, and performs power and pulse RAM verification after power accumulation.
[0056] 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 at regular intervals and determines the effectiveness, distributes electric energy pulses, and calculates the 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 disconnected and closed after returning to normal. The pressure loss monitoring unit simultaneously monitors the pressure loss situation and performs corresponding processing.
[0057] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and is characterized in that when the processor executes the computer program, the steps of a single-phase electric energy meter design method based on a large current built-in relay are implemented.
[0058] A computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of a single-phase electric energy meter design method based on a large current built-in relay are implemented.
[0059] The beneficial effects of the present invention are as follows: after the user of the present invention turns on the power, the electric energy meter system starts and initializes the EEPROM data, performs a power reset operation, ensures the accurate start of each metering cycle, avoids cumulative errors, and improves the accuracy of metering; at the same time, by observing the power reset mark, it is determined whether to perform a reset operation and perform metering processing, effectively avoiding metering errors and ensuring the accuracy of the user's electricity consumption data.
[0060] The calibration parameters are read through EEPROM and loaded into the metering chip for parameter comparison, ensuring that the metering chip uses the correct parameters, preventing data transmission errors, and further ensuring the reliability of measurement.
[0061] After all calibration parameters are confirmed to be correct, the system allows electricity to start being used, and accumulates active and reactive power according to the direction of electric energy, while initializing data to provide users with detailed electricity usage information and ensure the accuracy of electricity accumulation.
[0062] Finally, by regularly detecting pulses to determine effectiveness, calculating maximum demand and processing different powers, as well as performing overcurrent, overload control and voltage loss monitoring throughout the process, the adaptability, safety and intelligence of the electricity meter are improved, providing data support for power system dispatching and effectively preventing equipment damage and safety accidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work, among which:
[0064] Figure 1 An overall flow chart of a single-phase electric energy meter design method based on a large current built-in relay provided for one embodiment of the present invention.
[0065] Figure 2 A system solution module diagram of a single-phase electric energy meter design method based on a large current built-in relay provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0066] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0067] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0068] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor is it an embodiment that is mutually exclusive with other embodiments, either individually or selectively.
[0069] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0070] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0071] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0072] Example 1, reference Figure 1 , which is the first embodiment of the present invention, 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 energy meter system starts and initializes the EEPROM data, the system performs a power reset operation, observes the power reset flag to determine whether to perform a reset operation and perform metering processing.
[0074] Specifically, the user turns on the power, the energy meter system starts, initializes the EEPROM data, performs the power-on reset operation on the energy meter, and observes whether the power reset mark appears:
[0075] When there is no power reset mark, the metering process is carried out directly;
[0076] When the power reset sign appears, check whether the power supply voltage of the EEPROM data is sufficient. When the power supply voltage is sufficient, the power reset operation is terminated. When the power supply voltage is insufficient, the power reset operation is performed, and metering is performed after reset.
[0077] The metering process includes: the system reads out the calibration parameters through the EEPROM data and transfers them to the RAM, loads the calibration parameters to the metering chip, reads out 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:
[0078] When the comparison result is consistent, the meter enters normal working state, and detects the parameters in one metering chip in turn every second, and repeats multiple times until all calibration parameters are detected. When the calibration parameters are correct, the calibration parameter processing is completed. 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.
[0079] When the comparison result is inconsistent, reload the calibration parameters to the metering chip until the comparison is correct.
[0080] S2: Read the calibration parameters through EEPROM and load them into the metering chip for parameter comparison.
[0081] S3: After all calibration parameters are confirmed to be correct, the system allows electricity to be used, and accumulates active and reactive energy according to the direction of electric energy and initializes the data.
[0082] Furthermore, when all calibration parameters are correctly compared, a prompt is issued to notify the user to start using electricity and read the current rate, meter pulse constant, current power direction, and accumulate active and reactive power according to the power direction to calculate the comprehensive composite energy:
[0083] E composite =E active +k·(E reactive +E apparent )
[0084]
[0085] Among them, E composite is the total energy value affected by active, reactive and apparent power, E active is the active energy, E reactiveis the reactive energy, E apparent is the apparent energy, k is the weight factor for adjusting the influence of reactive power and apparent energy on the total energy;
[0086] Establish the dynamic power factor to take into account the current load conditions:
[0087]
[0088] Among them, PF dynamic It indicates the real-time value of the power factor under the current load conditions. U indicates the effective voltage, I indicates the effective current, and α indicates the coefficient reflecting the influence of the instantaneous current on the dynamic power factor. I transient Indicates instantaneous current;
[0089] When the total active direction read is positive, the total active power and rate electric energy in the positive direction are accumulated. After the total active direction is determined, the total reactive power direction is determined in the electric energy accumulation. When the total reactive power direction is positive, the total active power and rate electric energy of the second quadrant are determined and accumulated. When the total reactive power direction is negative, the total reactive power and rate electric energy of the third quadrant are determined and accumulated, and then the three-phase electric energy is determined and accumulated respectively.
[0090] When the total active direction read is negative, the total active power and rate electric energy in the reverse direction are accumulated. After determining the total active direction, the total reactive power direction is determined in the electric energy accumulation. When the total reactive power direction is positive, the total active power and rate electric energy of one quadrant are determined and accumulated. When the total reactive power direction is negative, the total reactive power and rate electric energy of four quadrants are determined and accumulated, and then the three-phase electric energy is determined and accumulated respectively.
[0091] The data initialization includes: initializing the power data after determining the accumulated power; restoring the current total power and rate data from the backup total and rate power RAM data; and restoring the current total power and rate pulse data from the backup total and rate pulse RAM data; checking whether the power and pulse RAM verification is passed; if the verification fails, reading the EE power data and assigning it to the RAM; continuously checking whether the power RAM verification is passed; if the verification passes, comparing whether the relationship between the total pulse and the rate pulse is normal; and if the data relationship is normal, initializing the relevant local parameters and the deduction-related power.
[0092] S4: According to the power consumption mode, the system regularly detects pulses and determines the effectiveness. According to the changes in power demand, it calculates the maximum demand and processes different powers. It also performs overcurrent and overload control and voltage loss monitoring of the electric energy meter throughout the system operation.
[0093] Furthermore, when the user needs to obtain historical power consumption data, the system reads the power and pulse data in the EEPROM and adds a check bit. The relationship between dynamic demand and pulse is:
[0094] MD t=max(P t ,P previous +m·(P pulse ))
[0095] Among them, 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 on the demand, P pulse is the number of current pulses;
[0096] When the dynamic demand and pulse relationship are met, the power RAM check is considered to have passed, and the power energy pulse distribution is allowed;
[0097] When distributing electric energy pulses, the user continues to be in the power consumption mode. The system detects pulses in the timing interruption and accumulates valid pulses according to the set conditions. The timing interruption is detected in the 1MS timing interruption. If 15 low levels and 15 high levels are continuously monitored, the pulse is considered to be valid, and the number of reactive pulses is increased by 1. The apparent electric energy and phase electric energy are calculated according to the register value to see whether a pulse is satisfied, and the corresponding number of pulses is increased by 1 to accumulate valid pulses.
[0098] The effectiveness judgment includes judging the effectiveness of reactive pulses and judging the effectiveness of energy;
[0099] The reactive pulse validity judgment includes that the inspection is performed in the 8MS timing interrupt, and the dynamic validity counts of the high level and the low level are defined as:
[0100]
[0101] in, is the dynamic high level count within 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 for controlling the sensitivity of the high-level count increase, b is the adjustment coefficient for controlling the sensitivity of the low-level count increase, E his is the average energy in the historical window;
[0102] when and When it is considered as a valid pulse, N th,H is the effective high level count threshold defined, N th,L The defined effective low-level count threshold is combined with the high-level dynamic count and energy level to determine the validity of the active pulse:
[0103]
[0104] Combine low-level dynamic counting and energy level to determine the effectiveness of reactive pulses:
[0105]
[0106] The final overall effectiveness is determined as follows:
[0107]
[0108] in, is the effectiveness value of the active pulse, W h is the weighting factor for judging the effectiveness of active pulses, is the effectiveness value of reactive pulse, W l is the weighting factor for judging the effectiveness of reactive pulses, V eff is the comprehensive effectiveness judgment value, K V is the threshold for comprehensive effectiveness judgment. eff Greater than K V It can be considered as a valid pulse only when
[0109] The validity of the energy is judged by, when the pulse is confirmed to be valid, the system calls the main loop, updates the instantaneous power data every 312.5ms, reads the registers of the phase voltage, current, active power, reactive power, and apparent power of the metering chip and obtains the actual value, power factor, and reads the electric energy register for pulse judgment:
[0110] It is carried out in the 500MS timing interruption, and the total active forward and reverse, reactive forward and reverse, apparent forward and reverse as well as the phase-by-phase active forward and reverse, reactive forward and reverse, apparent forward and reverse electric energy registers are read respectively, and the validity of the energy is judged.
[0111] It should be noted that when the demand for electricity changes, the energy register is read regularly within one minute, the maximum demand data is calculated, and it is determined whether the cumulative count value is less than 120 times. When the count value is less than 120, the register is accumulated into the buffer. When the count value exceeds 120, the first 60 buffer data are shifted backward by one space;
[0112] Among them, the maximum demand data is calculated 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 current demand value, reading the pulse number structure of 60 minutes, adding the number of pulses in the pulse number structure with the same number as the demand cycle, and obtaining the total number of pulses in the demand cycle. Then, the total number of pulses in the demand cycle is multiplied by the energy represented by each pulse and divided by the maximum demand cycle to obtain the most recent demand value:
[0113] 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 current demand value, reading the 60-minute pulse number structure, adding the number of pulses in the most recent pulse number structure with the same number as the demand cycle and then subtracting 1 to obtain the total number of pulses in the demand cycle, subtracting the time stamp of the last pulse in the most recent pulse number structure from the time stamp of the earliest pulse in the pulse number structure with the same number as the demand cycle, and using the current time difference as the time period for this demand calculation, multiplying the total number of pulses by the energy represented by each pulse and dividing it by the time period for this demand calculation to obtain the most recent demand value.
[0114] It should also be noted that the maximum demand includes the processing of active demand, reactive demand, apparent demand and phase demand in the minute message;
[0115] The active power demand processing includes calling the calculated maximum demand 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 reverse active power maximum demand, and taking the larger value as the total active power maximum demand, when the active power direction is positive, comparing the demand value with the current forward active power maximum demand, and taking the larger value as the total active power maximum demand, when the total active power maximum demand is obtained, judging whether the rate maximum demand timer exceeds the demand cycle, when the rate maximum demand timer ≥ the demand cycle, 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 active power maximum demand and the occurrence time, when the rate maximum demand timer < the demand cycle, adding 1 to the rate maximum demand timer and calling the maximum demand storage function to store the active power maximum demand and the occurrence time;
[0116] The reactive power demand processing includes calling the maximum demand calculation function to calculate the current demand value, judging whether the reactive power combination mode word includes the current quadrant, when including the current single-phase quadrant, comparing the demand value with the total maximum demand of the current reactive power combination, and taking the larger value as the total maximum demand of the current reactive power combination, judging whether the rate maximum demand timer exceeds the demand cycle, when the rate maximum demand timer ≥ the demand cycle, comparing the demand value with the current reactive power combination mode rate maximum demand according to the current rate, and taking the larger value as the current reactive power combination rate maximum demand, judging which quadrant the current is in; when the rate maximum demand timer < the demand cycle, adding 1 to the rate maximum demand timer before judging which quadrant the current is in;
[0117] When the current single-phase quadrant is not included, directly determine which quadrant the current quadrant is in, compare the demand value with the total maximum demand of the current quadrant, and use the larger value as the total maximum demand of the current quadrant, and determine whether the rate maximum demand timer exceeds the demand cycle. When the rate maximum demand timer ≥ demand cycle, compare the demand value with the rate maximum demand of this quadrant according to the current rate, and use the larger value as the rate maximum demand of this quadrant. When the rate maximum demand timer < demand cycle, add 1 to the rate maximum demand timer and call the maximum demand storage function to store the maximum active demand and occurrence time;
[0118] 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 forward 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 cycle, when the rate maximum demand timer ≥ the demand cycle, 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 < the demand cycle, adding 1 to the rate maximum demand timer and calling the maximum demand storage function to store the apparent maximum demand and the occurrence time;
[0119] The phase demand processing includes calling the 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 maximum reverse active demand, and taking the larger value as the total maximum reverse active demand, when the active power direction is positive, comparing the demand value with the current maximum forward active demand, and taking the larger value as the total maximum forward active demand, when the total maximum active demand is obtained, calling the EE data reading function to read 60 pulses of reactive demand data, starting from the most recent minute and recursively forward to the same period as the demand period time, accumulate the number of demand pulses in this time period, multiply the accumulated pulse number by the energy represented by a single pulse and divide it by the demand period to get the most recent demand value, determine whether the reactive power combination mode includes the current single-phase quadrant, when it does not include the current single-phase quadrant, determine which quadrant the current is, compare the demand value with the total maximum demand of the current quadrant, and take the larger value as the total maximum demand of the current quadrant of the single-phase, call the maximum demand calculation function to calculate this demand value, determine the apparent power direction and the apparent total maximum demand, and call the maximum demand storage function to store the maximum demand and occurrence time.
[0120] It should also be noted that the overcurrent and overload control includes, when the load power exceeds the set limit value, the internal switch of the electric meter is controlled to be disconnected, wherein the electric meter closes the internal switch in a specified time period, calculates the power of the electric meter, and when the electric meter detects that the power returns to the normal value, the electric meter controls the internal switch to close and supplies power;
[0121] When overcurrent occurs, the built-in relay will disconnect the circuit breaker and report the overcurrent information to the main station. The electric meter will close the built-in switch once in a specified time period to determine whether the current is overloaded. Only when it is determined that the current is not overloaded, the built-in switch will be closed to keep the power supply.
[0122] The overcurrent threshold for judging whether the current is overloaded is set as:
[0123] I adaptive =I rated +δ·max(MD t ,I short )
[0124] Among them, I adaptive is the adaptive current threshold, I rated represents the maximum current carrying capacity of the meter when it is designed, δ is the demand feedback factor for calibrating the dynamic demand, I short It is a short-term sudden current;
[0125] The pressure loss monitoring includes performing a full pressure loss detection when the electric energy meter loses power to full pressure loss, initializing a 60-second delay timer after turning on the battery, reducing the delay timer by 1, and detecting whether there is a wake-up:
[0126] When there is no wake-up display, check whether it is powered on. If it is powered on, perform power-on processing. When there is no power on, check whether the timer is 0. When the timer is 0, detect and store the current and full voltage loss detection completion flags, and turn off the battery. When the timer is not 0, continue to reduce the delay timer by 1 and then check whether it is awakened until the current and full voltage loss detection completion flags are detected.
[0127] When there is a wake-up, when the wake-up display is issued, further detection is performed to see if there is power on. If there is power on, power-on processing is performed. If there is no power on, check whether the full pressure loss detection completion mark is valid or the time difference with the power-off time is greater than 1 minute:
[0128] When the full pressure loss detection completion mark is valid and the difference between the time and the power-off time is greater than 1 minute, when the non-display time ends, re-issue the wake-up display and re-perform further detection; when the full pressure loss detection completion mark is invalid or the difference between the time and the power-off time is less than 1 minute, check whether the difference between the time and the power-off time is equal to 1 minute:
[0129] When it is equal to 1 minute, detect and store the current and full voltage loss detection completion mark, observe whether the display time is over, if it does not show the time is over, re-issue the wake-up display and re-test further; when it is not equal to 1 minute, observe whether the display time is over, if it does not show the time is over, re-issue the wake-up display and re-test further; when the display time is over, the wake-up display turns off the battery and continues to turn it on for 1 second, and then detect whether there is wake-up again:
[0130] When there is a wake-up at this time, when the wake-up display is issued, further detection is carried out to see if there is power on. When there is no wake-up display, check again whether the difference between the time and the power-off time is equal to 1 minute. When it is equal to 1 minute, detect and store the current and full voltage loss detection completion mark. When it is not equal to 1 minute, delay again for 1 second until the current and full voltage loss detection completion mark is detected.
[0131] Embodiment 2, the second embodiment of the present invention, is different from the first two embodiments in that:
[0132] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0133] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0134] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0135] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0136] Example 3, reference Figure 2 , which is the third embodiment of the present invention, and 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 energy accumulation and data processing module 20, and 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 a system power reset operation. The metering processing unit 102 reads the EEPROM data, transmits the calibration parameters to the metering chip, compares the parameters, and allows electricity to be used after the parameters are correct.
[0138] The power accumulation and data processing module 20 includes a power accumulation unit 201 and a data initialization unit 202. The power accumulation unit 201 accumulates active power and reactive power according to the direction of electric energy, calculates the comprehensive composite energy, and establishes a dynamic power factor. The data initialization unit 202 performs data initialization, backups and restores power data, and performs power and pulse RAM verification after power accumulation.
[0139] The monitoring and control module 30 includes a pulse detection unit 301, an overcurrent and overload control unit 302 and a pressure loss monitoring unit 303. The pulse detection unit 301 detects pulses regularly and determines the effectiveness, distributes electric energy pulses, and calculates the maximum demand. The overcurrent and overload control unit 302 is responsible for overcurrent and overload control. When the load power exceeds the set limit, the built-in switch is disconnected and closed after returning to normal. The pressure loss monitoring unit 303 simultaneously monitors the pressure loss situation and performs corresponding processing.
[0140] The system initialization unit 101 of the initialization and metering module 10 is started to perform self-checking and zeroing operations; after the system initialization unit 101 is completed, the metering processing unit 102 reads the calibration parameters in the EEPROM and compares them to ensure that the parameters are correct; after the metering parameters are confirmed to be correct, the user is notified to start using electricity, and the power accumulation unit 201 starts to accumulate active and reactive power; while accumulating power, the data initialization unit 202 performs data backup and verification to ensure the accuracy of the data; the pulse detection unit 301 of the monitoring and control module 30 regularly detects pulses, determines the validity, and calculates the maximum demand; during the power consumption process, the overcurrent and overload control unit 302 of the monitoring and control module 30 monitors the current situation, and the undervoltage monitoring unit 303 monitors the power supply status; once overcurrent, overload or undervoltage is detected, the corresponding unit will take measures (such as disconnecting the built-in switch, reporting information, etc.) and try to restore to normal status; each module feeds 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 invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A design method for a single-phase electric energy meter based on a large current built-in relay, characterized in that: include, When the user turns on the power, the energy meter system starts and initializes the EEPROM data. The system performs a power reset operation and observes the power reset flag to determine whether to perform a reset operation and perform metering processing; Read the calibration parameters through EEPROM and load them into the metering chip for parameter comparison; After all calibration parameters are confirmed to be correct, the system allows electricity to be used, and accumulates active and reactive energy according to the direction of the energy and performs data initialization; Based on the power consumption mode, the system regularly detects pulses and determines their effectiveness. According to the changes in power demand, it calculates the maximum demand and processes different powers. It also performs overcurrent and overload control and voltage loss monitoring of the electricity meter throughout the system operation.
2. A single-phase electric energy meter design method based on a large current built-in relay as claimed in claim 1, characterized in that: The reset operation includes: the user turns on the power, the electric energy meter system starts, initializes the EEPROM data, performs the electric energy meter power-on reset operation, and observes whether the power reset mark appears: When there is no power reset mark, the metering process is carried out directly; When the power reset sign appears, check whether the power supply voltage of the EEPROM data is sufficient. When the power supply voltage is sufficient, the power reset operation is terminated. When the power supply voltage is insufficient, the power reset operation is performed, and metering is performed after reset. The metering process includes: the system reads out the calibration parameters through the EEPROM data and transfers them to the RAM, loads the calibration parameters to the metering chip, reads out 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: When the comparison result is consistent, the meter enters normal working state, and detects the parameters in one metering chip in turn every second, and repeats multiple times until all calibration parameters are detected. When the calibration parameters are correct, the calibration parameter processing is completed. 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. When the comparison result is inconsistent, reload the calibration parameters to the metering chip until the comparison is correct.
3. A single-phase electric energy meter design method based on a large current built-in relay as claimed in claim 2, characterized in that: The accumulation of active and reactive power includes, when all loading calibration parameters are compared correctly, sending a prompt to notify the user to start using electricity and reading the current rate, meter pulse constant, current electric energy direction, accumulating active and reactive power according to the electric energy direction, and calculating the comprehensive composite energy as follows: AND composite =And active +k·(E reactive +E apparent ) Among them, E composite is the total energy value affected by active, reactive and apparent power, E active is the active energy, E reactive is the reactive energy, E apparent is the apparent energy, k is the weight factor for adjusting the influence of reactive power and apparent energy on the total energy; Establish the dynamic power factor to take into account the current load conditions: Among them, PF dynamic It indicates the real-time value of the power factor under the current load conditions. U indicates the effective voltage, I indicates the effective current, and α indicates the coefficient reflecting the influence of instantaneous current on the dynamic power factor. transient Indicates instantaneous current; When the total active direction read is positive, the total active power and rate electric energy in the positive direction are accumulated. After the total active direction is determined, the total reactive power direction is determined in the electric energy accumulation. When the total reactive power direction is positive, the total active power and rate electric energy of the second quadrant are determined and accumulated. When the total reactive power direction is negative, the total reactive power and rate electric energy of the third quadrant are determined and accumulated, and then the three-phase electric energy is determined and accumulated respectively. When the total active direction read is negative, the total active power and rate electric energy in the reverse direction are accumulated. After determining the total active direction, the total reactive power direction is determined in the electric energy accumulation. When the total reactive power direction is positive, the total active power and rate electric energy of one quadrant are determined and accumulated. When the total reactive power direction is negative, the total reactive power and rate electric energy of four quadrants are determined and accumulated, and then the three-phase electric energy is determined and accumulated respectively. The data initialization includes: initializing the power data after determining the accumulated power, restoring the current total power and rate data from the backup total and rate power RAM data, and restoring the current total power and rate pulse data from the backup total and rate pulse RAM data, checking whether the power and pulse RAM verification is passed; when the verification fails, reading the EE power data and assigning it to the RAM, and continuously checking whether the power RAM verification is passed; when the verification passes, comparing whether the relationship between the total pulse and the rate pulse is normal; when the data relationship is normal, initializing the relevant local parameters and the deduction-related power.
4. A single-phase electric energy meter design method based on a large current built-in relay as claimed in claim 3, characterized in that: The detection pulse includes that when the user needs to obtain historical power consumption data, the system reads the power and pulse data in the EEPROM and adds a check bit, wherein the dynamic demand and pulse relationship is: MD t =max(P t ,P previous +m·(P pulse )) Among them, 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 on the demand, P pulse is the number of current pulses; When the dynamic demand and pulse relationship are met, the power RAM check is considered to have passed, and the power energy pulse distribution is allowed; When distributing electric energy pulses, the user continues to be in the power consumption mode. The system detects pulses in the timing interruption and accumulates valid pulses according to the set conditions. The timing interruption is detected in the 1MS timing interruption. If 15 low levels and 15 high levels are continuously monitored, the pulse is considered to be valid, and the number of reactive pulses is increased by 1. The apparent electric energy and phase electric energy are calculated according to the register value to see whether a pulse is satisfied, and the corresponding number of pulses is increased by 1 to accumulate valid pulses. The effectiveness judgment includes judging the effectiveness of reactive pulses and judging the effectiveness of energy.
5. A single-phase electric energy meter design method based on a large current built-in relay as claimed in claim 4, characterized in that: The pulse is effective including, when the demand for electricity changes, reading the energy register regularly within one minute, calculating the maximum demand data, judging whether the accumulated count value is less than 120 times, when the count value is less than 120, accumulating the register into the buffer, when the count value exceeds 120, shifting the first 60 buffer data backward by one space; Among them, the maximum demand data is calculated 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 current demand value, reading the pulse number structure of 60 minutes, adding the number of pulses in the pulse number structure with the same number as the demand cycle, and obtaining the total number of pulses in the demand cycle. Then, the total number of pulses in the demand cycle is multiplied by the energy represented by each pulse and divided by the maximum demand cycle to obtain the most recent demand value: 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 current demand value, reading the 60-minute pulse number structure, adding the number of pulses in the most recent pulse number structure with the same number as the demand cycle and then subtracting 1 to obtain the total number of pulses in the demand cycle, subtracting the time stamp of the last pulse in the most recent pulse number structure from the time stamp of the earliest pulse in the pulse number structure with the same number as the demand cycle, and using the current time difference as the time period for this demand calculation, multiplying the total number of pulses by the energy represented by each pulse and dividing it by the time period for this demand calculation to obtain the most recent demand value.
6. A single-phase electric energy meter design method based on a large current built-in relay as claimed in claim 5, characterized in that: The maximum demand includes active demand processing, reactive demand processing, apparent demand processing and phase demand processing in the minute message; The active power demand processing includes calling the calculated maximum demand 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 reverse active power maximum demand, and taking the larger value as the total active power maximum demand, when the active power direction is positive, comparing the demand value with the current forward active power maximum demand, and taking the larger value as the total active power maximum demand, when the total active power maximum demand is obtained, judging whether the rate maximum demand timer exceeds the demand cycle, when the rate maximum demand timer ≥ the demand cycle, 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 active power maximum demand and the occurrence time, when the rate maximum demand timer < the demand cycle, adding 1 to the rate maximum demand timer and calling the maximum demand storage function to store the active power maximum demand and the occurrence time; The reactive power demand processing includes calling the maximum demand calculation function to calculate the current demand value, judging whether the reactive power combination mode word includes the current quadrant, when including the current single-phase quadrant, comparing the demand value with the total maximum demand of the current reactive power combination, and taking the larger value as the total maximum demand of the current reactive power combination, judging whether the rate maximum demand timer exceeds the demand cycle, when the rate maximum demand timer ≥ the demand cycle, comparing the demand value with the current reactive power combination mode rate maximum demand according to the current rate, and taking the larger value as the current reactive power combination rate maximum demand, judging which quadrant the current is in; when the rate maximum demand timer < the demand cycle, adding 1 to the rate maximum demand timer before judging which quadrant the current is in; When the current single-phase quadrant is not included, directly determine which quadrant the current quadrant is in, compare the demand value with the total maximum demand of the current quadrant, and use the larger value as the total maximum demand of the current quadrant, and determine whether the rate maximum demand timer exceeds the demand cycle. When the rate maximum demand timer ≥ demand cycle, compare the demand value with the rate maximum demand of this quadrant according to the current rate, and use the larger value as the rate maximum demand of this quadrant. When the rate maximum demand timer < demand cycle, add 1 to the rate maximum demand timer and call the maximum demand storage function to store the maximum active demand and occurrence time; 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 forward 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 cycle, when the rate maximum demand timer ≥ the demand cycle, 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 < the demand cycle, adding 1 to the rate maximum demand timer and calling the maximum demand storage function to store the apparent maximum demand and the occurrence time; The phase demand processing includes calling the 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 maximum reverse active demand, and taking the larger value as the total maximum reverse active demand, when the active power direction is positive, comparing the demand value with the current maximum forward active demand, and taking the larger value as the total maximum forward active demand, when the total maximum active demand is obtained, calling the EE data reading function to read 60 pulses of reactive demand data, starting from the most recent minute and recursively forward to the same period as the demand period time, accumulate the number of demand pulses in this time period, multiply the accumulated pulse number by the energy represented by a single pulse and divide it by the demand period to get the most recent demand value, determine whether the reactive power combination mode includes the current single-phase quadrant, when it does not include the current single-phase quadrant, determine which quadrant the current is, compare the demand value with the total maximum demand of the current quadrant, and take the larger value as the total maximum demand of the current quadrant of the single-phase, call the maximum demand calculation function to calculate this demand value, determine the apparent power direction and the apparent total maximum demand, and call the maximum demand storage function to store the maximum demand and occurrence time.
7. A single-phase electric energy meter design method based on a large current built-in relay as claimed in claim 6, characterized in that: The overcurrent and overload control and voltage loss monitoring include: when the load power exceeds the set limit value, the electric meter controls the internal built-in switch to be disconnected, wherein the electric meter closes the built-in switch in a specified time period, calculates the power of the electric meter, and when the electric meter detects that the power returns to a normal value, the electric meter controls the built-in switch to be closed to supply power; When overcurrent occurs, the built-in relay will disconnect the circuit breaker and report the overcurrent information to the main station. The electric meter will close the built-in switch once in a specified time period to determine whether the current is overloaded. Only when it is determined that the current is not overloaded, the built-in switch will be closed to keep the power supply. The overcurrent threshold for judging whether the current is overloaded is set as: I adaptive =I rated +δ·max(MD t ,I short ) Among them, I adaptive is the adaptive current threshold, I rated represents the maximum current carrying capacity of the meter when it is designed, δ is the demand feedback factor for calibrating the dynamic demand, I short It is a short-term sudden current; The pressure loss monitoring includes performing a full pressure loss detection when the electric energy meter loses power to full pressure loss, initializing a 60-second delay timer after turning on the battery, reducing the delay timer by 1, and detecting whether there is a wake-up: When the display is not awakened, it is detected whether it is powered on. If it is powered on, it is powered on. If it is not powered on, it is detected whether the timer is 0. If the timer is 0, it is detected and stored. The current and the full pressure loss detection completion mark, and the battery is turned off; When the timer is not 0, the delay timer is further decremented by 1 to detect whether it is awakened until the current and full voltage loss detection completion flags are detected; When there is a wake-up, when the wake-up display is issued, further detection is performed to see if there is power on. If there is power on, power-on processing is performed. If there is no power on, check whether the full pressure loss detection completion mark is valid or the time difference with the power-off time is greater than 1 minute: When the full pressure loss detection completion mark is valid and the difference between the time and the power-off time is greater than 1 minute, when the non-display time ends, re-issue the wake-up display and re-perform further detection; when the full pressure loss detection completion mark is invalid or the difference between the time and the power-off time is less than 1 minute, check whether the difference between the time and the power-off time is equal to 1 minute: When it is equal to 1 minute, detect and store the current and full voltage loss detection completion mark, observe whether the display time is over, if it does not show the time is over, re-issue the wake-up display and re-test further; when it is not equal to 1 minute, observe whether the display time is over, if it does not show the time is over, re-issue the wake-up display and re-test further; when the display time is over, the wake-up display turns off the battery and continues to turn it on for 1 second, and then detect whether there is wake-up again: When there is a wake-up at this time, when the wake-up display is issued, further detection is carried out to see if there is power on. When there is no wake-up display, check again whether the difference between the time and the power-off time is equal to 1 minute. When it is equal to 1 minute, detect and store the current and full voltage loss detection completion mark. When it is not equal to 1 minute, delay again for 1 second until the current and full voltage loss detection completion mark is detected.
8. A system using a single-phase electric energy meter design method based on a large current built-in relay as claimed in any one of claims 1 to 7, 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 a system power reset operation. The metering processing unit reads the EEPROM data, transmits the calibration parameters to the metering chip, compares the parameters, and allows electricity 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 the comprehensive composite energy, and establishes a dynamic power factor. The data initialization unit performs data initialization, backups and restores power data, and performs power and pulse RAM verification after power accumulation. 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 at regular intervals and determines the effectiveness, distributes electric energy pulses, and calculates the 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 disconnected and closed after returning to normal. The pressure loss monitoring unit simultaneously monitors the pressure loss situation and performs corresponding processing.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of a single-phase electric energy meter design method based on a large current built-in relay according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of a single-phase electric energy meter design method based on a large current built-in relay according to any one of claims 1 to 7 are implemented.
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
Device and method for protecting phase sequence relay of transformer
CN113612203A
Remote built-in single-phase intelligent electric energy meter design
CN117825793A
One -phase fee -controlling intelligent electric energy meter
CN205068599U