ENERGY STORAGE SYSTEM MASTER CONTROL DEVICE