eeb5213 / eab4233 plant process control systems digital implementation of pid controller

24
EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Upload: geraldine-dorsey

Post on 17-Jan-2016

218 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

EEB5213 / EAB4233 Plant Process Control Systems

Digital Implementation of PID Controller

Page 2: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Objectives

At the end of this lecture, students should be able to: identify digital application in process control

computation and signal transmission program PID algorithm in digital controllers select a proper execution rate for a digital PID

controller

Page 3: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Feedback Control

Digital controlcalculation

D/A andhold

Sampleand A/D

4 - 20 mA

Process

Digitalvalue

Digitalvalue

mV

Thermocouplein thermowell

4 - 20 mA

Compressed air

3 - 15 psi

TTI/P

Page 4: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Control Digital control employs a distributed control network

(DCS).

D/A D/A

Page 5: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Benefits of Distributed ControlFeature Effect on process control

Calculations performed in parallel by multiple processors.

Calculations are performed faster.

Limited number of controller calculations performed by a single processor.

Control system is more reliable since a processor failure affects only few control loops.

Control calculations and interfacing to process are independent of other devices connected to LAN.

Control is more reliable since failure of other devices does not immediately affect a control processor.

Small amount of equipment required for the minimum system.

Only the equipment required must be purchased and the system can be easily expanded.

Each type of processor can have different hardware and software.

Hardware and software can be tailored to specific applications like control, monitoring, operator console and general data processing.

Page 6: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Control

The techniques presented will be applicable for digital sampling and control calculation. Transmission can be either digital or electronic.

Periodically, the measurement is sampled and a calculation is performed.

Page 7: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Control - Sampling

Page 8: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Control - Sampling

Page 9: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Control - Sampling The last sampled value is kept constant between

control executions by using zero-order hold.

Page 10: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Control - Sampling The red line is the continuous approximation of the

signal after the sample & hold. This shows that the effect is to introduce a “dead time” of about t/2.

Page 11: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Control Performance What is the effect of digital execution of the PID

controller on tuning and performance ?

Page 12: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Control Performance

Page 13: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Control TuningGuideline for selecting execution time To prevent degradation of control loop performance,

select a controller execution time / sampling period of

Note: Typical sampling period for chemical process control is 1/3 – ½ sec. Much faster is possible, if needed.

)(05.0 t

Page 14: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Control Tuning Steps to tune a PID digital controller using open-loop

tuning methods:

1. Obtain process model.

2. Determine the sampling period or maximum execution period, t 0.05( +).

3. Recalculate new dead time, ’ = + t/2.

4. Applying the new dead time, ’, calculate PID tuning constants using any of the open-loop tuning methods used for analog PID controller.

5. Implement and fine-tune as needed.

Page 15: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Control Tuning

Let’s apply this guideline for the three-tank mixer with a long sampling period = 15 min.

Page 16: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Control Tuning

The performance is about as good as possible with the very long sampling time ! Would you fine-tune further ?

Tuning from chart

KC = 26

TI = 13

TD = 0.8

IAE increased from 12.2 to 20+

Page 17: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Discrete PID Controller

The measured CV is sampled, giving values of CV1, CV2, CV3,........,CVN.

How would we estimate each mode of the PID controller in discrete equations ?

Idt

tdCVTdttE

TtEKtMV

t

D

I

C

0

)(')'(

1)()(

Proportional

Integral

Derivative

? ? ?

Page 18: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Discrete PID Controller

The measured CV is sampled, giving values of CV1, CV2, CV3,........,CVN.

Idt

tdCVTdttE

TtEKtMV

t

D

I

C

0

)(')'(

1)()(

Proportional

Integral

NCalproportionN

NNN

EKMV

CVSPE

)(

N

ii

I

CintegralN E

T

tKMV

1

)(

Page 19: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Discrete PID Controller

The measured CV is sampled, giving values of CV1, CV2, CV3,........,CVN.

Idt

tdCVTdttE

TtEKtMV

t

D

I

C

0

)(')'(

1)()(

Derivative

t

CVCVTKMV NNDCderivativeN

)(

)( 1

Page 20: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Discrete PID Controller – Bumpless Transfer

Bumpless transfer: No change to the MV when controller first executed

Idt

tdCVTdttE

TtEKtMV

t

D

I

C

0

)(')'(

1)()(

Initialization / Bias

t

CVCVTEKMVI dc

)( 0111

Page 21: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Types of Discrete PID Algorithm

Positional form or full-position algorithm of digital PID calculates the actual controller output to the final element at each execution.

ICVCVT

TE

T

tEKMV NN

dN

ii

I

NCN

)( 1

1

Page 22: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Types of Discrete PID Algorithm

Velocity form of digital PID calculates the change in the controller output at every execution.

NNN

NNNd

N

I

NNCN

MVMVMV

CVCVCVT

TE

T

tEEKMV

1

211 )2(

Page 23: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

Digital Control If the PID controller performs no better in its digital

form, why did we spend decades in engineering time and billions of dollars converting the world’s process control to digital?

Complex controllers - Improved performance can be achieved with algorithms that optimize the path to the set point, every controller execution!

Process monitoring – We have digital history of measurements for:a) Troubleshootingb) Calculation of process performance indicators eg. reactor yield, energy efficiency per kg of product etc.c) Excellent graphical display

Page 24: EEB5213 / EAB4233 Plant Process Control Systems Digital Implementation of PID Controller

What Next ?

Next Lecture : Practical Implementation Issues for PID Controller (Marlin, Chapter 12)