Controllers
Controllers
1
On-Off Controllers
• Simple
• Cheap
Chapter 8
2
On-Off Controllers (continued)
Synonyms:
“two-position” or “bang-bang” controllers.
Chapter 8
3
Practical case (dead band)
Chapter 8
4
Feedback Controllers
Chapter 8
8
PID Control Algorithm
1
t
de(t )
c(t ) c0 K c e(t ) e(t )dt D
I 0 dt
where e(t ) ysp ys (t )
Definition of Terms
• e(t)- the error from setpoint [e(t)=ysp-ys].
• Kc- the controller gain is a tuning parameter and
largely determines the controller aggressiveness.
• I- the reset time is a tuning parameter and
determines the amount of integral action.
• D- the derivative time is a tuning parameter and
determines the amount of derivative action.
Transfer Function for a PID
Controller
C ( s) 1
Gc ( s ) K c 1 D s
E ( s) Is
12
Basic Control Modes
Next we consider the three basic control modes starting with the
simplest mode, proportional control.
Proportional Control
Chapter 8
13
Although Eq. 8-1 indicates that the set point can be time-varying,
in many process control problems it is kept constant for long
periods of time.
For proportional control, the controller output is proportional to
the error signal,
Chapter 8
p t p Kce t (8-2)
where:
p t controller output
p bias (steady-state) value
K c controller gain (usually dimensionless)
14
The key concepts behind proportional control are the following:
100%
PB (8-3)
Kc
15
In order to derive the transfer function for an ideal proportional
controller (without saturation limits), define a deviation variable
p t as
p t p t p (8-4)
(8-5)
16
Offset Resulting from P-only
Control
Setpoint Offset
1.0
3
1
0
Time
Integral Control
For integral control action, the controller output depends on the
integral of the error signal over time,
1 t
p t p 0 e t * dt * (8-7)
τI
Chapter 8
P s 1 τI s 1
Kc 1 Kc (8-9)
E s τ s
I τ
I s
Chapter 8
Reset Windup
ysp
ys
cprop
Time
20
Effect of Variations in Kc
Effect of Variations in tI
22
• Thus, for ideal derivative action,
de t
p t p τD (8-10)
dt
where τ D , the derivative time, has units of time.
For example, an ideal PD controller has the transfer function:
Chapter 8
P s
Kc 1 τ D s (8-11)
E s
1 t de t
p t p Kc e t 0 e t * dt * τ D dt (8-13)
τI
25
The corresponding transfer function is:
P s 1
K c 1 τD s (8-14)
E s τI s
P s τ I s 1 τ D s 1
Kc (8-15)
E s τ
I Ds ατ s 1
26
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:
t de t
p t p K c e t K I e t * dt * K D (8-16)
0 dt
Chapter 8
PI
PID
Time
27
Controller Comparison
change.
PI - More complicated to tune (Kc, I) .
- Better performance than P
- No offset
- Most popular FB controller
PID - Most complicated to tune (Kc, I, D) .
- Better performance than PI
- No offset
- Derivative action may be affected by noise
28
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)
Chapter 8
29
Figure 8.13.
Proportional control:
effect of controller
gain.
Chapter 8
30
Chapter 8
31
Controller Tuning: A Motivational Example