Energy storage cabinet ems function