Lecture 1011 Team
Lecture 1011 Team
Control Engineering
D controller
Control Two Position Controller
Engineering
➢ Simplest version of a discontinuous controller.
➢ Two different output states (ON and OFF), for instance pmin
and pmax.
➢ Cycling of controlled
variable excessive wear on Practical case (dead band/ hysteresis)
control valve.
xd dead band
xdg differential gap
h ( t ) = h2 e − t / RC
h ( t ) = h1e − t / RC + RQ (1 − e − t / RC )
Control Proportional (P) Controller
Engineering
Describe proportional controller with its dynamic behavior.
Control Proportional (P) Controller
Engineering
Control Proportional (P) Controller
Engineering
In feedback control, the objective is to reduce the error signal to zero
where
e ( t ) = ysp ( t ) − ym ( t ) (1)
and
e ( t ) = error signal
ysp ( t ) = set point
ym ( t ) = measured value of the controlled/process variable
(or equivalent signal from the sensor/transmitter)
Although Eq. (1) indicates that the set point can be time-varying, in
many process control problems it is kept constant for long periods of
time.
What is proportional control action? Why is it impossible to
completely eliminate the steady-state error of a system using
proportional control alone?
Control Proportional (P) Controller
Engineering
For proportional control, the controller output is proportional to the error
signal, p (t ) = p + K pe (t ) (2)
where:
p ( t ) = controller output
p = bias (steady-state) value
K p = proportional controller gain (usually dimensionless)
p − p ( s ) = K p E ( s ) (3)
Transfer function: G ( s ) = K p
Advantage: Easy to implement.
9.0m
PB = (0.5+0.5)/9
= 11.2% 9.0m
So it is a over-damped system.
Our goal is to investigate the influence of different controllers to
obtain:
➢ Fast rise time
➢ Minimum overshoot
➢ No steady-state error.
Control Example: P Controller
Engineering
No Controller
1
F(s) X(s)
s + 10 s + 20
2
The (open) loop transfer function for unit step input is given by
X (s) 1
G (s) = = 2
F ( s ) s + 10s + 20
1
and for unit step input F ( s ) =
s
The steady-state value for the output is
1
xss = lim x ( t ) = lim sX ( s ) = lim sG ( s ) F ( s ) =
t → s →0 s →0 20
Control Example: P Controller
Engineering
No Controller: Open-loop step response
➢ 1/20 = 0.05 is the final value of the output to an unit step input.
➢ This corresponds to a steady-state error of 95%, quite large!
➢ The settling and the rise time (10% to 90% for over-damped
system) are about 1.6 and 0.88 sec respectively.
Control Example: P Controller
Engineering
Proportional Controller (negative unity feedback system)
F(s)
1 X(s)
+ Kp
s 2 + 10 s + 20
−
n = 17.9 = 0.28 1
The above plot shows that the proportional controller reduces both the
rise time (Tr = 0.108 sec for underdamped system) and the steady-state
error, increases the overshoot, and decreases the settling time (Ts =
0.77 sec) by small amount.
Control Change in gain in P
Engineering controller
• Increase in gain:
→ Upgrade both steady-state and transient responses
→ Reduce steady-state error → Reduce stability!
Control P controller with High gain
Engineering
Control Home Work: P controller
Engineering
For the liquid-level control system in the following figure, write
down their differential equations and the corresponding transfer
function. Also draw their corresponding response curve h (liquid
level height) versus t (time).
Kp
qo
Control Integral (I) Controller
Engineering
For integral control, the rate of change of the controller output is
proportional to the error signal,
dp ( t )
= K I e (t )
dt
p ( t ) = p + K I e ( t ) dt
where:
p ( t ) = controller output
p = bias (steady-state) value
KI = integral controller gain (usually dimensionless)
p − p ( s ) = K I E ( s ) / s
KI
Transfer function: G (s) =
s
Advantage: Improve the steady-state performance.
Control Integral (I) Controller
Engineering
➢ Integral control action is used to fully correct system deviations at any
operating point.
➢ As long as the error is nonzero, the integral action will cause the value
of the manipulated variable to change.
➢ The higher the integral action coefficient KI, the greater the integral
action of an I controller.
✓ No steady-state error
✓ Sluggish response at low KI
✓ At high KI, the control loop tends to oscillate/may become instable
Explain what happens when integral controller used alone?
The integral controller may lead to oscillatory output and hence
has poor stability, although it improves the steady state
performance.
Control Integral (I) Controller
Engineering
F(s)
KI 1 X(s)
+ s s 2 + 10s + 20
−
KI = 1
X (s) 1
= 3
F ( s ) s + 10 s 2 + 20 s + 1
The above plot shows that the integral controller eliminates the steady-
state error, and increases the settling time (Ts = 76.7 sec).
Control Change in gain in I controller
Engineering
KI = 200
Control PI Controller
Engineering
For PI control, the equation describing its action can be written as,
p ( t ) = p + K p e ( t ) + K I e ( t ) dt
F(s)
KI 1 X(s)
Kp +
+ s s 2 + 10s + 20
−
s + 10 s + 20
3rd order system
The steady-state value for the output is
X (s)
xss = lim x ( t ) = lim sX ( s ) = lim s F (s) = 1
t → s →0 s →0 F (s)
Control Example: PI Controller
Engineering
Proportional-Integral Controller: Closed-loop step response
Kp = 30
KI = 70
X (s) 30 s + 70
= 3
F ( s ) s + 10 s 2 + 50 s + 70
The above plot shows that the PI controller eliminates the steady-state
error, reduces rise time and increases the overshoot.
Control Change in gain in PI
Engineering controller
p − p ( s ) = K d sE ( s )
Transfer function: G ( s ) = sK d
Control Derivative (D) Controller
Engineering
➢ Derivative controllers generate the manipulated variable from the
rate of change of the error and not –as P controllers –from their
amplitudes.
➢ These react much faster than P controllers: even if the error is
small, derivative controllers generate – by anticipation – large control
amplitudes as soon as a change in amplitude occurs.
➢ A steady-state error signal, however, is not recognized by D
controllers, because regardless of how big the error, its rate of change
is zero.
➢ Therefore, derivative-only controllers are rarely used in practice.
They are usually found in combination with other control elements,
mostly in combination with proportional control.
Control Derivative (D) Controller
Engineering
F(s)
1 X(s)
sK D
+ s 2 + 10 s + 20
−
KD = 10
X (s) 10 s
= 3
F ( s ) s + 20 s 2 + 20
The above plot shows that the derivative controller alone never
eliminates the steady-state error, rather makes it worse.
Control PD Controller
Engineering
For PD control, the equation describing its action can be written as,
de ( t )
p (t ) = p + K pe (t ) + Kd
dt
where, Transfer function:
G ( s ) = K p + sK d
Control PD Controller
Engineering
Effect of reducing the rise time (never eliminate
P the steady state error)
Effect of increasing stability, reducing overshoot
D and improving transient response (no response
for steady state error)
F(s)
1 X(s)
K p + sK D
+ s 2 + 10s + 20
−
s + 10 s + 20
The steady-state value for the output is
X (s) Kp
xss = lim x ( t ) = lim sX ( s ) = lim s F (s) =
t → s →0 s →0 F (s) 20 + K p
Control Example: PD Controller
Engineering
Proportional-Derivative Controller: Closed-loop step response
Kp = 300
KD = 10
X (s) 10 s + 300
= 2
F ( s ) s + 20 s + 320
The above plot shows that the PD controller reduces both overshoot
and settling time (Ts = 0.29 sec) and small change of steady-state error
for using P controller.
Control Change in gain in PD
Engineering controller
de ( t )
p ( t ) − p = K p e ( t ) + K I e ( t ) dt + K d
dt
1 de ( t )
= K p e ( t ) + e ( t ) dt + Td
Ti dt
Kp
Integral time constant: Ti =
Ki
Kd
Derivative time constant: Td =
Kp
1
G ( s ) = K p 1 + + sTd
sTi
Control PID Controller
Engineering
Effect of reducing the rise time (never eliminate
P the steady state error)
Effect of eliminating the steady state error (may
I make the transient response worse)
Effect of increasing stability, reducing overshoot
D and improving transient response (no response
for steady state error)
• It is also known as three-mode controller.
• No offset error.
• Tendency for oscillations is reduced.
• Requires proper tuning of PID parameters in accordance with
the system dynamics and response requirement.
• Tuning is inexpensive, but the implementation is time-
consuming.
Control PID Controller
Engineering
F(s)
KI 1 X(s)
Kp + + sK D
+ s s 2 + 10s + 20
−
F (s) K + K / s + sK s + (10 + K D ) s 2 + ( 20 + K p ) s + K I
1+ p I D
s 2 + 10 s + 20
The steady-state value for the output is
X (s)
xss = lim x ( t ) = lim sX ( s ) = lim s F (s) = 1
t → s →0 s →0 F (s)
Control Example: PID Controller
Engineering
PID Controller: Closed-loop step response
Kp = 350
KD = 5500
KI = 300
X (s) 5500 s 2 + 350 s + 300
= 3
F ( s ) s + 5510 s 2 + 370 s + 300
The above plot shows that the PID controller results no overshoot, no
steady-state error and fast rise time.
Control Change in gain in PID
Engineering controller
Control Response Characteristics:
Engineering PID Controllers
Control Comparison: PID Controller
Engineering
Control Tuning PID Controller
Engineering
Ziegler–Nichols tuning rules
F(s)
1 X(s)
K p 1 + + sTd Plant
+ Ts
i
−
F(s)
1 1 X(s)
K p 1 + + sTd
+ Ts
i
s ( s + 1)( s + 5 )
−
Characteristics Equation:
s ( s + 1)( s + 5 ) + K p = 0
s 3 + 6 s 2 + 5s + K P = 0
Control Example: Tuning PID Controller
Engineering
Ziegler–Nichols tuning rules
The value of Kp that makes the system marginally stable so that
sustained oscillation occurs can be obtained by use of Routh’s
stability criterion.
So K P = K cr = 30
Characteristics Equation: s 3 + 6 s 2 + 5s + 30 = 0
Marginal stability: 6 s 2 + 30 = 0 s 2 + 5 = 0 s = j 5
K p = 0.6 K cr = 0.6 30 = 18
Ti = 0.5 Pcr = 0.5 2.8 = 1.4
Td = 0.125 Pcr = 0.125 2.8 = 0.35
Control Example: Tuning PID Controller
Engineering
Ziegler–Nichols tuning rules K p = 0.6 K cr = 0.6 30 = 18
Ti = 0.5 Pcr = 0.5 2.8 = 1.4
Unit Response Curve
Td = 0.125Pcr = 0.125 2.8 = 0.35
Control Example: Tuning PID Controller
Engineering
Ziegler–Nichols tuning rule has provided a starting point for fine
tuning.
K p = 18
Ti = 3.077
Td = 0.7692
K p = 39.42
Ti = 3.077
Td = 0.7692