ERT 210 DYNAMICS AND PROCESS CONTROL CHAPTER 11 – MATLAB TUTORIAL

Slides:



Advertisements
Similar presentations
Closed-Loop Transfer Functions
Advertisements

INDUSTRIAL AUTOMATION (Getting Started week -1). Contents PID Controller. Implementation of PID Controller. Response under actuator Saturation. PID with.
Discrete Controller Design
Chapter 4 Systems of Linear Equations; Matrices
CHE 185 – PROCESS CONTROL AND DYNAMICS
MATLAB BASICS ECEN 605 Linear Control Systems Instructor: S.P. Bhattacharyya.
ECEN/MAE 3723 – Systems I MATLAB Lecture 3.
Properties of State Variables
CHE 185 – PROCESS CONTROL AND DYNAMICS
CHE 185 – PROCESS CONTROL AND DYNAMICS PID CONTROL APPLIED TO MIMO PROCESSES.
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Chapter Summer 2. Comparator 3. Block Blocks in Series
Control of Multiple-Input, Multiple- Output (MIMO) Processes 18.1 Process Interactions and Control Loop Interactions 18.2 Pairing of Controlled and Manipulated.
Controller Tuning: A Motivational Example
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
SIMULINK Dr. Samir Al-Amer. SIMULINK SIMULINK is a power simulation program that comes with MATLAB Used to simulate wide range of dynamical systems To.
Chapter 8. The PID Controller Copyright © Thomas Marlin 2013
Introduction to Block Diagrams
MATLAB-Tutorial 3 Class ECES-304 Presented by : Shubham Bhat.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: First-Order Second-Order N th -Order Computation of the Output Signal.
Properties and the Inverse of
ERT 312 SAFETY & LOSS PREVENTION IN BIOPROCESS RISK ASSESSMENT Prepared by: Miss Hairul Nazirah Abdul Halim.
Visual Solutions, VisSim Overview VisSim program can be used to simulate some of the control problems in the DPCL. Review the following:
DYNAMIC BEHAVIOR AND STABILITY OF CLOSED-LOOP CONTROL SYSTEMS
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: First-Order Second-Order N th -Order Computation of the Output Signal Transfer.
Dynamic Response Characteristics of More Complicated Systems
ECE 4115 Control Systems Lab 1 Spring 2005
Modified by Albert W.J. Hsue,
Chapter 6 The Laplace Transform and the Transfer Function Representation.
Chapter 14 Frequency Response Force dynamic process with A sin  t, Chapter
PID Controller Design and
Final Exam M.Eng. Amjad Elshenawy RTECS Gc(s)Gc(s) Gc(s)Gc(s) Controller   n sensor noise  w load disturbance  Gp(s)Gp(s) Gp(s)Gp(s) Plant.
ERT 210/4 Process Control Hairul Nazirah bt Abdul Halim Office: CHAPTER 8 Feedback.
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.
Block diagram reduction
Simulink Simulink is a graphical extension to MATLAB for modeling and simulation of systems. In Simulink, systems are drawn on screen as block diagrams.
INTRODUCTION TO SIMULINK by Yasmin Hanum Md Thayoob & Aidil Azwin Zainul Abidin.
Ch. 13 Frequency analysis TexPoint fonts used in EMF.
ERT 210/4 Process Control & Dynamics DYNAMIC BEHAVIOR OF PROCESSES :
1 Teaching Innovation - Entrepreneurial - Global The Centre for Technology Enabled Teaching & Learning, MGI, India DTEL DTEL (Department for Technology.
Lecture 4: The z-Transform 1. The z-transform The z-transform is used in sampled data systems just as the Laplace transform is used in continuous-time.
Lecture 2: Mathematical Modeling Copyright © Thomas Marlin 2013 The copyright holder provides a royalty-free license for use of this material at non-profit.
CONTROL SYSTEM DESIGN by using MATLAB
TUTORIAL EKT 308 Computer Network. Question 1 1. a) Differentiate between open loop and closed loop control systems. b) Explain positive features of feedback.
HossamTalaat - MATLAB Course - KSU - 17/08/14231 IEEE Student Branch - College of Engineering - KSU Getting started with Simulink (part 2) By Prof. Hossam.
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Chapter 8 State Feedback and State Estimators State Estimator In previous section, we have discussed the state feedback, based on the assumption that all.
Lesson 13: Effects of Negative Feedback on System disturbances
Lesson 12: Transfer Functions In The Laplace Domain
MESB374 System Modeling and Analysis Transfer Function Analysis
Inverse Response Systems
Transfer Functions Chapter 4
Workshop for Flipped Class
Background Knowledge Expected
LECTURE 33: DIFFERENCE EQUATIONS
ME375 Handouts - Fall 2002 MESB374 Chapter8 System Modeling and Analysis Time domain Analysis Transfer Function Analysis.
Dynamic Behavior and Stability of Closed-Loop Control Systems
Control System Toolbox (Part-I)
Control of Multiple-Input, Multiple-Output Processes
Controller Tuning: A Motivational Example
G1 and G2 are transfer functions and independent of the
Getting Started With Simulink
Signal Flow Graph nodes : variables branches : gains e.g. y = a ∙ x
Nyquist Stability Criterion
System models Time domain models
Chapter 8 State Feedback and State Estimators State Estimator In previous section, we have discussed the state feedback, based on the assumption that all.
Control System Toolbox (Part-I)
ERT 210 DYNAMICS AND PROCESS CONTROL CHAPTER 11 – MATLAB TUTORIAL
PID Controller Design and
G1 and G2 are transfer functions and independent of the
Presentation transcript:

ERT 210 DYNAMICS AND PROCESS CONTROL CHAPTER 11 – MATLAB TUTORIAL Prepared by: Puan 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);

Refer to Appendix C – Use of MATLAB in Process Control

COMPUTER SIMULATION WITH SIMULINK

Consider a dynamic system consisting of a single output Y and two inputs U and D: Y(s) =Gp(s) U(s) + Gd(s) D(s) Where: Then, draw a Simulink block diagram (Figure C.1).

Figure C.1 Simulink block diagram

Figure C. 2. Response for simultaneous unit Figure C.2 Response for simultaneous unit step change at t = 0 in U and D from the simulink diagram in Fig. C1

Figure C.4 Closed loop diagram

Closed-loop response with Setpoint Changes Click block D Set the Final Value to 0 (zero) Click Ysp Set te Final Value to 1 (one) Set the Stop time = 50 (In the simulation parameter menu) Click Start from the Simulation menu Type plot(t,y) to view the response.

Figure C.5 Unit set-point response for the closed-loop system in Fig. C4 with P = 1.65, I = 0.23, D = 2.97

Figure C.5 Unit set-point response for the closed-loop system in Fig.C4 with P = 1.65, I = 0.23, D = 2.97

Closed-loop response with Disturbance Changes Click block Ysp Set the Final Value to 0 (zero) Click D Set the Final Value to 1 (one) Set the Stop time = 50 (In the simulation parameter menu) Click Start from the Simulation menu Type plot(t,y) to view the response.

Figure C. 6. Closed loop response for a unit Figure C.6 Closed loop response for a unit step disturbance (Stop time = 50)

Figure C. 6. Closed loop response for a unit Figure C.6 Closed loop response for a unit step disturbance (Stop time = 150)

Tuning by Ziegler-Nicholas Method What is Kcu and Pu? Calculate Kc, τI and τD for PID setting.