L5 Show Feedforward
L5 Show Feedforward
Lecture 5
• 1. Introduction
• 2. Transfer function based model following
• 4. An example
Output y
Setpoint r s
Trajectory S Controlled
---
planner R system
Reference r
Control u
0.6
0.4
rs
Amplitude
0.2
r Two tasks
0
1.) Design the reference signals in
−0.2
0 0.5 1 1.5 2 2.5 3 the trajectory planner, r ( t ) .
Time
2.) Design a model following
controller, u ff ( t ) .
Model following
control
uff
Set point
Trajectory Reference Controlled Output
planner system
• Design the trajectory planner and the model following controller such
that the feed forward input signal uff(t) drives the output to the desired
setpoint
• Note that the model following control part can be a nonlinear system
• 4. An example
setpoint r s r y
Gm(s) + Gp(s)
• Ideally the inverse of the process, i.e. 1/Gp(s), would provide exact
model following: 1/Gp(s) * Gp(s) = 1, and the closed loop y ⁄ rs = G m ( s )
d p = deg ( A ) – deg ( B )
• A stable dynamic system has no right half plane (RHP) poles. This
means for model following that the process must not have any RHP
zeros.
Gm ( s ) u ff
---------------
-
Gp ( s )
r u Controlled Output
Gm(s) Feedback
rs controller system
2 n
dy d y d y
• Trajectory planner: Design y, ------, --------, …, -------- based on closed loop
dt 2 n
dt dt
specifications and process limitations, e.g., saturation.
··
ϕr –1
d-
---- J G(s)
dt
d
·
ϕr
d-
---- sgn() Fc
dt
u ff
rs Trajectory Feedback u fb u ϕ
planner Controller Process
r(t)
·· sgn() Fc
ϕr
·
ϕr u ff
rs Trajectory
planner r = ϕr Feedback u fb u ϕ
Controller Process
··
ϕr
1
0.8
·
0.6 ϕr ϕr
0.4
0.2
0
−0.2
−0.4
−0.6
−0.8
−1
0 0.5 1 1.5
Example 0.6
v max
0.4
reference 0.2
trajectories 0
−0.2
−0.4
−0.6
−0.8
−1
80
Example::
60
40
20
t2 r s = 60,
0
v max = 55
−20 t1
−40 a max = 70
−60
−80
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
• 4. An example
• 5. Matlab example for the dc motor
0 1 0 x1
x· = Kf K emk ⋅ K m + K m ⋅ u y = 1 0 ⋅
– ----- – 〈 -------------------------〉 -------- x2
J J J
r Model
following
setpoint rs
u ff
Reference y
1
model,Gm(s)
2s2 + 1.5s +1
• Task: Design the reference model and the model following controller
Gm ( s ) u ff ( s ) 2
2s + 15s + 1
--------------- = -------------- = --------------------------------- (not proper)
Gp ( s ) rs ( s ) 1
u ff ( s ) 2
( 2s + 15s + 1 )ω
2
-------------- = --------------------------------------------- (proper)
rs ( s ) 2
s 2 + 2ξωs + ω
100 acceleration
50
velocity
Amplitude
0
position
−50
−100
−150
0 0.5 1 1.5 2
Time
0
system response
−100
−200
−300
0 0.5 1 1.5 2
Time
• Let’s start out with feed forward to cope better with the acceleration step
u ff = 2r·· .
• The process follows fairly good initially when the acceleration signal
dominates
0
system response, y
−100
−200
−300
0 0.5 1 1.5 2
300
control signal
200
Amplitude
100
system response
0
(equal to reference position
−100
−200
−300
0 0.5 1 1.5 2
Time
• Finally we add position feed forward which gives exact model following.
u ff = 2r·· + 15r· + r
Model
inverse
Reference
s+5 y
2s2 + 1.5s +1
• Exact model following is still possible since the inverse system is stable.
40
system response
Amplitude
20
−60
0 0.5 1 1.5 2
Time
• Let’s first have look on the response with only changing the gain of the
2r ·· + 15r· + r
feed forward controller. u ff = -.
----------------------------
5
50
40
system response, y
30
and reference
Amplitude
20
10 control signal, u
0
−10
−20
−30
0 0.5 1 1.5 2
Time
Model
inverse
Reference
model -s+5 y
2s2 + 1.5s +1
20
system response
0
−20
−40
−60
0 0.5 1 1.5 2
Time
Output y
Setpoint r s
Trajectory S Controlled
---
planner R system
Reference u c
Control u
• 4. An example