Dynamics and PID control. Process dynamics

Similar documents
Control Lab. Thermal Plant. Chriss Grimholt

Advanced control If single-loop feedback control (PID) alone is not good enough

Input-output Controllability Analysis

Process Control Exercise 2

Lynkurs Prosessregulering (Crash course process control) Sigurd Skogestad Institutt for kjemisk prosessteknologi Rom K4-211

Chapter 8. Feedback Controllers. Figure 8.1 Schematic diagram for a stirred-tank blending system.

Feedback Control of Linear SISO systems. Process Dynamics and Control

Enhanced Single-Loop Control Strategies Chapter 16

Open Loop Tuning Rules

Lecture 5 Classical Control Overview III. Dr. Radhakant Padhi Asst. Professor Dept. of Aerospace Engineering Indian Institute of Science - Bangalore

Chapter 5 The SIMC Method for Smooth PID Controller Tuning

(Refer Slide Time: 1:42)

Index. INDEX_p /15/02 3:08 PM Page 765

Subject: Introduction to Process Control. Week 01, Lectures 01 02, Spring Content

Analyzing Control Problems and Improving Control Loop Performance

CHAPTER 19: Single-Loop IMC Control

CHBE320 LECTURE XI CONTROLLER DESIGN AND PID CONTOLLER TUNING. Professor Dae Ryook Yang

Process Control & Design

Feedback Basics. David M. Auslander Mechanical Engineering University of California at Berkeley. copyright 1998, D.M. Auslander

Solutions for Tutorial 10 Stability Analysis

Analysis and Design of Control Systems in the Time Domain

CHAPTER 10: STABILITY &TUNING

CM 3310 Process Control, Spring Lecture 21

Chapter 7 Control. Part Classical Control. Mobile Robotics - Prof Alonzo Kelly, CMU RI

Multi-Input Multi-output (MIMO) Processes CBE495 LECTURE III CONTROL OF MULTI INPUT MULTI OUTPUT PROCESSES. Professor Dae Ryook Yang

Laboratory Exercise 1 DC servo

CHAPTER 13: FEEDBACK PERFORMANCE

Design of Decentralised PI Controller using Model Reference Adaptive Control for Quadruple Tank Process

Lab 3: Quanser Hardware and Proportional Control

K c < K u K c = K u K c > K u step 4 Calculate and implement PID parameters using the the Ziegler-Nichols tuning tables: 30

Feedback: Still the simplest and best solution

Process Control, 3P4 Assignment 6

Fundamental Principles of Process Control

Feedforward Control Feedforward Compensation

YTÜ Mechanical Engineering Department

DC-motor PID control

Improved PI control for a surge tank satisfying level constraints

Improved cascade control structure for enhanced performance

Reglerteknik, TNG028. Lecture 1. Anna Lombardi

Iterative Controller Tuning Using Bode s Integrals

Improved Identification and Control of 2-by-2 MIMO System using Relay Feedback

CONTROL OF MULTIVARIABLE PROCESSES

Design and Comparative Analysis of Controller for Non Linear Tank System

Enhanced Single-Loop Control Strategies (Advanced Control) Cascade Control Time-Delay Compensation Inferential Control Selective and Override Control

Control Introduction. Gustaf Olsson IEA Lund University.

Department of Electrical and Computer Engineering. EE461: Digital Control - Lab Manual

YTÜ Mechanical Engineering Department

Control 2. Proportional and Integral control

Process Control, 3P4 Assignment 5

Time scale separation and the link between open-loop and closed-loop dynamics

Multi-Loop Control. Department of Chemical Engineering,

Solution to exam in PEF3006 Process Control at Telemark University College

Index Accumulation, 53 Accuracy: numerical integration, sensor, 383, Adaptive tuning: expert system, 528 gain scheduling, 518, 529, 709,

PROCESS CONTROL (IT62) SEMESTER: VI BRANCH: INSTRUMENTATION TECHNOLOGY

Determining Controller Constants to Satisfy Performance Specifications

PROCESS DESIGN AND CONTROL Offset-Free Tracking of Model Predictive Control with Model Mismatch: Experimental Results

Experiment # 5 5. Coupled Water Tanks

A Simple PID Control Design for Systems with Time Delay

Cascade Control of a Continuous Stirred Tank Reactor (CSTR)

B1-1. Closed-loop control. Chapter 1. Fundamentals of closed-loop control technology. Festo Didactic Process Control System

Survey of Methods of Combining Velocity Profiles with Position control

NonlinearControlofpHSystemforChangeOverTitrationCurve

2.004 Dynamics and Control II Spring 2008

Should we forget the Smith Predictor?

Automatic Control 2. Loop shaping. Prof. Alberto Bemporad. University of Trento. Academic year

General approach separation

Linear State Feedback Controller Design

Acknowledgements. Control System. Tracking. CS122A: Embedded System Design 4/24/2007. A Simple Introduction to Embedded Control Systems (PID Control)

Multivariable Control Laboratory experiment 2 The Quadruple Tank 1

7.2 Controller tuning from specified characteristic polynomial

ECE 5670/ Lab 3. PID Control of a Brush DC Motor. Objectives

CHAPTER 3 TUNING METHODS OF CONTROLLER

Control Systems II. ETH, MAVT, IDSC, Lecture 4 17/03/2017. G. Ducard

Control Of Heat Exchanger Using Internal Model Controller

Appendix A MoReRT Controllers Design Demo Software

Optimal Temperature Control of Rooms

MS-E2133 Systems Analysis Laboratory II Assignment 2 Control of thermal power plant

BITS-Pilani Dubai, International Academic City, Dubai Second Semester. Academic Year

1 Loop Control. 1.1 Open-loop. ISS0065 Control Instrumentation

Dr Ian R. Manchester

Application Note #3413

Process Control J.P. CORRIOU. Reaction and Process Engineering Laboratory University of Lorraine-CNRS, Nancy (France) Zhejiang University 2016

MEAM 510 Fall 2012 Bruce D. Kothmann

EE 422G - Signals and Systems Laboratory

PERFORMANCE ANALYSIS OF TWO-DEGREE-OF-FREEDOM CONTROLLER AND MODEL PREDICTIVE CONTROLLER FOR THREE TANK INTERACTING SYSTEM

Model-based PID tuning for high-order processes: when to approximate

MULTILOOP PI CONTROLLER FOR ACHIEVING SIMULTANEOUS TIME AND FREQUENCY DOMAIN SPECIFICATIONS

Integrator Windup

A unified double-loop multi-scale control strategy for NMP integrating-unstable systems

Transient Stability Analysis with PowerWorld Simulator

Single-Input-Single-Output Systems

3.1 Overview 3.2 Process and control-loop interactions

CHAPTER 15: FEEDFORWARD CONTROL

MAS107 Control Theory Exam Solutions 2008

Design and Implementation of Two-Degree-of-Freedom Nonlinear PID Controller for a Nonlinear Process

Control Systems I. Lecture 2: Modeling. Suggested Readings: Åström & Murray Ch. 2-3, Guzzella Ch Emilio Frazzoli

Task 1 (24%): PID-control, the SIMC method

PID controllers. Laith Batarseh. PID controllers

Experiment 81 - Design of a Feedback Control System

DECENTRALIZED PI CONTROLLER DESIGN FOR NON LINEAR MULTIVARIABLE SYSTEMS BASED ON IDEAL DECOUPLER

Transcription:

Dynamics and PID control Sigurd Skogestad Process dynamics Things take time Step response (response of output y to step in input u): k = Δy( )/ Δu process gain - process time constant (63%) - process time delay u input Process y Time constant : Often equal to residence time = V[m3]/q[m3/s] (but not always!) Dynamic model: Can find (and k) from balance equations: Rearrange to match standard form of 1st order linear differential equation: 1

Example dynamic model: Concentration change in mixing tank Assume constant V [m 3 ] Assume constant density ρ [kg/m 3 ] Assume, c (in tank) = c (outflow) [mol A/m 3 ] Assume no reaction Mass balance inflow q F [m 3 /s] c F Inventory c V Component balance Inflow ρq F [kg/s] c F q F [mol A /s] Outflow ρq [kg/s] c q [mol A/s] outflow q [m 3 /s] c Balances: Mass Component: Inventory ( state variable ) ρv [kg] c V [mol A] Response of linear first-order system Δy(t= ) = kδu Remember for first order response: 1.Starts increasing immediately (would reach new steady state after time if it kept going) 2.Reaches 63% of change after time. 3.Approaches new steady state exponentially (has for practical purposes reached new steady state after about 4 ) 2

Control systems elements: Feedback control Valve Hot water [bar / psi/ Ampere] Thermocouple T Signal [mv] Card in computer A/D (convert analog to digital signal) Measument signal [bits] Computer (controller algorithm) Setpoint, etc. Motor/ Amplifier/ Relay Signal [mv] D/A (convert digital to analog signal) Card in computer Input signal [bits] Block diagram Process e y m Block diagram of negative feedback control C = Feedback Controller =? 3

Feedback controller Measurement y m Setpoint y s Controller Algorithm: u = f(y s -y m ) Input (MV) u Simplest controller algorithm: On/off controller. Problem: cycles y=t u=q (heat) Industry: Standard algorithm for SISO controllers: PID Industry: Standard for multivariable control: MPC (model predictive control) Mechanical thermostat = On/Off-control (cycles) Electronic controller (thermostat) = P-control (should give small offset) 4

PID controller Proportional control (P) Input change (u-u 0 ) is proportional to control error e. K c = proportional gain (tuning parameter) u 0 : = «bias» Problems proportional control: 1. Get steady-state offset (especially if K c is small) 2. Oscillates if K c is too large (can get instability) k: process gain K c : controller gain P-control of typical process y y s (setpoint) K c =8/k K c =4/k K c =2/k K c =1/k 20% 50% offset O set (%) = 1 1+ K c k 100% Initially at steady-state (y=y s =0). Change setpoint to y s =1 at t=1. Not sure what process it is; a bit similar to theta=0.25,tau=1 5

Fix: Add Integral action (I) Get PI-control: I = integral time (tuning parameter) e = y s y (control error) Note 1: Integral term will keep changing until e=0 ) No steady-state offset Note 2: Small integral time gives more effect! (so set I = 99999 (large!) to turn off integral action) Note 3: Integral action is also called «reset action» since it «resets» the bias. «Update bias u 0 at every Δt»: Add also derivative action (D): Get PID controller P:Normal I: Patient D: Impatient P-part: MV (Δu) proportional to error This is usually the main part of the controller! I-part: Add contribution proportional to integrated error. Integral keeps changing as long as e 0 -> Will eventually make e=0 (no steady-state offset!) Possible D-part: Add contribution proportional to change in (derivative of) error Can improve control for high-order (S-shaped response) and unstable processes, but sensitive to measurement noise 6

Many alternative PID parameterizations Also other: Proportional band = 100/K c Reset rate = 1/ I Etc.. NOTE: Always check the manual for your controller! Digital implementation (practical in computer) of PID controller Ikke pensum sep.tek 7

PID controller tuning Want the system to be (TRADE-OFF!) 1. Fast intitially (K c large, D large) 2. Fast approach to steady state ( I small) 3. Robust / stable (OPPOSITE: K c small, I large) 4. Smooth use of inputs (OPPOSITE: K c small, D small) Tuning of your PID controller I. Trial & error approach (online) (a) P-part: Increase controller gain (K c ) until the process starts oscillating or the input saturates (b) Decrease the gain (~ factor 2) (c) I-part: Reduce the integral time ( I ) until the process starts oscillating (d) Increase a bit (~ factor 2) (e) Possible D-part: Increase D and see if there is any improvement Very common approach, BUT: Time consuming and does not give good tunings: NOT recommended 8

II. Model-based tuning (SIMC rule) From step response obtain k = Δy( )/ Δu process gain - process time constant (63%) - process time delay k = Δy( )/ Δu Proposed SIMC controller tunings 9

Example SIMC rule From step response k = Δy( )/ Δu = 10C / 1 kw = 10 = 0.4 min (time constant) = 0.3 min (delay) Proposed controller tunings Simulation PID control Setpoint change at t=0 and disturbance at t=5 min 1. Well tuned (SIMC): Kc=0.07, taui=0.4min 2. Too long integral time (Kc=0.07, taui=1 min) : settles slowly 3. Too large gain (Kc=0.15, taui=0.4 min) oscillates 4. Too small integral time (Kc=0.07, taui=0.2 min) oscillates 5. Even more aggressive (Kc=0.12, taui=0.2 min) unstable (not shown on figure) Output (y) setpoint 3 4 1 2 1 3 4 2 Time [min] 10

Comments tuning 1. Delay (θ) is feedback control s worst enemy! Try to reduce it, if possible. Rule: Pair close! 2. Common mistake: Wrong sign of controller! Controller gain (K c ) should be such that controller counteracts changes in output Need negative sign around the loop ( negative feedback ) Two ways of achieving this: (Most control courses:) Use a negative sign in the feedback loop. Then controller gain (K c ) should always have same sign as process gain (k) (Many real control systems:) Always use K c positive and select between Reverse acting when process gain (k) is positive because MV (u) should go down when CV (y) goes up Direct acting when k is negative WARNING: Be careful and read manual! Some reverse these definitions (wikipedia used to do it, but I corrected it) Oct. 2009: http://en.wikipedia.org/wiki/controller_(control_theory) 3. Integrating («slow») process: If the response is not settling after approximately 10 times the delay (so /µ is large), then you can stop the experiment and approximate the response as an integrating process (with only two parameters, k and µ): Δy Δt 11

Example: Similar to shower process Looong pipe µ=100s =20s u = Q y = T d = T F Simulink model: tunepid1_ex1 Note: level control not explicitly included in simulation (assume constant level) Disturbance response with no control d = T F Looong pipe µ=100s u = Q =20s y = T u = Q y = T d = T F Kc=0; taui=9999; % no control %start simulation (press green button) plot(time,u,time,t,time,tf), axis([0 800-1.5 1.5]) 12

P-control u = Q y = T d = T F Offset Kc=0.5; taui=9999; % P-control %start simulation (press green button) plot(time,u,time,t,time,tf), axis([0 800-1.5 1.5]) TC T s SIMC PI control u = Q y = T d = T F No offset Kc=0.1; taui=20; % SIMC PI-control %start simulation (press green button) plot(time,u,time,t,time,tf), axis([0 800-1.5 1.5]) TC T s 13

d = T F y = T u = Q Recommend: c =delay µ=100s because it is more robust and gives no overshoot in u Measure also T 0 : Cascade control is much better d = T F Slave controller (inner loop) u = Q T 0s TC T 0 TC y = T Master controller (outer loop) T s Inner loop (T0): tauc=10 Outer loop (T): tauc=105 Kc2=0.1;taui2=1; % inner loop with tauc2=10 Kc=0.119; taui=25; % outer loop with tauc=105 sim('tunepid1_ex1_cascade') %start simulation plot(time,u,time,t,time,tf,time,t0), axis([0 800-1.5 1.5]) 14

This is the «Whistler» The experimental setup K5, 11 Nov. 2016 y=t [C] (at top) u=q [0-1] (at bottom) First we did a step response experiment where u was increased from 0 to 1 (manual vontrol). The temperature y=t increased from 20C to 54C (new steady state). This gives k=68. The dynamics are quite slow because it takes time to heat up the glass., θ=5s, τ =120s From this we obtained the model parameters and SIMC tunings (with τ c =θ=5s) We then put it into automatic andf increased the setpoint to 70C. The input (u=q) increased immediately to max=1, and we should then have stopped the integration («anit windup») but we had forgotten to do this and this is why you can see that u=q stayed at max=1 even after y=t has oassed the setpoint. Not so good but eventually we see that itr was working well. This can be confirmed by Ida who was the ONLY student who stayed behind to check how things went. Thanks, Ida! y=t u=q Thanks to Tamal Das Thanks to Ida The model. Step response: k=68, θ=5s, τ =120s The controller. SIMC (with τ c =θ=5s): K c =0.2, τ I =40s 15

The closed-loop response Ja, reguleringen virket etter hvert! - noe Ida kan bekrefte y=t y s =T s =70C max=1 u=q (The input is a bit noisy because of a noisy temperature measurement, but it works!) min=0 Time (s) 16