Rail surface wiring direction adaptive compensation method based on current flow direction detection
By using current flow direction detection and adaptive compensation methods, the problem of erroneous measurement due to reverse wiring of the rail meter is solved, achieving accurate measurement and stability of the rail meter under different wiring conditions, adapting to power grid interference and wiring changes, and possessing fault early warning and data storage capabilities.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- QICHENG FUTURE (ZHEJIANG) IOT TECH CO LTD
- Filing Date
- 2026-02-05
- Publication Date
- 2026-06-09
AI Technical Summary
Existing rail-mounted energy meters mismeasure their own power consumption when connected in reverse, and cannot respond promptly to wiring changes and grid interference. They also have low metering accuracy and lack fault warning and data storage capabilities.
By detecting the current flow direction, current and voltage signals are collected in real time, low-pass filtered, and the wiring direction is determined. Compensation is performed by calling the ratio difference correction value and its own power consumption value under positive and negative wiring conditions, respectively. Combined with time integration, the power is calculated to achieve adaptive compensation.
It improves the metering accuracy and stability of the rail meter under different wiring conditions, can respond promptly to wiring changes and power grid interference, ensures metering accuracy and consistency, and has fault warning and data storage functions.
Smart Images

Figure CN122172099A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electricity metering technology, and in particular to an adaptive compensation method for the wiring direction of a rail meter based on current flow direction detection. Background Technology
[0002] Due to their small size and convenient installation, DIN rail-mounted energy meters are widely used in energy metering in building power distribution, industrial control and other scenarios. Their installation specifications require the use of a top-in, bottom-out wiring method. However, in actual construction, reverse wiring often occurs due to operational errors.
[0003] Existing guide rail gauges only perform differential correction during the production stage to eliminate hardware system deviations, and do not have an adaptive judgment and compensation mechanism designed for wiring direction:
[0004] When reverse wiring occurs (bottom in, top out), the current from the meter's own power consumption will flow through the current acquisition element such as the current transformer (CT) or sampling manganese copper, causing the meter to mismeasure its own power consumption as the user's power consumption, resulting in an overestimation of the meter's reading.
[0005] Meanwhile, high-frequency interference such as harmonics and transient pulses in the power grid can easily lead to misjudgment of current flow direction. If the wiring method changes during the operation of the meter, the existing meter will not be able to respond in time, further affecting the metering accuracy.
[0006] In addition, the compensation parameters of traditional electricity meters are fixed values, which cannot adapt to the slight changes in their own power consumption caused by grid voltage fluctuations and ambient temperature changes. They also lack a fault early warning mechanism. When grid faults or loose wiring cause frequent switching of current flow, metering confusion is likely to occur. Furthermore, they lack critical data storage capabilities, making it difficult to troubleshoot faults and trace metering accuracy later.
[0007] To address the aforementioned issues, there is an urgent need for a compensation method that can adaptively determine the wiring direction of the rail meter, accurately offset the mismeasurement of its own power consumption when the wiring is reversed, and is resistant to interference and responsive to wiring changes, so as to ensure the measurement accuracy of the rail meter under different wiring conditions. Summary of the Invention
[0008] The purpose of this invention is to propose an adaptive compensation method for the wiring direction of a guide rail meter based on current flow direction detection in order to solve the above-mentioned problems.
[0009] To achieve the above objectives, the present invention adopts the following technical solution:
[0010] An adaptive compensation method for the wiring direction of a rail gauge based on current flow direction detection includes:
[0011] During the production phase, the calibration and solidification of the ratio correction value are completed, and the rated parameters of the meter and the fixed parameters related to the pulse are written. At the same time, the power consumption value and linear deviation of the meter itself are measured and recorded.
[0012] The meter collects current and voltage signals in real time, calculates the raw power value, and preprocesses it through low-pass filtering. It verifies the current flow direction through continuous sampling and maps the current wiring method to determine whether it is top-in-bottom-out or bottom-in-top-out.
[0013] If it is a positive wiring with top in and bottom out, no compensation is needed; simply call the fixed ratio difference correction value to correct the original power value.
[0014] If it is a reverse wiring with bottom inlet and top outlet, call the recorded core parameters and its own power consumption value, calculate the compensation value, and combine it with the ratio difference correction value to correct the original power value;
[0015] Based on the corrected active power, the total electrical energy is calculated by time integration, and the metering chip converts it into a pulse output representing a fixed increment of electrical energy.
[0016] Preferably, the production stage includes calibrating and fixing the ratio correction value, writing the meter's rated parameters and pulse-related fixed parameters, and simultaneously measuring and recording the meter's own power consumption and linear deviation, specifically including:
[0017] Connect the rail meter to be manufactured to a professional calibration station. The calibration station simulates a standard power grid environment and outputs a standard power signal.
[0018] The meter calibration station collects the meter readings in real time, compares them with the theoretical readings corresponding to the standard power signal, and calculates the meter's error value. ;
[0019] Error value Convert to ratio correction value ;
[0020] The calculated ratio correction value Convert to hexadecimal data;
[0021] Using a dedicated writing tool, the hexadecimal format difference correction value is... It is embedded into the corresponding register of the metering chip.
[0022] 3. The adaptive compensation method for the wiring direction of a guide rail meter based on current flow direction detection according to claim 2, characterized in that it further includes:
[0023] During the meter manufacturing process, the following parameters are written into the chip or storage module as fixed inputs for subsequent compensation calculations:
[0024] Rated voltage Rated current Pulse constant Energy pulse threshold ;
[0025] Measure the power consumption parameters of the meter before it leaves the factory:
[0026] Meter power consumption value Linearity deviation .
[0027] Preferably, the meter collects current and voltage signals in real time, calculates the raw power value, and performs low-pass filtering preprocessing. Through continuous sampling, it verifies the current flow direction and maps the current wiring configuration to determine whether it is top-in / bottom-out or bottom-in / top-out. Specifically, this includes:
[0028] The metering chip acquires current signals from a CT or sampling manganese copper acquisition circuit, and voltage signals from a voltage sampling module. The raw power value is then calculated using the chip's internal multiplier. ;
[0029] For the original power value A low-pass filter is applied to filter out high-frequency interference signals in the power grid, resulting in a stable power detection value.
[0030] The preprocessed power value is temporarily stored in the chip's temporary register, and the sampling timestamp is recorded at the same time.
[0031] Preferably, the method further includes:
[0032] The meter program has a preset current flow direction determination rule: based on the standard wiring direction of the meter hardware design, when the pre-processed power value is positive, it is determined to be positive power flow; when the power value is negative, it is determined to be reverse power flow.
[0033] Forward power flow corresponds to top-in, bottom-out wiring, and reverse power flow corresponds to bottom-in, top-out wiring.
[0034] Preferably, if the wiring is a top-in, bottom-out forward connection, no compensation is needed; only the fixed ratio difference correction value is called to correct the original power value, specifically including:
[0035] The meter program calls the ratio correction value embedded in the chip. ;
[0036] According to the formula Substitute =0, the corrected active power is calculated. ;
[0037] Corrected power Write to the chip's power register, overwriting the original power value. This serves as the basis for subsequent electricity metering.
[0038] Preferably, if the wiring is a bottom-in, top-out reverse connection, the recorded core parameters and its own power consumption value are called up to calculate the compensation value, and the original power value is corrected by combining the ratio difference correction value. Specifically, this includes:
[0039] The meter program retrieves the calibrated core parameters and its own power consumption value from the storage module. ;
[0040] Substitution Calculate the compensation value ;
[0041] Joint calibration execution:
[0042] The meter program simultaneously calls the ratio correction value. and the calculated compensation value ;
[0043] According to the formula The corrected active power was calculated. ;
[0044] Its own power consumption value is reread at fixed intervals. and linear deviation Adjust compensation value .
[0045] Preferably, the step of calculating the total electrical energy based on the corrected active power through time integration, and converting it into a pulse output representing a fixed increment of electrical energy by the metering chip, specifically includes:
[0046] Based on the corrected active power According to the formula Perform energy integration calculation;
[0047] Each pulse represents a fixed energy increment CF. The pulse signal is output to the meter's MCU module to measure the electricity consumption.
[0048] Through energy pulse threshold Limit the minimum threshold of pulse output to avoid frequent pulse triggering caused by small power fluctuations, and ensure the consistency between pulse output and actual power consumption.
[0049] Preferably, the method further includes:
[0050] The electricity meter program repeats the process of current flow direction detection, wiring method determination, correction / compensation execution, and electricity metering at fixed intervals.
[0051] The electricity meter should be recorded regularly for wiring method and compensation value. Active power Total electrical energy It is stored in non-volatile memory.
[0052] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0053] 1. This invention filters out high-frequency interference signals such as harmonics and instantaneous pulses in the power grid by performing low-pass filtering on the original power value, ensuring the stability of the power detection value; combined with the verification mechanism of three consecutive samplings, it avoids the problem of misjudgment of flow direction caused by single instantaneous interference; at the same time, the meter program repeatedly executes the flow direction detection and wiring judgment process at a fixed cycle, which can respond in a timely manner to changes in wiring methods in scenarios such as construction adjustments, and adapt to the complexity of actual installation and use scenarios.
[0054] 2. This invention, by combining the core parameters of the electricity meter calibrated during the production stage, calculates the compensation value using a proprietary formula and employs a dynamic update mechanism every minute. This accurately offsets the mismeasurement of the meter's own power consumption when connected in reverse (bottom in, top out) configurations, and adapts to minor changes in power consumption caused by grid voltage fluctuations and ambient temperature variations. Simultaneously, in conjunction with the ratio correction value fixed during the production stage, it achieves dual elimination of hardware system deviations and mismeasurement of its own power consumption, ensuring that the corrected power value meets national electricity meter accuracy standards. This significantly improves the metering accuracy and stability of the DIN rail meter under both forward and reverse wiring conditions. Attached Figure Description
[0055] Further details, features, and advantages of this application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0056] Figure 1 This is a flowchart of the method of the present invention;
[0057] Figure 2 Here is a flowchart for active power calculation;
[0058] Figure 3 This is a flowchart for functional power accumulation and pulse counting. Detailed Implementation
[0059] Several embodiments of this application will now be described in more detail with reference to the accompanying drawings to enable those skilled in the art to implement this application. This application may be embodied in many different forms and for various purposes and should not be limited to the embodiments set forth herein. These embodiments are provided to make this application thorough and complete, and to fully convey the scope of this application to those skilled in the art. The embodiments described do not limit this application.
[0060] Unless otherwise defined, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. It will be further understood that terms such as those defined in commonly used dictionaries shall be interpreted as having a meaning consistent with their meaning in the relevant field and / or the context of this specification, and shall not be interpreted in an idealized or overly formal sense unless expressly defined herein.
[0061] Example 1
[0062] Its specific implementation method is combined with the appendix Figure 1 To be continued Figure 3 Please provide a detailed explanation.
[0063] Appendix Figure 1 The flowchart of the adaptive compensation method for the wiring direction of the guide rail meter based on current flow direction detection provided in the embodiments of the present invention shows the complete steps from completing the calibration and solidification of the ratio difference correction value to calculating the total electrical energy by time integration based on the corrected active power.
[0064] In this embodiment, it includes:
[0065] During the production stage, the calibration and solidification of the ratio difference correction value, the writing of the meter's rated parameters and pulse-related fixed parameters are completed. At the same time, the meter's own power consumption value and linear deviation are measured and recorded to lay the foundation for subsequent compensation calculations.
[0066] Specifically, it includes:
[0067] Connect the rail-mounted meter to be manufactured to a professional calibration station. The calibration station simulates a standard power grid environment (matching the meter's rated voltage Un and rated current In) and outputs a standard power signal.
[0068] The meter calibration station collects the meter readings in real time, compares them with the theoretical readings corresponding to the standard power signal, and calculates the meter's error value. ;
[0069] According to the formula , the error value Convert to ratio correction value ;
[0070] Since negative numbers are represented using two's complement in computer systems, the calculated ratio difference correction value needs to be further adjusted. Convert to hexadecimal data;
[0071] Using a dedicated writing tool, the hexadecimal format difference correction value is... The value is embedded in the corresponding register of the metering chip and remains stable throughout the entire lifespan of the meter, only requiring readjustment during professional calibration.
[0072] During the meter manufacturing process, the following parameters are written into the chip or storage module as fixed inputs for subsequent compensation calculations:
[0073] Rated voltage The standard operating voltage of the electricity meter (such as 220V in the document example) must be matched with the actual voltage level of the power grid.
[0074] Rated current The allowable long-term operating current of the electricity meter determines the load adaptability range of the electricity meter.
[0075] Pulse constant The core parameter of the electricity meter for measuring electrical energy is the number of pulses output when 1 kWh of electrical energy is consumed (such as 1200 imp / kWh in the document example), which is directly related to the conversion relationship between pulses and electrical energy.
[0076] Energy pulse threshold The threshold parameter used to control the energy pulse output is determined and fixed by the production process to ensure the stability and consistency of the pulse output.
[0077] The power consumption parameters of the meter are measured using specialized testing equipment before it leaves the factory.
[0078] Meter power consumption value When the meter is working normally, the total power loss of the voltage coil and electronic circuit needs to be measured multiple times under standard conditions and the average value is taken to ensure accuracy.
[0079] Linear deviation : Defined as the measurement error of the meter's own power consumption at 1% of the standard power. It is necessary to simulate the 1% standard power scenario through a meter calibration station, compare the measured value of its own power consumption with the actual value, calculate the linear deviation, and use it to correct the influence of linear deviation in the compensation calculation.
[0080] The meter collects current and voltage signals in real time, calculates the raw power value, and preprocesses it through low-pass filtering. It verifies the current flow direction through continuous sampling and maps the current wiring method to determine whether it is top-in-bottom-out or bottom-in-top-out.
[0081] Specifically, it includes:
[0082] The metering chip acquires the current signal from the current transformer (CT) or the manganese copper sampling circuit, and the voltage signal from the voltage sampling module. The chip then uses its internal multiplier to calculate the original power value. ;
[0083] For the original power value Low-pass filter processing is performed to filter out high-frequency interference signals (such as harmonics and transient pulses) in the power grid, so as to obtain a stable power detection value and avoid misjudgment of flow direction and power calculation deviation caused by interference.
[0084] The preprocessed power value is temporarily stored in the chip's temporary register, and the sampling timestamp is recorded for subsequent energy integration calculations. It provides time-dimensional data.
[0085] The meter program has a preset current flow direction determination rule: based on the standard wiring direction (top in, bottom out) of the meter hardware design, when the pre-processed power value is positive, it is determined to be positive power flow; when the power value is negative, it is determined to be reverse power flow.
[0086] Based on the power flow direction, the wiring method is mapped as follows: forward power flow corresponds to top-in, bottom-out wiring (consistent with the standard hardware direction), and reverse power flow corresponds to bottom-in, top-out wiring (opposite to the standard hardware direction).
[0087] The flow direction determination adopts a continuous sampling verification mechanism: the wiring method is finally confirmed only when the same flow direction is detected in three consecutive samples, thus avoiding misjudgment caused by a single momentary interference.
[0088] If it is a top-in, bottom-out forward wiring (consistent with the hardware standard direction), no compensation is required. Only the fixed ratio correction value is called to correct the original power value and ensure metering accuracy.
[0089] Specifically, it includes:
[0090] Scenario A: Forward wiring (top in, bottom out, correct wiring):
[0091] When the wiring is correct, the current consumed by the meter itself is directly connected in parallel to the mains input line and does not flow through the CT or sampling manganese copper, therefore the original power value is... The value does not include its own power consumption; it only contains hardware system deviations (such as channel crosstalk and small-signal linearity issues), and therefore requires no additional compensation (i.e., compensation value). =0);
[0092] Correction execution process:
[0093] The meter program calls the ratio correction value embedded in the chip. ;
[0094] According to the formula Substitute =0, the corrected active power is calculated. ;
[0095] Corrected power Write to the chip's power register, overwriting the original power value. This serves as the foundational data for subsequent electricity metering.
[0096] Accuracy verification: The calibrated power value must meet the national electricity meter accuracy standard (e.g., Class 1 meter error ≤ ±1%), which has been calibrated at the meter calibration station during the production stage (comparison correction value). (The role of) providing advance protection.
[0097] If it is a reverse wiring with bottom in and top out (opposite to the hardware standard direction), the recorded core parameters and its own power consumption value are called to calculate the compensation value. The original power value is corrected by combining the ratio difference correction value to offset the influence of its own power consumption mismeasurement.
[0098] Specifically, it includes:
[0099] Scenario B: Reverse wiring (bottom in, top out, incorrect wiring):
[0100] Logical basis: When the wiring direction is incorrect, the current consumed by the meter itself will flow through the CT or the sampling manganese copper, causing the original power value to be affected. The metering data includes its own power consumption; without correction, this will result in an overestimation of the electricity consumption. Therefore, in addition to ratio error correction, a compensation value is needed. To offset the effect of mismeasurement of its own power consumption.
[0101] The meter program calls the calibrated core parameters from the storage module. , , , , ) and its own power consumption value ;
[0102] Substitution Calculate the compensation value ;
[0103] The core logic of the formula is: based on the meter's rated parameters, pulse characteristics, and its own power consumption deviation, calculate the power compensation amount corresponding to its own power consumption to ensure that the corrected power value eliminates the mismeasurement component of its own power consumption.
[0104] Joint calibration execution:
[0105] The meter program simultaneously calls the ratio correction value. and the calculated compensation value ;
[0106] According to the formula The corrected active power was calculated. This power value has already eliminated mismeasurements of its own power consumption and hardware system deviations;
[0107] Compensation value Employs a dynamic update mechanism: rereads its own power consumption value at fixed intervals (e.g., 1 minute). and linear deviation Adjust compensation value It adapts to the slight changes in its own power consumption caused by fluctuations in grid voltage and changes in ambient temperature.
[0108] Based on the corrected active power, the total electrical energy is calculated by time integration, and the metering chip converts it into a pulse output representing a fixed increment of electrical energy for reading or remote meter reading.
[0109] Specifically, it includes:
[0110] Based on the corrected active power According to the formula Perform energy integration calculation;
[0111] Active power With fixed time interval Multiply the values (e.g., 0.1 seconds) to get the energy consumption within that time interval. Then, sum up the energy consumption for all time intervals to get the total energy consumption. ;
[0112] The metering chip will measure the total electrical energy Convert to pulse output:
[0113] Each pulse represents a fixed energy increment CF (i.e., the reciprocal of the pulse constant, such as 1200imp / kWh corresponding to CF=1 / 1200kWh / imp≈833.33Wh / imp). The pulse signal is output to the meter's MCU module for measuring the electricity meter's power consumption.
[0114] Stability assurance of pulse output: through energy pulse threshold. Limit the minimum threshold of pulse output to avoid frequent pulse triggering caused by small power fluctuations, and ensure the consistency between pulse output and actual power consumption.
[0115] The meter program repeats the process of current flow detection, wiring method determination, correction / compensation execution, and energy metering at fixed intervals (e.g., 0.5 seconds) to ensure timely response when the wiring method is changed midway (e.g., during construction to adjust the wiring).
[0116] If frequent switching of current flow direction is detected in 10 consecutive samples (e.g., ≥3 times per second), it is determined to be a power grid fault or loose wiring. The meter will then activate its alarm mechanism (e.g., indicator light flashing) and lock the current compensation value. To avoid measurement confusion caused by frequent adjustments;
[0117] The electricity meter should be recorded regularly for wiring method and compensation value. Active power Total electrical energy Key data such as these are stored in non-volatile memory, which facilitates troubleshooting and traceability of measurement accuracy in the later stages.
[0118] The above formulas are all dimensionless calculations. The formulas are derived from software simulations based on a large amount of collected data to obtain the most recent real-world results. The preset parameters in the formulas are set by those skilled in the art according to the actual situation.
[0119] The foregoing has only described certain exemplary embodiments of the present invention by way of illustration. Undoubtedly, those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the foregoing drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.
[0120] It should be noted that, in this document, the use of relational terms such as "first" and "second" is merely to distinguish one entity or operation from another, and does not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0121] It should be understood that in the various embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0122] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0123] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0124] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0125] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0126] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0127] The foregoing has only described certain exemplary embodiments of the present invention by way of illustration. Undoubtedly, those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the foregoing drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.
Claims
1. An adaptive compensation method for the wiring direction of a guide rail meter based on current flow direction detection, characterized in that, include: During the production phase, the calibration and solidification of the ratio correction value are completed, and the rated parameters of the meter and the fixed parameters related to the pulse are written. At the same time, the power consumption value and linear deviation of the meter itself are measured and recorded. The meter collects current and voltage signals in real time, calculates the raw power value, and preprocesses it through low-pass filtering. It verifies the current flow direction through continuous sampling and maps the current wiring method to determine whether it is top-in-bottom-out or bottom-in-top-out. If it is a positive wiring with top in and bottom out, no compensation is needed; simply call the fixed ratio difference correction value to correct the original power value. If it is a reverse wiring with bottom inlet and top outlet, call the recorded core parameters and its own power consumption value, calculate the compensation value, and combine it with the ratio difference correction value to correct the original power value; Based on the corrected active power, the total electrical energy is calculated by time integration, and the metering chip converts it into a pulse output representing a fixed increment of electrical energy.
2. The adaptive compensation method for the wiring direction of a guide rail meter based on current flow direction detection according to claim 1, characterized in that, During the production phase, the calibration and solidification of the ratio correction value are completed, and the rated parameters and pulse-related fixed parameters of the meter are written. Simultaneously, the meter's own power consumption and linear deviation are measured and recorded. Specifically, this includes: Connect the rail meter to be manufactured to a professional calibration station. The calibration station simulates a standard power grid environment and outputs a standard power signal. The meter calibration station collects the meter readings in real time, compares them with the theoretical readings corresponding to the standard power signal, and calculates the meter's error value. ; Error value Convert to ratio correction value ; The calculated ratio correction value Convert to hexadecimal data; Using a dedicated writing tool, the hexadecimal format difference correction value is... It is embedded into the corresponding register of the metering chip.
3. The adaptive compensation method for the wiring direction of a guide rail meter based on current flow direction detection according to claim 2, characterized in that, Also includes: During the meter manufacturing process, the following parameters are written into the chip or storage module as fixed inputs for subsequent compensation calculations: Rated voltage Rated current Pulse constant Energy pulse threshold ; Measure the power consumption parameters of the meter before it leaves the factory: Meter power consumption value Linearity deviation .
4. The adaptive compensation method for the wiring direction of a guide rail meter based on current flow direction detection according to claim 1, characterized in that, The electricity meter collects current and voltage signals in real time, calculates the raw power value, and preprocesses it through low-pass filtering. Continuous sampling verifies the current flow direction, mapping out whether the current connection is top-in / bottom-out or bottom-in / top-out. Specifically, this includes: The metering chip acquires current signals from a CT or sampling manganese copper acquisition circuit, and voltage signals from a voltage sampling module. The raw power value is then calculated using the chip's internal multiplier. ; For the original power value A low-pass filter is applied to filter out high-frequency interference signals in the power grid, resulting in a stable power detection value. The preprocessed power value is temporarily stored in the chip's temporary register, and the sampling timestamp is recorded at the same time.
5. The adaptive compensation method for the wiring direction of a guide rail meter based on current flow direction detection according to claim 4, characterized in that, Also includes: The meter program has a preset current flow direction determination rule: based on the standard wiring direction of the meter hardware design, when the pre-processed power value is positive, it is determined to be positive power flow; when the power value is negative, it is determined to be reverse power flow. Forward power flow corresponds to top-in, bottom-out wiring, and reverse power flow corresponds to bottom-in, top-out wiring.
6. The adaptive compensation method for the wiring direction of a guide rail meter based on current flow direction detection according to claim 1, characterized in that, If it is a top-in, bottom-out forward connection, no compensation is needed; only the fixed ratio difference correction value is used to correct the original power value, specifically including: The meter program calls the ratio correction value embedded in the chip. ; According to the formula Substitute =0, the corrected active power is calculated. ; Corrected power Write to the chip's power register, overwriting the original power value. This serves as the basis for subsequent electricity metering.
7. The adaptive compensation method for the wiring direction of a guide rail meter based on current flow direction detection according to claim 6, characterized in that, If it is a bottom-in, top-out reverse wiring, the recorded core parameters and its own power consumption value are called up to calculate the compensation value. The original power value is then corrected by combining the ratio difference correction value. Specifically, this includes: The meter program retrieves the calibrated core parameters and its own power consumption value from the storage module. ; Substitution Calculate the compensation value ; Joint calibration execution: The meter program simultaneously calls the ratio correction value. and the calculated compensation value ; According to the formula The corrected active power was calculated. ; Its own power consumption value is reread at fixed intervals. and linear deviation Adjust compensation value .
8. The adaptive compensation method for the wiring direction of a guide rail meter based on current flow direction detection according to claim 1, characterized in that, Based on the corrected active power, the total electrical energy is calculated by time integration. The metering chip then converts this into a pulse output representing a fixed increment of electrical energy, specifically including: Based on the corrected active power According to the formula Perform energy integration calculation; Each pulse represents a fixed energy increment CF. The pulse signal is output to the meter's MCU module to measure the electricity consumption. Through energy pulse threshold Limit the minimum threshold of pulse output to avoid frequent pulse triggering caused by small power fluctuations, and ensure the consistency between pulse output and actual power consumption.
9. The adaptive compensation method for the wiring direction of a guide rail meter based on current flow direction detection according to claim 1, characterized in that, Also includes: The electricity meter program repeats the process of current flow direction detection, wiring method determination, correction / compensation execution, and electricity metering at fixed intervals. The electricity meter should be recorded regularly for wiring method and compensation value. Active power Total electrical energy It is stored in non-volatile memory.