Voltage influence compensation method, device and storage medium

Through voltage range compensation technology, the problem of insufficient metering accuracy at non-rated voltages is solved, reducing dependence on high-spec chips and reducing costs.

CN111157788BActive Publication Date: 2024-12-31WASION GROUP HLDG
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202010007948.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-03
Publication Date
2024-12-31
Estimated Expiration
2040-01-03

AI Technical Summary

Technical Problem

The metering accuracy of existing power meters cannot meet the requirements under non-rated voltage, resulting in the need to use high-specification metering chips, which increases costs.

Method used

By obtaining the sampling voltage and current of the power grid, calculating the sampling power, and obtaining the compensation value according to the voltage range to compensate the power, reducing errors and avoiding the use of high-spec chips.

Benefits of technology

The measurement accuracy under non-rated voltage conditions is achieved to meet the requirements and reduce the cost of the power meter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111157788B_ABST
    Figure CN111157788B_ABST
Patent Text Reader

Abstract

The present invention discloses a voltage influence compensation method, device and storage medium. The present invention obtains the sampled voltage and sampled current of the power grid, and calculates the sampled electric quantity according to the sampled voltage and the sampled current; obtains the compensation value according to the sampled voltage; and compensates the sampled electric quantity according to the compensation value to obtain the actual electric quantity. Among them, the compensation data is adjusted by judging the voltage range, which reduces the error caused by the voltage influence, meets the metering accuracy of the electric energy meter, and does not need to use a high-specification metering chip of the corresponding level of the accuracy standard, thereby reducing the cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric energy metering, and in particular to a voltage influence amount compensation method, device and storage medium. Background Art

[0002] At present, most of the electric energy meters used by users at home and abroad are electronic electric energy meters. The general types of electronic electric energy meters are: active level 1, active level 2 and even active level 0.5 with higher accuracy levels meeting IEC62053-11, IEC62053-21, and IEC62053-22 standards. In order to meet the accuracy requirements and measurement standards, electric energy meters are usually composed of high-quality external sampling components and high-precision chips and other devices.

[0003] At present, some manufacturers have launched SOC solutions formed by MCU with metering, which can meet the accuracy level 1 standard and the basic point accuracy standard of 0.5 at the rated voltage point. However, when the voltage is not the rated voltage, such as 0.9 times or 1.1 times the rated voltage, the metering accuracy cannot meet the requirements. Therefore, the electric energy meter usually selects high-specification metering chips of the corresponding level according to the specific metering accuracy standard requirements, which makes the cost higher. Summary of the invention

[0004] The main purpose of the present invention is to provide a voltage influence compensation method, device and storage medium, aiming to solve the technical problem in the prior art that high-specification metering chips of corresponding levels need to be selected according to metering accuracy standards, resulting in high costs.

[0005] To achieve the above object, the present invention provides a voltage influence amount compensation method, the method comprising the following steps:

[0006] Obtaining a sampled voltage and a sampled current of the power grid, and calculating a sampled electrical quantity based on the sampled voltage and the sampled current;

[0007] Acquire a compensation value according to the sampled voltage;

[0008] The sampled electric quantity is compensated according to the compensation value to obtain the actual electric quantity.

[0009] Preferably, the step of obtaining a compensation value according to the sampled voltage comprises:

[0010] Obtaining a voltage range mark according to the sampled voltage;

[0011] A compensation value is obtained according to the voltage range flag.

[0012] Preferably, the step of obtaining a voltage range mark according to the sampled voltage comprises:

[0013] Determining whether the sampled voltage is within a preset voltage range;

[0014] When the sampled voltage is within the preset voltage range, obtaining a preset flag corresponding to the preset voltage range according to a preset mapping table;

[0015] The preset mark is used as the voltage range mark.

[0016] Preferably, before the step of obtaining the sampled voltage and sampled current of the power grid, the method further includes:

[0017] Setting a plurality of preset voltage ranges according to a preset rated voltage;

[0018] Set a preset flag corresponding to each preset voltage range;

[0019] A preset mapping table is established according to each preset voltage range and a preset flag corresponding to each preset voltage range.

[0020] Preferably, before the step of acquiring the compensation value according to the voltage range mark, the method further includes:

[0021] Obtaining a voltage multiplier according to the sampled voltage and the preset rated voltage;

[0022] Acquire the maximum voltage and the maximum current of the power grid, and obtain a compensation base according to the maximum voltage and the maximum current;

[0023] A compensation value is obtained according to the voltage multiplier and the compensation base.

[0024] Preferably, after the step of determining whether the sampled voltage is within a preset voltage range, the method further comprises:

[0025] When the sampled voltage is within the preset voltage range, detecting whether the preset voltage range is consistent with a previous voltage range within the same accumulation period;

[0026] When the preset voltage range is consistent with the previous voltage range, obtaining a previous compensation value;

[0027] Compensating the sampled power according to the previous compensation value to obtain actual power;

[0028] When the preset voltage range is inconsistent with the previous voltage range, the step of obtaining the preset flag corresponding to the preset voltage range according to the preset mapping table is performed.

[0029] Preferably, the compensation base is obtained according to the maximum voltage and the maximum current by the following formula:

[0030]

[0031] Among them, VMAX is the maximum voltage, IMAX is the maximum current, ln_8 is the gain constant of the current channel, and LSB is the compensation base.

[0032] Preferably, the step of acquiring the compensation value according to the voltage range mark includes:

[0033] The first compensation value and / or the second compensation value are correspondingly read from the first register and / or the second register according to the voltage range mark.

[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a voltage influence compensation device, which includes: a memory, a processor, and a voltage influence compensation program stored in the memory and executable on the processor, and the voltage influence compensation program is configured to implement the steps of the voltage influence compensation method.

[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a storage medium, on which a voltage influence compensation program is stored, and when the voltage influence compensation program is executed by a processor, the steps of the voltage influence compensation method are implemented.

[0036] The present invention obtains the sampled voltage and sampled current of the power grid, calculates the sampled electric quantity according to the sampled voltage and the sampled current; obtains the compensation value according to the sampled voltage; compensates the sampled electric quantity according to the compensation value to obtain the actual electric quantity. The compensation data is adjusted by judging the voltage range, which reduces the error caused by the voltage influence, satisfies the metering accuracy of the electric energy meter, eliminates the need to use a high-specification metering chip corresponding to the accuracy standard, and reduces the cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a schematic diagram of the structure of a voltage influence compensation device in a hardware operating environment involved in an embodiment of the present invention;

[0038] Figure 2 It is a flow chart of an embodiment of a method for compensating voltage influence amount of the present invention;

[0039] Figure 3 FIG. 4 is a flow chart of another embodiment of the voltage influence compensation method of the present invention.

[0040] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0042] Reference Figure 1 , Figure 1 It is a schematic diagram of the structure of a voltage influence compensation device in a hardware operating environment involved in an embodiment of the present invention.

[0043] like Figure 1 As shown, the voltage influence compensation device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0044] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the voltage influence compensation device, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0045] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a voltage influence compensation program.

[0046] exist Figure 1 In the voltage influence compensation device shown, the network interface 1004 is mainly used for data communication with an external network; the user interface 1003 is mainly used for receiving user input instructions; the voltage influence compensation device calls the voltage influence compensation program stored in the memory 1005 through the processor 1001, and performs the following operations:

[0047] Obtaining a sampled voltage and a sampled current of the power grid, and calculating a sampled electrical quantity based on the sampled voltage and the sampled current;

[0048] Acquire a compensation value according to the sampled voltage;

[0049] The sampled electric quantity is compensated according to the compensation value to obtain the actual electric quantity.

[0050] Further, the processor 1001 may call the voltage influence compensation program stored in the memory 1005, and further perform the following operations:

[0051] Obtaining a voltage range mark according to the sampled voltage;

[0052] A compensation value is obtained according to the voltage range flag.

[0053] Further, the processor 1001 may call the voltage influence compensation program stored in the memory 1005, and further perform the following operations:

[0054] Determining whether the sampled voltage is within a preset voltage range;

[0055] When the sampled voltage is within the preset voltage range, obtaining a preset flag corresponding to the preset voltage range according to a preset mapping table;

[0056] The preset mark is used as the voltage range mark.

[0057] Further, the processor 1001 may call the voltage influence compensation program stored in the memory 1005, and further perform the following operations:

[0058] Setting a plurality of preset voltage ranges according to a preset rated voltage;

[0059] Set a preset flag corresponding to each preset voltage range;

[0060] A preset mapping table is established according to each preset voltage range and a preset flag corresponding to each preset voltage range.

[0061] Further, the processor 1001 may call the voltage influence compensation program stored in the memory 1005, and further perform the following operations:

[0062] Obtaining a voltage multiplier according to the sampled voltage and the preset rated voltage;

[0063] Acquire the maximum voltage and the maximum current of the power grid, and obtain a compensation base according to the maximum voltage and the maximum current;

[0064] A compensation value is obtained according to the voltage multiplier and the compensation base.

[0065] Further, the processor 1001 may call the voltage influence compensation program stored in the memory 1005, and further perform the following operations:

[0066] When the sampled voltage is within the preset voltage range, detecting whether the preset voltage range is consistent with a previous voltage range within the same accumulation period;

[0067] When the preset voltage range is consistent with the previous voltage range, obtaining a previous compensation value;

[0068] Compensating the sampled power according to the previous compensation value to obtain actual power;

[0069] When the preset voltage range is inconsistent with the previous voltage range, the step of obtaining a preset flag corresponding to the preset voltage range according to a preset mapping table is performed.

[0070] Further, the processor 1001 may call the voltage influence compensation program stored in the memory 1005, and further perform the following operations:

[0071] The first compensation value and / or the second compensation value are correspondingly read from the first register and / or the second register according to the voltage range mark.

[0072] This embodiment obtains the sampled voltage and sampled current of the power grid, calculates the sampled electricity according to the sampled voltage and the sampled current, obtains the compensation value according to the sampled voltage, and compensates the sampled electricity according to the compensation value to obtain the actual electricity. The compensation data is adjusted by judging the voltage range, which reduces the error caused by the voltage influence, meets the metering accuracy of the electric energy meter, and does not need to use a high-specification metering chip of the corresponding level of the accuracy standard, thereby reducing the cost.

[0073] Based on the above hardware structure, an embodiment of a voltage influence amount compensation method of the present invention is proposed.

[0074] Reference Figure 2 , Figure 2 FIG. 4 is a flow chart of an embodiment of a voltage influence compensation method according to the present invention.

[0075] In one embodiment, the voltage influence compensation method comprises the following steps:

[0076] S10: Obtaining a sampled voltage and a sampled current of the power grid, and calculating a sampled electric quantity according to the sampled voltage and the sampled current;

[0077] It can be understood that obtaining the sampling voltage and sampling current of the power grid can be accomplished through the SOC chip integrated in the electric energy meter. Specifically, it is accomplished using the A / D sampling module in the SOC chip. The signal input from the power grid is sampled in real time through the A / D sampling module to obtain the sampling voltage and sampling current.

[0078] After obtaining the sampled voltage and sampled current, the electric energy metering unit in the SOC chip processes the sampled data. Usually, various electric energy data, such as the sampled power, are calculated after an accumulation period (generally set to 0.5s or 1s, etc.). Finally, an interrupt signal is sent to the microcontroller unit in the SOC chip to enable the microcontroller unit to determine that the current electric energy data has been updated, compensate the electric energy data, and further perform subsequent management such as accumulation, storage, display, and communication of the compensated electric energy data.

[0079] S20: Obtaining a compensation value according to the sampled voltage;

[0080] As an embodiment, step S20 includes the following steps:

[0081] S21: Obtaining a voltage range mark according to the sampled voltage;

[0082] S22: Obtain a compensation value according to the voltage range mark.

[0083] Specifically, it is determined whether the sampled voltage is within a preset voltage range; when the sampled voltage is within the preset voltage range, a preset flag corresponding to the preset voltage range is obtained according to a preset mapping table; and the preset flag is used as the voltage range flag.

[0084] Of course, before all the steps, it is necessary to set multiple preset voltage ranges according to the preset rated voltage; set a preset mark corresponding to each preset voltage range; and establish a preset mapping table according to each preset voltage range and the preset mark corresponding to each preset voltage range.

[0085] It should be understood that the preset rated voltage refers to the preset rated voltage of the energy meter. The rated voltage of the one-way energy meter is usually 220V. Within the standard range of metering accuracy, the rated voltage can have an error of 0.5 levels of the rated voltage point. Therefore, when the sampling voltage is between 209V and 231V, the metering accuracy requirement is met. When the sampling voltage is within other ranges, its metering accuracy does not meet the requirements, which will cause an error between the power obtained by the energy meter and the actual power. In order to meet the metering accuracy requirements of the energy meter, this embodiment obtains different voltage ranges by segmenting the voltage. When the sampling voltage is within different voltage ranges, different compensation values ​​are used for compensation, which not only has higher accuracy, but also can meet the requirements of different customers and has good adaptability.

[0086] Taking the preset rated voltage of 220V as an example, the voltage range can be divided according to the preset rated voltage, such as 1.2 times or more is above 253V, 1.1 times is 232V to 253V, 1.0 times is 209V to 231V, 0.9 times is 187V to 208V, and 0.8 times is below 187V.

[0087] The voltage range above 253V is set to 1, the voltage range from 232V to 253V is set to 2, the voltage range from 209V to 231V is set to 3, the voltage range from 187V to 208V is set to 4, and the voltage range below 187V is set to 5, and each voltage range and the corresponding mark are stored in a preset mapping table. After the sampled voltage is obtained, it is determined which voltage range the sampled voltage is in, and the mark corresponding to the voltage range is found according to the preset mapping table, and it is used as the voltage range mark of the sampled voltage.

[0088] It should be noted that, when the sampled voltage is within the preset voltage range, it is detected whether the preset voltage range is consistent with the previous voltage range in the same accumulation period; when the preset voltage range is consistent with the previous voltage range, the previous compensation value is obtained; the sampled power is compensated according to the previous compensation value to obtain the actual power; when the preset voltage range is inconsistent with the previous voltage range, the step of obtaining the preset flag corresponding to the preset voltage range according to the preset mapping table is executed.

[0089] It should be understood that if the voltage range of the current sampled voltage does not change relative to the voltage range of the previous sampled voltage within the same accumulation period, in order to reduce storage and improve efficiency, there is no need to read the compensation value corresponding to the voltage range from the register again, but directly use the previous compensation value for compensation.

[0090] S30: reading a compensation value according to the voltage range mark;

[0091] It should be noted that the working principle of the SOC chip of the electric energy meter in the first embodiment is as follows:

[0092] Step 1: The SOC chip usually includes two pulse generators, which generate low-jitter pulse outputs at a rate set by the energy metering unit or microcontroller unit. The function is distinguished by the value of EXT_PULSE.

[0093] When EXT_PULSE = 1, the pulse output rate is controlled by APULSEW*WRATE (active pulse output) and APULSER*WRATE (reactive pulse output), which is called external pulse generation mode, that is, MPU output pulse. When EXT_PULSE = 0, APULSEW and APULSER are replaced by WSUM_X and VARSUM_X respectively, which is called internal pulse generation mode.

[0094] Select EXT_PULSE=1 external pulse generation mode, the pulse generator is controlled by the values ​​written into APULSEW and APULSER by the microcontroller unit, where APULSEW is the active pulse output register and APULSER is the reactive pulse output register. The data of these two registers are used to control the pulse output, and WRATE is used to control the number of pulses generated per unit of electrical energy.

[0095] Step 2: By setting the control bit DIO_PV / DIO_PW of the IO register to 1, WPULSE and VARPULSE can be connected to the DIO6 and DIO7 pins respectively to detect the precision pulse.

[0096] Step 3: The QUANTA register, i.e., the first register, is set at the address 0x13 of the energy metering unit to store the compensation value. This parameter is added to the calculation of the active energy of channel A to compensate for input noise and rounding errors. The QUANTB register, i.e., the second register, is set at the address 0x18 of the energy metering unit to store the compensation value. This parameter is added to the calculation of the active energy of channel B to compensate for input noise and rounding errors.

[0097] It should be understood that when the electric energy meter is a single-circuit electric energy meter, it only needs to obtain the compensation value from one channel, that is, read the first compensation value or the second compensation value from 0x13 or 0x18 according to the voltage range mark, and when the electric energy meter is a dual-circuit electric energy meter, it needs to obtain the compensation value from two channels, that is, read the first compensation value and the second compensation value from 0x13 and 0x18 according to the voltage range mark. Among them, the first compensation value and the second compensation value can be obtained after continuous debugging during the use of standard test equipment, or can be obtained by calculation according to different voltage values ​​and formulas.

[0098] Step 4: When the energy meter is powered on and operates normally, the energy metering unit stores the sampled voltage, sampled current and calculated sampled electricity into various registers through the internal program, and sends out precision pulses according to the preset pulse constant. The microcontroller unit can read the data in the energy metering unit and divide it into segments according to the sampled voltage. Different sampling voltages use different precision compensation values, which are written into the QUANTA register and / or QUANTB register to adjust the precision.

[0099] The accuracy compensation code formed in this process is as follows:

[0100]

[0101]

[0102]

[0103]

[0104]

[0105] S40: Compensating the sampled power according to the compensation value to obtain actual power.

[0106] It should be understood that after compensating the sampled electrical quantity according to the above solution, the microcontroller unit can obtain accurate actual electrical quantity, and display and process the electrical quantity.

[0107] This embodiment obtains the sampled voltage and sampled current of the power grid, calculates the sampled electricity according to the sampled voltage and the sampled current, obtains the compensation value according to the sampled voltage, and compensates the sampled electricity according to the compensation value to obtain the actual electricity. The compensation data is adjusted by judging the voltage range, which reduces the error caused by the voltage influence, meets the metering accuracy of the electric energy meter, and does not need to use a high-specification metering chip of the corresponding level of the accuracy standard, thereby reducing the cost.

[0108] Furthermore, if Figure 3 As shown, another embodiment of the voltage influence amount compensation method of the present invention is proposed based on an embodiment. In this embodiment, before step S22, the method further includes the following steps:

[0109] S50: Obtaining a voltage multiplier according to the sampled voltage and the preset rated voltage;

[0110] It should be understood that the voltage multiplier refers to the multiple of the sampled voltage relative to the preset rated voltage. Taking the preset rated voltage as 220V as an example, when the sampled voltage is above 253V, the voltage multiplier is 1.2, when the sampled voltage is between 232V and 253V, the voltage multiplier is 1.1, when the sampled voltage is between 209V and 231V, the voltage multiplier is 1.0, when the sampled voltage is between 187V and 208V, the voltage multiplier is 0.9, and when the sampled voltage is below 187V, the voltage multiplier is 0.8.

[0111] S60: Acquire a maximum voltage and a maximum current of the power grid, and obtain a compensation base according to the maximum voltage and the maximum current;

[0112] It should be noted that the maximum voltage refers to the maximum voltage value input to the SOC chip, and the maximum current refers to the maximum current value input to the SOC chip. The compensation base is obtained according to the maximum voltage and the maximum current through the following formula:

[0113]

[0114] Among them, VMAX is the maximum voltage, IMAX is the maximum current, ln_8 is the gain constant of the current channel, and LSB is the compensation base.

[0115] S70: Obtaining a compensation value according to the voltage multiplier and the compensation base.

[0116] As an embodiment, the quotient of the voltage multiplier and the compensation base may be calculated, and the quotient value may be used as the compensation value to compensate the sampled electrical quantity.

[0117] In this embodiment, a voltage multiplier is obtained according to the sampled voltage and the preset rated voltage; the maximum voltage and the maximum current of the power grid are obtained, and a compensation base is obtained according to the maximum voltage and the maximum current; and a compensation value is obtained according to the voltage multiplier and the compensation base. Different compensation values ​​are obtained according to the relationship between the sampled voltage and the preset rated voltage, thereby improving compensation accuracy.

[0118] In addition, an embodiment of the present invention further provides a storage medium, on which a voltage influence compensation program is stored. When the voltage influence compensation program is executed by a processor, the following operations are implemented:

[0119] Obtaining a sampled voltage and a sampled current of the power grid, and calculating a sampled electrical quantity based on the sampled voltage and the sampled current;

[0120] Acquire a compensation value according to the sampled voltage;

[0121] The sampled electric quantity is compensated according to the compensation value to obtain the actual electric quantity.

[0122] Furthermore, when the voltage influence compensation program is executed by the processor, the following operations are also implemented:

[0123] Obtaining a voltage range mark according to the sampled voltage;

[0124] A compensation value is obtained according to the voltage range flag.

[0125] Furthermore, when the voltage influence compensation program is executed by the processor, the following operations are also implemented:

[0126] Determining whether the sampled voltage is within a preset voltage range;

[0127] When the sampled voltage is within the preset voltage range, obtaining a preset flag corresponding to the preset voltage range according to a preset mapping table;

[0128] The preset mark is used as the voltage range mark.

[0129] Furthermore, when the voltage influence compensation program is executed by the processor, the following operations are also implemented:

[0130] Setting a plurality of preset voltage ranges according to a preset rated voltage;

[0131] Set a preset flag corresponding to each preset voltage range;

[0132] A preset mapping table is established according to each preset voltage range and a preset flag corresponding to each preset voltage range.

[0133] Furthermore, when the voltage influence compensation program is executed by the processor, the following operations are also implemented:

[0134] Obtaining a voltage multiplier according to the sampled voltage and the preset rated voltage;

[0135] Acquire the maximum voltage and the maximum current of the power grid, and obtain a compensation base according to the maximum voltage and the maximum current;

[0136] A compensation value is obtained according to the voltage multiplier and the compensation base.

[0137] Furthermore, when the voltage influence compensation program is executed by the processor, the following operations are also implemented:

[0138] When the sampled voltage is within the preset voltage range, detecting whether the preset voltage range is consistent with a previous voltage range within the same accumulation period;

[0139] When the preset voltage range is consistent with the previous voltage range, obtaining a previous compensation value;

[0140] Compensating the sampled power according to the previous compensation value to obtain actual power;

[0141] When the preset voltage range is inconsistent with the previous voltage range, the step of obtaining a preset flag corresponding to the preset voltage range according to a preset mapping table is performed.

[0142] Furthermore, when the voltage influence compensation program is executed by the processor, the following operations are also implemented:

[0143] The first compensation value and / or the second compensation value are correspondingly read from the first register and / or the second register according to the voltage range mark.

[0144] The specific embodiments of the computer-readable storage medium of the present invention are substantially the same as the embodiments of the voltage influence amount compensation method described above, and are not described in detail herein.

[0145] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or system including the element.

[0146] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0147] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0148] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A voltage influence compensation method, characterized in that: Applied to an electric energy meter, the voltage influence compensation method comprises the following steps: Obtaining a sampled voltage and a sampled current of the power grid, and calculating a sampled electrical quantity based on the sampled voltage and the sampled current; Determining whether the sampled voltage is within a preset voltage range; When the sampled voltage is within the preset voltage range, obtaining a preset flag corresponding to the preset voltage range according to a preset mapping table; Using the preset mark as a voltage range mark; Acquire a compensation value according to the voltage range mark; Compensating the sampled electric quantity according to the compensation value to obtain actual electric quantity; Wherein, after the step of determining whether the sampled voltage is within a preset voltage range, the method further includes: When the sampled voltage is within the preset voltage range, detecting whether the preset voltage range is consistent with a previous voltage range within the same accumulation period; When the preset voltage range is consistent with the previous voltage range, obtaining a previous compensation value; Compensating the sampled power according to the previous compensation value to obtain actual power; When the preset voltage range is inconsistent with the previous voltage range, performing the step of obtaining a preset flag corresponding to the preset voltage range according to a preset mapping table; Among them, the compensation base is obtained by the following formula according to the maximum voltage and maximum current: ; Among them, VMAX is the maximum voltage, IMAX is the maximum current, ln_8 is the gain constant of the current channel, and LSB is the compensation base.

2. The voltage influence compensation method according to claim 1, characterized in that: Before the step of obtaining the sampled voltage and sampled current of the power grid, the method further includes: Setting a plurality of preset voltage ranges according to a preset rated voltage; Set a preset flag corresponding to each preset voltage range; A preset mapping table is established according to each preset voltage range and a preset flag corresponding to each preset voltage range.

3. The voltage influence compensation method according to claim 2, characterized in that: Before the step of acquiring the compensation value according to the voltage range mark, the method further includes: Obtaining a voltage multiplier according to the sampled voltage and the preset rated voltage; Acquire the maximum voltage and the maximum current of the power grid, and obtain a compensation base according to the maximum voltage and the maximum current; A compensation value is obtained according to the voltage multiplier and the compensation base.

4. The voltage influence amount compensation method according to any one of claims 2 to 3, characterized in that: The step of obtaining a compensation value according to the voltage range mark comprises: The first compensation value and / or the second compensation value are correspondingly read from the first register and / or the second register according to the voltage range mark.

5. A voltage influence compensation device, characterized in that: The voltage influence compensation device comprises: a memory, a processor and a voltage influence compensation program stored in the memory and executable on the processor, wherein the voltage influence compensation program is configured to implement the steps of the voltage influence compensation method according to any one of claims 1 to 4.

6. A storage medium, characterized in that: The storage medium stores a voltage influence compensation program, and when the voltage influence compensation program is executed by the processor, the steps of the voltage influence compensation method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Micro control unit (MCU) built-in reference temperature compensation method based on system on chip (SOC) electric meter

    CN102662107A

  • Reactive electric energy metering method for new energy power station

    CN105223395A

  • Self-adaptive compensation method of single-phase electric energy meter voltage change influence quantity

    CN105652056A

  • Electric energy meter correcting method

    CN108594160A

  • High-precision metering circuit of three-phase intelligent watt-hour meter for State Grid

    CN202305663U