Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Desired Actual
head head
Position Position
Desired
input Output
Controller Process
responses variables
Measurements
Cycling of controlled
variable ⇒ excessive wear on Practical case (dead band/ hysteresis)
control valve.
h ( t ) = h2 e − t / RC
h ( t ) = h1e − t / RC + RQ (1 − e − t / RC )
Mechatronics Three Position Controller
xd dead band
xdg differential gap
PB = (0.5+0.5)/9
= 11.2% 9.0m
So it is a over-damped system.
Our goal is to investigate the influence of different controllers to
obtain:
Fast rise time
Minimum overshoot
No steady-state error.
Mechatronics Example: P Controller
No Controller
1
F(s) X(s)
s 2 + 10 s + 20
The (open) loop transfer function for unit step input is given by
X (s) 1
G (s) = = 2
F ( s ) s + 10 s + 20
1
and for unit step input F ( s ) =
s
The steady-state value for the output is
1
xss = lim x ( t ) = lim sX ( s ) = lim sG ( s ) F ( s ) =
t →∞ s →0 s →0 20
Mechatronics Example: P Controller
1/20 = 0.05 is the final value of the output to an unit step input.
This corresponds to a steady-state error of 95%, quite large!
The settling and the rise time (10% to 90% for over-damped
system) are about 1.6 and 0.88 sec respectively.
Mechatronics Example: P Controller
Proportional Controller
F(s)
1 X(s)
Kp
+ s 2 + 10 s + 20
−
The above plot shows that the proportional controller reduces both the
rise time (Tr = 0.108 sec for underdamped system) and the steady-state
error, increases the overshoot, and decreases the settling time (Ts =
0.77 sec) by small amount.
Mechatronics Change in gain in P
controller
• Increase in gain:
→ Upgrade both steady-state and transient responses
→ Reduce steady-state error → Reduce stability!
Mechatronics P controller with High gain
Mechatronics Integral (I) Controller
Integral Controller
F(s)
KI 1 X(s)
+ s s 2 + 10 s + 20
−
KI = 1
X (s) 1
= 3
F ( s ) s + 10 s 2 + 20 s + 1
The above plot shows that the integral controller eliminates the steady-
state error, and increases the settling time (Ts = 76.7 sec).
Mechatronics Change in gain in I controller
KI = 200
Mechatronics PI Controller
For PI control, the equation describing its action can be written as,
p ( t ) = p + K p e ( t ) + K I ∫ e ( t ) dt
Proportional-Integral Controller
F(s)
KI 1 X(s)
Kp +
+ s s 2 + 10 s + 20
−
Kp = 30
KI = 70
X (s) 30 s + 70
= 3
F ( s ) s + 10s 2 + 50 s + 70
The above plot shows that the PI controller eliminates the steady-state
error, reduces rise time and increases the overshoot.
Mechatronics Change in gain in PI
controller
[ p − p ] ( s ) = K d sE ( s )
Transfer function: G ( s ) = sK d
Mechatronics Derivative (D) Controller
Derivative Controller
F(s)
1 X(s)
sK D
+ s 2 + 10 s + 20
−
KD = 10
X (s) 10 s
= 3
F ( s ) s + 20 s 2 + 20
The above plot shows that the derivative controller alone never
eliminates the steady-state error, rather makes it worse.
Mechatronics PD Controller
For PD control, the equation describing its action can be written as,
de ( t )
p (t ) = p + K pe (t ) + Kd
dt
where, Transfer function:
G ( s ) = K p + sK d
Mechatronics PD Controller
Proportional-Derivative Controller
F(s)
1 X(s)
K p + sK D
+ s 2 + 10 s + 20
−
Kp = 300
KD = 10
X (s) 10 s + 300
= 2
F ( s ) s + 20 s + 320
The above plot shows that the PD controller reduces both overshoot
and settling time (Ts = 0.29 sec) and small change of steady-state error
for using P controller.
Mechatronics Change in gain in PD
controller
For PID control, the equation describing its action can be written as,
de ( t )
p ( t ) = p + K p e ( t ) + K I ∫ e ( t ) dt + K d
dt
where, Transfer function:
KI
G (s) = K p + + sK d
s
Mechatronics PID Controller
Kp
Integral time constant: Ti =
Ki
Kd
Derivative time constant: Td =
Kp
1
Transfer function: G ( s ) = K p 1 + + sTd
Ti s
Mechatronics PID Controller
Proportional-Derivative Controller
F(s)
KI 1 X(s)
Kp + + sK D
+ s s 2 + 10 s + 20
−
Kp = 350
KD = 5500
KI = 300
X (s) 5500 s 2 + 350 s + 300
= 3
F ( s ) s + 5510s 2 + 370s + 300
The above plot shows that the PID controller results no overshoot, no
steady-state error and fast rise time.
Mechatronics Change in gain in PID
controller
Mechatronics Response Characteristics:
PID Controllers
Mechatronics Comparison: PID Controller
Mechatronics Tuning PID Controller
F(s)
1 X(s)
+ K p 1 +
Ts
+ sTd
Plant
i
−
F(s)
1 1 X(s)
K p 1 + + sTd
+ Ts
i
s ( s + 1)( s + 5 )
−
Characteristics Equation:
s ( s + 1)( s + 5 ) + K p = 0
s 3 + 6 s 2 + 5s + K P = 0
Mechatronics Example: Tuning PID Controller
So K P = K cr = 30
Characteristics Equation: s 3 + 6s 2 + 5s + 30 = 0
Marginal stability: 6s 2 + 30 = 0 ⇒ s 2 + 5 = 0 ∴ s = ± j 5
K p = 0.6 K cr = 0.6 × 30 = 18
Ti = 0.5Pcr = 0.5 × 2.8 = 1.4
Td = 0.125 Pcr = 0.125 × 2.8 = 0.35
Mechatronics Example: Tuning PID Controller
K p = 18
Ti = 3.077
Td = 0.7692
K p = 39.42
Ti = 3.077
Td = 0.7692