Proportional Integral Derivative PID Controllers

Terminology & Technicalities

 

Tutorials about PID are often very technical with a lot of mathematics that leave many people unable to comprehend.  Our goal is try to explain PID controllers so that people can easily understand the theory behind them.  On this first page we have to start out with terminology and some technical information so that you understand the basics of PID control.  On the next page we will discuss PID in a more practical manner. 

PID controllers are process controllers with the following characteristics:

Examples of "continuous process control" are temperature, pressure, flow, and level control. 

For example, controlling the heating of a tank.  For simple control, you have two temperature limit sensors (one low and one high) and then switch the heater on when the low temperature limit sensor turns on and then turn the heater off when the temperature rises to the high temperature limit sensor.  This is similar to most home air conditioning & heating thermostats. 

In contrast, the PID controller would receive as input the actual temperature and control a valve that regulates the flow of gas to the heater.  The PID controller automatically finds the correct (constant) flow of gas to the heater that keeps the temperature steady at the setpoint.  Instead of the temperature bouncing back and forth between two points, the temperature is held steady.  If the setpoint is lowered, then the PID controller automatically reduces the amount of gas flowing to the heater.  If the setpoint is raised, then the PID controller automatically increases the amount of gas flowing to the heater.  Likewise the PID controller would automatically compensate for hot, sunny days (when it is hotter outside the heater) and for cold, cloudy days. 

The analog input (measurement) is called the "process variable" or "PV".  You want the PV to be a highly accurate indication of the process parameter you are trying to control.  For example, if you want to maintain a temperature of + or - one degree then we typically strive for at least ten times that or one-tenth of a degree.  If the analog input is a 12 bit analog input and the temperature range for the sensor is 0 to 400 degrees then our "theoretical" accuracy is calculated to be 400 degrees divided by 4,096 (12 bits) = 0.09765625 degrees.  We say "theoretical" because it would assume there was no noise and error in our temperature sensor, wiring, and analog converter.  There are other assumptions such as linearity, etc..  The point being -- with 1/10 of a degree "theoretical" accuracy -- even with the usual amount of noise and other problems -- one degree of accuracy should easily be attainable. 

The analog output is often simply referred to as "output".  Often this is given as 0 to 100 percent.  In this heating example, it would mean is the valve totally closed (0 %) or totally open (100 %). 

The setpoint (SP) is simply -- what process value do you want.  In this example -- what temperature do you want the process at? 

 

How a PID Controller Works

The PID controllers job is to maintain the output at a level so that there is no difference (error) between the process variable (PV) and the setpoint (SP). 

proportional integral derivative PID controllers

In this diagram the valve could be controlling the gas going to a heater, the chilling of a cooler, the pressure in a pipe, the flow through a pipe, the level in a tank, or any other process control system. 

What the PID controller is looking at is the difference (or "error") between the PV and the SP.  It looks at the absolute error and the rate of change of error.  Absolute error means -- is there a big difference in the PV and SP or a little difference?  Rate of change of error means -- is the difference between the PV or SP getting smaller or larger as time goes on. 

When there is a "process upset", meaning, when the process variable OR the setpoint quickly changes  -- the PID controller has to quickly change the output to get the process variable back equal to the setpoint.  If you have a walk-in cooler with a PID controller and someone opens the door and walks in, the temperature (process variable) could rise very quickly.  Therefore the PID controller has to increase the cooling (output) to compensate for this rise in temperature. 

Once the PID controller has the process variable equal to the setpoint, a good PID controller will not vary the output.  You want the output to be very steady (not changing).  If the valve (motor, or other control element) are constantly changing, instead of maintaining a constant value, this could case more wear on the control element. 

So there are these two contradictory goals.  Fast response (fast change in output) when there is a "process upset", but slow response (steady output) when the PV is close to the setpoint. 

Note that the output often goes past (over shoots) the steady-state output to get the process back to the setpoint.  For example, a cooler may normally have it's cooling valve open 34% to maintain zero degrees (after the cooler has been closed up and the temperature settled down).  If someone opens the cooler, walks in, walks around to find something, then walks back out, and then closes the cooler door -- the PID controller is freaking out because the temperature may have raised 20 degrees!  So it may crank the cooling valve open to 50, 75, or even 100 percent -- to hurry up and cool the cooler back down -- before slowly closing the cooling valve back down to 34 percent. 

 

 

We try to offer a fair and balanced opinion on every page of our website.  We would appreciate more information from other users to express their opinions which we will then incorporate.  If you have questions or comments please post them on our message board (see button in left hand column) so that others can read and benefit. 

proportional integral derivative PID controllers