Programmable Controllers Theory And Implementation