Lecture 7: PID Tuning.

Slides:



Advertisements
Similar presentations
Chapter 9 PID Tuning Methods.
Advertisements

13. Controller Tuning and Troubleshooting
Tuning PID Controller Institute of Industrial Control,
10.1 Introduction Chapter 10 PID Controls
CHE 185 – PROCESS CONTROL AND DYNAMICS
Modern Control Systems (MCS)
Copyright © Thomas Marlin 2013
INDUSTRIAL AUTOMATION (Getting Started week -1). Contents PID Controller. Implementation of PID Controller. Response under actuator Saturation. PID with.
Discrete Controller Design
Dynamic Behavior of Closed-Loop Control Systems
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 6. Empirical Model Identification Copyright © Thomas Marlin 2013.
Feedback Control Systems Dr. Basil Hamed Electrical & Computer Engineering Islamic University of Gaza.
Ratio Control Chapter 15.
Nyquist Stability Criterion
Lecture 8B Frequency Response
ChE / MET Mar Mar 07 2 Apr Mar 09.
Chapter 8 Root Locus <<<4.1>>>
CHE 185 – PROCESS CONTROL AND DYNAMICS
CHE 185 – PROCESS CONTROL AND DYNAMICS PID CONTROL APPLIED TO MIMO PROCESSES.
Control System Design Based on Frequency Response Analysis
Transient and steady state response (cont.)
Process Control Instrumentation II
Lecture 9: Compensator Design in Frequency Domain.
بسم الله الرحمن الرحيم PID Controllers
Proportional/Integral/Derivative Control
Lecture 5: PID Control.
Automatic Control Theory-
Control Loop Interaction
University of Virginia Proportional Control Spring 2015 Jack Stankovic University of Virginia.
Book Adaptive control -astrom and witten mark
Cascade and Ratio Control
DYNAMIC BEHAVIOR AND STABILITY OF CLOSED-LOOP CONTROL SYSTEMS
Alternative form with detuning factor F
Controller Design (to determine controller settings for P, PI or PID controllers) Based on Transient Response Criteria Chapter 12.
Chapter 14 Frequency Response Force dynamic process with A sin  t, Chapter
PID Controller Design and
Lecture 5: Basic Dynamical Systems CS 344R: Robotics Benjamin Kuipers.
o Problem Reconsider Problem
بسم الله الرحمن الرحيم Advanced Control Lecture three Mohammad Ali Fanaei Dept. of Chemical Engineering Ferdowsi University of Mashhad Reference: C. C.
Chapter 7 Adjusting Controller Parameters Professor Shi-Shang Jang Chemical Engineering Department National Tsing-Hua University Hsin Chu, Taiwan.
SELF TUNING OF CONTROLLERS What is a Controller Controller is an active element or device that receives the information from the measurements and takes.
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 10. Stability and Tuning Copyright © Thomas Marlin 2013 The copyright.
Chapter 6 Analysis of Feedback Control Systems Prof. Shi-Shang Jang Chemical Engineering Department National Tsing-Hua University Hsin Chu, Taiwan June,
Lec 9. Root Locus Analysis I From last lecture, the locations of the closed loop poles have important implication in –Stability –Transient behavior –Steady.
Subsea Control and Communications Systems
Frequency Response Analysis and Stability
Chapter 4 A First Analysis of Feedback Feedback Control A Feedback Control seeks to bring the measured quantity to its desired value or set-point (also.
ChE 182 Chemical Process Dynamics and Control
System Time Response Characteristics
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;
Stability Analysis . A system is BIBO stable if all poles or roots of
Automatic Control Theory School of Automation NWPU Teaching Group of Automatic Control Theory.
Lecture 9: PID Controller.
SKEE 3143 Control Systems Design Chapter 2 – PID Controllers Design
1 CBE 491 / Oct 12 Deadtime in a Process. 2 Dead Time in a Process Show how dead time might show up How it affects block diagrams How it affects.
ABE425 Engineering Measurement Systems ABE425 Engineering Measurement Systems PID Control Dr. Tony E. Grift Dept. of Agricultural & Biological Engineering.
Process Control. Feedback control y sp = set point (target value) y = measured value The process information (y) is fed back to the controller The objective.
EEN-E1040 Measurement and Control of Energy Systems Control I: Control, processes, PID controllers and PID tuning Nov 3rd 2016 If not marked otherwise,
Salman Bin Abdulaziz University
Introduction to PID control
Tuning of PID controllers
Basic Design of PID Controller
Tuning of PID controllers
Unit 3-Tuning of Controllers
بسم الله الرحمن الرحيم PID Controllers
Nyquist Stability Criterion
7. Stability [Ref:Rao] 7.1 System stability
Dynamical Systems Basics
PID Controller Design and
UNIVERSITÀ DEGLI STUDI DI SALERNO
Presentation transcript:

Lecture 7: PID Tuning

Objectives Describe and use the two methods of Ziegler-Nichols to tune PID controllers. Use the process reaction curve (step response) to fit a FOPDT model to the system. List some guidelines to design and implement a good step experiment.

PID TUNING How do we apply the same equation to many processes? How to achieve the dynamic performance that we desire? TUNING!!! The adjustable parameters are called tuning constants. We can match the values to the process to affect the dynamic performance

PID TUNING Is there Trial 1: unstable, lost $25,000 an easier way than 20 40 60 80 100 120 -40 -20 S-LOOP plots deviation variables (IAE = 608.1005) Time Controlled Variable -100 -50 50 Manipulated Variable Is there an easier way than trial & error? Trial 2: too slow, lost $3,000 20 40 60 80 100 120 0.2 0.4 0.6 0.8 1 S-LOOP plots deviation variables (IAE = 23.0904) Time Controlled Variable Manipulated Variable 20 40 60 80 100 120 0.5 1 1.5 S-LOOP plots deviation variables (IAE = 9.7189) Time Controlled Variable Manipulated Variable Trial n: OK, finally, but took way too long!!

Ziegler Nichols’ First method When to use the first method? The first method is applicable for processes whose “process reaction curve” (open-loop step response) is “S-shaped”. DYNAMIC SIMULATION Time 5 10 15 20 25 30 35 40 45 50 -0.5 0.5 1 1.5 Controlled Variable 0.2 0.4 0.6 0.8 Manipulated Variable S-shaped

EMPIRICAL MODEL BUILDING PROCEDURE Process reaction curve - The simplest and most often used method. Gives nice visual interpretation as well. 1. Start at steady state 2. Single step to input 3. Collect data until steady state 4. Perform calculations T

Ziegler Nichols’ First method How to use the first method? Apply a step input to the process (open-loop). Record the process reaction curve. Fit a FOPDT model to the “process reaction curve”.

Ziegler Nichols tuning rules With the aid of the following table find the controller parameter corresponding to the FOPDT model obtained.

How to fit a FOPDT model to the process reaction curve?

EMPIRICAL MODEL BUILDING PROCEDURE Process reaction curve - Method I S = maximum slope  L  Data is plotted in deviation variables

EMPIRICAL MODEL BUILDING PROCEDURE Process reaction curve - Method II 0.63  0.28  t28% t63% Data is plotted in deviation variables

EMPIRICAL MODEL BUILDING PROCEDURE Process reaction curve - Methods I and II The same experiment in either method! Recommended Method I Prone to errors because of evaluation of maximum slope Method II Simple calculations

Notes on experiment design

EMPIRICAL MODEL BUILDING PROCEDURE Process reaction curve Input should be close to a perfect step; this was basis of equations. If not, cannot use data for process reaction curve. Is this a well designed experiment?

EMPIRICAL MODEL BUILDING PROCEDURE Process reaction curve The output must be “moved” enough. Rule of thumb: Signal/noise > 5 Should we use this data?

EMPIRICAL MODEL BUILDING PROCEDURE Process reaction curve Plot measured vs predicted measured predicted

Example Let us apply ZN first method to the following process Approximate the process with a FOPDT model using the two-points method. Find the PID controller parameters recommended by ZN’s first method.

Answer The step response of the given process is given by Using partial fractions Hence the time domain step response is given by Which has a steady state value of 0.5. Therefore, we need to find the time at which the response becomes approximately 0.14 and 0.31 (28% and 63%, respectively)

Answer, continued We can write the following equations: Which can be rewritten as (where we defined A = e-t1 and B = e-t2 ) These are simple quadratic equations which can be solved to give

Answer, continued Applying a step input and recording the process reaction curve gives: t28% = 0.75 sec, t63% = 1.58 sec.

Answer, continued The FOPDT parameters are then: Then, the controller parameters are obtained as

Ziegler Nichols’ 2nd method (Ultimate-Cycle Method) While the first Ziegler-Nichols method is used in open-loop configuration, the second method is used in closed-loop. When to use the 2nd method? If the process is open loop unstable, or, If it is stable but does not give S-shaped step response.

Procedure of ZN 2nd method Put the process under closed-loop control (Use only a proportional controller). Create a small disturbance in the loop by changing the set point. Adjust the proportional gain, increasing and/or decreasing, until the oscillations have constant amplitude. Record the gain value (Kcu) and period of oscillation (Tu). Use the table to find the controller parameters.

The sustained oscillation

Example Let us apply ZN’s 2nd method to the following process Find the ultimate gain and period. Find the PID controller parameters recommended by ZN’s second method. Then use MATLAB to plot the step set-point and disturbance responses of the closed loop system using the designed PID controller.

Answer Using proportional controller Kc, the characteristic equation of the closed-loop system is Writing the Routh array: The system is stable if Kc < 1. So, the ultimate gain Kcu =1.

Answer, continued When Kc = 1, Routh array becomes The third row is zero. So, the auxiliary equation obtained from the second row is

The sustained oscillation

Using the ZN 2nd method, the PID controller parameters are calculated as:

Another method to find the ultimate gain, Kcu Using the root locus method syms s s=tf('s'); G=1/(s*(2*s+1)^2); rlocus(G)

The open loop response:

The closed-loop set-point step response

The closed-loop disturbance step response

MALAB code for this example close all % Simulate t=0:0.01:70; s=tf('s'); G = 1/(s*(2*s+1)^2); figure(1) step(G,t) % The FOPDT parameters Ku = 1; Pu = 12.54; % The PID parameters using ZN first method Kc = 0.6*Ku; tauI = 0.5*Pu; tauD = 0.125*Pu; KI=Kc/tauI; KD=Kc*tauD; Gc = pid(Kc,KI,KD,0.01); % Set point step response cloop = Gc*G/(1+Gc*G); figure(2) step(cloop,t) % Disturbance step response cloop_dist = G/(1+Gc*G); figure(3) step(cloop_dist,t) MALAB code for this example

Comments on ZN tuning rules It is realized that the responses are oscillatory. Generally, Ziegler-Nichols tuning is not the best tuning method. However, these two guys were real pioneers in the field! It has taken 50 years to surpass their guidelines.