• No se han encontrado resultados

Feedback and Temperature Control

N/A
N/A
Protected

Academic year: 2018

Share "Feedback and Temperature Control"

Copied!
111
0
0

Texto completo

(1)

Feedback and Temperature Control

School of Physics

Home Admissions Research Teaching Handbook Search

Feedback and Temperature Control

by

Charles D.H. Williams

Contents

● Preface

● Introduction

● System Model

● Types of Feedback Control

❍ On-Off Control

❍ Proportional+Derivative Control

❍ Proportional+Integral+Derivative Control

❍ Proportional+Integral Control

❍ Third-Order Systems

● Practical Matters

❍ Varieties of PID Algorithms

❍ Control Theory

❍ Noise and the Frequency Domain

● Tuning a PID Temperature Controller

● Controller Circuit (and Self-Test Questions)

❍ Answers to Self-Test Questions)

● Problems and Exercises

❍ Hints

● Oven Controller Simulation

❍ Quick Reference Guide to Parameters

❍ Technical Details of the Simulation

Preface

This is an introduction to the effects that feedback can have on systems. I have chosen an oven controlled by a PID temperature controller to use as a case study but the behaviour described is

(2)

Feedback and Temperature Control

characteristic of many systems that employ feedback. There is a detailed interactive simulation of the oven-controller system for you to experiment with. I'm interested in any comments - good or bad - about this document. In particular, do you find the hypertext and simulation a significant improvement on traditional textbook or lecture presentation? Also, please let me know if you spot errors or

omissions, I'd like to fix them.

Introduction

It is important to have an intuitive feel for the ways that feedback can affect a system if you want to design analogue electronic circuits that work well. This document is designed to help you develop such intuition by using a model of a simple system to illustrate some of the principal points that need to be known about systems with feedback. The early sections summarise the behaviours encountered when different types of feedback are used to control the temperature of a simple model of an electric oven. Next some features of real controllers are explained and a simple manual procedure for tuning a PID controller is referred to. If you want to build your own controller there is a circuit diagram with some questions for self-assessment. Finally there is a remark about control theory, some problems, and an interactive simulation of the oven-controller system that can be used to check answers to the problems and get some hands-on experience of how such systems behave.

The original simulator was an Excel-4 workbook. It is not as accurate as the online version but, as many people have wanted their own copy of the simulator to experiment with off-line, I have decided to make it available here OVENVCTL.XLW.

This HTML document supports modules PHY3128 and PHY6203, and should be studied in parallel with the handout which covers the same material in more mathematical detail.

Next: System Model.

C.D.H. Williams Interactive Simulator Table of Contents

Visitor Status Bar

(3)

Feedback and Temperature Control

C.D.H. Williams Interactive Simulator Table of Contents

Previous: Introduction.

System Model

The system considered in this document comprises an electrical heater of heat capacity Ch connected via a thermal resistance Rho to the oven, heat capacity Co. The oven loses heat to the environment, at temperature Te, through the thermal resistance Ro of its insulation. The temperature controller adjusts the power dissipated in the heating elements, W, by comparing the oven temperature, To, with the set-point temperature Ts.

The red symbols on the diagram are thermal components; the black ones are electrical devices. Dashed lines represent transducers: a thermometer in one case, conversion of electrical current flowing through the heater into heat (thermal current W) in the other. With the notable exception of cryogenic systems, the thermometer time constant is usually very small so its effects will be tacitly assumed to be negligible during much of the following discussion. However, it will be mentioned in the final section which discusses the frequency domain behaviour of the system.

Next: Types of Feedback Control.

C.D.H. Williams Interactive Simulator Table of Contents

(4)

Feedback and Temperature Control

C.D.H. Williams Interactive Simulator Table of Contents

Previous: System Model.

Types of Feedback Control

All the graphs shown in this section use parameter values for the thermal model that are typical of a small domestic cooker and the set-point temperature Ts is indicated by the red lines.

On-Off Control

This is the simplest form of control, used by almost all domestic thermostats. When the oven is cooler than the set-point temperature the heater is turned on at maximum power, M, and once the oven is hotter than the set-point temperature the heater is switched off completely. The turn-on and turn-off temperatures are deliberately made to differ by a small amount, known as the hysteresis H, to prevent noise from switching the heater rapidly and unnecessarily when the temperature is near the set-point. The fluctuations in temperature shown on the graph are significantly larger than the hysteresis, as can be confirmed with the interactive simulation, due to the significant heat capacity of the heating

element.

Proportional Control

A proportional controller attempts to perform better than the On-Off type by applying power, W, to the heater in proportion to the difference in temperature between the oven and the set-point,

(5)

Feedback and Temperature Control

where P is known as the proportional gain of the controller. As its gain is increased the system responds faster to changes in set-point but becomes progressively underdamped and eventually

unstable. The final oven temperature lies below the set-point for this system because some difference is required to keep the heater supplying power. The heater power must always lie between zero and the maximum M because it can only source, not sink, heat.

Proportional+Derivative Control

The stability and overshoot problems that arise when a proportional controller is used at high gain can be mitigated by adding a term proportional to the time-derivative of the error signal,

This technique is known as PD control. The value of the damping constant, D, can be adjusted to achieve a critically damped response to changes in the set-point temperature, as shown in the next figure.

(6)

Feedback and Temperature Control

Too little damping results in overshoot and ringing, too much causes an unnecessarily slow response.

Proportional+Integral+Derivative Control

Although PD control deals neatly with the overshoot and ringing problems associated with

proportional control it does not cure the problem with the steady-state error. Fortunately it is possible to eliminate this while using relatively low gain by adding an integral term to the control function which becomes

where I, the integral gain parameter is sometimes known as the controller reset level. This form of function is known as proportional-integral-differential, or PID, control. The effect of the integral term is to change the heater power until the time-averaged value of the temperature error is zero. The method works quite well but complicates the mathematical analysis slightly because the system is now third-order.

(7)

Feedback and Temperature Control

The figure shows that, as expected, adding the integral term has eliminated the steady-state error. The slight undershoot in the power suggests that there may be scope for further tweaking.

Proportional+Integral Control

Sometimes, particularly when the sensor measuring the oven temperature is susceptible to noise or other electrical interference, derivative action can cause the heater power to fluctuate wildly. In these circumstances it is often sensible use a PI controller or set the derivative action of a PID controller to zero.

Third-Order Systems

Systems controlled using an integral action controller are almost always at least third-order. Unlike second-order systems, third-order systems are fairly uncommon in physics but the methods of control theory make the analysis quite straightforward. For instance, applying the so-called Routh-Hurwitz

stability criterion, which is a systematic way of classifying the complex roots of the auxiliary equation

for the model, it can be shown that provided the integral gain is kept sufficiently small then parameter values can be found to give an acceptably damped response with the error temperature eventually tending to zero if the set-point is changed by a step or linear ramp in time. Whereas derivative control improved the system damping, integral control eliminates steady-state error at the expense of stability margin.

Next: Practical Matters.

C.D.H. Williams Interactive Simulator Table of Contents

(8)

Feedback and Temperature Control

C.D.H. Williams Interactive Simulator Table of Contents

Previous: Types of Feedback Control.

Practical Matters

In its raw form integral control can be a mixed blessing; if the error Ts-To is large for a long period, for example after a large change in Ts or at switch-on, the value of the integral can become

excessively large and cause overshoot or undershoot that takes a long time to recover. To avoid this problem, which is often called 'integral wind-up', sophisticated controllers will inhibit integral action until the system gets fairly close to equilibrium. One method of achieving this is used by the

interactive simulation: when the "Limit I?" option is selected the value of the integral is held constant during periods when the heater is at maximum, or zero, power. This technique seems quite effective and would be straightforward to incorporate in a real controller.

Any system using a resistive electrical heater to control temperature is inherently non-linear because an electrical heater can only generate, not absorb, heat. When the oven temperature is higher than the set-point cooling occurs at a rate that depends on the oven and its temperature not the controller and dual PID controllers allow different heating and cooling parameter values to cope with this. It is

possible to build your own PID controller from a few operational-amplifiers. Commercial PID process controllers vary in cost between £75 for a simple model and £600 for an intelligent autotuning dual PID model.

Don't just assume that the knobs on a PID controller correspond to the parameters defined in this document. Values are sometimes specified by time constants in which case a long integral time

constant is equivalent to a low value of I but a long derivative time constant means a large value of D. The proportional gain is sometimes set by choosing a proportional band which is the change in input that gives maximum change in heater power so a small number for this corresponds to a large value of

P.

Varieties of PID Algorithms

The parallel algorithm variety of PID control, the discussed in this doument

is often referred to as the 'ideal algorithm'. To implement this scheme accurately one needs at least three amplifiers (the example controller circuit uses five). However, if slight deviations from the 'ideal' behaviour are permitted, only one amplifier is needed. This can be a great advantage,

particularly in pneumatic systems where amplifiers are expense items. Differences in the achievable

(9)

Feedback and Temperature Control

control performance due to which algorithm is being used are not normally significant. However, the tuning procedures used do differ slightly. Also, some controllers only apply derivative action to the process variable, not to the set point. Whether this is an advantage or not depends on the

circumstances. For more details, refer to David St Clair's comparison of different implementations of the PID algorithm.

Control Theory

Avoid re-inventing the wheel when tackling difficult feedback or control problems - control theory is a well-developed branch of engineering and has a range of powerful techniques to design and analyse systems involving feedback. As well as having systematic methods for solving complicated problems it introduces the important ideas of controllability ("Is it possible to control X by adjusting Y?"),

observability ("Does the system have distinct states that can't be unambiguously identified by the

controller?") and robustness ("Will control be regained satisfactorily after an unexpected disturbance?").

Noise and the Frequency Domain

The frequency domain behaviour of the model can be investigated with the interactive simulator

which will plot the open- and closed-loop frequency response for the system. As the controller gain is increased the phase margin reduces towards zero causing the overshoot described previously and a resonant peak in the frequency domain response. Any additional lag in the system, for example a non-negligible time-constant for the sensor measuring To, will make it possible for the system to oscillate, which is the reason for the second step in the procedure suggested for tuning a PID controller. Note that integral action reduces the phase margin, derivative action improves it. Even if a system is

technically stable it is unwise to operate it with a large peak in the closed-loop gain as this will act as an amplifier for any sensor noise and may cause large and undesired fluctuations in the heater power. If you have a noisy system to control you almost certainly do not want to use any derivative action.

Next: Tuning a PID Temperature Controller.

C.D.H. Williams Interactive Simulator Table of Contents

(10)

Feedback and Temperature Control

C.D.H. Williams Interactive Simulator Table of Contents

Previous: Practical Matters.

Tuning a PID Temperature Controller

In some case one may be able to measure the oven time constants directly and hence calculate the best controller settings. Often an equipment manufacturer will have suggested settings based on their

commissioning report - a good reason read the manual first. Sometimes one has no option but to set up, or 'Tune', a system in closed-loop mode by trial and error so here are two straightforward

procedures to tune a PID-controlled oven, they will get fairly close to optimum settings in most cases.

CDHW Method

1. Adjust the set-point value, Ts, to a typical value for the envisaged use of the system and turn off the derivative and integral actions by setting their levels to zero. Select a safe value for the maximum power M and increase the proportional gain until the system is just oscillating.

2. Note the period of oscillation then reduce the gain by 30%.

3. Suddenly decreasing or increasing Ts by about 5% should induce underdamped oscillations. Try several values of derivative level and choose a value for that gives a critically damped response. If the controller is calibrated D will need to be approximately one third of the oscillation period noted above.

4. Slowly increase the integral level until oscillation just starts, then reduce this level by a factor of two or three - this should be enough to stop the oscillation. I have found it is a good idea to use the lowest integral level that gives adequate performance.

5. Check the overall performance of system is satisfactory under the conditions it will be used. This procedure is based on the assumption that a critically damped system is optimal and the fact that

stability and noise must be traded for response time. Please bear in mind that the second step may involve large temperature oscillations and so the procedure would not be suitable if these could be dangerous or cause damage, for example in a chemical processing plant.

John Shaw's (Ziegler-Nichols Based) Method

1. Adjust the set-point value, Ts, to a typical value for the envisaged use of the system and turn off the derivative and integral actions by setting their levels to zero. Select a safe value for the maximum power M and set the proportional gain to minimum.

(11)

Feedback and Temperature Control

2. Progressively increase the gain until suddenly decreasing or increasing Ts by about 5% induces oscillations that are just self-sustaining.

3. The gain at this stage will be set to the ultimate gain Gu the period of the oscillations is known as the ultimate period tu. Note the values of each quantity.

4. Set the controller parameters as follows:

P-Control: P=0.50*Gu, I=0, D=0.

PI-Control: P=0.45*Gu, I=1.2/tu, D=0.

PID-Control: P=0.60*Gu, I=2/tu, D=tu/8.

5. Check the overall performance of system is satisfactory under the conditions it will be used. This procedure was adapted slightly from John Shaw's, description of the Ziegler-Nichols Closed Loop method. It should yield a system that is slightly underdamped; if a less "aggressive" response is desired try reducing P to half the values listed. As was the case with the CDHW method the second step may involve large temperature oscillations and so the procedure would not be suitable if these could be dangerous or cause damage, for example in a nuclear reactor. Strictly speaking, the Ziegler-Nichols method was developed for the traditional series, or interacting design of controller.

Further Reading

● Ron Graham et al., sci.engr.* FAQ on PID Controller Tuning. Includes example code for

digital implementations.

● Dave Harrold, Process Controller Tuning Guidelines. Control Engineering Online.

● David St Clair, Controller Tuning and Control Loop Performance. Excellent booklet, avoids

mathematics.

● David St Clair, The PID Algorithm. Describes and compares the many variants.

● Vance J. VanDoren, Ziegler-Nichols Methods Facilitate Loop Tuning. Control Engineering

Online.

Next: Controller Circuit.

C.D.H. Williams Interactive Simulator Table of Contents

(12)

Feedback and Temperature Control

C.D.H. Williams Interactive Simulator Table of Contents

Previous: Practical Matters.

Controller Circuit

This circuit is the basis of a temperature controller. Study it and then answer the questions that follow. The questions have links to outline answers but please resist the temptation to look at these until you have written down your own answers to all the questions.

1. What does the circuit do, and how does it work?

2. What additional circuit is needed between the output and the heater?

3. Why is there a diode in series with the output?

4. Why might one want to make R2 much larger than R1?

5. What is the purpose of R3?

6. What might be the most serious effect of op-amp offset voltages and bias currents?

7. How might the impact of op-amp offset and bias be reduced?

8. How would you consider improving the circuit?

Next: Problems and Exercises.

(13)

Feedback and Temperature Control

C.D.H. Williams Interactive Simulator Table of Contents

(14)

Feedback and Temperature Control

C.D.H. Williams Interactive Simulator Table of Contents

Return to: Questions about the Simple Controller Circuit.

Answers

1. What does the circuit do and how does it work?

The circuit is a form of PID controller. The input signal is buffered and amplified by a non-inverting amplifier and the gain of this stage defines the proportional gain P of the controller. The amplified error signal passes in parallel through an integrator (top) a unity-gain amplifier (middle) and a differentiator (bottom) all of which have inverting behaviour. Their outputs are then summed and inverted by the final op-amp and passed to the output. The potentiometers labelled D and I control the proportions in which derivative and integral fractions contribute to the output signal which is proportional to the power W to be supplied to the heater.

2. What additional circuit is needed between the output and the heater?

A heater-driver that ensures that the power dissipated in the heater is proportional to the output voltage. This is usually either a square-rooter if the heater is to be driven by DC, or with AC heaters some type of pulse-width modulator.

3. Why is there a diode in series with the output?

The heater power can only be positive or zero so the diode keeps the output signal within these constraints.

4. Why might one want to make R2 much larger than R1?

A low value of R2 would "load" the potentiometers and impair the linear relationship between control position and gain.

5. What is the purpose of R3?

The gain of a differentiator increases in proportion to frequency and without R3 it would only be limited by the, normally unnecessarily high, open-loop gain of the op-amp. R3 limits the gain at high frequencies reducing the noise of the system.

6. What might be the most serious effect of op-amp offset voltages currents and bias? It is most likely to be troublesome by causing an offset between the set-point and oven

temperatures. Under some circumstances the integrator may drift and eventually saturate which would prevent it from working properly.

7. How might the impact of op-amp offset and bias be reduced?

The first thing to try would be a resistor, equal in value to R2, between the positive input of the integrating amp and ground to eliminate the common-mode bias current. Selecting an op-amp with a good input-offset performance would be the next step.

(15)

Feedback and Temperature Control

8. How would you consider improving the circuit?

The improvements suggested in the previous answer would be a good start. The diode at the output could be replaced by an active rectifier for greater precision at low heater powers. Some method of reseting the integrator would help and maybe a circuit implement the "Limit I?" function of the interactive simulation. Meters to indicate heater power and an error signal are helpful to the person who has to tune a controller for a particular oven.

Return to: Questions about the Simple Controller Circuit.

C.D.H. Williams Interactive Simulator Table of Contents

(16)

Feedback and Temperature Control

C.D.H. Williams Interactive Simulator Table of Contents

Previous: Controller Circuit.

Problems and Exercises

Look at the hints to accompany these problems after you have had an initial try at solving them. 1. Sketch Bode diagrams showing the frequency response of (i) a PID controller, and (ii) the

above oven model. Now show how they can be combined to give the open-loop response of the oven-controller system. Compare your answer with one drawn by the simulator. [Hint]

2. Plot a graph of overshoot vs. phase margin for a second-order system with feedback by

simulating an oven controlled by a proportional controller with no sensor lag for various levels of proportional gain. [Hint]

Next: Interactive Simulation.

C.D.H. Williams Interactive Simulator Table of Contents

(17)

Feedback and Temperature Control

C.D.H. Williams Interactive Simulator Table of Contents

Return to: Problems.

Hints For Problems

1. Problem 1.

The proportional gain is independent of frequency and gives a horizontal line. The integral level causes a decrease in gain of 10dB per frequency decade which is only significant at low frequencies. The derivative gain causes an increase in gain, also at a rate of 10dB per decade, which becomes apparent at high frequencies.

2. Problem 2.

The problem here is to pick values of parameters that show the overshoot clearly, but which don't distort the results by causing the heater to hit its maximum, or zero, power. Leave the oven parameters at their default values and set the sensor lag to zero. To give the set-point a nice scale on the graph use the centigrade units and set Te to -273°C. Then use a ramp that starts at 0°C at 100s, and finishes at 0.01°C, also at 100s. Set D and I to zero, and with a proportional gain of 20000 there is lots of overshoot but the difference between Ts and To impedes the accuracy with which it can be measured. This can be eliminated by using a very small value for the integral gain, say 1.0e-20, which is negligible except it does eliminate the offset, for reasons explained in the technical notes.

Return to: Problems.

C.D.H. Williams Interactive Simulator Table of Contents

(18)

Feedback and Temperature Control

C.D.H. Williams Interactive Simulator Table of Contents

Temperature Controller Simulation

Instructions

The parameters are described elsewhere, with links to explanations and definitions in the main document. Their values in the boxes can be edited in the usual way. With the present values the set-point temperature Ts will stay at 150 °C until 100 s into the simulation when it will ramp linearly to 175 °C at 200 s. Either On-Off or PID controllers can be selected with the first menu which also has an option "PID Bode" to display the frequency-domain response of the PID system. The second menu changes the temperature units.

On the time-domain displays the red line is the set-point temperature, Ts, the green line is the oven temperature, To, and the blue line is the heater power, W. On the frequency-domain displays the red curve is the open-loop gain of the system, and the black curve is its phase. The blue curve is the response of the oven temperature To to changes in heater power W and the green curve is the closed-loop response of the oven temperature to changes in the set-point temperature Ts. There is a more

technical discussion of aspects of this simulation available.

Click the graph to run the simulation. See also: Parameter definitions. Model Parameters Simulation Parameters Controller Parameters

Te = H = °C

Ro = °C/W Run for s P = W/°C

Co = J/°C Ts= °C until s I = /s

Ch = J/°C Ts= °C after s. D = s

Rho= °C/W M = W

Sensor lag= s Noise= °C/sqrt(Hz) Limit I?

http://newton.ex.ac.uk/cgi-bin/metaform?http://ne...x.ac.uk/teaching/CDHW/Feedback/OvSimForm-gen.html (1 of 2) [26/4/2003 21:10:31]

25 °C PID 10

0.1 1000 900

10000 150 100 2.0e-4

500 175 200 3

0.15 4000

(19)

Feedback and Temperature Control

Use 'Go Back' on your browser, or the links below.

C.D.H. Williams Interactive Simulator Table of Contents

(20)

Feedback and Temperature Control

C.D.H. Williams Interactive Simulator Table of Contents

Return to: Interactive Simulation.

Technical Details About The Simulation

The HTML Interface

The simulation is a fairly simple FORTRAN program front-ended by an HTML form. John Rowe's

Metaform system processes the submitted form, identifying and substituting variables. It is this

mechanism that updates the sentence about the set-point programme so that it describes the times and settings correctly. The browser reads the processed form and, by loading the graph, activates a second Perl script called Metagraph. Metagraph pipes parameter values from the form into the FORTRAN simulation code and passes the output to GNUPLOT which generates HPGL. This is converted to the gif format to be displayed by the browser.

Frequency Domain Simulation

The frequency domain simulation PID-FD is straightforward; it calculates values for the frequency-domain magnitude and phase of the oven temperature using the defining equations for the oven and PID controller. FORTRAN's good feature, complex arithmetic, makes this very easy to do, about a dozen lines. This is increased to about 400 lines by the code that chooses nice ranges and tick mark positions so that it all fits on one graph that can be seen on a 13" monitor!

It is not a bug that causes the 'closed-loop' response curve sometimes to lie above the open-loop

response. This can happen when the sensor-lag is non-zero because the graph shows how changing the

set-point temperature affects To which is not the same as how changes in the temperature of the sensor affect To.

Time Domain Simulation

If the noise density is zero the differential equations describing the oven are solved using the NAG

routine D02CJF (pdf) which is a variable-order variable-step Adams method. Small values of sensor lag (compared with the oven time constants) increase the calculation time so sensor-lag=0 is

recognised and dealt with as a special case. The set-point ramp has had its corners replaced by part of a tanh() function to keep all derivatives continuous.

Initial Conditions

The initial conditions are calculated on the assumption that the system has been running undisturbed for a very long time. For the On-Off controller the heater is off, the oven temperature is at the

(21)

Feedback and Temperature Control

point and is falling at a rate found by setting the second derivative of To wrt time equal to zero. This was intended to be an approximation for test purposes but I have yet to see any evidence of a

significant start-up transient resulting from it, so it'll do for now. For the PID controller things are simpler. The first derivative of To is zero, Terr=0 when the integral level is non-zero, or has the

appropiate value when I=0. If I>0 then the integral of Terr wrt time is set to a value that will eliminate the static offset. This has the useful side-effect that if the static offset interfering with the scaling of a graph it can normally be eliminated by setting I to a very small value, such as 10-30, without affecting

the dynamic response.

Noise

One can't just add Gaussian noise from a random number generator to to this system and expect

D02CBF, or similar adaptive integrators, to work. This is because they rely on the system of equations having derivatives that are continuous to high order. I've dealt with this problem here by generating a random spectrum for the noise and using the components of this to calculate Noise(time) and

NoiseDerivative(time). The Fourier components of Noise(time) have random phase and frequency but unit amplitude. This trick has one undesirable property - it's slow to calculate. However, since the RMS noise can be estimated from the closed-loop amplitude response and the noise density, it should be possible to specify an absolute accuracy target for D02CBF which is slacker than the one used in the noise-free case and recover some of the speed that way.

Problems

Most of the returned error messages are self-explanatory. Small, but non-zero values for the sensor lag significantly increase the CPU time needed for the simulation. In this context small means less than about 1% of shortest time constant associate with the oven, which is usually Ch*(Rho||Ro). Extremely small values of sensor lag cause solutions may become unreliable, which can be recognised because noise appears on the power signal W which is not evident when the sensor-lag is set to zero. Sensor lags less than 10-4 times the shortest time constant associated with the oven are rejected to try and avoid users ever seeing this problem.

Return to: Interactive Simulation.

C.D.H. Williams Interactive Simulator Table of Contents

(22)

Feedback and Temperature Control

C.D.H. Williams Interactive Simulator Table of Contents

Use 'Go Back' on your browser to return to simulation.

Summary of Parameter Definitions

This is a quick reference guide, for more details each description is a link to the point in the main document where it is discussed in detail.

Parameter Description

Ch Heat capacity of heating element.

Co Heat capacity of oven.

Ro Thermal resistance between oven and environment.

Rho Thermal resistance between heating element and oven.

Te Temperature of environment outside oven.

Ts Set-point temperature which controller tries to achieve.

H Hysteresis band of the On-Off controller.

P Proportional gain of PID controller.

I Integral action level of PID controller.

D Derivative action level of PID controller.

M Maximum heater power.

Noise Equivalent noise spectral density at Ts.

Limit I? Whether to limit the integral action outside proportional band.

Sensor Lag The thermometer time constant.

(23)

Feedback and Temperature Control

The red symbols on the diagram are thermal components; the black ones are electrical devices. Dashed lines represent transducers: a thermometer in one case, conversion of electrical current flowing through the heater into heat (thermal current W) in the other.

Use 'Go Back' on your browser to return to simulation.

C.D.H. Williams Interactive Simulator Table of Contents

(24)

Dr Charles D.H. Williams

> >

Dr Charles D.H. Williams

Senior Lecturer School of Physics Stocker Road Exeter

UK

EX4 4QL

Tel: +44 1392 264178 Fax: +44 1392 264111

Email: [email protected]

Research

● Quantum Interacting Systems

● Research interests

● Publications and reprints

● School publications list

See Also

● School staff list

● Teaching-related material on

WWW

Teaching

● PHY2003 Practical Electronics II

● PHY3128 Electronics for Measurement Systems

● PHYM423 Classical and Quantum Fluids

● On-line teaching resources

Home > Staff > CDHW

(25)

C.D.H. Williams publications by date

> > > > >

C.D.H. Williams publications by date

Energy from Colliding Phonon Sheets in Liquid 4He

D.H.S. Smith, R.V. Vovk, C.D.H. Williams and A.F.G. Wyatt In preparation (2005).

Abstract PDF

Pressure dependence of phonon interactions in liquid 4He

D.H.S. Smith, R.V. Vovk, C.D.H. Williams and A.F.G. Wyatt Phys. Rev B. Accepted for publication (2005).

Abstract PDF

A low-temperature high-sensitivity torsion balance magnetometer with in situ stator adjustment

A.J. Matthews, A. Usher and C.D.H. Williams Rev. Sci. Instrum. 75(8) 2672-2677 (2004).

Abstract PDF doi:10.1063/1.1771494 High-Energy Phonon Pulses in Liquid 4He

R.V. Vovk, C.D.H. Williams and A.F.G. Wyatt Phys. Rev B. 69 art. 144524 (2004).

Abstract doi:10.1103/PhysRevB.69.144524

A Slab of Liquid Helium-4 with Two Free Surfaces C.D.H. Williams and A.F.G. Wyatt

J. Low Temp. Physics 134(1-2) 217-226 (2004).

Abstract PDF doi:10.1023/B:JOLT.0000012559.10544.ec

Interactions between Sheets of Phonons in Liquid 4He

R.V. Vovk, C.D.H. Williams and A.F.G. Wyatt Phys. Rev Lett. 91(23) art. 235302 (2003).

Abstract PDF doi:10.1103/PhysRevLett.91.235302

Quantum Transmission of Atoms Through a Slab of Superfluid Helium C.D.H. Williams and A.F.G. Wyatt

Phys. Rev. Lett. 91(8) art. 085301 (2003).

Abstract PDF doi:10.1103/PhysRevLett.91.085301

The Angular Distribution of a Pulse of Low Energy Phonons in Liquid 4He

R.V. Vovk, C.D.H. Williams and A.F.G. Wyatt Phys. Rev B. 68(13) art. no. 134508 (2003)

Abstract PDF doi:10.1103/PhysRevB.68.134508

(26)

C.D.H. Williams publications by date

Transmission of Helium Atoms Through a Helium-II Slab C.D.H. Williams and A.F.G. Wyatt

Physica B: Physics of Condensed Matter 329-333 262 (2003).

Abstract PDF doi:10.1016/S0921-4526(02)01989-0

Roton backflow and quasiparticle scattering at He-4 surfaces

M.B. Sobnack, J.R. Matthias, J.C.H. Fung, C.D.H. Williams, J.C. Inkson Physical Review B 65(18) art. 184521 (2002).

Abstract doi:10.1103/PhysRevB.65.184521

Narrow-Angle Beams of Strongly Interacting Phonons C.D.H. Williams, A.A. Zakharenko and A.F.G. Wyatt J. Low Temp. Physics 126 (1-2) 591-596 (2002).

Abstract PDF doi:10.1023/A:1013727403790

Influence of Backflow on Roton Quantum Evaporation C.D.H. Williams and M.B. Sobnack

J. Low Temp. Physics 126 (1-2) 603-608 (2002).

Abstract PDF doi:10.1023/A:1013731604699

Monolayers of 3He on the Surface of Bulk Superfluid 4He

J.P. Warren and C.D.H. Williams Physica B 284 158-9 (2000).

Abstract PDF doi:10.1016/S0921-4526(99)02224-3

Relative Evaporation Probabilities of 3He and 4He from the Surface of Superfluid 4He

J.P. Warren and C.D.H. Williams Physica B 284 160-1 (2000).

Abstract PDF doi:10.1016/S0921-4526(99)02250-4 Expansion of Liquid 4He Through the Lambda Transition

M.E. Dodd, P.C. Hendry, N.S. Lawson, P.V.E. McClintock and C.D.H. Williams J. Low Temp. Physics 115(1-2) 89-105 (1999).

Abstract PDF doi:10.1023/A:1021898914014

Non-Appearance of Vortices in Fast Mechanical Expansions of Liquid 4He Through the Lambda Transition

M.E. Dodd, P.C. Hendry, N.S. Lawson, P.V.E. McClintock and C.D.H. Williams Phys. Rev. Lett. 81 3703-3706 (1998).

Abstract PDF doi:10.1103/PhysRevLett.81.3703 Quantum Evaporation from Superfluid 4He

(27)

C.D.H. Williams publications by date

C.D.H. Williams

J. Low Temp. Physics 113(1-2) 11-18 (1998).

Abstract PDF doi:10.1023/A:1022576619646

The Wave-Vector Dependence of Quantum Evaporation from Superfluid 4He C.D.H. Williams

J. Low Temp. Physics 113(3-4) 627-632 (1998).

Abstract PDF doi:10.1023/A:1022505724035

Surface Oxide Layers and the Wetting Temperature of Alkali-Metals C.D.H. Williams and A.F.G. Wyatt

Czech. J. Physics 46(S1) 457-458 (1996).

Abstract

The Influence of Electrostatic Fields on Films of Liquid Helium C.D.H. Williams and A.F.G. Wyatt

J. Low Temp. Physics 102(1-2) 11-19 (1996).

Abstract PDF

Cosmological Experiments in Liquid 4He - Status and Prospects

P.C. Hendry, N.S. Lawson, R.A.M. Lee, P.V.E. McClintock and C.D.H. Williams Physica B 210(3-4) 209-214 (1995).

Abstract

Generation of Defects In Superfluid 4He as an Analog of the Formation of Cosmic Strings P.C. Hendry, N.S. Lawson, R.A.M. Lee, P.V.E. McClintock and C.D.H. Williams

Nature 368(6469) 315-7 (1994).

Abstract doi:10.1038/368315a0

Vortex Creation in a Fast Adiabatic Expansion through the Lambda Transition P.C. Hendry, N.S. Lawson, R.A.M. Lee, P.V.E. McClintock and C.D.H. Williams Physica B 194-196(Pt1) 711-12 (1994).

Abstract

Creation of Quantized Vortices at the Lambda Transition in Liquid Helium-4 P.C. Hendry, N.S. Lawson, R.A.M. Lee, P.V.E. McClintock and C.D.H. Williams J. Low Temp. Physics 93(5-6) 1059-67 (1993).

Abstract

The Breakdown of Superfluidity in Liquid 4He. VI. Macroscopic Quantum Tunnelling by Vortices in Isotopically Pure HeII

P.C. Hendry, N.S. Lawson, P.V.E. McClintock, C.D.H. Williams and R.M. Bowley Phil. Trans. R. Soc. Lond. A332 387-414 (1990).

(28)

C.D.H. Williams publications by date

Optimisation and Noise Performance of Constant Temperature Bolometric Phonon Detectors C.D.H. Williams

Phonons '89, eds S. Hunklinger, W. Ludwig and G. Weiss II 1451-3 (1990).

An Appraisal of the Noise Performance of Constant Temperature Bolometric Detector Systems C.D.H. Williams

Meas. Sci. Technol. 1 322-328 (1990).

doi:10.1088/0957-0233/1/4/002

Pressure Dependence of Vortex Tunnelling in HeII

P.C. Hendry, N.S. Lawson, P.V.E. McClintock, C.D.H. Williams and R.M. Bowley Physica B 165&166(I) 757-8 (1990).

doi:10.1016/0921-4526(90)90770-U

Excitation Emission From Ions Moving at Supercritical Velocities in HeII C.D.H. Williams, P.V.E. McClintock and P.C. Hendry

Elementary Excitations in Quantum Fluids, eds K. Ohbayashi and M. Watabe (1988). Inhibition of Vortex Nucleation by Phonons in HeII

P.C. Hendry, N.S. Lawson, C.D.H. Williams and P.V.E. McClintock

Elementary Excitations in Quantum Fluids, eds K. Ohbayashi and M. Watabe (1988).

Numerical Calculation of Magnetometric Demagnetisation Factors for Octahedra and Other Shapes C.D.H. Williams, D. Evans and J.S. Thorp

J. Magn. Magn. Mater. 79 183-8 (1989).

Macroscopic Quantum Tunnelling of Vortices in HeII

P.C. Hendry, N.S. Lawson, P.V.E. McClintock, C.D.H. Williams and R.M. Bowley Phys. Rev. Lett. 60 604-7 (1988).

doi:10.1103/PhysRevLett.60.604

Size Dependent Magnetometric Demagnetisation Tensors For Single Domain Particles C.D.H. Williams, D. Evans and J.S. Thorp

J. Magn. Magn. Mater. 72 123-8 (1988).

Nature of Exotic Negative Carriers in Superfluid 4He P.C. Hendry, C.D.H. Williams and P.V.E. McClintock Phys. Rev. Lett. 61 865 (1988).

doi:10.1103/PhysRevLett.60.865

Evidence for an Energy Barrier Impeding the Creation of Quantized Vortices in HeII P.C. Hendry, N.S. Lawson, C.D.H. Williams, P.V.E. McClintock and R.M. Bowley

(29)

C.D.H. Williams publications by date

Jap. J. Appl. Physics S26-3 73-4 (1987).

Production of 'Fast' and 'Exotic' Negative Ions in HeII C.D.H. Williams, P.C. Hendry and P.V.E. McClintock Jap. J. Appl. Physics S26-3 105-6 (1987).

The temperature dependence of permittivity in MgO and Fe-MgO single crystals

J.S. Thorp, N.E. Rad, D. Evans and C.D.H. Williams J. Mater. Sci. 21 3091-3096 (1986).

Effect of superparamagnetism on measurements made with a Gouy Magnetometer C.D.H. Williams, S.R. Hoon and J.S. Thorp

J. Mater. Sci. Lett. 5 832-834 (1986).

Home > Staff > CDHW > Papers > Indices > bydate.html

(30)

Numerical Algorithms Group

● New release of NAG SMP Library

for high performance computing

● NAG announces major new release

of its numerical library for C and C++ programmers

● Germany's LRZ chooses NAG's high

performance numerical libraries for its new supercomputer system

"Are you ready for multi-multi core

systems?" by Rob Meyer

● See NAG at the world's largest high

performance computing conference, SC2006

● New example programs to illustrate

the use of LAPACK now available

● Calling C Library DLLs from C#, as

published in Dr. Dobbs Journal

● Register today to receive NAG's

electronic newsletter

Numerical Algorithms Group

Mathematics and technology for optimized performance.

NAG's mathematical and statistical components underpin thousands of programs and applications spanning the globe in industries as diverse as financial analysis, science and engineering, and in academia and research.

They are so widely used and trusted because of their outstanding and unrivalled quality, reliability and portability. Whether you are using a single PC or a cluster of the world's largest supercomputers, NAG has the numerical software capabilities to suit your model.

Financial Community

NAG's extensive mathematical and statistical software helps bring quicker solutions in areas such as optimization, portfolio modeling, index tracking, derivative pricing, and others. [Read more]

ISV Developers

Many of the top software and hardware companies in the world bring sophisticated new

analytical features to their products by incorporating NAG's mathematical, statistical and data mining components into their products. [Read more]

Partner Spotlight

The breadth, stability, and versatility of NAG components as well as NAG's technical and management support allowed

Smartleaf to introduce next generation portfolio management into the marketplace without delay. [Read more]

Results matter. Trust NAG.

© Numerical Algorithms Group

Visit NAG on the web at:

www.nag.co.uk (Europe and ROW) www.nag.com (North America)

www.nag-j.co.jp (Japan)

http://www.nag.co.uk/index.asp

(31)

Dr John M. Rowe

> >

Dr John M. Rowe

Senior Experimental Officer School of Physics

Stocker Road Exeter

UK

EX4 4QL

Tel: +44 1392 264115 Fax: +44 1392 264111

Email: [email protected]

Research

● Quantum Interacting Systems

● School publications list

See Also

● School staff list

Teaching

● PHY3134 Computational Physics

● On-line teaching resources

Home > Staff > JMR

(32)

On-line Learning Resources

> >

On-line Learning Resources

For copyright reasons some of the material listed on this page is only accessible from machines registered at the University Exeter. A good starting point for finding off-site physics resources is the

IoP Education Resources. Resources for the BSc. in Medical Imaging are on the PAHC Blackboard

server.

● Prof. W.L. Barnes

❍ PHY1105 Relativity I and Vectors

❍ PHY2002 Quantum Physics I

● Dr. David A. Bradley

❍ PAM1004 Science Background 1

❍ PAM2001 Science Background 2

❍ PHY3135 Nuclear and High-Energy Particle Physics

❍ PHYM202 Medical Uses of Ionising Radiation I & II

● Dr Tim Harries

❍ PHY2208 Optics

❍ PHY3142 Stars from Birth to Death

● Dr Alastair Hibbins

❍ PHY3102 Solid state Physics I

● Dr Rob Hicken

❍ PHY2009 Physics of Crystals

❍ PHY3129 Device Physics

● Prof. R Jones

❍ PHY2018 Problems and Solutions

❍ PHY4421 Statistical Mechanics

❍ PHY4432 Relativity and Cosmology

❍ PROBS-2 Stage 2 Problems Class.

● Dr Steven Matcher

❍ PHY1110x Error analysis and graph plotting

❍ PHY2220 Space-Time, the Universe and the Quantum World

❍ PHY3146 Applied Optics and Acoustics

❍ PHY4426 Topics in Biomedical Physics

❍ PHYM204 Medical Imaging; Biomedical Physics

● Prof. Mark J. McCaughrean

(33)

On-line Learning Resources

❍ PHY3135 Nuclear and High-Energy Particle Physics

● Dr Julian Moger

❍ PAM1006 Clinical Imaging 1

❍ PAM2001 Science Background 2

❍ PAM2003 Clinical Imaging 2

❍ PAM3002 Science Background 3

❍ PHY0000 Miscellaneous

● Prof. Tim Naylor

❍ PHY1104 Electricity and Magnetism

❍ PHY2019 Observing the Universe

❍ PHY2220 Space-Time, the Universe and the Quantum World

● Dr Feodor Y. Ogrin

❍ PHY2018 Mathematics with Physical Applications

● Dr Peter Petrov

❍ PHY1002 Thermal Physics

❍ PHY1003 Properties of Matter

● Dr Misha Portnoi

❍ PHY2201 Statistical Physics

❍ PHY3140 Methods of Theoretical Physics

● Dr John Rowe

❍ PHY3134 Computational Physics

● Prof. J. Roy Sambles

❍ PHY3143 Advanced Electromagnetism

● Dr Alan Usher

❍ PHY1110 Error Analysis and Graph Plotting

❍ PHY1111 Error Analysis and Graph Plotting

❍ PHY1116 Mathematics for Physicists

● Dr Peter Vukusic

❍ PHY1106 Waves and Oscillators

● Dr Charles Williams

❍ PHY2003 Practical Electronics II

❍ PHY3128 Electronics for Measurement Systems

❍ PHY2206 Electromagnetic Fields (1995-1999)

❍ PHY0000 Miscellaneous

(34)

On-line Learning Resources

Home > Teaching > Resources

(35)

CDHW Teaching Resources

> > >

Teaching-Related Material on the WWW

by

Charles D.H. Williams

PHY2003 Practical Electronics II

● Module Description

● Introduction to Module

● Assessment Guidelines

● Worksheets and Deadlines

● Datasheets for devices used in PHY2003

● Troubleshooting Op-Amp Circuits

● Electronics Learning-Resources on the WWW

● Spice 3f User's Manual

PHY3128 Electronics for Measurement Systems PHY6203 Part B - Instrumentation

● PHY3128 Module Description

● PHY6203 Module Description

● Feedback and Temperature Control

● Computer Interfaces for Instrumentation Systems

● Introduction to Sensors

● Electronics Learning-Resources on the WWW

Postgraduate Training Course

● Introduction to Data Analysis and Statistics

PHY2206 Electromagnetic Fields (1995-1999)

● Module Description

● 'Drill Problems', with hints and answers [pdf]

● Brief history of electromagnetism [pdf]

● Vector properties of the 'Del' operator [pdf]

● Curvilinear coordinate systems [pdf]

● Vector analysis summary sheet [pdf]

● Charge distribution [pdf]

● Gauss's law [pdf]

● Multipole distributions [pdf]

(36)

CDHW Teaching Resources

● Dielectric tensors and constants [pdf]

● Boundary conditions for electric fields [pdf]

● Analytic solutions to Laplace's equation [pdf]

● Numerical solution of Laplace's equation [pdf]

● Ampère's law [pdf]

● Properties of a small current-loop [pdf]

● Microscopic models of magnetic materials [pdf]

● Boundary conditions for macroscopic magnetic fields [pdf]

● Summary [pdf]

General Interest

● MacSpice - Free Spice for the Macintosh

● The Science of Boiling an Egg

● An Excel-4 (Mac) macro for Voice-Prompted Entry of student marks into marksheets

● ClarisDraw libraries of electronics symbols [Hqx]

See also: Physics resources by other people.

Home > Teaching > Resources > CDHW

(37)

Feedback and Temperature Control

> > >

Feedback and Temperature Control

by

Charles D.H. Williams

Contents

● Preface

● Introduction

● System Model

● Types of Feedback Control

❍ On-Off Control

❍ Proportional+Derivative Control

❍ Proportional+Integral+Derivative Control

❍ Proportional+Integral Control

❍ Third-Order Systems

● Practical Matters

❍ Varieties of PID Algorithms

❍ Control Theory

❍ Noise and the Frequency Domain

● Tuning a PID Temperature Controller

● Controller Circuit (and Self-Test Questions)

❍ Answers to Self-Test Questions)

● Problems and Exercises

❍ Hints

● Oven Controller Simulation

❍ Quick Reference Guide to Parameters

❍ Technical Details of the Simulation

Preface

This is an introduction to the effects that feedback can have on systems. I have chosen an oven controlled by a PID temperature controller to use as a case study but the behaviour described is

characteristic of many systems that employ feedback. There is a detailed interactive simulation of the oven-controller system for you to experiment with. I'm interested in any comments - good or bad - about this document. In particular, do you find the hypertext and simulation a significant

improvement on traditional textbook or lecture presentation? Also, please let me know if you spot errors or omissions, I'd like to fix them.

Introduction

(38)

Feedback and Temperature Control

It is important to have an intuitive feel for the ways that feedback can affect a system if you want to design analogue electronic circuits that work well. This document is designed to help you develop such intuition by using a model of a simple system to illustrate some of the principal points that need to be known about systems with feedback. The early sections summarise the behaviours encountered when different types of feedback are used to control the temperature of a simple model of an electric oven. Next some features of real controllers are explained and a simple manual procedure for tuning a PID controller is referred to. If you want to build your own controller there is a circuit diagram with some questions for self-assessment. Finally there is a remark about control theory, some problems, and an interactive simulation of the oven-controller system that can be used to check answers to the problems and get some hands-on experience of how such systems behave.

The original simulator was an Excel-4 workbook. It is not as accurate as the online version but, as many people have wanted their own copy of the simulator to experiment with off-line, I have decided to make it available here OVENVCTL.XLW.

This HTML document supports modules PHY3128 and PHY6203, and should be studied in parallel with the handout which covers the same material in more mathematical detail.

Next: System Model.

C.D.H. Williams Interactive Simulator Table of Contents

Visitor Status Bar

Home > Teaching > CDHW > Feedback

(39)

The PID Algorithm for the Process Industries

The PID Algorithm

This page was last revised 29 June, 2000

There is no single PID algorithm. Different fields using feedback control have probably used different algorithms ever since math was introduced to feedback control. This Web page (a single file, of four pages, no pictures) is written for people in the process industries, for that is the only field in which I (David W. St. Clair) have experience. Even in that single field, which has been served by companies such as ABB (formerly Taylor), Bailey, Fisher, Foxboro, Honeywell, Moore Products, Yokogawa and others there is no standard algorithm. Perhaps years ago there was (or for most practical purposes was), but today there are many algorithms. Also there is no standard terminology. For the person interested in tuning controllers for the process industries it has become a bit more complicated, because the rules and procedures you would use to tune with one algorithm are not the ones you would use to tune with another. Also, with the added features available with computers, some of the configurations can become quite complex. This page does not begin to address those, but you

certainly need to understand what your basic building block is.

The purpose of this Web page is to focus on the fact that there are differences and to describe them (or at let to alert you to look for them). No reference to the algorithm of specific manufacturers is given. If you are tuning controllers you must know the algorithm of the equipment you are using. For that you should read the information provided by the manufacturer. Even the words used to identify an algorithm are ambiguous. You should look at the equation. This is unfortunate because many persons assigned the responsibility of tuning process industry controllers are not comfortable with equations. If you are reading this as preparation for writing a PID algorithm, it will alert you to the fact that there is more to it than you might have thought. Indeed, the feedback I have from knowledgeable people is that even the experts can slip up.

I have asked several friends and acquaintances to review this write-up before (and after) putting it on the Web. This does not necessarily mean they agree with what I have written (some discussions are still taking place), but at least I have sought their advice. I hope it has no mistakes in it. If you feel you have something to contribute in the way of corrections or additions, please write me. I have nothing to sell by providing this page, except better control and hopefully less confusion.

Presently there are three basic forms of the PID algorithm. These will be discussed in turn. After that there is a short discussion of other aspects of any algorithm which must be considered to write the digital program for one. A section on references and links is at the end.

Expressed by their Laplace transforms the three forms are: First form: Kc(1 + 1/Tis)(1 + Tds)/(1 + Tds/Kd)

Second form: Kc'(1 + 1/Ti's + Td's) Third form: Kc" + 1/Ti"s+Td"s where

(40)

The PID Algorithm for the Process Industries

Kc, Kc' and Kc" relate to the P part of PID Ti, Ti' and Ti" relate to the I part of PID Td, Td' and Td" relate to the D part of PID

s is the Laplace notation for derivative with respect to time Kd is the derivative gain

I have deliberately not assigned a name to any of these forms yet. Also I have not given a name to the variables. Both will come later as each algorithm is discussed. The second and third forms can be made equivalent to the first form (provided derivative is handled appropriately), but the first form cannot duplicate all combinations available in the second and third forms. The second and third forms can be made equal to each other. For most practical purposes one algorithm is not better than another, just different.

THE FIRST FORM OF THE PID ALGORITHM

This first form is called "series" or "interacting" or "analog" or "classical". The variables are: Kc = controller gain = 100/proportional band

Ti = Integral or reset time = 1/reset rate in repeats/time Td = derivative time

Kd = derivative gain

Early pneumatic controllers were probably designed more to meet mechanical and patent constraints than by a zeal to achieve a certain algorithm. Later pneumatic controllers tended to have an algorithm close to this first form. Electronic controllers of major vendors tended to use this algorithm. It is what process industry control users were used to at the time. If you are unsure what algorithm is being used for the controller you are tuning, find out what it is before you start to tune.

I did not follow closely the evolution of algorithms as digital controllers were introduced. It is my understanding that most major vendors of digital controllers provide this algorithm as basic, and many provide the second form as well. Also, many provide several variations (I'm told Allen-Bradley has 10, and that other manufacturers are adding variations continually).

The choice of the word interacting is interesting. At least one author says that it is interacting in the time domain and noninteracting in the frequency domain. Another author disagrees with this

distinction. This really becomes a discussion of what interacts with what. To be safe, think of the word interacting as one to identify the algorithm, not to describe it.

SECOND FORM OF THE PID ALGORITHM

The second form of the algorithm is called "noninteracting, or "parallel" or "ideal" or "ISA" . I understand one manufacturer refers to this as "interacting", which serves to illustrate that terms by themselves may not tell you what the algorithm is. This form is used in most textbooks, I understand. I think it is unfortunate that textbooks do not at least recognize the different forms. Most if not all

(41)

The PID Algorithm for the Process Industries

books written for industry users rather than students recognize at least the first two forms. The basic difference between the first and second forms is in the way derivative is handled. If the derivative term is set to zero, then the two algorithms are identical. Since derivative is not used very often (and shouldn't be used very often) perhaps it is not important to focus on the difference. But it is important to anyone using derivative, and people who use derivative should know what they are doing. The parameters set in this form can be made equivalent (except for the treatment of gain-limiting on derivative) to those in the first form in this way:

Kc' = ((Ti +Td)/Ti))Kc, "effective" gain.

Ti' = Ti + Td, "effective" integral or reset time Td' = TiTd/(Ti + Td), "effective" derivative time

These conversions are made by equating the coefficients of s. Conversions in the reverse direction are: Kc = FKc'

Ti = FTi' Td = Td'/F where

F =0.5 + sqrt(0.25 - Td'/Ti')

Typically Ti is set about 4 to 8 times Td, so the conversion factor is not huge, but it is important to not loose sight of the correction. With this algorithm it is possible to have very troublesome combinations of Ti' and Td'. If Ti'<4Td' then the reset and derivative times, as differentiated from settings, become complex numbers, which can confuse tuning. Don't slip into these settings inadvertently! A very

knowledgeable tuner may be able to take advantage of that characteristic in very special cases, but it is not for everyone, every day. Some companies advise to use the interacting form if available, simply to avoid that potential pitfall.

This algorithm also has no provision for limiting high frequency gain from derivative action, a virtually essential feature. In the first algorithm Kd is typically fixed at 10, or if adjustable, should typically be set somewhere in the range of 6 to 10. This desirable limiting of the derivative component is sometimes accomplished in this second form by writing it as:

Kc'(1 + 1/Ti's + Td's)/(1 + Td's/Kd) or

Kc'(1 + 1/Ti's + Td's/(1 + Td's/Kd))

There are likely many variations on the theme.

The variables Kc', Ti' and Td' have been called "effective". In the Bode plot, IF Ti'>4Td', THEN Kc' is the minimum frequency-dependent gain (Kc is a frequency-independent gain). This is at a

(42)

The PID Algorithm for the Process Industries

frequency which is midway between the "corners" defined by Ti and Td, which is also midway between the "effective " corners associated with Ti' and Td'. Ti' is always larger than Ti and Td' is always smaller than Td, which recognizes the slight spreading of the "effective" corners of the Bode plot as they approach each other.

This algorithm is also called the "ISA" algorithm. The ISA has no association with this algorithm. Apparently this attribution got started when someone working on the Fieldbus thought it would become "THE" algorithm. It didn't. Or hasn't. ANSI/ISA-S51.1-1979 (Rev. 1993) is a standard on Process Instrumentation Terminology. While this is a standard on terminology, not algorithms, it uses the first form of the algorithm for examples and in its Bode plot for a PID controller. Another term used to identify this algorithm is "ideal". Think of this word as one to identify the algorithm, not

describe it. It is true that it can do everything the first form can do, and more, provided the gain for

derivative is handled appropriately. But settings which produce complex roots should be used only by the very knowledgeable.

THIRD FORM OF THE PID ALGORITHM

It is hard to know what to call this third form since it is so close to the second. It has been called "parallel", "ideal parallel", "noninteracting", "independent" and "gain independent". In one sense this third form is the second form rewritten. I understand this is the algorithm taught Electrical Engineers. The second and third forms can be made equal to each other by using the following substitutions: Kc" = Kc'

Ti" = Ti'/Kc' Td" = Kc'Td'

They would only differ in what you call the tuning parameters. They are not gain, integral time and derivative time as those words are traditionally used in this field. Also, the option for limiting the gain from derivative action should be handled somehow, perhaps the same way as for form two. One

option is as follows:

Kc" + 1/Ti"s + Td"s/(1+Td"s/K"d)

The constraint in the second form that Ti'>4Td' to keep the roots real becomes Kc"Ti">4Td"/Kc", which is a bit more complicated.

PROGRAMMING CONSIDERATIONS

There are many considerations in writing the program for a controller besides the decision on which basic algorithm to use. These include:

1. The option to have the derivative function act only on the process variable, not on set point changes.

2. The same option with regard to the proportional action. This option may be tied to the first, in that if you choose to have derivative act only on the process variable you get proportional

(43)

The PID Algorithm for the Process Industries

action only on that also.

3. Provision for setpoint and process variable tracking, to permit bumpless automatic/manual transfers. You can have bumpless transfers without setpoint tracking. You can also transfer from manual to automatic without any bump due to proportional action. Aren't all these options wonderful!

4. Provision for reset windup protection.

5. Provision for a filter besides the one used to limit the derivative gain.

6. It is no simple matter to get digital derivative action to approach the quality of analog derivative action. No program can match it. This space is not intended to amplify on that problem, but simply to emphasize that it is a problem. It relates to sampling frequency and noise on the signal. Some algorithms use more than one back value of the controlled variable I believe. Also some manufacturers limit how low a derivative time may be set. It is very

difficult for the user to know whether the derivative provided is doing a good job of achieving what could be achieved with derivative action.

7. Integral/reset action with digital controllers is not perfect. There is a phenomenon related to quantizing error, sampling time and long integral/reset times and calculating precision which prevents integrating to zero error. Apparently with more digits in the A/D converter and in the computer's math, this is becoming less and less of a problem.

8. There is the choice of having the algorithm be "velocity", sometimes called "incremental" (each calculation period a change in the output is calculated), or "position" (each calculation period the actual desired output is calculated). Apparently at one time there was a perception that the velocity algorithm did not have a reset windup problem, but this is not the case. The choice between the incremental and position algorithms seems to be a choice based on many considerations which are beyond the scope of this write-up.

9. There are options on filtering noise, such as providing a dead zone or a zone of low gain around the setpoint.

10. There are options to be considered in special cases, such as preventing reset windup in override and cascade situations.

11. Provision needs to be made for manual bias.

12. There must be other points to make to caution the novice. Does anyone want to suggest some?

REFERENCES AND LINKS

(NOTE TO READERS. If you want to contribute to this, please write me.)

I am aware of two Web sites that have information on the subject. 1. One is a copy of John Gerry's 1987 Control Engineering article.

2. Another is an offering by John Shaw.

Appendix K in Tuning and Control Loop Performance: A Practitioner's Guide, 3rd Edition, Revised, by G. K. McMillan, published by ISA, 1994 not only delineates the problem but gives a table of algorithms used by different manufacturers. I understand this appendix was written by Dave Ender of Techmation. It is reported to have a few errors and is not up to date, especially for Allen-Bradley.

(44)

The PID Algorithm for the Process Industries

Persons interested in tuning controllers might want to look at a companion web page, which describes a booklet Controller Tuning and Control Loop Performance, a Primer.

(45)

PID Control Information from John Shaw

You should have been redirect to

learncontrol.com/pid

Referencias

Documento similar

In the “big picture” perspective of the recent years that we have described in Brazil, Spain, Portugal and Puerto Rico there are some similarities and important differences,

Abstract: Transepidermal water-loss (TEWL), stratum-corneum hydration (SCH), erythema, elas- ticity, pH and melanin, are parameters of the epidermal barrier function and

MD simulations in this and previous work has allowed us to propose a relation between the nature of the interactions at the interface and the observed properties of nanofluids:

Government policy varies between nations and this guidance sets out the need for balanced decision-making about ways of working, and the ongoing safety considerations

Astrometric and photometric star cata- logues derived from the ESA HIPPARCOS Space Astrometry Mission.

In the previous sections we have shown how astronomical alignments and solar hierophanies – with a common interest in the solstices − were substantiated in the

Díaz Soto has raised the point about banning religious garb in the ―public space.‖ He states, ―for example, in most Spanish public Universities, there is a Catholic chapel

teriza por dos factores, que vienen a determinar la especial responsabilidad que incumbe al Tribunal de Justicia en esta materia: de un lado, la inexistencia, en el