P I D Controllers
P I D Controllers
Topics Covered
Controller
Properties of Controllers
Classification of Controllers
Illustrative Problems.
What is a Controller/Control System …?
• A Controller is a device introduced in the system to modify the error signal
and to produce a control signal to obtain Actual response.
• A Control System consists of Subsystems and Processes (or plants) assembled
for the purpose of obtaining a desired output with desired performance,
given a specified input.
Feedback Signal
• The actual output is sensed by a sensor and converted to a proper feedback
signal b(t) using a feedback element.
• The feedback signal is compared with the reference input and generate an
error signal to feed the controller
• The output of the controller applied to the process or final control element.
This brings the output back to its desired set point value.
• The accuracy of the entire system depends on how sensitive is the controller to
the error detected and how it is manipulating such an error.
• For example the actual output variable may be temperature, but using
thermocouple as the feedback element, the feedback signal b(t) is an
electrical voltage.
• The thermocouple senses the output temperature and produces
corresponding electrical e.m.f as the feedback signal.
• Hence actual output variable sensed and feedback signal may be having
different forms.
• Now the error signal generated by comparing the feedback signal with the
reference input and give it as input to the controller
Properties of Controllers:
• Error
• Variable Range
• Control Lag
• Dead Zone
Error
The error detector compares the feedback signal b(t) with the reference
input r(t) to generate an error.
Solution:
= 12mV = 2mV
b = 6.5mV r = 7mV
Therefore
Variable Range
• In practical systems, the controlled variable has a range of values within which
the control is required to be maintained.
• This range is specified as the maximum and minimum values allowed for the
controlled variable.
• It can be specified as some nominal values and plus/minus tolerance allowed
about this value.
• Such range is important for the design of controller
• The control lag is the time required by the process and controller loop to
make the necessary changes to obtain the output at its set point.
• The control lag must be compared with the process lag designing the
controllers.
• For example in a process a valve is required to be open or closed for
controlling the output variable.
• Physically the action of opening or closing of the valve is very slow and is
the part of the process lag.
• In such a case there is no point in designing a fast controller than the
process lag.
Dead Zone
• The time elapsed between the instant when error occurs and the instant
when the first corrective action occurs is called dead time.
• Nothing happens in the system, during this time though the error occurs.
• The effect of such dead time must be considered while the design of the
controllers.
Classification of Controllers:
• It is based on the response of the controller and mode of operation of the
controller.
• For example in a simple temperature control of a room, the heater is to be
controlled. It should be switched on or off by the controller when
temperature crosses its set point.
• Such an operation of controller is discontinuous mode of controller.
• But in some process control systems, simple on/off decision is not sufficient.
• For example, controlling the steam flow by opening and closing the valve. In
such a case a smooth opening or closing of valve is necessary.
• The controller in such a case is said to be operating in a continuous mode.
• Discontinuous mode Controllers
1. proportional controllers,
2. Integral controllers
3. Derivative controllers
4. Proportional-plus-Integral Controllers
5. Proportional-plus-Derivative Controllers.
6. Proportional-plus-Integral-plus-Derivative Controllers
• Most controllers are placed in forward path of control system.
Continuous Controllers modes:
• So if e(t)is negative then e(t) gets subtracted from and e(t) is positive, then
• So equation (1) represents the reverse action, but using the negative sign to
the correction term e(t), the direct action proportional control can be
achieved.
• The proportional Control mode depends on the proper design of .
• For a fixed , if the gain is high then large output results for small error but
narrow error band can be handled. Beyond these limits of error, the output
will be saturated.
• If the gain small then the response is smaller but large error band can be
handled.
• For proportional band is mathematically defined by
Characteristics of Proportional mode:
• If the error occurs, then for every 1 % of the error the correction of % is
achieved. If the error is positive, % correction gets added to and if the error is
negative, % correction gets subtracted from .
• The band of error exists for which the output of the controller is between 0 %
to 100 % without saturation.
• The gain and the error band PB are inversely proportional to each other.
Offset:
• The major disadvantage is the proportional control mode is that it produces
offset error in the output.
• When the load changes, output deviates from the set point, such a deviation
is called offset error or steady state error.
• The offset error depends upon the reaction rate of the controller. Slow
reaction rate produces small offset error while fast reaction rate produces
large offset error.
• The dead time or transfer lag present in the system further worsens the
results. It produces not only the large offset at the output but the time
required to achieve steady state is also large.
• The offset error can be minimized by the large proportional gain which
reduces the proportional band.
• If is made very large proportional band becomes so small that it acts as an
ON/OFF controller producing oscillations about the set point instead of a
offset error.
Applications
where Controller output when the integral action starts i.e. at t=0
• The output signal from the controller, at any instant is the area under the
actuating error signal curve up to that instant.
• If the value of the error is doubled, the value of p(t) varies twice as fast i.e.
rate of the controller output change also doubles.
• If the error is zero, the controller output is not changed. The control signal
p(t) can have nonzero value when the error signal e(t) is zero.
• This is because of the output depends on the history of the error and not on
𝒅𝒑 ( 𝒕 )
𝒅𝒕
Step response of integral mode:
appreciable output.
• However it continues to act till error signal disappears. This corrects the
• For example, let us assume that the integral controller is used to control the
armature current of a DC motor and to keep its value constant at 500 A.
• As long as the armature current is less than 500 A, the armature voltage,
controlled by the controller, will increase.
• Thus the output of the controller will increase and will continue to do so till
the error becomes zero i.e. armature current becomes 500 A. Then the
controller output will remain at that value reached.
• The output of the controller can remain at any value with its range, if the
input is zero.
• The controller must not be overdriven as it will not then be effective.
For integral mode,
1. If the error is zero, the output remains at a fixed value equal to what it was,
when the error becomes zero.
2. If the error is not zero, then the output begins to increase or decrease, at a
rate per second per every of error.
• In some times inverse of is called integral time is specified as .
• It can be seen that proportional mode is more favourable at start while the
integral is better for steady state response.
• In pure integral mode, error can be oscillates about zero and can be cyclic.
Hence it is never used alone but combination of proportional mode to
enjoy the advantageous of both the modes.
Derivative Control mode:
• In practice the error is function of time and a particular instant it can be
zero. But it may not remain zero forever after that instant.
• Hence some action is required corresponding to the rate at which the error
is changing. Such a controller is called a derivative controller.
• In this mode, the output of a controller depends on the time rate of change
of the actual errors. Hence it is called rate action mode or anticipatory
action mode.
• The mathematical expression for the mode is,
• Figure shows how derivative mode changes the controller output for the
various rates of change of the error.
• The controller output is 50 % for the zero error.
• When the error starts increasing, the controller output suddenly jumps to
the higher values.
• If further jumps to a higher value for higher rate of increase of error.
controller output.
3. When the error is constant i.e. rate of change of error is zero, the
4. When the error is changing, the controller output changes by % for every
• When the error is zero or constant, the derivative controller output is zero.
• Its gain should be small because of faster rate of change of error can cause
• The ramp function of error occurs at t = . The derivative mode causes a step
at and proportional mode causes a rise of equal to at .
• This is for direct action PD control.
PD type of Controller:
• A controller in the feedback path, which changes the controller output
corresponding to proportional plus derivative of error signal is called PD
Controller.
i.e.
• Taking Laplace = K E(s) + s E(s) = E(s)[ K + s ]
• The transfer function of such controller is [ K + s ] and realized as following
figure.
Assuming K = 1, we can write,
and
Comparing denominator with standard form, is same as in the P type
controller.
and
Hence as type is increased by one, error becomes zero for ramp type of
inputs i.e. steady state of system gets improved and system becomes more
accurate in nature.
IV. Steady state error reduces the tremendously same type of inputs.
V. In general this type of controller improves steady state part affecting the
transient part.
PID Type Controller
• As PD improves transient and PI improves steady state, combination of two may
be used to improve overall time response of the system.
• This can be realized as shown in the figure.
Output of Controller =
G(s) =
Steady state error:
• Consider a simple closed loop system using negative feedback as shown in figure.
For negative feedback systems use positive sign in denominator while use
negative sign in denominator if system uses positive feedback.
4
= 0.6 and settling time =
=
Q2. For the system shown determine % and when it is excited by unit step
input. If for the same system, PD controller having constant = 1/30 is used in
forward path, determine new values of damping ratio, and Draw respective
waveforms.
Solution: without controller,
and
.
With controller:
The closed loop transfer function with PD controller is
2𝛏 𝛏=
𝛏 is improved,
.
• Comparison: Following figure shows comparison between system with controller and
system without controller.
Q3. An Integral Controller is used for temperature control with in a range 40-
C. The set point is C. The controller output is initially 12 % when error is zero.
The integral constant controller output per second per percentage error. If
the temperature increases to C, calculate the controller output after 2 sec for
a constant error.
where = error
Now r = Set point = C
b = actual temperature = C
P=
2 % per %
The range of to so C
2.5 =
Q5. A PID Controller has sec and = 40 %. Draw the plot of controller
output for error of figure.
Solution:
From the given error plot,
For 0 – 2 sec,
where
For 2 – 4 sec,
…(1)
At the end of 2 sec, the integral term has accumulated to,
For 2 – 4 sec,
…(2)
At the end of 4 sec, the integral term has accumulated to,
For 4 – 6 sec,
…(3)
After 6 sec, error is zero hence the output will simply be the accumulated
integral response providing a constant output.
Q6. A temperature control system has the block diagram given in below figure.
The input signal is voltage and represents the desired temperature is a small
unit step function and
i) D(s) =1 ii) D(s) = 1 + (0.1/s) iii) D(s) = 1 + 0.3s.
What is the effect of the integral term in the PI controller and derivative term
in PD controller on the steady state error?
+
+ 0.3s
; ; and