Microgrid
How Microgrid works
The operating modes of a Voltmasters microgrid and how the controller moves between the grid, the battery island, the generator and back.
The controller decides on its own, about once per second, which mode the site is in. The thresholds named here are set in the microgrid settings; the values between brackets are the defaults.
A complete outage in seven steps. The label next to the AC bus says each time who forms the grid.
Operating modes
flowchart TD
N["On grid"] -->|"grid outside its window"| E
subgraph EI["Disconnected from the grid"]
E["Islanded"] -->|"battery below 20 %"| EG["Islanded with generator"]
EG -->|"generator ready"| G["Generator forms the grid"]
G -->|"battery above 90 %"| E
end
EI -->|"grid stable for 60 s"| W["Grid back, waiting for release"]
W -->|"release or automatic"| R["Returning to the grid"]
R --> N2["On grid"]
The operating modes and their transitions, with the default thresholds.
| Mode | What it means |
|---|---|
| On grid | The site is connected to the public grid. The battery follows the grid and runs the normal control strategy. |
| On grid with generator | On the grid, with the generator supporting the site. Only when generator support with the grid present is allowed. |
| Grid fault, still coupled | The grid is outside its window, but the site is not yet separated from it. |
| Islanded | The site is separated from the grid and the battery forms the grid. |
| Islanded with generator | Island operation, with the generator supporting the battery. |
| Generator forms the grid | The generator forms the grid; the battery follows and charges. |
| Grid back, waiting for release | The grid is stable again, the site still runs as an island until the reconnection is released. |
| Returning to the grid | The reconnection procedure is running. |
| Switching between modes | A transition between two modes is in progress. |
| Fault | The microgrid logic stopped in a fault and no longer switches modes on its own. An incident is raised. |
On the grid
- The controller watches the grid voltage and frequency. The grid counts as usable inside the grid window (207 to 253 V, 49.5 to 50.5 Hz).
- The battery keeps an island reserve (50 %): on the grid it does not discharge below this state of charge, so energy is ready for an outage. Only holding the grid import limit may use the reserve. The controller tops it up from the grid at any price. Set it to 0 to turn it off.
From the grid to island operation
When the grid leaves its window, the controller opens the grid breaker and switches the battery inverter to grid forming. The site then has its own grid. With the EMS performing the transfer, the switchover costs a short interruption of at least 300 ms.

The switch to island operation: Q0 is open, the battery forms the AC bus and the procedure panel shows the mode change.
In island operation
- Power reserve (10 %): the controller keeps this share of the available power free to absorb a sudden load.
- Load shedding: below the load shedding SOC (30 %), the controller starts shedding loads in the order of the load shedding priorities. Critical loads are never shed.
- PV: by default the PV inverters stay online with a limited setpoint, so they never produce more than the site and the battery can absorb. Alternatively the PV is disconnected from the AC bus. See PV while islanded. In an island the battery forms, the controller also caps the PV at the PV limit (by default 76 % of the power of the forming battery converters).
The generator takes over
The battery reaches the start threshold
Below the generator start SOC (20 %), the controller starts the generator. The battery keeps forming the grid while the generator runs up.
The generator forms the grid
Once the generator is ready, it forms the grid and the battery switches to grid following. The generator powers the site and charges the battery. The procedure panel shows what the controller waits for.
The battery reaches the stop threshold
Above the generator stop SOC (90 %), the controller stops the generator again, after its minimum runtime, and the battery takes over.

The generator is synchronising, its breaker GB is still open, and the controller waits for it to form the island.
By default the generator only runs in island operation. With Generator support with the grid present it may also support the site on the grid, for example to shave a peak.
When the generator runs in parallel with the battery that forms the island, the battery can take over its reactive power with Reactive power takeover, so no reactive power circulates between the generator and the battery.
The grid returns
When the grid stays inside its window for the grid stable time (60 s), the site enters Grid back, waiting for release. In manual mode a user releases the reconnection; in automatic mode the controller reconnects after a delay. The procedure is described in Grid reconnection. Where the site is set up for it, it reconnects synchronised, without an interruption.
The grid transfer is performed by the EMS: the controller runs the whole sequence itself. A static transfer switch that takes over the transfer in hardware is not supported.
Frequently asked questions
How much power does the generator deliver, and is that a setting?
The power is not a fixed setting: the controller calculates it again every cycle. In Islanded with generator the battery forms the grid and the generator gets a setpoint. That setpoint is the lower of two values:
- The target load of the generator, for example 80 % of 250 kVA, so 200 kW. You set it in the generator settings.
- A ceiling: the consumption plus the maximum charge power of the battery, minus the PV, with that total divided by two.
$$ P_{ceiling} = \frac{P_{consumption} + P_{charge,max} - P_{PV}}{2} $$
$$ P_{generator} = \min(P_{target},\ P_{ceiling}) $$
The ceiling makes sure the battery always keeps as much charge room free as the generator delivers. If the load suddenly drops away, the battery absorbs the full generator output while the generator ramps down. That way no power ever flows back into the generator.
An example: 84 kW consumption, 222 kW charge power and 22 kW PV give a ceiling of (84 + 222 - 22) / 2 = 142 kW. That is below the target load of 200 kW, so the generator delivers 142 kW.
What changes the power:
- More consumption or more charge power raises the power, up to the target load.
- More PV lowers it: every kW of PV lowers the ceiling by half a kW. Once the generator sits at its minimum load, the controller limits the PV.
- A battery that is nearly full can take less power. The setpoint then drops in the same cycle.
- The ramp rate decides how fast the generator moves up to a higher setpoint.
- A manual override of the power replaces the target load, but stays below the ceiling.
When the generator forms the grid itself, it gets no setpoint and regulates its own power.






