chap1-2009

86
ChE328 Process Instrumentation and Control Lecturer: Dr Qin Li (204:432), Dr Tonghua Zhang (204:523) Tutors: Faye Chong, Shahin Hosseini, Hongfei Fang Online teaching: Blackboard (informational) Textbook Riggs, J B; Karim, M. Nazmul (2006) : Chemical and Bio-Process Control, 2nd Ed, Ferret Publishing, Texas, USA References: Marlin, T E (1995): Process Control – Designing Processes and Control Systems for Dynamic Performance, McGraw-Hill, Inc. NY. Seborg, D E, Edgar, T F and Mellichamp, D A (1989): Process Dynamics and Control, John Wiley and Sons, NY. Luyben, W L (1990): Process Modeling, Simulation and Control for Chemical Engineers, McGraw-Hill Pub Co, NY. The MathWorks, Inc, (1995): Matlab Version 4 User’s Guide, Student Edition, Prentice Hall.

Upload: mido-greatness

Post on 04-Mar-2015

111 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chap1-2009

ChE328 Process Instrumentation and Control

• Lecturer: Dr Qin Li (204:432), Dr Tonghua Zhang (204:523)

• Tutors: Faye Chong, Shahin Hosseini, Hongfei Fang

• Online teaching: Blackboard (informational)

• Textbook– Riggs, J B; Karim, M. Nazmul (2006) : Chemical and Bio-Process Control, 2nd Ed, Ferret Publishing,

Texas, USA

• References:– Marlin, T E (1995): Process Control – Designing Processes and Control Systems for Dynamic

Performance, McGraw-Hill, Inc. NY.– Seborg, D E, Edgar, T F and Mellichamp, D A (1989): Process Dynamics and Control, John Wiley and

Sons, NY.– Luyben, W L (1990): Process Modeling, Simulation and Control for Chemical Engineers, McGraw-Hill

Pub Co, NY.– The MathWorks, Inc, (1995): Matlab Version 4 User’s Guide, Student Edition, Prentice Hall.

Page 2: Chap1-2009

Overview of Course Material

• Control loop hardware (Chap 2)• Dynamic modeling (Chap 3)• Transfer functions and idealized dynamic

behavior (Chap 4-6)• PID controls (Chap 7-11)• Advanced PID controls (Chap 12-14)• Control of MIMO processes (Chap 15-18)

Page 3: Chap1-2009

• ChE 328 Learning Outcomes:– Understanding and modelling of the transient

behaviour of dynamic systems.– Introduction to the theory and practice of

automatic control.– Introduction to the design and implementation

of feedback control systems as well as the concept of closed-loop stability.

Page 4: Chap1-2009

• CHE 326 Process Control (Detailed Unit Outline)• Introduction (Week 1)

– Introduction to process control– Control objectives and benefits– Economic justification of process control

• Dynamic Modelling of Chemical Processes (Weeks 1, 2 and 3)– Uses of process models– Process modelling principles– Types of process models

• State-space model• Transform-domain model• Frequency-response model• Impulse-response model

– Transfer function• Transfer function development• Properties• Block diagrams

Page 5: Chap1-2009

• Dynamic Behaviour of Ideal Systems (Weeks 4 and 5)– Concepts of poles and zeros– Linear low order systems

• Pure gain systems• Pure capacity systems• First order systems• Lead/Lag systems

– Linear higher order systems• First order systems in series• Second order systems• Nth-order systems• Higher order systems with zeros

– More complex systems• Inverse response systems• Time delay systems• Multi-input multi-output processes

• Development of Dynamic Models from Experimental Data(Week 6)

– Process identification– Process reaction curve

Page 6: Chap1-2009

• Basic Components of Control Systems (Week 7)– Feedback controllers and PID control– Control system instrumentation

• Design of Single-loop Control Systems (Weeks 8 and 9)

– Dynamic behaviour of closed-loop control systems– Stability of closed-loop control systems– Controller design based on transient response criteria

• Controller Tuning Techniques (Weeks 10 and 11)• Introduction to Frequency Response Analysis (Weeks

11 and 12)– Frequency response techniques– Controller design using frequency response criteria

Page 7: Chap1-2009

Fundamental Understanding and Industrially Relevant Skills

• Fundamental Understanding-– Laplace tranforms and transfer functions (Ch 4,5)– Idealized dynamic behavior (Ch 6)– Frequency response analysis (Ch 11)

• Industrially Relevant Skills-– Control hardware and troubleshooting (Ch 2&10)– Controller Implementation and tuning (Ch 7-9)

Page 8: Chap1-2009

• Constituents– Lectures– Plant visit (TBA, middle of semester)– Computer lab projects (Control Station, week3)

• Assessment Details:– Assignments ( 3) 15%– Project (Group Work) 15%– Plant Visit 10%– Test 10% (Week 7, 2009)– Examination 50%– Pass mark is 50% in all assessments

Page 9: Chap1-2009

Chemical and Bio-Process Control

James B. Riggs, M. Nazmul Karim

Page 10: Chap1-2009

Chapter 1

Introduction

Page 11: Chap1-2009

Why do we learn Process Control as chemical engineers?

Page 12: Chap1-2009

What’s going on in a chemical process?

Mass transfer

Heat transfer

Chemical Reaction

Mass balance

Energy balance

Mole balance

Steady-state? or dynamic?

Page 13: Chap1-2009

A Career in Process Control

• Requires that engineers use all of their chemical engineering training (i.e., provides an excellent technical profession that can last an entire career)

• Can become a technical “Top Gun”• Allows engineers to work on projects that

can result in significant savings for their companies

Page 14: Chap1-2009

A Career in Process Control

• Provides professional mobility. There is a shortage of experienced process control engineers.

• Is a well paid technical profession for chemical engineers.

Page 15: Chap1-2009

Critical Skill Set for a Process Control Engineer

• Tune controllers.• Make control design decisions: PI, PID,

ratio, cascade, feedforward, or DMC.• Troubleshoot control loops.• Understand the terminology of the

profession

Page 16: Chap1-2009

Importance of Process Control for the CPI

• PC directly affects the safety and reliability of a process.

• PC determines the quality of the products produced by a process.

• PC can affect how efficient a process is operated.

• Bottom Line: PC has a major impact on the profitability of a company in the CPI.

Page 17: Chap1-2009

Safety and Reliability• The control system must provide safe

operation– Alarms, safety constraint control, start-up and

shutdown.• A control system must be able to “absorb” a

variety of disturbances and keep the process in a good operating region:– Thunderstorms, feed composition upsets,

temporary loss of utilities (e.g., steam supply), day to night variation in the ambient conditions

Page 18: Chap1-2009

Benefits of Improved Control

Time

Impu

rity

Conc

entra

tion Limit

Old Controller

Page 19: Chap1-2009

Benefits of Improved Control

Time

Impu

rity

Conc

entra

tion Limit

Time

Impu

rity

Con

cent

ratio

n Limit

Old Controller

New Controller

Page 20: Chap1-2009

Better Control Means Products with Reduced Variability

• For many cases, reduced variability products are in high demand and have high value added (e.g., feedstocks for polymers).

• Product certification procedures (e.g., ISO 9000) are used to guarantee product quality and place a large emphasis on process control.

Page 21: Chap1-2009

Benefits of Improved Control

Time

Impu

rity

Conc

entra

tion Limit

Time

Impu

rity

Con

cent

ratio

n Limit

Time

Impu

rity

Conc

entra

tion Limit

Old Controller

New Controller

Improved Performance

Page 22: Chap1-2009
Page 23: Chap1-2009

Maximizing the Profit of a Plant

• Many times involves controlling against constraints.

• The closer that you are able to operate to these constraints, the more profit you can make. For example, maximizing the product production rate usually involving controlling the process against one or more process constraints.

Page 24: Chap1-2009

Importance of Process Control for the Bio-Process Industries

• Improved product quality.• Faster and less expensive process validation.• Increased production rates.

Page 25: Chap1-2009

Justification of Process Control• Specific objectives of process control increased product throughput increased yield of higher valued products decreased raw material cost decreased energy consumption decreased chance or excessive pollution decreased off-spec product safety extend life of equipment operability decreased production labour

Page 26: Chap1-2009

What are in Process Control?

Page 27: Chap1-2009

Driving a Car: An Everyday Example of Process Control

Page 28: Chap1-2009

Driving a car• Control Objective (Setpoint): Maintain car

in proper lane.• Controlled variable- Location on the road• Manipulated variable- Orientation of the

front wheels• Actuator- Driver’s arms/steering wheel• Sensor- Driver’s eyes• Controller- Driver• Disturbance- Curve in road

Page 29: Chap1-2009

Constraint Control – The Shower Example

• Degrees of freedom - hot tap- cold tap

• ConstraintsEquipment constraints - full off

- full on

Material constraints - scalding limit (burning)- freeze limit- rinse limit- impingement limit

Page 30: Chap1-2009

• Objective functionminimum electricity costmaximum scouring effectiveness

Where is the optimum operating point?

• Control aspects

measure exit water temperature

Adjust COLD or HOT tap!!

Page 31: Chap1-2009
Page 32: Chap1-2009

Constraint Control Example

• Consider a reactor temperature control example for which at excessively high temperatures the reactor will experience a temperature runaway and explode.

• But the higher the temperature the greater the product yield.

• Therefore, better reactor temperature control allows safe operation at a higher reactor temperature and thus more profit.

Page 33: Chap1-2009

Heat Exchanger Control: ChE Control Example

TT

Condensate

Steam

Feed

TCProductStream

Page 34: Chap1-2009

Heat Exchanger Control

• Controlled variable- Outlet temperature of product stream

• Manipulated variable- Steam flow • Actuator- Control valve on steam line• Sensor- Thermocouple on product stream• Disturbance- Changes in the inlet feed

temperature

Page 35: Chap1-2009

DO Control in a Bio-Reactor

Air

AC

Variable SpeedAir Compressor

AT

Setpoint

Page 36: Chap1-2009

DO Control

• Controlled variable- the measured dissolved O2 concentration

• Manipulated variable- air flow rate to the bio-reactor

• Actuator- variable speed air compressor• Sensor- ion-specific electrode in contact

with the broth in the bio-reactor• Disturbance- Changes in the metabolism of

the microorganisms in the bio-reactor

Page 37: Chap1-2009

Logic Flow Diagram for a Feedback Control Loop

Controller Actuator Process

Sensor

CVSetpoint

Disturbance

+-uce

Page 38: Chap1-2009

Comparison of Driving a Car and Control of a Heat Exchanger

• Actuator: Driver’s arm and steering wheel vs. Control valve

• Controller: the driver vs. an electronic controller

• Sensor: the driver’s eyes vs. thermocouple• Controlled variable: car’s position on the

road vs. temperature of outlet stream

Page 39: Chap1-2009

The key feature of all feedback control loops is that the measured value of the controlled variable is compared with the setpoint and this difference is used to determine the control action taken.

Page 40: Chap1-2009

Process Control Concept and Conventions

• Responsibility of Control System– Monitor process outputs by measurement– Make decisions regarding corrective actions– Implement decisions effectively on process

• Type of Control Systems– Manual control systems (human operators)– Automatic control system (computer control)

Page 41: Chap1-2009

Standard Control System Structure

Page 42: Chap1-2009

Typical Control Loop

Page 43: Chap1-2009

Types of Feedback Controllers

• On-Off Control- e.g., room thermostat• Manual Control- Used by operators and based on

more or less open loop responses• PID control- Most commonly used controller.

Control action based on error from setpoint (Chaps 6-8).

• Advanced PID- Enhancements of PID: ratio, cascade, feedforward (Chaps 9-11).

• Model-based Control- Uses model of the process directly for control (Chap 13).

Page 44: Chap1-2009

Duties of a Control Engineer

• Tuning controllers for performance and reliability (Chap 7)

• Selecting the proper PID mode and/or advanced PID options (Chap 6, 10-12)

• Control loop troubleshooting (Chap 2)• Multi-unit controller design (Chap 14)• Documentation of process control changes

Page 45: Chap1-2009

Characteristics of Effective Process Control Engineers

• Use their knowledge of the process to guide their process control applications. They are “process” control engineers.

• Have a fundamentally sound picture of process dynamics and feedback control.

• Work effectively with the operators.

Page 46: Chap1-2009

Operator Acceptance

• A good relationship with the operators is a NECESSARY condition for the success of a control engineer.

• Build a relationship with the operators based on mutual respect.

• Operators are a valuable source of plant experience.

• A successful control project should make the operators job easier, not harder.

Page 47: Chap1-2009

Process Control and Optimization

• Control and optimization are terms that are many times erroneously interchanged.

• Control has to do with adjusting flow rates to maintain the controlled variables of the process at specified setpoints.

• Optimization chooses the values for key setpoints such that the process operates at the “best” economic conditions.

Page 48: Chap1-2009

Optimization and Control of a CSTR

Feed

Steam

Product

FT

TT

TemperatureController

Flow Setpoint

Optimizer

TemperatureSetpoint

FC

Page 49: Chap1-2009

Optimization Example

balances.molefromcalculatedareandLikewise,

]/exp[1

forSolving]/exp[

:AonbalanceMole

11

0

110

CB

r

AA

A

rAAA

CCQ

VRTEkCC

CVCRTEkCQCQ

CBA

−+

=

−−−

→→

Page 50: Chap1-2009

Economic Objective Function

AFACCBBAA VCQVCQVCQVCQ 0−++=Φ

• VB > VC, VA, or VAF

• At low T, little formation of B• At high T, too much of B reacts to form C• Therefore, there exits an optimum reactor

temperature, T*

Page 51: Chap1-2009

Optimization Algorithm

• 1. Select initial guess for reactor temperature

• 2. Evaluate CA, CB, and CC

• 3. Evaluate Φ• 4. Choose new reactor temperature and

return to 2 until T* identified.

Page 52: Chap1-2009

Graphical Solution of Optimum Reactor Temperature, T*

Page 53: Chap1-2009

Process Optimization• Typical optimization objective function, Φ: Φ = Product values-Feed costs-Utility costs

• The steady-state solution of process models is usually used to determine process operating conditions which yields flow rates of products, feed, and utilities.

• Unit costs of feed and sale price of products are combined with flows to yield Φ

• Optimization variables are adjusted until Φis maximized (optimization solution).

Page 54: Chap1-2009

Generalized Optimization Procedure

NumericalOptimization

Algorithm

ProcessModel

EconomicParameters

EconomicFunction

Evaluation

OptimizationVariables

EconomicFunction

Value

ModelResults

Initial Estimateof Optimization

Variables

OptimumOperatingConditions

Page 55: Chap1-2009

Optimization and Control of a CSTR

Feed

Steam

Product

FT

TT

TemperatureController

Flow Setpoint

Optimizer

TemperatureSetpoint

FC

Page 56: Chap1-2009

Control System Hardware Elements

Sensors (measuring devices or primary elements)– Thermocouple for temp measurements– Differential pressure cells for liquid level

measurements– Gas/liquid chromoatographs for composition

measurements– Etc

Page 57: Chap1-2009

Controllers (decision maker with built-in intelligence)– Pneumatic (operates on air signals)– Electronic (common in industry)– Digital computer (complex control operations)Transmitters (process info transfer)Final control elements (actually implement command

signals on the process)– Control valves (usually pneumatic)– Variable speed fans– Pumps and compressors– Conveyors– Relay switches

Page 58: Chap1-2009

Other hardware elements– Transducers (signal transformations)– A/D and D/A for computer control

Other control terminologiesSet-points (target value)Regulatory controlServo controlOpen-loop control (simple timing devices)Closed-loop control

Page 59: Chap1-2009
Page 60: Chap1-2009

Control System Symbols for Process and Instrumentation Diagrams

Page 61: Chap1-2009

Sample Identification Letters

Symbol First Letter Succeeding Letter A Analysis Alarm C Conductivity Control D Density E Voltage F Flowrate I Current Indicate L Level M Moisture (humidity) P Pressure or Vacuum T Temperature Transmit V Viscosity Valve

Page 62: Chap1-2009

Typical Actuator Symbols

Page 63: Chap1-2009
Page 64: Chap1-2009

Typical Sensor Symbols

Page 65: Chap1-2009
Page 66: Chap1-2009

Examples of Control Loops

Page 67: Chap1-2009
Page 68: Chap1-2009

`

Page 69: Chap1-2009

Feedback Control Loop

Page 70: Chap1-2009

Illustrative Example

Steam

TT

TC

C Product

LC

LC

LC

TT TC

Fresh BFeed

Fresh AFeed

PT

Steam

Page 71: Chap1-2009

Illustrative Example

Steam

TT

TC

C Product

LC

LC

LC

TT TC

Fresh BFeed

Fresh AFeed

PT

LS

PC

(FB)sp

×R/F

S

×

L/F

Steam

Page 72: Chap1-2009

Overview• All feedback control loops have a

controller, an actuator, a process, and a sensor where the controller chooses control action based upon the error from setpoint.

• Control has to do with adjusting flow rates to maintain controlled variables at their setpoints while for optimization the setpoints for certain controllers are adjusted to optimize the economic performance of the plant.

Page 73: Chap1-2009

Pneumatic Controllers - Phase I

• Introduced in the 1920’s• Installed in the field next to the valve• Use bellows, baffles, and nozzles with an

air supply to implement PID action.• Provided automatic control and replaced

manual control for many loops

Page 74: Chap1-2009

Pneumatic Controllers - Phase II

• Transmitter-type pneumatic controllers began to replace field mounted controllers in the late 1930’s.

• Controllers located in control room with pneumatic transmission from sensors to control room and back to the valve.

• Allowed operators to address a number of controllers from a centralized control room.

Page 75: Chap1-2009

Pneumatic Controller Installation

T

F2

T2

Thermocouplemillivolt signal

TransmitterPneumaticController

3-15 psig

Tsp

Air

F1

T1

Thermowell

3-15 psig Air

Page 76: Chap1-2009

Electronic Analog Controllers

• Became available in the late 1950’s.• Replaced the pneumatic tubing with wires.• Used resistors, capacitors, etc. to implement

PID action.• Out sold pneumatic by 1970.• Allowed for advanced PID control: ratio,

feedforward, etc.

Page 77: Chap1-2009

Analog Controller Installation

T

F2

T2

Thermocouplemillivolt signal

Transmitter4-20 maElectronic

AnalogController

3-15 psig

4-20 ma

Tsp

I/PAir

F1

T1

Thermowell

Page 78: Chap1-2009

Computer Control System

• Based upon a mainframe digital computer.• Offered the ability to use data storage and

retrieval, alarm functions, and process optimization.

• First installed on a refinery in 1959.• Had reliability limitations.

Page 79: Chap1-2009

Supervisory Control Computer

PrinterVideo DisplayUnit

InterfacingHardware

AnalogControl

Subsytem

AlarmingFunctions

Supervisory Control Computer

Data StorageAcquisition

System

...

Page 80: Chap1-2009

Distributed Control System- DCS

• Introduced in the late 1970’s.• Based upon redundant microprocessors for

performing control functions for a part of the plant. SUPERIOR RELIABILITY

• Less expensive per loop for large plants.• Less expensive to expand.• Facilitates use of advanced control.

Page 81: Chap1-2009

DCS Architecture

Process Transmitters and Actuators

Data Highway(Shared Communication Facilities)

LocalConsole

LocalControl

Unit..............

DataStorage

Unit

HostComputer

SystemConsoles PLC

LocalControl

Unit

LocalConsole

Page 82: Chap1-2009

Current Approach

• DCS’s in wide use and continuing to replace analog controllers.

• Model predictive control, particularly DMC, is the standard for advanced control with over 3000 applications world-wide.

• DMC is used to control multi-unit processes while maximizing the process throughput, i.e., controlling against limiting constraints.

Page 83: Chap1-2009

DMC

• DMC is a multivariable controller.• DMC uses step response models, i.e., it can

model complex dynamics.• It is a time horizon controller, i.e., it

predicts process behavior in to the future.

Page 84: Chap1-2009

Multivariable Controller

y1(s)

y2(s)u2

u1 G11(s)++

G21(s)

G12(s)

G22(s)

++

MultivariableControllery2,sp

y1,sp

Page 85: Chap1-2009

Time Horizon Controller

-10 -5 0 5 10Time

y

Past Behavior

Future Prediction

Setpoint

-10 -5 0 5 10Time

u

Past Inputs

Future Inputs

Page 86: Chap1-2009

Process Optimisation

• Determine the set of setpoints for the controllers that maximise profit

• Optimisation is now where process control was 20 years ago

• Larger applications (e.g., refinery-wide optimisation) are on the horizon

• Enterprise-wide optimisation is in the future.