In short. A microgrid controller coordinates diesel generators, battery storage, solar inverters, the utility connection and controllable loads so that a site runs correctly grid-connected, islanded, and through the transitions between them. It decides which source forms the grid when the utility is absent, keeps diesel sets within safe loading while solar and batteries vary, and manages reserve, state of charge, load shedding and resynchronisation. Safety and stability come before fuel saving.
What distinguishes a microgrid controller from a generator master
A master generator controller manages sets that all behave the same way: synchronous machines with governors and AVRs that can each form a grid. A microgrid adds sources that behave differently. Solar inverters normally follow a grid and cannot create one. A battery system’s power conversion system may be grid-following, grid-forming, or switchable. The controller therefore has to manage not only how much each source produces but what role each one plays in holding the system together, and that role changes between modes.
| Mode | Who forms voltage and frequency | Controller priorities |
|---|---|---|
| Grid-connected | The utility | Import and export limits, peak shaving, solar self-consumption, battery charging, keeping sets ready |
| Islanded on diesel | One or more diesel sets | Set loading within limits, solar curtailment, reserve, load shedding |
| Islanded on BESS | Grid-forming PCS | State of charge, inverter current limits, diesel start before the battery is exhausted |
| Islanded hybrid | Diesel sets with BESS supporting, or BESS with sets following | Share of transients, minimum set loading, charge and discharge strategy |
| Transition | Being handed from one to another | Island detection, synchronisation, breaker sequencing, no simultaneous conflicting references |
The grid-forming question
In an island, exactly one control reference must set voltage and frequency, and everything else must follow it. If two sources both try to form the grid without a coordinated sharing arrangement they fight, and if none does the island collapses. The controller must know which source owns that role and sequence any handover.
A diesel set is a natural grid former through its governor and AVR. A grid-forming battery PCS can do the same, and can do it faster, but only if that capability has been verified for the actual inverter, its firmware and its protection settings. Where a battery and diesel sets share the island, the control relationship between the PCS and the governors must be explicitly engineered. The design of that relationship is covered in grid-forming and grid-following mode coordination.
Keeping diesel sets within safe loading
At midday the solar inverters may supply most of the load, pushing the diesel set towards no load. A set that runs for long periods below about 30% load suffers wet stacking, carbon fouling of injectors and exhaust, and reverse power when solar output rises faster than the governor can respond. The controller enforces a minimum diesel loading, typically 30 to 40% of the running set’s rating, by curtailing solar output through the inverters’ power-limit interface, by diverting surplus into the battery, or by switching in a controllable load.
Worked example (illustrative). A site has a 500 kW diesel set running an islanded load of 400 kW with 300 kWp of solar. At noon the solar could deliver 250 kW, leaving the set at 150 kW, which is 30% and at the limit. If the load drops to 300 kW at lunch, uncurtailed solar would push the set to 50 kW, or 10%. The controller curtails solar to about 150 kW so that the set holds 150 kW, unless a battery can absorb the difference.
Battery state of charge as a control variable
A battery system’s power rating in kW says what it can do now; its state of charge says for how long. The controller manages a charge and discharge strategy around reserved bands: a minimum state of charge held back for black start or transition support, a working band for peak shaving or solar shifting, and a maximum that leaves headroom for absorbing surplus.
In island mode on battery alone, the controller must start a diesel set before the battery reaches its lower limit, allowing for start time and a possible failed first start. In diesel-island mode the battery can be used to take transients so that the set sees a smooth load, which allows a smaller set or a set running closer to its optimum. The storage side is dealt with in hybrid energy management controls.
Transitions: the hardest part
Going from grid-connected to island happens either on purpose or because the utility failed. An unplanned island begins with detection: the controller or the interconnection protection must recognise loss of utility quickly, open the tie breaker, and ensure a grid-forming source takes over before the inverters trip on under-frequency.
If a battery PCS can switch from following to forming within a few cycles, the transition can be nearly seamless; if the only former is a diesel set, there is a gap of 10 to 20 seconds that a UPS must cover for loads that cannot tolerate it. Returning to the grid requires synchronising the island to the utility at the tie breaker, with the island’s former adjusting its frequency and voltage to match, and then handing the forming role back to the utility. The transition logic is examined in islanding detection and island transition control.
Timescales and the control hierarchy
Governors, AVRs and inverter current loops act in milliseconds. Load sharing and PCS power setpoints act in hundreds of milliseconds to seconds. Dispatch, state-of-charge strategy and economic optimisation act in minutes. A sound microgrid architecture keeps each function at the layer that matches its speed and does not route fast actions through a supervisory system or SCADA. The architecture must also define what continues to work when the controller or its network is lost.
Protection in a system with several fault-current levels
A microgrid has a different fault level in each mode. Grid-connected, the utility supplies tens of kiloamps. On a diesel island, fault current is limited to perhaps three times the set’s rated current for a few cycles and may decay below pickup. On a battery island, the inverter limits current to little more than rated, and conventional overcurrent protection may not operate at all. The protection study must cover every mode, and the controller may need to switch setting groups in the relays as the mode changes. The fault-current behaviour of inverters is set out in inverter, UPS and BESS fault-current behaviour.
Which layer has to act, and how fast
Most microgrid trouble is not a wrong decision but a decision taken at the wrong level. A controller that is excellent at scheduling cannot also be the thing that holds frequency through a step, and a device that reacts in milliseconds has no business choosing which source runs tomorrow. Separating the layers by the time they have to act in makes the architecture decide itself.
| Timescale | What has to happen | What owns it | What goes wrong if the layer above tries |
|---|---|---|---|
| Under a cycle | Hold the voltage waveform itself when a load step or a fault arrives | The grid-forming device: the alternator’s own inertia and excitation, or an inverter in grid-forming mode | Nothing upstream is fast enough to matter. A site with no grid-forming source has no answer at this timescale at all |
| Tens of milliseconds to a second | Arrest the frequency excursion and restore it | The engine governor and the inverter’s droop response, acting locally | A controller polling at 100 milliseconds is a passenger here, and a setpoint it sends arrives after the event |
| Seconds | Share load correctly between sources, bring another set on, shed a block of load | The microgrid controller, over a deterministic link | Left to the governors alone, the sources find an equilibrium that may be nowhere near the intended split |
| Minutes | Decide what should be running: battery state of charge, minimum diesel loading, solar forecast | The controller’s dispatch layer | Pushed down into fast control, it produces hunting between sources as two loops chase one variable |
| Hours and days | Economics, emissions, maintenance hours, fuel deliveries | The energy management layer, which may not be on site at all | Allowed to act in real time, it can order a transition at the moment the plant least wants one |
The second row is where most disappointment with microgrid controllers originates. A buyer is shown a controller that manages sources beautifully in seconds and assumes it will also handle the load step that trips the site, and it cannot: by the time a supervisory device has seen a frequency excursion, decided and sent a command, the governor has already dealt with it or failed to. Frequency through a step is settled by what is physically connected and how it is tuned, not by what is supervising it, and no amount of controller capability substitutes for inertia or a grid-forming inverter.
The useful question when specifying a scheme is therefore not what the controller can do, but which row each of the site’s requirements belongs to. A requirement to ride through a utility dip is a first-row requirement and is answered by hardware. A requirement to keep the diesel above its minimum loading is a fourth-row requirement and is answered by dispatch logic. Writing them into the same specification paragraph is how sites end up paying for a capable controller and still having the original problem.
One architectural consequence worth stating. Because the top two rows are answered locally and the bottom three by a supervisor, the plant has to behave sensibly when the supervisor is absent. A controller that fails, or a link that drops, should leave the sources in a defined state that is safe to stay in — governors in droop, sharing load, diesel loading within limits — rather than in whatever state the last command left. That fallback is a design decision, and it is proved by disconnecting the controller during commissioning and watching what the plant does.
Common mistakes
- Letting solar run uncurtailed on a diesel island. The set drops below minimum load, wet-stacks, and eventually trips on reverse power when the load steps down.
- Assuming the battery inverter can form the grid because its datasheet mentions off-grid capability. The actual firmware, settings and protection may not support it, and the island collapses at the first transition.
- Leaving the grid-connected relay settings in place for island operation. Faults in island mode are not cleared because the available fault current is below pickup.
- Routing fast load-share or PCS commands through SCADA. Latency turns a stable island into an oscillating one.
What to send us
Send a single-line diagram showing the utility tie, the generator bus, the solar and battery connection points and their inverter makes and ratings, the diesel set nameplates, a load profile with at least a weekday and a weekend, and your objectives in order of importance, for example continuity first and fuel saving second. State whether export to the DISCOM is permitted. Use the application engineering enquiry for microgrid control schemes.
Questions engineers ask
Can a microgrid controller hold frequency through a load step?
No, and expecting it to is the commonest disappointment with these schemes. A frequency excursion is over in tens to hundreds of milliseconds; by the time a supervisory controller has seen it, decided and sent a command, the governor has already dealt with it or failed to. What holds frequency through a step is what is physically connected and how it is tuned: engine inertia, governor response, and a grid-forming inverter if there is one.
What should the plant do if the microgrid controller fails?
Stay in a state that is safe to remain in, rather than in whatever state the last command left. Governors in droop, sources sharing load, diesel loading inside its limits. That fallback is a design decision rather than a default, and the way to prove it is to disconnect the controller during commissioning and watch what the plant actually does.
Can I add solar to my diesel generator without a microgrid controller?
Only in small proportions. Solar below about 20 to 25% of the set’s rating usually leaves enough diesel loading at all times. Above that, something must curtail the inverters or absorb the surplus to keep the set above its minimum load, and that is a controller function.
Does a battery mean the generator is no longer needed?
Rarely. A battery covers transients, short outages and solar shifting, but its energy is finite and recharging it after a long outage needs a source. A generator remains the long-duration source in most sites, while the battery lets it run less, at a healthier load. A simulation on logged load and outage data shows how large each needs to be.
What is the difference between a microgrid controller, a PMS and an EMS?
A power management system coordinates generators and loads for electrical stability and capacity. An energy management system optimises energy use and cost over time. A microgrid controller combines enough of both to run the site in grid-connected and islanded modes and to manage the transitions. The labels overlap between vendors; the functions and their timescales are what matter.
Will my loads see an interruption when the grid fails?
It depends on which source forms the island. A grid-forming battery that is already online can pick up within a few cycles. If the only grid former is a diesel set, the gap is 10 to 20 seconds and sensitive loads need a UPS. Verify the actual equipment’s behaviour in a test before relying on either answer.
Technical content reviewed by D. Srinivas Reddy, Managing Partner and Service Engineer, Reddy Generators. Last updated 19 October 2026.