Principle of off-grid energy storage inverter control machine