Tutorial for PID - Controlled Systems

About the tutorial

This Tutorial should help you to become familiar with PID feedback controlled systems. If you think you are already familiar with certain topics you can enter the tutorial at specific stages using the menu on the left hand side of the screen. Pen and paper would be useful to note down important information.
 

PID - Controller

The PID – Controller is the most widely used control strategy in industry. It is used for various control problems such as automated systems or plants. A PID-Controller consists of three different elements, which is why it is sometimes called a three term controller. PID stands for:
 
P      Proportional control
I       Integral control
D      Derivative control.
PID – control can be implemented to meet various design specifications for the system. These can include the rise and settling time as well as the overshoot and accuracy of the system step response.
To understand the operation of a PID feedback controller, the three terms should be consideered separately.

Proportional Control

Proportional control is a pure gain adjustment acting on the error signal to provide the driving input to the process. The P term in the PID – controller is used to adjust the speed of the system.

Integral Control

Integral control is implemented through the introduction of an integrator. Integral control is used to provide the required accuracy for the control system.

Derivative Control

Derivative action is normally introduced to increase the damping in the system. The derivative term also amplifies the existing noise which can cause problems including instability.

PID Transfer Function

If we now look at the general transfer function of a PID-controller, the three terms can be recognised as follows:
           (1.1)
  ­       ­          ­
  P      I        D
 If we now rearrange that a little we come up with a more conventional transfer function form:
          (1.2)
Where:
Kp  is the proportional gain
Ti  is the integral time constant
Td  is the derivative time constant
Such a controller has three different adjustments (Kp, Ti, Td) which interact with each other. For this reason, it can be very difficult and time consuming to tune these three values in order to get the best performance according to the design specifications of the system.
The next example illustrates the effect of implementing P, PI, PID control to a system in turn. We will consider how the controller constants are selected later.

Example

Consider the following configuration:
The design specifications are: The transfer functions are as follows:
The process: 

The feedback path: 

The table below shows the calculated parameters of the different controllers:
 
PID
PI
P - Control
Kp=2
Kp=2.7
Kp=3
Ti=0.9
Ti=1.5
 
Td=0.6
   
This gives the following closed loop transfer functions:
PID Control

PI Control

P Control

The step response

The above transfer functions give the step responses below


 

Proportional control -

By only employing proportional control, a steady state error occurs.

Proportional and integral control -

The response becomes more oscillatory and needs longer to settle, the error disappears.

Proportional, integral and derivative control -

Now the design specifications are reached.

Summary

PID control:

Tuning methods

As mentioned before, the set up procedure or tuning of a controller can be tedious. One approach is to use a technique which was developed in the 1950's but which has stood the test of time and is still used today. This is known as the Ziegler Nichols tuning method.
 

Ziegler Nichols Tuning Method

The procedure is as follows:
  1. Select proportional control alone
  2. Increase the value of the proportional gain until the point of instability is reached (sustained oscillations), the critical value of gain, Kc, is reached.
  3. Measure the period of oscillation to obtain the critical time constant, Tc.
Once the values for Kc and Tc are obtained, the PID parameters can be calculated, according to the design specifications, from the following table.
 
 
Control
Kp
Ti
Td
P only
0.5 Kc
   
PI
0.45 Kc
0.833 Tc
 
PID tight control
0.6 Kc
0.5 Tc
0.125 Tc
PID some overshoot
0.33 Kc
0.5 Tc
0.33 Tc
PID no overshoot
0.2 Kc
0.3 Tc
0.5 Tc
                       Table 1
These values are not the optimal values and additional fine tuning may be required to obtain the best performance from the system. The selection of the type of PID-control to be applied depends on the application of the system. i.e. a control system for a pressure vessel strongly  requires PID-control with no overshoot.
Now work through the following example.
 

Example

Use the Zeigler Nichols closed loop method to tune a PID-controller for a cruise control system applied in a road vehicle. Fluctuations in the speed are not permitted and cruise speed should be accurate

What type of control is appropriate?

PID some overshoot will be appropriate
Assume the transfer function of the road vehicle is:

Now form the closed loop transfer function with proportional gain K and increase the gain up to the point of instability. From this, the response KC and TC are obtained which enables the calculation of the PID parameters (Table1 above). Apply these to the closed loop transfer function.
Finally obtain the response and compare it with the design specification.

Working

If you have access to MATLAB, click here for help on using MATLAB to determine the solution.
          Form the Closed Loop Transfer Function.

Solution

This is obviously the point of sustained oscillation.
Therefore
KC  = 10
TC  = 1 ( time of one period )
Obtain PID parameters from Table 1 (above).
KP = 3.3
Ti   = 0.5
Td  = 0.33


Now form the closed loop transfer function with the PID controller and the process.

Controller transfer function: 

Process transfer function: 

Now replace the variables, close the feedback loop and obtain the closed loop transfer function.


And get the step response.

To see how the evaluation was performed using MATLAB, click here.

As mentioned before, this approach is not the final solution. Additional fine tuning can be done in order to get a better performance from the system. However this can be used as an initial tuning and it more or less fulfils the design specifications.

You have now completed the PID-Tutorial.
Return to top of page

Contact me

Last updated on Friday, 10-Sep-1999 10:37:48 BST