SETTING THE MODE FOR THE GRID TIED ESS