Title: EGGN 307 Introduction to Feedback Control Systems Lecture 38
1EGGN 307Introduction to Feedback Control Systems
Lecture 38
- Professor Kevin L. Moore
- Fall 2009
- http//engineering.mines.edu/course/eggn307a
2- Last Two Times
- 8.0 Control System design
- 8.1 Arbitrary pole placement
- 8.2 PID control
- Root Locus analysis
- This Time
- Frequency response
- 8.3 Frequency Domain Design
- Next Time
- Review for final
3PID Controllers
- PID Proportional-Integral-Derivative
- PID is one of the most frequently-used types of
control - PID control requires less accurate system
knowledge than many other types of controllers - PID controllers often must be tuned to give
good results
Due to Katie Johnson or Tyrone Vincent or someone
4P, PI, and PD Controllers
- P controllers are pure gain C(s) KP, and can
be used to improve both steady-state and
transient behavior - Characteristic equation
- PI controllers increase the System Type by one
(one pure integrator) and are thus generally used
to improve the steady-state response - Transfer function
- PD controllers are generally used to improve the
transient response - Transfer function
Due to Katie Johnson or Tyrone Vincent or someone
5PI Controllers KD 0
- PI controllers have a pole at zero and a zero at
some negative number
Due to Katie Johnson or Tyrone Vincent or someone
6PD Controllers KI 0
- PD controllers introduce a zero
- High frequency gain goes to infinity, which
causes noise problems - Thus, a pole is often introduced at a frequency
higher than the zero
Due to Katie Johnson or Tyrone Vincent or someone
7PID Control and Frequency Response
- The PID controller equationmay be rewritten as
- Let KI 2, a 10, and plot the Bode plot vs.
the scaled frequency wt (next slide).
Due to Katie Johnson or Tyrone Vincent or someone
8Bode Plot for Example PID Compensator
Scaled Frequency wt (rad/s)
Due to Katie Johnson or Tyrone Vincent or someone
9PID Controller Summary
- PID controllers are a type of notch (bandstop)
compensator. - Since Bode plots of transfer functions in series
can be added, we can use frequency response
techniques to design PID controllers. - However, it is often easier to use a
guess-and-check method in Matlab. - Rules of thumb for guess-and-check
- Increasing KI typically increases overshoot
- Increasing KD typically increases rise time
Due to Katie Johnson or Tyrone Vincent or someone
10Design Example
- Design P, PI, and PD controllers C(s) arranged in
the standard unity feedback configuration with
the plant
Due to Katie Johnson or Tyrone Vincent or someone
11Design Example (2)
- Using Matlab and a guess-and-check method
- P controller
- PI controller
- PD controller
Due to Katie Johnson or Tyrone Vincent or someone
12- Last Two Times
- 8.0 Control System design
- 8.1 Arbitrary pole placement
- 8.2 PID control
- Root Locus analysis
- This Time
- Frequency response
- 8.3 Frequency Domain Design
- Control Design Specifications
- Gain and Lead and Lag design
- Next Time
- Review for final
13Control Problem
- We are usually asked to design a controller C(s)
to meet certain specifications. - Typical design specifications (closed-loop)
- Step response rise time
- Step response settling time
- Step response Overshoot
- Steady state error (to step, ramp, etc.)
- Stability margins
- We will translate these specifications to
requirements on the open loop gain frequency
response C(jw)G(jw).
Due to Katie Johnson or Tyrone Vincent or someone
14Finding G.M. and P.M from the Bode Plot
Find frequency where the phase is 180
Gain Margin is the (positive) distance below 0dB
15Finding G.M. and P.M from the Bode Plot
Find frequency where the gain is 0dB
Phase Margin is the (positive) distance above
180
16Using the Design Specifications I
- Specifications on closed loop dominant poles
- Step response rise time
- Step response settling time
- Step response Overshoot
- Given closed loop undamped natural frequency wn
and damping ratio z, find specifications on phase
margin and open loop crossover. - First,
Closed-loop desired values
Closed-loop desired values
Due to Katie Johnson or Tyrone Vincent or someone
17Using the Design Specifications II
- Damping ratio implies a phase margin
- Bandwidth sets crossover
Open-loop required values
Closed-loop desired values
Closed-loop desired values
Open-loop required values
Due to Katie Johnson or Tyrone Vincent or someone
18Using the Design Specifications II
- Bandwidth sets crossover
- Note this approximation comes from a Nichols
chart analysis - Magcl -3 dB when Magol -6 to -7 dB for
Phaseol in the range (-135?, -225?)
Due to Katie Johnson or Tyrone Vincent or someone
19Design Specifications Phase and Gain Margins
- Design specifications on robustness margins
- Phase margin
- Gain margin
- You already know how to read these off of the
open loop frequency response - Note that overshoot also implies a phase margin
by
You should design a controller that
meets or exceeds both phase margin requirements
(design for whichever is larger).
Due to Katie Johnson or Tyrone Vincent or someone
20Example
- Convert the following specifications to
requirements on the open loop frequency response - Step response rise time lt .5 seconds
- Step response settling time lt 1 second
- Step response Overshoot lt 15
- Steady state error to ramp lt .5
- Phase margin gt 40 degrees
Due to Katie Johnson or Tyrone Vincent or someone
21Example
- Convert the following specifications to
requirements on the open loop frequency response - Step response rise time lt .5 seconds
- Step response settling time lt 1 second
Due to Katie Johnson or Tyrone Vincent or someone
22Example (2)
- Convert the following specifications to
requirements on the open loop frequency response - Step response Overshoot lt 15
- Steady State Error to ramp lt .5
- Phase margin gt 40 degrees
Due to Katie Johnson or Tyrone Vincent or someone
23Examples (3)
Due to Katie Johnson or Tyrone Vincent or someone
24Example (4)
Due to Katie Johnson or Tyrone Vincent or someone
25Frequency-Domain Controller Design
- Gain Adjustment
- A gain can be used to increase closed loop
crossover frequency and low frequency gain at the
expense of phase and gain margins, and overshoot. - Lead Compensation
- Lead Compensator is used to increase phase at
crossover frequency - Used to meet bandwidth and phase margin
specifications simultaneously. - G.M. and P.M. Adjustment
- Root Locus
- Lag Compensation
- Lag Compensator is used to increase low frequency
gain relative to high frequency gain - Used to meet steady state error and phase margin
specifications simultaneously. - G.M. and P.M. Adjustment
- Root Locus (not shown below)
26Control design through gain adjustment
- Proportional control structure
- A gain can be used to increase closed loop
crossover frequency and low frequency gain at the
expense of phase and gain margins, and overshoot.
Due to Katie Johnson or Tyrone Vincent or someone
27Control design through gain adjustment
- Example plant open loop frequency response
- Current estimates of closed loop behavior for
K1 -
-
-
Due to Katie Johnson or Tyrone Vincent or someone
28Control design through gain adjustment
- Example plant open loop frequency response
- What occurs when gain is increased?
-
-
-
Steady state error and rise time are improved,
but At the expense of phase margin (and overshoot)
Due to Katie Johnson or Tyrone Vincent or someone
29Closed loop step responses
Due to Katie Johnson or Tyrone Vincent or someone
30Design Example (1)
- Choose K so that the rise time is as fast as
possible, while keeping percent overshoot 10.
Choose
Due to Katie Johnson or Tyrone Vincent or someone
31Design Example (2)
- Bode plot of open loop gain with K1
To meet phase margin spec, choose gain to place
crossover at .0512 rad/s
Due to Katie Johnson or Tyrone Vincent or someone
32Design Example (3)
Due to Katie Johnson or Tyrone Vincent or someone
33Design Example (4)
- Compensated and uncompensated step responses
Due to Katie Johnson or Tyrone Vincent or someone
34Lead Compensator Design
- G.M., PM. Compensation
- Root Locus Approach
Due to Katie Johnson or Tyrone Vincent or someone
35Design Example
Due to Katie Johnson or Tyrone Vincent or someone
36Lead Compensation
- Lead Compensator is used to increase phase at
crossover frequency - Used to meet bandwidth and phase margin
specifications simultaneously.
Due to Katie Johnson or Tyrone Vincent or someone
37Lead Design Process Summary
- Choose K to meet bandwidth specification
- Plot Bode plot of KG(s), determine required phase
lead compensation, add buffer of 5-10 degrees
- Choose a to add the required phase lead
- Determine new crossover frequency where the
open loop magnitude is . Solve
for t using
Due to Katie Johnson or Tyrone Vincent or someone
38Phase Lead Design Process Step 1
- Choose K to meet bandwidth specification
- Plot bode plot of uncompensated system
- Choose K to place crossover at desired frequency
- Application to example problem
- Note gain must be increased to meet
specifications
Due to Katie Johnson or Tyrone Vincent or someone
39Phase Lead Design Process Step 2
- Plot Bode plot of KG(s), determine the required
phase lead compensation, and add a buffer of 5-10
degrees
- Application to example problem
The phase margin at 7.5 rad/s is 180-1728. We
need to add at least 50-842 of phase lead.
With a 5º buffer, we will ask for 47º of phase
lead.
Due to Katie Johnson or Tyrone Vincent or someone
40Phase Lead Design Process Step 3
- Choose a to add the required phase lead
- Application to example problem
Due to Katie Johnson or Tyrone Vincent or someone
41Phase Lead Design Process Step 4
- Determine new crossover frequency where the
open loop magnitude is . Solve
for t using
- Application to example problem
Due to Katie Johnson or Tyrone Vincent or someone
42Compensated Frequency Response
Original Compensated
Due to Katie Johnson or Tyrone Vincent or someone
43Phase Lead Compensator
Due to Katie Johnson or Tyrone Vincent or someone
44Compensated Nichols chart and Closed Loop Step
Response
Due to Katie Johnson or Tyrone Vincent or someone
45Example 2
- Choose so that
-
-
- Zero steady state error for step input
Due to Katie Johnson or Tyrone Vincent or someone
46Example 2 (2)
Desired Phase Margin
Due to Katie Johnson or Tyrone Vincent or someone
47Example 2 (3)
Due to Katie Johnson or Tyrone Vincent or someone
48Example 2 (4)
Specification
Due to Katie Johnson or Tyrone Vincent or someone
49Example 2 (5)
Due to Katie Johnson or Tyrone Vincent or someone
50Example 2 (6)
Due to Katie Johnson or Tyrone Vincent or someone
51Example 2 (7)
Due to Katie Johnson or Tyrone Vincent or someone
52Lead Compensator Design Using Root Locus
Due to Katie Johnson or Tyrone Vincent or someone
53Example Lead Compensator Design Problem
Due to Katie Johnson or Tyrone Vincent or someone
54Step 1 Plot Root Locus of G(s)
- Compute the desired closed loop pole locations at
the allowable region corner points - Does the locus of G(s) pass through desired pole
locations?
Due to Katie Johnson or Tyrone Vincent or someone
55Steps 2 and 3 Find Zero and Pole Locations
- Place zero of lead compensator equal to real part
of closed loop pole location - Determine pole location so that
Due to Katie Johnson or Tyrone Vincent or someone
56Step 4 Compute K
- Plot root locus of and find
K to place closed loop poles at the desired
locations.
Due to Katie Johnson or Tyrone Vincent or someone
57Check Closed Loop Step Response
Due to Katie Johnson or Tyrone Vincent or someone
58Example 2
- Choose C(s) so that
-
-
- Zero steady state error for step input
Due to Katie Johnson or Tyrone Vincent or someone
59Example 2 (2)
Due to Katie Johnson or Tyrone Vincent or someone
60Example 2 (3)
- Desired closed loop pole locations
Due to Katie Johnson or Tyrone Vincent or someone
61Example 2 (4)
- Place zero of lead compensator equal to real part
of closed loop pole location - Determine pole location so that
Due to Katie Johnson or Tyrone Vincent or someone
62Example 2 (5)
- Plot root locus of and find
K to place closed loop poles
Close to our choices of z and wn, but not quite
there (due to pole at zero pulling the loci back
toward the origin a bit).
Due to Katie Johnson or Tyrone Vincent or someone
63Phase Lag Compensator Design
Due to Katie Johnson or Tyrone Vincent or someone
64Lag Compensation
- Lag Compensator is used to increase low frequency
gain relative to high frequency gain - Used to meet steady state error and phase margin
specifications simultaneously.
Due to Katie Johnson or Tyrone Vincent or someone
65Design Process Summary
- Determine low frequency gain
- Choose K to satisfy steady state error
requirement
- Plot Bode plot of KG(s) and determine frequency
where phase margin spec is met (with buffer of 5
degrees). Choose this frequency as desired
crossover.
- Choose the zero to be one decade low the desired
crossover frequency
- Determine attenuation required to achieve new
desired crossover.
Gain at desired crossover frequency
Due to Katie Johnson or Tyrone Vincent or someone
66Design Example
- Design a lag compensator to meet the
specifications given below - Choose KC(s) so that
- Kv 20 (steady-state error to unit ramp lt 0.05)
- fm 50?
Due to Katie Johnson or Tyrone Vincent or someone
67Step 1 Choose K
- Choose K to satisfy steady state error
requirement
- Application to example problem
- Desired Kv 20
- The static error velocity constant is given by
- So, we choose K 2.
Due to Katie Johnson or Tyrone Vincent or someone
68Step 2 Determine Desired Crossover Frequency
- Plot Bode plot of KG(s) and determine frequency
where phase margin spec is met (with buffer of 5
degrees). Choose this as desired crossover
frequency
- Application to example problem
- The desired phase margin is 50?, plus buffer 5?,
for a total required phase margin of 55? - Thus, we need a phase angle of -125?, which
occurs at a frequency of 0.7 rad/s
Due to Katie Johnson or Tyrone Vincent or someone
69Step 3 Design Controller Zero
- Set t so that the controller zero is one decade
below the desired crossover frequency
- Application to example problem
Due to Katie Johnson or Tyrone Vincent or someone
70Step 4 Compute a
- Determine attenuation required to achieve new
desired crossover.
Gain at desired crossover frequency
- Application to example problem
Due to Katie Johnson or Tyrone Vincent or someone
71Compensated Frequency Response
Original Compensated
Due to Katie Johnson or Tyrone Vincent or someone
72Phase Lag Compensator
Due to Katie Johnson or Tyrone Vincent or someone
73Compensated Step and Ramp Responses
Due to Katie Johnson or Tyrone Vincent or someone
74Example 2
- Choose so that
- Unit ramp response steady state error .02
-
Due to Katie Johnson or Tyrone Vincent or someone
75Convert to Frequency Response Specifications
Example 2 (2)
Desired Phase Lead
Desired Error Constant
Due to Katie Johnson or Tyrone Vincent or someone
76Example 2 (3)
- Need one integrator to meet ramp steady state
error spec.
we wanted Kv 50, so choose K 100
Due to Katie Johnson or Tyrone Vincent or someone
77Plot gain (and integrator) compensated bode plot
Example 2 (4)
Phase to look for
Due to Katie Johnson or Tyrone Vincent or someone
78Phase lag compensator parameters
Example 2 (5)
Due to Katie Johnson or Tyrone Vincent or someone
79Bode plot of C(s)G(s)
Example 2 (6)
Due to Katie Johnson or Tyrone Vincent or someone