Chapter 05. ProcessControllers
Chapter 05. ProcessControllers
Engineering
Chapter 5:
Process Controllers
Outline
5.1 Introduction
5.7 Tuning
• Example: in a room heating system, opening a window or changing the thermostat causes a lag before the
heater restores the temperature.
• Dead time affects control performance and must be considered in controller design to avoid overshoot or
instability.
Capacitance
• Capacitance describes the ability of a system to store or buffer the controlled quantity, affecting how quickly
it responds to changes.
• In tank level control, a larger water surface area slows the system’s response to inflow changes, while a
smaller surface allows faster adjustment.
• Electrical analogy: in an RC circuit, the larger the capacitance, the slower the voltage rises to steady state;
similarly, higher system capacitance slows response, while lower capacitance speeds correction.
• Capacitance must be accounted for in control design to achieve stable and timely system response.
On-Off Control
• The controller acts as a switch, activated by
the error signal, supplying only on or off
output; also called a two-step controller.
• Bimetallic thermostat: two metals with different
expansion rates are joined; temperature rise
curves the strip to open/close a switch. Heater
switches off if temperature is above set value
and on if below.
• Wax thermostat: wax expands when heated,
pushing a rod to open a valve; used in car
engine cooling and central heating radiator
valves.
On-Off Control
• On-off control is discontinuous, causing oscillations around the set point due to system time lags; e.g.,
room temperature fluctuates above and below the desired value.
• Dead band/neutral zone : prevents frequent switching from minor temperature changes; e.g., a
thermostat set at 20°C may switch on at 19.5°C and off at 20.5°C.
• A larger dead band causes larger temperature swings; a smaller dead band increases switching
frequency.
On-Off Control
On-Off Control
• On-off control works well with
systems of large capacitance
(slow response), is simple,
inexpensive, and can be
implemented mechanically
(bimetallic strips, relays) or
electronically (thyristors,
transistors).
On-Off Control
• Common applications: domestic central heating systems, car radiator cooling fans using wax
thermostats.
Relay
• Relays use a small current to energize a
solenoid, creating a magnetic field that moves
an armature to close contacts.
• Closing the contacts switches a much larger
current to a correction element (heater,
motor).
• When the solenoid current drops below a
threshold, the armature returns to off via the
spring action.
• Relays respond to error signals, turning the
system on or off when the error reaches set
limits.
• Unlike on-off control, the controller output is proportional to the size of the error.
• Controller output = Kp × error,
where Kp is the gain constant.
• Correction element input varies with required correction, preventing overshoot and reducing
oscillations.
• Example: heater power decreases as temperature approaches the set point to maintain stable
temperature.
• Float-type water level control:
• lever mechanism translates error into proportional output;
• output movement = (x/y) × error.
• Amplifier example:
• output signal proportional to input error, used for temperature control of tank outflow..
Proportional Band
• Controller output is often expressed as a
percentage of its full range (0–100%).
• Fully closed correction element
corresponds to 0% output, fully open to
100%; output varies proportionally with
error.
Proportional Band
• Range: extreme
values the system
operates between
(e.g., 4–20 mA).
• Span: difference
between extreme
operating values.
Proportional Band
• Absolute deviation:
error = measured value – set
value.
• Fractional deviation:
absolute deviation as a
fraction of the span.
Example: 3 °C error in a
0–30 °C span → 10%
deviation.
Proportional Band
• Proportional Band
(PB): the percentage
deviation that
produces a 100%
change in controller
output.
• %PB = (% deviation
÷ % change in
output) × 100
Proportional Band
• Example: 50% PB means a 50% error produces full (100%) controller output; 100% PB means a
100% error produces full output.
• PB is inversely related to proportional gain Kp: higher Kp → smaller PB; lower Kp → larger PB.
PD Control
• Combines proportional (P) and derivative (D) actions:
PD output = Kp × error + Kd × rate of change of error.
• Proportional part responds to the magnitude of error; derivative part responds to
the rate of change of error.
• Derivative action gives a rapid initial response to changing errors, while
proportional action provides gradual correction.
• Better than proportional control alone for handling fast process changes.
• Still cannot eliminate steady-state error; a constant error is required to maintain output for changes in input
or set point.
• The derivative constant Kd is often expressed relative to proportional gain as derivative time: Td = Kd / Kp.
• PD controller output can be written as: PD output = Kp × (error + Td × rate of change of error).
PI Control
• PI control combines proportional (P) and
integral (I) modes to give a controller output:
PI controller output = Kp × error + Ki × ∫ error
dt, where Kp is the proportional gain and Ki
is the integral gain.
• The proportional part responds immediately
to the current error, while the integral part
accumulates past errors over time.
• Integral action eliminates steady-state error
because it continues to produce output even
when the current error is zero, maintaining
the set point.
PI Control
• PI control combines proportional (P) and
integral (I) modes to give a controller output:
PI controller output = Kp × error + Ki × ∫ error
dt, where Kp is the proportional gain and Ki
is the integral gain.
• The proportional part responds immediately
to the current error, while the integral part
accumulates past errors over time.
• Integral action eliminates steady-state error
because it continues to produce output even
when the current error is zero, maintaining
the set point.
PI Control
• The integral action time Ti = Kp / Ki;
the PI output can also be expressed
as: PI output = Kp × error + (Kp / Ti) ×
∫ error dt.
• PI control is suitable for processes
with large or slow-changing errors, but
rapid changes can lead to oscillations
due to the integration lag.
• The combined action provides both
quick response to error changes
(proportional) and correction of
accumulated errors (integral).
PID Control
A PID controller combines proportional (P), integral (I), and derivative (D) actions to eliminate steady-state
error and reduce oscillations.
• Proportional control provides immediate response to the current error.
• Integral control eliminates offset by accumulating past errors over time.
• Derivative control reduces the effect of time lags by responding to the rate of change of error.
• PID controllers can be arranged in different forms:
Parallel form: PID output = Kp × error + Ki × ∫ error dt + Kd × d(error)/dt.
Each mode acts independently; rarely used.
PID Control
PID Control
PID Control
PID Control
• Interactive form:
PID output = Kc × [error + (1/Ti) × ∫ error dt + Td × d(error)/dt]. Derivative acts on integrator output.
• Non-interactive (ideal) form:
PID output = Kc × error + (Kc/Ti) × ∫ error dt + Kc × Td × d(error)/dt. Integral and derivative act
directly on proportional output; widely used.
• If derivative control is not used, interactive and non-interactive forms are equivalent.
• Integrator windup occurs when actuators reach limits (e.g., fully open valve or maximum motor speed), but
the integral term continues to accumulate, causing overshoot and slow recovery.
PID Control
• Anti-windup circuits in
commercial PID controllers
prevent this by disabling the
integral action when actuator
saturation is detected
• Designing a controller involves choosing the appropriate control modes (P, PI, PD, or PID) and selecting
the tuning parameters Kp, Ki, and Kd.
• These settings determine how the system reacts to disturbances, how quickly it responds, how long it
takes to settle, and whether a steady-state error remains.
• A step-input response illustrates differences between modes: proportional control responds quickly but
leaves a steady-state error; PI control removes steady-state error but may introduce more oscillations.
• PID control also removes steady-state error and, with the derivative term, reduces oscillations and
improves stability.
• Tuning refers to selecting the best settings for fast response, minimal overshoot, and rapidly decaying
oscillations.
• Many commercial controllers offer auto-tuning, where small setpoint changes are applied and the optimal
parameters are calculated automatically.
EXAMPLE
Determine the settings of Kp, Ki and Kd required for a three-mode controller which gave a process reaction
curve when the test signal was a 10% change in the control valve position.
Lambda Tuning : aims for a non-oscillatory response to setpoint changes and load disturbances.
• Procedure: switch the controller to manual mode, wait for the process variable to reach steady state, then
apply a step change (bump) in the setpoint.
• Monitor the process variable until it settles and extract the following from the response graph:
• Dead time 𝐷
• Process time constant 𝜏(lambda value)
• Process gain
Lambda Tuning :
• Integral time: 𝑇𝑖 = 𝜏 + 𝐷 or 𝑇𝑖 = 𝜆 + 𝑇𝑑 depending on variant
• Derivative time: 𝑇𝑑 = 0.
Software Tools
• Software packages are available for tuning.
• They gather data from the system, develop process models and then suggest optimal tuning values.
• An impulse can be induced in the system and then the control system’s response used to determine
optimum loop values.
Adaptive Controllers
• Adaptive controllers change the controller parameters to adapt to changes in the process that occur with
time, e.g. a change in plant load.
• If the transfer function of the plant changes then there needs to be retuning of the controller if optimum
control conditions are to occur.
• An adaptive controller thus determines the values of K and K d p , K i needed to adapt to new process
conditions and makes the necessary changes.
Adaptive Controllers
The self-tuning, often termed auto-tuning that exists with many commercially available controllers is a form of
adaptive control.
When the operator presses a button on the controller, the controller injects a small disturbance into the
system and determines the system’s response.
This is then compared with the desired response and the control parameters adjusted to bring the actual
response closer that required.
• Traditional PID control is widely used, especially in temperature control systems, but can produce
overshoot when the setpoint changes abruptly or gradually.
• Fuzzy logic control offers a more flexible approach by using a set of control rules rather than relying solely
on a mathematical model.
• This method can continuously adjust control actions, improving performance when the system
experiences changing setpoints.
• Commercial examples include Omega’s Platinum Series controllers, which combine auto-tune PID with
fuzzy logic adaptive control.
• Fuzzy logic controllers are increasingly applied in domestic appliances (e.g., washing machines, vacuum
cleaners) to manage processes that are difficult to model mathematically..
Fuzzy Logic
• Conventional controllers respond to crisp inputs
(e.g., switch on heating at exactly 15°C). fuzzy
logic controllers respond to ranges of values,
handling concepts like “cold” or “warm” rather
than precise numbers.
• Decisions are based on degrees of truth, not
strictly YES or NO, allowing for partial
membership
• Fuzzy sets allow overlapping categories; an
input can belong to multiple sets simultaneously
with different membership values.
Fuzzy Logic
• Example – Heights:
classical sets classify
a person as either tall
or short; fuzzy sets
allow gradual
membership. A
person 1.5 m tall
might have 0.25
membership in “tall”
and 0.75 in “short.”
Fuzzy Logic
• Example – Temperature:
overlapping fuzzy sets like cold
(0–30°C), warm (10–30°C), hot
(20–40°C). A temperature of
18°C can belong partially to
“cold” (0.2) and “warm” (0.8)
sets.
• Fuzzy logic better represents
real-world situations where
categories are not sharply
defined and decisions are
intuitive.
• Conventional control methods rely on mathematical models, whereas fuzzy control relies on rule sets.
• Neural networks provide another modern control method, inspired by the structure and function of the
human brain.
• Hidden neurons compute a weighted sum of their inputs and pass the result through a threshold (activation)
function.
• The challenge is determining suitable weights; this is achieved through supervised learning with known
input–output pairs.
• During training, the network compares its actual output with desired output and adjusts the weights to
reduce the error.
• Through repeated exposure to examples, the network “learns” correct pathways and can later generalize to
new inputs.
• Neural networks can act directly as controllers in a control system, known as direct neural control.
• Unlike conventional on/off control with fixed switching conditions, a neural controller can learn to adapt its
switching behavior when system conditions change.
• Example: a room heating controller using a neural network may take inputs such as room temperature,
temperature change over time, outdoor temperature, and outdoor temperature change, process them through
hidden neurons, and produce an on/off output signal.
The neural controller must be trained to generate correct control actions over a wide range of input
conditions.
• Neural networks can also be used indirectly for control by modelling the plant being controlled.
• In indirect neural control, the neural network predicts the plant’s behaviour; a conventional controller then
uses these predictions to determine its parameters.
• This approach is especially useful when no mathematical model of the system exists and only performance
data is available...
• Basic Control Modes: On–off control is simple but causes oscillations; proportional control reduces
oscillations but leaves steady-state error.
• P, I, D Actions: P gives immediate correction, I removes steady-state error, and D anticipates changes by
reacting to error rate.
• PID Controllers: Combine P, I, and D to balance speed, stability, and accuracy; include issues like integral
windup and use anti-windup circuits.
• Tuning Methods: Ziegler–Nichols (process reaction & ultimate cycle) and auto-tuning software determine
optimal Kp, Ki, Kd for fast, stable response.
• Modern Control: Digital control (DDC), fuzzy logic controllers, and neural networks improve adaptability
and handle nonlinear or poorly modeled systems.
Chapter 5: Process Controllers 77