Electric quantity display method, electronic equipment, storage medium and program product

By setting the power stack in the energy storage inverter to control the carry rhythm, the problem of unbalanced input power and output power of the energy storage inverter inverter is solved, and synchronous carry is achieved, improving user experience and optimizing the memory usage of the MCU.

CN119595990APending Publication Date: 2025-03-11YINENG DIGITAL ENERGY TECH (ZHEJIANG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411766907.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

During the operation of the energy storage inverter, due to the different power growth rates, the input power and output power are sensoryly unbalanced in the carry display.

Method used

By setting the power stack, the carry rhythm is controlled to ensure that the input power and output power of the energy storage inverter are carried simultaneously. The specific method includes determining the power stack corresponding to the power data, generating a carry flag, and performing synchronous carry processing when there is a corresponding flag on the opposite side's power stack.

Benefits of technology

The balanced carry display of the input power and output power of the energy storage inverter is realized, which improves the user experience, solves the problem of inconsistent carry, and reduces the use of the MCU.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119595990A_ABST
    Figure CN119595990A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an electric quantity display method, electronic equipment, a storage medium and a program product. The method comprises the following steps: determining electric quantity data of an energy storage inverter; generating a first carry flag under the condition that the electric quantity data meets the corresponding carry standard; determining a first electric quantity stack corresponding to the electric quantity data, and storing the first carry flag into the corresponding first electric quantity stack; whether a second carry flag exists in a second electric quantity stack corresponding to the first electric quantity stack or not is judged, if yes, the first carry flag and the second carry flag are subjected to out-of-stack processing at the same time, and carry is conducted on input electric quantity and output electric quantity of the energy storage inverter at the same time; and determining a corresponding electric quantity display value based on the input electric quantity and the output electric quantity after carrying, and carrying out carrying display on the corresponding electric quantity display value. By controlling the electric quantity carry rhythm, the input electric quantity and the output electric quantity of the inverter can carry synchronously, and the problem that the input electric quantity and the output electric quantity are unbalanced in display in the working process of the inverter is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a power display technology for an energy storage inverter, and in particular to a power display method, electronic equipment, storage medium and program product. Background Art

[0002] During the use of the energy storage inverter, the power settlement function allows users to clearly know the benefits of installing the energy storage system. However, since the values ​​of each power of the inverter are constantly changing during operation, the growth rate of the power data accumulated by each power will also be different, so the power with a fast growth rate has increased and carried, while some with a slow growth rate have not increased to the point where they can carry, which will cause a perceptual imbalance between the power input to the inverter and the power output from the inverter.

[0003] The commonly used power balancing method is to use some special carry methods, which mainly target the power parameters themselves, but do not consider the overall situation, making the carry timing inconsistent.

[0004] In the prior art, a method is often used to increase the display accuracy so that the problem of unbalanced carry display is not so obvious, and then it can be ignored. However, this will make the power data particularly lengthy and inconvenient to view, and there will still be the problem of inconsistent power carry. At the same time, it will also greatly consume the memory used by the inverter's micro-controller unit (hereinafter referred to as "MCU"). Summary of the invention

[0005] The embodiments of the present application provide a power display method, electronic device, storage medium and program product to solve the problem of sensory imbalance between the input power and output power of the inverter due to different power growth rates during the operation of the energy storage inverter.

[0006] In a first aspect, an embodiment of the present application provides a method for displaying electric quantity, which is applied to an energy storage inverter. The method includes:

[0007] Determining power data of the energy storage inverter, where the power data is used to indicate input power or output power of the energy storage inverter;

[0008] When the electric quantity data meets the corresponding carry standard, a first carry flag is generated, wherein the carry flag is used to indicate that the electric quantity data needs to be carried during the measurement process;

[0009] Determine a first power stack corresponding to the power data, and store the first carry flag in the corresponding first power stack, wherein the power stack is used to store the carry flag of the corresponding energy storage inverter port power;

[0010] Determine whether there is a second carry flag in the second power stack corresponding to the first power stack, and if so, pop the first carry flag and the second carry flag simultaneously, and carry the input power and output power of the energy storage inverter simultaneously;

[0011] Based on the input power and output power after the carry, the corresponding power display value is determined and displayed.

[0012] An embodiment of the present application provides a method for displaying electric quantity, which controls the carry rhythm by setting an electric quantity stack so that the input electric quantity and the output electric quantity of the energy storage inverter can keep carrying synchronously, thereby achieving a balance in the carry display of electric quantity, greatly improving the user experience of the energy storage inverter, and solving the problem of the sensory imbalance of the input electric quantity and the output electric quantity of the energy storage inverter in the carry display due to the different power growth rates during the operation of the energy storage inverter.

[0013] In a possible implementation manner, the power stack includes: an input power stack and an output power stack. Before determining the power data of the energy storage inverter, the method further includes:

[0014] Initialize the input power stack and the output power stack;

[0015] Determine configuration information according to the carry standard of the input power and the output power, wherein the configuration information is used to indicate that a corresponding carry flag is generated when the corresponding power data meets the carry standard;

[0016] Based on the configuration information, configuration processing is performed on the input power stack and the output power stack.

[0017] In a possible implementation manner, determining the first power stack corresponding to the power data includes:

[0018] If the power data is input power, the first power stack is the input power stack, and the second power stack is the output power stack;

[0019] If the power data is output power, the first power stack is an output power stack, and the second power stack is an input power stack.

[0020] In a possible implementation, the energy storage inverter includes: at least one input port and at least one output port, and the method for determining the power data of the energy storage inverter includes:

[0021] Determine the input power of at least one of the input ports, and determine the input power of the energy storage inverter based on the input power;

[0022] Alternatively, the output power of at least one output port is determined, and based on the output power, the output power of the energy storage inverter is determined.

[0023] In a possible implementation, the method further includes:

[0024] Based on the input power and the output power, determining a loss parameter of the energy storage inverter, the loss parameter being a data difference value obtained by subtracting the output power from the input power;

[0025] When the loss parameter is a negative number, it is determined that the energy storage inverter is in an abnormal working state, and an abnormal warning is fed back.

[0026] In a second aspect, an embodiment of the present application provides a power display device, including:

[0027] A determination module determines power data of the energy storage inverter, where the power data is used to indicate input power or output power of the energy storage inverter;

[0028] A generating module, configured to generate a first carry flag when the electric quantity data meets a corresponding carry standard, wherein the carry flag is used to indicate that the electric quantity data needs to be carried during the measurement process;

[0029] The determination module is further used to determine a first power stack corresponding to the power data, and store the first carry flag in the corresponding first power stack, wherein the power stack is used to store the carry flag of the corresponding energy storage inverter port power;

[0030] A judging module, used for judging whether a second carry flag exists in a second power stack corresponding to the first power stack, and if so, popping the first carry flag and the second carry flag simultaneously, and simultaneously carrying the input power and the output power of the energy storage inverter;

[0031] The display module is used to determine the corresponding power display value based on the input power and output power after the carry, and display it in a carry manner.

[0032] In a possible implementation, the device further includes: a processing module;

[0033] The processing module is used to initialize the input power stack and the output power stack;

[0034] The determination module determines configuration information according to the carry standard of the input power and the output power, wherein the configuration information is used to indicate that a corresponding carry flag is generated when the corresponding power data meets the carry standard;

[0035] The processing module is further used to perform configuration processing on the input power stack and the output power stack based on the configuration information;

[0036] The first electricity quantity stack is the input electricity quantity stack, and the second electricity quantity stack is the output electricity quantity stack; or the first electricity quantity stack is the output electricity quantity stack, and the second electricity quantity stack is the input electricity quantity stack.

[0037] In a possible implementation manner, the determination module is further used to determine the input power of at least one of the input ports, and determine the input power of the energy storage inverter based on the input power;

[0038] Alternatively, the determination module is further used to determine the output power of at least one output port, and based on the output power, determine the output power of the energy storage inverter.

[0039] In a third aspect, an embodiment of the present application provides an energy storage inverter, comprising: at least one input port, at least one output port, a memory, and a processor;

[0040] The at least one input port is used to receive input power;

[0041] The at least one output port is used to output electric quantity;

[0042] The memory stores computer-executable instructions;

[0043] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the first aspect and / or various possible implementations of the first aspect as described above;

[0044] In a possible implementation, the energy storage inverter is used in a photovoltaic storage system; the input power includes one or more of the power purchased from the power grid, the battery discharge, and the power generated by the photovoltaic array; the output power includes one or more of the load power consumption, the battery charge, and the power sold from the power grid.

[0045] In a possible implementation manner, the power grid feeding amount and the power grid receiving amount are obtained by interacting with an electric meter;

[0046] The battery discharge capacity and the battery charge capacity are calculated at least by the electrical signal on the battery side;

[0047] The photovoltaic array power generation is calculated by at least monitoring the output electrical parameters of the photovoltaic panels;

[0048] The load power consumption is at least obtained through power balance calculation.

[0049] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0050] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0051] The embodiments of the present application provide a method for displaying electric quantity, an electronic device, a storage medium, and a program product. The method comprises: determining electric quantity data of an energy storage inverter, the electric quantity data being used to indicate the input electric quantity or the output electric quantity of the energy storage inverter; generating a first carry flag when the electric quantity data meets the corresponding carry standard, the carry flag being used to indicate that the electric quantity data needs to be carried during the metering process; determining a first electric quantity stack corresponding to the electric quantity data, and storing the first carry flag in the corresponding first electric quantity stack, wherein the electric quantity stack is used to store the carry flag of the electric quantity of the corresponding energy storage inverter port; judging whether a second carry flag exists in a second electric quantity stack corresponding to the first electric quantity stack, and if so, popping the first carry flag and the second carry flag simultaneously, and carrying the input electric quantity and the output electric quantity of the energy storage inverter simultaneously; determining the corresponding electric quantity display value based on the input electric quantity and the output electric quantity after the carry, and displaying the carry value for the electric quantity. By setting the power stack and controlling the carry rhythm, the input power and output power of the energy storage inverter can be carried forward synchronously, thereby achieving a balance in power settlement. This greatly improves the user experience of the energy storage inverter and solves the problem of sensory imbalance between the input power and output power of the energy storage inverter due to different power growth rates during the operation of the energy storage inverter. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0053] Figure 1 A schematic diagram of a power display method provided in this application;

[0054] Figure 2 A schematic diagram of a power display method provided in this application Figure 1 ;

[0055] Figure 3 A schematic diagram of a power display method provided in this application Figure 2 ;

[0056] Figure 4A schematic diagram of the structure of a power display device provided in this application;

[0057] Figure 5 A schematic diagram of the structure of a power display device provided in this application.

[0058] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0059] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0060] The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein, for example.

[0061] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0062] First, the terms involved in this application are explained:

[0063] Energy storage inverter (PCS): It is a key device in the energy storage system, which is mainly responsible for controlling the charging and discharging process of the battery and performing AC-DC conversion. It can provide backup power when the power grid is unstable and ensure battery safety by communicating with the battery management system (BMS). The energy storage inverter has a bidirectional function, which can both charge and discharge. It can directly supply power to AC loads without a power grid, and realize the regulation of active and reactive power of the power grid. In the photovoltaic storage system, the energy storage inverter can also convert the solar energy acting on the photovoltaic array, specifically, convert it into the required electrical energy.

[0064] Working principle of energy storage inverter: It consists of DC / AC bidirectional converter, control unit, etc. The control unit receives control instructions and controls the converter to charge or discharge the battery according to the sign and size of the power instruction. At the same time, the energy storage inverter can communicate with the BMS through the CAN interface to obtain battery pack status information, realize protective charging and discharging of the battery, and ensure the safety of battery operation.

[0065] The electricity settlement function of the energy storage inverter refers to the statistics of electricity usage in the energy storage system through electricity metering and recording, and providing it to users or manufacturers to view the benefits brought by the photovoltaic storage system.

[0066] PV power generation: refers to the total amount of electrical energy generated by a photovoltaic array in a specific period of time. It can be calculated by measuring the power generation of a photovoltaic array in a specific period of time, usually in kilowatt-hours (kWh). PV power generation is an important indicator to measure the performance of a photovoltaic array, reflecting the power generation capacity of a photovoltaic array in an actual system.

[0067] Electricity carry: refers to the process of electricity measurement, when the electricity value reaches a certain value, a carry operation is required to represent a larger electricity value.

[0068] Figure 1 A schematic diagram of a power display method provided in this application, such as Figure 1 As shown, taking the photovoltaic storage system as an example, the interactive subjects in the specific application scenario of this application may include, for example: inverter 10, photovoltaic array 11, battery 12, load 13 and power grid 14, wherein the power generation power of the photovoltaic array 11, the charging and discharging power of the battery 12, the power consumed by the load 13 and the power sold and purchased by the power grid 14 are constantly changing, the photovoltaic array 11, the battery 12 and the power grid 14 can be the input end of the inverter 10, the load 13 and the power grid 14 can be the output end of the inverter 10, it should be noted that the interface between the battery 12 and the power grid 14 and the inverter 10 may be an input port or an output port, specifically depending on whether the battery 12 is charging or discharging, and whether the power grid 14 is receiving or feeding power, thereby determining whether the above-mentioned battery 12 and the power grid 14 are the input end or the output end of the inverter 10. The above-mentioned implementation scenario can also be used in energy storage systems without photovoltaic arrays, and this solution will not elaborate on this; it can be understood that in energy storage systems without photovoltaic arrays, the input power does not exist in the power generation of the photovoltaic array.

[0069] In combination with the above scenario, it can be seen that in the prior art, since the values ​​of various powers of the energy storage inverter are constantly changing during operation, the growth rates of the power data accumulated from various powers will also be different, so it will appear that the power with a fast growth rate has increased and carried, while some of the power with a slow growth rate has not increased to the point where it can be carried, which will cause a perceived imbalance between the input power and output power of the energy storage inverter.

[0070] The commonly used power balancing method is to use some special carry methods, which mainly target the power parameters themselves, but do not consider the overall situation, resulting in inconsistent carry timing. For example, by increasing the display accuracy to make the problem less obvious and then ignoring it, the power data will become particularly lengthy and inconvenient to view, and there will still be the problem of inconsistent power carry, which will also greatly consume the memory used by the MCU of the energy storage inverter.

[0071] The present application provides a method for displaying electric quantity, which controls the carry rhythm by setting an electric quantity stack. During the process of electric quantity carry, the carry process of a single-side input or output terminal is marked and stored. When the electric quantity at the opposite input or output terminal meets the carry condition, the input electric quantity and the output electric quantity are carried synchronously. The changes of the input electric quantity and the output electric quantity can be kept balanced at all times during the electric quantity settlement process, which solves the problem of sensory imbalance between the input electric quantity and the output electric quantity of the energy storage inverter due to different power growth rates during the operation of the energy storage inverter.

[0072] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0073] Figure 2 A schematic diagram of a power display method provided in this application Figure 1 ,like Figure 2 As shown, the method includes:

[0074] S101: Determine the power data of the energy storage inverter.

[0075] Among them, the power data is used to indicate the input power or output power of the energy storage inverter. The energy storage inverter is a device that converts direct current (DC) into alternating current (AC), and can be widely used in energy storage systems, photovoltaic systems, photovoltaic systems, electric vehicle charging stations and other fields. Its input power can be the direct current generated by solar panels, the direct current released by batteries, or the alternating current input from the power grid, and the output power can be the alternating current / direct current supplied to households or industries, the alternating current supplied to the power grid, and the direct current absorbed by batteries.

[0076] Specifically, PV power generation is input power, and the power consumed by the load is output power. For example, for a battery, if the battery is charging, it is output power; if it is discharging, it is input power. For a power grid, if the power grid feeds power (the power grid exports power to the outside), it is input power, that is, the power grid purchase power of the inverter; if it receives power (the power grid receives power from photovoltaics or batteries), it is output power, that is, the power grid sales power of the inverter.

[0077] It is understandable that the measurement of electricity can be done by using a power meter to directly measure the input and output electricity of the inverter. When measuring, ensure that the power meter is correctly connected to the inverter and follow the instructions for use of the measuring tool; or for long-term monitoring of the inverter's electricity data, an energy meter can also be used. In this solution, the main focus is on long-term detection of the inverter, and an energy meter can be used. The energy meter can record the input and output electricity of the inverter within a certain period of time and provide a detailed electricity data report.

[0078] It should also be noted that the cables connecting the inverter and the power source or load will produce a certain amount of power loss. Therefore, when calculating the actual power data of the inverter, the influence of cable loss should be considered. The specific loss consideration is not within the scope of this solution and will not be elaborated in this solution.

[0079] In one possible implementation, the input power of at least one input port is determined, and based on the input power, the input power of the inverter is determined; or the output power of at least one output port is determined, and based on the output power, the output power of the inverter is determined.

[0080] The input power may include, for example, PV power generation, battery discharge, and power purchase from the power grid; the output power may include, for example, load power consumption, battery charge, and power sales from the power grid.

[0081] It can be understood that based on the above-mentioned sources of input and output power, the PV power, battery power and inverter power can be obtained through the current and voltage sensors at the PV side, battery side and inverter side ports on the hardware, and finally the real-time power on the grid side can be obtained through communication interaction with the electric meter; and the self-loss of the inverter can be obtained through the difference between the DC power and the inverter power, and power balancing processing is performed on the obtained power values ​​to calculate the power consumption of the load. Therefore, the inverter has balanced the various powers, and the inverter accumulates and calculates the power in real time to obtain the corresponding power data.

[0082] Specifically, for example, in a photovoltaic storage system, if the working mode is photovoltaic array 11 power generation, battery charging, load power consumption, and grid power feeding; at this time, for the energy storage inverter, the photovoltaic array power generation and grid power feeding are two input powers, and the battery charging and load power consumption are output powers; these powers are obtained through the electrical signal at the corresponding port of the inverter, first calculate the power, and then integrate the time to get the corresponding power.

[0083] Specifically, the energy storage inverter calculates the power generation of the photovoltaic array through the current sensor and voltage sensor on the photovoltaic array 11 side; calculates the battery charging power through the current sensor and voltage sensor on the battery 12 side, and then calculates the integral of the charging power over time to obtain the battery charging capacity; calculates the load power consumption according to the current sensor and voltage sensor on the load 13 side, or the load power consumption may also be obtained by using a power balancing algorithm by subtracting the output power count from the input power, and then the load power consumption is calculated based on the integral of the load power consumption over time; and the real-time power on the grid side can be obtained through communication interaction with the electric meter, and the grid purchase power or grid sales power can be obtained by integrating the time.

[0084] S102: When the power data meets the corresponding carry standard, generate a first carry flag.

[0085] The carry flag is used to indicate that the power data needs to be carried during the measurement process. The carry flag is usually generated when the power data reaches a certain threshold or meets a certain condition. This condition can be based on the absolute value, relative change, cumulative amount or other related parameters of the power data.

[0086] The power data refers to the power value input or output of the inverter, usually expressed in units such as kilowatt-hour (kWh) or watt-hour (Wh). The carry standard refers to the rule that a carry operation needs to be performed when the power data reaches a certain value during the power metering process. For example, when the power data is carried from one decimal place to an integer, a carry standard is reached. The specific carry standard can be set according to the actual scenario, and this solution does not limit it here.

[0087] It can be understood that, taking decimal counting as an example, the power display value can be accurate to an integer. When the decimal part reaches or exceeds 0.5 (different devices may have different carry threshold settings), the power needs to be carried, and a carry flag is generated.

[0088] Specifically, if the power data is input power, when the input power reaches or exceeds a certain carry threshold, the system can generate a carry flag, which can indicate that the input power has accumulated to a sufficient amount and needs to be processed for carry processing in the power metering process. Similarly, if the power data is output power, when the output power reaches or exceeds a certain carry threshold, the system can generate a carry flag in the output power stack.

[0089] S103: Determine a first power stack corresponding to the power data, and store a first carry flag in the corresponding first power stack.

[0090] The power stack is used to store the carry flag of the power of the corresponding inverter port.

[0091] It can be understood that the power stack is a data structure that can be used to store information such as a carry flag related to power data. In power data processing, multiple power stacks can be set, corresponding to different inverter ports or power metering channels.

[0092] Specifically, the label, metadata or source information of the power data can be checked to determine which inverter port or power metering channel the power data comes from. After the source of the power data is determined, it can be matched with the corresponding power stack. For example, each power stack is associated with a specific inverter port or power metering channel and is used to store information such as a carry flag related to the port or channel.

[0093] When the power data meets the carry standard, a carry flag can be stored in the corresponding power stack. The carry flag can be, for example, a Boolean value (True / False) or a similar identifier, which is used to indicate whether a carry operation is required during the measurement of the power data.

[0094] Optionally, before storing the carry flag, other relevant information in the power stack may be updated, such as the current value of the power data, historical records, etc. This helps ensure that the information in the power stack is up to date and can provide an accurate reference for subsequent power data processing.

[0095] A new record can be added to the power stack or an existing record can be updated to store the carry flag in the corresponding power stack. When storing the carry flag, it should be ensured that the correspondence between it and the power data is correct to avoid errors in subsequent processing.

[0096] In a possible implementation, if the power data is input power, the first power stack is the input power stack and the second power stack is the output power stack; if the power data is output power, the first power stack is the output power stack and the second power stack is the input power stack.

[0097] It is understandable that when the input power reaches the carry standard, the focus should be on how it affects the output power, because the rate of increase or decrease of the input power is different from that of the output power; similarly, when the output power reaches the carry standard, the input power may not have reached the carry standard, resulting in an unbalanced carry display.

[0098] It should be noted that establishing an input power stack and an output power stack to store a carry flag can be used to control the carry rhythm so that the input and output powers of the inverter can carry synchronously, so that the input power and output power changes can be kept synchronously and balanced.

[0099] Specifically, assuming that the photovoltaic array power generation increases at a fast rate and a carry occurs, the output power stack stores a carry flag; if the other three do not carry, the output power stack does not have a carry flag, and in order to display the balance, the photovoltaic array power generation display will not carry; as time goes by, if the load power consumption carries, the output power stack stores a carry flag; at this time, the output power stack and the output power stack both have a carry flag, and the input power and output power can be displayed with a carry flag. That is, the photovoltaic power generation that causes the input power stack to store a carry flag is displayed with a carry flag, and the load power consumption that causes the output power stack to store a carry flag is displayed with a carry flag.

[0100] S104: Determine whether there is a second carry flag in the second power stack corresponding to the first power stack; if so, execute steps S105 to S106; if not, execute step S107.

[0101] S105: The first carry flag and the second carry flag are popped from the stack simultaneously, and the input power and the output power of the energy storage inverter are carried simultaneously.

[0102] The pop operation means removing the carry flag from the power stack to make room for subsequent power data processing. At the same time, the popped carry flag can be recorded for use in subsequent carry settlement.

[0103] Specifically, it is possible to check whether there is a carry flag in the second power stack, for example, by traversing the records in the power stack or querying a specific flag. If it is confirmed that there is a carry flag in both the first power stack and the second power stack, a pop operation is performed, and the input power and output power of the energy storage inverter are simultaneously settled with a carry, so that the input power and output power of the energy storage inverter can be carried at the same time to maintain the balance of the power data.

[0104] It is understandable that before performing round-up settlement, it is necessary to clarify the round-up standard. The round-up standard can be based on the number of digits, thresholds or other relevant rules of the power data. For example, when the decimal place of the power data reaches or exceeds a certain threshold, the round-up is performed. According to the round-up standard, the input power of the inverter is processed by round-up. Similarly, the output power of the inverter is processed by round-up. Ensure that the round-up processing of the input power and the output power is consistent to maintain the accuracy and consistency of the power data.

[0105] It should be noted that after the carry is completed, the power data of the energy storage inverter can be updated. This includes saving the input power and output power after the carry to the corresponding data structure for subsequent power monitoring, analysis and reporting. At the same time, after the carry settlement is performed, the power data can be verified to ensure that the carry processing does not introduce errors or inconsistencies.

[0106] In one possible implementation, after the power data is updated, a visual chart or report of the power data can be generated so that the user can understand the power usage of the inverter and the results of the carry settlement. At the same time, the changes in the power data continue to be monitored, abnormalities are discovered in a timely manner, and alarm processing is performed, which helps to ensure the accuracy and reliability of the power metering system and prevent potential failures or errors. When a carry flag exists in both the first power stack and the second power stack, the carry flag needs to be popped out of the stack, and the input power and output power of the inverter need to be carried out at the same time. This process ensures the accuracy and consistency of the power data, providing a reliable basis for subsequent power monitoring, analysis, and reporting.

[0107] S106: Determine the corresponding power display value based on the input power and output power after rounding, and display it with rounding.

[0108] It can be understood that by controlling the carry of input power and output power through the power stack, the corresponding display value is determined, so that the input power and output power can be kept balanced in the display value.

[0109] S107: Keep the first carry flag in the first power stack.

[0110] If the second carry flag does not exist in the second power stack, it means that the power data on the opposite side has not reached the carry standard. If the power data is carried, it may cause inconsistent power carry and imbalanced input and output data display. Therefore, the first carry flag is reserved and stored. When the second carry flag appears in the second power stack on the opposite side and the corresponding carry flag exists in both the first power stack and the second power stack, the power is carried.

[0111] In a possible implementation, a loss parameter of the energy storage inverter is determined based on the input power and the output power; when the loss parameter is a negative number, it is determined that the energy storage inverter is in an abnormal working state, and an abnormal warning is fed back.

[0112] The loss parameter is the data difference between input power and output power.

[0113] It is understandable that if a fault occurs during the power calculation process, the correctness of the power calculation value can be used to determine whether the port sampling of the energy storage inverter is normal. For example, it can be determined whether the self-consumption of the inverter is less than 0. If so, it means that the self-consumption does not consume power but generates power, thereby determining that the inverter port sampling fault occurs. When there is an imbalance in input and output power, a warning can be issued.

[0114] Specifically, let the loss parameter be ; At the same time, the inverter's own losses can be taken into account. Default is ; In addition, the inverter's own loss is considered as part of the load loss. Should be 0 or very close to 0.

[0115] The embodiment of the present application provides a method for displaying electric quantity, by determining the electric quantity data of the energy storage inverter, the electric quantity data is used to indicate the input electric quantity or output electric quantity of the energy storage inverter; when the electric quantity data meets the corresponding carry standard, a first carry flag is generated, the carry flag is used to indicate that the electric quantity data needs to be carried during the metering process; the first electric quantity stack corresponding to the electric quantity data is determined, and the first carry flag is stored in the corresponding first electric quantity stack; it is determined whether there is a second carry flag in the second electric quantity stack corresponding to the first electric quantity stack, if so, the first carry flag and the second carry flag are simultaneously popped out of the stack, and the input electric quantity and the output electric quantity of the energy storage inverter are simultaneously carried; based on the input electric quantity and the output electric quantity after the carry, the corresponding electric quantity display value is determined, and the carry display is performed for it. By controlling the carry rhythm of the electric quantity, the input and output electric quantities of the inverter can be carried synchronously, which solves the problem of unbalanced electric quantity data on the display of the input electric quantity and the output electric quantity during the operation of the inverter.

[0116] Figure 3 A schematic diagram of a power display method provided in this application Figure 2 ,like Figure 3 As shown, in this embodiment Figure 2 Based on the embodiment, the specific process of processing the input power stack and the output power stack is described in detail. The method includes:

[0117] S201: Initialize the input power stack and the output power stack.

[0118] The initialization process may include, for example, setting the initial state of the stack, allocating necessary resources, and defining basic operations of the stack.

[0119] It can be understood that, taking the input power stack initialization as an example, first allocate enough storage space for the input power stack to accommodate the expected power data, such as a dynamically allocated memory block or a statically defined array. Then, initialize the stack pointer to point to the starting position of the stack, where the stack pointer is used to track the position of the current element in the stack; and define basic stack operations for the input power stack, such as push, pop, and peek, etc., through which the system can add, remove, and view power data to the stack at runtime.

[0120] Specifically, according to system requirements, some initial values ​​may be set for the input power stack, such as default power data or specific flags. After initialization, the integrity of the stack is checked to ensure that the stack pointer and other related parameters are in the correct state.

[0121] Similarly, the output power stack is initialized as above and will not be repeated here.

[0122] It is important to ensure that the initialization process of the input power stack and the output power stack is consistent so that the power data can be processed correctly in the system. At the same time, during the initialization process, attention should be paid to safety to avoid potential problems such as stack overflow or stack damage. Safety can be improved by setting the maximum capacity of the stack and performing boundary checks.

[0123] S202: Determine configuration information according to the rounding standard of input power and output power.

[0124] The configuration information is used to indicate that a carry flag is generated when the corresponding power data meets a carry standard.

[0125] As can be understood, the carry criterion is usually based on a threshold or a specific condition of the power data. For example, when the power data reaches a certain preset value, or when the change in the power data exceeds a certain range, a carry is triggered. The carry flag can be a signal or flag used to indicate that the power data has met the carry criterion. For example, it can be a simple binary bit (such as 0 or 1) or a more complex structure containing detailed information about the carry event.

[0126] Specifically, the power data monitoring function can be configured in the energy storage inverter to obtain power data in real time or periodically. And according to the carry standard, the corresponding carry threshold is set in the inverter. These thresholds can be absolute values ​​(such as the power reaches 1000 kWh) or relative values ​​(such as the power change exceeds 10%). Based on the above data, write or configure the carry flag generation logic in the inverter. When the power data meets the carry standard, the logic will trigger the generation of the carry flag.

[0127] S203: Based on the configuration information, configure the input power stack and the output power stack.

[0128] Among them, sufficient storage space can be allocated to the input power stack according to the configuration information to accommodate the expected power data input.

[0129] It is understandable that the data types stored in the input power stack, such as voltage, current, power, etc., can be determined, and these data types can be ensured to match the data types output by the inverter or power monitoring device. And the operation mode of the input power stack, such as push operation, can be configured so that new power data can be correctly added to the stack when it is received.

[0130] Specifically, the data output control logic of the power stack can also be configured, such as setting output conditions, triggering methods or output frequencies, etc. This can ensure that the power data can be sent to the next processing unit or display device in the expected manner and time.

[0131] A method for displaying electric quantity provided in an embodiment of the present application determines a carry standard according to data information of an inverter and configures a corresponding electric quantity stack to ensure the accuracy of an electric quantity data processing system. In the process of generating a carry flag, the carry process of a single-side input or output end is marked and stored. By configuring the electric quantity stack, the carry rhythm is controlled to allow the input and output electric quantities of the energy storage inverter to carry synchronously, thereby achieving a dynamic balance in electric quantity settlement.

[0132] Figure 4 A schematic diagram of the structure of a power display device provided in this application, such as Figure 4 As shown, a power display device 300 provided in this embodiment includes:

[0133] A determination module 301 determines power data of an energy storage inverter, where the power data is used to indicate input power or output power of the energy storage inverter;

[0134] A generating module 302, configured to generate a first carry flag when the electric quantity data meets a corresponding carry standard, wherein the carry flag is used to indicate that the electric quantity data needs to be carried during the measurement process;

[0135] The determination module 301 is further used to determine a first power stack corresponding to the power data, and store the first carry flag in the corresponding first power stack, wherein the power stack is used to store the carry flag of the power of the corresponding energy storage inverter port;

[0136] The judging module 303 is used to judge whether there is a second carry flag in the second power stack corresponding to the first power stack, and if so, the first carry flag and the second carry flag are popped from the stack at the same time, and the input power and output power of the energy storage inverter are carried at the same time;

[0137] The display module 304 is used to determine the corresponding power display value based on the input power and output power after the round-trip, and display it in the round-trip manner.

[0138] In a possible implementation, the device further includes: a processing module 305;

[0139] The processing module 305 is used to initialize the input power stack and the output power stack;

[0140] The determining module 301 determines configuration information according to the carry standard of the input power and the output power, wherein the configuration information is used to indicate that a corresponding carry flag is generated when the corresponding power data meets the carry standard;

[0141] The processing module 305 is further configured to perform configuration processing on the input power stack and the output power stack based on the configuration information.

[0142] In a possible implementation manner, the determination module 301 is further configured to determine an input power of at least one of the input ports, and determine an input power of the energy storage inverter based on the input power;

[0143] Alternatively, the determination module 301 is further configured to determine the output power of at least one output port, and determine the output power of the energy storage inverter based on the output power.

[0144] A power display device provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be described in detail here.

[0145] Figure 5 This is a schematic diagram of the structure of an energy storage inverter provided in this application. Figure 5 As shown, the energy storage inverter 400 provided in this embodiment includes: at least one input port, at least one output port, at least one processor 401 and a memory 402 .

[0146] Optionally, the device 400 further includes a communication component 403 , wherein the processor 401 , the memory 402 and the communication component 403 are connected via a bus 404 .

[0147] In a specific implementation process, at least one processor 401 executes the computer-executable instructions stored in the memory 402, so that at least one processor 401 executes the above method.

[0148] The specific implementation process of the processor 501 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0149] In one possible implementation, an energy storage inverter is used in a photovoltaic storage system; the input power includes one or more of the power purchased from the power grid, the battery discharge, and the power generated by the photovoltaic array; the output power includes one or more of the load power consumption, the battery charge, and the power sold from the power grid.

[0150] Among them, the grid feed-in amount and grid received amount can be obtained by interacting with the electricity meter;

[0151] The battery discharge capacity and battery charge capacity can be calculated by the electrical signal measured by the battery;

[0152] The power generation of the photovoltaic array can be calculated by monitoring the output electrical parameters of the photovoltaic panels and combining them with environmental factors;

[0153] The load power consumption can be obtained by directly measuring the voltage and current at the load end.

[0154] It can be understood that the battery discharge capacity and battery charge capacity take lithium-ion batteries as an example, assuming that the voltage-capacity characteristic curve equation is known to be (Q represents the charge and V represents the voltage). During the discharge process, the battery voltage is detected at regular intervals (e.g., 1 minute). ,Will Substituting into the characteristic curve equation, we can get the estimated value of the power at the corresponding time. By measuring and accumulating these estimated values ​​of power multiple times, the battery discharge amount within a certain period of time can be calculated. For the current signal, if the discharge current is detected (t represents time), then in the time period arrive The battery discharge capacity Q can be obtained by definite integral to calculate (the charging amount is the same, except that the current direction and other conditions are different).

[0155] It should be noted that different types of electricity have their own corresponding methods and ways of obtaining electricity. This solution does not limit the different methods of obtaining electricity, and will not be repeated here.

[0156] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.

[0157] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.

[0158] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0159] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0160] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0161] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0162] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0163] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0164] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0165] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0166] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0167] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0168] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for displaying electric quantity, characterized in that: Applied to an energy storage inverter, the method comprises: Determine power data of the energy storage inverter, where the power data is used to indicate input power or output power of the energy storage inverter; When the electric quantity data meets the corresponding carry standard, a first carry flag is generated, wherein the carry flag is used to indicate that the electric quantity data needs to be carried during the measurement process; Determine a first power stack corresponding to the power data, and store the first carry flag in the corresponding first power stack, wherein the power stack is used to store the carry flag of the corresponding energy storage inverter port power; Determine whether there is a second carry flag in the second power stack corresponding to the first power stack, and if so, pop the first carry flag and the second carry flag at the same time, and carry the input power and output power of the energy storage inverter at the same time; Based on the input power and output power after the round-trip, the corresponding power display value is determined and displayed after the round-trip.

2. The method according to claim 1, characterized in that The power stack includes: an input power stack and an output power stack. Before determining the power data of the energy storage inverter, the method further includes: Initialize the input power stack and the output power stack; Determine configuration information according to the carry standard of the input power and the output power, wherein the configuration information is used to indicate that a corresponding carry flag is generated when the corresponding power data meets the carry standard; Based on the configuration information, configuration processing is performed on the input power stack and the output power stack.

3. The method according to claim 2, characterized in that The determining a first power stack corresponding to the power data includes: If the power data is input power, the first power stack is the input power stack, and the second power stack is the output power stack; If the power data is output power, the first power stack is the output power stack, and the second power stack is the input power stack.

4. The method according to any one of claims 1 to 3, characterized in that: The energy storage inverter includes: at least one input port and at least one output port, and the determining of the power data of the energy storage inverter includes: Determine the input power of at least one of the input ports, and determine the input power of the energy storage inverter based on the input power; or, The output power of at least one of the output ports is determined, and based on the output power, the output power of the energy storage inverter is determined.

5. The method according to claim 4, characterized in that The method further comprises: Based on the input power and the output power, determining a loss parameter of the energy storage inverter, the loss parameter being a data difference value obtained by subtracting the output power from the input power; When the loss parameter is a negative number, it is determined that the energy storage inverter is in an abnormal working state, and an abnormal warning is fed back.

6. A power display device, characterized in that: include: A determination module determines power data of the energy storage inverter, where the power data is used to indicate input power or output power of the energy storage inverter; A generating module, configured to generate a first carry flag when the electric quantity data meets a corresponding carry standard, wherein the carry flag is used to indicate that the electric quantity data needs to be carried during the measurement process; The determination module is further used to determine a first power stack corresponding to the power data, and store the first carry flag in the corresponding first power stack, wherein the power stack is used to store the carry flag of the corresponding energy storage inverter port power; A judging module, used for judging whether a second carry flag exists in a second power stack corresponding to the first power stack, and if so, popping the first carry flag and the second carry flag simultaneously, and simultaneously carrying the input power and the output power of the energy storage inverter; The display module is used to determine the corresponding power display value based on the input power and output power after the carry, and carry out the display of the corresponding power value.

7. The device according to claim 6, characterized in that The device also includes: A processing module, used for initializing an input power stack and an output power stack; The determination module determines configuration information according to the carry standard of the input power and the output power, wherein the configuration information is used to indicate that a corresponding carry flag is generated when the corresponding power data meets the carry standard; The processing module is further used to perform configuration processing on the input power stack and the output power stack based on the configuration information; The first electricity quantity stack is the input electricity quantity stack, and the second electricity quantity stack is the output electricity quantity stack; or the first electricity quantity stack is the output electricity quantity stack, and the second electricity quantity stack is the input electricity quantity stack.

8. An energy storage inverter, characterized in that: include: at least one input port, at least one output port, a memory, and a processor; The at least one input port is used to receive input power; The at least one output port is used to output electric quantity; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 5.

9. The energy storage inverter according to claim 8, characterized in that: The energy storage inverter is used in a photovoltaic storage system; the input power includes one or more of the power purchased from the power grid, the battery discharged, and the power generated by the photovoltaic array; the output power includes one or more of the load power consumption, the battery charged, and the power sold from the power grid.

10. The energy storage inverter according to claim 9, characterized in that: The power grid feeding amount and the power grid receiving amount are obtained by interacting with the electric meter; The battery discharge capacity and the battery charge capacity are calculated at least by the electrical signal on the battery side; The photovoltaic array power generation is calculated by at least monitoring the output electrical parameters of the photovoltaic panels; The load power consumption is at least obtained through power balance calculation.