The sun shines on the solar panels generating DC electricity
The DC electricity is fed into a solar inverter that converts it to 240V 50Hz AC electricity.
The 240V AC electricity is used to power appliances in your home.
Surplus electricity is fed back into the main grid.
Whenever the sun shines, the solar cells generate electricity. The grid connect inverter converts the DC electricity produced by the solar panels into 240V AC electricity, which can then be used by the property/household.
If a grid connect system is producing more power than is being consumed, the surplus is fed into the mains power grid. Some electricity companies will meter the electricity fed into the grid by your system and provide a credit on your bill. Other companies will install a bi-directional meter which will run backwards as your system feeds electricity into the grid.
When the solar cells are not producing power, for example at night, your power is supplied by the mains power grid as usual. The energy retailer charges the usual rate for the power used.