Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1...

76
Process Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance criteria 7.4 Controller tuning based on frequency response 7.5 Controller tuning based on step response 7.6 Model - based controller tuning 7.7 Controller design by direct synthesis 7.8 Internal model control 7.9 Model simplification KEH Process Dynamics and Control 7–1

Transcript of Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1...

Page 1: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory 7. PID Controllers7.0 Overview7.1 PID controller variants7.2 Choice of controller type7.3 Specifications and performance criteria7.4 Controller tuning based on frequency response7.5 Controller tuning based on step response7.6 Model-based controller tuning7.7 Controller design by direct synthesis7.8 Internal model control7.9 Model simplification

KEH Process Dynamics and Control 7–1

Page 2: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.0 OverviewPID controller (”pee-i-dee”) is a generic name for a controller containing a linear combination of proportional (P) integral (I) derivative (D)

terms acting on a control error (or sometimes the process output).All parts need not be present. Frequently I and/or D action is missing, giving a controller like P, PI, or PD controller

It has been estimated that of all controllers in the world 95 % are PID controllers

KEH Process Dynamics and Control 7–2

Page 3: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.1 PID controller variants

An ideal PID controller is described by the control law

𝑒𝑒 𝑑𝑑 = 𝐾𝐾c 𝑒𝑒 𝑑𝑑 + 1𝑇𝑇i∫0𝑑𝑑 𝑒𝑒 𝜏𝜏 d𝜏𝜏 + 𝑇𝑇d

d𝑒𝑒(𝑑𝑑)d𝑑𝑑

+ 𝑒𝑒0 (7.1)

𝑒𝑒(𝑑𝑑) is the controller output 𝑒𝑒 𝑑𝑑 = π‘Ÿπ‘Ÿ 𝑑𝑑 βˆ’ 𝑦𝑦(𝑑𝑑) is the control error, which is the difference between the

setpoint π‘Ÿπ‘Ÿ(𝑑𝑑) and the measured process output 𝑦𝑦(𝑑𝑑) 𝐾𝐾c is the proportional gain 𝑇𝑇i is the integral time 𝑇𝑇d is the derivative time 𝑒𝑒0 is the β€œnormal” value of the controller output

The transfer function of the PID controller is

𝐺𝐺PID = π‘ˆπ‘ˆ(𝑠𝑠)𝐸𝐸(𝑠𝑠)

= 𝐾𝐾c 1 + 1𝑇𝑇i𝑠𝑠

+ 𝑇𝑇d𝑠𝑠 = 𝐾𝐾c𝑇𝑇i𝑠𝑠

1 + 𝑇𝑇i𝑠𝑠 + 𝑇𝑇i𝑇𝑇d𝑠𝑠2 (7.2)

π‘ˆπ‘ˆ(𝑠𝑠) is the Laplace transform of 𝑒𝑒 𝑑𝑑 βˆ’ 𝑒𝑒0 𝐸𝐸(𝑠𝑠) is the Laplace transform of the control error

KEH Process Dynamics and Control 7–3

7.1.1 Ideal PID controller

Page 4: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.1 PID controller variants

Depending on the values of 𝑇𝑇i and 𝑇𝑇d, the transfer function of the PID controller can have real or complex-valued zeros

Complex zeros might be useful for control of underdamped systems with complex poles.

A PI controller is obtained from a PID controller by letting 𝑇𝑇d = 0. Its transfer function is

𝐺𝐺PI = 𝐾𝐾c 1 + 1𝑇𝑇i𝑠𝑠

= 𝐾𝐾c𝑇𝑇i𝑠𝑠

1 + 𝑇𝑇i𝑠𝑠 (7.3)

A PD controller is obtained from a PID controller by letting 𝑇𝑇i = ∞. Its transfer function is

𝐺𝐺PD = 𝐾𝐾c 1 + 𝑇𝑇d𝑠𝑠 (7.4)

The ideal PID controller is sometimes referred to as the parallel form of a PID controller the (ISA) standard form

KEH Process Dynamics and Control 7–4

7.1.1 Ideal PID controller

Page 5: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.1.2 The series form of a PID controllerIn the pre-digital era it was convenient to implement an analog PID controller as a PI controller and a PD controller in series. This form of a PID controller is called the series form. Occasionally, the terms interactive form or classical form are used. The controller has the transfer function

𝐺𝐺PIPD = 𝐾𝐾cβ€² 1 + 1𝑇𝑇i′𝑠𝑠

1 + 𝑇𝑇d′𝑠𝑠 = 𝐾𝐾cβ€²

𝑇𝑇i′𝑠𝑠

1 + 𝑇𝑇i′𝑠𝑠 1 + 𝑇𝑇d′𝑠𝑠 (7.5)

where β€² is used to distinguish the parameters from the parameters of the parallel form. The series form of a PID controller can only have real valued zeros. This

means that the series form is less general than the parallel form. It is relatively easy to find the controller parameters of the series form by

frequency analytic methods by so-called lead-lag design.

Exercise 7.1Which is the control law in the time domain for a series form PID controller?

KEH Process Dynamics and Control 7–5

7.1 PID controller variants

Page 6: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.1.3 A PID controller with derivative filterA drawback with the ideal PID controller (7.1) is that the derivative part cannot be realized exactly in a real controller. For example, if the control error 𝑒𝑒(𝑑𝑑)changes as a step, the derivate in (7.1) becomes infinitely large. This problem can be remedied by filtering the signal to be differentiated.

This also has the practical advantage that (high-frequency) noise is filtered before differentiation.

The transfer function of a parallel form PID controller with a derivative filter is

𝐺𝐺PIDf = 𝐾𝐾c 1 + 1𝑇𝑇i𝑠𝑠

+ 𝑇𝑇d𝑠𝑠𝑇𝑇f𝑠𝑠+1

(7.6)

The transfer function of a series form PID controller with a derivative filter is usually stated in the form

𝐺𝐺PIPDf = 𝐾𝐾cβ€² 1 + 1𝑇𝑇i′𝑠𝑠

𝑇𝑇d′𝑠𝑠+1

𝑇𝑇f′𝑠𝑠+1

(7.7)

𝑇𝑇f and 𝑇𝑇fβ€² are filter constants, usually 10-30 % of corresponding derivative time.

KEH Process Dynamics and Control 7–6

7.1 PID controller variants

Page 7: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.1 PID controller variants

Relationships between parallel and series formIf the parameters of the series form are known, the corresponding parameters of the parallel form can be calculated according to

𝑇𝑇i = 𝑇𝑇iβ€² + 𝑇𝑇dβ€² βˆ’ 𝑇𝑇fβ€² , 𝑇𝑇d = 𝑇𝑇dβ€²

𝑇𝑇iβ€²

𝑇𝑇iβˆ’ 𝑇𝑇f

β€² , 𝑇𝑇f = 𝑇𝑇fβ€² , 𝐾𝐾c = 𝐾𝐾cβ€²

𝑇𝑇iβ€²

𝑇𝑇i(7.8)

For calculation of the parameters of the series form from the parameters of the parallel form, we define the parameter

𝛿𝛿 = 1 βˆ’ 4𝑇𝑇i(𝑇𝑇d+𝑇𝑇f)(𝑇𝑇i+𝑇𝑇f)2

(7.9)

If 𝛿𝛿 β‰₯ 0, the zeros of the parallel PID are real. Then, there exists a series-form PID controller which is equivalent to the parallel form according to

𝑇𝑇iβ€² = (𝑇𝑇i+𝑇𝑇f)2

1 + 𝛿𝛿 , 𝑇𝑇dβ€² = 𝑇𝑇i + 𝑇𝑇f βˆ’ 𝑇𝑇iβ€² , 𝑇𝑇fβ€² = 𝑇𝑇f , 𝐾𝐾cβ€² = 𝐾𝐾c

𝑇𝑇iβ€²

𝑇𝑇i(7.10)

The condition for 𝛿𝛿 β‰₯ 0 in terms of the controller parameters is

𝑇𝑇d ≀(𝑇𝑇iβˆ’π‘‡π‘‡f)2

4𝑇𝑇i(7.11)

i.e., the derivative time has to be β€œsmall enough”.

KEH Process Dynamics and Control 7–7

7.1.3 A PID controller with derivative filter

Page 8: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.1.4 Differentiation of the measured outputEven if we have a derivative filter, a step change in the setpoint π‘Ÿπ‘Ÿ(𝑑𝑑) tends to affect the derivative part much more strongly than a disturbance in the output 𝑦𝑦(𝑑𝑑). A remedy to this is to differentiate the (filtered) output instead of the control error 𝑒𝑒(𝑑𝑑).

The ideal control law (7.1) then becomes

𝑒𝑒 𝑑𝑑 = 𝐾𝐾c 𝑒𝑒 𝑑𝑑 + 1𝑇𝑇i∫0𝑑𝑑 𝑒𝑒 𝜏𝜏 d𝜏𝜏 βˆ’ 𝑇𝑇d

d𝑦𝑦f(𝑑𝑑)d𝑑𝑑

+ 𝑒𝑒0 (7.12a)

𝑇𝑇fd𝑦𝑦f(𝑑𝑑)d𝑑𝑑

+ 𝑦𝑦f 𝑑𝑑 = 𝑦𝑦(𝑑𝑑) (7.12b)

In the Laplace domain we get

π‘ˆπ‘ˆ 𝑠𝑠 = 𝐾𝐾c 1 + 1𝑇𝑇i𝑠𝑠

𝑅𝑅 𝑠𝑠 βˆ’ 𝐾𝐾c 1 + 1𝑇𝑇i𝑠𝑠

+ 𝑇𝑇d𝑠𝑠𝑇𝑇f𝑠𝑠+1

π‘Œπ‘Œ(𝑠𝑠) (7.13)

which is a combination of a PI controller and a PID controller

π‘ˆπ‘ˆ 𝑠𝑠 = 𝐺𝐺PI𝑅𝑅 𝑠𝑠 βˆ’ 𝐺𝐺PIDfπ‘Œπ‘Œ(𝑠𝑠) (7.14)

This kind of 2-degrees-of-freedom (2DOF) controller can be tuned separately for setpoint tracking and disturbance rejection.

KEH Process Dynamics and Control 7–8

7.1 PID controller variants

Page 9: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.1 PID controller variants

Exercise 7.2Which is the control law, both in the time domain and the Laplace domain, for the series form of a PID controller with differentiation of the filtered output measurement?

A simple way of obtaining a 2DOF PID controller is to use setpoint weighting. With the definitions

𝑒𝑒p = π‘π‘π‘Ÿπ‘Ÿ βˆ’ 𝑦𝑦 , 𝑒𝑒 = π‘Ÿπ‘Ÿ βˆ’ 𝑦𝑦 , 𝑒𝑒d = π‘π‘π‘Ÿπ‘Ÿ βˆ’ 𝑦𝑦f (7.15)

where 𝑏𝑏 and 𝑐𝑐 are setpoint weights, the control law becomes

𝑒𝑒 𝑑𝑑 = 𝐾𝐾c 𝑒𝑒p 𝑑𝑑 + 1𝑇𝑇i∫0𝑑𝑑 𝑒𝑒 𝜏𝜏 d𝜏𝜏 + 𝑇𝑇d

d𝑒𝑒d(𝑑𝑑)d𝑑𝑑

+ 𝑒𝑒0 (7.16a)

𝑇𝑇fd𝑦𝑦f(𝑑𝑑)d𝑑𝑑

+ 𝑦𝑦f 𝑑𝑑 = 𝑦𝑦(𝑑𝑑) (7.16b)

KEH Process Dynamics and Control 7–9

7.1.4 Differentiation of the measured output

7.1.5 Setpoint weighting

Page 10: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.1 PID controller variants

In the Laplace domain the control law with setpoint weighting is

π‘ˆπ‘ˆ 𝑠𝑠 = 𝐺𝐺vPID𝑅𝑅 𝑠𝑠 βˆ’ 𝐺𝐺PIDfπ‘Œπ‘Œ(𝑠𝑠) (7.17)where

𝐺𝐺vPID = 𝐾𝐾c 𝑏𝑏 + 1𝑇𝑇i𝑠𝑠

+ 𝑐𝑐𝑇𝑇d𝑠𝑠 (7.18)

and 𝐺𝐺PIDf is as in (7.6).

With suitable choices of 𝑏𝑏 and 𝑐𝑐, all previously treated PID controllers on parallel form can be obtained.

𝑏𝑏 and 𝑐𝑐 do not affect the controller’s ability to reject disturbances in the output, only the ability to track setpoint changes.

𝐺𝐺vPID can be tuned for setpoint tracking and 𝐺𝐺PIDf for disturbance rejection(i.e., 𝐾𝐾c, 𝑇𝑇i and 𝑇𝑇d need not have the same values in 𝐺𝐺vPID and 𝐺𝐺PIDf).

Exercise 7.3Include setpoint weighting in the series form of a PID controller.

KEH Process Dynamics and Control 7–10

7.1.5 Setpoint weighting

Page 11: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.1.6 Non-interactive form of a PID controller In the control laws treated so far, the proportional part alone cannot be

disconnected by letting 𝐾𝐾c = 0 because that would disconnect all parts; it would put the controller on β€œmanual” with 𝑒𝑒 𝑑𝑑 = 𝑒𝑒0.

Tuning the proportional part by adjusting 𝐾𝐾c will affect all controller parts(however, this is often a desired feature); hence, it is an interactive controller form.

The non-interactive form

𝑒𝑒 𝑑𝑑 = 𝐾𝐾c𝑒𝑒𝑝𝑝 𝑑𝑑 + 𝐾𝐾i ∫0𝑑𝑑 𝑒𝑒 𝜏𝜏 d𝜏𝜏 + 𝐾𝐾d

d𝑒𝑒d(𝑑𝑑)d𝑑𝑑

+ 𝑒𝑒0 (7.19)

is a more flexible control law. In the Laplace domain it can be written

π‘ˆπ‘ˆ 𝑠𝑠 = 𝐺𝐺vP+I+D𝑅𝑅 𝑠𝑠 βˆ’ 𝐺𝐺P+I+Dfπ‘Œπ‘Œ(𝑠𝑠) (7.20)where

𝐺𝐺vP+I+D = 𝐾𝐾c𝑏𝑏 + 𝐾𝐾iπ‘ π‘ βˆ’1 + 𝑐𝑐𝐾𝐾d𝑠𝑠 (7.21a)

𝐺𝐺P+I+Df = 𝐾𝐾c + 𝐾𝐾iπ‘ π‘ βˆ’1 + 𝐾𝐾d𝑠𝑠(𝑇𝑇f𝑠𝑠 + 1)βˆ’1 (7.21b)

Note: It is essential to know which form is used when tuning a controller!

KEH Process Dynamics and Control 7–11

7.1 PID controller variants

Page 12: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.2 Choice of controller typeThe choice between controller types such as P, PI, PD, PID is considered. In principle, the simplest controller that can do the job should be chosen.

An on-off controller is the simplest type of controller, where the control signal has only two levels. If the variables are defined such that a positive control error 𝑒𝑒(𝑑𝑑) should be corrected by an increase of the control signal 𝑒𝑒(𝑑𝑑), the control law is

𝑒𝑒 𝑑𝑑 = �𝑒𝑒max if 𝑒𝑒 𝑑𝑑 > 𝑒𝑒hi𝑒𝑒0 or unchanged if 𝑒𝑒lo ≀ 𝑒𝑒 𝑑𝑑 ≀ 𝑒𝑒hi𝑒𝑒min if 𝑒𝑒 𝑑𝑑 < 𝑒𝑒lo

(7.22)

where 𝑒𝑒max, 𝑒𝑒0, 𝑒𝑒min are the high, normal, low value of the control signal. The interval [𝑒𝑒lo, 𝑒𝑒hi] is a dead zone. In the simplest case, 𝑒𝑒lo = 𝑒𝑒hi = 0.

The on-off controller is inexpensive, but it causes oscillations in the pro-cess. It is often used for temperature control in simple appliances such as ovens, irons,refrigerators and freezers, where oscillations are tolerated.

KEH Process Dynamics and Control 7–12

7.2.1 On-off controller

Page 13: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.2.2 P controllerA P controller implements the simple control law

𝑒𝑒 𝑑𝑑 = 𝐾𝐾c𝑒𝑒 𝑑𝑑 + 𝑒𝑒0 (7.23)

where 𝐾𝐾c is the adjustable controller gain and 𝑒𝑒0 is the normal value of the control signal, which is also be adjustable. In principle, 𝑒𝑒0 is selected to make the control error 𝑒𝑒 𝑑𝑑 = 0 at the nominal operating point.

If the output is changed by a disturbance or a setpoint change, the P controller is unable to bring the control error to zero, i.e., there will be a remaining control error.

The higher the controller gain, the smaller the control error. Thus, P control is used when a (small) control error is allowed and a high controller gain can be used without risk of instability.

A typical application for P control is level control in a liquid tank. Another situation when P control is often sufficient is as an inner loop (a secondary loop) in so-called cascade control.

KEH Process Dynamics and Control 7–13

7.2 Choice of controller type

Page 14: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.2.3 PI controllerA PI controller is by far the most common type of controller. The ideal PI controller implements the control law

𝑒𝑒 𝑑𝑑 = 𝐾𝐾c 𝑒𝑒 𝑑𝑑 + 1𝑇𝑇i∫0𝑑𝑑 𝑒𝑒 𝜏𝜏 d𝜏𝜏 + 𝑒𝑒0 (7.24)

where the gain 𝐾𝐾c and the integral time 𝑇𝑇i are adjustable parameters; 𝑒𝑒0 is less important due to the integral.

The main advantage of the PI controller is that there will be no remaining control error after a setpoint change or a process disturbance. A disadvantage is that there is a tendency for oscillations.

PI control is used when no steady-state error is desired and there is no reason to use derivative action. Measurement noise is often a reason for not using derivative action.

PI control is suitable for noisy processes, integrating processes and processes resembling first-order systems. The most typical application is flow control. PI control might also be preferable for processes with large time delays.

KEH Process Dynamics and Control 7–14

7.2 Choice of controller type

Page 15: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.2.4 PD controllerThe ideal form of a PD controller implements the control law

𝑒𝑒 𝑑𝑑 = 𝐾𝐾c 𝑒𝑒 𝑑𝑑 + 𝑇𝑇dd𝑒𝑒(𝑑𝑑)d𝑑𝑑

+ 𝑒𝑒0 (7.25)

where the gain 𝐾𝐾c and the derivative time 𝑇𝑇d are adjustable parameters; 𝑒𝑒0 is chosen as for a P controller.

A PD controller is preferred when integral action is not needed, but the dynamics of the process are so slow that the predictive nature of derivative action is useful.

Many thermal processes, where energy is stored with small heat losses (e.g., ovens), usually have slow dynamics, almost as integrating systems. A PD controller might then be suitable for temperature control.

Another typical application for PD control is in servo mechanisms such as electrical motors, which usually behave as second-order integrating systems.

KEH Process Dynamics and Control 7–15

7.2 Choice of controller type

Page 16: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.2.5 PID controllerAs has been shown in Section 7.1, there are many variants of PID controllers. The ideal form and the classical series form have 3 adjustable parameters in

addition to 𝑒𝑒0 : the proportional gain, the integral time, and the derivative time.

If a derivative filter is included, there are 4 adjustable parameters, but the filter time constant is usually selected as a given fraction (e.g., 10 %) of the derivative time.

In addition, the setpoint can be weighted in the proportional part and the derivative part.

If there is no reason to exclude integral action or derivative action, a PID controller is the natural choice. Typically PID control is used for underdampedprocesses, processes with slow dynamics and not very large time delays, and systems of second and higher order.

Typical applications are control of temperature and chemical composition when the process is not close to an integrating system.

KEH Process Dynamics and Control 7–16

7.2 Choice of controller type

Page 17: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.3 Specifications and performance criteria

The task of a controller is to control a system to behave in a desired way despite unknown disturbances and an inaccurately known system.

The controlled system should satisfy performance criteria such as: The controlled system must be stable; this is absolutely necessary. The effect of disturbances on the controlled output is minimized; this is

especially important for regulatory control. The controlled output should follow setpoint changes fast and smoothly; this

is especially important for setpoint tracking. The control error is minimized or kept within certain limits, The control signal variations should be moderate or at least not be excessively

large; more variations wear out control equipment faster. The control system should be robust (insensitive) to moderate changes in

system properties, which introduce model uncertainty.The importance of these criteria varies from case to case. Since many criteria are conflicting, compromises have to be made in the control design.

KEH Process Dynamics and Control 7–17

7.3.1 General performance criteria

Page 18: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.3.2 Fundamental limitationsOne reason to the fact that there are usually good solutions to the conflicting control criteria is that feedback control is used. However, feedback also introduces limitations because a control error is

required for the controller to take action. The fact that the available resources for control are always limited, also limit

the achievable performance.

In addition to the general limitations above, there are also limitations that depend on the process to be controlled, e.g.,

the dynamics of the process nonlinearities model and process uncertainty disturbances control signal limitations

KEH Process Dynamics and Control 7–18

7.3 Specifications and performance criteria

Page 19: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.3 Specifications and performance criteria

The process dynamics is often the performance-limiting factor. Such factors are time delays as well as RHP (right-half plane) poles and zeros high-order dynamics

In practice, all processes are nonlinear. Such a process cannot be described accurately at different operating points by a linear model

with constant parameters; thus there is model/process uncertainty.

Disturbances such as load disturbances and measurement noise limit how well a variable can be controlled.

Efficient control of load disturbances often require derivative action, but measurement noise is bad for the derivative.

Large load disturbances can cause the control variable to reach its (physical) maximum or minimum value. This is especially troublesome if the controller contains an integrator. Proportional band and integrator windup are two concepts that deal with this limitation.

KEH Process Dynamics and Control 7–19

7.3.2 Fundamental limitations

Page 20: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.3.3 Proportional band and integrator windupProportional bandA controller’s proportional band (PB) denotes the maximum control error the controller can handle with the available control signal. The PB is defined for a P controller, but it can be extended to a full PID controller.

If the control signal is limited by 𝑒𝑒min ≀ 𝑒𝑒(𝑑𝑑) ≀ 𝑒𝑒max , a P controller can according to (7.23) handle a control error that satisfies

𝑒𝑒minβˆ’π‘’π‘’0𝐾𝐾c

≑ 𝑒𝑒min ≀ 𝑒𝑒(𝑑𝑑) ≀ 𝑒𝑒max ≑𝑒𝑒maxβˆ’π‘’π‘’0

𝐾𝐾c(7.26)

The PB is equal to 𝑒𝑒max βˆ’ 𝑒𝑒min = 𝑦𝑦hi βˆ’ 𝑦𝑦lo, where 𝑦𝑦hi is the highest output (𝑒𝑒min = π‘Ÿπ‘Ÿ βˆ’ 𝑦𝑦hi) and 𝑦𝑦lo is the lowest output (𝑒𝑒max = π‘Ÿπ‘Ÿ βˆ’ 𝑦𝑦lo) the controller can handle. Usually, the PB is defined in percent of the total measurable output interval 𝑦𝑦min,𝑦𝑦max . Then, the PB is

𝑃𝑃b = 𝑦𝑦hiβˆ’π‘¦π‘¦lo𝑦𝑦maxβˆ’π‘¦π‘¦min

100% = 𝑒𝑒maxβˆ’π‘’π‘’min𝑦𝑦maxβˆ’π‘¦π‘¦min

β‹… 100%𝐾𝐾c

(7.27)

KEH Process Dynamics and Control 7–20

7.3 Specifications and performance criteria

Page 21: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.3.3 Proportional band and integrator windup

If the proportional band is known, the controller gain is given by

𝐾𝐾c = 𝑦𝑦hiβˆ’π‘¦π‘¦lo𝑦𝑦maxβˆ’π‘¦π‘¦min

100% = 𝑒𝑒maxβˆ’π‘’π‘’min𝑦𝑦maxβˆ’π‘¦π‘¦min

β‹… 100%𝑃𝑃b

(7.28)

In (old) automation systems, the signals are often expressed as a fraction or percentage of the total signal interval (0-1 or 0-100%). The PB is then

𝑃𝑃b = 100%/𝐾𝐾c (7.29)

Note that the controller gain here has to be expressed in terms of normalized signals, which means that the controller gain is dimensionless.

The practical usefulness of the PB is that it tells something about the size of control errors that can be handled without reaching an input signal constraint. If 𝑒𝑒0 is in the middle of the interval 𝑒𝑒min,𝑒𝑒max , a P controller with 𝑃𝑃b = 50 %can handle an instantaneous control error equal to Β±25 % (i.e., 50 % in total) of the total output signal range.

Note that the PB is an adjustable controller parameter β€” if it is to small, it can be increased (corresponding to a decrease of 𝐾𝐾c).

KEH Process Dynamics and Control 7–21

Proportional band

Page 22: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.3 Specifications and performance criteria

Integrator windupUsually controllers are tuned for stability and performance, not for signal limits. Therefore, it is not uncommon that a control signal reaches a constraint. If the controller contains integral action, this can be very damaging to the control performance unless the situation is handled properly.

Consider the figure, where the PI control law (7.24) is used. A strong disturbance causes the process output to fall well below the set-point. The controller is not able to eliminate the control error (A)because the control signal has reached aconstraint. During this time, the positivecontrol error will increase the integral inthe controller. If the disturbance laterdisappears, the controller will still keepthe control signal at the constraint dueto the large value of the integral, evenIf the control error goes below zero.This will cause the output (B), which isentirely due to the controller.

Illustration of integral windup.

KEH Process Dynamics and Control 7–22

7.3.3 PB and integrator windup

Page 23: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.3.3 Proportional band and integrator windup

The described phenomenon is called integrator windup, integral windup, or reset windup.

There are sophisticated as well as simple methods for handling the problem. The term anti-windup is used for such arrangements.

A simple solution is to stop integrating when a control signal reaches a constraint.This requires that it is known when the control signal reaches a constraint (e.g., through

measurement) there is some built-in logic to interrupt the integration

In the case of digital control, which nowadays is customary, automatic anti-windup can be built into the control law.

KEH Process Dynamics and Control 7–23

Integrator windup

Page 24: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.3.4 Design specificationsAbove, some general performance criteria and fundamental limitations to achievable control performance have been considered. Here, some ways of making more specific design specifications will be

introduced. If a process model is available, the specifications make it possible to calculate

controller parameters.

Step-response specificationsIt is of often desired that the closed-loop response to a step change in the setpoint resembles an underdamped second-order system. Therefore, parameters familiar from the step response of such a system can be used to specify the desired behaviour. Such parameters are the maximum relative overshoot 𝑀𝑀 the rise time 𝑑𝑑r the settling time 𝑑𝑑𝛿𝛿 the relative damping 𝜁𝜁 the ratio between successive relative overshoots (or undershoots) 𝑀𝑀R

KEH Process Dynamics and Control 7–24

7.3 Specifications and performance criteria

Page 25: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.3.4 Design specifications

According to the relationships in Section 5.3.3: The two parameters 𝑀𝑀 and 𝑑𝑑r are sufficient to determine the transfer

function of an underdamped second-order system with a given gain. The settling time 𝑑𝑑𝛿𝛿 can be used instead of 𝑀𝑀 or 𝑑𝑑r , but the relationships

are then only approximate. The relative damping 𝜁𝜁 or the overshoot ratio 𝑀𝑀R can be specified instead

of 𝑀𝑀.

Some classical tuning recommendations are based on the specification 𝑀𝑀R =1/4. This may be acceptable for regulatory control, but not for setpoint tracking. 𝑀𝑀R = 1/4 corresponds to 𝑀𝑀 = 0.5 (i.e., a 50 % overshoot) and 𝜁𝜁 = 0.22 .

For setpoint tracking, 𝑀𝑀 β‰ˆ 0.1 (𝜁𝜁 β‰ˆ 0.6) is usually more appropriate.

If an overdamped closed-loop response is desired, this cannot be achieved with a specification 𝜁𝜁 > 1 , because the other parameters require an underdamped system. Instead, the closed-loop transfer function can be directly specified and controller parameters calculated by direct synthesis (Section 7.7), for example.

KEH Process Dynamics and Control 7–25

Step-response specifications

Page 26: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.3 Specifications and performance criteria

Error integralsIn principle, a small overshoot, rise time and settling time are desired. In practice, the overshoot and settling time will increase with decreasing rise time, and vice versa. Therefore, compromises have to be made.

One way of solving this problem in an optimal way is to specify some error integral to be minimized. Examples of such error integrals are

𝐽𝐽IAE = ∫0𝑑𝑑s 𝑒𝑒(𝑑𝑑) d𝑑𝑑 , 𝐽𝐽ISE = ∫0

𝑑𝑑s 𝑒𝑒(𝑑𝑑)2 d𝑑𝑑

𝐽𝐽ITAE = ∫0𝑑𝑑s 𝑑𝑑 𝑒𝑒(𝑑𝑑) d𝑑𝑑 , 𝐽𝐽ITSE = ∫0

𝑑𝑑s 𝑑𝑑𝑒𝑒(𝑑𝑑)2 d𝑑𝑑(7.30)

where the acronyms are– IAE = β€œintegrated absolute error”– ISE = β€œintegrated square error”– ITAE = β€œintegrated time-weighted absolute error”– ITSE = β€œintegrated time-weighted square error”The weighting with time forces the control error towards zero as time increases. In principle, the integration time should be infinite, but because the minimization has to be done numerically, a finite 𝑑𝑑s has to be used.

KEH Process Dynamics and Control 7–26

7.3.4 Design specifications

Page 27: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.3.4 Design specifications

It is of interest to consider how the error integrals relate to step-response specifications when the closed-loop system is of second order, i.e.,

𝐺𝐺 𝑠𝑠 = πœ”πœ”n2

𝑠𝑠2+2πœπœπœ”πœ”n𝑠𝑠+πœ”πœ”n2 (7.31)

In the figure, IAE and ISE are normalized with πœ”πœ”n , ITAE and ITSE with πœ”πœ”n2. As can be seen, every normalized error integral has a minimum for a given relative damping 𝜁𝜁 . This damping as wellas the corresponding relativeovershoot 𝑀𝑀 are shown below.

Table 7.1 Optimal relativedamping for 2nd order system.

Error integrals as function of 𝜁𝜁.

KEH Process Dynamics and Control 7–27

Error integrals

Error integral ΞΆ M (%)

ISE 0.50 16.3 ITSE 0.59 10.1 IAE 0.66 6.3

ITAE 0.75 2.8

Page 28: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.4 Tuning based on frequency response

An ideal PID controller of interactiveform can be tuned experimentallyby making closed-loop control experi-ments with the real process. Thestandard feedback structure is used.

1. A P controller (𝐺𝐺c = 𝐾𝐾c) is used for the first experiment. A low value is chosen for the gain 𝐾𝐾c . Note that 𝐾𝐾c must have the same sign as 𝐾𝐾p .

2. A change in the setpoint 𝑅𝑅 is introduced. (Some other disturbance could also be used.) The controller gain 𝐾𝐾c is increased until the output π‘Œπ‘Œ starts to oscillate with a constant amplitude (see next slide).

3. The value of the controller gain yielding constant oscillations is denoted 𝐾𝐾c,max . The period of the oscillations is denoted 𝑃𝑃c .

4. The controller gain is changed to 𝐾𝐾c = 0.5𝐾𝐾c,max . If the intention was to tune a P controller, this is the final tuning.

KEH Process Dynamics and Control 7–28

7.4.1 Experimental tuning

G

Page 29: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.4 Tuning based on frequency response

5. To tune a controller with integralaction (PI or PID), an experimentis done with a PI controller using𝐾𝐾c = 0.5𝐾𝐾c,max . A large value isinitially used for the integral time 𝑇𝑇i.

6. A change in the setpoint 𝑅𝑅 (or someother disturbance) is introduced. Theintegral time 𝑇𝑇i is reduced until π‘Œπ‘Œstarts to oscillate with a constantamplitude. This occurs at 𝑇𝑇i = 𝑇𝑇i,min .

7. The integral time for a PI or PIDcontroller is chosen as 𝑇𝑇i = 3𝑇𝑇i,min .

7. To tune the derivative part of a PID (or PD) controller, an experiment is done with such a controller using 𝐾𝐾c = 0.5𝐾𝐾c,max , 𝑇𝑇i = 3𝑇𝑇i,min (if a PID controller). The derivative time is initially set at 𝑇𝑇d = 0 .

9. A change in the setpoint 𝑅𝑅 (or some other disturbance) is introduced.The derivative time 𝑇𝑇d is increased until the output π‘Œπ‘Œ starts to oscillate with a constant amplitude. This occurs when 𝑇𝑇d = 𝑇𝑇d,max.

10. The derivative time for a PD or PID controller is set at 𝑇𝑇d = 13𝑇𝑇d,max .

KEH Process Dynamics and Control 7–29

7.4.1 Experimental tuning

Page 30: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.4 Tuning based on frequency response

If the control performance obtained by the above tunings turns out to be unsatisfactory, the controller parameters can be adjusted by β€œtrial and error”.

The next figure shows how changes of the controller gain 𝐾𝐾c and the integral time 𝑇𝑇i typically affect the control performance. The optimal performance is in this case obtained by 𝐾𝐾c = 3 and 𝑇𝑇i = 11 .

𝑇𝑇i = 5 𝑇𝑇i = 11 𝑇𝑇i = 20

𝐾𝐾c = 5

𝐾𝐾c = 3

𝐾𝐾c = 1

KEH Process Dynamics and Control 7–30

7.4.1 Experimental tuning

Page 31: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.4.2 Ziegler-Nichols’s recommendationsIn 1942, Ziegler and Nichols suggested tunings for P, PI and PID controllers based on 𝐾𝐾c,max and 𝑃𝑃c only. To obtain this information, it is sufficient to do steps 1–3 in the experimental procedure.

The tunings are primarily intended for regulatory control (i.e., disturbance rejection). For setpoint tracking, setpoint weighting is suggested, e.g. 𝑏𝑏 = 0.5.

The controller tuning should Table 7.2. Ziegler-Nichols’s controllerpreferably not be used out- tuning recommendations based onside the range 0.1 < πœ…πœ… < 0.5, frequency response (0.1 < πœ…πœ… < 0.5).where

πœ…πœ… = 𝐾𝐾𝐾𝐾c,maxβˆ’1

.

𝐾𝐾 is the process gain.

The critical frequency πœ”πœ”c isoften used instead of 𝑃𝑃c:

πœ”πœ”c = 2πœ‹πœ‹/𝑃𝑃c.

KEH Process Dynamics and Control 7–31

7.4 Tuning based on frequency response

Controller c c,max/K K i c/T P d c/T P

P 0.5 – – PI 0.45 0.8 –

PID 0.6 0.5 0.125

Page 32: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.4.3 Γ…strΓΆm’s and HΓ€gglund’s correlationsIn 2006, Γ…strΓΆm and HΓ€gglund showed that, in general, 𝐾𝐾c,max and 𝑃𝑃c alone do not provide sufficient information for good controller tuning.

In addition to 𝐾𝐾c,max and 𝑃𝑃c , Γ…strΓΆm and HΓ€gglund also use the parameter πœ…πœ… = 𝐾𝐾𝐾𝐾c,max

βˆ’1in their controller tuning correlations.

The tuning correlations are primarily intended for regulatory control; for setpoint tracking, setpoint weighting is suggested.

The correlations should Table 7.3. Γ…strΓΆm-HΓ€gglund’s controllernot be used below the tuning correlations based on frequencyrange πœ…πœ… > 0.1 . response (πœ…πœ… > 0.1).

Large time delays areallowed, but clearlyunderdamped systemsare less suitable.

KEH Process Dynamics and Control 7–32

7.4 Tuning based on frequency response

Controller c c,max/K K i c/T P d c/T P

PI 0.16 1(1 4.5 )ΞΊ βˆ’+ –

PID 40.3 0.1ΞΊβˆ’ 0.6

1 2ΞΊ+ 0.15(1 )

1 0.95ΞΊΞΊ

βˆ’βˆ’

Page 33: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.5 Tuning based on step responseA drawback with generating the frequency response is that it is quite cumbersome and time-consuming to generate oscillations with constant amplitude by adjusting a controller parameter.

An alternative is to use a step response for the process.

The figure illustrates how theneeded parameters are obtainedfrom a unit-step response, i.e., astep with size 𝑒𝑒step = 1 expressedin the units used for the controlvariable.

The method is based on the(modified) tangent method, buthere it is not necessary to waitfor the new steady state; onlythe parameters π‘Žπ‘Ž and 𝐿𝐿 need Characteristic parameters from ato be determined. monotonous unit-step response.

KEH Process Dynamics and Control 7–33

L

iy

it

Page 34: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

Instead of taking the π‘Žπ‘Ž parameter from the point, where the tangent through the inflexion point (i.e., the point where the slope is highest) of the step response crosses the vertical axis, it can be calculated when the coordinates (𝑑𝑑i,𝑦𝑦i) of the inflexion point are known. The calculation is valid for any size of 𝑒𝑒step . The formula for π‘Žπ‘Ž is

π‘Žπ‘Ž = 𝐿𝐿𝑦𝑦i𝑒𝑒step(𝑑𝑑iβˆ’πΏπΏ)

(7.32)

Another useful parameter is

πœƒπœƒ = 𝐿𝐿/𝑇𝑇eq , 𝑇𝑇eq = 𝑑𝑑63 βˆ’ 𝐿𝐿 (7.33)

where 𝑇𝑇eq is the equivalent time constant of the system and 𝑑𝑑63 is the time it takes to reach 63 % of the total output change.

The step response of a purely integrating system is a ramp that changes linearly with time, i.e., it has a constant slope. Any point on the ramp can then be used as a pair of coordinates (𝑑𝑑i,𝑦𝑦i) for calculation of π‘Žπ‘Ž according to (7.32).

KEH Process Dynamics and Control 4–34

7.5 Tuning based on step responsecaKi /T Td /T LcaKi /T Td /T L

Page 35: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.5.1 Ziegler-Nichols’s recommendationsIn 1942, Ziegler and Nichols suggested tunings for P, PI and PID controllers based also on the information that can be obtained from a step test. Their recommendations for an ideal controller are given in Table 7.4.The method requires 𝐿𝐿 > 0 and preferably 0.1 ≀ πœƒπœƒ ≀ 1.

Table 7.4. Ziegler-Nichols’s controller tuningrecommendations based on step response.

Note that Ziegler-Nichols’s recommendations based on frequency response and step response do not necessarily give the same controller tuning for the same process.

KEH Process Dynamics and Control 7–35

7.5 Tuning based on step response

Controller caK i /T L d /T L

P 1.0 – – PI 0.9 3 –

PID 1.2 2 0.5

Page 36: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.5.2 The CHR methodIn 1952, Chien, Hrones and Reswick suggested improvements to Ziegler’s and Nichols’s recommendations based on a step response. The CHR-method gives different tunings for regulatory control and setpoint tracking tunings for aggressive control (with ~20 % overshoot) and cautious control

(no overshoot)

The method requires 𝐿𝐿 > 0 and preferably 0.1 ≀ πœƒπœƒ ≀ 1.

The CHR tunings (even the aggressive one) are less aggressive than the ZN tuning.

Note that the different tunings for regulatory control and setpoint tracking can directly be used in a 2DOF controller.

KEH Process Dynamics and Control 7–36

7.5 Tuning based on step response

Page 37: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.5 Tuning based on step response

Controller No overshoot 20 % overshoot

caK i /T T d /T L caK i /T T d /T L

P 0,3 – – 0,7 – – PI 0,35 1,2 – 0,6 1,0 –

PID 0,6 1,0 0,5 0,95 1,4 0,47

Table 7.5. Controller tuning for regulatory control by the CHR method.

Table 7.6. Controller tuning for setpoint tracking by the CHR method.

KEH Process Dynamics and Control 7–37

7.5.2 The CHR method

Controller No overshoot 20 % overshoot

caK i /T L d /T L caK i /T L d /T L

P 0.3 – – 0.7 – – PI 0.6 4.0 – 0.7 2.3 –

PID 0.95 2.4 0.42 1.2 2.0 0.42

i eq/T T i eq/T T

Page 38: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.5.3 Γ…strΓΆm’s and HΓ€gglund’s correlationsIn 2006, Γ…strΓΆm and HΓ€gglund presented improved controller tunings based on a step response. In addition to π‘Žπ‘Ž and 𝐿𝐿 , they use πœƒπœƒ in their correlations, which can be used for all πœƒπœƒ β‰₯ 0. However, for πœƒπœƒ < 0.4 , the tunings tend to be conservative. For an integrating process, πœƒπœƒ = 0 is used.

The tunings are primarily intended for regulatory control. For setpoint tracking, setpoint weighting can be used as follows: PI control: 𝑏𝑏 = 1 if πœƒπœƒ > 0.4 , 𝑏𝑏 < 1 if πœƒπœƒ ≀ 0.4 (optimal 𝑏𝑏 is unclear) PID control: 𝑏𝑏 = 1 if πœƒπœƒ > 1 , 𝑏𝑏 = 0 if πœƒπœƒ ≀ 1

Table 7.7. Γ…strΓΆm’s and HΓ€gglund’s controller tuning correlations.

KEH Process Dynamics and Control 7–38

7.5 Tuning based on step response

Controller caK i /T L d /T L

PI 20.35 0.15(1 )

ΞΈΞΈΞΈ

+ βˆ’+

2130.35

1 12 7ΞΈ ΞΈ+

+ + –

PID 0.45 0.2ΞΈ+ 8 41 10

ΞΈΞΈ

++

0.51 0.3ΞΈ+

Page 39: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.6 Model-based controller tuningThe controller tuning methods in Sections 7.4 and 7.5 employ parameters that can be determined from an experiment with an existing process.

If a process model is known, the same parameters can be determined through a simulation experiment possibly by direct calculation from the process model

For example, a first-order system with a time delay has the transfer function

𝐺𝐺 𝑠𝑠 = 𝐾𝐾𝑇𝑇𝑠𝑠+1

eβˆ’πΏπΏπ‘ π‘  (7.34)

from which the parameters π‘Žπ‘Ž and πœƒπœƒ can be calculated according to

π‘Žπ‘Ž = 𝐾𝐾𝐿𝐿𝑇𝑇

, πœƒπœƒ = 𝐿𝐿𝑇𝑇

(7.35)

The same tuning methods as in Sections 7.4 and 7.5 can then be used.

However, the methods in Sections 7.4 and 7.5 are β€œgeneral purpose” methods that are not optimized for any specific model type.

For a given model, better controller tunings probably exist.

KEH Process Dynamics and Control 7–39

Page 40: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.6.1 First-order system with a time delayThe transfer function is defined in (7.34) and the parameter πœƒπœƒ in (7.35).

Minimization of error integralsController tunings that minimize IAE and ITAE when 0.1 ≀ πœƒπœƒ ≀ 1.

Table 7.8. IAE and ITAE minimizing controller tunings for regulatory control.

Table 7.9. IAE and ITAE minimizing controller tunings for setpoint tracking.

KEH Process Dynamics and Control 7–40

7.6 Model-based controller tuning

Error integral

P controller PI controller PID controller

cKK cKK i /T T cKK i /T T d /T T

IAE 0.9850.902 ΞΈ βˆ’ 0.9860.984ΞΈ βˆ’ 0.7071.645ΞΈ 0.9211.435ΞΈ βˆ’ 0.7491.139ΞΈ 1.1370.482ΞΈ

ITAE 1.0840.490 ΞΈ βˆ’ 0.9770.859ΞΈ βˆ’ 0.6801.484ΞΈ 0.9471.357 ΞΈ βˆ’ 0.7381.188ΞΈ 0.9950.381ΞΈ

Error integral

PI controller PID controller

cKK i /T T cKK i /T T d /T T

IAE 0.8610.758ΞΈ βˆ’ 1(1.020 0.323 )ΞΈ βˆ’βˆ’ 0.8691.086ΞΈ βˆ’ 1(0.740 0.130 )ΞΈ βˆ’βˆ’ 0.9140.348ΞΈ

ITAE 0.9160.586 ΞΈ βˆ’ 1(1.030 0.165 )ΞΈ βˆ’βˆ’ 0.8550.965ΞΈ βˆ’ 1(0.796 0.147 )ΞΈ βˆ’βˆ’ 0.9290.308ΞΈ

Page 41: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.6 Model-based controller tuning

Other optimality criteriaThe controller tunings for minimizing the error integrals IAE and ITAE in Tables 7.8 and 7.9 do not give any robustness guarantees. Thus, the control performance can be bad if the model contains errors.

Cvejn (2009) has derived controller tunings that have a certain robustness even for systems with large time delays, i.e., for large πœƒπœƒ values.

Table 7.10. Cvejn’s tunings for regulatory control and setpoint tracking.

The PI controller tunings tend to give better robustness than the PID controllertunings, which tend to give better performance.

KEH Process Dynamics and Control 7–41

7.6.1 First-order system with time delay

Control PI controller PID controller

cKK i /T T cKK i /T T d /T T

Regulatory 1

2ΞΈ 5.92

1 5.92ΞΈ

ΞΈ+ 3.26

4ΞΈ

ΞΈ+ 3.91

1 3.91 3ΞΈ ΞΈ

ΞΈ+

+

3.26ΞΈ

ΞΈ+

Tracking 1

2ΞΈ 1 3

4ΞΈ

ΞΈ+ 1

3ΞΈ+

3ΞΈ

ΞΈ+

Page 42: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.6.2 Second-order no-zero system with a time delayWe shall consider second-order systems with a time delay but no zeros. Such a system has the transfer function

𝐺𝐺 𝑠𝑠 = πΎπΎπœ”πœ”n2

𝑠𝑠2+2πœπœπœ”πœ”n𝑠𝑠+πœ”πœ”n2 eβˆ’πΏπΏπ‘ π‘  (7.36)

In Cvejn’s method for tracking control, the controller 𝐺𝐺c(𝑠𝑠) is tuned to give the loop transfer 𝐺𝐺ℓ(𝑠𝑠) = 𝐺𝐺(𝑠𝑠)𝐺𝐺c(𝑠𝑠) such that

𝐺𝐺ℓ 𝑠𝑠 = 12𝐿𝐿𝑠𝑠

eβˆ’πΏπΏπ‘ π‘  (7.37)or

𝐺𝐺ℓ 𝑠𝑠 = 14

1 + 3𝐿𝐿𝑠𝑠

eβˆ’πΏπΏπ‘ π‘  (7.38)

Tuning by (7.37) gives better stability, (7.38) gives better performance.

Exercise 7.3Use Cvejn’s method for tracking control to tune a PID controller for the system (7.36).

KEH Process Dynamics and Control 7–42

7.6 Model-based controller tuning

Page 43: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.6 Model-based controller tuning

Overdamped system without zerosFor an overdamped (or critically damped) second-order system, 𝜁𝜁 β‰₯ 1. In this case, (7.36) is more conveniently written as

𝐺𝐺 𝑠𝑠 = 𝐾𝐾(𝑇𝑇1𝑠𝑠+1)(𝑇𝑇2𝑠𝑠+1)

eβˆ’πΏπΏπ‘ π‘ , 𝑇𝑇1 β‰₯ 𝑇𝑇2 (7.39)

Cvejn’s method can be used also in this case, but Γ…strΓΆm and HΓ€gglund (2006) suggest the following tuning when the system is overdamped:

𝐾𝐾𝐾𝐾c = 0.19 + 0.37πœƒπœƒ1βˆ’1 + 0.18πœƒπœƒ2βˆ’1 + 0.02πœƒπœƒ1βˆ’1πœƒπœƒ2βˆ’1

𝐾𝐾𝐾𝐾c𝐿𝐿/𝑇𝑇i = 0.48 + 0.03πœƒπœƒ1βˆ’1 βˆ’ 0.0007πœƒπœƒ2βˆ’1 + 0.0012πœƒπœƒ1βˆ’1πœƒπœƒ2βˆ’1 (7.40)

𝐾𝐾𝐾𝐾c𝑇𝑇d/𝐿𝐿 = 0.29 + 0.16πœƒπœƒ1βˆ’1 βˆ’ 0.2πœƒπœƒ2βˆ’1 + 0.28πœƒπœƒ1βˆ’1πœƒπœƒ2βˆ’1πœƒπœƒ1+πœƒπœƒ2

πœƒπœƒ1+πœƒπœƒ2+πœƒπœƒ1πœƒπœƒ2where

πœƒπœƒ1 = 𝐿𝐿/𝑇𝑇1 , πœƒπœƒ2 = 𝐿𝐿/𝑇𝑇2 (7.41)

KEH Process Dynamics and Control 7–43

7.6.2 Second-order system with delay

Page 44: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.6.2 Second-order system with delay

Second-order system including integrationA second-order no-zero system including an integrator has the transfer function

𝐺𝐺 𝑠𝑠 = 𝐾𝐾𝑠𝑠 (𝑇𝑇2𝑠𝑠+1)

eβˆ’πΏπΏπ‘ π‘  (7.42)

For this kind of system, Γ…strΓΆm and HΓ€gglund (2006) suggest the tuning:

𝐾𝐾𝐾𝐾c𝐿𝐿 = 0.37 + 0.02πœƒπœƒ2βˆ’1

𝐾𝐾𝐾𝐾c𝐿𝐿2/𝑇𝑇i = 0.03 + 0.0012πœƒπœƒ2βˆ’1 (7.43)𝐾𝐾𝐾𝐾c𝑇𝑇d = 0.16 + 0.28πœƒπœƒ2βˆ’1

If the system is a double integrator with the transfer function

𝐺𝐺 𝑠𝑠 = 𝐾𝐾𝑠𝑠2

eβˆ’πΏπΏπ‘ π‘  (7.44)the suggested tuning is

𝐾𝐾𝐾𝐾c𝐿𝐿2 = 0.02𝐾𝐾𝐾𝐾c𝐿𝐿3/𝑇𝑇i = 0.0012 (7.45)𝐾𝐾𝐾𝐾c𝑇𝑇d𝐿𝐿 = 0.28

KEH Process Dynamics and Control 7–44

Overdamped system

Page 45: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.6 Model-based controller tuning

Second-order system with a zeroAn overdamped 2nd order system with a zero has the transfer function

𝐺𝐺 𝑠𝑠 = 𝐾𝐾(𝑇𝑇3𝑠𝑠+1)(𝑇𝑇1𝑠𝑠+1)(𝑇𝑇2𝑠𝑠+1)

eβˆ’πΏπΏπ‘ π‘  (7.46)

Such a system can often be approximated by a first-order system or a second-order system without a zero (see Section 7.9).Integrating second-order system with a zeroAn IPZ system (1 integrator, 1 pole, 1 zero) has a transfer function

𝐺𝐺 𝑠𝑠 = 𝐾𝐾(𝑇𝑇3𝑠𝑠+1)𝑠𝑠 (𝑇𝑇2𝑠𝑠+1)

eβˆ’πΏπΏπ‘ π‘  , 𝑇𝑇3 > 𝑇𝑇2 > 0 (7.47)

An IPZ system is difficult to approximate by a simpler one, esp. if 𝑇𝑇3 ≫ 𝑇𝑇2.

In Table 7.11, Table 7.11. SlΓ€tteke’s regulatory tuning for an IPZ process.πœƒπœƒ2 = 𝐿𝐿/𝑇𝑇2. ForPID control, aderivative filter𝑇𝑇f = 0.1𝑇𝑇d isused. For set-point tracking,𝑏𝑏 < 1 is used.

KEH Process Dynamics and Control 7–45

7.6.2 Second-order system with delay

Controller 3 cT KK i /T L d 2/T T

PI 120.0767(3 1)ΞΈ βˆ’ + 2

2

100 1711 94

ΞΈΞΈ

++

–

PID 120.115(3 1)ΞΈ βˆ’ +

22 2

22 2

835 842 2773(55 386 241 )

ΞΈ ΞΈΞΈ ΞΈ

+ ++ +

2

2 22

2 2

3 176 736500(1 2 )

ΞΈ ΞΈΞΈ ΞΈ

+ ++ +

Page 46: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.7 Controller design by direct synthesisIn the previous sections, equations for controller tuning have been given for first-and second-order no-zero systems.

The equations are usually the result of optimization of some criterion that is considered to imply β€œgood control”.

However, what is β€œgood control” varies from case to case depending on the compromise between stability and performance.

A drawback of the tuning equations is that the user cannot influence the tuning according to his/her opinion of β€œgood control”.

In this section, a method is introduced whereby

the user can influence the controller tuning in a systematic way according to his/her opinion of β€œgood control”

more model types than in previous sections can be handled, e.g., systems with a zero

KEH Process Dynamics and Control 7–46

Page 47: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.7.1 Closed-loop transfer functionsConsider the closed-loopsystem in the figure with thefollowing transfer functions:– 𝐺𝐺 𝑠𝑠 process being controlled– 𝐺𝐺c 𝑠𝑠 controller– 𝐺𝐺d 𝑠𝑠 disturbance system Block diagram of closed-loop systemStandard block-diagram algebra gives

π‘Œπ‘Œ = 𝐺𝐺𝐺𝐺c1+𝐺𝐺𝐺𝐺c

𝑅𝑅 + 𝐺𝐺d1+𝐺𝐺𝐺𝐺c

𝑉𝑉 (7.48)where

𝐺𝐺r = 𝐺𝐺𝐺𝐺c1+𝐺𝐺𝐺𝐺c

, 𝐺𝐺v = 𝐺𝐺d1+𝐺𝐺𝐺𝐺c

(7.49,50)

are the closed-loop transfer functions from the setpoint 𝑅𝑅 and the disturbance 𝑉𝑉 to the output π‘Œπ‘Œ.

The user can specify the desired 𝐺𝐺r for setpoint tracking or 𝐺𝐺v for regulatory control. For setpoint tracking, the required controller is given by

𝐺𝐺c = 1𝐺𝐺

𝐺𝐺r(1βˆ’πΊπΊr)

(7.51)

KEH Process Dynamics and Control 7–47

7.7 Controller tuning by direct synthesis

( )Y s

( )V s

c ( )G s( )R s

+βˆ’

++

( )G s

d ( )G s

Page 48: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.7.2 Low-order minimum-phase systemsFirst-order systemA strictly proper first-order system without a time delay has the transfer function

𝐺𝐺 = 𝐾𝐾𝑇𝑇𝑠𝑠+1

(7.52)

Assume that we want the controlled system to behave as a first-order systemwith the time constant 𝑇𝑇r . Then,

𝐺𝐺r = 1𝑇𝑇r𝑠𝑠+1

, which gives 𝐺𝐺r1βˆ’πΊπΊr

= 1𝑇𝑇r𝑠𝑠

(7.53)

Substitution of (7.52) and (7.53) into (7.51) gives

𝐺𝐺c = 𝑇𝑇𝑠𝑠+1𝐾𝐾

1𝑇𝑇r𝑠𝑠

= 𝑇𝑇𝐾𝐾𝑇𝑇r

1 + 1𝑇𝑇𝑠𝑠

(7.54)

which is a PI controller with the parameters

𝐾𝐾c = 𝑇𝑇𝐾𝐾𝑇𝑇r

, 𝑇𝑇i = 𝑇𝑇 (7.55)

Here, 𝑇𝑇r is a design parameter, by which the performance of the control system can be affected.

KEH Process Dynamics and Control 7–48

7.7 Controller tuning by direct synthesis

Page 49: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.7 Controller tuning by direct synthesis

Second-order system with no zeroA second-order system with no zero and no time delay has the transfer function

𝐺𝐺 𝑠𝑠 = πΎπΎπœ”πœ”n2

𝑠𝑠2+2πœπœπœ”πœ”n𝑠𝑠+πœ”πœ”n2 (7.56)

Even if the uncontrolled system is of second order, we can specify the controlled system to be of first order. Substitution of (7.53) and (7.56) into (7.51) then gives

𝐺𝐺c = 𝑠𝑠2+2πœπœπœ”πœ”n𝑠𝑠+πœ”πœ”n2

πΎπΎπœ”πœ”n2

1𝑇𝑇r𝑠𝑠

= 2πœπœπΎπΎπœ”πœ”n𝑇𝑇r

1 + πœ”πœ”n2πœπœπ‘ π‘ 

+ 𝑠𝑠2πœπœπœ”πœ”n

(7.57)

which is an ideal PID controller with the parameters

𝐾𝐾c = 2πœπœπΎπΎπœ”πœ”n𝑇𝑇r

, 𝑇𝑇i = 2πœπœπœ”πœ”n

, 𝑇𝑇d = 12πœπœπœ”πœ”n

(7.58)

Also here, 𝑇𝑇r is a design parameter which only affects the controller gain.

KEH Process Dynamics and Control 7–49

7.7.2 Low-order minimum-phase systems

Page 50: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.7 Controller tuning by direct synthesis

Overdamped second-order system with a LHP zeroAn overdamped second-order system with a zero in the left half of the complex plane (LHP) has the transfer function

𝐺𝐺 𝑠𝑠 = 𝐾𝐾(𝑇𝑇3𝑠𝑠+1)(𝑇𝑇1𝑠𝑠+1)(𝑇𝑇2𝑠𝑠+1)

, 𝑇𝑇𝑖𝑖 β‰₯ 0 (7.59)

We can specify the controlled system to be of first order. Substitution of (7.53) and (7.59) into (7.51) gives

𝐺𝐺c = (𝑇𝑇1𝑠𝑠+1)(𝑇𝑇2𝑠𝑠+1)𝐾𝐾(𝑇𝑇3𝑠𝑠+1)

1𝑇𝑇r𝑠𝑠

= 1𝐾𝐾𝑇𝑇r𝑠𝑠

𝑇𝑇1𝑇𝑇2𝑠𝑠2+ 𝑇𝑇1+𝑇𝑇2 𝑠𝑠+1𝑇𝑇3𝑠𝑠+1

= 1𝐾𝐾𝑇𝑇r𝑠𝑠

1 + 𝑇𝑇1 + 𝑇𝑇2 βˆ’ 𝑇𝑇3 𝑠𝑠 + 𝑇𝑇1𝑇𝑇2βˆ’ 𝑇𝑇1+𝑇𝑇2βˆ’π‘‡π‘‡3 𝑇𝑇3𝑇𝑇3𝑠𝑠+1

𝑠𝑠2

or𝐺𝐺c = 𝐾𝐾c 1 + 1

𝑇𝑇i𝑠𝑠+ 𝑇𝑇d𝑠𝑠

𝑇𝑇f𝑠𝑠+1(7.60)

where

𝐾𝐾c = 𝑇𝑇1+𝑇𝑇2βˆ’π‘‡π‘‡3𝐾𝐾𝑇𝑇r

, 𝑇𝑇i = 𝑇𝑇1 + 𝑇𝑇2 βˆ’ 𝑇𝑇3 , 𝑇𝑇d = 𝑇𝑇1𝑇𝑇2𝑇𝑇1+𝑇𝑇2βˆ’π‘‡π‘‡3

βˆ’ 𝑇𝑇3 , 𝑇𝑇f = 𝑇𝑇3 (7.61)

This is a PID controller with a derivative filter.

KEH Process Dynamics and Control 7–50

7.7.2 Low-order minimum-phase systems

Page 51: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.7.3 High-order minimum-phase systemsA high-order minimum-phase system with real poles and zeros, but with no time delay, has the transfer function

𝐺𝐺 = πΎπΎβˆ‘π‘—π‘—=𝑛𝑛+1𝑛𝑛+π‘šπ‘š (𝑇𝑇𝑗𝑗𝑠𝑠+1)βˆ‘π‘–π‘–=1𝑛𝑛 (𝑇𝑇𝑖𝑖𝑠𝑠+1)

, 𝑇𝑇𝑖𝑖 > 0 , 𝑇𝑇𝑗𝑗 > 0 , 𝑛𝑛 > 2 (7.62)

If 𝑛𝑛 = 3 and π‘šπ‘š = 0 or 1 , a closed-loop system of second order can be obtained by a full PID controller.

If 𝑛𝑛 > 3, it is not possible to obtain a closed-loop system of lower order than 3 by a PID controller and an exact design by specifying 𝐺𝐺r is thus not practical.

In the case of 𝑛𝑛 > 3 , two possibilities are to specify a closed-loop system of first or second order and then to

first calculate a 𝐺𝐺c according to (7.51), then to approximate 𝐺𝐺c by a PID controller;

first approximate 𝐺𝐺 by a model of at most third order, then to calculate the PID controller according to (7.51).

In Section 7.9, the latter approach will be described.

KEH Process Dynamics and Control 7–51

7.7 Controller tuning by direct synthesis

Page 52: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.7.4 Second-order system with RHP zeroA second-order system with real poles and a right half-plane (RHP) zero has the transfer function

𝐺𝐺 𝑠𝑠 = 𝐾𝐾(βˆ’π‘‡π‘‡3𝑠𝑠+1)(𝑇𝑇1𝑠𝑠+1)(𝑇𝑇2𝑠𝑠+1)

, 𝑇𝑇𝑖𝑖 β‰₯ 0 (7.63)

Now division by 𝐺𝐺 in (7.51) will result in an unstable controller with a RHP pole if 𝐺𝐺r is chosen as in the previous sections.

One possible solution is to approximate the unstable controller by a stable controller. This tends to result in too aggressive control because the controller is then designed as if there were no RHP zero in 𝐺𝐺 .

Another solution is to include the same RHP zero in 𝐺𝐺r as in 𝐺𝐺 ; it will then be cancelled out in (7.51) and the controller will automatically be stable. This means that the choice of 𝐺𝐺r is restricted, but otherwise the control performance tends to be as expected.

In this section, the latter approach is used.

KEH Process Dynamics and Control 7–52

7.7 Controller tuning by direct synthesis

Page 53: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.7 Controller tuning by direct synthesis

Closed-loop system of first orderThe closed-loop transfer function is chosen as

𝐺𝐺r = βˆ’π‘‡π‘‡3𝑠𝑠+1𝑇𝑇r𝑠𝑠+1

, which gives 𝐺𝐺r1βˆ’πΊπΊr

= βˆ’π‘‡π‘‡3𝑠𝑠+1(𝑇𝑇r+𝑇𝑇3)𝑠𝑠

(7.64)

Substitution of (7.63) and (7.64) into (7.51) gives

𝐺𝐺c = (𝑇𝑇1𝑠𝑠+1)(𝑇𝑇2𝑠𝑠+1)𝐾𝐾

1(𝑇𝑇r+𝑇𝑇3)𝑠𝑠

= 𝑇𝑇1+𝑇𝑇2𝐾𝐾(𝑇𝑇r+𝑇𝑇3)

1 + 1𝑇𝑇1+𝑇𝑇2 𝑠𝑠

+ 𝑇𝑇1𝑇𝑇2𝑠𝑠𝑇𝑇1+𝑇𝑇2

(7.65)

which is a PID controller with the parameters

𝐾𝐾c = 𝑇𝑇1+𝑇𝑇2𝐾𝐾(𝑇𝑇r+𝑇𝑇3)

, 𝑇𝑇i = 𝑇𝑇1 + 𝑇𝑇2 , 𝑇𝑇d = 𝑇𝑇1𝑇𝑇2𝑇𝑇1+𝑇𝑇2

(7.66)

KEH Process Dynamics and Control 7–53

7.7.4 Second-order system with RHP zero

Page 54: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.7 Controller tuning by direct synthesis

Closed-loop system of second orderA first-order system with a zero is proper, but not strictly proper. If a zero is present, a strictly proper system has to be at least second order. Hence, a more natural choice for 𝐺𝐺r is

𝐺𝐺r = (βˆ’π‘‡π‘‡3𝑠𝑠+1)πœ”πœ”r2

𝑠𝑠2+2𝜁𝜁rπœ”πœ”r𝑠𝑠+πœ”πœ”r2 , which gives 𝐺𝐺r

1βˆ’πΊπΊr= (βˆ’π‘‡π‘‡3𝑠𝑠+1)πœ”πœ”r

2

𝑠𝑠(𝑠𝑠+2𝜁𝜁rπœ”πœ”r+𝑇𝑇3πœ”πœ”r2)

(7.67)

To simplify the derivation of controller parameters, we define

𝑇𝑇f = 1/(2𝜁𝜁rπœ”πœ”r + 𝑇𝑇3πœ”πœ”r2) (7.68)

Substitution of (7.63) and (7.67) into (7.51), gives, with (7.68),

𝐺𝐺c = (𝑇𝑇1𝑠𝑠+1)(𝑇𝑇2𝑠𝑠+1)𝑇𝑇fπœ”πœ”r2

𝐾𝐾 𝑇𝑇f𝑠𝑠+1 𝑠𝑠= 𝑇𝑇fπœ”πœ”r

2

𝐾𝐾𝑠𝑠𝑇𝑇1𝑇𝑇2𝑠𝑠2+ 𝑇𝑇1+𝑇𝑇2 𝑠𝑠+1

𝑇𝑇f𝑠𝑠+1(7.69)

Analogously with the derivation of (7.61), this gives the PID controller parameters

𝐾𝐾c = 𝑇𝑇fπœ”πœ”r2

𝐾𝐾(𝑇𝑇1 + 𝑇𝑇2 βˆ’ 𝑇𝑇f), 𝑇𝑇i = 𝑇𝑇1 + 𝑇𝑇2 βˆ’ 𝑇𝑇f , 𝑇𝑇d = 𝑇𝑇1𝑇𝑇2

𝑇𝑇1+𝑇𝑇2βˆ’π‘‡π‘‡fβˆ’ 𝑇𝑇f (7.70)

where 𝑇𝑇f , given by (7.68), is the derivative filter time constant in a PID controller (7.60).

KEH Process Dynamics and Control 7–54

7.7.4 Second-order system with RHP zero

Page 55: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.7.4 Second-order system with RHP zero

Choice of closed-loop system parametersIn (7.67), there are two design parameters, the relative damping 𝜁𝜁r, and the undamped natural frequency πœ”πœ”r. The meanings of these parameters are discussed in Section 5.3, especially Subsection 5.3.3.

The choice of design parameters can be simplified in the following two ways. Let 𝐺𝐺r have two equally large real poles at βˆ’1/𝑇𝑇r . This corresponds to 𝜁𝜁r = 1 and πœ”πœ”r = 1/𝑇𝑇r , which for (7.68) gives

𝑇𝑇f = 𝑇𝑇r2

2𝑇𝑇r+𝑇𝑇3(7.71)

Let 𝐺𝐺r have real poles at βˆ’1/𝑇𝑇r and βˆ’1/𝑇𝑇3 . This corresponds to 𝜁𝜁r = 0.5(𝑇𝑇r + 𝑇𝑇3)πœ”πœ”r and πœ”πœ”r = 1/ 𝑇𝑇r𝑇𝑇3 , which for (7.68) gives

𝑇𝑇f = 𝑇𝑇r𝑇𝑇3𝑇𝑇r+2𝑇𝑇3

(7.72)

KEH Process Dynamics and Control 7–55

Closed-loop system of 2nd order

Page 56: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.7.5 First-order system with a time delayTo illustrate how systems with a time delay can be handled by direct synthesis, a first-order system with a time delay will be studied. Such a system has the transfer function

𝐺𝐺 𝑠𝑠 = 𝐾𝐾𝑇𝑇𝑠𝑠+1

eβˆ’πΏπΏπ‘ π‘  (7.73)

Calculation of a controller by (7.51) will then result in a controller containing a time delay β€” there is no practical way to avoid this by the choice of 𝐺𝐺r.

There are methods to implement a controller resulting from (7.51) (see Section 7.8), but not by a regular PID controller.

If a PID controller is desired, the time delay has to be approximated in some way.

KEH Process Dynamics and Control 7–56

7.7 Controller tuning by direct synthesis

Page 57: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.7 Controller tuning by direct synthesis

Time-delay approximation in the modelA standard way of approximating a time delay is to use a PadΓ© approximation. A first-order PadΓ© approximation

eβˆ’πΏπΏπ‘ π‘  β‰ˆ 1βˆ’0.5𝐿𝐿𝑠𝑠1+0.5𝐿𝐿𝑠𝑠

(7.74)gives the model

𝐺𝐺 𝑠𝑠 = 𝐾𝐾(βˆ’0.5𝐿𝐿𝑠𝑠+1)(𝑇𝑇𝑠𝑠+1)(0.5𝐿𝐿𝑠𝑠+1)

(7.75)

A natural choice for 𝐺𝐺r is then

𝐺𝐺r = βˆ’0.5𝐿𝐿𝑠𝑠+1(𝑇𝑇r𝑠𝑠+1)(0.5𝐿𝐿𝑠𝑠+1)

, which gives 𝐺𝐺r1βˆ’πΊπΊr

= βˆ’0.5𝐿𝐿𝑠𝑠+1𝑠𝑠(0.5𝑇𝑇r𝐿𝐿𝑠𝑠+𝑇𝑇r+𝐿𝐿)

(7.76)

Substitution of (7.75) and (7.76) into (7.51) gives a PID controller with the parameters

𝐾𝐾c = 𝑇𝑇+0.5πΏπΏβˆ’π‘‡π‘‡f𝐾𝐾(𝑇𝑇r+𝐿𝐿)

, 𝑇𝑇i = 𝑇𝑇 + 0.5𝐿𝐿 βˆ’ 𝑇𝑇f , 𝑇𝑇d = 0.5𝐿𝐿𝑇𝑇𝑇𝑇+0.5πΏπΏβˆ’π‘‡π‘‡f

, 𝑇𝑇f = 0.5𝐿𝐿𝑇𝑇r𝑇𝑇r+𝐿𝐿

(7.77)

Here, 𝑇𝑇f is the time constant of a derivative filter in the PID controller (7.60).

KEH Process Dynamics and Control 7–57

7.7.5 First-order system with a delay

Page 58: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.7 Controller tuning by direct synthesis

Time-delay approximation in the controllerIf eβˆ’πΏπΏπ‘ π‘  is retained in the model, it also has to be part of 𝐺𝐺r , because it is impossible for the closed-loop system to have a shorter time-delay than the uncontrolled system.

If 𝐺𝐺r is chosen to be first order with a time delay

𝐺𝐺r = 1𝑇𝑇r𝑠𝑠+1

eβˆ’πΏπΏπ‘ π‘  , which gives 𝐺𝐺r1βˆ’πΊπΊr

= eβˆ’πΏπΏπΏπΏ

𝑇𝑇r𝑠𝑠+1βˆ’eβˆ’πΏπΏπΏπΏ(7.78)

Substitution of (7.73) and (7.78) into (7.51) gives

𝐺𝐺c = 𝑇𝑇𝑠𝑠+1𝐾𝐾(𝑇𝑇r𝑠𝑠+1βˆ’eβˆ’πΏπΏπΏπΏ)

(7.79)

Unfortunately, this controller cannot be implemented by a PID controller in a regular feedback loop. In order to do that, the time delay in (7.79) has to be approximated by a rational expression. If the approximation (7.74) is used, the controller parameters will be as in

(7.77). The simpler approximation eβˆ’πΏπΏπ‘ π‘  β‰ˆ 1 βˆ’ 𝐿𝐿𝑠𝑠 gives a PI controller with

𝐾𝐾c = 𝑇𝑇𝐾𝐾(𝑇𝑇r+𝐿𝐿)

, 𝑇𝑇i = 𝑇𝑇 (7.80)

KEH Process Dynamics and Control 7–58

7.7.5 First-order system with a delay

Page 59: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.8 Internal model controlβ€œInternal model control” (IMC) is closely related to β€œdirect synthesis” (DS). As in DS, a model of the system to be controlled is explicitly built into the controller, but in a different way.

An advantage with IMC is that it is easier to implement more complex control laws than regular PID controllers. For example, the controller transfer function (7.79) can easily be implemented exactly with IMC.

Even if the controller design is based on IMC, it is often desirable to implement the controller as a regular PID controller. In such cases, the IMC approach offers better possibilities to deal with robustness issues than DS.

KEH Process Dynamics and Control 7–59

Page 60: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.8.1 The IMC structureConsider the closed-loopsystem in the figure with thefollowing transfer functions:– 𝐺𝐺 𝑠𝑠 true process– �𝐺𝐺 𝑠𝑠 process model– 𝐺𝐺IMC 𝑠𝑠 a controller– 𝐺𝐺d 𝑠𝑠 disturbance systemStandard block diagram algebra The IMC structure.gives π‘ˆπ‘ˆ = 𝐺𝐺IMC(𝐸𝐸 + οΏ½πΊπΊπ‘ˆπ‘ˆ) from which

π‘ˆπ‘ˆπΈπΈ

= 𝐺𝐺c = 𝐼𝐼 βˆ’ 𝐺𝐺IMC οΏ½πΊπΊβˆ’1𝐺𝐺IMC = 𝐺𝐺IMC 𝐼𝐼 βˆ’ �𝐺𝐺𝐺𝐺IMC

βˆ’1 = 𝐺𝐺IMC1βˆ’ �𝐺𝐺𝐺𝐺IMC

(7.81)

Assume that𝐺𝐺IMC = οΏ½πΊπΊβˆ’1𝐺𝐺f (7.82)

where 𝐺𝐺f is a β€œfilter”. Substitution of (7.82) into (7.81) gives

𝐺𝐺c = οΏ½πΊπΊβˆ’1𝐺𝐺f 𝐼𝐼 βˆ’ 𝐺𝐺f βˆ’1 = 1�𝐺𝐺

𝐺𝐺f(1βˆ’πΊπΊf)

(7.83)

If the filter is chosen as 𝐺𝐺f = 𝐺𝐺r (and �𝐺𝐺 = 𝐺𝐺), this is the same as (7.51) !

KEH Process Dynamics and Control 7–60

7.8 Internal model control

( )G s

Λ† ( )G s

( )E s

Page 61: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.8.2 Handling of time delays without approximationConsider a system modelled as a first-order system with a time delay, i.e., �𝐺𝐺 = 𝐾𝐾eβˆ’πΏπΏπ‘ π‘ /(𝑇𝑇𝑠𝑠 + 1). Choose the IMC filter as 𝐺𝐺f = eβˆ’πΏπΏπ‘ π‘ /(𝑇𝑇r𝑠𝑠 + 1) . Substitution into (7.82) now gives

𝐺𝐺IMC = 1𝐾𝐾𝑇𝑇𝑠𝑠+1𝑇𝑇r𝑠𝑠+1

= 1𝐾𝐾

1 + π‘‡π‘‡βˆ’π‘‡π‘‡r𝑇𝑇r𝑠𝑠+1

𝑠𝑠 (7.84)

which is a PD controller with a derivative filter having the parameters 𝐾𝐾𝑐𝑐 = 1/𝐾𝐾 , 𝑇𝑇d = 𝑇𝑇 βˆ’ 𝑇𝑇r , 𝑇𝑇f = 𝑇𝑇r . Substitution of (7.84) and the model �𝐺𝐺 into (7.81) gives

𝐺𝐺c = 𝑇𝑇𝑠𝑠+1𝐾𝐾(𝑇𝑇r𝑠𝑠+1βˆ’eβˆ’πΏπΏπΏπΏ)

(7.85)

which is identical with (7.79). The difference is that (7.85) can be implemented exactly by the IMC structure without time-delay approximation.

Note that there is no integration in 𝐺𝐺IMC , but the feedback of �𝐺𝐺 in the IMC structure introduces integration if 𝐺𝐺IMC is calculated using the same �𝐺𝐺 in (7.82); integration is achieved even if �𝐺𝐺 β‰  𝐺𝐺 .

Exercise. Calculate the closed-loop transfer function 𝐺𝐺r when �𝐺𝐺 β‰  𝐺𝐺 . Show that there will be no steady-state error, i.e., that 𝐺𝐺r 0 = 1 .

KEH Process Dynamics and Control 7–61

7.8 Internal model control

Page 62: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.8.3 The predictive character of the IMC structure The previous block diagram of the IMC structure is drawn to emphasize how 𝐺𝐺IMC combined with the feedback of �𝐺𝐺 is equivalent to 𝐺𝐺c.

The block diagram can also be drawn to emphasize the predictive character of the IMC structure, as shown below. (Note that the two diagrams are completely equivalent.)– The control signal is an input to the real system 𝐺𝐺 and the model �𝐺𝐺.– �𝐺𝐺 predicts the output οΏ½π‘Œπ‘Œ, which is compared with the true output π‘Œπ‘Œ.– Only the prediction error 𝐸𝐸 = π‘Œπ‘Œ βˆ’ οΏ½π‘Œπ‘Œ is fed back, not the entire π‘Œπ‘Œ.

The latter property is a clearadvantage in controller design.If �𝐺𝐺 = 𝐺𝐺 (i.e., 𝐸𝐸 = 0)

𝐺𝐺r = 𝐺𝐺𝐺𝐺IMC (7.86)

which means that the closed-loop transfer function dependslinearly on 𝐺𝐺IMC making designof 𝐺𝐺IMC easier than design of 𝐺𝐺c. Predictive nature of IMC structure.

KEH Process Dynamics and Control 7–62

7.8 Internal model control

Λ† ( )G s

( )G s

Page 63: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.8.4 Controller designThe following conclusions can be drawn from (7.86): A stable closed-loop system 𝐺𝐺r requires a stable IMC controller 𝐺𝐺IMC ;

in particular, the IMC controller may not contain integral action. Non-minimum phase properties (i.e., RHP zeros and time delays) in 𝐺𝐺 will

also be present in 𝐺𝐺r because they cannot be cancelled out by a stable and realizable 𝐺𝐺IMC.

From (7.82) it follows that the filter 𝐺𝐺f has to be chosen to cancel out non-minimum phase properties of 𝐺𝐺 β€” this is equivalent to the choice of 𝐺𝐺r in direct synthesis.

In practice, the IMC design is done differently. Instead of guaranteeing the stability and realizability of 𝐺𝐺IMC by the choice of 𝐺𝐺f , it is handled by the choice of �𝐺𝐺 to be inverted; non-minimum phase parts of �𝐺𝐺 are not inverted.

KEH Process Dynamics and Control 7–63

7.8 Internal model control

Page 64: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.8 Internal model control

The process model �𝐺𝐺 can always be factorized as�𝐺𝐺 = οΏ½πΊπΊβŠ• οΏ½πΊπΊβŠ– (7.87)

where οΏ½πΊπΊβŠ• contains all non-minimum-phase elements of �𝐺𝐺, but no minimum-phase elements, and normalized so that οΏ½πΊπΊβŠ• 0 = 1 (i.e., it has the static gain 1). This means that οΏ½πΊπΊβŠ• contains all RHP zeros and time delays of �𝐺𝐺 ; if there are no such elements, οΏ½πΊπΊβŠ• = 1.

When 𝐺𝐺IMC is calculated according to (7.82), only οΏ½πΊπΊβŠ– is inverted. Thus,

𝐺𝐺IMC = οΏ½πΊπΊβŠ– βˆ’1𝐺𝐺f (7.88)

Note that the full �𝐺𝐺 is to be used as internal model as illustrated by the IMC block diagrams β€” the use of οΏ½πΊπΊβŠ– is only a technical aid for the calculation of 𝐺𝐺IMC .

The IMC filter 𝐺𝐺f could be chosen as the desired closed-loop transfer function without any non-minimum phase elements (not even a time delay), but in practice a low-pass filter

𝐺𝐺f = 1(𝑇𝑇r𝑠𝑠+1)𝑛𝑛

(7.89)

is chosen. Here, 𝑛𝑛 is an integer, usually 𝑛𝑛 = 1, sometimes 𝑛𝑛 > 1.

KEH Process Dynamics and Control 7–64

7.8.4 Controller design

Page 65: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.8.5 Implementation with a regular PID controllerAn advantage of the IMC structure is that time delays can be handled exactly, but often a regular PID controller is preferred, because it is standard software in all automation systems.

If an IMC controller 𝐺𝐺IMC has been designed, the corresponding β€œregular” controller 𝐺𝐺c can be calculated according to (7.81). If �𝐺𝐺 contains a time delay, it will also be present in 𝐺𝐺c. In such cases, the time delay has to be approximated in a suitable way.

Table 7.12 shows IMC-based tunings of regular PID controllers for some typical model structures. The tunings can also be used for models of lower degree or no time delay as

long as𝑇𝑇1 > 0 , 𝑇𝑇2 β‰₯ 0 , 𝑇𝑇3 β‰₯ 0 , 𝐿𝐿 β‰₯ 0 (7.90)

The tunings can be used for (underdamped) models expressed by the relative damping and the natural frequency by the substitutions

𝑇𝑇1 + 𝑇𝑇2 = 2𝜁𝜁/πœ”πœ”n , 𝑇𝑇1𝑇𝑇2 = 1/πœ”πœ”n2 (7.91)

Usually 𝑇𝑇r is chosen such that 𝐿𝐿 ≀ 𝑇𝑇r < 𝑇𝑇 (but no clear consensus).

KEH Process Dynamics and Control 7–65

7.8 Internal model control

Page 66: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.8 Internal model control

Table 7.12. IMC-based tuning of ideal PID controller.

The desired time constant of the closed-loop system is 𝑇𝑇r . πœ†πœ† , which is used in the calculations, is closely related to 𝑇𝑇r . Note that the calculated integral time 𝑇𝑇i is used in several expressions.

KEH Process Dynamics and Control 7–66

7.8.5 Implementation with a PID controller

( )G s cK K iT dT Ξ»

1

e1

LsKT s

βˆ’

+ i /T Ξ» 1

1 2T L+ 11 i2 /LT T 1

r 2T L+

3

1 2

( 1)e( 1)( 1)

LsK T sT s T s

βˆ’++ +

i /T Ξ» 1 2 3T T T+ βˆ’ 1 2 i 3( / )T T T Tβˆ’ rT L+

3

1 2

( 1)e( 1)( 1)

LsK T sT s T s

βˆ’βˆ’ ++ +

i /T Ξ» 1 2 3( / )T T T L Ξ»+ + 1 2 i 3( / ) ( / )T T T T L Ξ»βˆ’ r 3T T L+ +

e LsKs

βˆ’ 2

i /T Ξ» 2Ξ» 1 1i2 2(1 / )L L Tβˆ’ 1

r 2T L+

2

e( 1)

LsKs T s

βˆ’

+ 2

i /T Ξ» 22 T LΞ» + βˆ’ 2 2 i(1 / )T T Tβˆ’ rT L+

Page 67: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.9 Model simplificationMany controller tuning methods have been presented in the previous sections. Section 7.4: Controller tuning based on frequency-response parameters 𝐾𝐾c,max , 𝑃𝑃c (or πœ”πœ”c) and πœ…πœ…. These methods are β€œgeneral-purpose methods” not optimized for any specific model type.

Section 7.5: Controller tuning based on step-response parameters π‘Žπ‘Ž (or 𝑑𝑑i, 𝑦𝑦i), 𝐿𝐿 and πœƒπœƒ. These methods are also general-purpose methods not optimized for any specific model type.

Section 7.6: Model-based tuning optimized for given model structures and control criteria with no user interaction.

Section 7.7: Direct synthesis for low-order models according to desired closed-loop response.

Section 7.8: Internal model control mainly for low-order models according to desired closed-loop response.

In this section, methods to reduce high-order models to first- or second-order models are presented. Any controller tuning method can be used.

KEH Process Dynamics and Control 7–67

Page 68: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.9.1 Skogestad’s methodSkogestad and Grimholt (2012) have presented a method to simplify a high-order model with real poles and zeros to a first- or second-order model with a time delay but with no zeros.The transfer function to be simplified is factorized into a minimum-phase part πΊπΊβŠ– and a non-minimum-phase part πΊπΊβŠ• , i.e.,

𝐺𝐺 𝑠𝑠 = πΊπΊβŠ•(𝑠𝑠)πΊπΊβŠ–(s) (7.92)

Any left-half plane (LHP) zeros of πΊπΊβŠ–(s) and RHP zeros of πΊπΊβŠ•(𝑠𝑠) are eliminated by suitable approximations.Elimination of LHP zerosIf the poles and zeros are real, the minimum-phase part has the form

πΊπΊβŠ– 𝑠𝑠 = 𝐾𝐾 𝑇𝑇𝑛𝑛+1𝑠𝑠+1 𝑇𝑇𝑛𝑛+2𝑠𝑠+1 …(𝑇𝑇𝑛𝑛+π‘šπ‘šπ‘ π‘ +1)𝑇𝑇1𝑠𝑠+1 𝑇𝑇2𝑠𝑠+1 …(𝑇𝑇𝑛𝑛𝑠𝑠+1)

(7.93)

where 𝑇𝑇1 β‰₯ 𝑇𝑇2 β‰₯ β‹― β‰₯ 𝑇𝑇𝑛𝑛 > 0, 𝑇𝑇𝑛𝑛+1 β‰₯ 𝑇𝑇𝑛𝑛+2 β‰₯ β‹― β‰₯ 𝑇𝑇𝑛𝑛+π‘šπ‘š > 0 , 𝑛𝑛 > π‘šπ‘š. The simplification procedure now goes as follows. The numerator time constants 𝑇𝑇𝑛𝑛+1, 𝑇𝑇𝑛𝑛+2, …, 𝑇𝑇𝑛𝑛+π‘šπ‘š are considered in that

order. Assume that 𝑇𝑇𝑛𝑛+𝑗𝑗 is the one currently being considered.

KEH Process Dynamics and Control 7–68

7.9 Model simplification

Page 69: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.9.1 Skogestad’s method

Next, the smallest remaining denominator time constant 𝑇𝑇𝑖𝑖 such that 𝑇𝑇𝑖𝑖 β‰₯ 𝑇𝑇𝑛𝑛+𝑗𝑗 is selected. If there is no such time constant, or if 𝑇𝑇𝑖𝑖 ≫ 𝑇𝑇𝑛𝑛+𝑗𝑗, the smaller 𝑇𝑇𝑖𝑖 closest to 𝑇𝑇𝑛𝑛+𝑗𝑗 is chosen. It is considered that 𝑇𝑇𝑖𝑖 ≫ 𝑇𝑇𝑛𝑛+𝑗𝑗if 𝑇𝑇𝑖𝑖 > 𝑇𝑇𝑛𝑛+𝑗𝑗2 /𝑇𝑇𝑖𝑖+1 and 𝑇𝑇𝑛𝑛+𝑗𝑗/𝑇𝑇𝑖𝑖+1 < 1.6 .

The ratio (𝑇𝑇𝑛𝑛+𝑗𝑗𝑠𝑠 + 1)/(𝑇𝑇𝑖𝑖𝑠𝑠 + 1) is now approximated as

𝑇𝑇𝑛𝑛+𝑗𝑗𝑠𝑠+1𝑇𝑇𝑖𝑖𝑠𝑠+1

β‰ˆ

𝑇𝑇𝑛𝑛+𝑗𝑗/𝑇𝑇𝑖𝑖 if 𝑇𝑇𝑖𝑖 β‰₯ 𝑇𝑇𝑛𝑛+𝑗𝑗 β‰₯ 5𝑇𝑇r a5𝑇𝑇r/𝑇𝑇𝑖𝑖

5𝑇𝑇rβˆ’π‘‡π‘‡π‘›π‘›+𝑗𝑗 𝑠𝑠+1if 𝑇𝑇𝑖𝑖 β‰₯ 5𝑇𝑇r β‰₯ 𝑇𝑇𝑛𝑛+𝑗𝑗 b

1π‘‡π‘‡π‘–π‘–βˆ’π‘‡π‘‡π‘›π‘›+𝑗𝑗 𝑠𝑠+1

if 5𝑇𝑇r β‰₯ 𝑇𝑇𝑖𝑖 β‰₯ 𝑇𝑇𝑛𝑛+𝑗𝑗 c

𝑇𝑇𝑛𝑛+𝑗𝑗/𝑇𝑇𝑖𝑖 if 𝑇𝑇𝑛𝑛+𝑗𝑗β‰₯ 𝑇𝑇𝑖𝑖 β‰₯ 𝑇𝑇r (d)𝑇𝑇𝑛𝑛+𝑗𝑗/𝑇𝑇r if 𝑇𝑇𝑛𝑛+𝑗𝑗β‰₯ 𝑇𝑇r β‰₯ 𝑇𝑇𝑖𝑖 (e)1 if 𝑇𝑇r β‰₯ 𝑇𝑇𝑛𝑛+𝑗𝑗 β‰₯ 𝑇𝑇𝑖𝑖 (f)

(7.94)

Here, 𝑇𝑇r is the desired closed-loop time constant. If this is not known, the suggested value is 𝑇𝑇r = �𝐿𝐿 , which is the time delay in the simplified model. Since this is not initially known, one may have to iterate (i.e., first guessing �𝐿𝐿, then possibly correcting with the new �𝐿𝐿).

KEH Process Dynamics and Control 7–69

Elimination of LHP zeros

Page 70: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.9.1 Skogestad’s method

The above procedure gives an approximate minimum-phase part οΏ½πΊπΊβŠ– of the form

οΏ½πΊπΊβŠ– 𝑠𝑠 =�𝐾𝐾

�𝑇𝑇1𝑠𝑠+1 �𝑇𝑇2𝑠𝑠+1 …( �𝑇𝑇�𝑛𝑛𝑠𝑠+1)(7.95)

Note that the gain as well as the values and number of denominator time constants may have changed from the original πΊπΊβŠ–.

Elimination of RHP zeros and the half ruleThe transfer function �𝐺𝐺 𝑠𝑠 = πΊπΊβŠ•(𝑠𝑠) οΏ½πΊπΊβŠ–(s) now has the form

�𝐺𝐺 𝑠𝑠 =�𝐾𝐾 βˆ’π‘‡π‘‡π‘›π‘›+π‘šπ‘š+1𝑠𝑠+1 βˆ’π‘‡π‘‡π‘›π‘›+π‘šπ‘š+2𝑠𝑠+1 …(βˆ’π‘‡π‘‡π‘›π‘›+π‘šπ‘š+𝑝𝑝𝑠𝑠+1)

�𝑇𝑇1𝑠𝑠+1 �𝑇𝑇2𝑠𝑠+1 …( �𝑇𝑇�𝑛𝑛𝑠𝑠+1)eβˆ’πΏπΏπ‘ π‘  (7.96)

where �𝑇𝑇1 β‰₯ �𝑇𝑇2 β‰₯ β‹― β‰₯ �𝑇𝑇�𝑛𝑛 > 0, 𝑇𝑇𝑛𝑛+π‘šπ‘š+1 β‰₯ 𝑇𝑇𝑛𝑛+π‘šπ‘š+2 β‰₯ β‹― β‰₯ 𝑇𝑇𝑛𝑛+π‘šπ‘š+𝑝𝑝 > 0 .

Skogestad’s half ruleIf an approximate model of order �𝑛𝑛 is desired, the �𝑛𝑛 largest denominator time constants are retained in the model with the modification that half of �𝑇𝑇�𝑛𝑛+1 is added to �𝑇𝑇�𝑛𝑛. Half of �𝑇𝑇�𝑛𝑛+1 is also added to the time delay as well as all remaining smaller denominator time constants. In addition, all negative numerator time constants are subtracted from the time delay.

KEH Process Dynamics and Control 7–70

Elimination of LHP zeros

Page 71: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.9.1 Skogestad’s method

Approximation by first-order systemIf a first-order model is desired, the half rule gives

�𝐺𝐺 𝑠𝑠 =�𝐾𝐾

�𝑇𝑇𝑠𝑠+1eβˆ’οΏ½πΏπΏπ‘ π‘  (7.97a)

�𝑇𝑇 = �𝑇𝑇1 + 12�𝑇𝑇2 , �𝐿𝐿 = 𝐿𝐿 + 1

2�𝑇𝑇2 + βˆ‘π‘–π‘–=3

�𝑛𝑛 �𝑇𝑇𝑖𝑖 + βˆ‘π‘—π‘—=1𝑝𝑝 𝑇𝑇𝑛𝑛+π‘šπ‘š+𝑗𝑗 (7.97b)

Approximation by second-order systemIf a second-order model is desired, the half rule gives

�𝐺𝐺 𝑠𝑠 =�𝐾𝐾

( �𝑇𝑇1𝑠𝑠+1)( �𝑇𝑇2𝑠𝑠+1)eβˆ’οΏ½πΏπΏπ‘ π‘  (7.98a)

�𝑇𝑇2 = �𝑇𝑇2 + 12�𝑇𝑇3 , �𝐿𝐿 = 𝐿𝐿 + 1

2�𝑇𝑇3 + βˆ‘π‘–π‘–=4

�𝑛𝑛 �𝑇𝑇𝑖𝑖 + βˆ‘π‘—π‘—=1𝑝𝑝 𝑇𝑇𝑛𝑛+π‘šπ‘š+𝑗𝑗 (7.98b)

KEH Process Dynamics and Control 7–71

Elimination of RHP zeros and the half rule

Page 72: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.9 Model simplification

Example 7.2. IMC via model reduction by Skogestad’s method.Simplify the model

𝐺𝐺 𝑠𝑠 = (16𝑠𝑠+1)(4𝑠𝑠+1)(βˆ’8𝑠𝑠+1)eβˆ’2𝐿𝐿

(50𝑠𝑠+1)(20𝑠𝑠+1)(12𝑠𝑠+1)(6𝑠𝑠+1)(3𝑠𝑠+1)(𝑠𝑠+1)

to a second-order model by Skogestad’s method and determine the parameters of a PID controller by IMC-based tuning for this model. Use a first-order filter time constant 𝑇𝑇r = 10.

HereπΊπΊβŠ– 𝑠𝑠 = (16𝑠𝑠+1)(4𝑠𝑠+1)

(50𝑠𝑠+1)(20𝑠𝑠+1)(12𝑠𝑠+1)(6𝑠𝑠+1)(3𝑠𝑠+1)(𝑠𝑠+1).

According to (7.94c), 16𝑠𝑠+120𝑠𝑠+1

β‰ˆ 14𝑠𝑠+1

. The numerator factor (4𝑠𝑠 + 1) can now be cancelled out against the new denominator factor, which gives

οΏ½πΊπΊβŠ– 𝑠𝑠 = 1(50𝑠𝑠+1)(12𝑠𝑠+1)(6𝑠𝑠+1)(3𝑠𝑠+1)(𝑠𝑠+1)

and�𝐺𝐺 𝑠𝑠 = (βˆ’8𝑠𝑠+1)eβˆ’2𝐿𝐿

(50𝑠𝑠+1)(12𝑠𝑠+1)(6𝑠𝑠+1)(3𝑠𝑠+1)(𝑠𝑠+1).

KEH Process Dynamics and Control 7–72

7.9.1 Skogestad’s method

Page 73: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.9.1 Skogestad’s method

The resulting second-order model is

�𝐺𝐺 𝑠𝑠 = 1( �𝑇𝑇1𝑠𝑠+1)( �𝑇𝑇2𝑠𝑠+1)

eβˆ’οΏ½πΏπΏπ‘ π‘ 

with �𝑇𝑇1 = 50 , �𝑇𝑇2 = 12 + 12 β‹… 6 = 15 , �𝐿𝐿 = 2 + 1

2 β‹… 6 + 3 + 1 + 8 = 17. Thus,

�𝐺𝐺 𝑠𝑠 = 1(50𝑠𝑠+1)(15𝑠𝑠+1)

eβˆ’17𝑠𝑠 .

According to Table 7.12 for IMC-based tuning of second-order model:

– πœ†πœ† = 𝑇𝑇r + �𝐿𝐿 = 10 + 17 = 27– 𝑇𝑇i = �𝑇𝑇1 + �𝑇𝑇2 = 50 + 15 = 65– 𝐾𝐾c = 𝑇𝑇i/(οΏ½πΎπΎπœ†πœ†) = 65/(1 β‹… 27) = 2.4– 𝑇𝑇d = �𝑇𝑇1 �𝑇𝑇2/𝑇𝑇i = 50 β‹… 15/65 = 11.5

KEH Process Dynamics and Control 7–73

Example 7.2

Page 74: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7. PID Controllers

7.9.2 Isaksson’s and Graebe’s methodIsaksson and Graebe (1999) have presented a method to simplify a high-order model, where the fast and slow dynamics are combined to yield a model with a desired number of poles and zeros. If the original model contains a time delay, it is either left intact or substituted by a PadΓ© approximation.

To describe the method, both factorized and polynomial forms of the original transfer function are employed. If the numerator order is π‘šπ‘š and the denominator order is 𝑛𝑛 , the transfer function is

𝐺𝐺 𝑠𝑠 = 𝐾𝐾 𝑇𝑇𝑛𝑛+1𝑠𝑠+1 𝑇𝑇𝑛𝑛+2𝑠𝑠+1 …(𝑇𝑇𝑛𝑛+π‘šπ‘šπ‘ π‘ +1)𝑇𝑇1𝑠𝑠+1 𝑇𝑇2𝑠𝑠+1 …(𝑇𝑇𝑛𝑛𝑠𝑠+1)

(7.99a)

= 𝐾𝐾 𝑏𝑏0π‘ π‘ π‘šπ‘š+β‹―+π‘π‘π‘šπ‘šβˆ’2𝑠𝑠2+π‘π‘π‘šπ‘šβˆ’1𝑠𝑠+1π‘Žπ‘Ž0𝑠𝑠𝑛𝑛+β‹―+π‘Žπ‘Žπ‘›π‘›βˆ’2𝑠𝑠2+π‘Žπ‘Žπ‘›π‘›βˆ’1𝑠𝑠+1

(7.99b)

where 𝑇𝑇1 β‰₯ 𝑇𝑇2 β‰₯ β‹― β‰₯ 𝑇𝑇𝑛𝑛 > 0 (i.e., a stable system) and |𝑇𝑇𝑛𝑛+1| β‰₯ |𝑇𝑇𝑛𝑛+2| β‰₯β‹― β‰₯ |𝑇𝑇𝑛𝑛+π‘šπ‘š| . The numerator time constants can be positive or negative.

KEH Process Dynamics and Control 7–74

7.9 Model simplification

Page 75: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.9 Model simplification

If a model with the numerator order οΏ½π‘šπ‘š and the denominator order �𝑛𝑛 is desired, the simplified model is

�𝐺𝐺 𝑠𝑠 = 𝐾𝐾 𝑇𝑇𝑛𝑛+1𝑠𝑠+1 …(𝑇𝑇𝑛𝑛+οΏ½π‘šπ‘šπ‘ π‘ +1) + π‘π‘π‘šπ‘šβˆ’οΏ½π‘šπ‘šπ‘ π‘ οΏ½π‘šπ‘š+β‹―+π‘π‘π‘šπ‘šβˆ’1𝑠𝑠+1𝑇𝑇1𝑠𝑠+1 …(𝑇𝑇�𝑛𝑛𝑠𝑠+1) + π‘Žπ‘Žπ‘›π‘›βˆ’οΏ½π‘›π‘›π‘ π‘ οΏ½π‘›π‘›+β‹―+π‘Žπ‘Žπ‘›π‘›βˆ’1𝑠𝑠+1

(7.100)

Complex-conjugated poles or zeros is no problem, except if they occur as poles number �𝑛𝑛 and �𝑛𝑛 + 1 or zeros number 𝑛𝑛 + οΏ½π‘šπ‘š and 𝑛𝑛 + οΏ½π‘šπ‘š + 1. One solution is then to use the real part of the complex conjugate as 𝑇𝑇�𝑛𝑛 or 𝑇𝑇𝑛𝑛+ οΏ½π‘šπ‘š .

If the model is to be used for controller tuning, a strictly proper first- or second-order model, possibly with a time delay, is usually desired. Then

�𝐺𝐺 𝑠𝑠 = 𝐾𝐾12 𝑇𝑇1+π‘Žπ‘Žπ‘›π‘›βˆ’1 𝑠𝑠+1

(1st order) (7.101)

�𝐺𝐺 𝑠𝑠 =𝐾𝐾 1

2 𝑇𝑇𝑛𝑛+1+π‘π‘π‘šπ‘šβˆ’1 𝑠𝑠+112 𝑇𝑇1𝑇𝑇2+π‘Žπ‘Žπ‘›π‘›βˆ’2 𝑠𝑠2+12 𝑇𝑇1+𝑇𝑇2+π‘Žπ‘Žπ‘›π‘›βˆ’1 𝑠𝑠+1

(2nd order) (7.102)

whereπ‘π‘π‘šπ‘šβˆ’1 = βˆ‘π‘—π‘—=1π‘šπ‘š 𝑇𝑇𝑛𝑛+𝑗𝑗 , π‘Žπ‘Žπ‘›π‘›βˆ’1 = βˆ‘π‘–π‘–=1𝑛𝑛 𝑇𝑇𝑖𝑖 , π‘Žπ‘Žπ‘›π‘›βˆ’2 = 1

2 βˆ‘π‘–π‘–=1𝑛𝑛 𝑇𝑇𝑖𝑖

2βˆ’βˆ‘π‘–π‘–=1𝑛𝑛 𝑇𝑇𝑖𝑖

2 (7.103)

KEH Process Dynamics and Control 7–75

7.9.2 Isakssons’s and Graebe’s method

Page 76: Process Laboratory Control 7. PID Controllers Control Laboratory 7. PID Controllers 7.0 Overview 7.1 PID controller variants 7.2 Choice of controller type 7.3 Specifications and performance

ProcessControl

Laboratory

7.9 Model simplification

Example 7.3. IMC via model reduction by Isaksson–Graebe’s method.Solve the same problem as in Example 7.2 by Isaksson’s and Graebe’s model reduction method.The model gives

π‘π‘π‘šπ‘šβˆ’1 = 16 + 4 βˆ’ 8 = 12 , π‘Žπ‘Žπ‘›π‘›βˆ’1 = 50 + 20 + 12 + 6 + 3 + 1 = 92π‘Žπ‘Žπ‘›π‘›βˆ’2 = 1

2 922βˆ’(502+202+122+62+32+12) = 2687from which

�𝐺𝐺 𝑠𝑠 =12 16+12 𝑠𝑠+1

12 1000+2687 𝑠𝑠2+12 70+92 𝑠𝑠+1

eβˆ’2𝑠𝑠 = (14𝑠𝑠+1)eβˆ’2𝐿𝐿

1843.5𝑠𝑠2+81𝑠𝑠+1

This model has complex-conjugated poles, but according to (7.91), 𝑇𝑇1 + 𝑇𝑇2 = 81and 𝑇𝑇1𝑇𝑇2 = 1843.5 can be used in the controller calculations. Table 7.12 for IMC-based tuning of second-order model then gives– πœ†πœ† = 𝑇𝑇r + 𝐿𝐿 = 10 + 2 = 12– 𝑇𝑇i = �𝑇𝑇1 + �𝑇𝑇2 βˆ’ �𝑇𝑇3 = 81 βˆ’ 14 = 67– 𝐾𝐾c = 𝑇𝑇i/(πΎπΎπœ†πœ†) = 67/(1 β‹… 12) = 5.6 (much bigger than in Ex. 7.2!)– 𝑇𝑇d = �𝑇𝑇1 �𝑇𝑇2/𝑇𝑇i βˆ’ �𝑇𝑇3 = 1843.5/67 βˆ’14 = 13.5

KEH Process Dynamics and Control 7–76

7.9.2 Isakssons’s and Graebe’s method