Pulse processing method after transformation ratio switching of mutual inductance type instrument

By configuring multiple storage units in a mutual inductance instrument to process the pulses after the transformer's ratio switch, the problem of high consumption of RAM and EEPROM in the original technology is solved, and more efficient pulse processing and system scalability are achieved.

CN119471546APending Publication Date: 2025-02-18JIANGSU LINYANG ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411548042.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

After the transformer ratio switch, the original technology consumes a lot of RAM and EEPROM when processing pulses, and has poor adaptability, resulting in poor code scalability.

Method used

By configuring the RAM and the first storage unit EE1 for storing the number of secondary pulses under the current variable ratio, storing the first storage unit EE1 and clearing the RAM; by configuring the second storage unit EE2 for storing the first before the variable ratio switch, the second storage unit EE2 is configured to store the first time before the variable ratio switch. The accumulated value of side pulses Δpulse; after switching the change ratio, the number of pulses under the new change ratio is used to accumulate to calculate the total number of pulses at the current moment.

Benefits of technology

Reduces the use of RAM and EEPROM, shortens the power-down storage time, and improves the scalability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119471546A_ABST
    Figure CN119471546A_ABST
Patent Text Reader

Abstract

The invention provides a pulse processing method after transformation ratio switching of a mutual inductance type instrument. The pulse processing method comprises the steps that the secondary side pulse number of the mutual inductance type instrument is acquired and stored in a first storage unit; when the transformation ratio of the mutual inductance type instrument is switched, the secondary side pulse number under the current transformation ratio serves as data before transformation ratio switching and is converted into a primary side pulse accumulated value delta pulse, the primary side pulse accumulated value delta pulse is stored in a second storage unit EE2, and the pulse number is recorded according to a new transformation ratio; the delta pulse and the primary side pulse number obtained through transformation ratio conversion after switching are accumulated, the primary side total pulse number at the current moment is obtained, and the electric energy parameters of the mutual inductance type instrument are calculated according to the total pulse number; the usage amount of the RAM and the EEPROM is effectively reduced, the power-down storage time is shortened, and the expandability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of electric energy meters, and in particular relates to a pulse processing method after the transformation ratio of a mutual inductance meter is switched. Background Art

[0002] The three-phase four-wire mutual inductance meter is a widely used electric energy metering device. It uses a mutual inductor to convert high current and high voltage into low current and low voltage signals for easy measurement and display. It has the characteristics of high accuracy, good stability, easy installation, and rich functions. It is mainly used in industrial, commercial, and public facilities fields, and plays an important role in the power system.

[0003] The transformation ratio of the current transformer is configured according to the load current. If the load current changes beyond the allowable value, the transformation ratio must be changed to meet the measurement and protection requirements. After the transformer ratio is changed, the processing of the power needs to follow certain steps and principles to ensure the accuracy and continuity of the power calculation.

[0004] For the processing of pulses after the transformer ratio is switched, the original solution is to directly store the primary side pulses inside the meter, that is, every time a pulse is generated on the secondary side, it is directly multiplied by the CT ratio and then stored in the RAM, and then transferred to the EEPROM after reaching a certain value.

[0005] The advantage of this solution is that it does not need to consider whether the transformer ratio is switched, because it is directly converted into primary pulses at the minimum resolution (1 pulse). The disadvantage of this solution is that it consumes more RAM and EEPROM, and it takes a long time to save after power failure. Moreover, when the system is expanded, if the originally defined storage size does not meet the requirements, the storage space size needs to be readjusted, and the scalability of the code is not good. Therefore, it is necessary to design a pulse processing solution after the ratio is switched. Summary of the invention

[0006] The purpose of the present invention is to propose a method for processing pulses after the ratio of a mutual inductor is switched, aiming at the problem that more RAM and EEPROM are consumed and the adaptability is poor during pulse processing after the ratio of a mutual inductor is switched.

[0007] The technical solution of the present invention is:

[0008] The present invention provides a method for processing pulses after the ratio of a mutual inductance instrument is switched. The mutual inductance instrument is configured with a RAM and a first storage unit EE1, both of which are used to store the number of secondary side pulses under the current ratio. When the pulses stored in the RAM reach a preset number, they are stored in the first storage unit EE1, and the RAM is cleared; a second storage unit EE2 is configured to store the accumulated value Δpulse of the primary side pulses before the ratio is switched; the method comprises the following steps:

[0009] S1. Add voltage to the energy meter without adding current, reset the energy meter to zero, and read the total pulse value of the energy meter to be 0;

[0010] S2, communication sets the transformation ratio of the mutual inductance meter, applies current to the electric energy meter, obtains the secondary side pulse number Pulse1 of the mutual inductance meter, and stores it in the first storage unit EE1 and RAM;

[0011] S3, communication sets the transformation ratio value of the mutual inductance instrument to be different from the transformation ratio value set in step S2, that is, the transformation ratio is switched;

[0012] The secondary side pulse number under the current transformation ratio is used as the data before the transformation ratio switching, converted into the primary side pulse accumulation value Δpulse, and stored in the second storage unit EE2;

[0013] S4, clearing the RAM and the first storage unit EE1, and recording the number of pulses according to the new transformation ratio;

[0014] Accumulate the primary side pulse accumulation value Δpulse before the transformation ratio switching stored in the second storage unit and the primary side pulse number obtained according to the transformation ratio conversion after the transformation ratio switching to obtain the primary measurement total pulse number of the mutual inductance meter at the current moment;

[0015] S5. Calculate the electric energy parameters of the mutual inductance meter according to the total number of pulses measured once.

[0016] Further, the secondary side pulse number Pulse1 of the mutual inductance instrument is obtained, including:

[0017] Acquire the secondary side current or voltage signal of the mutual inductance instrument through a pulse acquisition circuit;

[0018] Filtering the secondary side current or voltage signal to obtain a pulse signal;

[0019] The secondary side pulse number of the mutual inductance instrument is determined according to the pulse signal.

[0020] Furthermore, the transformation ratio of the mutual inductance instrument includes a current transformer transformation ratio CT1 and a voltage transformer transformation ratio PT1. If there is only a single current transformer, the voltage transformer transformation ratio adopts a default value, which is recorded as 1.

[0021] Furthermore, the secondary side pulse number under the current transformation ratio is used as the data before the transformation ratio switching, converted into the primary side pulse accumulation value Δpulse, and stored in the second storage unit EE2, including:

[0022] Get the current transformer ratio CT1 and voltage transformer ratio PT1 before switching set by communication;

[0023] Obtain the secondary side pulse number Pulse1 stored in the first storage unit EE1 and the RAM;

[0024] The secondary side pulse number Pulse1 is converted into the primary side pulse accumulation value Δpulse using the following formula and stored in the second storage unit EE2;

[0025] Δpuls=Pulse1×CT1×PT1.

[0026] Further, the step of accumulating the number of primary-side pulses stored in the second storage unit and the number of primary-side pulses obtained by transformation according to the transformation ratio after the transformation ratio switching comprises:

[0027] Acquire the primary side pulse accumulation value Δpulse stored in the second storage unit EE2;

[0028] Obtain the primary side pulse number obtained by conversion according to the switched transformation ratio;

[0029] The primary side pulse accumulation value Δpulse before the transformation ratio switching and the primary side pulse number after the transformation ratio switching are accumulated to obtain the total pulse number of the mutual inductance instrument at the current moment.

[0030] Furthermore, the total number of pulses Pulse_Total measured by the mutual inductance instrument at the current moment is:

[0031] Pulse_Total=Δpuls+Pulse2×CT2×PT2

[0032] Among them, Pulse2 is the secondary side pulse number under the current transformation ratio stored in the RAM and the first storage unit EE1, and CT2 and PT2 are the transformation ratio values ​​of the mutual inductance instrument after switching.

[0033] Further, the electric energy parameter of the mutual inductance meter is calculated according to the total number of pulses measured once, including:

[0034] According to a preset electric energy calculation formula, the total number of pulses measured once is used as an input parameter to calculate electric energy parameters, wherein the electric energy parameters include at least one of the voltage, current, power, electric quantity or demand of the electric energy meter.

[0035] An electronic device, comprising:

[0036] A memory storing executable instructions;

[0037] A processor runs the executable instructions in the memory to implement the pulse processing method after the mutual inductance instrument ratio is switched.

[0038] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the pulse processing method after the ratio of a mutual inductance instrument is switched.

[0039] Beneficial effects of the present invention:

[0040] The method of the present invention can reduce the usage of RAM and EEPROM, shorten the power-off preservation time, and improve the scalability.

[0041] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present invention.

[0043] Figure 1 A flow chart of a pulse processing method after a mutual inductance instrument ratio is switched according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0044] The preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0045] Example 1

[0046] Figure 1 A flow chart of a pulse processing method after a mutual inductance instrument ratio is switched according to an embodiment of the present invention is shown.

[0047] like Figure 1 As shown, a method for processing pulses after the ratio of a mutual inductance instrument is switched, wherein the mutual inductance instrument is configured with a RAM and a first storage unit EE1, both of which are used to store the number of secondary side pulses under the current ratio. When the pulses stored in the RAM reach a preset number, they are stored in the first storage unit EE1, and the RAM is cleared; a second storage unit EE2 is configured to store the accumulated value Δpulse of the primary side pulses before the ratio is switched; the method comprises the following steps:

[0048] S1. Add voltage to the energy meter without adding current, reset the energy meter to zero, and read the total pulse value of the energy meter to be 0;

[0049] S2, communication sets the transformation ratio of the mutual inductance meter, applies current to the electric energy meter, obtains the secondary side pulse number Pulse1 of the mutual inductance meter, and stores it in the first storage unit EE1 and RAM;

[0050] S3, communication sets the transformation ratio value of the mutual inductance instrument to be different from the transformation ratio value set in step S2, that is, the transformation ratio is switched;

[0051] The secondary side pulse number under the current transformation ratio is used as the data before the transformation ratio switching, converted into the primary side pulse accumulation value Δpulse, and stored in the second storage unit EE2; specifically:

[0052] Obtain the current transformer ratio CT1 and voltage transformer ratio PT1 before switching of the communication setting; obtain the secondary side pulse number Pulse1 stored in the first storage unit EE1 and RAM; use the following formula to convert the secondary side pulse number Pulse1 into the primary side pulse accumulation value Δpulse, and store it in the second storage unit EE2; Δpuls=Pulse1×CT1×PT1.

[0053] S4, clearing the RAM and the first storage unit EE1, and recording the number of pulses according to the new transformation ratio;

[0054] The primary side pulse accumulation value Δpulse before the transformation ratio switching stored in the second storage unit is accumulated with the primary side pulse number obtained according to the transformation ratio conversion after the transformation ratio switching to obtain the primary measurement total pulse number Pulse_Total of the mutual inductance meter at the current moment:

[0055] Pulse_Total=Δpuls+Pulse2×CT2×PT2

[0056] Wherein, Pulse2 is the secondary side pulse number under the current transformation ratio stored in the RAM and the first storage unit EE1, and CT2 and PT2 are the transformation ratio values ​​of the mutual inductance instrument after switching respectively;

[0057] S5. Calculate the electric energy parameters of the mutual inductance meter according to the total number of pulses measured once. According to a preset electric energy calculation formula, use the total number of pulses measured once as an input parameter to calculate the electric energy parameters, wherein the electric energy parameters include at least one of the voltage, current, power, electric quantity or demand of the electric energy meter.

[0058] In this embodiment, each time the number of power pulses is read, the total pulses during the operation of the electric energy meter are composed of two parts, one is the primary side pulse accumulated value Δpulse stored in the second storage unit EE2, and the other is the current accumulated pulse number Pulse2 on the secondary side after switching. The total pulse on the primary side is calculated using the following formula to achieve a pulse number of a transformer type meter that switches along with the transformation ratio switching.

[0059] Pulse_Total=Pulse1×CT1×PT1+Pulse2×CT2×PT2.

[0060] In one example, the transformation ratio of the mutual inductance instrument includes a current transformer ratio CT1 and a voltage transformer ratio PT1. If there is only a single current transformer, the voltage transformer ratio adopts a default value, which is recorded as 1.

[0061] Example 2

[0062] An electronic device, comprising:

[0063] A memory storing executable instructions;

[0064] A processor runs the executable instructions in the memory to implement the pulse processing method after the mutual inductance instrument ratio is switched.

[0065] Example 3

[0066] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the pulse processing method after the ratio of a mutual inductance instrument is switched.

[0067] When implementing:

[0068] The present invention provides a method for processing pulses after the ratio of a mutual inductance instrument is switched, the method comprising the following steps:

[0069] S1. Apply voltage to the energy meter, and execute the meter power reset command through communication to ensure that the pulse storage units EE_Energy1, EE_Energy2 and the current secondary side pulse Sec_Side_Puls are reset. At this time, the total pulse read from the meter should be 0.

[0070] S2, communication sets the transformer ratio, here we take 1000:5 as an example;

[0071] S3, apply current, turn off the current after running for a period of time, and record the current secondary side pulse. Here, take 500 as an example. At this time, the total pulse read from the meter is 500*(1000 / 5)=500*200=100000;

[0072] S4, communication setting changes the ratio to 2000:5, at this time EE_Energy2 is updated from 0 to 100000, and the secondary side pulse Sec_Side_Pul of RAM and EE1 is cleared;

[0073] S5, apply current, turn off the current after running for a period of time, and record the current secondary side pulse, here take 500 as an example. At this time, the total pulse read from the meter is 100000+500*(2000 / 5)=300000.

[0074] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.

[0075] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.

Claims

1. A pulse processing method after the ratio of a mutual inductance instrument is switched, characterized in that: The transformer instrument is configured with a RAM and a first storage unit EE1, both of which are used to store the number of secondary side pulses under the current transformation ratio. When the pulses stored in the RAM reach a preset number, they are stored in the first storage unit EE1, and the RAM is cleared; The second storage unit EE2 is configured to store the primary side pulse accumulation value Δpulse before the transformation ratio is switched; the method comprises the following steps: S1. Add voltage to the energy meter without adding current, reset the energy meter to zero, and read the total pulse value of the energy meter to be 0; S2, communication sets the transformation ratio of the mutual inductance meter, applies current to the electric energy meter, obtains the secondary side pulse number Pulse1 of the mutual inductance meter, and stores it in the first storage unit EE1 and RAM; S3, communication sets the transformation ratio value of the mutual inductance instrument to be different from the transformation ratio value set in step S2, that is, the transformation ratio is switched; The secondary side pulse number under the current transformation ratio is used as the data before the transformation ratio switching, converted into the primary side pulse accumulation value Δpulse, and stored in the second storage unit EE2; S4, clearing the RAM and the first storage unit EE1, and recording the number of pulses according to the new transformation ratio; Accumulate the primary side pulse accumulation value Δpulse before the transformation ratio switching stored in the second storage unit and the primary side pulse number obtained according to the transformation ratio conversion after the transformation ratio switching to obtain the primary measurement total pulse number of the mutual inductance meter at the current moment; S5. Calculate the electric energy parameters of the mutual inductance meter according to the total number of pulses measured once.

2. The pulse processing method after the mutual inductance instrument ratio switching according to claim 1 is characterized in that In S2, the secondary side pulse number Pulse1 of the mutual inductance instrument is obtained, including: Acquire the secondary side current or voltage signal of the mutual inductance instrument through a pulse acquisition circuit; Filtering the secondary side current or voltage signal to obtain a pulse signal; The secondary side pulse number of the mutual inductance instrument is determined according to the pulse signal.

3. The pulse processing method after the mutual inductance instrument ratio switching according to claim 1 is characterized in that: The transformation ratio of the mutual inductance instrument includes the current transformer ratio CT1 and the voltage transformer ratio PT1. If there is only a single current transformer, the voltage transformer ratio adopts the default value, which is recorded as 1.

4. The pulse processing method after the mutual inductance instrument ratio switching according to claim 1 is characterized in that: The secondary side pulse number under the current transformation ratio is used as the data before the transformation ratio switching, converted into the primary side pulse accumulation value Δpulse, and stored in the second storage unit EE2, including: Get the current transformer ratio CT1 and voltage transformer ratio PT1 before switching set by communication; Obtain the secondary side pulse number Pulse1 stored in the first storage unit EE1 and the RAM; The secondary side pulse number Pulse1 is converted into the primary side pulse accumulation value Δpulse using the following formula and stored in the second storage unit EE2; Δpuls=Pulse1×CT1×PT1.

5. The pulse processing method after the mutual inductance instrument ratio switching according to claim 1 is characterized in that: The step of accumulating the number of primary-side pulses stored in the second storage unit and the number of primary-side pulses obtained by transformation according to the transformation ratio after the transformation ratio switching comprises: Acquire the primary side pulse accumulation value Δpulse stored in the second storage unit EE2; Obtain the primary side pulse number obtained by conversion according to the switched transformation ratio; The primary side pulse accumulation value Δpulse before the transformation ratio switching and the primary side pulse number after the transformation ratio switching are accumulated to obtain the total pulse number of the mutual inductance instrument at the current moment.

6. The pulse processing method after the mutual inductance instrument ratio switching according to claim 5 is characterized in that: The total number of pulses Pulse_Total of the mutual inductance instrument at the current moment is: Pulse_Total=Δpuls+Pulse2×CT2×PT2 Among them, Pulse2 is the secondary side pulse number under the current transformation ratio stored in the RAM and the first storage unit EE1, and CT2 and PT2 are the transformation ratio values ​​of the mutual inductance instrument after switching.

7. The pulse processing method after the mutual inductance instrument ratio switching according to claim 1 is characterized in that: Calculating the electric energy parameters of the mutual inductance meter according to the total pulse number of the primary measurement includes: According to a preset electric energy calculation formula, the total number of pulses measured once is used as an input parameter to calculate electric energy parameters, wherein the electric energy parameters include at least one of the voltage, current, power, electric quantity or demand of the electric energy meter.

8. An electronic device, characterized in that: The electronic device comprises: A memory storing executable instructions; A processor, wherein the processor runs the executable instructions in the memory to implement the pulse processing method after the transformation ratio of the mutual inductance instrument is switched according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the pulse processing method after the ratio switching of the mutual inductance instrument described in any one of claims 1 to 7 is implemented.