Download presentation
Presentation is loading. Please wait.
1
Control Systems EE 4314 Lecture 29 May 5, 2015
Spring 2015 Indika Wijayasinghe
2
Numerical Integration
What is the equivalent of the different operator ( π ππ‘ or π ) in terms of π§? Consider π(π ) πΈ(π ) =π· π = 1 π π’ (π+1)π = 0 π π π‘ ππ‘+ π (π+1)π π π‘ ππ‘ =π’ π +area under e t over the last T
3
Numerical Integration
4
Numerical Integration
5
Numerical Integration
Example: Using three (forward difference, backward difference, Tustin method) approximation methods to find the discrete equivalent for π· π = 10π +1 π +1
6
Numerical Integration
Example: Using three (forward difference, backward difference, Tustin method) approximation methods to find the discrete equivalent for πΆ π = 10π +1 π +1
7
Numerical Integration
Frequency responses for sampling periods T=0.5 and 1 Approximation is better for higher sampling rate (T=0.5). The sampling rate should be at least 10 times higher than the highest frequency of interest. Tustinβs method is the best approximation.
8
State Space Formulation
Find the state space model described by difference equation π¦ π+2 =π’ π +1.7π¦ π+1 β0.72π¦(π)
9
Discrete State Space Equation
Find the state space model described by difference equation π¦ π+2 =π’ π +1.7π¦ π+1 β0.72π¦(π)
10
Solutions of Discrete State Space Equation
x k+1 =Ax k +Bu k y k =Cx k +Du k Recursive solution
11
Solutions of Discrete State Space Equation
Continue
12
Digital Controller Design
There are two techniques for finding the difference equations for the digital controller Discrete equivalent: Design D(s) first, and then obtain equivalent D(z) using Tustinβs method, Matched Pole-Zero (MPZ) method. Discrete design: directly obtain the difference equation without designing D(s) first. Obtain G(z) and design D(z). Difference equations D/A and hold sensor 1 r(t) u(kT) u(t) e(kT) + - r(kT) plant G(s) y(t) clock A/D T y(kT) Digital controller
13
Design Using Discrete Equivalent
Design by discrete equivalent Design a continuous compensation D(s) using continuous controller design methods such as PID, lead/lag compensator. Digitize the continuous compensation: D(s) ο D(z) Use discrete analysis, simulation or experimentation to verify the design
14
Digitization Technique: Tustinβs Method
Consider π(π ) πΈ(π ) =π· π = 1 π π’ ππ = 0 ππβπ π π‘ ππ‘+ ππβπ ππ π π‘ ππ‘ =π’ ππβπ +area under e t over the last T π’ π =π’ πβ1 + π 2 [π πβ1 +π π ] ο trapezoidal integration Taking z-transform π π§ πΈ π§ =π·(π§)= π π§ β1 1β π§ β1 π = 2 π 1β π§ β1 1+ π§ β1 π(π ) 1 π πΈ(π ) Trapezoidal integration
15
Digitization Technique: Tustinβs Method
MATLAB command π·(π§)= π π§ β1 1β π§ β1 Dz=c2d(Ds,1,'tustin') Dz = 0.5 z + 0.5 z - 1 Sample time: 1 seconds Discrete-time transfer function. π· π = 1 π >> numD=[1]; denD=[1 0]; Ds=tf(numD,denD) Ds = 1 - s Continuous-time transfer function.
16
Relationship between s and z
Consider π π‘ = π βππ‘ , π‘>0 Laplace transform πΉ π = 1 π +π , and it has a pole at π =βπ Z-transform πΉ π§ = π§ π§β π βππ , and it has a pole at π§= π βππ A pole at π =βπ in the s-plane corresponds to a pole at π§= π βππ S-plane Re Im π =βπ Im Z-plane 1 Re π§= π βππ
17
Digitization Technique: Matched Pole-Zero (MPZ) Method
MPZ technique applies the relation π§= π π π . This digitization method is an approximation Map poles and zeros according to the relation π§= π π π . If the numerator is of lower order than the denominator, add powers of (z+1) to the numerator until numerator and denominator are of equal. Set the DC or low-frequency gain of D(z) equal to that of D(s). The MPZ approximation of π· π = πΎ π π +π π +π is π· π§ = πΎ π π§β π βππ π§β π βππ
18
Digitization Technique: Pole-Zero (MPZ) Method
Adjusting DC gain of D(z) π· π = πΎ π π +π π +π π· π§ = πΎ π π§β π βππ π§β π βππ Using the Final Value Theorem πΎ π π π = πΎ π 1β π βππ 1β π βππ πΎ π = πΎ π π π 1β π βππ 1β π βππ The difference equation is π’ π =ο’π’ πβ1 + πΎ π [π π βο‘π πβ1 ]
19
Final Value Theorem Final value theorem for continuous system
lim π‘ββ π₯ π‘ = π₯ π π = lim π β0 π π(π ) Final value theorem for discrete system lim πββ π₯ π = π₯ π π = lim π§β1 (1β π§ β1) π(π§)
20
Digitization Technique: Matched Pole-Zero (MPZ) Method
For D(s) with a higher-order denominator, adds (z+1) to the numerator π· π = πΎ π π +π π (π +π) π· π§ = πΎ π (π§+1)(π§β π βππ ) (π§β1)(π§β π βππ )
21
Digitization Technique: Matched Pole-Zero (MPZ) Method
Example: Design a digital controller to have a closed-loop natural frequency ο· π β
0.3πππ/π and a damping ratio οΊ=0.7. First step is to find the proper D(s) π· π =0.81 π +0.2 π +2 1 π 2 π
π β + π·(π ) πΈ π
22
Digitization Technique: Matched Pole-Zero (MPZ) Method
Example: Design a digital controller to have a closed-loop natural frequency ο· π β
0.3rad/s and a damping ratio οΊ=0.7. Second step is to obtain D(z) Select sampling time T so that sample rate should be about 20 times ο· π . Thus ο· π =20 ο· π =6rad/sec. Since sampling time π= 2π ο· π =1sec. MPZ digitization of π· π =0.81 π +0.2 π +2 is π· π§ =0.389 π§β0.82 π§β0.135 = 0.389β0.319 π§ β1 1β0.135 π§ β1 The difference equation is π’ π =0.135π’ πβ π π β0.319π(πβ1) >> T=1; numD=[1 0.2]; denD=[1 2]; Ds=0.81*tf(numD,denD); Dz=c2d(Ds,T,'matched') Dz = z z
23
Digitization Technique: Matched Pole-Zero (MPZ) Method
Example: Design a digital controller to have a closed-loop natural frequency ο· π β
0.3rad/s and a damping ratio οΊ=0.7.
24
Discrete Design Discrete design is an exact design method and avoids the approximations inherent with discrete equivalent. The design procedures are Finding the discrete model of the plant G(s)ο G(z) Design the compensator directly in its discrete form D(z) π(π§) A practical approach is to start the design using discrete equivalents, then tune up the result using discrete design.
25
Discrete Design For a plant described by G(s) and precede by a ZOH, the discrete transfer function is πΊ π§ = 1β π§ β1 π πΊ(π ) π The closed-loop transfer function π(π§) π
(π§) = π· π§ πΊ(π§) 1+π· π§ πΊ(π§) πππ» π = 1β π βπ π π Mixed control system Pure discrete system
26
Discrete Root Locus Consider πΊ π = π π +π and π· π§ =πΎ, discuss the implications of the loci. Z-transform table Continuous system remains stable for all values of K, but the discrete system becomes oscillatory with decreasing damping ratio as z goes from 0 to -1 and eventually becomes unstable.
27
Relationship b/w z-plane and s-plane
π§= π π π wn increase z increase
28
Relationship b/w z-plane and s-plane
29
Discrete Controllers Proportional Derivative Integral
Lead Compensation
30
Discrete Design Example: Design a digital controller to have a closed-loop natural frequency ο· π β
0.3rad/s and a damping ratio οΊ=0.7. Use a discrete design method. From πΊ π§ = 1β π§ β1 π πΊ(π ) π πΊ π§ = π π§+1 (π§β1) 2 When T=1, πΊ π§ = π§+1 (π§β1) 2 1 π 2 π
π β + π·(π ) πΈ π ο Z-transform table 1 π 3 β π π§(π§+1) (π§β1) 3
31
Discrete Design Example: Design a digital controller to have a closed-loop natural frequency ο· π β
0.3πππ/π and a damping ratio οΊ=0.7. Use a discrete design method. Becomes unstable as K increases Z-plane locus with proportional controller D z =K Z-plane locus with PD controller D z =πΎ (π§β0.85) π§
32
Digital Control Continuous control sysGs=tf(1,[1 0 0]);
1 π 2 π
π β + 0.81 π +0.2 π +2 πΈ π π·(π ) πΊ(π ) π π§+1 (π§β1) 2 π
(π§) π(π§) β + πΈ π(π§) π·(π§) πΊ(π§) Continuous control sysGs=tf(1,[1 0 0]); sysDs=tf(0.81*[1 0.2],[1 2]); sysGDs=sysGs*sysDs; sysCLs=feedback(sysGDs,1); step(sysCLs); Discrete equivalent sysGs=tf(1,[1 0 0]); sysDs=tf(0.81*[1 0.2],[1 2]); T=1; sysDz=c2d(sysDs,T,'matched') sysGz=c2d(sysGs,T,'zoh'); sysDGz=sysGz*sysDz; sysCLz=feedback(sysDGz,1) step(sysCLz) Discrete design sysGs=tf(1,[1 0 0]); T=1; sysGz=c2d(sysGs,T,'zoh'); sysDz=tf(0.374*[1 -.85],[1 0],T) sysDGz=sysGz*sysDz; sysCLz=feedback(sysDGz,1) step(sysCLz)
33
Step Responses of the Continuous and Digital Systems
Discrete equivalent Discrete design
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.