Modern Control Systems (MCS) Lecture-23-24 Time Response Discrete Time Control Systems Steady State Errors Dr. Imtiaz Hussain Assistant Professor email: imtiaz.hussain@faculty.muet.edu.pk URL :http://imtiazhussainkalwar.weebly.com/ 1 Lecture Outline • Introduction • Time Response of DT System – Examples • Final Value Theorem – Examples • Steady State Errors 2 Introduction • The time response of a discrete-time linear system is the solution of the difference equation governing the system. • For the linear time-invariant (LTI) case, the response due to the initial conditions and the response due to the input can be obtained separately and then added to obtain the overall response of the system. • The response due to the input, or the forced response, is the convolution summation of its input and its response to a unit impulse. 3 Example-1 • Given the discrete-time system π¦ π + 1 − 0.5π¦ π = π’ π • Find the impulse response of the system. Solution • Taking z-transform π§π π§ − 0.5π π§ = π π§ π(π§) 1 = π(π§) π§ − 0.5 4 Example-1 • Since U(z)=1 1 π(π§) = π§ − 0.5 • Taking Inverse z-Transform π¦ π = (0.5)π−1 , π≥0 5 Example-2 • Given the discrete time system π¦ π+1 −π¦ π =π’ π+1 • find the system transfer function and its response to a sampled unit step. Solution • The transfer function corresponding to the difference equation is π§π π§ − π π§ = π§π π§ π(π§) π§ = π(π§) π§ − π§ 6 Example-2 π§ π(π§) = π(π§) π§−1 • Since U z = π§ π§−1 π§ π§ π(π§) = × π§−1 π§−1 • Taking Inverse z-Transform (time advance Property) π§ π(π§) = π§ (π§ − 1)2 π¦ π = π + 1, π≥0 7 Home Work • Find the impulse, step and ramp response functions for the systems governed by the following difference equations. 1. π¦ π + 1 − 0.5π¦ π = π’ π 2. π¦ π + 2 − .01π¦ π + 1 + 0.8π¦ π = π’(π) 8 Final Value Theorem • The final value theorem allows us to calculate the limit of a sequence as k tends to infinity, if one exists, from the ztransform of the sequence. • If one is only interested in the final value of the sequence, this constitutes a significant short cut. • The main pitfall of the theorem is that there are important cases where the limit does not exist. • The two main case are 1. An unbounded sequence 2. An oscillatory sequence 9 Final Value Theorem • If a sequence approaches a constant limit as k tends to infinity, then the limit is given by π ∞ = lim π π π→∞ π§−1 π ∞ = lim πΉ π§ π§→1 π§ π ∞ = lim(π§ − 1)πΉ π§ π§→1 10 Example-3 • Verify the final value theorem using the z-transform of a decaying exponential sequence and its limit as k tends to infinity. Solution • The z-transform of an exponential sequence is π§ πΉ π§ = π§ − π −ππ • Applying final value theorem π§−1 π§−1 π§ π ∞ = lim πΉ π§ = lim π§→1 π§ π§→1 π§ π§ − π −ππ π ∞ =0 11 Example-4 • Obtain the final value for the sequence whose ztransform is Solution π§ 2 (π§ − π) πΉ π§ = (π§ − 1)(π§ − π)(π§ − π) • Applying final value theorem π§−1 π§ 2 (π§ − π) π ∞ = lim π§→1 π§ (π§ − 1)(π§ − π)(π§ − π) 1−π π ∞ = (1 − π)(1 − π) 12 Home work • Find the final value of following z-transform functions if it exists. 1. πΉ(π§) = π§ π§ 2 −1.2π§+0.2 2. πΉ(π§) = π§ π§ 2 −0.3π§+2 13 Steady State Error • Consider the unity feedback block diagram shown in following figure. • The error ratio can be calculated as πΈ(π§) 1 = π (π§) 1 + πΊππ΄π π§ πΊ(π§) • Applying the final value theorem yields the steady-state error. π§−1 π ∞ = lim πΈ π§ π§→1 π§ 14 Steady state Error • As with analog systems, an error constant is associated with each input (e.g., Position Error constant and Velocity Error Constant) • Type number can be defined for any system from which the nature of the error constant can be inferred. • The type number of the system is the number of unity poles in the system z-transfer function. 15 Position Error Constant πΎπ • Error of the system is given as π (π§) πΈ(π§) = 1 + πΊππ΄π π§ πΊ(π§) • Where π§ π π§ = π§−1 • Therefore, the steady state error due to step input is given as π ∞ = π§−1 1 π§ lim π§→1 π§ 1+πΊππ΄π π§ πΊ(π§) π§−1 π ∞ = lim π§→1 1 1 + πΊππ΄π π§ πΊ(π§) 16 Position Error Constant πΎπ π ∞ = lim π§→1 1 1 + πΊππ΄π π§ πΊ(π§) • Position error constant πΎπ is given as πΎπ = lim πΊππ΄π π§ πΊ(π§) π§→1 • Steady state error can be calculated as 1 π ∞ = 1 + πΎπ 17 Velocity Error Constant πΎπ£ • Error of the system is given as π (π§) πΈ(π§) = 1 + πΊππ΄π π§ πΊ(π§) • Where ππ§ π π§ = π§−1 2 • Therefore, the steady state error due to step input is given as π§−1 1 ππ§ π ∞ = lim π§→1 π§ 1 + πΊππ΄π π§ πΊ(π§) π§ − 1 2 π π ∞ = lim π§→1 π§ − 1 [1 + πΊππ΄π π§ πΊ π§ ] 18 Velocity Error Constant πΎπ£ π π ∞ = lim π§→1 π§ − 1 [1 + πΊππ΄π π§ πΊ π§ ] • πΎπ£ is given as 1 πΎπ£ = lim π§ − 1 πΊππ΄π π§ πΊ π§ π π§→1 • Steady state error due to sampled ramp input is given as 1 π ∞ = πΎπ£ 19 Example-5 • Find the steady-state position error for the digital position control system with unity feedback and with the transfer functions πΊππ΄π πΎ(π§ + π) π§ = (π§ − 1)(π§ − π) πΎπ (π§ − π) πΆ π§ = π§−π ,0 < π, π, π < 1 1. For a sampled unit step input. 2. For a sampled unit ramp input Solution • πΎπ and πΎπ£ are given as πΎπ = lim πΊππ΄π π§ πΊ(π§) π§→1 1 πΎπ£ = lim π§ − 1 πΊππ΄π π§ πΊ π§ π π§→1 20 Example-5 πΎπ = lim πΊππ΄π π§ πΊ(π§) π§→1 • 1 πΎπ£ = lim π§ − 1 πΊππ΄π π§ πΊ π§ π π§→1 πΎπ can be further evaluated as πΎ(π§ + π) πΎπ (π§ − π) πΎπ = lim π§→1 (π§ − 1)(π§ − π) π§−π πΎ(1 + π) πΎπ (1 − π) πΎπ = =∞ (1 − 1)(1 − π) 1 − π • Corresponding steady state error is 1 π ∞ = =0 1 + πΎπ 21 Example-5 πΎπ = lim πΊππ΄π π§ πΊ(π§) π§→1 • 1 πΎπ£ = lim π§ − 1 πΊππ΄π π§ πΊ π§ π π§→1 πΎπ£ is evaluated as 1 πΎ(π§ + π) πΎπ (π§ − π) πΎπ£ = lim π§ − 1 π π§→1 (π§ − 1)(π§ − π) π§ − π 1 πΎ(1 + π) πΎπ (1 − π) πΎπΎπ (1 + π) πΎπ£ = = π (1 − π) 1−π π(1 − π) • Corresponding steady state error is 1 π(1 − π) π ∞ = = πΎπ£ πΎπΎπ (1 + π) 22 To download this lecture visit http://imtiazhussainkalwar.weebly.com/ END OF LECTURES-23-24 23