Power control method, main control equipment and storage medium
By implementing a power control method in the main control equipment of the optical storage power generation system, the output power of the optical storage device is quickly adjusted, and the problem of long-term power control of the feed network in the prior art is solved, and the stability of the power grid is improved.
Patent Information
- Application Number
- CN202411668416.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-11
AI Technical Summary
The power control scheme of the existing optical storage power generation system relies on high-speed communication technology, which causes the power control of the feed network to take a long time, which may cause large fluctuations in the power grid and destroy the stability of the power system.
By implementing a power control method in the main control device, the feeding power and feeding power limit of the optical storage device are obtained, and the power adjustment value and adjustment strategy of the optical storage device are determined based on these data, and a success rate allocation command is generated and sent to the optical storage device, and its output power is controlled to quickly adjust to the feeding power limit.
It realizes rapid adjustment of the power of the optical storage equipment feed network, reduces the impact on the power grid, improves the stability of the power system, and does not need to rely on high-speed communication technology.
Smart Images

Figure CN119602367A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of energy storage technology, and in particular to a power control method, a main control device and a storage medium. Background Art
[0002] The photovoltaic power generation system is a power generation system that combines photovoltaic power generation with an energy storage system. The photovoltaic power generation system includes photovoltaic equipment, energy storage equipment (such as batteries), photovoltaic storage equipment (such as inverters), etc. Photovoltaic equipment is used to convert solar energy into electrical energy. The electrical energy converted by photovoltaic equipment can be stored in energy storage equipment, or used to meet the power demand of the load. The electrical energy released by photovoltaic equipment and energy storage equipment can be provided to the load or fed into the power grid through an inverter. Normally, when the photovoltaic power generation of the photovoltaic power generation system exceeds the power demand of the load, the excess electrical energy can be fed into the power grid. When the photovoltaic power generation system is connected to the grid, in order to maintain the safety and stability of the power grid, the power grid company usually requires the photovoltaic power generation system to control the power fed into the grid and limit the power fed into the grid to a certain range.
[0003] Related power control schemes rely on high-speed communication technology, and the control of grid-fed power usually takes a long time, which may cause large fluctuations in the grid and undermine the stability of the power system. Summary of the invention
[0004] In view of this, the present application provides a power control method, a main control device and a storage medium to solve the problem that the relevant power control scheme relies on high-speed communication technology, and the control of the feeding power is usually time-consuming, which may cause large fluctuations in the power grid and destroy the stability of the power system.
[0005] A first aspect of an embodiment of the present application provides a power control method, which is applied to a main control device, wherein the main control device is electrically connected to a photoelectric storage device, and the power control method includes: obtaining a feeding network power of the photoelectric storage device and a feeding network power limit of the feeding network power; determining a power adjustment value and an adjustment strategy of the photoelectric storage device based on the feeding network power and the feeding network power limit; generating a power allocation instruction based on the power adjustment value and the adjustment strategy, and sending the power allocation instruction to the photoelectric storage device, controlling the photoelectric storage device to execute the power allocation instruction to determine a first power limit of the photoelectric storage device, wherein the first power limit is used to limit the output power of the photoelectric storage device.
[0006] In some embodiments, the adjustment strategy includes a first strategy and a second strategy, and the adjustment strategy of the optical storage device is determined based on the feeding network power and the feeding network power limit, including: if the feeding network power is less than or equal to the feeding network power limit, determining that the adjustment strategy is the first strategy; if the feeding network power is greater than the feeding network power limit, determining that the adjustment strategy is the second strategy.
[0007] In some embodiments, the controlling the optical storage device to execute the power allocation instruction to determine the first power limit of the optical storage device includes: if the adjustment strategy is the first strategy, controlling the optical storage device to increase the second power limit of the optical storage device according to the power adjustment value, and determining the increased second power limit as the first power limit; if the adjustment strategy is the second strategy, controlling the optical storage device to determine the first power limit according to the power adjustment value and the current output power of the optical storage device.
[0008] In some embodiments, if there are multiple optical storage devices, the power adjustment value of the optical storage device is determined based on the feeding network power and the feeding network power limit, including: if the feeding network power is less than or equal to the feeding network power limit, the power adjustment value is calculated based on the power difference between the feeding network power and the feeding network power limit and the first device quantity of the optical storage device; if the feeding network power is greater than the feeding network power limit, the power adjustment value is calculated based on the power difference and the current output power of the optical storage device.
[0009] In some embodiments, the power adjustment value is calculated based on the power difference and the current output power of the photovoltaic storage device, including: calculating a target adjustment value based on the power difference and the current output power; if the current output power is greater than the target adjustment value, using the target adjustment value as the power adjustment value of the corresponding photovoltaic storage device; if the current output power is less than or equal to the target adjustment value, determining the power adjustment value of the corresponding photovoltaic storage device according to the current output power. In some embodiments, the target adjustment value is calculated based on the power difference and the current output power, including: assigning the power difference as the initial value of the difference variable to the difference variable, and assigning the current output power as the initial value of the corresponding power variable to the corresponding power variable; detecting the value of the power variable corresponding to the optical storage device; if the value of the power variable is greater than a preset value, determining the value of the power variable as a valid value, determining the optical storage device corresponding to the power variable as a target device, and counting the number of second devices of the target device; calculating a reference adjustment value and accumulating the reference adjustment value according to the value of the difference variable and the number of the second devices; based on the reference adjustment value, updating the valid value corresponding to the target device and the value of the difference variable according to a preset rule; detecting the value of the difference variable; if the value of the difference variable is greater than zero, returning to execute the detection of the value of the power variable corresponding to the optical storage device; if the value of the difference variable is equal to zero, determining the accumulated reference adjustment value as the target adjustment value.
[0010] In some embodiments, based on the reference adjustment value, updating the effective value corresponding to the target device and updating the value of the difference variable according to a preset rule include: in each cycle, selecting any target device whose effective value has not been updated; if the effective value corresponding to any target device is greater than the reference adjustment value, reducing the effective value corresponding to any target device according to the reference adjustment value, reducing the value of the difference variable according to the reference adjustment value, and accumulating the number of cycles; if the effective value corresponding to any target device is less than or equal to the reference adjustment value, reducing the value of the difference variable according to the effective value corresponding to any target device, setting the effective value corresponding to any target device to zero, and accumulating the number of cycles; if the number of cycles is greater than the second device quantity, detecting the value of the difference variable.
[0011] In some embodiments, the power adjustment value is calculated based on the power difference between the feeding network power and the feeding network power limit and the first device quantity of the optical storage device, including: calculating the ratio of the power difference to the first device quantity; and taking the absolute value of the ratio as the power adjustment value.
[0012] A second aspect of an embodiment of the present application provides a main control device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor implements the above-mentioned power control method when executing the computer-readable instructions.
[0013] A third aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions implement the above-mentioned power control method when executed by a processor.
[0014] In a power control method provided in an embodiment of the present application, a feed power limit is used to limit the feed power. The power adjustment value and adjustment strategy of the optical storage device are determined based on the feed power of the optical storage device and the feed power limit of the feed power. A power allocation instruction is generated based on the power adjustment value and the adjustment strategy, and the power allocation instruction is sent to the optical storage device, and the optical storage device is controlled to execute the power allocation instruction to determine the first power limit of the optical storage device. By controlling the first power limit of the optical storage device based on the power adjustment value, the output power of the corresponding optical storage device is controlled, so that the feed power of the optical storage device can be quickly adjusted to the feed power limit, saving time and without relying on high-speed communication technology. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0015] Figure 1 This is an application scenario diagram of the power control method provided in an embodiment of the present application.
[0016] Figure 2 This is an example diagram of an application scenario of the power control method provided in an embodiment of the present application.
[0017] Figure 3 It is a flow chart for implementing the power control method provided in the embodiment of the present application.
[0018] Figure 4 It is a flow chart of the implementation of the adjustment value determination method provided in the embodiment of the present application.
[0019] Figure 5 This is an example diagram of the implementation process of the adjustment value determination method provided in the embodiment of the present application.
[0020] Figure 6 It is a structural diagram of the main control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0022] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of 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 concrete way.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field in this application. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can represent A or B. "And / or" in this application is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c seven situations.
[0024] See also Figure 1 , Figure 1 The figure shows an application scenario diagram of the power control method provided in the embodiment of the present application. Figure 1 As shown, the photovoltaic power generation system 100 includes a main control device 10 and a photovoltaic storage device 20. The main control device 10 is electrically connected to the photovoltaic storage device 10. For example, the main control device 10 and the photovoltaic storage device 20 can be connected through a network. The network includes a wired communication network and a wireless communication network. The photovoltaic storage device 20 is electrically connected to the power grid 200, and the electric energy output by the photovoltaic storage device 20 can be fed into the power grid 200.
[0025] In the process of realizing power control, the master control device 10 obtains the feeding network power of the optical storage device 20 and the feeding network power limit of the feeding network power, and determines the power adjustment value and adjustment strategy of the optical storage device 20 based on the feeding network power and the feeding network power limit. The master control device 10 controls the optical storage device 20 to determine the first power limit of the optical storage device 20 based on the power adjustment value and the adjustment strategy. The first power limit can be used to limit the output power of the optical storage device 20.
[0026] In some embodiments, after determining the power adjustment value and adjustment strategy of the optical storage device 20, the master control device 10 may generate a power allocation instruction based on the power adjustment value and the adjustment strategy, and send the power allocation instruction to the optical storage device 20. The optical storage device 20 may parse the power allocation instruction to obtain the power adjustment value and the adjustment strategy, and the optical storage device 20 may determine the first power limit value of the optical storage device 20 based on the power adjustment value and the adjustment strategy.
[0027] In some embodiments, the master device 10 may send the power allocation instruction to the optical storage device 20 by broadcasting. This embodiment of the present application is not limited to this.
[0028] In some embodiments, one photovoltaic storage device 20 can be selected as a host device from multiple photovoltaic storage devices 20 in the photovoltaic power generation system 100. The main control device 10 can be a controller integrated in the host device, or the main control device 10 can be an independent control device.
[0029] In some embodiments, the main control device 10 may run in an energy management system (EMS), or be configured with an EMS system. The embodiment of the present application does not limit the main control device 10.
[0030] In some embodiments, the photovoltaic storage device 20 may represent an independent photovoltaic storage device 20, or may represent a collection of multiple photovoltaic storage devices 20. The photovoltaic storage device 20 may be a device such as an inverter. For the convenience of the following clear description, the embodiment of the present application is described by taking the photovoltaic storage device 20 as an inverter as an example.
[0031] Figure 1 The illustrated scenario is only an illustrative example, and the power control method provided in the present application can also be applied in other scenarios. The embodiments of the present application do not limit the specific application scenario of the power control method.
[0032] See also Figure 2 , Figure 2 FIG. 1 is an example diagram of an application scenario of the power control method provided in an embodiment of the present application. Taking the photovoltaic storage device as an inverter as an example, Figure 2 As shown, the photovoltaic storage power generation system 100 includes grid-connected inverters 1 to N, and the inverters 1 to N are electrically connected (for example, electrically connected through a power line), and N is an integer greater than 1. Each inverter in the inverters 1 to N is electrically connected to a photovoltaic device 40 and an energy storage device 50, respectively. For a single photovoltaic storage subsystem, the photovoltaic device 40 can provide electrical energy, and the energy storage device 50 can both provide electrical energy and consume electrical energy.
[0033] In some embodiments, the photovoltaic power generation system 100 is electrically connected to the power grid 200 and the power load 300, respectively, and the power output by the inverters 1 to N can supply power to the power load 300, or can be fed into the power grid 200. The power grid 200 can also provide power to the power load 300, the inverter, the energy storage device 50, etc.
[0034] In some embodiments, the power measurement device 400 is electrically connected to the inverter 1 and the grid 200, respectively, and is used to measure the grid-feeding power fed from the photovoltaic power generation system 100 (or the inverters 1 to N in the photovoltaic power generation system 100) to the grid 200. The main control device 10 is in communication connection with the power measurement device 400 (not shown in the figure), and the power measurement device 400 can send the grid-feeding power to the main control device 10.
[0035] In some embodiments, the photovoltaic power generation system 100 can select an inverter as a host device (for example, select inverter 1 connected to the power measurement device 400 as the host device), and the remaining inverters (for example, inverters 2 to N) as slave devices. The master control device 10 is integrated in the host device. The master control device 10 is connected to the controller 30 in the slave device (not shown in the figure).
[0036] In some embodiments, the master device 10 can obtain slave information of the slave device (such as the output power of the slave device) by communicating with the controller 30 in the slave device, and can also control the operation of the slave device, such as controlling the output power of the slave device.
[0037] In some embodiments, the communication connection includes a wired communication connection and a wireless communication connection.
[0038] In some embodiments, the power measurement device 400 includes but is not limited to any one of an electric meter and a current transformer (CT).
[0039] In some embodiments, the types of photovoltaic devices 40 and energy storage devices 50 electrically connected to different inverters may be the same or different. The types of controllers 30 in different inverters may be the same or different.
[0040] See also Figure 3 The figure is a flowchart of the implementation of the power control method provided in the embodiment of the present application. The method is applied to the main control device. The embodiment of the present application is applied to the method in Figure 1 or Figure 2 The method is described by taking the master control device 100 in FIG. 1 as an example. The method comprises the following steps.
[0041] S11: Obtain the feeding power of the optical storage device and the feeding power limit of the feeding power.
[0042] In some embodiments, the grid-fed power represents the total power fed into the grid by all photovoltaic storage devices in the photovoltaic storage power generation system.
[0043] In some embodiments, in order to ensure the safe and stable operation of the power grid, the power grid usually limits the power fed into the power grid by the photovoltaic power generation system. In the embodiment of the present application, the power feeder power limit value indicates the maximum power that the power grid allows the photovoltaic power generation system to feed into the power grid. The power feeder power limit value is used to limit the power feeder power. The power feeder power limit value can be set based on the carrying capacity of the power grid, the transmission capacity of the feeder network, and the needs of power grid scheduling and optimization.
[0044] In some embodiments, if the grid power is greater than the grid power limit, it means that the grid power is too high. In order to ensure the safe and stable operation of the power grid, the master control device can control the photovoltaic storage device to reduce the output power. If the grid power is less than the grid power limit, it means that the grid power has not reached the limit. In order to improve energy utilization, the master control device can control the photovoltaic storage device to increase the output power.
[0045] In some embodiments, the master control device can adjust the output power of the optical storage device by adjusting the output power limit of the optical storage device. For example, the master control device can increase the output power of the optical storage device by increasing the output power limit of the optical storage device. The master control device can reduce the output power of the optical storage device by reducing the output power limit of the optical storage device.
[0046] In some embodiments, the photovoltaic power generation system can collect the grid-feeding power of the photovoltaic power generation device through a power measurement device (such as an electric meter or a current transformer (CT)). The main control device obtains the grid-feeding power by communicating with the power measurement device.
[0047] In some embodiments, the main control device may obtain the power feeder power limit of the power grid through a preset monitoring system and a communication interface.
[0048] S12: Based on the feed network power and the feed network power limit, determine the power adjustment value and adjustment strategy of the optical storage device.
[0049] In some embodiments, the power adjustment value indicates a power value by which the output power limit of the optical storage device needs to be increased or a power value by which the output power of the optical storage device needs to be reduced in order to make the feeding network power reach the feeding network power limit.
[0050] In some embodiments, the adjustment strategy is used to indicate the power parameters (eg, output power, output power limit, etc.) and adjustment methods (eg, increase power or decrease power) that need to be adjusted for the optical storage device.
[0051] In some embodiments, if the grid-feeding power is less than the grid-feeding power limit, it means that the overall power generation efficiency of the photovoltaic energy storage system may not be optimal, resulting in some electric energy not being utilized, low energy utilization, and in the same time, a smaller grid-feeding power means that the photovoltaic energy storage device transmits less electric energy to the grid, thereby reducing the economic benefits of the photovoltaic energy storage system. In this case, the master control device can increase the grid-feeding power of the photovoltaic energy storage device by controlling the output power of the photovoltaic energy storage device.
[0052] In some embodiments, if the grid-feeding power is greater than the grid-feeding power limit, it means that the power generation capacity of the photovoltaic storage power generation system exceeds the grid-feeding power limit allowed by the power grid at the current moment, or exceeds the grid-feeding power limit set by the power grid dispatching center for system safety and stability, which may destroy the power balance of the power grid, leading to voltage fluctuations, frequency offsets and other problems, affecting the stable operation of the power grid, and even causing grid equipment to overheat, damage or failure, and then causing serious problems such as power outages or grid collapse. To reduce the occurrence of this situation, when the grid-feeding power is greater than the grid-feeding power limit, the master control device can control the output power of the photovoltaic storage device to decrease, thereby reducing the grid-feeding power of the photovoltaic storage device.
[0053] In some embodiments, if the network feeding power is equal to the network feeding power limit, the master control device may not adjust the output power of the optical storage device.
[0054] In some embodiments of the present application, the adjustment strategy includes a first strategy and a second strategy, and the adjustment strategy of the optical storage device is determined based on the feeding network power and the feeding network power limit, including: if the feeding network power is less than the feeding network power limit, the adjustment strategy is determined to be the first strategy; if the feeding network power is greater than the feeding network power limit, the adjustment strategy is determined to be the second strategy.
[0055] In some embodiments, the first strategy is used to instruct the optical storage device to increase the second power limit of the optical storage device according to the power adjustment value, and determine the increased second power limit as the first power limit. The second strategy is used to instruct the optical storage device to determine the first power limit according to the power adjustment value and the current output power of the optical storage device.
[0056] In some embodiments, the first power limit represents the adjusted output power limit of the photovoltaic storage device. The first power limit is used to limit the maximum output power of the photovoltaic storage device so that the grid feeding power of the photovoltaic storage device can reach the grid feeding power limit or be close to the grid feeding power limit, thereby avoiding the grid feeding power being too high or too low, which affects the performance of the photovoltaic storage power generation system and the safety and stability of the power grid.
[0057] In some embodiments, the second power limit value indicates the current output power limit value of the optical storage device when the feeding network power is less than or equal to the feeding network power limit value.
[0058] In some embodiments, the current output power represents the output power of the optical storage device when the feeding network power is greater than the feeding network power limit.
[0059] In some embodiments, the second strategy is further used to instruct the photovoltaic storage device to calculate a power difference between a current output power and a power adjustment value, and to determine the power difference as a first power limit value of the photovoltaic storage device.
[0060] In some embodiments of the present application, when there are multiple optical storage devices, such as Figure 4As shown, based on the feeding network power and the feeding network power limit, the power adjustment value of the optical storage device is determined, including steps S21 to S23, and the specific steps are as follows.
[0061] S21: Determine whether the feeding network power is greater than the feeding network power limit.
[0062] S22: If the feeding network power is less than or equal to the feeding network power limit, a power adjustment value is calculated based on a power difference between the feeding network power and the feeding network power limit and a first device quantity of the optical storage device.
[0063] In some embodiments, if the grid power is less than the grid power limit, it means that the grid power does not reach the grid limit, in which case the output power of the photovoltaic storage device can be increased. In some embodiments, the master control device can increase the output power limit of the photovoltaic storage device and use the increased output power limit as the first power limit.
[0064] In order to ensure that the feeder power is quickly controlled to increase to the feeder power limit, the master control device can increase the output power limit of each optical storage device according to the same step size, and obtain the first power limit after the increase. In this case, the power adjustment value indicates the power that needs to be increased to the output power limit of each optical storage device.
[0065] In some embodiments of the present application, a power adjustment value is calculated based on the power difference between the feeding network power and the feeding network power limit and the first device quantity of the optical storage device, including: calculating the ratio of the power difference to the first device quantity; and taking the absolute value of the ratio as the power adjustment value.
[0066] In some embodiments, when the grid-fed power is less than or equal to the grid-fed power limit, the power adjustment values corresponding to multiple photovoltaic storage devices in the photovoltaic power generation system are the same, and are all equal to the absolute value of the ratio of the power difference to the first number of devices of the multiple photovoltaic storage devices, so that the multiple photovoltaic storage devices can increase the corresponding second power limit of each photovoltaic storage device according to the same step size, thereby quickly determining the first power limit of the multiple photovoltaic storage devices and realizing rapid control of the output power of the multiple photovoltaic storage devices.
[0067] S23: If the feeding network power is greater than the feeding network power limit, a power adjustment value is calculated based on the power difference and the current output power of the optical storage device.
[0068] In some embodiments, the current output power of the photovoltaic storage device represents the output power of the photovoltaic storage device when the feeding network power is greater than the feeding network power limit.
[0069] In some embodiments, when the grid-feed power is greater than the grid-feed power limit, it indicates that the output power of the photovoltaic storage device is too high, which may affect the voltage, frequency and other parameters of the grid, thereby threatening the stability and reliability of the grid. For example, some equipment in the grid (such as transformers, transmission lines, etc.) may not be able to withstand excessive power input, and long-term overload operation may cause equipment damage or accelerated aging.
[0070] In some embodiments, in order to balance the supply and demand of the power grid, the master control device can reduce the power fed into the grid by reducing the output power of the photovoltaic storage device. In this case, the power adjustment value indicates the power that needs to be reduced based on the current output power of the photovoltaic storage device.
[0071] In the related art, the method of calculating the power adjustment value includes: obtaining the number of photovoltaic storage devices whose current output power is greater than zero, and determining the power adjustment value of the photovoltaic storage device by calculating the ratio of the power difference to the number of photovoltaic storage devices. Among them, the power adjustment value of each photovoltaic storage device in the photovoltaic storage device whose current output power is greater than zero is the same. If the current output power of the photovoltaic storage device is less than the power adjustment value, it may result in that after the output power of the photovoltaic storage device is controlled to be reduced, the feed power of the photovoltaic storage device is still greater than the feed power limit, which may result in a longer time and lower efficiency in controlling the feed power to be reduced to or below the feed power limit.
[0072] In order to solve the above problems, in the embodiment of the present application, when the feeding network power is greater than the feeding network power limit, the main control device comprehensively considers the power difference and the current output power of the optical storage device, and calculates the power adjustment value of the optical storage device. This can save the time spent in reducing the feeding network power to the feeding network power limit or below, and improve the control accuracy and control efficiency.
[0073] In some embodiments of the present application, a power adjustment value is calculated based on the power difference and the current output power of the photovoltaic storage device, including: calculating a target adjustment value based on the power difference and the current output power; if the current output power is greater than the target adjustment value, using the target adjustment value as the power adjustment value of the corresponding photovoltaic storage device; if the current output power is less than or equal to the target adjustment value, determining the power adjustment value of the corresponding photovoltaic storage device based on the current output power.
[0074] In some embodiments of the present application, a target adjustment value is calculated based on a power difference and a current output power, including: assigning the power difference as an initial value of a difference variable to the difference variable, and assigning the current output power as an initial value of the corresponding power variable to the corresponding power variable; detecting the value of the power variable corresponding to the optical storage device; if the value of the power variable is greater than a preset value, determining the value of the power variable as a valid value, determining the optical storage device corresponding to the power variable as a target device, and counting the number of second devices of the target device; calculating a reference adjustment value and an accumulated reference adjustment value based on the value of the difference variable and the number of second devices; based on the reference adjustment value, updating the valid value corresponding to the target device and the value of the difference variable according to preset rules; detecting the value of the difference variable; if the value of the difference variable is greater than zero, returning to execute the detection of the value of the power variable corresponding to the optical storage device; if the value of the difference variable is equal to zero, determining the accumulated reference adjustment value as the target adjustment value.
[0075] In some embodiments, the power variable represents a variable used to describe and calculate power changes, and may also be a temporary storage unit used to calculate or control power. The difference variable represents a variable used to describe and calculate the difference change of power difference.
[0076] In some embodiments, the preset value can be custom set, for example, the preset value can be set to zero.
[0077] In some embodiments, the preset rules are used to limit the update conditions, termination conditions, etc. for updating the valid values corresponding to the target devices and the values of the difference variables. The specific settings of the preset rules are not limited in the embodiments of the present application.
[0078] In some embodiments, the master device calculates the reference adjustment value according to the value of the difference variable and the number of second devices, including: the master device determines the reference adjustment value by calculating the ratio of the value of the difference variable to the number of second devices.
[0079] In some embodiments, based on the reference adjustment value, after updating the effective value corresponding to the target device and the value of the difference variable according to the preset rules, the master device can obtain the value of the difference variable. If the value of the difference variable is greater than zero, it means that the power difference has not been fully allocated, and the optical storage device needs to continue to reduce the output power. The master device can return to the step of detecting the value of the power variable corresponding to the optical storage device. If the value of the difference variable is equal to zero, it means that the power difference has been fully allocated. The master device can determine the accumulated reference adjustment value as the target adjustment value. By reducing the output power of the optical storage device based on the target adjustment value, the feed power can be controlled to quickly reduce to the feed power limit or below the feed power limit.
[0080] In some embodiments of the present application, the main control device updates the effective value corresponding to the target device and updates the value of the difference variable based on the reference adjustment value according to preset rules, including: in each cycle, selecting any target device whose effective value has not been updated; if the effective value corresponding to any target device is greater than the reference adjustment value, reducing the effective value corresponding to any target device according to the reference adjustment value, reducing the value of the difference variable according to the reference adjustment value, and accumulating the number of cycles; if the effective value corresponding to any target device is less than or equal to the reference adjustment value, reducing the value of the difference variable according to the effective value corresponding to any target device, setting the effective value corresponding to any target device to zero, and accumulating the number of cycles; if the number of cycles is greater than the second number of devices, detecting the value of the difference variable.
[0081] In some embodiments, reducing the effective value corresponding to any target device according to the reference adjustment value includes using the reference adjustment value as the reduction value of the effective value corresponding to any target device. In other words, the updated effective value of any target device is equal to the difference between the effective value corresponding to any target device and the reference adjustment value.
[0082] In some embodiments, reducing the value of the difference variable according to the reference adjustment value includes using the reference adjustment value as the reduced value of the value of the difference variable.
[0083] In some embodiments, reducing the value of the difference variable according to the effective value corresponding to any target device includes using the effective value corresponding to any target device as the reduced value of the value of the difference variable.
[0084] As an example, see Figure 5 , Figure 5 FIG. 2 is a flowchart showing an implementation example of the method for determining the adjustment value provided in an embodiment of the present application. Figure 5 As shown, P err Indicates the power difference; P errtmp represents a difference variable; P[1] to P[N] represent the current output power of each of the N optical storage devices, and N can be an integer greater than 1; P rec [1] represents the power variable corresponding to P[1], P rec [2] represents the power variable corresponding to P[2], P rec [N] represents the power variable corresponding to P[N], P rec [n] represents P rec [1] to P rec Any power variable in [N], n=1, 2…N; P rec [i] represents the power variable corresponding to the i-th target device; N pos Indicates the number of second devices, N pos Greater than or equal to zero; P aved Indicates the reference adjustment value; P decIndicates the power adjustment value or the target adjustment value; i indicates the cycle count.
[0085] In some embodiments, Figure 5 As shown in the figure, if the feeder power is less than or equal to the feeder power limit, the power difference P between the feeder power and the feeder power limit err Less than zero. In this case, the master device can calculate the power difference P err The ratio of the power adjustment value P of the optical storage device to the first device number N is determined. dec The calculation formula is as follows: dec =-P err / N.
[0086] In some embodiments, Figure 5 As shown in the figure, if the feeder power is greater than the feeder power limit, the power difference P between the feeder power and the feeder power limit is err The master device obtains the current output power of N optical storage devices, such as P[1] to P[N], and obtains the power difference P between the feeder power and the feeder power limit. err The master device will err As the initial value of the difference variable, assign it to the difference variable P errtmp , and assign the current output power as the initial value of the corresponding power variable to the corresponding power variable, for example, let P rec [1]=P[1], P rec [2]=P[2], P rec [3]=P[3]…P rec [N]=P[N]. The master device adjusts the power value P dec The initial value of is set to zero.
[0087] In some embodiments, the master device obtains the value of the power variable corresponding to the optical storage device. If the value of the power variable is greater than zero, the master device determines the value of the power variable as a valid value, determines the optical storage device corresponding to the power variable as a target device, and counts the number of second devices N of the target device. pos .
[0088] In some embodiments, if the target device does not exist in the N optical storage devices, the master device records the current P dec The value of is used as the target adjustment value.
[0089] In some embodiments, if there is a target device (N pos >0, the master device calculates the reference adjustment value according to the value of the difference variable and the number of the second devices. For example, the master device determines the reference adjustment value (P) by calculating the ratio of the value of the difference variable to the number of the second devices. aved =P errtmp / Npos ). The master device sends a command to P dec =P dec +P aved , accumulating the reference adjustment value. At the same time, the master device sets the loop count i to 1. Based on the reference adjustment value, the master device updates the effective value corresponding to the target device and updates the value of the difference variable through a loop.
[0090] In some embodiments, if the second device number N is determined pos is greater than or equal to i, the master device adjusts the value P based on the reference aved , perform the i-th cycle to update the effective value corresponding to the target device and update the value of the difference variable. In this process, the master device obtains the effective value corresponding to the i-th target device. If the effective value corresponding to the i-th target device is greater than the reference adjustment value, the master device adjusts the value according to the reference adjustment value P aved Reduce the effective value corresponding to the i-th target device (for example, P rec [i]=P rec [i]-P aved ), and according to the reference adjustment value P aved Reduce the difference variable P errtmp The value of (for example, P errtmp =P errtmp -P aved ). If the effective value corresponding to the i-th target device is less than or equal to the reference adjustment value, the master control device reduces the difference variable P according to the effective value corresponding to the i-th target device. errtmp The value of (for example, P errtmp =P errtmp -P rec [i]), and set the valid value corresponding to the i-th target device to zero (for example, P rec [i]=0).
[0091] In some embodiments, the master device adjusts the value P based on the reference aved , after updating the effective value corresponding to the i-th target device and the value of the difference variable, let i be accumulated by 1, for example, let i=i+1. If the second device number N is determined pos Less than i, the master device obtains the difference variable P errtmp If the value of the difference variable is greater than zero, the value of the power variable corresponding to the optical storage device to be detected is returned; if the difference variable P errtmp When the value of is equal to zero, the master control device determines the accumulated reference adjustment value as the target adjustment value.
[0092] In some embodiments, after determining the target adjustment value, if the current output power of the optical storage device is greater than the target adjustment value, the master control device uses the target adjustment value as the power adjustment value of the corresponding optical storage device. If the current output power of the optical storage device is less than or equal to the target adjustment value, the master control device can determine the power adjustment value of the optical storage device according to the current output power, for example, the power adjustment value of the optical storage device is equal to the current output power value of the optical storage device.
[0093] In other embodiments, after the master device determines the target adjustment value, the target adjustment value may be used as the power adjustment value of all the optical storage devices. The master device broadcasts the target adjustment value, and the optical storage device obtains the target adjustment value. If the current output power of the optical storage device is less than or equal to the target adjustment value, the optical storage device may determine that the first power limit value is zero. If the current output power of the optical storage device is greater than the target adjustment value, the optical storage device determines that the first power limit value is equal to the difference between the current output power and the target adjustment value.
[0094] S13: Generate a power allocation instruction based on the power adjustment value and the adjustment strategy, and send the power allocation instruction to the optical storage device, and control the optical storage device to execute the power allocation instruction to determine a first power limit value of the optical storage device.
[0095] In some embodiments, the first power limit value is used to limit the output power of the optical storage device.
[0096] In some embodiments, the power allocation instruction may include information such as identification information of the master control device, identification information of the optical storage device, power adjustment value and adjustment strategy of the optical storage device, and the corresponding relationship between the identification information of the optical storage device and the power adjustment value and adjustment strategy. The embodiments of the present application do not limit the specific information included in the power allocation instruction.
[0097] In some embodiments of the present application, the master control device controls the optical storage device to execute a power allocation instruction to determine a first power limit of the optical storage device, including: if the adjustment strategy is the first strategy, the master control device controls the optical storage device to increase the second power limit of the optical storage device according to the power adjustment value, and determines the increased second power limit as the first power limit; if the adjustment strategy is the second strategy, the master control device controls the optical storage device to determine the first power limit according to the power adjustment value and the current output power of the optical storage device.
[0098] In some embodiments, the first power limit represents the adjusted output power limit of the photovoltaic storage device. The first power limit is used to limit the maximum output power of the photovoltaic storage device so that the grid feeding power of the photovoltaic storage device can be reduced to below or close to the grid feeding power limit, thereby avoiding the grid feeding power being too high or too low, which affects the performance of the photovoltaic storage power generation system and the safety and stability of the power grid.
[0099] In some embodiments, the second power limit value indicates the current output power limit value of the optical storage device when the feeding network power is less than or equal to the feeding network power limit value.
[0100] In some embodiments, the current output power represents the output power of the optical storage device when the feeding network power is greater than the feeding network power limit.
[0101] In some embodiments, the second strategy is further used to instruct the photovoltaic storage device to calculate a power difference between a current output power and a power adjustment value, and to determine the power difference as a first power limit value of the photovoltaic storage device.
[0102] In some embodiments, the master device broadcasts a power allocation instruction. After the optical storage device monitors the broadcasted power allocation instruction, it can parse the power allocation instruction to obtain information such as identification information of the master device and identification information of the optical storage device. When the identification information of the optical storage device in the power allocation instruction is consistent with its own identification information, the optical storage device can execute the power allocation instruction and determine the first power limit of the optical storage device based on the power adjustment value and adjustment strategy in the power allocation instruction.
[0103] In some other embodiments, the power allocation instruction may also include a first power limit. The master control device may determine the first power limit of the optical storage device based on the power difference and the current output power of the optical storage device. The power allocation instruction is generated based on the first power limit. The master control device broadcasts the power allocation instruction, and the optical storage device listens to the broadcasted power allocation instruction, parses the power allocation instruction, and after identifying the identification information of the master control device and the identification information of the optical storage device, the optical storage device may limit the corresponding output power according to the first power limit in the power allocation instruction.
[0104] In a power control method provided in an embodiment of the present application, a feed power limit is used to limit the feed power. The power adjustment value and adjustment strategy of the optical storage device are determined based on the feed power of the optical storage device and the feed power limit of the feed power. A power allocation instruction is generated based on the power adjustment value and the adjustment strategy, and the power allocation instruction is sent to the optical storage device, and the optical storage device is controlled to execute the power allocation instruction to determine the first power limit of the optical storage device. By controlling the first power limit of the optical storage device based on the power adjustment value, the output power of the corresponding optical storage device is controlled, so that the feed power of the optical storage device can be quickly adjusted to the feed power limit, saving time and without relying on high-speed communication technology. It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0105] See also Figure 6 , Figure 6The diagram is a schematic diagram of the structure of a master control device provided in an embodiment of the present application. The network where the master control device 100 is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.
[0106] like Figure 6 As shown, the main control device 100 includes a communication module 101, a memory 102, a processor 103, an input / output interface 104 and a bus 105. The processor 103 is coupled to the communication module 101, the memory 102 and the input / output interface 104 through the bus 105. The communication module 101 may be a wireless communication module or a mobile communication module. The wireless communication module may provide wireless communication solutions including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied on the main control device 100. The mobile communication module may provide wireless communication solutions including 2G / 3G / 4G / 5G, etc., applied on the main control device 100. The memory 102 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The random access memory can be directly read and written by the processor 103, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data. The random access memory may include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally called DDR5 SDRAM), etc. The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 103. The non-volatile memory may include a disk storage device and a flash memory. The memory 102 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 103. The one or more computer programs include multiple instructions. When the multiple instructions are executed by the processor 103, the power control method executed on the master device 100 can be implemented. In other embodiments, the main control device 100 further includes an external memory interface for connecting to an external memory to expand the storage capacity of the main control device 100 . The processor 103 may include one or more processing units, for example, the processor 103 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors. The processor 103 provides computing and control capabilities. For example, the processor 103 is used to execute a computer program stored in the memory 102 to implement the above-mentioned power control method. The input / output interface 104 is used to provide a channel for user input or output. For example, the input / output interface 104 can be used to connect various input and output devices, such as a mouse, keyboard, touch device, display screen, etc., so that the user can enter information or visualize information. The bus 105 is at least used to provide a channel for mutual communication among the communication module 101 , the memory 102 , the processor 103 , and the input / output interface 104 in the main control device 100 . It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the main control device 100. In other embodiments of the present application, the main control device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0107] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the power control method in the above-mentioned embodiments of the present application. The computer-readable storage medium may be the internal memory of the master control device described in the above embodiment, such as the hard disk or memory of the master control device. The computer-readable storage medium may also be an external storage device of the master control device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the master control device. Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the main control device, etc.
[0108] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A power control method, applied to a master control device, characterized in that: The main control device is electrically connected to the optical storage device, and the power control method includes: Obtaining the feeding power of the optical storage device and the feeding power limit of the feeding power; Based on the feed network power and the feed network power limit, determining a power adjustment value and an adjustment strategy for the optical storage device; A power allocation instruction is generated based on the power adjustment value and the adjustment strategy, and the power allocation instruction is sent to the optical storage device, and the optical storage device is controlled to execute the power allocation instruction to determine a first power limit value of the optical storage device, wherein the first power limit value is used to limit the output power of the optical storage device.
2. The power control method according to claim 1, characterized in that: The adjustment strategy includes a first strategy and a second strategy, and the adjustment strategy of the optical storage device is determined based on the feed network power and the feed network power limit, including: If the feeding network power is less than or equal to the feeding network power limit, determining that the adjustment strategy is the first strategy; If the feeding network power is greater than the feeding network power limit, the adjustment strategy is determined to be the second strategy.
3. The power control method according to claim 2, characterized in that: The controlling the optical storage device to execute the power allocation instruction to determine the first power limit value of the optical storage device includes: If the adjustment strategy is the first strategy, controlling the optical storage device to increase the second power limit of the optical storage device according to the power adjustment value, and determining the increased second power limit as the first power limit; If the adjustment strategy is the second strategy, the photovoltaic storage device is controlled to determine the first power limit value according to the power adjustment value and the current output power of the photovoltaic storage device.
4. The power control method according to claim 1, characterized in that: If there are multiple optical storage devices, determining the power adjustment value of the optical storage device based on the feed network power and the feed network power limit includes: If the feeding network power is less than or equal to the feeding network power limit, the power adjustment value is calculated based on the power difference between the feeding network power and the feeding network power limit and the first device quantity of the optical storage device; If the grid feeding power is greater than the grid feeding power limit, the power adjustment value is calculated based on the power difference and the current output power of the optical storage device.
5. The power control method according to claim 4, characterized in that: The calculating the power adjustment value based on the power difference and the current output power of the optical storage device includes: Calculating a target adjustment value based on the power difference and the current output power; If the current output power is greater than the target adjustment value, the target adjustment value is used as the power adjustment value of the corresponding solar energy storage device; If the current output power is less than or equal to the target adjustment value, the power adjustment value of the corresponding photovoltaic storage device is determined according to the current output power.
6. The power control method according to claim 5, characterized in that: The calculating the target adjustment value based on the power difference and the current output power includes: The power difference is used as the initial value of the difference variable and assigned to the difference variable, and the current output power is used as the initial value of the corresponding power variable and assigned to the corresponding power variable; Detecting a value of a power variable corresponding to the optical storage device; If the value of the power variable is greater than a preset value, determining the value of the power variable as a valid value, determining the optical storage device corresponding to the power variable as a target device, and counting the number of second devices of the target device; Calculating a reference adjustment value and accumulating the reference adjustment value according to the value of the difference variable and the second device quantity; Based on the reference adjustment value, updating the effective value corresponding to the target device and updating the value of the difference variable according to a preset rule; detecting the value of the difference variable; If the value of the difference variable is greater than zero, returning the value of the power variable corresponding to the optical storage device; If the value of the difference variable is equal to zero, the accumulated reference adjustment value is determined as the target adjustment value.
7. The power control method according to claim 6, characterized in that: The updating of the effective value corresponding to the target device and the value of the difference variable based on the reference adjustment value according to a preset rule includes: In each loop cycle, any target device whose valid value is not updated is selected; If the effective value corresponding to any target device is greater than the reference adjustment value, reduce the effective value corresponding to any target device according to the reference adjustment value, reduce the value of the difference variable according to the reference adjustment value, and accumulate the number of cycles; If the effective value corresponding to any target device is less than or equal to the reference adjustment value, according to the effective value corresponding to any target device, reduce the value of the difference variable, set the effective value corresponding to any target device to zero, and accumulate the number of cycles; If the number of cycles is greater than the second number of devices, the value of the difference variable is detected.
8. The power control method according to claim 4, characterized in that: The calculating the power adjustment value based on the power difference between the feeding network power and the feeding network power limit and the first device quantity of the optical storage device includes: Calculating a ratio of the power difference to the number of the first devices; The absolute value of the ratio is used as the power adjustment value.
9. A master control device, characterized in that: The invention comprises a memory, a processor and computer-readable instructions stored in the memory and executable on the processor, wherein the computer-readable instructions implement the power control method according to any one of claims 1 to 8 when executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the power control method according to any one of claims 1 to 8 is implemented.