CN-121978398-A - Intelligent ammeter high-precision metering method oriented to bidirectional settlement and intelligent ammeter
Abstract
The invention discloses a high-precision metering method of an intelligent ammeter for bidirectional settlement and the intelligent ammeter, and relates to the technical field of electric energy metering, wherein the method carries out digital/analog heterogeneous shunting on broadband bidirectional analog electric signals to respectively obtain a smooth fundamental wave envelope sequence and a physical jump edge pulse train; the method comprises the steps of determining the width of a shielding window according to a smooth fundamental wave envelope sequence, carrying out hardware screening on physical jump edge pulse strings to determine a real physical time stamp, controlling a hardware delay timer through an event system according to the real physical time stamp and a group delay constant, triggering a direct memory access controller to capture an active integral snapshot at a delimiting moment and clear, and controlling corresponding data to be written into a conventional metering register or a pollution energy isolation register according to a difference result of the active integral snapshot and the broadband integral snapshot.
Inventors
- JIANG KANG
Assignees
- 江苏华鹏智能仪表科技股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260407
Claims (10)
- 1. The intelligent ammeter high-precision metering method for bidirectional settlement comprises the step of metering broadband bidirectional analog electric signals based on the intelligent ammeter, and is characterized by further comprising the following steps: Digital/analog heterogeneous shunting is implemented on the broadband bidirectional analog electric signal at the pin side of the microcontroller, so that a calculation main channel outputs a smooth fundamental wave envelope sequence, and a physical auxiliary channel outputs a physical jump edge pulse train; According to the real physical time stamp and the group delay constant, controlling a hardware delay timer by an event system, triggering a direct memory access controller to capture an active integral snapshot at a delimiting moment and resetting; and controlling corresponding data to be respectively written into the conventional metering register area or the pollution energy isolation register area according to the difference result of the active integral snapshot and the broadband integral snapshot.
- 2. The intelligent ammeter high-precision metering method facing to bidirectional settlement according to claim 1, wherein the method comprises the following steps: The digital/analog heterogeneous splitting includes feeding a first link of a wideband bi-directional analog electrical signal into an analog-to-digital converter and a high-order IIR low-pass filter path to form a smoothed fundamental envelope sequence and feeding a second link of the same wideband bi-directional analog electrical signal directly into an analog comparator to form a physical trip edge burst.
- 3. The intelligent ammeter high-precision metering method facing to bidirectional settlement according to claim 2, wherein the method comprises the following steps: The physical jump edge pulse train is obtained by performing polarity inversion detection by an analog comparator with zero potential reference, the smooth fundamental wave envelope sequence is obtained by filtering fundamental wave components in the broadband bidirectional analog electric signal by a high-order IIR low-pass filtering path, and the smooth fundamental wave envelope sequence and the physical jump edge pulse train are derived from the same broadband bidirectional analog electric signal.
- 4. The intelligent ammeter high-precision metering method facing to bidirectional settlement according to claim 3, wherein the method comprises the following steps: Determining the width of a shielding window according to the smooth fundamental wave envelope sequence, wherein the method comprises the steps of determining the steepness of a power flow according to adjacent sampling values of the smooth fundamental wave envelope sequence, generating the width of the shielding window of the current period according to the steepness of the power flow, and writing the width of the shielding window into an event router to limit a release interval of a physical jump along a pulse train.
- 5. The intelligent ammeter high-precision metering method facing to bidirectional settlement according to claim 4, wherein the method comprises the following steps: The method comprises the steps of carrying out hardware screening on physical jump edge pulse strings to determine a real physical timestamp, taking rough positioning time determined by a smooth fundamental wave envelope sequence as a window center, only releasing the candidate flip edges falling into a range corresponding to the width of a shielding window, and latching the corresponding time of the candidate flip edges released first in the same period as the real physical timestamp.
- 6. The intelligent ammeter high-precision metering method facing to bidirectional settlement according to claim 5, wherein the method comprises the following steps: The method comprises the steps of receiving an edge event corresponding to a real physical time stamp by an event system, starting the hardware delay timer for timing, and converting the group delay constant into a waiting threshold value of the hardware delay timer to generate a delimitation moment.
- 7. The intelligent ammeter high-precision metering method facing to bidirectional settlement according to claim 6, wherein the method comprises the following steps: the method comprises the steps of firstly latching the current integral value in the multiply-add accumulator to form an active integral snapshot, then carrying the active integral snapshot by the direct memory access controller, and carrying out zero clearing on the multiply-add accumulator after carrying to establish an integral starting point of the next period.
- 8. The intelligent ammeter high-precision metering method facing to bidirectional settlement according to claim 7, wherein the method comprises the following steps: The broadband integral snapshot and the active integral snapshot are obtained by adopting the same integral boundary, and the broadband integral snapshot is obtained by integrating broadband power samples corresponding to the broadband bidirectional analog electric signals by a broadband concomitant integral chain, and the difference result of the active integral snapshot and the broadband integral snapshot is used for representing pollution energy distinguished from a fundamental wave main metering result.
- 9. The intelligent ammeter high-precision metering method facing to bidirectional settlement according to claim 8, wherein the method comprises the following steps: The method comprises generating pollution hit marks according to the direction relation between the difference result and the active integral snapshot, and controlling the target address of the direct memory access controller to switch between the conventional metering register and the pollution energy isolation register according to the pollution hit marks; The corresponding data written into the pollution energy isolation register area is obtained by displacement scaling of the difference result, the displacement level of the displacement scaling is determined according to the exceeding gear of the difference result relative to the pollution threshold, the pollution threshold is calibrated by idle noise, quantization error and normal harmonic residues, and the pollution threshold is written into the configuration register during power-on initialization.
- 10. The intelligent ammeter for bidirectional settlement comprises a voltage sampling branch, a current sampling branch and a microcontroller, and is characterized in that an analog-to-digital converter, an analog comparator, an event system, a hardware delay timer, a direct memory access controller, a multiply-add accumulator, a broadband accompanying integration chain, a conventional metering register area and a pollution energy isolation register area are arranged in the microcontroller; the microcontroller determines the width of a shielding window according to the smooth fundamental wave envelope sequence, and performs hardware screening on the physical jump edge pulse train to determine a real physical timestamp; the event system controls a hardware delay timer according to the real physical time stamp and the group delay constant, triggers a direct memory access controller to capture an active integral snapshot at the delimiting moment and clears the active integral snapshot, forms a broadband integral snapshot with an integral chain, and writes corresponding data into a conventional metering register or a pollution energy isolation register according to the difference result of the active integral snapshot and the broadband integral snapshot.
Description
Intelligent ammeter high-precision metering method oriented to bidirectional settlement and intelligent ammeter Technical Field The invention relates to the technical field of electric energy metering, in particular to a high-precision metering method of an intelligent ammeter for bidirectional settlement and the intelligent ammeter. Background The bidirectional charging type intelligent ammeter is mainly applied to grid-connected metering nodes of residential sides, industrial and commercial sides and a platform-level micro-grid, and is particularly used in the scenes of household distributed photovoltaic, household energy storage and charging facilities and parallel operation of the household energy storage and charging facilities and a public low-voltage distribution network, and the bidirectional charging type intelligent ammeter is usually arranged near a household main switch and is used for recording electricity purchasing quantity, electricity selling quantity and grid-connected point tide state. In home micro-grid and optical storage charging scenes, the electric meter is required to provide continuous metering data for settlement and operation management besides basic electric quantity metering, and the existing main stream scheme generally completes electric energy metering based on voltage sampling, current sampling, analog-to-digital conversion and micro-control processing and realizes metering time sequence control in cooperation with timing processing. Chinese patent document CN111239482a discloses an electric energy metering system and method for implementing the same. The system comprises a power supply module, a voltage detection module, a current detection module, two paths of 24-bit analog-to-digital conversion modules and a micro-control processing unit, wherein voltage signals and current signals are respectively sent to the corresponding analog-to-digital conversion modules to form digital sequences, then, the system sets larger hardware filtering and software filtering time constants to remove zero drift and direct current drift caused by temperature drift, analog-to-digital conversion truncation errors and the like of a front-stage amplifier, and stores the filtered sequences in a buffer zone. The prior art can finish the acquisition of voltage, current and phase information in a conventional power frequency metering scene, but the processing main chain is still established on a sampling-digital filtering-software prediction or compensation-timing acquisition path. When the high-frequency harmonic wave, waveform distortion and bidirectional tide fast switching introduced by an inverter or a charging device occur in a grid-connected point, a larger filtering time constant set for guaranteeing stable amplitude can bring more obvious time delay, zero-crossing prediction and random delay compensation depend on sampling sequences, buffer data and program execution beats, the two are respectively pursued with pure amplitude and time welting in mechanism, and boundary inconsistency is easy to occur under the conditions of low power factor, harmonic superposition and direction reversal. The inconsistency is further conducted to the phase determination, power factor calculation and integral start-stop moment determination process, which may cause incomplete correspondence between the bidirectional active power statistics and the actual power flow boundary, and cause statistical deviation of the metering results of the purchase power, the sales power and the grid-connected point at the moment of direction switching. Therefore, how to accurately determine the metering boundary under the conditions of broadband bidirectional electric signals with high-frequency disturbance and direction switching and considering the coordination between the filtering delay, zero-crossing judgment and time-sequence compensation becomes a technical problem to be solved in the field. Disclosure of Invention (One) solving the technical problems The invention provides a high-precision metering method of an intelligent ammeter for bidirectional settlement and the intelligent ammeter, which are used for carrying out hardware screening on physical jump edge pulse trains to determine real physical time stamps, controlling a hardware delay timer through an event system according to the real physical time stamps and group delay constants, triggering a direct memory access controller to capture an active integral snapshot at a delimiting moment and clearing the active integral snapshot, and controlling corresponding data to be written into a conventional metering register area or a pollution energy isolation register area according to a difference result of the active integral snapshot and the broadband integral snapshot. The scheme improves the accuracy and the metering stability of the bidirectional metering boundary judgment and solves the technical problems recorded in the background technology. (II) technical scheme I