Power supply to power the programmable controller