Professional Documents
Culture Documents
PID controller is named after the term it consists, Proportional, Integral and Derivative. It is
commonly used in control system loop.
Here the desired output value is called the Set Point (SP) and measured value is called Process
Variable (PV), and the output of the PID controller is called Manipulated Variable (MV), the
difference between Set Point (SP) and Process Variable (PV) is the error (e).
After calculating the error the controller decides how to set the Manipulated Variable (MV)
Proportional term
The proportional term produces an output value that is proportional to the current error value.
The proportional response can be adjusted by multiplying the error by a constant Kp, called the
proportional gain constant.
The proportional term is given by:
Where,
e (t) = SP-PV
If the proportional gain Kp is high, then the system can become unstable.
Integral term
The integral of a signal is the sum of all the instantaneous values that the signal has been, from
whenever you started counting until you stop counting.
So if you are to plot your signal on a graph and your signal is sampled every second, and lets
say you are measuring temperature. If you were to taking the integral of the signal over the first 5
seconds it would look like this:
The green line is your temperature, the red circles are where your control system has
sampled the temperature, and the blue area is the integral of the temperature signal. It is
the sum of the 5 temperature values over the time period that you are interested in. In
numerical terms it is the sum of the areas of each of the blue rectangles, units are not
important.
(13 x 1)+(14x1)+(13x1)+(12x1)+(11x1) = 63 C s
The integral term accelerates the movement of the process towards set point and eliminates the
residual steady-state error that occurs with a pure proportional controller. However, since the integral
term responds to accumulated errors from the past, it can cause the present value to overshoot the
set point value
Derivative term
The derivative of the process error is calculated by determining the slope of the error over time
and multiplying this rate of change by the derivative gain Kd. The derivative term is given by