332 views

Original Title: MATSIM Simulink for Process Control

Uploaded by EslamAbdEl-Ghany

- Next
- Which Tuning Method Should You Use
- 26194 EGCP 3 LS Load Sharing Operation en TechMan[1]
- Lab # 5B Introduction to Temperature Controller
- Intelligent PID Controller
- Rr311004 Process Control Instrumentation
- PID Controller for Lego Mindstorms Robots
- waihung.net-PID Line Following Robot.pdf
- DC-motor speed control by PIC-based digital PID-controller
- Introduction SDPO
- MFO for Automatic Gain Controlling of FO-PID having Multiple Sources
- Process control lecture 22_Dr Pratik N Sheth_BITS.pdf
- Chemical Process Engineering - PID Algorithms
- Matlab Process Control
- Pid Controllers
- Chapter_6 Variable Speed Pressure Booster Systems
- Fuzzy-Tuned PID Anti-Swing Control of Automatic Gantry Crane 2010
- Principles of Control Systems
- ISA Saint Louis Exceptional Opportunities Short Course Day 1
- T1_NonInterSystem

You are on page 1of 10

MATLAB, which stands for MATrix LABoratory, is a technical computing environment for high-performance numeric computation and visualization. SIMULINK is a part of MATLAB that can be used to simulate dynamic systems. To facilitate model definition, SIMULINK adds a new class of windows called block diagram windows. In these windows, models are created and edited primarily by mouse-driven commands. Part of mastering SIMULINK is to become familiar with manipulating model components within these windows. 1. Start Matlab and then the Simulink environment by typing simulink to the matlab prompter.

New

Model

Z.K.Nagy

Page 1 of 10

3. You can construct your block diagram by drag-and-dropping the appropriate blocks from the main Simulink widow. Some of the most commonly used blocks: From the Continuous blocks (double click on the Continuous button) you can use the typical blocks to construct dynamic systems (e.g. transfer function, time delay, etc.).

Transfer function

Time delay

From the Sink we often use the Scope block to plot the results.

Plot signal

Z.K.Nagy

Page 2 of 10

From the Sources the Step function is used to simulate step changes in the input: Select Sources Step block

From the Signal Routing blocks the Mux block is often used to concatenate signals into a bus e.g. for plotting multiple signals in Scope. Select Signal Routing

Mux block

The Math Operations set of blocks provides the usual mathematical operations: Addition

Z.K.Nagy

Page 3 of 10

E1 Step 1. Start the Simulink environment by typing simulink to the matlab prompter. E1 Step 2. Open a new simulink mode from the File New Model E1 Step 3. Drag and drop the blocks below from the Simulink windows into the model window E1 Step 4. Double click the blocks the set up different second order transfer functions. Define one overdamped, one critically damped and one under damped system.

Z.K.Nagy

Page 4 of 10

E1 Step 6. Set the simulation time to 30 sec from the menu Simulation Configuration parameters

E1 Step 7. Simulate the process by pressing the Run button and then show the results by double clicking on the Scope block: Run simulation Autoscale figure

E1 Step 8. INDIVIDUAL EXERCISE Change the form of the transfer function to simulate (i) an unstable behaviour and (ii) a system at the limit of instability (with sustained oscillations).

Z.K.Nagy

Page 5 of 10

Consider the following third order process (cascade of three reactors from the lecture Topic 13) 6 (2s + 1)(4s + 1)(6s + 1)

G p (s ) =

Tune a PID controller using a practical method and the Ziegler-Nichols tuning rules. The method is often used in industry because it does not require to know the process transfer function. It is based on the similar idea as the ZN method described in the lecture, with the difference that the ultimate gain and ultimate period are determined experimentally, not analytically. E2 Step1. Download the Simulink block diagram model_3rdorder_PID.mdl from the LearnServer and save in the current Matlab folder. E2 Step2. Set the controller to a P-only controller (by setting tau_I very large, e.g. tau_I = 100000; and tau_D = 0). E2 Step3. Start to give values to Kc until the closed loop system is at the verge of instability (sustained oscillations are obtained)

Zoom buttons

Ultimate period E2 Step 4. Determine from the figure the ultimate period (Tu). Use the zoom buttons in the figure window and obtain the ultimate period (the time interval for one entire oscillation). E2 Step 5. With the ultimate gain and period determined at steps 3 and 5 compute the parameters of a PID controller using the ZN tuning rules. E2 Step 6. Introduced the PID parameters in the simulink PID controller and perform a simulations to test the closed loop performance. Compare the values of the ultimate gain and frequency and the tuning parameters obtained with the practical approach with those obtained using the analytical method (direct substitution) in the lecture (Topic 13).

Z.K.Nagy

Page 6 of 10

EXERCISE 3. PID controller tuning using the Process Reaction Curve based Ziegler

Nichols approximate model approach. Consider the same system as for EXERCISE 2. We will apply the approximate model based ZN techniques for the PID controller tuning. According to this approach (see lecture on Topic 13) first an approximate FOPDT representation of the process is identified based on the process reaction curve and then the PID controller parameters are obtained using the appropriate ZN tuning rules. E3 Step 1. Download the Simulink program model_3rdorder_Ex3.mdl and save it in the current Matlab folder. E3 Step 2. Open the model and change the gain, time constant and time-delays of the approximate model to obtain a response which is as close as possible to the original process response. After each change simulate the two systems by pressing the run Button.

E3 Step 3. Use the effective time constant, effective gain and effective time delay obtained in Step 2 (which provides the best approximations of the original third order system) and calculate the PID controller parameters using the ZN tuning rules (lecture Topic 13, slide 25) E3 Step 4. Use the calculated tuning parameters in the block diagram from Exercise 2 to simulate the closed loop response. Compare the tuning parameters obtained in this case with those resulted in Exercise 2. Compare the closed loop performance in the two cases.

Z.K.Nagy

Page 7 of 10

E4 Step 1. Download the file model Ex4_IMC.mdl and save in the current Matlab folder. The block diagram simulates the FOPDT system given in Example 2 from the lecture notes (Topic 14 part 2, slide 19): G p ( s) = 5e 3 s 8s + 1

In the block diagram the closed loop system is simulated twice for comparison. E4 Step 2. Tune the first PID according to the ZN approach based on approximate model. This is straightforward since the transfer function is already in the FOPDT form. E4 Step 3. Tune the second PID using the IMC tuning rules derived in the lecture note (Topic 14 part 2, slide 11): 9.5 1 1 12 (1 + + s) which gives I = 9.5 and D= 1.26 and a gain that 5( + 1.5) 9.5 s 9.5 depends on . Calculate the gain for different values (e.g. 1, 2, and 5), run the simulation for each set if tuning parameters and compare the closed loop performance with the ZN tuning. Gc ( s ) =

Z.K.Nagy

Page 8 of 10

E5 Step 1. Download the simulink file model3rdorder_PID_nocascade. This represents the model of jacketed chemical reactor where the jacket input temperature jacket temperature dynamics is model by a first order system whereas the jacket temperature to reactor temperature dynamics by a second order system, leading to a third order system overall, similar as in example as in Exercise 2. E5 Step 2. Simulate the system using the simple control loop, which controls the reactor temperature via the jacket inlet temperature directly. Tune this controller using any method. E5 Step 3. Construct and simulate a typical cascade control of the reactor temperature, and compare the control performance compared to step 2. Use in the first instance the same gain and integral time for both the slave and master controllers. IMPORTANT: Do not use any derivative action for the slave controller.

Z.K.Nagy

Page 9 of 10

1. Download the simulink diagram that simulates the input output behaviour of a chemical process with unknown model (blackbox_model.mdl). Apply your Chemical Process Control knowledge and design a controller for the process. Prepare the Simulink diagram and simulate the closed loop response of the resulted system. Hint. You may use any (or all) of the PID controller tuning approaches learned in the module (e.g. you can identify a FOPDT model based on the process reaction curve, or you can use the practical ZN tuning via the experimental determination of the ultimate gain and ultimate period. 2. Look up in the textbook the guidelines for tuning the controllers in the cascade control architecture and follow these guidelines to tune the controllers from Exercise 5. 3. Write a Matlab function and use it or quantitative comparison of the control performances in the exercises above. You can compute for example the sum-of-squares error criteria.

Z.K.Nagy

Page 10 of 10

- NextUploaded byLakshmi Cheedella
- Which Tuning Method Should You UseUploaded byNorzaifee Nizamudin
- 26194 EGCP 3 LS Load Sharing Operation en TechMan[1]Uploaded byoscarafonso
- Lab # 5B Introduction to Temperature ControllerUploaded byNoumanShabbir
- Intelligent PID ControllerUploaded bysherykhann
- Rr311004 Process Control InstrumentationUploaded bySrinivasa Rao G
- PID Controller for Lego Mindstorms RobotsUploaded bydialgfa
- waihung.net-PID Line Following Robot.pdfUploaded byAchmad Fiqhi Ibadillah
- DC-motor speed control by PIC-based digital PID-controllerUploaded bykeitabando
- Introduction SDPOUploaded byFajar Rahman
- MFO for Automatic Gain Controlling of FO-PID having Multiple SourcesUploaded byIJRASETPublications
- Process control lecture 22_Dr Pratik N Sheth_BITS.pdfUploaded byManik Bansal
- Chemical Process Engineering - PID AlgorithmsUploaded bypartho143
- Matlab Process ControlUploaded byHarsha
- Pid ControllersUploaded bysana_ashraf292
- Chapter_6 Variable Speed Pressure Booster SystemsUploaded byosamamae
- Fuzzy-Tuned PID Anti-Swing Control of Automatic Gantry Crane 2010Uploaded byelectrozone
- Principles of Control SystemsUploaded byk080045498
- ISA Saint Louis Exceptional Opportunities Short Course Day 1Uploaded byanuj1166
- T1_NonInterSystemUploaded byHimanshu Jat
- comparison of tuning algorithmsUploaded byNaveen Kumar Viswanathan
- 093Uploaded bySandipan Das
- [1]-sdarticle (10)Uploaded bydaniedb
- Chng 3003 Tutorial6 2007Uploaded byNguyễn Tiến Dũng
- Adaptive PID for SPM_TPE_2015.pdfUploaded byTalha Yousuf
- shamsuzzoha2009Uploaded bynilu
- Vi Ba-step TrackingUploaded byHoangdinh Lim
- Process Dynamics and Control : Chapter 8 LecturesUploaded byMuhaiminul Islam
- MnE601 Tech Presentation 1Uploaded bybasilion1
- 13 Cascade ControlUploaded byMansour Abdulaziz

- ChangesUploaded byFajar Nugraha
- About RJT Compuquest IncUploaded byVikas Soman
- VStitcher Online HelpUploaded byMohamed Mostafa
- Big DataUploaded byDAN
- JF2 Serial Interfaces Application Note r1Uploaded byMaría Murillo
- How to Learn JavaUploaded byM Haroon Torab
- S-Series Interface for PROVOX IOUploaded bySaad Bro
- Amazon Redshift and the Case for Simpler DWUploaded byMichaelMelnick
- 16_Generating Data With DO Loops - 32 of 34Uploaded byash101_ashu7499
- Comsol Tutorial 2 - 3D BeamUploaded byparin advani
- IGate Placement PaperUploaded byPhanindra Babu Pabba
- LeanUploaded byandy
- HS-SCCH Channel Coding Details Based on TS 25.212 Rel 9Uploaded byAshok Hs
- rrlsUploaded byMaynald Mabanta
- f3a46 Lte Dual-sim Wifi Router SpecificationUploaded byXiamen Four-Faith Industrial Router supplier
- My CVUploaded byAngelo Mari
- Polyflow Extrusion WS06 Inverse ExtrusionUploaded bywoongs73
- Queue Type Pcq-mangle-queue Tree v2 ReloadUploaded byRafa Sena
- DM ModellingUploaded byAnonymous snDoGN5n
- 9Slide - Quà tặng CV.pptxUploaded byNcTung
- Mikrotik Rb750gl UgUploaded bycgrajales
- QTP Scenarion InterviewUploaded bySumiSelva
- Lenovo X60-X61 ManualUploaded bytsanltr
- COMPUTER PRESENTATION IN MINERAL PROCESSING BY SOFTWARE COMUPUTER PACKETS.pdfUploaded byaghilif
- VPN Training & Configuration_HighightedUploaded byi87san
- cecssSEM workshop2Uploaded byatri394
- Tecplot 360 Scripting GuideUploaded byDrAndrei
- Swing ArchitectureUploaded byAmerico Contreras
- Basic Javascript IntroUploaded byDonald Oseghale Okoh
- Royalty Restored by Molloy, J. Fitzgerald (Joseph Fitzgerald), 1858-1908Uploaded byGutenberg.org