Design of PLC-based PI Controller For TH PDF
Design of PLC-based PI Controller For TH PDF
Jasmin Velagić, Kerim Obarčanin, Enisa Kapetanović, Senad Huseinbegović, Nedim Osmić
Department for Automatic Control and Electronics
Faculty of Electrical Engineering Sarajevo
Sarajevo, Bosnia and Herzegovina
[email protected]
Abstract— The purpose of this paper is to analyse and implement this paper is to analyze and demonstrate velocity control for the
PI control for the permanent magnet DC motor. The control permanent magnet DC motor with amplifier. The velocity of
algorithm is realised using Siemens S7-200 Programmable Logic DC motor can be varied by controlling the field flux, the
Controller (PLC). The complex motor system is composed of DC armature resistance or the terminal voltage [7]. In our case,
motor, driver and tachogenerator. The main objective is to velocity control would be realised with terminal voltage
achieve a satisfactory time response of the system output under method. The aim is to obtain a fast and stable response
disturbances like death zone, nonlinearity, measurement noise nonsensitive to system's parameters changes and disturbances
and external load acting. The PI controller is designed in the acting. The controller is realised by using PI control algorithm
programming enviroment on a previously identified nonlinear for DC motor under different constraints such as nonlinearities,
motor system. Then the PI controller is embedded into the S7-200 death zone, measurement noise and external load. The complex
PLC. The effectiveness of this controller are tested in both
DC motor system is composed of the DC motor with
simulation mode and experiments.
permanent stator magnet, the linear amplifier, the
I. INTRODUCTION tachogenerator and the axel gear. The effectiveness of the
controller is tested in both simulation mode and experiments.
Being simple, robust, effective and applicable to a broad
class of system, PI and PID controllers have been the most The paper is organised as follows. The structure and
widely used and well known controllers in industry for over 50 the elements of the complex DC motor system and overall
years [1]. In process industries, more than 97% of the control system are described in the Section II. The Section III
regulatory controllers are of the PID or PI type [2]. Easy describes identification procedure of the complex motor
controlling and cheapness of the circuit drive of DC motors system needed for simulation purpose. The design of PI
comparing to AC motors has lead to be chosen by the controller in PLC-based software (Siemens Step7 Micro/Win)
consumers and industries [3]. The permanent magnet DC is presented in Section IV. The essence of this paper is
motor becoming more popular in many control systems comparison of simulation and experimental results, shown in
because of its high power density, large torque to inertia ratio, Section V. The conclusions are written in section VI.
small and high efficiency [4], [5]. In that manner, analysis and
implementation variations of PI DC motor control is of crucial II. SYSTEM DESCRIPTION
importance, especially when we take into account widespread
use of permanent magnet DC motors. This control systems The DC control system based on the Siemens PLC is
exhibit good control performance without influences of shown in Figure 1. The system contains two components, PLC
significant disturbances and variation of controlling parameters based PI controller with analog input/output modul and the
[6]. It is known that moment of inertia of the DC motor always complex motor system. The PI controller is designed in
changed and does not produces properly system response. mentioned software and downloaded to Siemens PLC S7-200
Also, the variation of the load torque can create some ripples in CPU 222.
the rotor speed (or voltage). Therefore the PI controller should
be designed which would not be sensitive to the system
parameters and acting of input and output disturbances as much
as possible.
Also, auto tuning methods for adopting PI parameters are Figure 1. Block diagram of the control system
interesting for engineering because those methods ensure
improvement in industry automation systems. The objective of
where Ua is voltage applied on the armature, Ia is the armature B. Siemens PLC s7-200 + EM235 analog I/O modul
current , Ra and La are the armature resistence and inductance,
respectively, is rotational velocity of the armature, τm is the As PI controller it is used Siemens PLC S7-200, CPU 222.
motor driving torque, τt is the mechanical torque load, Jm and It is expendable, compact and very fast Siemens PLC,
D are moment of intertia and dumping coefficient at the motor especially with respect to its real time performance [8].
shaft and Kv is the voltage constant and Kt is torque constant. Mentioned PLC does not have an integrated analog input /
In this paper we used the permanent magnet DC motor whose ouput and for that reason expansion modul for analog input /
parametars are unknown. This motor is considered as a part of output EM235 has been used. The EM235 has 1 analog output
the complex DC motor system ilustrated in Figure 1. ( ±10V, 0-20mA ) and 4 analog inputs with capability to select
an voltage input range ±10V e.g.0-10V, 0-5V, ±10V, ±5V .
The power amplifier represents a linear serial controller The PLC is programmed using Step7 Micro/Win v4.0
shown in Figure 2. The output voltage is calculated as follows: software. More about PLC and analog I/O modul can be found
on Siemens official web site (www. siemens.com).
R4 R2
Uout = 1+ Uc (5) III. IDENTIFICATION OF COMPLEX MOTOR SYSTEM
R1 +R4 R3
The complex DC motor system is considered as black box.
where is controled voltage ( from PLC S7-200/ MR253 Further, parametric identification procedure of this complex
modul ) and represents appropriate resistor. Transfer system is performed using dSPACE system for rapid control
function of the power amplifier is : prototyping (RCP) [11].
The input signal is voltage applied to the power amplifier
and output is voltage on the DC motor shaft which is mesured
R4 R
A= R 1+ R2 (6) by tachogenerator. The choice of input data is essential for the
1 +R4 3
process identification. In this paper the input signal is chosen
to be band-limited white noise. The response of the complex
system on the excitation is shown in Figure 3 and Figure 4. clear trade-off between robustness and aggresiveness of the
Identification process is perfomed using Box-Jenkins method controller [9]. The block diagram of the control system and
achiving matching results of 92.65%. Results of this method process is depicted in Figure 6.
are shown on Figure 5. Due to constraints of the dSPACE
system, input and output values are scaled from [0,10] into
[0,1] and from [0, 2.8] into [0,1], respectively. The transfer
function of the complex motor system is :
2.105
G s = 0.40337s+1 (8)
-1
Gf Gm
Gc = -1
.
1-Gf Gm Gm (9)
Figure 3. 1
Gf = 1+λs .
(10)
Figure 4.
Kp
Gp = 1+Ts =Gm .
(11)
1+Ts
G-1
m= Kp
.
Figure 5. Measured and simulated motor system output (12)
P=2.4285, I=6.0204.
The dominant closed-loop time constants is set to be λ=0.079.
For the experimental validation of the proposed PI controller The time response of the control system to step and pulse
the Siemens PLC with an appropriate software (Siemens Step7 signals with PI controller in simulation mode are depicted in
Micro/Win) is used. The PI parameters achieved in the Figures 9. and 10.
simulation mode are embedded into the PLC. The ladder
diagram of this controller is shown in Figure 7.
This ladder diagram which represents PI algorithm,
contains two lines. In the first line (Network 1) a scalling blok
with purpose of converting integer type of variable into real
variable type is used. The second (Network 2) implements the
PID0_INT subroutine using PID Wizard.
A. Simulation results
The PI controller is realised using Compensator design It is very hard to control this nonlinear system with PI or
tool as a part of Simulink simulation environment [12]. The PID controller especially when it is implemented as PLC-
parameters are determined using Internal Model Control based controller [9]. Also, there are measurement noise and
very large death zone (5V) what makes control real challenge. VI. CONCLUSIONS
As can be seen in Figure 11., PLC is connected to DC motor
system via analog I/O modul. Also, digital multimeter is used
for control of a set point variable from the power unit. In this paper the classical and robust PI controller has been
developed for permament magnet DC motor control. The
complex motor system contained of the tachogenerator, the
linear amplifier and the permanent magnet DC motor, is
nonlinear and very challenging to control, especially using
classical PI controller. For purpose of the system control, it
was identified first. Then the performance of designed PI
controller is tested in simulation and experimental modes. In
experiments the PLC-based PI controller was used. The
simulation and experiment results demonstrated effectiveness
of the proposed PI controller under feedback control of the
complex nonlinear DC motor system under different types of
internal and external disturbances.
REFERENCES