Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
Outline
Classical ControlLecture 3
Lecture 3 Classical Control
Outline
Outline
1 Properties of PID Control
2 Tuning Methods of PID Control
3 Antiwindup Technique
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
Outline
1 Properties of PID ControlP-ControlPI-ControlPID-ControlPD-Control
2 Tuning Methods of PID ControlQuarter Decay MethodUltimate Sensitivity Method
3 Antiwindup TechniqueEffect of SaturationIntroducing Dead ZoneUsing the Non-Linearity
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
PID Feedback Controllers
PID means:
P : Proportional (control) u(t) = K · e(t)
I : Integral (control) u(t) =K
TI
∫ t
t0
e(τ)dτ
D : Derivative (control) u(t) = K · TD · e(t)
PID Control System Structure: Cascade Control
r(t)+
−
e(t)PID Controller Plant
G (s)
y(t)
What are the characteristics of PID control?
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
Proportional Feedback Control
Control Structure
Time Domain: u(t) = K · e(t)
Frequency Domain: D(s) = U(s)E(s) = K
Closed Loop Control System
r(t)+
−
e(t)P-Controller: K
PlantG (s)
w(t)y(t)
Gcl(s) =D(s)G (s)
1 + D(s)G (s)=
KG (s)
1 + KG (s)
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
Proportional Feedback Control
Advantages:
A simple controller
Disadvantages:
Steady state offset/error problem
Unity feedback system:
Kp = lims→0
Gcl(s) ess =1
1 + Kp
Kv = lims→0
sGcl(s) ess =1
Kv
Ka = lims→0
s2Gcl(s) ess =1
Ka
Disturbance rejection problem
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
Example: Speed Control of a DC Motor (FC p. 41-43)
Working mechanism of a DC motor:
T = Kt · ia
e = Ke · θm
Kt : Torque constant
ia: Armature current
Ke : Electromotive force (emf) constant
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
Example: Speed Control of a DC Motor (FC p. 41-43)
Differential equation description:
Jmθm + bθm = Kt ia
va − La
dia
dt− Raia = Ke θm
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
Example: Speed Control of a DC Motor (FC p. 41-43)
Obtaining a transfer function: Taking the Laplace transform andisolating I (s) and V (s):
I (s) =Jm
Kt
s2Θ(s) +b
Kt
sΘ(s)
V (s) = LasI (s) + RaI (s) + KesΘ(s)
= Las
(
Jm
Kt
s2Θ(s) +b
Kt
sΘ(s)
)
+ Ra
(
Jm
Kt
s2Θ(s) +b
Kt
sΘ(s)
)
+ KesΘ(s)
=LaJ
Kt
s3Θ(s) +Lab + RaJ
Kt
s2Θ(s) +
(
Rab
Kt
+ Ke
)
sΘ(s)
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
Example: Speed Control of a DC Motor (FC p. 41-43)
Obtaining a transfer function: The transfer function is thengiven by:
Θ(s)
V (s)=
1
LaJKt
s3 + Lab+RaJKt
s2 +(
RabKt
+ Ke
)
s
Using speed as a reference we have:
Ω(s)
V (s)= s
Θ(s)
V (s)
=1
LaJKt
s2 + Lab+RaJKt
s +(
RabKt
+ Ke
)
A second order system!
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
P-Control for the DC Motor
Download ”motorP.mdl”:
time
t
disturbance 10
Transfer Fcn1
1
0.1 s+1
Transfer Fcn
1
s+1To Workspace
y_P
Scope
K
u*K
Clock
1
const
DC Motor Model:
G (s) =A
(τ1s + 1)(τ2s + 1)τ1 = 1, τ2 = 0.1, A = 1
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
P-Control for the DC Motor: Result
0 1 2 3 4 5 6 7 8 9 100
0.5
1
1.5
2
2.5
In order to eliminate steady-state offset: Integral control
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
PI Feedback Control
Control StructureTime Domain: u(t) = K
(
e(t) + 1TI
∫ t
t0e(τ)dτ)
)
Frequency Domain: D(s) = U(s)E(s) = K
(
1 + 1TI s
)
Closed Loop Control System
r(t)+
−
e(t)K + K
TI sPlantG (s)
w(t)y(t)
Gcl(s) =D(s)G (s)
1 + D(s)G (s)=
K(
1 + 1TI s
)
G (s)
1 + K(
1 + 1TI s
)
G (s)
=K (TI s + 1)G (s)
TI s + K (TI s + 1)G (s)Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
PI Feedback Control
Advantages:
Eliminates steady state offset/error
Good steady state disturbance rejection
What about the transient response?
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
PI-Control for the DC Motor
Download ”motorPI.mdl”:
time
t
disturbance10
Transfer Fcn1
1
0.1 s+1
Transfer Fcn
1
s+1To Workspace
y_PI
Scope
PI Controller
In1 Out1
Constant
const
Clock
Out1
1
K/Ti
u*K
K
u*K
Integrator
1/s
In1
1
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
PI-Control for the DC Motor: Result
0 1 2 3 4 5 6 7 8 9 100
0.5
1
1.5
2
2.5
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
PID Feedback Control
Control StructureTime Domain: u(t) = K
(
e(t) + 1TI
∫ t
t0e(τ)dτ) + TD e(t)
)
Frequency Domain: D(s) = U(s)E(s) = K
(
1 + 1TI s
+ TDs)
Closed Loop Control System
r(t)+
−
e(t)K
(
1 + 1TI s
+ TDs)
PlantG (s)
w(t)y(t)
Gcl(s) =D(s)G (s)
1 + D(s)G (s)
=K
(
TDTI s2 + TI s + 1
)
G (s)
TI s + K (TDTI s2 + TI s + 1) G (s)
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
PID Feedback Control
Advantages:
Increases the damping → Improves the stability
Good transient and steady state disturbance rejection
The most popular control technique used in industry!
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
PID-Control for the DC Motor
Download ”motorPID.mdl”:
time
t
disturbance 10
Transfer Fcn1
1
0.1 s+1
Transfer Fcn
1
s+1To Workspace
y_PID
Scope
PID Controller
In1 Out1
Constant
const
Clock
Out1
1
K/Ti
u*K
K*Td
u*K
K
u*K
Integrator
1/s
Derivative
du/dt
In1
1
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
PID-Control for the DC Motor: Result
0 1 2 3 4 5 6 7 8 9 100
0.2
0.4
0.6
0.8
1
1.2
1.4
1.6
1.8
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
PD Feedback Control
Control Structure
Time Domain: u(t) = K (e(t) + TD e(t))
Frequency Domain: D(s) = U(s)E(s) = K (1 + TDs)
Closed Loop Control System
r(t)+
−
e(t)K + KTDs Plant
G (s)
w(t)y(t)
Gcl(s) =D(s)G (s)
1 + D(s)G (s)=
K (1 + TDs)G (s)
1 + K (1 + TDs) G (s)
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
PD Feedback Control
Advantages:
Increases damping
Good transient disturbance rejection
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
PD-Control for the DC Motor
Download ”motorPD.mdl”:
time
t
disturbance 10
Transfer Fcn1
1
0.1 s+1
Transfer Fcn
1
s+1To Workspace
y_PD
Scope
PD Controller
In1 Out1
Clock
1
const
Out1
1
K*Td
u*K
K
u*K
Derivative
du/dt
In1
1
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
PD-Control for the DC Motor: Result
0 1 2 3 4 5 6 7 8 9 100
0.2
0.4
0.6
0.8
1
1.2
1.4
1.6
1.8
2
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
Control for the DC Motor: Results
0 1 2 3 4 5 6 7 8 9 100
0.5
1
1.5
2
2.5
PPIPIDPD
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
P-ControlPI-ControlPID-ControlPD-Control
Effect of Constant Disturbance
0 1 2 3 4 5 6 7 8 9 10−0.2
0
0.2
0.4
0.6
0.8
1
1.2
PPIPIDPD
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Quarter Decay MethodUltimate Sensitivity Method
Outline
1 Properties of PID ControlP-ControlPI-ControlPID-ControlPD-Control
2 Tuning Methods of PID ControlQuarter Decay MethodUltimate Sensitivity Method
3 Antiwindup TechniqueEffect of SaturationIntroducing Dead ZoneUsing the Non-Linearity
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Quarter Decay MethodUltimate Sensitivity Method
Tuning the PID Controllers
Principle
u(t) = K
(
e(t) +1
TI
∫ t
t0
e(τ)dτ) + TD e(t)
)
D(s) =U(s)
E (s)= K
(
1 +1
TI s+ TDs
)
Increasing K and 1TI
tends to reduce system errorsIncreasing TD tends to improve stability
Ziegler-Nichols Tuning Methods
Quarter decay ratioUltimate sensitivity
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Quarter Decay MethodUltimate Sensitivity Method
Quarter Decay
Tuning by decaying ratio of 0.25:Step response → Process reaction curve
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Quarter Decay MethodUltimate Sensitivity Method
Quarter Decay
Tuning by decaying ratio of 0.25:
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Quarter Decay MethodUltimate Sensitivity Method
Ultimate Sensitivity
r(t)+
−
e(t)Ultimate: Ku
PlantG (s)
w(t)y(t)
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Effect of SaturationDead ZoneNon-Linearity
Outline
1 Properties of PID ControlP-ControlPI-ControlPID-ControlPD-Control
2 Tuning Methods of PID ControlQuarter Decay MethodUltimate Sensitivity Method
3 Antiwindup TechniqueEffect of SaturationIntroducing Dead ZoneUsing the Non-Linearity
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Effect of SaturationDead ZoneNon-Linearity
Integrator Antiwindup
Motivation: Actuator saturation phenomena
Integrator → Integrator windup
Antiwindup Technique: Turn off the integral action as soonas the actuator saturates
Implement using dead zoneImplement using non-linearity
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Effect of SaturationDead ZoneNon-Linearity
Saturation Model
Download ”motorPIsaturation.mdl”:
time
t
disturbance10
Transfer Fcn1
1
0.1 s+1
Transfer Fcn
1
s+1
To Workspace1
u_PIS
To Workspace
y_PIS
Scope1
Scope
Saturation
K/Ti
u*K
K
u*K
Integrator
1/s
Constant
1
Clock
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Effect of SaturationDead ZoneNon-Linearity
Effect of Saturation
0 1 2 3 4 5 6 7 8 9 10−5
0
5
10
15
20
25
without satwith sat
Control Effort
0 1 2 3 4 5 6 7 8 9 100
0.5
1
1.5
2
2.5
without satwith sat
Output
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Effect of SaturationDead ZoneNon-Linearity
Integrator Antiwindup: Dead Zone
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Effect of SaturationDead ZoneNon-Linearity
Integrator Antiwindup: Non-Linearity
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Effect of SaturationDead ZoneNon-Linearity
Integrator Antiwindup Equivalent
When saturated the anti-windup turns the integrator into a lag:
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Effect of SaturationDead ZoneNon-Linearity
Antiwindup Model
Download ”motorPIantiwind.mdl”:
time
t
disturbance10
Transfer Fcn1
1
0.1 s+1
Transfer Fcn
1
s+1
To Workspace1
u_PIW
To Workspace
y_PIW
Scope1
Scope
Saturation
Ka
u*K
K/Ti
u*K
K
u*K
Integrator
1/s
Dead Zone
Constant
1
Clock
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Effect of SaturationDead ZoneNon-Linearity
Effect of Antiwindup
0 1 2 3 4 5 6 7 8 9 10
0.8
1
1.2
1.4
1.6
1.8
2
without antiwwith antiw
Control Effort
0 1 2 3 4 5 6 7 8 9 100
0.2
0.4
0.6
0.8
1
1.2
1.4
1.6
1.8
without antiwwith antiw
Output
Lecture 3 Classical Control
Properties of PID ControlTuning Methods of PID Control
Antiwindup Technique
Effect of SaturationDead ZoneNon-Linearity
Exercises
1 Design a P, PI, PID controller for speed control of thefollowing DC motor according to the quarter decay method(Download ”ZNtuning motor.mdl”).
2 Implement the above system with an actuator saturation inthe simulink model with umax=2 and umin=-2. Design anintegrator antiwindup strategy for your designed PI controller.
Lecture 3 Classical Control