21 TH
21 TH
Looking back to the history of the PID controller, the PID controllers in the initial days were
all pneumatic. In fact, all the experimentation by Ziegler and Nichols were carried out with
pneumatic controllers. But pneumatic controllers were slow in nature.
After the development of electronic devices and operational amplifiers, the electronic PID
controllers started replacing the conventional pneumatic controllers.
But with the advent of the microprocessors and microcontrollers, the focus of development
is now towards the implementation with digital PID controllers.
The major advantage of using digital PID controllers is that the controllers parameter can be
programmed easily; as a result, they can be changed without changing any hardware.
Moreover, the same digital computer can be used for a number of other applications besides
generating the control action.
We shall first discuss about the PID controller implementation with pneumatic and
electronic components and then discuss about the different algorithms those can be used
for digital implementation of PID controllers.
Pneumatic Controller
It has been already mentioned that the early days PID controllers were all pneumatic
type.
The advantage of pneumatic controllers is its ruggedness, while its major limitation is
its slow response. Besides it requires clean and constant pressure air supply.
• Bellows,
• Flapper nozzle amplifier,
• Air relay and
• Restrictors (valves).
The integral and derivative actions are generated by controlling the passage of air
flow through restrictors to the bellows.
However, the details of the scheme for generation of PID action in a pneumatic
controller will be elaborated in coming slides.
The measured process variable is converted to air pressure and connected to the
bellows P1.
Similarly the air pressure corresponding to the set point signal is applied to the
bellow P2.
The error corresponding to the measured value and the set point generates a
force on the left hand side of the force beam.
There is an adjustable pivot arrangement that sets the proportional gain of the
amplifier.
The right hand side of the force beam is connected to two bellows, P3 and P4and
a flapper nozzle amplifier.
The output air pressure is dependent on the gap between the flapper and nozzle.
An air relay enhances the air handling capacity. The output pressure is directly fed
back to the feedback bellows P4, and also to P3 through a restrictor (valve).
The opening of this restrictor decides the integral action to be applied. With a
slight modification of this scheme, a pneumatic PID controller can also be
implemented.
Electronic PID Controller
Electronic PID controllers can be obtained using operational amplifiers and passive
components like resistors and capacitors.
A typical scheme is shown as below. With little calculations, it can be shown that the
circuit is capable of delivering the PID actions as:
It is evident from Figure, that the proportional gain Kp is decided by the ratio R2 by
R1 of the first amplifier;
The integral action is decided by R3 and C1 and the derivative action by R5 and C2.
The final output however comes out with a negative sign, however the positive sign
can also be obtained by using a non inverting amplifier at the input stage, instead of
the inverting amplifier.
In the digital control mode, the error signal is first sampled and the controller output
is computed numerically through a digital processor.
But the major problem here is that the error values at all the time instants are to be
stored (or at least the second term of the r.h.s of u(k) at each instant have to be
stored).
Velocity Algorithm for PID
And we can write the error signal at the (k-1) th instant as:
The above algorithm is known as Velocity algorithm.
This ensures that the controller does not react to a sudden large error value (E),
which might cause it to overshoot the setpoint or become unstable.
Similarly, for automatic to manual transfer, initially the manual output is set equal to the
controller output and the difference is gradually reduced by incrementing or
decrementing the manual output to the final value of the manual signal and thus
effecting a change over.
Another way to transfer from Auto to Manual mode in a bumpless manner, the set
point may be made equal to the present value of the process variable and then
slowly changing the set point to its desired value.
This refers to the situation in a PID feedback controller where a large change in
set-point occurs (say a positive change) and the integral terms accumulates a
significant error during the rise (windup), thus overshooting and continuing to
increase as this accumulated error is unwound (offset by errors in the other
direction). The specific problem is the excess overshooting.
The upper and lower limits of the output may correspond to the flow rates of a
control valve when the valve is at fully open and fully closed position.
The first method uses a switch to break the integral action, whenever the
actuator goes to saturation.
On the other hand, if the switch is open, it is a simple P- controller. The switch is
activated by the position of the actuator.
Hence If the actuator is operating in the linear range, the switch is closed, and the
controller is in P-I mode. But whenever the actuator is in the saturation mode, the
switch is automatically opened; the controller becomes a P-controller. As a result,
any windup due to the presence of integral mode is avoided.
Another technique for anti windup action is illustrated in Figure below. Here we
assume that the slope of the actuator in the linear range is unity. As a result, when
the actuator is operating in the linear range the error eA is zero, and the controller
acts as a PI controller.
But when the actuator is in saturation mode, the error eA is negative for a positive e.
This will reduce the integral action in the overall control loop.
Other anti-windup precautions are:
(i) Closing the I-action only when the error is small (say 5% to 10% of the range),
(ii) Limiting the output of the I-action block.
In this lecture several methods for implementation of the control actions, as well as
prevention of certain undesirable effects while the controller is in use in the process
have been discussed.
The implementation of the PID action can be carried out using pneumatic or
electronic discrete components (hydraulic controllers are also in use, but to a
limited extent).
The basic schematics of pneumatic and electronic PID controllers have been
explained. Next, the implementation of the control action using a digital controller
has been discussed. Two algorithms for digital implementation have been
explained.
Their relative merits and demerits are also been elaborated. The necessity for
using schemes for bumpless transfer and anti-integration windup been explained
and few such schematic arrangements have been presented.
Several controllers act together: Electricity Generator
DP
f
Steam DV
Controllable
excitation
Main Valve
source
steam control
valve mechanism
Voltage
sensors
Turbine Generator
Frequency sensor
excitation
current U = k × Ie × ω
voltage PID exitation Ie
load
speed
ω
frequency PID turbine generator voltage
measure
measure
Nested control of a continuous plant - example
PD torque regulation
Position PID (protection) encoder
sol Speed
cmd Torque PID
sol tacho
is cmd sol M
cmd
is
is
amplifier
Current
Velocity
Position
position control
speed control
torque control robot arm trajectory
basic idea: bring the output on an approximate track from the start, let the regulator only correct
the small deviations. The feedforward controller knows the plant, it can also consider known disturbances
disturbances
feed-forward
controller
x
set point command
feed-back
controller plant
m
y
measurement
process value
Advanced Control
controller disturbances
plant
model
x
economical
control
objectives, m plant
algorithms
Cost functions
command
y
measurement
process value
This is a high-level control in which the set-points are computed based on economical objectives
Exercises
A Control System…
a) is dependent not only on current environment but on past environment as well
b) describes the direction PV moves and how far it travels in response to a change in
CO (steady state)
c) set of devices to manage, command, direct or regulate the behavior of other
device(s) or system(s)
What has only one tuning parameter so it’s easy to find “best” tuning, but permits offset?
a) P only
b) PI
c) PD
What is proportional to both the magnitude of the error and the duration of the error?
a) P only
b) PI
c) PD
Assessment
Is a PID controller required for a position control system (motor moves a vehicle)?
Explain the relation between nesting control loops and their real-time response
"Computer Systems for Automation and Control", Gustaf Olsson, Gianguido Piani,
Lund Institute of Technology