REAL TIME CONTROL METHOD OF BATTERY ENERGY STORAGE