The purpose of this paper is to analyse and implement PI control for the permanent magnet DC motor. The control algorithm is realised using Siemens S7-200 programmable logic controller (PLC). The complex motor system is composed of DC motor, driver and tachogenerator. The main objective is to achieve a satisfactory time response of the system output under disturbances like death zone, nonlinearity, measurement noise and external load acting. The PI controller is designed in the programming environment on a previously identified nonlinear motor system. Then the PI controller is embedded into the S7-200 PLC. The effectiveness of this controller are tested in both simulation mode and experiments.