Application of Programmable Controller in the Mechatronics