Control Systems EE 4314

advertisement
Control Systems
EE 4314
Lecture 13
March 19, 2015
Spring 2015
Indika Wijayasinghe
Steady-State Error
• In the unity feedback system, error equation
𝐸 =𝑅−π‘Œ =𝑅−
𝐺𝐷
1
𝑅=
𝑅 = 𝑆𝑅
1 + 𝐺𝐷
1 + 𝐺𝐷
where 𝑆: sensitivity
• Let input π‘Ÿ 𝑑 =
π‘‘π‘˜
π‘˜!
, which is 𝑅 𝑆 =
1
𝑠 π‘˜+1
– For π‘˜ = 0, step input or position input
– For π‘˜ = 1, ramp input or velocity input
– For π‘˜ = 2, acceleration input
• Using Final Value Theorem
lim 𝑒(𝑑) = 𝑒𝑠𝑠 = lim 𝑠 𝐸(𝑠)
𝑑→∞
𝑠→0
1
𝑅(𝑠)
𝑠→0 1+𝐺𝐷
1
1
= lim 𝑠
𝑠→0 1+𝐺𝐷 𝑠 π‘˜+1
= lim 𝑠
Steady-State Errors
Steady-state errors as a function of system type
Type Input
Step (position)
Ramp (velocity)
Type 0
1
1 + 𝐾𝑝
ο‚₯
ο‚₯
Type 1
0
1
𝐾𝑣
ο‚₯
Type 2
0
0
1
πΎπ‘Ž
• Position error constant
𝐾𝑝 = lim 𝐺 𝐷(𝑠)
• Velocity error constant
𝐾𝑣 = lim 𝑠𝐺 𝐷(𝑠)
𝑠→0
𝑠→0
• Acceleration error constant πΎπ‘Ž = lim 𝑠 2 𝐺 𝐷(𝑠)
𝑠→0
Parabola (acceleration)
State-State Error
• Example: Consider an electric motor control problem including a unity
feedback system. System parameters are
1
𝐺 𝑠 =
, 𝐷 𝑠 = π‘˜π‘
𝑠(πœπ‘  + 1)
Determine the system type and relevant steady-state error constant for input
𝑅 and disturbance π‘Š.
π‘Š
𝑅+
−
Controller π‘ˆ +
𝐷(𝑠)
+
Plant
G(𝑠)
π‘Œ
State-State Error
PID Control
• PID Controller
𝑒(t)=π‘˜π‘ e+π‘˜πΌ e dt + π‘˜π· e
π‘˜πΌ
𝐷 𝑠 = π‘˜π‘ + + π‘˜π· 𝑠
𝑠
Where π‘˜π‘ : proportional gain, π‘˜πΌ : integral gain, and π‘˜π· : derivative
gain
π‘Š
𝐷(𝑠)
𝑅+
𝐸
−
π‘˜πΌ
π‘˜π‘ + + π‘˜π· 𝑠
𝑠
π‘ˆ +
+
Plant
G(𝑠)
π‘Œ
Proportional (P) Control
• Proportional Controller 𝐷 𝑠 = π‘˜π‘
Let second order plant 𝐺 𝑠 =
• Transfer function 𝑇 =
𝐷𝐺
1+𝐷𝐺
𝐷(𝑠)
𝐴
𝑠 2 +π‘Ž1 𝑠+π‘Ž2
=
π΄π‘˜π‘
𝑠2 +π‘Ž1 𝑠+π‘Ž2
π΄π‘˜π‘
1+ 2
𝑠 +π‘Ž1 𝑠+π‘Ž2
π‘˜π‘
=
π΄π‘˜π‘
𝑠 2 +π‘Ž1 𝑠+π‘Ž2 +π΄π‘˜π‘
• Characteristic equation: 𝑠 2 + π‘Ž1 𝑠 + π‘Ž2 + π΄π‘˜π‘ = 0 (2nd order
system: 𝑠 2 + 2οΊπœ”π‘› 𝑠 + πœ”π‘› 2 )
• Designer can determines the natural frequency (πœ”π‘› ), but not
damping of the system. Large π‘˜π‘ reduces steady-state error.
Proportional plus Integral (PI) Control
π‘˜πΌ
𝑠
𝐴
πœπ‘ +1
• Proportional Controller 𝐷 𝑠 = π‘˜π‘ +
• Example 1: first order plant 𝐺 𝑠 =
𝐷𝐺
– T.F. 𝑇 = 1+𝐷𝐺 =
π‘˜
𝐴(π‘˜π‘ + 𝐼 )
𝑠
πœπ‘ +1
π‘˜
𝐴(π‘˜π‘ + 𝑠𝐼 )
1+ πœπ‘ +1
= πœπ‘ 2 +
𝐷(𝑠)
π‘˜π‘ +
π΄π‘˜π‘ 𝑠+π‘˜πΌ
π‘˜πΌ
𝑠
π΄π‘˜π‘ +1 𝑠+π΄π‘˜πΌ
– Characteristic equation: πœπ‘  2 + π΄π‘˜π‘ + 1 𝑠 + π΄π‘˜πΌ = 0
– Controller parameters can set two coefficients. It can fully determine the
natural frequency and damping of system.
• Example 2:
– T.F. 𝑇 =
2nd
𝐷𝐺
1+𝐷𝐺
order plant 𝐺 𝑠 =
=
π‘˜
𝐴(π‘˜π‘ + 𝐼 )
𝑠
𝑠2 +π‘Ž1 𝑠+π‘Ž2
π‘˜
𝐴(π‘˜π‘ + 𝐼 )
𝑠
1+ 2
𝑠 +π‘Ž1 𝑠+π‘Ž2
=
𝐴
𝑠 2 +π‘Ž1 𝑠+π‘Ž2
π‘˜
𝐴(π‘˜π‘ + 𝐼 )
𝑠
π‘˜
𝑠 2 +π‘Ž1 𝑠+π‘Ž2 +𝐴(π‘˜π‘ + 𝐼 )
𝑠
– Characteristic equation: 𝑠 3 + π‘Ž1 𝑠 2 + (π‘Ž2 +π΄π‘˜π‘ )𝑠 + π΄π‘˜πΌ = 0
– Controller parameters can set two coefficients, not three.
Proportional plus Derivative (PD)
Control
• Proportional Controller 𝐷 𝑠 = π‘˜π‘ + π‘˜π· 𝑠
Let second order plant 𝐺 𝑠 =
• Transfer function 𝑇 =
𝐴(π‘˜π‘ +π‘˜π· 𝑠)
𝐷𝐺
1+𝐷𝐺
𝐷(𝑠)
𝐴
𝑠 2 +π‘Ž1 𝑠+π‘Ž2
=
𝐴(π‘˜π‘ +π‘˜π· 𝑠)
𝑠2 +π‘Ž1 𝑠+π‘Ž2
𝐴(π‘˜π‘ +π‘˜π· 𝑠)
1+ 2
𝑠 +π‘Ž1 𝑠+π‘Ž2
π‘˜π‘ + π‘˜π· 𝑠
=
𝑠 2 +(π‘Ž1 +π‘˜π· )𝑠+π‘Ž2 +π΄π‘˜π‘
• Characteristic equation: 𝑠 2 + π‘Ž1 + π‘˜π· 𝑠 + π‘Ž2 + π΄π‘˜π‘ = 0
• Controller parameters can set two coefficients. It can fully
determine the natural frequency and damping of system.
Summary of PID Controller
• Proportional control (π‘˜π‘ ): it tends to stabilize the system. Higher
proportional gain reduces an steady-state error and increases the natural
frequency of system (fast response)
• Integral control (π‘˜πΌ ): it tends to eliminate or reduce steady-state error. The
control system may become unstable. Integral term increases the order of
the system dynamics. (e.g.: 2nd order system becomes 3rd order system)
• Derivative control (π‘˜π· ): although it does not affect the steady-state error
directly, it adds damping to the system, which results in an improvement
in the steady-state accuracy. It tends to increase the stability of the
system. Reduces an overshoot. Derivative control is never used alone
because it operates on the rate of error, not an error.
Ziegler-Nichols Tuning of PID
Controller
• Controller tuning: the process of selecting the controller
parameters (𝐾𝑝 , 𝑇𝑖 , 𝑇𝐷 ) to meet given performance
specifications.
• Ziegler and Nichols suggested rules for tuning PID controller
gains (𝐾𝑝 , 𝑇𝑖 , 𝑇𝐷 ) based on step responses (First method) and
or based on the value of 𝐾𝑝 that results in marginal stability
(Second method) when mathematical models of plants are
not known.
Ziegler-Nichols Tuning Rules:
First Method
• First method: obtain the response of
the plant to a unit-step input.
• S-shaped curve may be characterized
by two constants: delay time L and rise
time T.
• Choose PID controller gains (𝐾𝑝 , 𝑇𝑖 , 𝑇𝐷 )
from time delay L and rising time T.
Ziegler-Nichols Tuning Rules:
Second Method
• Second method: Using the proportional control (𝐾𝑝 ) only,
increases 𝐾𝑝 from 0 to a critical value πΎπ‘π‘Ÿ until system
becomes marginally stable. (sustained oscillation). The critical
gain πΎπ‘π‘Ÿ and its corresponding period π‘ƒπ‘π‘Ÿ are experimentally
obtained.
Sustained oscillation when 𝐾𝑝 is πΎπ‘π‘Ÿ
Ziegler-Nichols Tuning Rules:
Second Method
• Example: Tune PID controller gains (𝐾𝑝 , 𝑇𝑖 , 𝑇𝐷 ) using
the second method
1
𝐺 𝑠 =
𝑠(𝑠 + 1)(𝑠 + 5)
Ziegler-Nichols Tuning Rules:
Second Method
• Using only proportional gain 𝐾𝑝 , increases gain to
obtain sustained oscillation
– 𝐾𝑝 = 30 (πΎπ‘π‘Ÿ )
– Its corresponding period π‘ƒπ‘π‘Ÿ : 2.8
Step Response
Step Response
2
2
1.8
1.8
1.6
1.4
1.4
1.2
1.2
Amplitude
Amplitude
1.6
1
1
0.8
0.8
0.6
0.6
0.4
0.4
0.2
0
0.2
0
2
4
6
8
10
Time (seconds)
12
14
16
18
20
0
0
2
4
6
8
10
Time (seconds)
𝐾𝑝 = 20
12
14
𝐾𝑝 = 30 (πΎπ‘π‘Ÿ )
16
18
20
Ziegler-Nichols Tuning Rules:
Second Method
– From πΎπ‘π‘Ÿ and π‘ƒπ‘π‘Ÿ , control gains: 𝐾𝑝 : 18, 𝑇𝐼 : 1.4, 𝑇𝐷 : 0.35
– Response by use of Ziegler-Nichols Tuning Rules
• Overshoot 62%
• Rising time: 0.8 sec
• Setting time: 15 sec
Step Response
1.8
1.6
1.4
Amplitude
1.2
1
0.8
0.6
0.4
0.2
0
0
5
10
Time (seconds)
15
Ziegler-Nichols Tuning Rules:
Second Method
• Increase 𝑇𝐼 (integral) and 𝑇𝐷 (derivative) to 3 and 0.77
from 1.4 and 0.35
– 20% overshoot
– Fast rising time (0.8sec)
– Less oscillation
Step Response
1.4
1.2
Amplitude
1
0.8
0.6
0.4
0.2
0
0
1
2
3
4
5
Time (seconds)
6
7
8
9
Ziegler-Nichols Tuning Rules:
Second Method
• Increase 𝐾𝑝 (proportional) to 39 from 18
• 𝐾𝑝 : 39, 𝑇𝐼 : 3, 𝑇𝐷 : 0.77
– 25% overshoot
– Fast rising time (0.4sec)
– Fast setting time
Step Response
1.4
1.2
Amplitude
1
0.8
0.6
0.4
0.2
0
0
1
2
3
4
Time (seconds)
5
6
7
8
Download