Photovoltaic energy storage control method and control device
By adjusting the peak-cutting and valley-filling strategy and energy storage control power of the photovoltaic energy storage system, the problem that the existing photovoltaic energy storage system cannot take into account both peak-cutting and valley-filling and photovoltaic absorption, achieving efficient adaptation and maximizing the utilization of photovoltaic power under different working conditions.
Patent Information
- Application Number
- CN202411591502.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-02-25
AI Technical Summary
The existing photovoltaic energy storage system has a single operating mode when implementing the peak-cutting and valley filling strategy, and cannot take into account both peak-cutting and valley filling and photovoltaic absorption, and cannot adapt to complex working conditions.
By obtaining the actual power of the checkpoint and the charging and discharging power of the energy storage system when the peak-cutting and valley-filling strategy was last implemented, the current peak-cutting and valley-filling strategy and the output energy storage control power were adjusted to adapt to different working conditions.
It has achieved the maximum use of photovoltaic power generation without changing the original strategy, so that the actual power of the checkpoint is basically maintained at 0, taking into account peak cutting and valley filling and photovoltaic absorption, and adapting to complex working conditions.
Smart Images

Figure CN119518894A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of photovoltaic energy storage technology, and in particular to a photovoltaic energy storage control method and control device. Background Art
[0002] With the widespread application of distributed photovoltaic systems, especially in industrial plants, photovoltaic energy storage systems have become an effective means to optimize electricity use and reduce electricity bills.
[0003] However, current photovoltaic energy storage systems mostly have a relatively simple operating mode when implementing peak shaving and valley filling strategies. They can only control the charging and discharging of the energy storage system with a fixed power, and cannot take into account both peak shaving and valley filling and photovoltaic absorption at the same time, and cannot adapt to complex working conditions.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a photovoltaic energy storage control method, which aims to solve the problem that the existing photovoltaic energy storage system has a single operating mode when implementing the peak shaving and valley filling strategy, and cannot take into account both peak shaving and valley filling and photovoltaic absorption at the same time.
[0006] To achieve the above-mentioned purpose, the photovoltaic energy storage control method proposed in the present application is applied to a photovoltaic energy storage system, wherein the gateway of the photovoltaic energy storage system is connected to a power grid, and the photovoltaic energy storage system includes a photovoltaic power generation system, an energy storage system and a load, and the method includes:
[0007] Obtain the actual power of the gateway, and determine the total power consumption status between the photovoltaic power generation system, the energy storage system and the load according to the actual power of the gateway;
[0008] Obtain the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed, and determine the charge and discharge state of the energy storage system when the peak shaving and valley filling strategy was last executed according to the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed;
[0009] According to the total power consumption status and the charging and discharging status of the energy storage system when the peak shaving and valley filling strategy was last executed, based on the settings of the current peak shaving and valley filling strategy, the current peak shaving and valley filling strategy and the output energy storage control power are adjusted; among which, the energy storage control power is used to indicate the charging and discharging power sent to the energy storage system.
[0010] In one embodiment, the step of adjusting the current peak shaving and valley filling strategy and the output energy storage control power according to the total power consumption state and the charge and discharge state of the energy storage system when the peak shaving and valley filling strategy was last executed, based on the setting of the current peak shaving and valley filling strategy, includes:
[0011] If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, the current charging setting is maintained and the first energy storage control power is output; where P1 is the actual power at the gateway, and P2 is the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed;
[0012] If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, the current discharge setting is maintained and the second energy storage control power is output;
[0013] If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to standby, the current standby setting is maintained and the output energy storage control power is zero.
[0014] In one embodiment, the step of adjusting the current peak shaving and valley filling strategy and the output energy storage control power according to the total power consumption state and the charge and discharge state of the energy storage system when the peak shaving and valley filling strategy was last executed, based on the setting of the current peak shaving and valley filling strategy, includes:
[0015] If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to charging, then when P1+P2+P3≥0, keep the current charging setting and output the first energy storage control power; when P1+P2+P3<0, keep the current charging setting and adjust the output to the third energy storage control power; where P1 is the actual power at the gateway, P2 is the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed, and P3 is the preset power threshold of peak shaving and valley filling;
[0016] If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to discharge, then when P1≥|P2|, keep the current discharge setting or change the setting of the peak shaving and valley filling strategy to standby, and output the second energy storage control power; when P1<|P2|, change the setting of the peak shaving and valley filling strategy to charging, and adjust the output to the third energy storage control power;
[0017] If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to standby, then when P1≥|P2|, the current standby setting is maintained, and the output energy storage control power is zero; when P1<|P2|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to the third energy storage control power.
[0018] In one embodiment, the step of adjusting the current peak shaving and valley filling strategy and the output energy storage control power according to the total power consumption state and the charge and discharge state of the energy storage system when the peak shaving and valley filling strategy was last executed, based on the setting of the current peak shaving and valley filling strategy, includes:
[0019] If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, the current charging setting is maintained, and the fourth energy storage control power is output; wherein P1 is the actual power at the gateway, and P2 is the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed;
[0020] If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, then when P2>|P1|, the current discharge setting is maintained and the second energy storage control power is output; when P2≤|P1|, the setting of the peak shaving and valley filling strategy is changed to charging or standby, and the output is adjusted to the third energy storage control power;
[0021] If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to standby, then when P2>|P1|, the current standby setting is maintained, and the output energy storage control power is zero; when P2≤|P1|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to the third energy storage control power.
[0022] In one embodiment, the step of adjusting the current peak shaving and valley filling strategy and the output energy storage control power according to the total power consumption state and the charge and discharge state of the energy storage system when the peak shaving and valley filling strategy was last executed, based on the setting of the current peak shaving and valley filling strategy, includes:
[0023] If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to charging, the current charging setting is maintained, and the fourth energy storage control power is output; wherein P1 is the actual power at the gateway, and P2 is the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed;
[0024] If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to discharge or standby, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to the third energy storage control power.
[0025] In one embodiment, the energy storage system includes a battery; the first energy storage control power is P=-min{P3, P4, P6}; the second energy storage control power is P=min{|P1+P2|*n, P5, P6}; wherein P4 is the requested maximum charging power of the battery, P5 is the requested maximum discharging power of the battery, and P6 is the upper limit power of charging and discharging of the energy storage system; n is the anti-backflow coefficient of the power grid;
[0026] If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, then the current charging setting is maintained, and the steps of outputting the first energy storage control power are specifically as follows:
[0027] If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, then the current charging setting is maintained, and output P=-min{P3, P4, P6};
[0028] If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, then the current discharge setting is maintained, and the steps of outputting the second energy storage control power are specifically as follows:
[0029] If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, the current discharge setting is maintained, and P=min{|P1+P2|*n, P5, P6} is output.
[0030] In one embodiment, the energy storage system includes a battery; the first energy storage control power is P=-min{P3, P4, P6}; the second energy storage control power is P=min{|P1+P2|*n, P5, P6}; the third energy storage control power is P=-min{|P1+P2|, P4, P6}; wherein P3 is a preset power threshold for peak shaving and valley filling, P4 is a requested maximum charging power of the battery, P5 is a requested maximum discharging power of the battery, and P6 is a charging and discharging upper limit power of the energy storage system; n is an anti-backflow coefficient of the power grid;
[0031] If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to charging, then when P1+P2+P3≥0, keep the current charging setting and output the first energy storage control power; when P1+P2+P3<0, keep the current charging setting and adjust the output to the third energy storage control power. The specific steps are:
[0032] If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to charging, then when P1+P2+P3≥0, keep the current charging setting, and output P=-min{P3, P4, P6}; when P1+P2+P3<0, keep the current charging setting, and adjust the output to P=-min{|P1+P2|, P4, P6};
[0033] If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to discharge, then when P1≥|P2|, the current discharge setting is maintained and the second energy storage control power is output; when P1<|P2|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to the third energy storage control power. The specific steps are:
[0034] If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to discharge, then when P1≥|P2|, keep the current discharge setting, and output P=min{|P1+P2|*n, P5, P6}; when P1<|P2|, change the setting of the peak shaving and valley filling strategy to charging, and adjust the output to P=-min{|P1+P2|, P4, P6};
[0035] If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to standby, when P1<|P2|, the setting of the peak shaving and valley filling strategy is changed to charging, and the steps of adjusting the output to the third energy storage control power are specifically as follows:
[0036] If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to standby, when P1<|P2|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to P=-min{|P1+P2|, P4, P6}.
[0037] In one embodiment, the energy storage system includes a battery; the fourth energy storage control power is P=-min{max[|P1+P2|, P3], P4, P6}; the second energy storage control power is P=min{|P1+P2|*n, P5, P6}; the third energy storage control power is P=-min{|P1+P2|, P4, P6}; wherein P3 is a preset power threshold for peak shaving and valley filling, P4 is a requested maximum charging power of the battery, P5 is a requested maximum discharging power of the battery, and P6 is a charging and discharging upper limit power of the energy storage system; n is an anti-backflow coefficient of the power grid;
[0038] If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, then the current charging setting is maintained, and the steps of outputting the fourth energy storage control power are specifically as follows:
[0039] If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, then the current charging setting is maintained, and the output P=-min{max[|P1+P2|, P3], P4, P6};
[0040] If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, then when P2>|P1|, the current discharge setting is maintained and the second energy storage control power is output; when P2≤|P1|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to the third energy storage control power. The specific steps are:
[0041] If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, then when P2>|P1|, keep the current discharge setting, and output P=min{|P1+P2|*n, P5, P6}; when P2≤|P1|, change the setting of the peak shaving and valley filling strategy to charging, and adjust the output to P=-min{|P1+P2|, P4, P6};
[0042] If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to standby, when P2≤|P1|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to the third energy storage control power. Specifically, the steps are:
[0043] If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to standby, then when P2≤|P1|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to P=-min{|P1+P2|, P4, P6}.
[0044] In one embodiment, the energy storage system includes a battery; the fourth energy storage control power is P=-min{max[|P1+P2|, P3], P4, P6}; the third energy storage control power is P=-min{|P1+P2|, P4, P6}; wherein P3 is a preset power threshold for peak shaving and valley filling, P4 is a requested maximum charging power of the battery, P5 is a requested maximum discharging power of the battery, and P6 is a charging and discharging upper limit power of the energy storage system; n is a reverse flow prevention coefficient of the power grid;
[0045] If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to charging, then the current charging setting is maintained, and the steps of outputting the fourth energy storage control power are specifically as follows:
[0046] If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to charging, then the current charging setting is maintained, and the output P=-min{max[|P1+P2|, P3], P4, P6};
[0047] If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to discharge or standby, the step of changing the setting of the peak shaving and valley filling strategy to charging and adjusting the output to the third energy storage control power is specifically as follows:
[0048] If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to discharge or standby, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to P=-min{|P1+P2|, P4, P6}.
[0049] The present application also proposes a control device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the photovoltaic energy storage control method described above.
[0050] The technical solution of the present application adopts a photovoltaic energy storage control method, which is applied to a photovoltaic energy storage system. The method includes: obtaining the actual power of the gateway, and determining the total power consumption status between the photovoltaic power generation system, the energy storage system and the load according to the actual power of the gateway. If the actual power of the gateway is greater than or equal to 0, it means that the load is large, and the power generated by the photovoltaic power generation system is not enough to support the consumption of the load and can be completely absorbed. If the actual power of the gateway is less than 0, it means that the load is small, and the power generated by the photovoltaic power generation system is not enough to be completely absorbed and needs to be stored in the energy storage system. Obtain the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed, and determine the charge and discharge status of the energy storage system when the peak shaving and valley filling strategy was last executed according to the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed. In order to avoid the problem of the program jumping back and forth between different logics, it is necessary to first determine the last charge and discharge status of the energy storage system. If the charge and discharge power of the energy storage system is greater than or equal to 0 when the last peak shaving and valley filling strategy was executed, it means that the last instruction issued to the energy storage system was discharge or standby. If the charge and discharge power of the energy storage system is less than 0 when the last peak shaving and valley filling strategy was executed, it means that the last instruction issued to the energy storage system was charging. According to the total power consumption status and the charge and discharge status of the energy storage system when the peak shaving and valley filling strategy was last executed, based on the setting of the current peak shaving and valley filling strategy, adjust the current peak shaving and valley filling strategy and the output energy storage control power; wherein, the energy storage control power is used to indicate the charge and discharge power issued to the energy storage system. At this time, it is determined whether the state set by the peak shaving and valley filling strategy is charging, discharging or standby, and according to the actual power of the gateway and the different working conditions of the last charge and discharge of the energy storage system, the peak shaving and valley filling strategy and its corresponding energy storage control power are adjusted in time to better adapt to various operating conditions. The photovoltaic absorption scheme is optimized on the basis of the original strategy to ensure the maximum utilization of photovoltaic power generation, so that the actual power at the gateway is basically maintained at 0, taking into account both peak shaving and valley filling and photovoltaic absorption. The output energy storage control power is flexibly adjusted according to the real-time actual power to adapt to complex working conditions. Compared with the prior art, this application solves the problem that the existing photovoltaic energy storage system has a single operating mode when executing the peak shaving and valley filling strategy, and cannot take into account both peak shaving and valley filling and photovoltaic absorption at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art 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 the structures shown in these drawings without paying any creative work.
[0052] Figure 1 A schematic diagram of the flow chart of the first embodiment of the photovoltaic energy storage control method provided in this application;
[0053] Figure 2 A schematic diagram of the structure of a photovoltaic energy storage system according to an embodiment of a photovoltaic energy storage control method provided in the present application;
[0054] Figure 3 A schematic diagram of the flow chart of the second embodiment of the photovoltaic energy storage control method provided in this application;
[0055] Figure 4 A schematic diagram of the flow chart of the third embodiment of the photovoltaic energy storage control method provided in this application;
[0056] Figure 5 A schematic diagram of a fourth embodiment of the photovoltaic energy storage control method provided in this application;
[0057] Figure 6 A schematic diagram of the flow chart of the fifth embodiment of the photovoltaic energy storage control method provided in this application;
[0058] Figure 7 A schematic structural diagram of an embodiment of a control device provided in the present application.
[0059] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0060] 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 only 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.
[0061] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0062] In addition, the descriptions of "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0063] Current photovoltaic energy storage systems mostly operate in a relatively simple mode when implementing peak shaving and valley filling strategies. They can only control the charging and discharging of the energy storage system with a fixed power, and are unable to take into account both peak shaving and valley filling and photovoltaic consumption at the same time, and are unable to adapt to complex working conditions.
[0064] The present application proposes a photovoltaic energy storage control method.
[0065] See also Figure 2 In the first embodiment of the present application, the photovoltaic energy storage control method is applied to a photovoltaic energy storage system, the gateway of the photovoltaic energy storage system is connected to the power grid, and the photovoltaic energy storage system includes a photovoltaic power generation system, an energy storage system and a load.
[0066] It should be noted that the photovoltaic power generation system may include photovoltaic modules and photovoltaic inverters. Among them, the photovoltaic modules are used to convert sunlight into DC power, and the photovoltaic inverter is used to invert DC power into AC power for use by the load / energy storage system. The energy storage system may include lithium iron phosphate batteries and energy storage converters. Among them, the lithium iron phosphate battery is used to store electric energy, and the energy storage converter is used to convert the electric energy stored in the lithium iron phosphate battery into voltage and output it, or convert the input electric energy into voltage and store it in the lithium iron phosphate battery. The energy storage system can be a bidirectional system, charging when the valley electricity price or photovoltaic power generation is surplus, and discharging when the peak electricity price or photovoltaic power generation is insufficient. The photovoltaic power generation system, energy storage system, load and power grid are all coupled on the AC side. Among them, the load preferentially uses the electric energy generated by the photovoltaic power generation system. When the load is not enough to fully absorb the electric energy of the photovoltaic power generation system, the excess electric energy can be stored in the energy storage system.
[0067] It should be noted that the photovoltaic energy storage control method may also include a gateway meter for measuring the actual power of the gateway, and the gateway meter is arranged on a bus bar on one side close to the power grid.
[0068] It should be noted that the strategy of this embodiment does not control the photovoltaic power generation system to minimize the impact on the photovoltaic energy storage system. The strategy of this embodiment controls the energy storage system.
[0069] It should be noted that for the convenience of expression, the symbols and their descriptions can be defined as follows:
[0070] P1: The actual power of the gateway. Positive values represent power consumption, and negative values represent power generation and transmission. It can be collected in real time through the gateway meter.
[0071] P2: The energy storage charging and discharging power when the cutting strategy was last executed. Positive values represent discharging, and negative values represent charging.
[0072] P3: The preset power threshold for peak load reduction and valley filling refers to a specific power level set in power management to balance power demand and supply, used to indicate when to take measures to reduce peak load or increase valley power supply.
[0073] P4: The requested maximum charging power of the battery refers to the maximum power at which the battery can be charged safely and efficiently as set by the battery or battery management system (BMS).
[0074] P5: The requested maximum discharge power of the battery refers to the maximum power that the battery can release safely and effectively as set by the battery or battery management system (BMS).
[0075] P6: The upper limit power of charging and discharging of the energy storage system refers to the maximum power limit that the energy storage system can withstand during the charging and discharging process.
[0076] n: The anti-reverse flow coefficient of the power grid refers to a parameter set to prevent the electric energy generated by distributed power sources (such as photovoltaic power generation systems, etc.) from flowing back into the power grid. It is used to control and limit the maximum reverse power transmitted by the distributed power generation system to the power grid to protect the power grid equipment and ensure the stable operation of the power grid.
[0077] Based on this, see Figure 1 The steps of the photovoltaic energy storage control method include S100 to S300:
[0078] Step S100, obtaining the actual power P1 of the gateway, and determining the total power consumption state between the photovoltaic power generation system, the energy storage system and the load according to the actual power P1 of the gateway.
[0079] It should be noted that the actual power P1 at the gateway refers to the actual measured value of the electric energy exchanged between the power grid and the user side (including the photovoltaic power generation system, the energy storage system and the load). The actual power P1 can be positive, negative or zero, depending on the direction of the flow of electric energy. Among them, when the actual power P1 is a positive value, that is, the electric energy flows from the power grid to the user side, it means that the load is large, and the power generated by the photovoltaic power generation system is not enough to support the consumption of the load, and it can be completely absorbed. At this time, the insufficient part of the electric energy can be provided by the energy storage system. When the actual power P1 is a negative value, that is, the electric energy flows from the user side to the power grid, it means that the load is small, and the photovoltaic power generation system is not enough to be completely absorbed. At this time, the excess electric energy can be stored in the energy storage system. When the actual power P1 is zero, the energy flow between the photovoltaic power generation system, the energy storage system and the load is balanced, and no excess electric energy is transmitted to or obtained from the power grid.
[0080] Step S200, obtaining the charge and discharge power P2 of the energy storage system when the peak shaving and valley filling strategy was last executed, and determining the charge and discharge state of the energy storage system when the peak shaving and valley filling strategy was last executed according to the charge and discharge power P2 of the energy storage system when the peak shaving and valley filling strategy was last executed.
[0081] It should be noted that in order to avoid the control of the energy storage system jumping back and forth between different logics, it is necessary to determine the historical charge and discharge status, that is, the charge and discharge status of the energy storage system when the peak shaving and valley filling strategy was last executed. When the charge and discharge power P2 of the energy storage system is ≥ 0 when the peak shaving and valley filling strategy was last executed, it means that the energy storage system was in a discharging state or standby state when the peak shaving and valley filling strategy was last executed. When the charge and discharge power P2 of the energy storage system is < 0 when the peak shaving and valley filling strategy was last executed, it means that the energy storage system was in a charging state last time.
[0082] Step S300, according to the total power consumption state and the charge and discharge state of the energy storage system when the peak shaving and valley filling strategy was last executed, based on the setting of the current peak shaving and valley filling strategy, adjust the current peak shaving and valley filling strategy and the output energy storage control power; wherein the energy storage control power is used to indicate the charge and discharge power sent to the energy storage system.
[0083] It should be noted that peak shaving and valley filling is a power management strategy that aims to smooth the load curve of the power grid through the energy storage system, that is, to store energy (valley filling) when the power demand is low or the electricity price is low, and to release energy (peak shaving) when the power demand is high or the electricity price is high. This can reduce the pressure on the power grid during peak hours, while improving energy utilization efficiency, reducing electricity consumption during peak electricity prices, and reducing electricity costs. In this embodiment, the peak shaving and valley filling strategy includes charging, discharging and standby. Under different peak shaving and valley filling strategies, the corresponding energy storage control power can be output to indicate the charging and discharging power sent to the energy storage system.
[0084] It should be noted that photovoltaic absorption refers to the effective use and absorption of electricity generated by photovoltaic power generation, ensuring that it is received by the load, energy storage system or power grid. By using and storing excess electricity in real time, photovoltaic power can be used to the maximum extent, so as to increase the utilization rate of renewable energy, reduce the phenomenon of abandoned light, and achieve the development of clean energy.
[0085] It should be noted that the energy storage system may include a battery management system (BMS) for managing the charging and discharging of the battery. When the energy storage system is performing a charging operation, if the actual SOC value reaches the set first SOC upper limit threshold (which can be 100% by default), the battery management system can reduce the battery's requested charging current to 0, so that the battery is no longer charged. When the energy storage system is performing a discharging operation or standby, if the actual SOC value reaches the set second SOC lower limit threshold (which can be 5% by default), the battery management system can reduce the battery's requested discharge current to 0, so that the battery is no longer discharged. Among them, the first SOC upper limit threshold and the second SOC lower limit threshold can be specifically set according to the specific situation, and are not limited here.
[0086] In this embodiment, if P1≥0, it means that the load is large, and the power generated by the photovoltaic power generation system is not enough to support the consumption of the load, and it can be completely absorbed. If P1<0, it means that the load is small, and the power generated by the photovoltaic power generation system is not enough to be completely absorbed, and it needs to be stored in the energy storage system. In order to avoid the problem of the program jumping between different logics, it is necessary to first determine the charging and discharging status of the energy storage system last time. If P2≥0, it means that the last instruction issued to the energy storage system was discharge or standby. If P2<0, it means that the last instruction issued to the energy storage system was charging. At this time, it is determined whether the state set by the peak shaving and valley filling strategy is charging, discharging or standby, and the current peak shaving and valley filling strategy and the output energy storage control power are adjusted according to the different working conditions of P1 and P2, so that the current peak shaving and valley filling strategy and the output energy storage control power can adapt to different working conditions, and are adjusted on the basis of the original peak shaving and valley filling strategy settings, and photovoltaic absorption is performed to the greatest extent, ensuring that photovoltaic power can be used to the greatest extent, so that P1 is basically maintained at 0. In this way, this embodiment can take into account both peak shaving and valley filling and photovoltaic absorption, and adjust the output energy storage control power according to the real-time actual power to adapt to complex working conditions. Compared with the prior art, this embodiment solves the problem that the existing photovoltaic energy storage system has a single operating mode when executing the peak shaving and valley filling strategy, and cannot take into account both peak shaving and valley filling and photovoltaic absorption at the same time.
[0087] In this application, if the actual power P1 of the gateway is ≥0, it means that the load is large, and the power generated by the photovoltaic power generation system is not enough to support the consumption of the load, and it can be completely absorbed. If the actual power P1 of the gateway is <0, it means that the load is small, and the power generated by the photovoltaic power generation system is not enough to be completely absorbed, and it needs to be stored in the energy storage system. In order to avoid the problem of the program jumping between different logics, it is necessary to first judge the charging and discharging status of the energy storage system last time. If the charging and discharging power P2 of the energy storage system is ≥0 when the peak shaving and valley filling strategy was executed last time, it means that the last instruction issued to the energy storage system was discharge or standby. If the charging and discharging power P2 of the energy storage system is <0 when the peak shaving and valley filling strategy was executed last time, it means that the last instruction issued to the energy storage system was charging. At this time, it is determined whether the state set by the peak shaving and valley filling strategy is charging, discharging or standby, and the current peak shaving and valley filling strategy and the output energy storage control power are adjusted according to the actual power P1 of the gateway and the charging and discharging power P2 of the energy storage system when the peak shaving and valley filling strategy was executed last time. The current peak shaving and valley filling strategy and the output energy storage control power can adapt to different working conditions, and are adjusted on the basis of the setting of the original peak shaving and valley filling strategy, and photovoltaic absorption is performed to the greatest extent, ensuring that photovoltaic power can be used to the greatest extent, so that P1 is basically maintained at a state of 0. In this way, this embodiment can take into account both peak shaving and valley filling and photovoltaic absorption at the same time, and adjust the output energy storage control power according to the real-time actual power to adapt to complex working conditions. Compared with the prior art, the present application solves the problem that the existing photovoltaic energy storage system has a single operating mode when executing the peak shaving and valley filling strategy, and cannot take into account both peak shaving and valley filling and photovoltaic absorption at the same time.
[0088] See also Figure 3 , based on the first embodiment of the present application, in the second embodiment of the present application, step S300 includes steps S311 to S313:
[0089] Step S311: if P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, then the current charging setting is maintained and the first energy storage control power is output.
[0090] Step S312: if P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, the current discharge setting is maintained and the second energy storage control power is output.
[0091] Step S313: if P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to standby, the current standby setting is maintained, and the output energy storage control power is zero.
[0092] In a feasible implementation, the first energy storage control power is specifically P=-min{P3, P4, P6}, that is, the power is used to control the charging of the energy storage system, and the charging power is set to the minimum of P3, P4 and P6. In this way, the electric energy can be stored during the low electricity price period under the premise of meeting the photovoltaic consumption. The second energy storage control power is specifically P=min{|P1+P2|*n, P5, P6}, that is, the power is used to control the discharge of the energy storage system, and the discharge power is set to the product of the absolute value of (P1+P2) and the grid anti-reverse flow coefficient n, the minimum of P5 and P6. In this way, the maximum discharge power of the peak shaving and valley filling mode can be guaranteed to obtain the best economic benefits, and the electric energy will not be sent to the grid, which will affect the grid.
[0093] It should be noted that the anti-reverse flow coefficient n of the power grid can be set in the range of [0, 1]. The closer this coefficient is set to 1, the greater the risk of reverse power transmission of the photovoltaic energy storage system, but the greater the peak-shaving and valley-filling benefits generated; the closer this coefficient is to 0, the smaller the risk of reverse power transmission of the photovoltaic energy storage system, and conversely the smaller the peak-shaving and valley-filling benefits generated. In this embodiment, the coefficient can be adjusted according to actual conditions, and there is no limitation here.
[0094] Thus, in this embodiment, when P1≥0 and P2≥0, the current peak shaving and valley filling strategy settings can be adjusted, and the corresponding energy storage control power can be output, so that the current peak shaving and valley filling strategy and the output energy storage control power can adapt to the working conditions of P1≥0 and P2≥0, and adjustments are made on the basis of the original peak shaving and valley filling strategy settings, and photovoltaic consumption is maximized to ensure that photovoltaic power can be used to the maximum extent, so that P1 is basically maintained at 0. Thus, this embodiment can take into account both peak shaving and valley filling and photovoltaic consumption.
[0095] See also Figure 4 Based on the first embodiment of the present application, in the third embodiment of the present application, step S300 includes steps S321 to S323:
[0096] Step S321, if P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to charging, then when P1+P2+P3≥0, keep the current charging setting and output the first energy storage control power; when P1+P2+P3<0, keep the current charging setting and adjust the output to the third energy storage control power. In this way, it can not only ensure the maximum charging of the peak shaving and valley filling mode, but also store the excess photovoltaic power in the energy storage system to avoid the occurrence of power transmission to the grid.
[0097] Step S322, if P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to discharge, then when P1≥|P2|, keep the current discharge setting or change the setting of the peak shaving and valley filling strategy to standby, and output the second energy storage control power; when P1<|P2|, change the setting of the peak shaving and valley filling strategy to charging, and adjust the output to the third energy storage control power. It should be noted that when P1≥|P2|, it means that the load power is large. In order to perform the photovoltaic absorption function, the energy storage system needs to maintain discharge. At this time, the discharge power is set to the second energy storage control power, so that P1 is basically maintained at zero; when P1<|P2|, it means that the load power is small, and the energy storage charging power when the shaving strategy was executed last time is large, so it is necessary to reduce the energy storage charging power, and set the charging power to the third energy storage control power, so that P1 is basically maintained at zero.
[0098] Step S323, if P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to standby, then when P1≥|P2|, keep the current standby setting, and output energy storage control power is zero; when P1<|P2|, change the setting of the peak shaving and valley filling strategy to charging, and adjust the output to the third energy storage control power. In this way, part of the electricity generated by the photovoltaic power generation system that cannot be consumed by the load can be stored in the energy storage system, and at the same time, maintain P1 at zero to avoid obtaining electricity from the city grid when the peak shaving and valley filling is in standby mode.
[0099] In one feasible implementation, the first energy storage control power is specifically P=-min{P3, P4, P6}. The second energy storage control power is specifically P=min{|P1+P2|*n, P5, P6}. The third energy storage control power is specifically P=-min{|P1+P2|, P4, P6}, that is, this power is used to control the charging of the energy storage system, and the charging power is set to the minimum value of the absolute value of (P1+P2), P4 and P6, so as to store electric energy during low electricity price periods while meeting the photovoltaic consumption requirements.
[0100] Thus, in this embodiment, when P1≥0 and P2<0, the current peak shaving and valley filling strategy settings can be adjusted, and the corresponding energy storage control power can be output, so that the current peak shaving and valley filling strategy and the output energy storage control power can adapt to the working conditions of P1≥0 and P2<0, and adjustments are made on the basis of the original peak shaving and valley filling strategy settings, and photovoltaic consumption is maximized to ensure that photovoltaic power can be used to the maximum extent, so that P1 is basically maintained at 0. Thus, this embodiment can take into account both peak shaving and valley filling and photovoltaic consumption.
[0101] See also Figure 5 Based on the first embodiment of the present application, in the fourth embodiment of the present application, step S300 includes steps S331 to S333:
[0102] Step S331: If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, the current charging setting is maintained, and the fourth energy storage control power is output. It should be noted that P1<0 indicates that power is sent to the grid, and P2≥0 (i.e., the energy storage system last performed discharge), and the current peak shaving and valley filling is a charging period, so it is necessary to maintain the current peak shaving and valley filling strategy as the charging setting, and the charging power is the fourth energy storage control power.
[0103] Step S332, if P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, then when P2>|P1|, keep the current discharge setting and output the second energy storage control power; when P2≤|P1|, change the setting of the peak shaving and valley filling strategy to charging or standby, and adjust the output to the third energy storage control power. It should be noted that when P2>|P1|, it means that the discharge power during the last execution of the shaving strategy was too large, causing power to be sent to the grid, so it is necessary to reduce the discharge power, that is, output the second energy storage control power. When P2≤|P1|, it means that the power generated by the photovoltaic system is large. In order to perform the photovoltaic absorption function, the energy storage system needs to be charged, and the charging power is the third energy storage control power, so that P1 is basically maintained at a state equal to zero. In this way, part of the electricity generated by the photovoltaic power generation system that cannot be absorbed by the load can be stored in the energy storage system.
[0104] Step S333: If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to standby, then when P2>|P1|, keep the current standby setting, and output the energy storage control power to zero; when P2≤|P1|, change the setting of the peak shaving and valley filling strategy to charging, and adjust the output to the third energy storage control power. In this way, part of the electricity generated by the photovoltaic power generation system that cannot be consumed by the load can be stored in the energy storage system.
[0105] In one feasible implementation, the second energy storage control power is specifically P=min{|P1+P2|*n, P5, P6}. The third energy storage control power is specifically P=-min{|P1+P2|, P4, P6}. The fourth energy storage control power is specifically P=-min{max[|P1+P2|, P3], P4, P6}, that is, the power is used to control the charging of the energy storage system, and the charging power is set to the minimum value of the first maximum value, P4 and P6, wherein the first maximum value is the maximum value of the absolute value of (P1+P2) and P3.
[0106] Thus, in this embodiment, when P1<0 and P2≥0, the current peak shaving and valley filling strategy settings can be adjusted, and the corresponding energy storage control power can be output, so that the current peak shaving and valley filling strategy and the output energy storage control power can adapt to the working conditions of P1<0 and P2≥0, and adjustments are made on the basis of the original peak shaving and valley filling strategy settings, and photovoltaic consumption is maximized to ensure that photovoltaic power can be used to the maximum extent, so that P1 is basically maintained at 0. Thus, this embodiment can take into account both peak shaving and valley filling and photovoltaic consumption.
[0107] See also Figure 6 , based on the first embodiment of the present application, in the fifth embodiment of the present application, step S300 includes steps S341-S342:
[0108] Step S341: If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to charging, the current charging setting is maintained and the fourth energy storage control power is output. Outputting the fourth energy storage control power can increase the charging power of the energy storage system, so that P1 changes from less than 0 to equal to 0, and stores part of the electric energy that cannot be absorbed by photovoltaics.
[0109] Step S342: If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to discharge or standby, the peak shaving and valley filling strategy is changed to charge, and the output is adjusted to the third energy storage control power. In this way, part of the electricity generated by the photovoltaic power generation system that cannot be consumed by the load can be stored in the energy storage system.
[0110] In a feasible implementation manner, the third energy storage control power is P=-min{|P1+P2|, P4, P6}. The fourth energy storage control power is P=-min{max[|P1+P2|, P3], P4, P6}.
[0111] Thus, in this embodiment, when P1<0 and P2<0, the current peak shaving and valley filling strategy settings can be adjusted, and the corresponding energy storage control power can be output, so that the current peak shaving and valley filling strategy and the output energy storage control power can adapt to the working conditions of P1<0 and P2<0, and adjustments are made on the basis of the original peak shaving and valley filling strategy settings, and photovoltaic consumption is maximized to ensure that photovoltaic power can be used to the maximum extent, so that P1 is basically maintained at 0. Thus, this embodiment can take into account both peak shaving and valley filling and photovoltaic consumption.
[0112] In order to help understand the specific operation process of the embodiments of the present application under different working conditions, based on the first to fifth embodiments, in the sixth embodiment of the present application, the first energy storage control power is set to be P=-min{P3, P4, P6}, the second energy storage control power is set to be P=min{|P1+P2|*n, P5, P6}, the third energy storage control power is set to be P=-min{|P1+P2|, P4, P6}, and the fourth energy storage control power is set to be P=-min{max[|P1+P2|, P3], P4, P6}. And it is assumed that P3 is set to 100, P4 is set to 500, P5 is set to 500, P6 is set to 500, and n is set to 1.
[0113] When P1=200, P2=50, and the current peak-shaving and valley-filling strategy is set to charging, the current charging setting is maintained, and the output P=-min{P3, P4, P6}=-100. In this way, the electric energy can be stored during the low electricity price period under the premise of meeting the photovoltaic consumption.
[0114] When P1=200, P2=50, and the current peak shaving and valley filling strategy is set to discharge, the current discharge setting is maintained at this time, and the output P=min{|P1+P2|*n, P5, P6}=250. In this way, the maximum discharge power of the peak shaving and valley filling mode can be guaranteed to obtain the best economic benefits, and the power will not be sent to the power grid, which will affect the power grid.
[0115] When P1=200, P2=50, and the current peak shaving and valley filling strategy is set to standby, the current standby setting is maintained at this time, and output P=0.
[0116] When P1=200, P2=-50, and the current peak shaving and valley filling strategy is set to charging, since P1+P2+P3≥0, the current charging setting is maintained at this time, and the output P=-min{P3, P4, P6}=-100. When P1=200, P2=-400, and the current peak shaving and valley filling strategy is set to charging, since P1+P2+P3<0, the current charging setting is maintained at this time, and the output P=-min{|P1+P2|, P4, P6}=-200. In this way, the maximum charging of the peak shaving and valley filling mode can be guaranteed, and the excess photovoltaic power can be stored in the energy storage system to avoid the occurrence of power transmission to the grid.
[0117] When P1=200,P2=-50,and the current peak shaving and valley filling strategy is set to discharge,because P1≥|P2|,then keep the current discharge setting or change the peak shaving and valley filling strategy to standby,output P=min{|P1+P2|*n,P5,P6}=150。This indicates that the load power is large,and the energy storage system needs to keep discharging for the photovoltaic absorption function。When P1=200,P2=-400,and the current peak shaving and valley filling strategy is set to discharge,because P1<|P2|,then change the peak shaving and valley filling strategy to charging,output P=-min{|P1+P2|,P4,P6}=-200。This indicates that the load power is small,and the energy storage charging power is large when the shaving strategy was executed last time,so the energy storage charging power needs to be reduced to -200。
[0118] When P1=200, P2=-50, and the current peak shaving and valley filling strategy is set to standby, since P1≥|P2|, the current standby setting is maintained at this time, and P=0 is output. When P1=200, P2=-400, since P1<|P2|, the peak shaving and valley filling strategy is changed to charging at this time, and P=-min{|P1+P2|, P4, P6}=-200 is output. In this way, part of the electricity generated by the photovoltaic power generation system that cannot be consumed by the load can be stored in the energy storage system. At the same time, P1 is maintained at zero to avoid obtaining electricity from the city grid when the peak shaving and valley filling is in standby mode.
[0119] When P1=-200, P2=50, and the current peak shaving and valley filling strategy is set to charging, the current charging setting is maintained, and the output P=-min{max[|P1+P2|, P3], P4, P6}=-150. P1<0 means that power is sent to the grid, and P2≥0 (i.e., the last time the energy storage system was discharged), and the current peak shaving and valley filling is a charging period, so the current peak shaving and valley filling strategy needs to be maintained as the charging setting.
[0120] When P1=-100, P2=200, and the current peak shaving and valley filling strategy is set to discharge, since P2>|P1|, the current discharge setting is maintained at this time, and the output P=min{|P1+P2|*n, P5, P6}=100. At this time, since the discharge power was too large when the shaving strategy was executed last time, it caused power to be sent to the grid, so the discharge power needs to be reduced to 100. When P1=-200, P2=50, and the current peak shaving and valley filling strategy is set to discharge, since P2≤|P1|, the peak shaving and valley filling strategy is changed to charging or standby at this time, and the output P=-min{|P1+P2|, P4, P6}=-150. At this time, it means that the power generated by the photovoltaic system is large. In order to perform the photovoltaic absorption function, the energy storage system needs to be charged so that P1 is basically maintained at a state equal to zero.
[0121] When P1=-100, P2=200, and the current peak shaving and valley filling strategy is set to standby, since P2>|P1|, the current standby setting is maintained at this time, and the output P=0. When P1=-200, P2=50, and the current peak shaving and valley filling strategy is set to standby, since P2≤|P1|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output P=-min{|P1+P2|, P4, P6}=-150. In this way, part of the electricity generated by the photovoltaic power generation system that cannot be consumed by the load can be stored in the energy storage system, so that P1 is basically maintained at a state equal to zero.
[0122] When P1 = -100, P2 = -100, and the current peak shaving and valley filling strategy is set to charging, the current charging setting is maintained, and the output P = -min{max[|P1+P2|, P3], P4, P6} = -200. In this way, the charging power of the energy storage system can be increased, so that P1 changes from less than 0 to equal to 0, and the part of the electric energy that cannot be absorbed by photovoltaics is stored.
[0123] When P1=-100, P2=-100, and the current peak shaving and valley filling strategy is set to discharge or standby, the peak shaving and valley filling strategy is changed to charging, and the output P=-min{|P1+P2|, P4, P6}=-200. In this way, P1 can be changed from less than 0 to equal to 0, and some of the electric energy that cannot be absorbed by photovoltaics can be stored.
[0124] To summarize, setting the first energy storage control power to be P=-min{P3, P4, P6}, the second energy storage control power to be P=min{|P1+P2|*n, P5, P6}, the third energy storage control power to be P=-min{|P1+P2|, P4, P6}, and the fourth energy storage control power to be P=-min{max[|P1+P2|, P3], P4, P6} can ensure that when peak shaving and valley filling is discharging (i.e., high electricity price), on the basis of photovoltaic absorption, the discharge of the energy storage system is maximized to increase the profit; when peak shaving and valley filling is charging (i.e., low electricity price), on the basis of photovoltaic absorption, the charging of the energy storage system is maximized, and the energy storage system is discharged when the electricity price is high; when peak shaving and valley filling is standby (i.e., flat electricity price), only photovoltaic absorption is performed. Thus, compared with the existing photovoltaic energy storage system, the peak shaving and valley filling strategy and energy storage control power executed in this embodiment can maintain the actual power of the photovoltaic energy storage system at the gateway to 0 under different working conditions, taking into account both peak shaving and valley filling and photovoltaic consumption.
[0125] The present application provides a control device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the photovoltaic energy storage control method in the above-mentioned embodiment one.
[0126] Reference below Figure 7 , which shows a schematic diagram of the structure of a control device suitable for implementing an embodiment of the present application. The control device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The control device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0127] like Figure 7 As shown, the control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the control device to communicate with other devices wirelessly or by wire to exchange data. Although the control device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0128] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0129] The control device provided in the present application adopts the photovoltaic energy storage control method in the above embodiment, which can solve the technical problem that the existing photovoltaic energy storage system has a single operation mode when executing the peak shaving and valley filling strategy, and cannot take into account both peak shaving and valley filling and photovoltaic consumption. Compared with the prior art, the beneficial effects of the control device provided in the present application are the same as the beneficial effects of the photovoltaic energy storage control method provided in the above embodiment, and the other technical features in the control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0130] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0131] The above description is only an exemplary embodiment of the present application and does not limit the patent scope of the present application. All equivalent structural changes made by using the contents of the present application specification and drawings under the technical concept of the present application, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A photovoltaic energy storage control method, characterized in that: Applied to a photovoltaic energy storage system, the gateway of the photovoltaic energy storage system is connected to a power grid, the photovoltaic energy storage system includes a photovoltaic power generation system, an energy storage system and a load, and the method includes: Obtain the actual power of the gateway, and determine the total power consumption status between the photovoltaic power generation system, the energy storage system and the load according to the actual power of the gateway; Obtain the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed, and determine the charge and discharge state of the energy storage system when the peak shaving and valley filling strategy was last executed according to the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed; According to the total power consumption status and the charging and discharging status of the energy storage system when the peak shaving and valley filling strategy was last executed, based on the settings of the current peak shaving and valley filling strategy, the current peak shaving and valley filling strategy and the output energy storage control power are adjusted; among which, the energy storage control power is used to indicate the charging and discharging power sent to the energy storage system.
2. The photovoltaic energy storage control method according to claim 1, characterized in that: The step of adjusting the current peak shaving and valley filling strategy and the output energy storage control power according to the total power consumption state and the charge and discharge state of the energy storage system when the peak shaving and valley filling strategy was last executed, based on the setting of the current peak shaving and valley filling strategy, comprises: If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, the current charging setting is maintained and the first energy storage control power is output; where P1 is the actual power at the gateway, and P2 is the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed; If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, the current discharge setting is maintained and the second energy storage control power is output; If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to standby, the current standby setting is maintained and the output energy storage control power is zero.
3. The photovoltaic energy storage control method according to claim 1, characterized in that: The step of adjusting the current peak shaving and valley filling strategy and the output energy storage control power according to the total power consumption state and the charge and discharge state of the energy storage system when the peak shaving and valley filling strategy was last executed, based on the setting of the current peak shaving and valley filling strategy, comprises: If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to charging, then when P1+P2+P3≥0, keep the current charging setting and output the first energy storage control power; when P1+P2+P3<0, keep the current charging setting and adjust the output to the third energy storage control power; where P1 is the actual power at the gateway, P2 is the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed, and P3 is the preset power threshold of peak shaving and valley filling; If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to discharge, then when P1≥|P2|, keep the current discharge setting or change the setting of the peak shaving and valley filling strategy to standby, and output the second energy storage control power; when P1<|P2|, change the setting of the peak shaving and valley filling strategy to charging, and adjust the output to the third energy storage control power; If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to standby, then when P1≥|P2|, the current standby setting is maintained, and the output energy storage control power is zero; when P1<|P2|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to the third energy storage control power.
4. The photovoltaic energy storage control method according to claim 1, characterized in that: The step of adjusting the current peak shaving and valley filling strategy and the output energy storage control power according to the total power consumption state and the charge and discharge state of the energy storage system when the peak shaving and valley filling strategy was last executed, based on the setting of the current peak shaving and valley filling strategy, comprises: If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, the current charging setting is maintained, and the fourth energy storage control power is output; wherein P1 is the actual power at the gateway, and P2 is the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed; If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, then when P2>|P1|, the current discharge setting is maintained and the second energy storage control power is output; when P2≤|P1|, the setting of the peak shaving and valley filling strategy is changed to charging or standby, and the output is adjusted to the third energy storage control power; If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to standby, then when P2>|P1|, the current standby setting is maintained, and the output energy storage control power is zero; when P2≤|P1|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to the third energy storage control power.
5. The photovoltaic energy storage control method according to claim 1, characterized in that: The step of adjusting the current peak shaving and valley filling strategy and the output energy storage control power according to the total power consumption state and the charge and discharge state of the energy storage system when the peak shaving and valley filling strategy was last executed, based on the setting of the current peak shaving and valley filling strategy, comprises: If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to charging, the current charging setting is maintained, and the fourth energy storage control power is output; wherein P1 is the actual power at the gateway, and P2 is the charge and discharge power of the energy storage system when the peak shaving and valley filling strategy was last executed; If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to discharge or standby, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to the third energy storage control power.
6. The photovoltaic energy storage control method according to claim 2, characterized in that: The energy storage system includes a battery; the first energy storage control power is P=-min{P3, P4, P6}; the second energy storage control power is P=min{|P1+P2|*n, P5, P6}; wherein P3 is a preset power threshold for peak shaving and valley filling, P4 is a requested maximum charging power of the battery, P5 is a requested maximum discharging power of the battery, and P6 is a charging and discharging upper limit power of the energy storage system; n is a reverse flow prevention coefficient of the power grid; If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, then the current charging setting is maintained, and the step of outputting the first energy storage control power is specifically as follows: If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, then the current charging setting is maintained, and output P=-min{P3, P4, P6}; If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, then the current discharge setting is maintained, and the steps of outputting the second energy storage control power are specifically as follows: If P1≥0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, the current discharge setting is maintained, and P=min{|P1+P2|*n, P5, P6} is output.
7. The photovoltaic energy storage control method according to claim 3, characterized in that: The energy storage system includes a battery; the first energy storage control power is P=-min{P3, P4, P6}; the second energy storage control power is P=min{|P1+P2|*n, P5, P6}; the third energy storage control power is P=-min{|P1+P2|, P4, P6}; wherein P3 is a preset power threshold for peak shaving and valley filling, P4 is a requested maximum charging power of the battery, P5 is a requested maximum discharging power of the battery, and P6 is a charging and discharging upper limit power of the energy storage system; n is a reverse flow prevention coefficient of the power grid; If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to charging, then when P1+P2+P3≥0, keep the current charging setting and output the first energy storage control power; when P1+P2+P3<0, keep the current charging setting and adjust the output to the third energy storage control power. The specific steps are: If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to charging, then when P1+P2+P3≥0, keep the current charging setting, and output P=-min{P3, P4, P6}; when P1+P2+P3<0, keep the current charging setting, and adjust the output to P=-min{|P1+P2|, P4, P6}; If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to discharge, then when P1≥|P2|, the current discharge setting is maintained and the second energy storage control power is output; when P1<|P2|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to the third energy storage control power. The specific steps are: If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to discharge, then when P1≥|P2|, keep the current discharge setting, and output P=min{|P1+P2|*n, P5, P6}; when P1<|P2|, change the setting of the peak shaving and valley filling strategy to charging, and adjust the output to P=-min{|P1+P2|, P4, P6}; If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to standby, when P1<|P2|, the setting of the peak shaving and valley filling strategy is changed to charging, and the steps of adjusting the output to the third energy storage control power are specifically as follows: If P1≥0, P2<0, and the current peak shaving and valley filling strategy is set to standby, when P1<|P2|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to P=-min{|P1+P2|, P4, P6}.
8. The photovoltaic energy storage control method according to claim 4, characterized in that: The energy storage system includes a battery; the fourth energy storage control power is P=-min{max[|P1+P2|, P3], P4, P6}; the second energy storage control power is P=min{|P1+P2|*n, P5, P6}; the third energy storage control power is P=-min{|P1+P2|, P4, P6}; wherein P3 is a preset power threshold for peak shaving and valley filling, P4 is a requested maximum charging power of the battery, P5 is a requested maximum discharging power of the battery, and P6 is a charging and discharging upper limit power of the energy storage system; n is an anti-backflow coefficient of the power grid; If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, then the current charging setting is maintained, and the steps of outputting the fourth energy storage control power are specifically as follows: If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to charging, then the current charging setting is maintained, and the output P=-min{max[|P1+P2|, P3], P4, P6}; If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, then when P2>|P1|, the current discharge setting is maintained and the second energy storage control power is output; when P2≤|P1|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to the third energy storage control power. The specific steps are: If P1<0, P2≥0, and the current peak shaving and valley filling strategy is set to discharge, then when P2>|P1|, keep the current discharge setting, and output P=min{|P1+P2|*n, P5, P6}; when P2≤|P1|, change the setting of the peak shaving and valley filling strategy to charging, and adjust the output to P=-min{|P1+P2|, P4, P6}; If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to standby, when P2≤|P1|, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to the third energy storage control power. Specifically, the steps are: If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to standby, then when P2≤|P1|, the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to P=-min{|P1+P2|, P4, P6}.
9. The photovoltaic energy storage control method according to claim 5, characterized in that: The energy storage system includes a battery; the fourth energy storage control power is P=-min{max[|P1+P2|, P3], P4, P6}; the third energy storage control power is P=-min{|P1+P2|, P4, P6}; wherein P3 is a preset power threshold for peak shaving and valley filling, P4 is a requested maximum charging power of the battery, P5 is a requested maximum discharging power of the battery, and P6 is a charging and discharging upper limit power of the energy storage system; n is a reverse flow prevention coefficient of the power grid; If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to charging, then the current charging setting is maintained, and the steps of outputting the fourth energy storage control power are specifically as follows: If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to charging, then the current charging setting is maintained, and the output P=-min{max[|P1+P2|, P3], P4, P6}; If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to discharge or standby, the step of changing the setting of the peak shaving and valley filling strategy to charging and adjusting the output to the third energy storage control power is specifically as follows: If P1<0, P2<0, and the current peak shaving and valley filling strategy is set to discharge or standby, the setting of the peak shaving and valley filling strategy is changed to charging, and the output is adjusted to P=-min{|P1+P2|, P4, P6}.
10. A control device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the photovoltaic energy storage control method according to any one of claims 1 to 9.