You're describing an islanding microgrid. When grid connected, the distributed energy resources, i.e., PV, wind, battery energy storage system (BESS) will operate in parallel with the grid. When the grid goes down, a point of interconnection disconnecting device should open to disconnect the...