Lecture11 PID Controller
Lecture11 PID Controller
Engineering
DR.EE 417S AYED
AMGED
Lecture 11
Agenda
PID controller
Tuning of PID
Introduction
Classical Controller
One form of controller widely used in industrial process control is the
three-term, PID controller
Due to its simplicity and excellent if not optimal performance
in many applications,
It can be tuned by operators without extensive background in
Controls
PID Stands for
P => Proportional
I => Integral
D => Derivative
Classical Controller
This controller has a transfer function:
+
-
e(t)
𝑮𝒄 ( 𝒔 ) u(t)
𝑮( 𝒔 )
PID controller
Proportional Controller
The time domain equation of P controller is,
(1)
Where u(t) control signal , e:error signal, Kp: proportional constant gain
The form of P-controller in S-domain is:
- +
𝐾𝑖
𝑠
𝐹𝑒𝑒𝑑𝑏𝑎𝑐𝑘
How do the PID parameters affect system dynamics?
Steady
SETTLING
PID Gain RISE TIME OVERSHOOT state
TIME
ERROR
Zero steady
Increase Ki Decrease Increase Increase state
Small Small
Increase Kd Decrease Decrease
Change Change
PID controller
The design technique for the PID controller is as follow:
1. Evaluate the performance of the uncompensated
system to determine how much improvement in
transient response is required.
2. Design the P controller to decrease the rise time.
3. Use the I controller to yield the required steady-
state error.
4. Use D controller to reduce overshoot in the
PID controller tunning
PID tunning
There are many methods available to determine acceptable values of
the PID gains.
The process of determining the gains is often called PID tuning.
A common approach to tuning is to use manual PID tuning methods,
whereby the PID control gains are obtained by trial-and-error with
using step responses.
A more analytic method is the Ziegler–Nichols tuning method.
A Ziegler–Nichols tuning method based on open-loop responses to a
step input (first method) and a related a Ziegler–Nichols tuning
method based on closed-loop response to a step input (second method)
PID tunning
The transfer function of PID controller is given as
𝑈 (𝑠 ) 1
=𝐾 + 𝐾 𝑖 + 𝐾 𝑑 𝑠
𝐸 ( 𝑠) 𝑝 𝑠
It can be simplified as
𝑈 ( 𝑠) 1
= 𝐾 (1+ + 𝑇 𝑑 𝑠)
𝐸 (𝑠 ) 𝑝
𝑇𝑖 𝑠
Where 𝐾𝑝 𝐾𝑑
𝑇 𝑖= 𝑇 𝑑=
𝐾𝑖 𝐾𝑝
Zeigler-Nichol’s Second Method
In the second method, we first set K D=0, KI=0 and Using the
proportional control action only.
Controller Kp Ti Td
P 0.5 Kc - -
PI 0.45 Kc Pc/1.2 -
PID 0.6 Kc 0.5Pc Pc/8
Zeigler-Nichol’s Second Method
Example:
Consider the control system shown in Figure. Design the PID controller
using Zeigler-Nichol’s Second Method
Zeigler-Nichol’s Second Method
Solution
By setting Ki=0 and Kd=0, closed loop transfer function is obtained as
follows.
6 (5 − 𝜔¿¿ 2)=0 ¿
𝜔= √5 𝑟𝑎𝑑/ 𝑠𝑒𝑐
Zeigler-Nichol’s Second Method
Solution 𝜔= √5 𝑟𝑎𝑑/ 𝑠𝑒𝑐
Hence the period of sustained oscillations is
2𝜋
𝑃 𝑐=
𝜔
2𝜋
𝑃 𝑐= =2 .8099 𝑠𝑒𝑐
√5
Referring to Table
𝐾 𝑝 =0 . 6 𝐾 𝑐 =18
𝑇 𝑖=0 .5 𝑃 𝑐 =1 . 40 5
𝑇 𝑑 =0 . 125 𝑃 𝑐 =0 .35124
Zeigler-Nichol’s Second Method
Solution
1
𝐺 𝑐 (𝑠)=18( 1+ + 0 . 35124 𝑠)
1 . 41 𝑠