Off-grid micro-grid control method, system and device and storage medium
Through the off-grid microgrid control method, the power of the energy storage system and the power generation of the photovoltaic system are detected, and the connection between the energy storage system and the public power grid is controlled, which solves the problem of poor power quality, achieves stable and high-quality electricity consumption and improves economic benefits.
Patent Information
- Application Number
- CN202510635758.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-16
- Publication Date
- 2025-09-12
AI Technical Summary
In areas with weak grid infrastructure, poor power quality leads to equipment damage, reduced production efficiency and health impacts. Existing technologies are unable to quickly and effectively solve problems such as voltage fluctuations, frequency instability and harmonic pollution.
An off-grid microgrid control method is adopted. By detecting the power of the energy storage system and the power generation of the photovoltaic system, the connection between the energy storage system and the public power grid is controlled. The energy storage system and the photovoltaic system are used to carry the load together to output stable and high-quality electricity to meet the electricity needs of users.
It achieves high-quality electricity use in areas with weak grid infrastructure, improves system utilization and economic benefits, reduces user demand electricity charges, has flexible dynamic control capabilities and multi-dimensional management, and supports unmanned operation and maintenance.
Smart Images

Figure CN120638460A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power grid control technology, and in particular to an off-grid microgrid control method, system, device and storage medium. Background Art
[0002] In areas with weak power grid infrastructure (such as some remote and underdeveloped regions), poor power quality is a significant issue affecting economic development and the quality of life of residents. Power quality refers to the stability and reliability of parameters such as voltage, current, and frequency during the provision of power services by the power system. Poor power quality can lead to equipment damage, reduced productivity, and even health problems. Power quality issues are common in these areas, manifesting primarily in the following areas: frequent power outages and blackouts. Many countries suffer from outdated power grid infrastructure, limited transmission and distribution capabilities, untimely maintenance, and outdated technology, leading to a high frequency of grid failures. Voltage fluctuations and instability are primarily manifested in grid voltages that are too low, with phase voltages regularly falling below 200V, or too high, with phase voltages regularly exceeding 250V. Unstable voltage can easily prevent equipment from starting properly and may even damage electrical appliances. Frequency fluctuations are wide, with some countries and regions experiencing particularly large fluctuations, ranging from 42 to 55Hz. When the grid frequency is unstable, the efficiency and safety of power equipment are compromised. The power grid suffers from severe harmonic pollution. Harmonic currents can cause overheating and damage to power equipment, shortening its service life. They can also interfere with communications equipment and other electronic systems. Aging equipment and a lack of effective harmonic filtering devices make it difficult to eliminate and reduce the impact of harmonics on the power grid. Summary of the Invention
[0003] The main purpose of the present invention is to propose an off-grid microgrid control method, system, device and storage medium, aiming to solve the problem of poor power quality in areas with weak grid infrastructure.
[0004] To achieve the above-mentioned object, the present invention proposes an off-grid microgrid control method, which includes:
[0005] Detect the current power of the energy storage system;
[0006] When the current power level is greater than the first power level, controlling the incoming switch to disconnect the energy storage system from the public power grid;
[0007] When the energy storage system is not disconnected from the public power grid, detecting the power consumption of the load and the power generation of the photovoltaic system;
[0008] When the difference between the power consumption and the power generation is greater than the power offset, the energy storage system is controlled to discharge at a first preset power.
[0009] In one embodiment, after the step of detecting the power consumption of the load and the power generation of the photovoltaic system when the energy storage system is not disconnected from the public power grid, the method further includes:
[0010] When the difference between the power consumption and the generated power is less than the power offset, controlling the energy storage system to be in standby mode;
[0011] When the generated power is greater than the consumed power, the energy storage system is controlled to be charged at a second preset power.
[0012] In one embodiment, after the step of detecting the current power of the energy storage system, the following steps are included:
[0013] When the current power is less than or equal to the first power and greater than or equal to the second power, detecting the power consumption of the load and the power generation power of the photovoltaic system; the first power is greater than the second power;
[0014] When the generated power is greater than the consumed power, controlling the energy storage system to charge at the second preset power;
[0015] When the energy storage system is being charged, the step of detecting the current power level of the energy storage system is performed.
[0016] In one embodiment, after the step of detecting the power consumption of the load and the power generation power of the photovoltaic system when the current power consumption is less than or equal to the first power consumption and greater than or equal to the second power consumption, the method further includes:
[0017] When the generated power is less than or equal to the consumed power, the energy storage system is controlled to be in standby mode.
[0018] In one embodiment, after the step of detecting the current power of the energy storage system, the following steps are included:
[0019] When the current power is less than the second power, detecting the power consumption of the load and the power generation of the photovoltaic system;
[0020] When the generated power is greater than the consumed power, controlling the energy storage system to charge at the third preset power;
[0021] When the generated power is less than or equal to the consumed power, the energy storage system is controlled to be charged at a fourth preset power.
[0022] In one embodiment, after the step of detecting the current power of the energy storage system, the following steps are included:
[0023] When the current power level is greater than or equal to a third power level, limiting the power generation power of the photovoltaic module to be lower than a first limit power; the third power level is greater than the first power level;
[0024] detecting the power consumption of the load and the power generation power of the photovoltaic system, and controlling the energy storage system to discharge at a first preset power when the difference between the power consumption and the power generation power is greater than or equal to a power offset;
[0025] When the difference between the power consumption and the generated power is less than the power offset, controlling the energy storage system to be in standby mode;
[0026] The current power of the energy storage system is detected, and when the current power is less than the third power, the power generation power of the photovoltaic module is limited to be lower than a second limited power; the first limited power is less than the second limited power.
[0027] In one embodiment, before the step of detecting the current power of the energy storage system, the following steps are included:
[0028] Detecting whether the energy storage system is provided with an anti-backflow device;
[0029] When an anti-backflow device is detected, limiting the power generation power of the photovoltaic module;
[0030] When the backflow prevention device is not detected, the photovoltaic module is controlled to generate electricity at maximum power.
[0031] The present invention further provides a microgrid system, which is used to execute the off-grid microgrid control method described above. The microgrid system includes:
[0032] A power detection module is used to detect the current power of the energy storage system;
[0033] a switch control module, configured to control the incoming line switch to open and disconnect from the public power grid when the current power quantity is greater than a first power quantity;
[0034] A power detection module, used to detect the power consumption of the load and the power generation of the photovoltaic system when disconnected from the public power grid;
[0035] The power control module is used to control the energy storage system to discharge at a first preset power when the difference between the power consumption and the power generation is greater than the power offset.
[0036] The present invention also proposes an off-grid microgrid control device, which includes: 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 above-mentioned off-grid microgrid control method.
[0037] The present invention also proposes a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the steps of the off-grid microgrid control method as described above are implemented.
[0038] The present invention relates to the field of trajectory prediction technology, and specifically discloses an off-grid microgrid control method, system, device and storage medium. The off-grid microgrid control method includes: detecting the current power of the energy storage system; when the current power is greater than a first power, controlling the incoming switch to disconnect the energy storage system from the public power grid; when the energy storage system is not disconnected from the public power grid, detecting the power consumption of the load and the power generation power of the photovoltaic system; when the difference between the power consumption and the power generation power is greater than the power offset, controlling the energy storage system to discharge at a first preset power. After the energy storage module is charged to a certain level, the present invention switches the entire power supply system to off-grid operation, with the photovoltaic module and the energy storage module carrying the load off-grid together. The energy storage system outputs stable, high-quality electricity to ensure safe electricity use for users. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0040] Figure 1 Flowchart of the first embodiment of the off-grid microgrid control method provided by the present invention;
[0041] Figure 2 This is a module diagram of the first embodiment of the off-grid microgrid control method provided by the present invention;
[0042] Figure 3 Another flow chart of the first embodiment of the off-grid microgrid control method provided by the present invention;
[0043] Figure 4 This is a flow chart of a second embodiment of the off-grid microgrid control method provided by the present invention;
[0044] Figure 5 Another flow chart of the second embodiment of the off-grid microgrid control method provided by the present invention;
[0045] Figure 6 This is a flow chart of a third embodiment of the off-grid microgrid control method provided by the present invention;
[0046] Figure 7Another flow chart of the third embodiment of the off-grid microgrid control method provided by the present invention;
[0047] Figure 8 A schematic structural diagram of an embodiment of an off-grid microgrid control system provided by the present invention;
[0048] Figure 9 This is a schematic diagram of the off-grid microgrid control device structure of the hardware operating environment involved in the off-grid microgrid control method in the embodiment of the present application.
[0049] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0050] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.
[0051] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture. If the specific posture changes, the directional indications will also change accordingly.
[0052] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of such features. In addition, if "and / or" or "and / or" appears in the full text, its meaning includes three parallel solutions. Taking "A and / or B" as an example, it includes solution A, solution B, or solutions that satisfy both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is mutually contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0053] In areas with weak grid infrastructure (such as some remote and underdeveloped regions), poor power quality is a significant issue impacting economic development and the quality of life for residents. Power quality refers to the stability and reliability of parameters such as voltage, current, and frequency during the delivery of power services. Poor power quality can lead to equipment damage, reduced productivity, and even health risks. Power quality issues are common in these areas, primarily manifesting in the following areas:
[0054] (1) Frequent power outages and blackouts. Many countries have outdated power grid infrastructure, limited transmission and distribution capacity, untimely maintenance, and outdated technology, resulting in frequent power grid failures.
[0055] (2) Voltage fluctuation and instability. The main manifestations are that the grid voltage is too low, and the phase voltage is often below 200V; the grid voltage is too high, and the phase voltage is often above 250V. Unstable voltage can easily cause equipment to fail to start normally and may even burn out electrical appliances.
[0056] (3) Large frequency fluctuation range. The power grid frequency fluctuation range in some countries or regions is particularly large, with a wide range of jumps between 42 and 55 Hz. When the power grid frequency is unstable, the operating efficiency and safety of power equipment will be affected.
[0057] (4) Harmonic pollution in the power grid is serious. Harmonic currents can cause overheating and damage to power equipment, reducing its service life. They can also interfere with communications equipment and other electronic systems. Due to aging equipment and the lack of effective harmonic filtering devices, it is difficult to eliminate and reduce the impact of harmonics on the power grid.
[0058] To address the above issues, the following methods can be used for improvement. However, these methods are relatively traditional and require top-level design and planning. They are time-consuming, resource-intensive, and require a lot of technical talent. They cannot be completed overnight. The main methods are:
[0059] (1) Strengthen the construction of power infrastructure, such as upgrading and expanding the power grid and improving the intelligence of the power grid. This method requires huge investment and takes a long time.
[0060] (2) Build a diversified energy structure, such as increasing the proportion of hydropower, wind power, and photovoltaic energy. This method is relatively effective and can effectively solve the problem of poor power quality, but the construction period is long and the investment cost is high, and it cannot quickly solve the pain points of individual users' electricity consumption.
[0061] (3) Use dynamic voltage regulation technology, such as dynamic voltage restorer (DVR), automatic voltage regulator (AVR) and other equipment. This technology is traditional and has no innovation, and can only improve voltage quality.
[0062] (4) Frequency stability is ensured through fast-response dispatching methods and adjustable power generation facilities (such as gas turbines and pumped storage power stations). This technology is only meaningful for regional power grids and can effectively improve the frequency level, but it is not very meaningful for individual users.
[0063] (5) Strengthen cross-border power grid interconnection and regional cooperation. This method is a top-level design, which is time-consuming, difficult, and cannot quickly produce effective results.
[0064] (6) For individual users, existing photovoltaic storage technology solutions often start from the perspective of photovoltaic absorption and emergency power backup, and do not provide effective solutions for poor power quality. The methods are single and cannot meet customers' stable and safe electricity needs.
[0065] The off-grid microgrid control method includes: detecting the current power of the energy storage system; when the current power is greater than a first power, controlling the incoming line switch to disconnect the energy storage system from the public power grid; when the energy storage system is not disconnected from the public power grid, detecting the load power consumption and the photovoltaic system power generation; when the difference between the power consumption and the power generation is greater than the power offset, controlling the energy storage system to discharge at a first preset power. After the energy storage module is charged to a certain level, the present invention switches the entire power supply system to off-grid operation, with the photovoltaic module and energy storage module carrying the load off-grid. The energy storage system outputs stable, high-quality electricity to ensure safe electricity use for users.
[0066] To address the poor power quality in these areas and the shortcomings of existing traditional technologies, we have innovatively designed an off-grid priority control logic based on a photovoltaic-load storage microgrid system. Once the energy storage battery is charged to a certain level, the power supply system is switched to off-grid operation, with photovoltaics and energy storage working together to carry the load. The energy storage system outputs stable, high-quality electricity, ensuring safe electricity use for users. This novel control logic method has the following advantages:
[0067] (1) Fill the gap in the photovoltaic storage system in solving the problem of poor power quality and effectively meet users' high-quality electricity needs.
[0068] (2) The off-grid priority control logic integrates the control capabilities of photovoltaic absorption and emergency power backup to maximize system utilization and improve economic benefits.
[0069] (3) The off-grid priority control logic is combined with demand control capabilities to effectively reduce users’ demand electricity charges.
[0070] (4) Based on the demand for whether electricity can be sold, anti-backflow function and flexible dynamic control are configured to meet the functional requirements while improving economic benefits.
[0071] (5) Adopt a multi-dimensional control architecture and design different charging and discharging logics according to different SOC ranges to achieve more refined management.
[0072] (6) Diversified and open parameter setting options, flexible configuration for different working scenarios, and strong adaptability to scenarios.
[0073] (7) One-stop service for the entire life cycle, relying on the energy storage cloud platform to create an integrated intelligent operation and maintenance of "online monitoring + offline inspection", without the need for human participation, to achieve "unmanned operation".
[0074] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication, and program execution capabilities, such as a tablet computer, personal computer, mobile phone, etc., or an off-grid microgrid control device capable of implementing the above functions. This embodiment and the following embodiments will be described below using an energy management system (EMS) as an example.
[0075] Based on this, the embodiment of the present application provides an off-grid microgrid control method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the off-grid microgrid control method of the present application.
[0076] It is understandable that if Figure 2 As shown in the figure, the entire system consists of a photovoltaic system, a public power grid, an energy storage system, a load, an AC busbar and an incoming line switch. The photovoltaic system includes photovoltaic modules and photovoltaic inverters; the energy storage system includes lithium iron phosphate batteries and energy storage converters.
[0077] It should be noted that, in order to facilitate the introduction of the solution, the following symbols are defined and explained as follows: P_load: real-time active power of the load, the power consumption of the load, only positive values; P_pv: real-time active power of the photovoltaic system, the power generation power, only positive values; P_ask_discharge: the maximum discharge power requested by the energy storage system; P_ask_charge: the maximum charging power requested by the energy storage system; P_pv_limit: the output power value of the photovoltaic system; P_set: the backup charging power of the public grid, 0~P_ess; SOC_max: the upper limit SOC of charging (default 100%), the third power; SOC_min: the lower limit SOC of discharge ( Default is 20%), the second power; SOC_backup: backup power SOC (default is 30%), the first power; SOC_return: SOC hysteresis (default is 3%); P_ess: installed capacity of energy storage system, default is 0, 0~9999; P_demand: demand setting value, default is 0, 0~9999; P_pv_install: installed capacity of photovoltaic system, default is 0, 0~9999; P_offset: offset power, default is 3, 0~10; SOC_current: SOC value at the current moment, current power; In this embodiment, the off-grid microgrid control method includes steps S10~S40.
[0078] Step S10: Detect the current power level of the energy storage system.
[0079] It's understood that the State of Charge (SOC) in an energy storage system refers to the percentage of the energy currently stored in the energy storage system as a percentage of its total available capacity. It is a key parameter for evaluating the operating status and energy management level of the energy storage system. SOC is the ratio of the actual amount of energy stored in the energy storage device at the current moment to its rated capacity, usually expressed as a percentage. For example, a SOC_current of 50% means that the energy storage device is currently storing 50% of its total capacity.
[0080] Step S20: When the current power level is greater than the first power level, controlling the incoming line switch to disconnect the energy storage system from the public power grid.
[0081] It is understood that this application is based on a control method in the presence of a public power grid, that is, when the public power grid is normally powered. The actual current power SOC_current is compared with the set value and the corresponding strategy is executed. Due to the characteristic that the photovoltaic inverter needs to continuously send the remote adjustment power value, the remote adjustment power needs to be sent to the photovoltaic inverter every time the program is executed; otherwise, the photovoltaic inverter will not produce power. The remote adjustment power value is calculated based on the current state.
[0082] It should be noted that if Figure 3As shown, if the energy storage system's current SOC satisfies: SOC_current > SOC_backup (default 30%), where SOC_backup is the first charge and can be set to 30%, the energy storage system has sufficient charge and the solar-storage system can operate off-grid with load. Therefore, the energy management system (EMS) controls the incoming line switch to open. However, if communication between the incoming line switch and the EMS is lost, if the incoming line switch opens successfully, the system can operate off-grid. If the incoming line switch does not open, the following control logic is executed.
[0083] Step S30: When the energy storage system is not disconnected from the public power grid, detecting the power consumption of the load and the power generation of the photovoltaic system.
[0084] It can be understood that the load power consumption P_load is the real-time active power of the load, which has only positive values; the photovoltaic system power generation power P_pv is the real-time active power of the photovoltaic system, which has only positive values.
[0085] Step S40: When the difference between the power consumption and the power generation is greater than the power offset, controlling the energy storage system to discharge at a first preset power.
[0086] It can be understood that the power offset P_offset is the offset power, the default value is 3, 0~10, which refers to the minimum value of power drawn from the public grid to avoid the energy storage system flowing back to the public grid; if "P_load-P_pv>P_offset", it means that the load is large. At this time, the energy storage system should discharge, and the discharge power is the first preset power P_discharge=min{P_load-P_pv-P_offset, P_ask_discharge, P_ess}. The first preset power is the minimum value of the load power-photovoltaic power-offset (P_load-P_pv-P_offset), the maximum requested discharge power of the energy storage system (P_ask_discharge), and the installed capacity of the energy storage system (P_ess).
[0087] It should be noted that the maximum requested discharge power (P_ask_discharge) of the energy storage system is the maximum discharge power that the energy storage system can respond to external requests at a given moment, that is, the upper limit of the power that the system can actually output. The installed capacity (P_ess) of the energy storage system is the rated power of the energy storage system, that is, the maximum power that the system can sustainably output under ideal conditions.
[0088] Step S41: When the difference between the power consumption and the power generation is less than the power offset, the energy storage system is controlled to be in standby mode.
[0089] It can be understood that if "0≤P_load-P_pv≤P_offset", it means that the power consumption and power generation are basically equal. In order to avoid frequent remote control of the energy storage converter (PCS), the PCS is controlled to standby and send 0 power.
[0090] Step S42: When the generated power is greater than the consumed power, controlling the energy storage system to charge at a second preset power.
[0091] It can be understood that if "P_load-P_pv<0", it means that the power consumption is less than the power generation, and the current power SOC_current of the energy storage system has not reached the upper limit SOC_max. Therefore, the energy storage system needs to be charged, and the charging power is the second preset power P_charge=-min{P_pv-P_load+P_offset,P_ask_charge,P_ess}. The second preset power is the minimum value of the load power-photovoltaic power+offset (P_load-P_pv+P_offset), the maximum requested discharge power of the energy storage system (P_ask_discharge), and the installed capacity of the energy storage system (P_ess).
[0092] In this embodiment, photovoltaic modules and photovoltaic inverters are combined into a photovoltaic system. The photovoltaic modules convert sunlight into direct current (DC) electricity, and the photovoltaic inverter then inverts the DC electricity into AC electricity for use by the load, with the photovoltaic system acting as a current source. Lithium iron phosphate batteries and energy storage converters constitute the energy storage system, which is a bidirectional system capable of both charging and discharging. The photovoltaic system, energy storage system, load, and public power grid are all coupled on the AC side. The incoming line switch is equipped with an electric operating mechanism that can be controlled by the EMS system. When the photovoltaic power generation power is greater than the load power consumption, the excess power is stored in the energy storage. When the current power SOC_current of the energy storage system is higher than the first power SOC_backup by 30%, the incoming line switch is controlled to open, and the system operates off the grid. When the public power grid has power, as long as the actual current power SOC_current is higher than the first power SOC_backup by 30%, the incoming line switch is continuously controlled to open, and the control system operates off the grid.
[0093] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction and will not be repeated later.
[0094] On this basis, please refer to Figure 4 , Figure 4 This is a flowchart of the second embodiment of the off-grid microgrid control method of this application. In the steps, the off-grid microgrid control method includes:
[0095] Step S201: When the current power level is less than or equal to the first power level and greater than or equal to the second power level, detecting the power consumption of the load and the power generation power of the photovoltaic system; the first power level is greater than the second power level.
[0096] It is understandable that if Figure 5 As shown in the figure, if the current SOC_current of the energy storage system satisfies: SOC_min (default 20%) ≤ SOC_current ≤ SOC_backup (default 30%), where the second power SOC_backup is 30%, it means that the current power of the energy storage system is relatively small. At this time, only the excess power of the photovoltaic system is used to charge the energy storage system, and the public power grid no longer charges the energy storage, thereby reducing the user's electricity cost.
[0097] Step S202: When the generated power is greater than the consumed power, controlling the energy storage system to charge at the second preset power.
[0098] It should be noted that at this time, if P_pv>P_load, that is, the photovoltaic power generation power is greater than the load power consumption, the charging power is the second preset power P_charge=-min{P_pv-P_load+P_offset, P_ask_charge, P_ess}, and the photovoltaic power after the load is used up, the maximum requested charging power of the energy storage system, and the installed capacity of the energy storage system are taken as the charging power.
[0099] Step S212: When the generated power is less than or equal to the consumed power, control the energy storage system to be in standby mode.
[0100] It should be noted that at this time, if P_pv≤P_load, that is, the photovoltaic power generation power is less than the load power, the energy storage system is controlled to neither charge nor discharge, and the PCS is in standby mode.
[0101] Step S203: When the energy storage system is charging, the step of detecting the current power level of the energy storage system is performed.
[0102] It is understandable that by real-time monitoring of the state of charge (SOC), battery overcharging (SOC exceeding 100%) can be avoided, and battery damage or thermal runaway can be prevented.
[0103] Step S204: When the current power level is less than the second power level, the power consumption of the load and the power generation power of the photovoltaic system are detected.
[0104] It is understandable that if the current power of the energy storage system is less than the second power, SOC_current<SOC_min (default 20%), it means that the power of the energy storage system is very small at this time, which is insufficient to support the off-grid operation of the system, and is insufficient to cope with the load demand of a sudden power outage in the external power grid. Therefore, the photovoltaic system and the public power grid need to charge the energy storage system at the same time to quickly charge the current power SOC_current to above the lower limit of the second power SOC_min.
[0105] Step S205: When the generated power is greater than the consumed power, controlling the energy storage system to charge at the third preset power.
[0106] It should be noted that at this time, if P_pv>P_load, that is, the photovoltaic power generation power is greater than the load power consumption, then the charging power is the third preset power P_charge=-min[P_ask_charge, P_ess, if(P_demand+P_pv-P_load-P_offset), max{P_set, P_pv-P_load}], and the charging power should not be greater than the maximum requested charging power (P_ask_charge) of the energy storage system, should not be greater than the installed capacity (P_ess) of the energy storage system, should not be greater than the demand setting value of the public power grid (if(P_demand+P_pv-P_load-P_offset)), and should not be greater than the maximum value of the backup charging power (P_set) and the photovoltaic load difference (P_pv-P_load).
[0107] Step S206: When the generated power is less than or equal to the consumed power, controlling the energy storage system to charge at a fourth preset power.
[0108] Specifically, at this time, if P_pv≤P_load, that is, the photovoltaic power generation power is less than the load power consumption, the charging power takes the fourth preset power P_charge=-min[P_ask_charge, P_ess, if(P_demand+P_pv-P_load-P_offset), P_set], that is, the charging power takes the minimum value of the maximum requested power of the energy storage system, the installed capacity of the energy storage system, the charging power that does not exceed the demand, and the backup charging power setting value.
[0109] The "if(A)" in the control logic indicates that if A < 0, it is set to 0; if it ≥ 0, it is set to A. P_demand is the demand setpoint, with a default value of 0 and a range of 0 to 9999. It is the target demand value set for power system equipment and represents the maximum average power (in kW) allowed by the system within a specific time period (such as 15 minutes or 30 minutes). The backup charging power (P_set) is the charging power value set for the battery in the backup power system. It is used to control the battery charging rate to ensure that the battery can provide sufficient backup power when needed while preventing overcharging or undercharging that may affect battery life.
[0110] In this embodiment, when the current power SOC_current of the energy storage system is lower than the lower limit SOC_min20%, the public grid and the photovoltaic system jointly charge the energy storage; when the current power SOC_current of the energy storage system is between the lower limit SOC_min20% and the backup power 30% SOC_backup, only the photovoltaic system charges the energy storage system.
[0111] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first and second embodiments above can be referred to the above introduction and will not be described in detail later. Figure 6 , Figure 6 This is a flowchart provided for Example 3 of the off-grid microgrid control method of this application.
[0112] Step S301: when the current power level is greater than or equal to a third power level, limiting the power generation power of the photovoltaic module to be lower than a first limit power; the third power level is greater than the first power level;
[0113] It should be noted that under normal circumstances, the situation of "SOC_current ≥ SOC_max (default 100%)" will not occur. However, when the EMS system loses communication with the incoming line switch, the solar-to-load storage system cannot be switched to off-grid operation in time. Taking this abnormal state into account, the following control logic is executed.
[0114] It is understandable that if Figure 3As shown, the current power SOC_current is compared with the maximum third power SOC_max (default 100%). If SOC_current ≥ SOC_max (default 100%), the instruction to control the line switch to open needs to be continued. At the same time, the energy storage system should not be charged at this time. Even if the photovoltaic system has excess power, the photovoltaic system should be power-limited to the first power limit P_pv_limit = min{P_pv_install, if (P_load - P_offset)}, so that its output is limited to slightly less than the load power consumption. That is, the first power limit is the minimum of the photovoltaic installed capacity and the load real-time active power minus the offset power. Among them, P_pv_install is the photovoltaic installed capacity, which defaults to 0 and ranges from 0 to 9999. The photovoltaic installed capacity (P_pv_install) refers to the sum of the rated power of all photovoltaic modules in the photovoltaic power generation system under standard test conditions (STC).
[0115] Specifically, step S311 (not shown in the figure) or S302 is executed after step S301.
[0116] Step S311: detecting the power consumption of the load and the power generation of the photovoltaic system, and when the difference between the power consumption and the power generation is greater than or equal to the power offset, controlling the energy storage system to discharge at a first preset power.
[0117] It should be noted that, because the power generation power of the photovoltaic system is limited, the situation where the power generation power is greater than the power consumption will not occur, then step S311 is executed: if P_load-P_pv≥P_offset, it means that the power consumption of the load is much greater than the power generation power of the photovoltaic system, and the current power SOC_current at this time is greater than the set maximum SOC_max, so the energy storage system needs to discharge, and the discharge power is the first preset power P_discharge=min{P_load-P_pv-P_offset, P_ask_discharge, P_ess}, and the discharge power is the minimum value of the value after the load exceeds the photovoltaic and the offset is subtracted, the maximum requested discharge power of the energy storage system, and the installed power of the energy storage system.
[0118] Step S302: When the difference between the power consumption and the power generation is less than the power offset, control the energy storage system to be in standby mode.
[0119] It is understandable that if Figure 7As shown, when the current power level is greater than or equal to the third power level, the PV module's power generation is limited to below the first power limit. The magnitude of "P_load - P_pv" and "P_offset" is then determined. If P_load - P_pv < P_offset, this indicates that the load's power consumption is slightly greater than the PV system's power generation, or less than the PV system's power generation. In this case, the energy storage system is neither charged nor discharged, and the PV inverter PCS is kept in standby mode.
[0120] Step S303: detecting the current power of the energy storage system, and when the current power is less than the third power, limiting the power generation power of the photovoltaic module to be lower than a second limited power; the first limited power is less than the second limited power.
[0121] It should be noted that only when the current charge SOC_current of the energy storage system drops to "SOC_max (default 100%) - SOC_return (default 3%)" through discharge will the EMS control logic jump out of the instruction to control the opening of the incoming line switch. At the same time, the energy storage should no longer be charged at this time. Even if there is excess photovoltaic power, the photovoltaic system should be power-limited to the first power limit execution process; if the current charge SOC_current is still greater than "SOC_max (default 100%) - SOC_return (default 3%)", the EMS control logic will continue to execute the above process.
[0122] It is understandable that if the energy storage system's current SOC_current is less than the set third maximum power SOC_max (default 100%), the photovoltaic power limit output needs to be continuously set to the second power limit P_pv_limit = min[P_pv_install, if(P_load + min{P_ask_charge, P_ess} - P_offset)], where the second power limit value is the minimum value between the photovoltaic installed capacity and the load + energy storage charging capacity - offset. P_pv_limit is the photovoltaic power limit output power value. Photovoltaic power curtailment refers to the phenomenon in which the photovoltaic system actively reduces its output power by controlling equipment such as the inverter when its power generation capacity exceeds the grid demand or the system's safe operating range.
[0123] Step S304: Detect whether the energy storage system is provided with an anti-backflow device.
[0124] It is understandable that before executing step S10, the anti-backflow setting of the energy storage system is first determined. If an anti-backflow device is provided, it means that the photovoltaic system and the energy storage system are not allowed to send excess electricity to the public power grid. When there is excess electricity, it is necessary to increase the charging power of the energy storage system, or reduce the discharging power of the energy storage system, or perform power limit control on the photovoltaic system.
[0125] Step S300: When the backflow prevention device is detected, the power generation power of the photovoltaic module is limited.
[0126] It is understandable that when the backflow prevention device is detected, steps S301 to S303 are executed.
[0127] Step S305: When the backflow prevention device is not detected, controlling the photovoltaic module to generate electricity at maximum power.
[0128] It should be noted that if the energy storage system does not have a backflow prevention device, it can be fed into or sold to the public grid. If the PV system generates enough electricity to meet load demand and charge the energy storage, and there is any surplus, it can be fed into the public grid for sale.
[0129] Specifically, when no backflow prevention device is detected, step S20 is executed and the photovoltaic module is controlled to generate electricity at maximum power. The current power SOC_current is compared with the set maximum SOC_max (default 100%). If SOC_current ≥ SOC_max (default 100%), the instruction to control the incoming line switch to open is required to continue executing. At the same time, the energy storage should not be charged at this time. Since the backflow prevention is set to the prohibited state at this time, even if the photovoltaic system generates excess power, it will no longer be limited. The photovoltaic system can output at full power. The power generation power limit of the photovoltaic module is P_pv_limit = P_pv_install.
[0130] Then, step S30 is executed to determine if P_load-P_pv<P_offset, which means that the load power consumption is slightly greater than the photovoltaic system power generation power, or the load power consumption is less than the photovoltaic system power generation power. At this time, the energy storage system does not charge or discharge, and the PCS can be kept in standby mode. If the load cannot fully absorb the photovoltaic system power generation power, the remaining power can be sent to the grid.
[0131] If P_load-P_pv≥P_offset, it means that the load's power consumption is much greater than the photovoltaic system's power generation power, and the energy storage system's current power SOC_current is greater than the set third maximum power SOC_max. Therefore, the energy storage system needs to discharge, and the discharge power is P_discharge=min{P_load-P_pv, P_ask_discharge, P_ess}, that is, the photovoltaic system and the energy storage system jointly power the load. At the same time, the energy storage system output is no greater than the maximum requested discharge power of the energy storage system, nor greater than the installed capacity of the energy storage system.
[0132] If the current power SOC_current of the energy storage system is less than the set third power SOC_max (default 100%), the photovoltaic system also needs to always output photovoltaic limited power. The photovoltaic limited power output power value is the installed capacity of the photovoltaic system, P_pv_limit=P_pv_install.
[0133] If the current power of the energy storage system SOC_current is less than SOC_min (the default is 20%, the second power), it means that the power of the energy storage system is very low, which is not enough to support the off-grid operation of the system, and is not enough to cope with the load demand of a sudden power outage in the external power grid. Therefore, the photovoltaic system and the public power grid need to charge the energy storage system at the same time to quickly charge the SOC_current to above the second power SOC_min.
[0134] At this time, if P_pv>P_load, that is, the photovoltaic power generation power is greater than the load power consumption, the energy storage system charging power is P_charge=-min[P_ask_charge, P_ess, if(P_demand+P_pv-P_load-P_offset), max{P_set, P_pv-P_load}], that is, the charging power of the energy storage system should not be greater than the maximum requested charging power of the energy storage system (P_ask_charge), should not be greater than the installed capacity of the energy storage system (P_ess), should not be greater than the demand setting value of the public power grid (if(P_demand+P_pv-P_load-P_offset)), and should not be greater than the maximum value of the backup charging power (P_set) and the photovoltaic load difference (P_pv-P_load).
[0135] At this time, if P_pv≤P_load, that is, the power generation power of the PV system is less than or equal to the power consumption of the load, the charging power of the energy storage system is P_charge=-min[P_ask_charge, P_ess, if(P_demand+P_pv-P_load-P_offset), P_set]. That is, the charging power is the minimum of the maximum requested power of the energy storage system, the installed capacity of the energy storage system, the charging power that does not exceed the demand, and the backup charging power setting value.
[0136] If the current SOC_current of the energy storage system satisfies: SOC_min (default 20%, second power) ≤ SOC_current ≤ SOC_backup (default 30%, first power), it means that the energy storage system has less power. At this time, only the excess power of the photovoltaic system is used to charge the energy storage system, and the public power grid no longer charges the energy storage, thereby reducing the user's electricity cost.
[0137] At this time, if P_pv>P_load, that is, the photovoltaic power generation power is greater than the load power consumption, the charging power of the energy storage system is: P_charge=-min{P_pv-P_load, P_ask_charge, P_ess}. The charging power of the energy storage system is not greater than the remaining power of the photovoltaic system's power generation power minus the load power consumption. At this time, the offset is not considered, and it is not greater than the maximum requested charging power of the energy storage system and the installed capacity of the energy storage system.
[0138] At this time, if P_pv≤P_load, that is, the power generation power of the photovoltaic system is less than the power consumption of the load, the energy storage system is controlled to neither charge nor discharge, and the PCS is in standby mode.
[0139] If the energy storage system's current capacity (SOC_current) satisfies: SOC_current > SOC_backup (default 30%, the first capacity), it indicates that the energy storage system has a relatively large amount of capacity and the solar-to-load system can operate off-grid. Therefore, the EMS controls the incoming line switch to open. However, if there is a communication loss between the incoming line switch and the EMS, if the incoming line switch is successfully opened, the system can operate off-grid. If the incoming line switch is not opened, the following control logic is executed:
[0140] If "P_load-P_pv>P_offset", it means that the load is large. At this time, the energy storage system should discharge. The discharge power is: P_discharge=min{P_load-P_pv, P_ask_discharge, P_ess}, which is the minimum value of the load power consumption - photovoltaic power generation power (P_load-P_pv), the maximum requested discharge power of the energy storage system (P_ask_discharge), and the installed capacity of the energy storage system (P_ess).
[0141] If "0≤P_load-P_pv≤P_offset", the load power consumption and the photovoltaic system's power generation are essentially equal. To avoid frequent remote control of the energy storage converter (PCS), the PCS is put into standby mode. The energy storage system neither discharges nor charges, and its power is zero.
[0142] If "P_load-P_pv<0", it means that the load power consumption is less than the power generation power of the photovoltaic system, and the current power SOC_current of the energy storage system has not reached the upper limit SOC_max. Therefore, the system needs to perform a charging operation, and the charging power is: P_charge=-min{P_pv-P_load, P_ask_charge, P_ess}.
[0143] In this embodiment, if the energy storage system does not have a backflow prevention device, it can be fed into or sold to the public grid. If the PV system generates enough electricity to meet load demand and energy storage charging, and there is any surplus, it can be fed into the public grid for sale.
[0144] Reference Figure 8 , Figure 8 This is a schematic diagram of the structure of the first embodiment of the system for automatically selecting the parking direction proposed by the present invention. Figure 8 A first embodiment of an off-grid microgrid control system of the present invention is proposed.
[0145] In this embodiment, the microgrid system includes:
[0146] The power detection module 10 is used to detect the current power of the energy storage system.
[0147] The switch control module 20 is used to control the incoming switch to open and disconnect from the public power grid when the current power is greater than the first power.
[0148] The power detection module 30 is used to detect the power consumption of the load and the power generation of the photovoltaic system when the system is disconnected from the public power grid.
[0149] The power control module 40 is configured to control the energy storage system to discharge at a first preset power when the difference between the power consumption and the power generation is greater than a power offset.
[0150] The microgrid system provided by this application utilizes the off-grid microgrid control method of the above-described embodiment. Once the energy storage battery is charged to a certain level, the power supply system can be switched to off-grid operation. Photovoltaic and energy storage systems are used to carry the load off-grid. The energy storage system outputs stable, high-quality electricity, ensuring safe electricity use for users and resolving the issue of poor power quality in areas with weak grid infrastructure. Compared to the prior art, the beneficial effects of the microgrid system provided by this application are the same as those of the off-grid microgrid control method provided by the above-described embodiment. Other technical features of the microgrid system are the same as those disclosed in the above-described embodiment and are not further elaborated here.
[0151] The present application provides an off-grid microgrid control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable 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 off-grid microgrid control method in the above-mentioned embodiment 1.
[0152] Reference below Figure 9 , which shows a schematic structural diagram of an off-grid microgrid control device suitable for implementing embodiments of the present application. The off-grid microgrid control device in the embodiments 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), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 8 The off-grid microgrid control device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0153] like Figure 9As shown, the off-grid microgrid control device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. RAM 1004 also stores various programs and data required for the operation of the off-grid microgrid control device. Processing device 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, hard disk, etc.; and communication devices 1009. Communication devices 1009 can allow the off-grid microgrid control device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows an off-grid microgrid control device with various systems, it should be understood that implementation or presence of all the illustrated systems is not required. More or fewer systems may alternatively be implemented or present.
[0154] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising 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 via 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.
[0155] The off-grid microgrid control device provided in this application utilizes the off-grid microgrid control method of the aforementioned embodiment, enhancing the trajectory prediction model's ability to extract features from historical information and improving trajectory prediction accuracy. Compared to the prior art, the off-grid microgrid control device provided in this application achieves the same beneficial effects as the off-grid microgrid control method of the aforementioned embodiment. Other technical features of the off-grid microgrid control device are the same as those disclosed in the aforementioned embodiment and are not further detailed here.
[0156] It should be understood that the various parts disclosed in this application can be implemented using 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.
[0157] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0158] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, and the computer-readable program instructions are used to execute the off-grid microgrid control method in the above-mentioned embodiment.
[0159] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0160] The computer-readable storage medium may be included in the off-grid microgrid control device; or may exist independently without being assembled into the off-grid microgrid control device.
[0161] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0162] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0163] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0164] The computer-readable storage medium provided herein stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned off-grid microgrid control method. This computer-readable storage medium enhances the trajectory prediction model's ability to extract features from historical information and improves trajectory prediction accuracy. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided herein are the same as those of the off-grid microgrid control method provided in the aforementioned embodiments, and are not further elaborated here.
[0165] The above descriptions are only some embodiments of the present application and do not limit the scope of the present application. All equivalent structural transformations made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the scope of protection of the present application.
Claims
1. A method for controlling an off-grid microgrid, characterized in that: The off-grid microgrid control method comprises: Detect the current power of the energy storage system; When the current power level is greater than the first power level, controlling the incoming line switch to disconnect the energy storage system from the public power grid; When the energy storage system is not disconnected from the public power grid, detecting the power consumption of the load and the power generation of the photovoltaic system; When the difference between the power consumption and the power generation is greater than the power offset, the energy storage system is controlled to discharge at a first preset power.
2. The off-grid microgrid control method according to claim 1, wherein: After the step of detecting the power consumption of the load and the power generation of the photovoltaic system when the energy storage system is not disconnected from the public power grid, the method further includes: When the difference between the power consumption and the generated power is less than the power offset, controlling the energy storage system to be in standby mode; When the generated power is greater than the consumed power, the energy storage system is controlled to be charged at a second preset power.
3. The off-grid microgrid control method according to claim 1, wherein: After the step of detecting the current power of the energy storage system, the method further includes: When the current power is less than or equal to the first power and greater than or equal to the second power, detecting the power consumption of the load and the power generation power of the photovoltaic system; the first power is greater than the second power; When the generated power is greater than the consumed power, controlling the energy storage system to charge at the second preset power; When the energy storage system is being charged, the step of detecting the current power level of the energy storage system is performed.
4. The off-grid microgrid control method according to claim 3, wherein: After the step of detecting the power consumption of the load and the power generation power of the photovoltaic system when the current power consumption is less than or equal to the first power consumption and greater than or equal to the second power consumption, the method includes: When the generated power is less than or equal to the consumed power, the energy storage system is controlled to be in standby mode.
5. The off-grid microgrid control method according to claim 3, wherein: After the step of detecting the current power of the energy storage system, the method further includes: When the current power is less than the second power, detecting the power consumption of the load and the power generation of the photovoltaic system; When the generated power is greater than the consumed power, controlling the energy storage system to charge at a third preset power; When the generated power is less than or equal to the consumed power, the energy storage system is controlled to be charged at a fourth preset power.
6. The off-grid microgrid control method according to claim 2, wherein: After the step of detecting the current power of the energy storage system, the method further includes: When the current power level is greater than or equal to a third power level, limiting the power generation power of the photovoltaic module to be lower than a first limit power; the third power level is greater than the first power level; detecting the power consumption of the load and the power generation power of the photovoltaic system, and controlling the energy storage system to discharge at a first preset power when the difference between the power consumption and the power generation power is greater than or equal to a power offset; When the difference between the power consumption and the generated power is less than the power offset, controlling the energy storage system to be in standby mode; The current power of the energy storage system is detected, and when the current power is less than the third power, the power generation power of the photovoltaic module is limited to be lower than a second limited power; the first limited power is less than the second limited power.
7. The off-grid microgrid control method according to claim 6, wherein: Before the step of detecting the current power of the energy storage system, the method includes: Detecting whether the energy storage system is provided with an anti-backflow device; When an anti-backflow device is detected, limiting the power generation power of the photovoltaic module; When the backflow prevention device is not detected, the photovoltaic module is controlled to generate electricity at maximum power.
8. A microgrid system, characterized in that: The microgrid system is used to execute the off-grid microgrid control method according to any one of claims 1 to 7, and the microgrid system includes: A power detection module is used to detect the current power of the energy storage system; a switch control module, configured to control the incoming line switch to open and disconnect from the public power grid when the current power quantity is greater than a first power quantity; A power detection module, used to detect the power consumption of the load and the power generation of the photovoltaic system when disconnected from the public power grid; The power control module is used to control the energy storage system to discharge at a first preset power when the difference between the power consumption and the power generation is greater than the power offset.
9. An off-grid microgrid control device, characterized in that: The device comprises: 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 off-grid microgrid control method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the off-grid microgrid control method according to any one of claims 1 to 7 are implemented.