Three modes of solar inverter