10 - 1 PID Controllers
10 - 1 PID Controllers
CONTROLLERS
Feedback Controllers
Controllers is the “brain” of the control loop.
It decides “what to do” based on the error between the desired set point
value (SP) of controlled variable and its measured value.
𝑒 𝑡 = 𝑦𝑠𝑝 𝑡 − 𝑦𝑚 𝑡
D(s)
Disturbance
TF
GD(s)
Manipulated
Error Variable (MV)
+ E(s) P(s) X(s) Y(s)
GC(s) GV(s) GP(s)
YSP(s) _
Controlled Variable
Set point Controller TF Actuator TF Process
TF
Ym(s) Y(s)
GM(s)
Measure Variable
Sensor / transmitter TF
1. Proportional Control
For proportional control, the controller output is proportional to the
error signal, 𝑝 𝑡 varies linearly with 𝑒 𝑡
𝑝 𝑡 = 𝑝lj + 𝐾𝑐 𝑒 𝑡
where: 𝑝 𝑡 = controller output
𝑝lj = bias (steady−state) value
𝐾𝑐 = controller gain (usually dimensionless)
• When error (offset) has zero value, the controller output signal
reaches its steady state bias value (𝑝).
lj
• Action of controller: as absolute error increases, the controller
output signal must increase to give large change in manipulated
variable
1. Proportional Control
The key concepts behind proportional control are the following:
1. The controller gain (Kc) can be adjusted to make the controller
output changes as sensitive as desired to deviations between set
point and controlled variable;
2. The sign of Kc can be chosen
𝑝 𝑡 = 𝑝lj + 𝐾𝑐 𝑦𝑠𝑝 𝑡 − 𝑦𝑚 𝑡
• Direct acting controller (Kc < 0) → choose negative Kc value
to increase the controller output signal as the measured
controlled variable increase above set point.
• Reverse acting controller (Kc > 0) → choose positive Kc
value to increase the controller output signal as the measured
controlled variable decrease below set point.
3. For proportional controllers, bias 𝑝lj can be adjusted, a procedure
referred to as manual reset.
1. Proportional Control
8
1. Proportional Control
Some controllers have proportional band setting instead of a
controller gain.
100%
𝑃𝐵 =
𝐾𝑐
𝑝′ 𝑡 = 𝑝 𝑡 − 𝑝lj
𝑃′ 𝑠 = 𝐾𝑐 𝐸 𝑠
The transfer function for proportional-only control:
𝑃′ 𝑠
= 𝐾𝑐
𝐸 𝑠
Disadvantage of P-only controller:
• Tend to produce offset. → error between actual steady state
value and set point.
• Offset can be eliminated by manually resetting the set point
(ysp) or by using controller with integral action
Application:
• P-only control → for process with non-sluggish
dynamic behaviour and when offset is not important.
• Pressure or level control
2. Integral Control
For integral control action, the controller output depends on the
integral of the error signal over time,
1 𝑡 ∗
𝑝 𝑡 = 𝑝lj + න 𝑒 𝑡 𝑑 𝑡 ∗
τ𝐼 0
where τ𝐼 : integral time or reset time, has units of time.
Advantage: Disadvantages:
• Fast action • Oscillatory or unstable with integral control
• Eliminate offset • Need two parameters to be adjust (tune)
(𝐾𝑐 𝑎𝑛𝑑 τ𝐼 )
PI Controllers
The transfer function for the PI controller
1 𝑡 ∗
𝑝 𝑡 − 𝑝lj = 𝐾𝑐 𝑒 𝑡 + න 𝑒 𝑡 𝑑𝑡 ∗
τ𝐼 0
𝐾𝑐 𝑡 ∗
𝑝′ 𝑡 = 𝐾𝑐 𝑒 𝑡 + න 𝑒 𝑡 𝑑𝑡 ∗
τ𝐼 0 See slide Laplace
transform of Integral
′ 𝑠
𝐾𝑐 𝐸 𝑠
𝑃 = 𝐾𝑐 𝐸 𝑠 +
τ𝐼 𝑠
𝑃′ 𝑠 1
= 𝐾𝑐 1 +
𝐸 𝑠 τ𝐼 𝑠
𝑃′ 𝑠 τ𝐼 𝑠 + 1
= 𝐾𝑐
𝐸 𝑠 τ𝐼 𝑠
PI Controllers
K𝑐
Integral action =
τ𝐼
Disadvantage of integral controller:
• Tend to produce oscillatory responses of the controlled
variable.
• Oscillatory response can be eliminated by proper tuning
of the controller or by including derivative action.
Application:
• PI control → when offset elimination is important
• Flow, Temp, composition
3. Derivative Control
• The function of derivative control action is to anticipate the
future behavior of the error signal by considering its rate of
change.
• For ideal derivative action
𝑑𝑒 𝑡
𝑝 𝑡 = 𝑝lj + τ𝐷
𝑑𝑡
𝑃′ 𝑠 τ𝐷 𝑠
= 𝐾𝑐 1 +
𝐸 𝑠 ατ𝐷 𝑠 + 1
derivative filter
where the α constant (0.05 < α < 0.2)
(0.1 being a common choice).
Block diagram of the parallel form of PID control (without a derivative filter)
1. Parallel Form of PID Control
The parallel form of the PID controller transfer function (with a
derivative filter) is given by
𝑃′ 𝑠 1 τ𝐷 𝑠
= 𝐾𝑐 1 + +
𝐸 𝑠 τ𝐼 𝑠 ατ𝐷 𝑠 + 1
Block diagram of the parallel form of PID control (with a derivative filter)
2. Series Form of PID Control
The series-form of PID controller without derivative filter
𝑃′ 𝑠 τ𝐼 𝑠 + 1
= 𝐾𝑐 τ𝐷 𝑠 + 1
𝐸 𝑠 τ𝐼 𝑠
E(s) τ𝐼 𝑠 + 1 P’(s)
K𝑐 τ𝐷 𝑠 + 1
τ𝐼 𝑠
E(s) τ𝐼 𝑠 + 1 τ𝐷 𝑠 + 1 P’(s)
K𝑐
τ𝐼 𝑠 ατ𝐷 𝑠 + 1
3. Expanded Form of PID Control
• In addition to the well-known series and parallel forms, the expanded
form of PID control in Eq. 8-16 is sometimes used:
• The control parameter are 3 gains: 𝐾𝑐 , 𝐾𝐼 , 𝐾𝐷
𝑡
𝑑𝑒 𝑡
𝑝 𝑡 = 𝑝lj + 𝐾𝑐 𝑒 𝑡 + 𝐾𝐼 න 𝑒 𝑡∗ 𝑑𝑡 ∗ + 𝐾𝐷
0 𝑑𝑡
• The transfer function of expanded form is:
𝑃′ 𝑠 𝐾𝐼
= 𝐾𝑐 + + 𝐾𝐷 𝑠
𝐸 𝑠 𝑠
Controller Comparison
• P → Simplest controller to tune (𝐾𝑐 )
→Offset occur during disturbance or set point change.
• P I → More complicated to tune (𝐾𝑐 and τ𝐼 )
→Better performance than P-only.
→offset elimination
→ Most popular FB controller
• P ID → Most complicated to tune (𝐾𝑐 , τ𝐼 and τ𝐷 )
→Better performance than PI.
→offset elimination
→ Derivative action may be affected by noise
Key characteristic of commercial PID controller
Automatic and Manual Control Modes
• Automatic Mode
Controller output, p(t), depends on e(t), controller
constants, and type of controller used. ( PI vs. PID etc.)
• Manual Mode
Controller output, p(t), is adjusted manually.
Manual Mode is very useful when unusual conditions
exist:
✓ plant start-up
✓ plant shut-down
✓ emergencies
Typical Response of Feedback Control
Systems
Consider response of a controlled system after a sustained disturbance occurs
(e.g., step change in the disturbance variable)
y y
Figure 8.14. PI control: (a) effect of reset time (b) effect of controller gain.