The transition from the photovoltaic power source to the mains supply (or generator) and vice versa takes place at a time set by the user.