ERT 210 DYNAMICS AND PROCESS CONTROL CHAPTER 11 – MATLAB TUTORIAL

Slides:



Advertisements
Similar presentations
Solving Differential Equations BIOE Solving Differential Equations Ex. Shock absorber with rigid massless tire Start with no input r(t)=0, assume.
Advertisements

Root Locus Analysis (1) Hany Ferdinando Dept. of Electrical Eng. Petra Christian University.
Root Locus Diagrams Professor Walter W. Olson
Dynamic Behavior of Closed-Loop Control Systems
Chapter 8 Root Locus <<<4.1>>>
Lect.8 Root Locus Techniques Basil Hamed
Modern Control Systems (MCS) Dr. Imtiaz Hussain Assistant Professor URL :
Automatic Control Theory-
1 Chapter 2 We need to write differential equations representing the system or subsystem. Then write the Laplace transform of the system. Then we will.
DNT Control Principle Root Locus Techniques DNT Control Principle.
Feedback Control System THE ROOT-LOCUS DESIGN METHOD Dr.-Ing. Erwin Sitompul Chapter 5
ME375 Handouts - Spring 2002 Root Locus Method.
Chapter 3 Dynamic Response The Block Diagram Block diagram is a graphical tool to visualize the model of a system and evaluate the mathematical relationships.
Subsea Control and Communications Systems
Lecture 22: Frequency Response Analysis (Pt II) 1.Conclusion of Bode plot construction 2.Relative stability 3.System identification example ME 431, Lecture.
1 More General Transfer Function Models Chapter 6 Poles and Zeros: The dynamic behavior of a transfer function model can be characterized by the numerical.
Lec 7. Higher Order Systems, Stability, and Routh Stability Criteria Higher order systems Stability Routh Stability Criterion Reading: 5-4; 5-5, 5.6 (skip.
Lecture 7 Poles and Zeros Stability. Transfer Function Models General Representation wh where z i are the zeros p i are the poles n ≥ m to have a physically.
ChE 182 Chemical Process Dynamics and Control
Chapter 5: Root Locus Nov , Two Conditions for Plotting Root Locus Given open-loop transfer function G k (s) Characteristic equation Magnitude.
Lecture 18: Root Locus Basics
Root Locus Techniques (Sketching Method) Date: 25 th September 2008 Prepared by: Megat Syahirul Amin bin Megat Ali
Modern Control System EKT 308 Root Locus Method (contd…)
1 Time Response. CHAPTER Poles and Zeros and System Response. Figure 3.1: (a) System showing input and output; (b) Pole-zero plot of the system;
Prof. Wahied Gharieb Ali Abdelaal
Dr. Tamer Samy Gaafar Lec. 2 Transfer Functions & Block Diagrams.
Control Systems Lect.3 Steady State Error Basil Hamed.
Lecture 11/12 Analysis and design in the time domain using root locus North China Electric Power University Sun Hairong.
Intelligent Robot Lab Pusan National University Intelligent Robot Lab Chapter 6. TRANSIENT RESPONSE -- STABILITY Pusan National University Intelligent.
General Stability Criterion Most industrial processes are stable without feedback control. Thus, they are said to be open-loop stable or self-regulating.
EE4262: Digital and Non-Linear Control
ERT 210 DYNAMICS AND PROCESS CONTROL CHAPTER 11 – MATLAB TUTORIAL
The Root Locus Analysis
Root Locus Techniques DNT Control Principle Date: 18th September 2008
Salman Bin Abdulaziz University
Root Locus Method Assist. Professor. Dr. Mohammed Abdulrazzaq
Routh-Herwitz Stability Criterion
Automatic Control Theory CSE 322
Lesson 12: Transfer Functions In The Laplace Domain
MESB374 System Modeling and Analysis Transfer Function Analysis
Salman Bin Abdulaziz University
Laplace Transforms Chapter 3 Standard notation in dynamics and control
Chapter 5 Root Locus.
Digital and Non-Linear Control
Control Systems (CS) Lecture-17 Routh-Herwitz Stability Criterion
Automatic Control Theory CSE 322
Lecture 19: Root Locus Continued
Learning Outcomes After completing this ppt the student will be able to: Make and interpret a basic Routh table to determine the stability of a system.
ME375 Handouts - Spring 2002 MESB374 System Modeling and Analysis System Stability and Steady State Response.
Effects of Zeros and Additional Poles
Lec 9. Root Locus Analysis I
ME375 Handouts - Fall 2002 MESB374 Chapter8 System Modeling and Analysis Time domain Analysis Transfer Function Analysis.
Unit 4 STABILITY ANALYSIS
PID Controller.
Instructor: Jongeun Choi
Time-Domain Analysis of Control Systems (3)
Root-locus Technique for Control Design
Root-Locus Analysis (1)
More General Transfer Function Models
UNIVERSITI MALAYSIA PERLIS SCHOOL OF ELECTRICAL SYSTEM ENGINEERING
Chapter 6 – The Stability of Linear Feedback Systems
Figure Contributions of characteristic equation roots to closed-loop response.
Root Locus Techniques CH 8: Islamic University of Gaza
Feedback Control Systems (FCS)
Root Locus Plot of Dynamic Systems
Root-Locus Analysis (2)
Root Locus Techniques CH 8: Islamic University of Gaza
CH. 6 Root Locus Chapter6. Root Locus.
Chapter 6. STABILITY Good relationships nurture you. They help you find yourself and who you are. I don’t mean just relationships with boys or men. Relationships.
Time Response, Stability, and
Presentation transcript:

ERT 210 DYNAMICS AND PROCESS CONTROL CHAPTER 11 – MATLAB TUTORIAL Prepared by: Miss Hairul Nazirah Abdul Halim

Transfer function To model a transfer function in MATLAB, define the numerator and denominator polynomials as 1-row matrices first. Then use the ‘ tf ’ command in Matlab.

Example 1 Transfer function is given by: Model the transfer function in MATLAB. Solution Using MATLAB, define the denominator and numerator as matrices: >> num = 1; >> den = [1 2 3]; >> G = tf(num,den) OR >> G = tf(1, [1 2 3])

Example 2 Model the following transfer function in MATLAB. Solution Using MATLAB, define the denominator and numerator as matrices: >> num = 1; >> den = [1e-9 1e-6 1]; >> G = tf(num,den) OR >> G = tf(1, [1e-9 1e-6 1])

Exercise 1 1) 2)

Model interconnections Multiple models can be manipulated using normal mathematical functions (addition and multiplication) For models in series, multiply them For models in parallel, add them

Model interconnections

Model interconnections

Model interconnections Example 3 Given that Find the total transfer function if both of them are: a) Connected in series (multiply) b) Connected in parallel (add)

Model interconnections Solution >> G1 = tf([1 4], [1 3 2]) >> G2 = tf(1, [1 5]) >> G_series = G1*G2 >> G_parallel = G1+G2

Model interconnections Example 4 For feedback loop above, overall transfer function is

>> gl = tf ([1 4] , [1 3 2]) >> g2 = tf (1, [1 5]); >> g_closed = feedback(gl,g2)

Example 5 In the diagram above, it is given that Find the overall transfer function using MATLAB

Solution >> g1=tf(1, [1 2]); >> g2=tf([1 3] , [1 4 5]); >> g3=tf(4, [1 0]); >> g4=tf(10, [1 10]); >> g12=g1+g2; >> g123=g12*g3; >> g_overall=feedback(g123,g4);

Analyzing Dynamic System Poles and Zeros Characteristic equation System stability System Performance

Effects of Poles and Zeros Poles and zeros determine the performance of a system, especially poles For a transfer function, zeros are the roots of the numerator and poles are the roots of the denominator To find zeros, make the numerator equal to zero, and solve for s. To find poles, make the denominator equal to zero and solve for s.

Poles and zeros To find zeros, equate numerator to zero To find poles, equate denominator to zero

Poles and zeros Example 6 Poles and zeros can be automatically found in MATLAB using the ‘pole’ and ‘zero’ command >> g=tf ([1 1] , [1 2 -3 1]) >> z=zero(g) >> p=pole(g)

Poles and zeros Exercise 3 Find the poles and zeros of the following transfer function using MATLAB

Poles and zeros Complicated polynomials Multiplying and solving complicated polynomials can be very difficult The operation above can be done using The ‘conv’ command >> conv([1 3 1], [1 2 1 2])

Complicated polynomials The solution of the equation above can be calculated using the ‘roots’ command >> roots([1 3 -2 3 1 0 1])

Characteristic equation ‘denominator = 0’ has a special name: THE CHARACTERISTIC EQUATION It determines the main characteristics of the system

Characteristic equation The characteristic equation of the system above is The poles of the system are the solutions of the characteristic equation.

System Stability If all the poles are negative then the output will go towards D when t goes towards infinity. If any of the poles are positive then the output will go towards infinity when t goes towards infinity (unstable). Therefore, for a stable response, the poles must all lie in the negative left half plane.

System Stability Stability of system by pole location

System Stability Effect of poles and zeros Poles of a system can be classified into 2 categories: • Real s = -1, -1.5, -5 • Complex conjugate (always appear in pairs with imaginary part) s = -1 ± j3, -2 ± j(2)-1/2

System Stability Real and complex poles

Effect of real poles

Effect of real poles • Will get an ‘aperiodic’ (no oscillation) response • No overshoot • Will converge exponentially towards a final value • If the pole has a bigger ‘magnitude’, the convergence will be faster

Effect of complex poles • Will have overshoot • Converges with oscillation (decaying sine wave) towards a final value for stable systems

Effect of complex poles

Zeros Zeros have not been studied in great details in Control. Rule of thumb - if a zero is near a pole, it will ‘cancel’ out the effect of the pole, depending on how near it is. The nearer it is, the less is the effect of the pole.

Poles and zeros Exercise 4 Check the stability of the following systems and verify it with the ‘step’ response

Example 7 Perform the step response of the following system:

>> g1 = tf(1, [1 1]) >> step(g1)

>> g2 = tf(4, [1 4 8]) >> step(g2)

Root Locus Used to graphically show the movement of the closed loop poles when the system gain is changed from 0 to infinity

Root Locus For the system above: The closed loop transfer function is

Root Locus To find the poles of the closed loop system The closed loop characteristic equation depends on K. So the closed loop poles will also depend on K. The root locus technique shows the locus of the closed-loop poles as K is changed.

Root Locus Example 8 Draw the root locus of the following system:

Solution >> num=10; >> den1=[1 0]; >> den2=[1 3]; >> den3=[1 5]; >> denl2=conv(den1,den2); >> den=conv(denl2,den3); >> g=tf(num,den); >>r1ocus(g)

Root Locus

Root Locus Interpretation of the root locus plot • When the gain K = 0, the closed loop poles are the open loop poles at s = 0, -3, -5. • As the gain K is increased, the poles at 0 and -3 move towards each other, while the pole at -5 moves further into the LHP. • When K = 0.821, the poles from 0 and -3 meet at -1.21, and move upwards. • When K = 12, the upward moving poles reach the imaginary axis at 3.87. If the gain K is increased any further, the closed loop system goes unstable. • To get those points, click on the root locus plot and drag along. The information is given.