Controller Design and System Modelling

Controller Action Mathematics


The basic type of controller is the Feedback Controller.

Feedforward controllers also exist but are more complicated to implement. Here we will describe the use of feedback controllers.

In feedback control the variable required to be controlled is measured. This measurement is compared with a given setpoint. The controller takes this error and decides what action should be taken by the manipulated variable to compensate for and hence remove the error.

Figure 1 - Feedback Control Loop

The advantage of this type of control is that it is simple to implement. Not only does the feedback control system require no knowledge of the source or nature of the disturbances, but it also requires minimal detailed information about how the process itself works. Feedback control action is entirely empirical. So long as an adjustment is being made in the correct sense then the control system should remove the effect of an external disturbance.

The disadvantage is that the disturbance has to enter and upset the system before it is eliminated.

A feedback control loop can have one of two objectives.

Proportional Controller

The first type of controller that we will study is the proportional controller. This controller sets the manipulated variable in proportion to the difference between the setpoint and the measured variable. The bigger the difference, the greater the change in the manipulated variable.

The equation that describes a proportional controller is


The advantage of proportional control is that it is relatively easy to implement. However the disadvantage is that when implementing a proportional only controller there will be an offset in the output. Thus there is always a difference between the setpoint and the actual ouput. The reason why this is so can be shown by means of an example.

Example: Flow Through a Pipe (1)

Below is a diagram of the example.

Figure 4 - Diagram of Flowrate Example

Therefore we can see that



Let us assume to begin with that Fs = 50 and Fd = 50. If this is true then it can be seen from the above equation that F = Fs and there is no error. Note that this result is independent of the value of the gain.

However, let us now consider what happens when the value of the setpoint changes from 50 to 60 with Fd staying constant at 50. First the relevent equation is shown and then the table below summerises the results for different gains.

From the above example we can see the problem of using proportional only control, namely the offset. Note also that there must always be an offset. This is because to achieve the new steady state the term must have a value and so there must be an error. There are two ways of eliminating this problem.

The first is hard to achieve since it requires very accurate knowledge of the process, and would require changes whenever the setpoint is moved.

The second leads to problems of rangeability and sensitivity. Suppose the gain is 10, then measurement noise of 1% of the total range will cause the control valve to move over 10% of its total travel. This is unacceptable.

Proportional-Integral Controller

To remove the offset integral action is required and so PI control is normally used. It works by summing the current controller error and the integral of all previous errors. It may be thought of as a way of automatically calculating the quantity ud. Proper tuning - described in a subsequent section - of the integral part of a PI controller can improve its performance.

If the error e is defined as

Then the equation describing a proportional-integral controller is


Alternatively, we can differentiate this expression to get

Example - Flow Through a Pipe (2)

Again we will use the example of the flow through a pipe to investigate the nature of Proportional-Integral control.

As before


Since Fs is constant, this becomes


Equations of the form

are very common and have well known properties. Their solution has the form shown below.

Figure 5 - Response Curve

We note that

For the flow control system with integral action we see that