Programmable Control System with Applications in Alternating Current Motors Control