If PV generation is larger than the
load consumption, the surplus
power is stored in the battery.
If the battery is full or at maximum
charging power, the PV power is
reduced by adjusting the MPPT
If the PV generation is less than the
load consumption, it will discharge
the battery to supply power to the
load.