Microgrid on-grid and off-grid automatic control method and device

By monitoring the voltage of the distribution network automation switch and microgrid connection point, the microgrid connection switch is controlled to open and close, and the problem that is not considered in the self-healing process during distribution network failure is solved, and rapid fault perception and customization and off-grid strategy are achieved , improves the power supply reliability and response speed of the microgrid.

CN114362157BActive Publication Date: 2024-11-15GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111683085.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-11-15
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

The existing technology does not consider the distribution network self-healing process when the distribution network fails, resulting in the practicality of the microgrid and off-grid strategy that needs to be improved, affecting the reliability of power supply.

Method used

By monitoring the distribution network automatic switches and the microgrid connection point voltage on the line, the microgrid connection switches are controlled to open to the island operation, waiting for the distribution network self-healing process to be completed, and then resume the grid connection operation to achieve rapid Failure awareness and customization and off-grid policies.

Benefits of technology

It improves the practicality and response speed of the microgrid and off-grid strategy, reduces the impact on the microgrid, and reduces the installation cost and equipment type.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114362157B_ABST
    Figure CN114362157B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for automatic control of microgrid on-grid and off-grid, wherein the method includes: monitoring the on-off state of the distribution network automation switch on the line that has access to the microgrid, and monitoring the voltage of the microgrid on-grid point; when it is monitored that the upstream distribution network automation switch of the microgrid on-grid point is off, and the voltage of the microgrid on-grid point is reduced, it is determined that the line has a fault; when a line fault occurs, the microgrid on-grid switch is controlled to be off, so that the microgrid operates in an isolated island; waiting for the distribution network self-healing process to end, receiving the end instruction of the distribution network fault self-healing process; when the voltage of the microgrid on-grid returns to normal, the synchronous on-grid function is started, and the microgrid on-grid switch is controlled to close, so that the microgrid can resume on-grid operation. Through the above method, the present application solves the problem of continuous and stable power supply of microgrid loads during distribution network faults, and improves the practicality of microgrid on-grid and off-grid strategies; it can achieve rapid fault perception, faster response speed, and less impact on the microgrid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of microgrid control technology, and in particular to a method and device for automatic control of microgrid on-grid and off-grid. Background Art

[0002] In order to promote the efficient consumption of distributed power sources, microgrids adopt the mode of local development and local power supply of distributed resources. Under normal circumstances, microgrids are generally connected to the grid. Figure 1 The figure shows a typical hand-in-hand distribution network structure diagram for microgrid access. When the distributed generation capacity is insufficient, the microgrid absorbs electricity from the distribution network. When the distributed generation capacity is surplus, the electricity is fed back to the distribution network. When a distribution network failure occurs, the microgrid is required to actively identify the distribution network failure state or passively accept the instructions of the distribution network master station, switch from grid-connected operation to island operation, and reconnect the microgrid to the grid after the failure is cleared.

[0003] In the event of a distribution network failure, in order not to affect the normal power supply of the load in the microgrid, the existing technology mainly includes two aspects: one is the microgrid seamless on-grid and off-grid switching technology, and the other is the microgrid reconstruction technology. Microgrid seamless on-grid and off-grid technology mainly includes two technical routes. One is to use power generation forecasting and load forecasting to switch on backup power or load, and pursue the power supply and consumption balance of distributed power sources and loads in the microgrid. The second is to use the switching of distributed power control modes to maintain the stable operation of the microgrid. Microgrid reconstruction technology mainly uses the island networking capability of distributed power sources to divide the distribution network loads and microgrid loads that have the conditions for power transfer into multiple islands, and the distributed power sources in the islands support the stable operation of each island and the normal power supply of the loads.

[0004] However, the prior art has the following disadvantages:

[0005] 1) Microgrid seamless on-grid and off-grid technology focuses on the optimized operation and control of the microgrid itself. Technical route 1 relies on the accuracy of power generation forecasting and load forecasting, and requires the reservation of backup power and load in advance. Technical route 2 relies on the switching speed of the distributed power control mode, and requires the microgrid to quickly sense faults. Microgrid reconstruction technology focuses on the optimization and decoupling of the overall distribution network. In practical applications, the actual structure of the distribution network and fault handling methods also need to be considered.

[0006] 2) The existing technology does not consider the actual fault self-healing process of the distribution network, and the practical level needs to be improved. The distribution network fault self-healing can realize fault location, isolation and power transfer, and improve the reliability of distribution network power supply. At present, the more mainstream is the master station centralized + local fault self-healing mode, which uses the coordination of distribution network automation switches to realize fault location and isolation on site, uses the master station to analyze and calculate the power transfer path, and remotely controls the distribution network automation switch to realize power transfer.

[0007] 3) During the self-healing process of distribution network faults, along with a series of distribution network automatic switch actions, the structure and electrical quantity of the distribution network will change synchronously. The microgrid can extract and use these characteristic information to achieve rapid fault perception and formulate a matching microgrid on-grid and off-grid strategy. Both the existing microgrid seamless on-grid and off-grid technology and the microgrid reconstruction technology do not consider the distribution network self-healing process, and their practicality needs to be improved. Summary of the invention

[0008] The present application provides a method and device for automatic control of microgrid on-grid and off-grid, so as to solve the problem that the prior art fails to consider the self-healing process of the distribution network when a distribution network failure occurs, and the practicality needs to be improved.

[0009] In order to solve the above technical problems, the present application proposes a microgrid on-grid and off-grid automatic control method, comprising: monitoring the on-off status of the distribution network automation switch on the line that has a passage with the microgrid, and monitoring the voltage of the microgrid grid connection point; when it is monitored that the upstream distribution network automation switch of the microgrid grid connection point is opened and the voltage of the microgrid grid connection point is reduced, it is determined that a line fault has occurred; when a line fault occurs, the microgrid grid connection switch is controlled to open so that the microgrid operates in an island mode; waiting for the distribution network self-healing process to end, and receiving an instruction to end the distribution network fault self-healing process; when the voltage of the microgrid grid returns to normal, starting the synchronous grid connection function, and controlling the microgrid grid connection switch to close, so that the microgrid can resume grid-connected operation.

[0010] Optionally, when the voltage of the microgrid connected to the grid returns to normal, the synchronous grid-connected function is started to control the microgrid grid-connected switch to close, so that the microgrid can resume grid-connected operation, including: determining whether the voltage of the microgrid connected to the grid returns to normal.

[0011] Optionally, the microgrid on-grid and off-grid automatic control method further includes: when the voltage at the microgrid on-grid point has not returned to normal, receiving a fault completion clearing instruction to determine that the voltage at the microgrid on-grid has returned to normal.

[0012] Optionally, before monitoring the on-off state of a distribution network automation switch on a line having access to the microgrid, the method further includes: detecting the on-off state of a microgrid grid-connected switch to determine the current operating state of the microgrid.

[0013] Optionally, waiting for the distribution network self-healing process to end and receiving an instruction to end the distribution network fault self-healing process also includes: after the microgrid grid-connected switch is disconnected, waiting for the distribution network fault self-healing process to end, the distribution network master station sends an instruction to end the distribution network fault self-healing process to the microgrid central controller, and the microgrid central controller sends an instruction to end the distribution network fault self-healing process to the microgrid grid-connected and off-grid automatic control device.

[0014] In order to solve the above technical problems, the present application proposes a microgrid on-grid and off-grid automatic control device, including: a monitoring module, used to monitor the on-off status of the distribution network automation switch on the line that has a passage with the microgrid, and monitor the voltage of the microgrid grid-connected point; a fault operation module, used to determine that a line fault has occurred when it is monitored that the upstream distribution network automation switch of the microgrid grid-connected point is opened and the voltage of the microgrid grid-connected point is reduced; when a line fault occurs, the microgrid grid-connected switch is controlled to open, so that the microgrid operates in an island; a communication module, used to wait for the distribution network self-healing process to end, and receive an instruction to end the distribution network fault self-healing process; a recovery module, used to start the synchronous grid-connected function when the voltage of the microgrid grid-connected returns to normal, and control the microgrid grid-connected switch to close, so that the microgrid can resume grid-connected operation.

[0015] Optionally, the fault operation module is further used to determine whether the voltage of the microgrid connected to the grid has returned to normal.

[0016] Optionally, the fault operation module is also used to: when the voltage at the microgrid grid-connected point has not returned to normal, receive a fault completion clearing instruction to determine whether the voltage at the microgrid grid-connected point has returned to normal.

[0017] Optionally, the monitoring module is also used to: detect the on / off state of the microgrid grid-connected switch to determine the current operating state of the microgrid.

[0018] Optionally, the communication module is also used for: after the microgrid grid-connected switch is opened, waiting for the distribution network fault self-healing process to end, the distribution network master station sends a distribution network fault self-healing process end instruction to the microgrid central controller, and the microgrid central controller sends a distribution network fault self-healing process end instruction to the microgrid grid-connected and off-grid automatic control device.

[0019] This application proposes a microgrid on-grid and off-grid automatic control method and device, which has the following advantages over the prior art:

[0020] (1) The grid connection and disconnection strategies can be customized based on the specific distribution network structure and distribution network fault self-healing mode, which is more practical and more scalable;

[0021] (2) By monitoring the information of distribution network automation terminals and microgrid connection points on site, rapid fault perception can be achieved, with faster response and less impact on the microgrid;

[0022] (3) The microgrid on-grid and off-grid automatic control device adopts a multifunctional integrated design, which can reduce the types and quantity of on-site equipment installation and reduce installation costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the implementation manner will be briefly introduced below. Obviously, the drawings described below are only some implementation manners of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0024] Figure 1 This is a schematic diagram of a typical hand-in-hand distribution network structure for microgrid access;

[0025] Figure 2 This is a schematic diagram of a typical hand-in-hand distribution network line fault when a microgrid is connected;

[0026] Figure 3 It is a schematic diagram of the communication structure of the microgrid on-grid and off-grid automatic control device of the present application;

[0027] Figure 4 This is a flow chart of an embodiment of a method for automatically controlling microgrids on and off the grid in the present application;

[0028] Figure 5 It is a structural schematic diagram of an embodiment of a microgrid on-grid and off-grid automatic control device of the present application. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the technical solution of the present application, the microgrid on-grid and off-grid automatic control method and device provided by the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0030] The schematic diagram of the typical hand-in-hand distribution network line fault of the microgrid is as follows Figure 2As shown. Take the case of a short circuit fault in the downstream line L2 of the microgrid grid connection point as an example. (1) If the line adopts the master station centralized + differential protection type local self-healing, the switch B2 will trip to disconnect the faulty line, and then the switch B3 will be opened to isolate the fault, and then the master station will send a remote control command to close the contact switch B4 to restore power supply to the non-fault area. During the entire fault self-healing process, only from the time when the fault occurs to the time when the switch B2 trips, the voltage at the microgrid grid connection point decreases, which will have an impact on the microgrid. However, the general switch tripping time is within 100ms, and the distributed power supply in the microgrid has a low voltage ride-through capability of 625ms, so the microgrid can always maintain grid-connected operation. (2) If the line adopts the master station centralized type + voltage and current type or voltage and time type local self-healing, the outgoing line switch S1 will trip. However, since the microgrid is still connected to the fault point, it will continue to cause short-circuit shock to the microgrid, threatening the safe and stable operation of the microgrid equipment. Therefore, the microgrid grid-connected switch must be disconnected to put the microgrid into an island operation state. Then the distribution network completes the fault location, isolation and power transfer according to the original switch action logic. If the microgrid grid-connected point restores normal power supply, the microgrid can be reconnected to the grid. If the microgrid grid-connected point is in the fault isolation area, it is necessary to wait until the fault is cleared and the distribution network restores normal power supply to the microgrid grid-connected point before the microgrid can be reconnected to the grid.

[0031] According to this idea, it can be analyzed that if the distribution network fault causes the downstream switch of the microgrid grid connection point to be opened, the faulty line can be disconnected, which will not cause a great impact on the microgrid, so the microgrid can remain connected to the grid; but if the distribution network fault causes the upstream switch of the microgrid grid connection point to be opened, the microgrid still has a short circuit fault, and the microgrid grid connection switch must be disconnected immediately, so that the microgrid enters an island operation state. The microgrid can not resume grid operation until the distribution network restores normal power supply to the microgrid grid connection point.

[0032] According to this microgrid on-grid and off-grid strategy, this application proposes a microgrid on-grid and off-grid automatic control device, which is deployed at the microgrid on-grid switch and mainly has the following functions: (1) The device can communicate with the distribution network automation terminal on the line to obtain the on-off status of the upstream and downstream distribution network automation switches; (2) The device can monitor the electrical quantity of the microgrid on-grid point; (3) The device can control the on-site on-off of the microgrid on-grid switch; (4) The device can accept the control instructions of the microgrid central controller to the microgrid on-grid switch; (5) The device can integrate the synchronous parallel function. The above functions can realize the rapid perception of distribution network faults and the on-site or remote on-grid and off-grid control of the microgrid. The device has the advantages of small communication delay, fast action speed and high action reliability.

[0033] In order to complete the above functions, this application designs the communication structure of the microgrid and off-grid automatic control device, such as Figure 3The device has multiple communication interfaces and supports mainstream communication protocols. It can not only control the microgrid grid-connected switch, but also communicate with the microgrid central controller and the distribution network automation terminal on the line, receive control instructions from the microgrid central controller, and receive switch status information from the distribution network automation terminal.

[0034] See also Figure 4 , Figure 4 1 is a flow chart of an embodiment of the microgrid on-grid and off-grid automatic control method of the present application. In this embodiment, the microgrid on-grid and off-grid automatic control method may include steps S110 to S140, and each step is specifically as follows:

[0035] S110: monitor the on / off status of the distribution network automation switch on the line that has access to the microgrid, and monitor the voltage of the microgrid connection point.

[0036] S120: When it is monitored that the upstream distribution network automatic switch of the microgrid grid connection point is opened and the voltage of the microgrid grid connection point is reduced, it is determined that a line fault occurs.

[0037] S130: When a line fault occurs, control the microgrid grid-connected switch to open, so that the microgrid operates in an isolated island mode; wait for the distribution network self-healing process to end, and receive a distribution network fault self-healing process end instruction.

[0038] When the upstream distribution network automation switch of the microgrid grid-connected point is opened and the voltage at the microgrid grid-connected point is reduced, the line fault is quickly determined and the microgrid grid-connected switch is controlled to open, so that the microgrid operates in an island mode. In other cases, the control instructions of the microgrid central controller are received.

[0039] After the microgrid grid-connected switch is opened, the distribution network fault self-healing process is waiting to be completed. The distribution network master station sends a distribution network fault self-healing process end instruction to the microgrid central controller, and the microgrid central controller sends a distribution network fault self-healing process end instruction to the microgrid grid-connected and off-grid automatic control device.

[0040] S140: When the voltage of the microgrid is restored to normal, the synchronous grid-connected function is started to control the microgrid grid-connected switch to close, so that the microgrid can resume grid-connected operation.

[0041] The microgrid on-grid automatic control device determines whether the voltage of the microgrid on-grid has returned to normal. When the voltage of the microgrid on-grid has returned to normal, the synchronous on-grid function is started to control the microgrid on-grid switch to close, so that the microgrid can resume on-grid operation.

[0042] When the voltage at the microgrid grid-connected point has not returned to normal, until the fault is cleared, the fault clearing command is received, it is determined that the voltage at the microgrid grid has returned to normal, the synchronous grid-connected function is started, and the microgrid grid-connected switch is controlled to close, so that the microgrid can resume grid-connected operation and solve the problem of continuous and stable power supply to the microgrid load during the distribution network failure.

[0043] Optionally, before monitoring the on / off state of the distribution network automation switch on the line having access to the microgrid, step S100 is further included as follows:

[0044] S100: Detecting the on / off state of the microgrid grid-connected switch to determine the current operating state of the microgrid.

[0045] In summary, this embodiment takes into account the self-healing process of distribution network faults and designs a microgrid on-grid and off-grid automatic control method, thereby improving the practicality of the microgrid on-grid and off-grid strategy; and realizes the rapid perception of distribution network faults and the automatic and safe on-grid and off-grid of the microgrid.

[0046] Based on the above-mentioned microgrid on-grid and off-grid automatic control method, this application proposes a microgrid on-grid and off-grid automatic control device, please refer to Figure 5 , Figure 5 5 is a schematic diagram of the structure of an embodiment of the microgrid on-grid and off-grid automatic control device of the present application. In this embodiment, the microgrid on-grid and off-grid automatic control device may include a monitoring module 510, a fault operation module 520 and a communication module 530. Specifically:

[0047] The monitoring module 510 is used to monitor the opening and closing states of the distribution network automation switches on the line that have access to the microgrid, and monitor the voltage of the microgrid connection point;

[0048] The fault operation module 520 is used to determine that a line fault occurs when it is detected that the upstream distribution network automatic switch of the microgrid grid connection point is opened and the voltage of the microgrid grid connection point is reduced; when a line fault occurs, the microgrid grid connection switch is controlled to open, so that the microgrid is operated in an islanded manner;

[0049] The communication module 530 is used to wait for the end of the distribution network self-healing process and receive the end instruction of the distribution network fault self-healing process; the recovery module is used to start the synchronous grid-connected function when the voltage of the microgrid grid-connected returns to normal, and control the microgrid grid-connected switch to close, so that the microgrid can resume grid-connected operation.

[0050] Optionally, the fault operation module 520 is further used to determine whether the voltage of the microgrid connected to the grid has returned to normal.

[0051] Optionally, the fault operation module 520 is also used for: when the voltage at the microgrid grid-connected point has not returned to normal, until the fault is cleared, receiving a fault clearing completion instruction, and determining that the voltage at the microgrid grid-connected point has returned to normal.

[0052] Optionally, the monitoring module 510 is further used to detect the on / off state of the microgrid grid-connected switch to determine the current operating state of the microgrid.

[0053] Optionally, the communication module 530 is also used for: after the microgrid grid-connected switch is opened, waiting for the distribution network fault self-healing process to end, the distribution network master station sends a distribution network fault self-healing process end instruction to the microgrid central controller, and the microgrid central controller sends a distribution network fault self-healing process end instruction to the microgrid grid-connected and off-grid automatic control device.

[0054] The present application discloses a method and device for automatic control of microgrid on-grid and off-grid, wherein the method includes: monitoring the on-off state of the distribution network automation switch on the line that has access to the microgrid, and monitoring the voltage of the microgrid on-grid point; when it is monitored that the upstream distribution network automation switch of the microgrid on-grid point is off, and the voltage of the microgrid on-grid point is reduced, it is determined that the line has a fault; when a line fault occurs, the microgrid on-grid switch is controlled to be off, so that the microgrid operates in an isolated island; waiting for the distribution network self-healing process to end, receiving the end instruction of the distribution network fault self-healing process; when the voltage of the microgrid on-grid returns to normal, the synchronous on-grid function is started, and the microgrid on-grid switch is controlled to close, so that the microgrid can resume on-grid operation. Through the above method, the present application solves the problem of continuous and stable power supply of microgrid loads during distribution network faults, and improves the practicality of microgrid on-grid and off-grid strategies; it can achieve rapid fault perception, faster response speed, and less impact on the microgrid.

[0055] It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. In addition, for ease of description, only some structures related to the present application are shown in the accompanying drawings, rather than all structures. The step numbers used in the text are also only for the convenience of description and are not used as a limitation on the order in which the steps are executed. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0056] The terms "first", "second", etc. in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0057] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0058] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A microgrid on-grid and off-grid automatic control method, characterized in that: include: Monitor the opening and closing status of the distribution network automation switch on the line that has access to the microgrid, and monitor the voltage at the microgrid connection point; When it is monitored that the upstream distribution network automatic switch of the microgrid grid connection point is opened and the voltage of the microgrid grid connection point is reduced, it is determined that a line fault occurs; When a fault occurs in the line, the microgrid grid-connected switch is controlled to open, so that the microgrid operates in an islanded manner; Wait for the distribution network self-healing process to end, and receive a distribution network fault self-healing process end instruction; Determine whether the voltage at the microgrid connection point returns to normal; When the voltage at the microgrid grid connection point has not returned to normal, receiving a fault completion clearing instruction to determine that the voltage at the microgrid grid connection point has returned to normal; When the voltage at the microgrid grid-connected point returns to normal, the synchronous grid-connected function is started, and the microgrid grid-connected switch is controlled to close, so that the microgrid resumes grid-connected operation.

2. The microgrid on-grid and off-grid automatic control method according to claim 1, characterized in that: Before the on-off state of the distribution network automation switch on the monitoring line having access to the microgrid, the method further includes: Detect the on / off status of the microgrid grid-connected switch to determine the current operating status of the microgrid.

3. The microgrid on-grid and off-grid automatic control method according to claim 1, characterized in that: The step of waiting for the distribution network self-healing process to end and receiving a distribution network fault self-healing process end instruction further includes: After the microgrid grid-connected switch is opened, the distribution network fault self-healing process is waiting to be completed. The distribution network master station sends a distribution network fault self-healing process end instruction to the microgrid central controller, and the microgrid central controller sends a distribution network fault self-healing process end instruction to the microgrid grid-connected and off-grid automatic control device.

4. A microgrid on-grid and off-grid automatic control device, characterized in that: include: A monitoring module is used to monitor the opening and closing status of the distribution network automation switch on the line that has access to the microgrid, and monitor the voltage at the microgrid connection point; A fault operation module is used to determine that a line fault occurs when it is monitored that the upstream distribution network automatic switch of the microgrid grid connection point is opened and the voltage of the microgrid grid connection point is reduced; When a fault occurs in the line, the microgrid grid-connected switch is controlled to open, so that the microgrid operates in an islanded manner; A communication module, used for waiting for the end of the distribution network self-healing process and receiving an instruction for the end of the distribution network fault self-healing process; A recovery module, used to start the synchronous grid-connection function and control the microgrid grid-connection switch to close when the voltage at the microgrid grid-connection point returns to normal, so that the microgrid can resume grid-connection operation; The fault operation module is also used for: Determine whether the voltage at the microgrid connection point returns to normal; When the voltage at the microgrid grid connection point has not returned to normal, a fault completion clearing instruction is received to determine that the voltage at the microgrid grid connection point has returned to normal.

5. The microgrid on-grid and off-grid automatic control device according to claim 4, characterized in that: The monitoring module is also used for: Detect the on / off status of the microgrid grid-connected switch to determine the current operating status of the microgrid.

6. The microgrid on-grid and off-grid automatic control device according to claim 4, characterized in that: The communication module is also used for: After the microgrid grid-connected switch is opened, the distribution network fault self-healing process is waiting to be completed. The distribution network master station sends a distribution network fault self-healing process end instruction to the microgrid central controller, and the microgrid central controller sends a distribution network fault self-healing process end instruction to the microgrid grid-connected and off-grid automatic control device.