5 - en - MIA - O2.3 - Exp Course 6 - Course Material - Part 5 MP
5 - en - MIA - O2.3 - Exp Course 6 - Course Material - Part 5 MP
Control system
Chapter 5: Control Systems Controllers
The various types of controllers are used to improve the performance of control
systems. This section shows how to introduce additional parameters into a system
so that we can control the location of all closed-loop poles.
Proportional Controller
A Proportional Controller (P) is one of the simplest types of controllers used in control
systems. The proportional controller produces an output, which is proportional to
error signal.
Where:
u(t): is the control output
𝑘𝑝 is the proportional gain
e(t) is the error, defined as the difference between the desired setpoint and the actual
process variable.
Chapter 5: Control Systems Controllers
The block diagram of the unity negative feedback closed loop control system along
with the proportional controller is shown in the following figure:
Chapter 5: Control Systems Controllers
Error Correction: The proportional controller reduces the error by producing an output
that is proportional to the magnitude of the error. A large error leads to a strong
correction.
Response Speed: The response of the system depends on the value of the
proportional gain 𝑘𝑝 A higher gain results in a faster response.
𝑘𝑝
𝐺 𝑠 =
𝑇𝑠 + 1
and the closed loop transfer function is:
For a unit step input as reference, the steady state error that the plant produces is
given by E(s):
Chapter 5: Control Systems Controllers
From these equations, we can observe that with the inclusion of proportional control,
the time constant of the system has reduced from:
𝑇
𝑇 𝑘𝑝 + 1
This means that the system responds much faster now.
Another observation is that the steady state error (offset) can be reduced by
increasing the proportional gain Kp; but that may also cause increase oscillations for
higher order systems thus, taking the poles to the right half of the s plane making
the system unstable.
Chapter 5: Control Systems Controllers
Integral Controller
The integral controller produces an output, which is integral of the error signal.
The block diagram of the unity negative feedback closed loop control system along
with the integral controller is shown in the following figure.
Elimination of Steady-State Error: The integral action ensures that the system
eventually reaches zero steady-state error. Even small persistent errors are
integrated over time, causing the controller to correct them.
Control Output Response: The longer the error persists, the larger the control output
becomes, which allows the controller to push the system towards the setpoint.
Chapter 5: Control Systems Controllers
For a unit step input as reference, the steady state error that the plant produces is
given by E(s):
Chapter 5: Control Systems Controllers
With the integral control, the major advantage is that the steady state error due to step
input reduces to zero. But simultaneously, the system response is generally slow,
oscillatory and unless properly designed, sometimes even unstable due to the
possible addition of an open loop pole.
The step response of this closed loop system with integral action is shown in the next
figure.
Chapter 5: Control Systems Controllers
Derivative Controller
A Derivative Controller (D) is a control strategy that responds to the rate of change of
the error, effectively predicting the future behavior of the error and applying a
corrective action. The derivative controller produces an output, which is derivative of
the error signal.
It is often used in combination with proportional and integral controllers in PID control
systems but can also be applied on its own in some cases.
The block diagram of the unity negative feedback closed loop control system along
with the derivative controller is shown in the following figure.
The derivative controller is used to make the unstable control system into a stable
one.
Predictive Action: The derivative controller acts on how fast the error is changing,
providing a damping effect that helps prevent overshooting or oscillations.
No Impact on Steady-State Error: The derivative controller does not directly affect the
steady-state error, as it only responds to changes in the error, not its magnitude.
Chapter 5: Control Systems Controllers
The block diagram of the unity negative feedback closed loop control system along
with the proportional derivative controller is shown in the following figure:
Chapter 5: Control Systems Controllers
The proportional derivative controller is used to improve the stability of control system
without affecting the steady state error.
Derivative Action (D): Predicts error changes, helping to reduce overshoot and
oscillations, leading to smoother, more stable responses. However, it may increase
sensitivity to noise.
Chapter 5: Control Systems Controllers
Example: Consider the plant with a proportional control as shown in the next figure:
We need our controller to somehow damp these oscillations, and this job is done with
the derivative controller:
Now this is always stable given that Kd and Kp are greater than 0. For simulation, we
shall take Kd = 5 and Kp = 10, with δ=0.79, which means the system is slightly
underdamped (0 < δ < 1) and hence we should see a slight overshoot.
Chapter 5: Control Systems Controllers
The block diagram of the unity negative feedback closed loop control system along
with the proportional integral controller is shown in the following figure:
Chapter 5: Control Systems Controllers
The proportional integral controller is used to decrease the steady state error without
affecting the stability of the control system.
Integral Action (I): Eliminates steady-state error by accumulating past errors and
adjusting the control signal accordingly. However, too much integral action can lead
to overshoot and slower response.
Chapter 5: Control Systems Controllers
1
Example: Consider the second order system 𝐺 𝑠 = and its block diagram with
𝑠 𝑠+10
an integral control:
This now has two overlapping poles at origin, then the system inherently becomes
unstable.
We need our controller to somehow eliminate the oscillations. To this end, we can add
a proportional controller:
The P-I action provides the dual advantages of fast response due to P-action and the
zero steady state error due to I-action. So we can conclude that by using P-I
control, the steady state error can be brought down to zero, and simultaneously, the
transient response can be improved.
Chapter 5: Control Systems Controllers
The output responses due to P, I and P-I control for the same plant can be compared
from the sketch shown in next figure:
The block diagram of the unity negative feedback closed loop control system along
with the proportional integral derivative controller is shown in the following figure:
Chapter 5: Control Systems Controllers
The proportional integral derivative controller is used to improve the stability of the
control system and to decrease steady state error.
Proportional Action (P): Reacts immediately to the current error, providing a strong
corrective response proportional to the error size.
Integral Action (I): Eliminates steady-state error by summing past errors, ensuring the
system reaches the exact setpoint.
Derivative Action (D): Predicts future error changes to reduce overshoot and dampen
oscillations, improving system stability.
Chapter 5: Control Systems Controllers
1
Example: Consider the second order system 𝐺 𝑠 = and its block diagram with a
𝑠 2 −10
PD control:
Let’s take KP = 20 and KD = 10:The system seems to be stable, but there seems to be
a large steady state error:
Chapter 5: Control Systems Controllers
KD and Kp
Chapter 5: Control Systems Controllers
- Eliminates steady-state error over time. - Can cause overshoot if not tuned well.
Integral (I)
- Ensures precise tracking of the setpoint. - Slower response to sudden changes.
Ziegler-Nichols Rule
The Ziegler-Nichols tuning method is a popular technique for setting the parameters
(gains) of PID controllers to achieve a desirable control response.
It provides empirical formulas for tuning the proportional (P), integral (I), and derivative
(D) gains based on the system’s response to certain conditions, aiming to achieve a
balanced response with minimal oscillations and overshoot.
The Ziegler-Nichols rule is a heuristic PID tuning rule that attempts to produce good
values for the three PID gain parameters:
Tuning a control loop is the adjustment of its control parameters (gain/proportional band,
integral gain/reset, derivative gain/rate) to optimum values for a target response. Tuning
is part of loop design, usually required if the system oscillates too much, responds too
slowly, has steady-state error, or is unstable.
Chapter 5: Control Systems Controllers
The Open-Loop method is suitable for systems that respond to a step input but do not
produce sustained oscillations. This method is based on analyzing the system’s step
response curve. In the first method, we obtain experimentally the response of the plant to
a unit-step input. If the plant involves neither integrator(s) nor dominant complex-
conjugate poles, then such a unit-step response curve may look S-shaped:
S-shape
Chapter 5: Control Systems Controllers
The S-shaped curve may be characterized by two constants, delay time L and time
constant T. The delay time and time constant are determined by drawing a tangent line
at the inflection point of the S-shaped curve and determining the intersections of the
tangent line with the time axis and line c(t)=K:
Chapter 5: Control Systems Controllers
The transfer function C(s)/U(s) may then be approximated by a first-order system with a
transport lag as follows:
Ziegler and Nichols suggested to set the values of and according to the formula shown in
the next table:
𝐾𝑝
𝐾𝑖 =
𝑇𝑖
𝐾𝑑 = 𝐾𝑝 𝑇𝑑
Chapter 5: Control Systems Controllers
Given the open loop (plant) system, apply the Ziegler–Nichols tuning rule for the
determination of the values of parameters Kp, Ti ad Td, using the first method.
30
𝐺 𝑠 =
𝑠 4 + 10𝑠 3 + 35𝑠 2 + 50𝑠 + 24
Chapter 5: Control Systems Controllers
Apply a step input and observe the system's output curve. Then, determine the delay
time L (time taken for the output to start responding) and the time constant T.
𝐿 = 0.6s
T = 1.8s
K = 1.25
Chapter 5: Control Systems Controllers
𝐿 = 0.6s
T = 1.8s
K = 1.25
𝑌(𝑠) 𝐾𝑒 −𝐿𝑠 1.25𝑒 −0.6𝑠
= =
𝑈(𝑠) 𝑇𝑠 + 1 1.8𝑠 + 1
Type of Kp Ti Td
controller
P 3 ∞ 0
PI 2.7 2 0
For PID:
𝐾𝑝 3.6
𝐾𝑖 = = =3
𝑇𝑖 1.2
𝐾𝑑 = 𝐾𝑝 𝑇𝑑 = 3.6 0.3 = 1.08
Chapter 5: Control Systems Controllers
𝐾𝑝 3.6
𝐾𝑖 = = =3
𝑇𝑖 1.2
𝐾𝑑 = 𝐾𝑝 𝑇𝑑 = 3.6 0.3 = 1.08
Chapter 5: Control Systems Controllers
Thus, the critical gain Kcr and the corresponding period are experimentally determined:
Chapter 5: Control Systems Controllers
Ziegler and Nichols suggested that we set the values of the parameters and according to
the formula shown in the next table:
Chapter 5: Control Systems Controllers
3. Measure the ultimate period Tcr , the time period of the sustained oscillations.
4. Calculate Kp, Ki, and Kd based on Kcr and Tcr using the Ziegler-Nichols formulas.
Example:
Given the open loop (plant) system, apply the Ziegler–Nichols tuning rule for the
determination of the values of parameters Kp, Ti ad Td, using the second method.
30
𝑃𝑙𝑎𝑛𝑡 = 𝐺 𝑠 =
𝑠 4 + 10𝑠 3 + 35𝑠 2 + 50𝑠 + 24
Chapter 5: Control Systems Controllers
Set Ki (integral gain) and Kd (derivative gain) to zero. Increase the proportional gain Kp
until the system reaches the critical gain Kcr:
Chapter 5: Control Systems Controllers
Chapter 5: Control Systems Controllers
𝐾𝑐𝑟 = 4.2
Tcr = 2.81s
Chapter 5: Control Systems Controllers
Calculate Kp, Ki, and Kd based on Kcr and Tcr using the Ziegler-Nichols formulas.
𝐾𝑐𝑟 = 4.2
Tcr = 2.81s
Type of Kp Ti Td
controller
P 2.1 ∞ 0
PI 1.89 2.34 0
For PID: 𝐾𝑝
𝐾𝑖 = = 1.79
𝑇𝑖
𝐾𝑑 = 𝐾𝑝 𝑇𝑑 = 0.89
THANKS