When solar irradiation strikes the solar module (A), a voltage is generated that drives the direct current.
The solar current is transformed by an inverter (B) into alternating current and then fed into the public grid (D) or used directly (E).
The feed meter (C) measures the electricity yields and feeds the current into the public grid.
The feed-in tariffs are set by the local energy supplier or network operator according to the EEG (Erneuerbare-Energie-Gesetz).
Your power consumption is drawn as usual from the public grid and counted with the electricity meter.