How to use batteries in photovoltaic collector cabinets