In on grid system your PV plant synchronized with grid. Your excess power has been send to grid and you can use power from grid when you need while in off grid system Battery bank used for store excessive for further use when sun light not available in night.