Professional Documents
Culture Documents
90% (or more) of control loops in industry are PID Simple control design model simple controller
Control Engineering
4-1
P control
Integrator plant: ! =u+d y d(t) y(t) yd(t) -u(t) P controller:
u = k P ( y yd )
EE392m - Winter 2003
u(t)
admission rate =
U new t
y(t)
CPU
server utilization
-d(t)
Control Engineering
completion rate =
U done t
4-2
P control
Closed-loop dynamics
! + k P y = k P yd + d y
1 kP yd + d y= s + kP s + kP
1 d SS Steady-state (s = 0) y SS = yd + kP
t / T Transient y (t ) = y (0)e t / T + $ ! (1 e ) $ yd + k d SS ! P " %
&
T = 1 / kP
y(t)
0 2 4
|y(i)|
0.1 1 4-3 10
I control
y = g u + d,
Introduce integrator into control Example: Servosystem command u(t)
! = v, u v = k I ( y yd )
Closed-loop dynamics
y(t) More:
stepper motor flow through a valve motor torque ...
4-4
gk I s y= yd + d s + gk I s + gk I
EE392m - Winter 2003 Control Engineering
gk I z 1 y= yd + d z 1 + gk I z 1 + gk I
y = z 1 yd + (1 z 1 )d
4-5
Metrology system
4-6
Control Engineering
PI control
First-order system:
Example: WDM laser-diode temperature control
! = y +u + d y
P control + integrator for cancelling steady state error
Peltier Heatpump Temperature Controller
e = y yd ; !=e v u = k I v kP e
Other applications
! = y + u + d y
ATE EDFA optical amplifiers Fiber optic laser modules Fiber optic network equipment
Control Engineering
4-7
PI control
P Control + Integrator for cancelling steady state error Cascade loop interpretation:
Inner loop
e = y yd ; !=e v u = k I v k P e = k P ( e ki v ) "
Velocity form of the controller ! = k I e k P e ! u
kI kP
' ki e(t) yd y
kP
u(t)
- Plant
k I = ki k P
PI control
Closed-loop dynamics sk P + k I s yd + d y= s(s + 1) + sk P + k I s(s + 1) + sk P + k I Steady state (s = 0): y SS = yd . No steady-state error! Transient dynamics: look at the characteristic equation
y(t)
DISTURBANCE REJECTION
2 + (1 + k P ) + k I = 0
Disturbance rejection
( i ) (i ) = H d (i ) d y
EE392m - Winter 2003 Control Engineering
H d (i )
10 0
4-9
102
PLL Example
Phase-locked loop is arguably a most prolific feedback system
reference signal Hi-freq LPF
PLL
Control Engineering
4-10
reference error
Kd
VCO
C(s)
Ko s
Loop dynamics: ! = d K u
o
= t ot + d o phase PLL
e = K d u = k P e + k I ' e dt
EE392m - Winter 2003
s d 2 s + Ko K d k P s + k I
4-11
Control Engineering
PD control
2-nd order dynamics
Example:
Disk read-write control
! !=u+d y
PD control
Closed-loop dynamics
e = y yd ! kPe u = kD e
!! + k D e ! + kPe = d e 1 e= 2 d s + kD s + kP
!! = TVCM + TDISTURB J
Voice Coil Motor
k D = 2 ;
kP = 2
Control Engineering
4-12
PD control
Derivative (rate of e) can be obtained
speed sensor (tachometer) low-level estimation logic
Signal differentiation
is noncausal amplifies high-frequency noise
s 1 1 / D ! e e= e+ e Ds + 1 D Ds + 1
Modified PD controller:
s u = k D e kPe Ds + 1
Control Engineering 4-13
PD control performance
The performance seems to be infinitely improving for
k D = 2 ; k P = 2 ;
sampling in a digital controller rate estimation would amplify noise if too aggressive actuator saturation you might really find after you have tried to push the performance
If high performance is really that important, careful application of more advanced control approaches might help
EE392m - Winter 2003 Control Engineering 4-14
Plant Type
Constant gain - I control Integrator - P control Double integrator - PD control Generic second order dynamics - PID control
Control Engineering
4-15
PID Control
Generalization of P, PI, PD Early motivation: control of first order processes with deadtime ge TD s y= u s + 1
g
TD
Control Engineering
4-16
PID Control
PID: three-term control e = y yd independent sensor or an estimate
! k P e k I ' e dt u = k D e
Sampled-time PID
1 u = k D (1 z )e + k P e + k I e 1 1 z
1
present
past
kD , kP , kI
Performance
kI # & u = $ k D s + k P + !e s" %
Plant model sim
Control Engineering
4-18
kP
kI
kD
______ ______ 0.5kC P PI 0.45kC 1.2kP/TC ______ PID 0.5kC 2kP/TC kPTC/8
Z and N used a Monte Carlo method to develop the rule Z-N rule enables tuning if a model and a computer are both unavailable, only the controller and the plant are.
EE392m - Winter 2003 Control Engineering 4-19
!=e v uc = k I v k P e
uc > uMAX +uMAX , ( u = * uc , uMIN uc uMAX (u , will keep growing while the control uc < uMIN ) MIN
is constant. This results in a heavy overshoot later
Anti wind-up:
switch the integrator off if the control has saturated
Control Engineering
Manual/cascade mode switch Bumpless transfer between different modes, setpoint ramp Loop alarms Networked or serial port
Control Engineering
4-21