Design and implementation of control system managing 110kV cable input, 110kV GIS and 22kV/15kV/0,86kV substations. The control system also manages backup power supply, induction furnace transformers, HVAC, and compensations. It then provides means to automatize energy management in foundry – controlling of smelting process based on quarter hour energy consumption.