Chapter5 ProcessControllers (Repaired)
Chapter5 ProcessControllers (Repaired)
Chapter 5
Process Controllers
CLO4 · Weeks 19–23
On-Off · Proportional · Derivative · Integral · PID · Tuning · Digital · Fuzzy Logic · Neural Networks
CHAPTER 5 — OUTLINE
Process Controllers: from simple switching to intelligent control
5.1 Introduction — Control Laws, Dead Time, Capacitance 5.2 On-Off Control — Bimetallic Strip, Wax Thermostat, Relays
5.3 Proportional Control (P) — Gain, Proportional Band, Offset 5.4 Derivative Control (D) — PD Control
5.5 Integral Control (I) — PI Control, Eliminating Offset 5.6 PID Control — Three-Mode Controller, Windup
5.7 Tuning — Ziegler-Nichols Methods, Lambda, Adaptive 5.8 Digital Control Systems — Direct Digital Control
5.9 Fuzzy Logic Control — Membership Functions, Rules 5.10 Neural Networks — Training, Direct & Indirect Control
5.1 INTRODUCTION TO PROCESS CONTROLLERS
Control laws (modes) define how a controller responds to an error signal
A process controller takes an error signal (required − actual) and outputs a corrective signal to the process.
Increase in INPUT → Increase in OUTPUT System cannot respond instantly. Delays The larger the 'volume' of a system, the
while accommodating change. longer it takes to respond to changes.
Example: Central heating furnace —
more fuel input = higher temperature Causes: sensor response time, distance- Example: Heating a large room takes
output velocity lag (pipe flow), transfer delays longer than a small room
Reverse Action: Increase in input → DECREASE in output (e.g. air conditioner — more energy = lower temperature)
5.2 ON-OFF CONTROL
Simplest form of control — output is either ON or OFF
Controller Output = ON (100%) when error exists | OFF (0%) when error = 0 → Also called: Two-Step Controller
Principle: Characteristics:
Controller Output
ON ✓ Simple and inexpensive
DEAD BAND
Set value
Switch ON (bottom of dead band)
Error signal applies small current → solenoid creates magnetic field → Applications: room thermostats, motor starters,
electromagnet attracts armature → switch contacts close → large correction industrial control panels
current flows to actuator
5.3 PROPORTIONAL CONTROL (P)
Controller output ∝ size of error
Slope = Kp
Cistern Lever
(Process) (Pivot)
% PB = (% Deviation / % Change in Controller Output) × 100 | PB = (1/Kp) × (output span / input span) × 100
ALL proportional-only controllers have a non-zero STEADY-STATE ERROR (offset). Higher Kp reduces error but risks
oscillation.
Set value
For proportional control:
Controller Output = Kp × Error
Offset
(Steady-state
For the plant to deliver required output, a NON-ZERO error signal is error)
Steady state (P only)
needed to keep the controller producing an output.
Derivative Output = Kd × (rate of change of error) Kd has units of TIME (derivative time Td)
Fast Response: Large output when error changes quickly Constant output
Output (because rate of change
of error is constant)
At t = 2s:
Error = 4% Used in temperature control, position control
P part: 4 × 4% = 16%
D part: 4 × 0.4 × 2% = 3.2% Limitation: Still has steady-state error — cannot achieve zero offset
Total output = 16 + 3.2 = 19.2% for constant disturbances. Add I mode to fix this.
5.5 INTEGRAL CONTROL (I)
Output ∝ integral (accumulated area) of error over time
A constant error → area grows linearly with time → output increases Output
at constant rate.
Output grows
Key insight: linearly (ramp)
Rate of change of output ∝ error
Example: Ki = 0.10 s⁻¹, constant error = 20%. At t=1s: output = 0.10×20 = 2%. At t=2s: output = 0.10×40 = 4%
5.5.1 PI CONTROL — PROPORTIONAL + INTEGRAL
Eliminates steady-state error — most common industrial combination
Use PI when:
• Large changes in process variable occur
P part • Steady-state accuracy is critical
• Changes are relatively slow
Limitation:
Slower response than P alone — takes time to integrate. Fast
changes → possible oscillation.
Provides initial correction proportional to Accumulates past errors — eliminates Responds to rate of change — anticipates &
error offset damps
PID = P (fast response) + I (eliminate offset) + D (reduce oscillation) → Best overall performance
5.6 PID CONFIGURATIONS & INTEGRATOR WINDUP
Parallel, Interactive, Non-Interactive — and the windup problem
Non-Interactive (C)
Parallel (A) Interactive (B)
(Ideal Form)
P, I, D act independently. Controller gain Kc affects all three modes. Controller gain Kc affects all modes.
Kp does NOT affect I or D terms. Derivative acts on output of integrator. I and D act directly on proportional output.
Rarely used in practice. Commonly used. Most common industrial form.
Cause: When actuator reaches its saturation limit (e.g. valve fully open, motor max
speed), it cannot produce more output — but the integrator keeps integrating. The Solution: Anti-Windup Circuit
integral term becomes very large.
• Detects when actuator reaches saturation
• Automatically switches off integral action
Effect: Large overshoot when system finally reaches set point. Long recovery time. • All commercial PID controllers include this
CONTROL MODE COMPARISON — STEP RESPONSE
How P, PI, and PID each respond to a sudden change in set point
Offset
Tuning Goal: fast response + rapidly decaying oscillations + minimum overshoot + no steady-state error
Z-N Settings from Process Reaction Curve (P = % step change in correction element, R = M/P = normalised slope)
P only P / (M × L) — —
PI 0.9 × P / (M × L) 3.3 × L —
WORKED EXAMPLE
Process reaction curve from 10% step: Lag L = 5 min, gradient M = 0.8%/min
→ Kp = 1.2 × 10 / (0.8 × 5) = 3.0
→ Ti = 2 × 5 = 10 min → Ki = Kp/Ti = 3/10 = 0.3 min⁻¹
→ Td = 0.5 × 5 = 2.5 min → Kd = Kp × Td = 3 × 2.5 = 7.5 min
5.7.2 ULTIMATE CYCLE METHOD (ZIEGLER-NICHOLS)
Closed-loop: increase Kp until sustained oscillations begin
5 Increase Kp until SUSTAINED oscillations (neither grow nor decay) PID 0.6 Kpu Tu/2 Tu/8
Direct Digital Control: computer/microcontroller samples feedback, calculates control signal, outputs to DAC at each sampling interval
Micro-
Digital DAC Actuator
controller Plant
Set Value → + ADC/DAC
→ (Digital→ → (Correction → (Process)
Output
(Memory) Analog) Element)
+ Control Law
① Sample ADC inputs (set value + feedback) ② Compute error ③ Calculate P component ④ Calculate I component (error × Δt, add to previous
integral sum) ⑤ Calculate D component (current error − previous error) ⑥ Sum all three → output to DAC ⑦ Wait for next sampling interval ⑧
Repeat
5.9 FUZZY LOGIC CONTROL
Control based on linguistic rules rather than exact mathematics
Traditional: crisp YES/NO decisions vs Fuzzy: degrees of membership (0 to 1 scale — partial truth)
Person is either in 'TALL' set OR 'SHORT' set Overlapping sets — person can be in both
No in-between — hard boundary at 1.8 m 'TALL' and 'SHORT' sets simultaneously
with different degrees of membership
Membership
Short Tall Short Tall
1
1.8m Height →
At 1.5m: membership 0.251.8m in Tall, 0.75 in Short
(fuzzy
→ 'Not very tall, quite short'
boundary)
5.9.1 FUZZY MEMBERSHIP FUNCTIONS — TEMPERATURE EXAMPLE
A temperature can belong to multiple sets with different degrees
Fuzzy sets: COLD (0–20°C), WARM (10–30°C), HOT (20–40°C) — overlapping ranges allow gradual transitions
1 Membership
COLD Function WARM HOT
(0 to 1)
0.5
At 18°C: COLD membership = 0.2 | WARM membership = 0.8 | HOT membership = 0.0
→ 18°C is mostly WARM with a little COLD — controller decides action based on these weighted memberships
5.9.2–5.9.3 FUZZY LOGIC CONTROL SYSTEM
Fuzzification → Rules → Defuzzification → Crisp Output
2. RULE EVALUATION
1. FUZZIFICATION 3. DEFUZZIFICATION
(IF-THEN Rules)
Apply linguistic rules to fuzzy inputs: Convert fuzzy output back to a single crisp
Convert crisp input values into fuzzy set
value.
memberships using membership functions.
⟹ IF temp is HIGH THEN output is LOW
IF temp is MEDIUM THEN output is MEDIUM
⟹ Mamdani's method: truncate output
Example: Temperature 18°C → COLD(0.2),
IF temp is LOW THEN output is HIGH membership functions at their membership
WARM(0.8)
values, combine (OR), find centre of gravity.
Rules written using common sense — no
Maps sensor inputs to 0–1 scale.
complex maths needed. Output: single crisp control signal.
Velocity error (too fast/zero/too slow) Weight of load, fabric type, Steady-state error, oscillation level,
Acceleration (positive/zero/negative) degree of dirtiness response speed
MATLAB Fuzzy Logic Toolbox provides software for simulating and analysing fuzzy control systems
5.10 NEURAL NETWORKS — INTRODUCTION
Inspired by the human brain — neurons, connections, weights, learning
ANN: Artificial Neural Network — mathematical model of interconnected neurons that learns patterns from data through
training
No (steady-state
P Kp × e Moderate Low Simple processes
error)
PD Kp×e + Kd×ė No (still has offset) Yes (fast, damped) Medium Position control
PID Kp×e + Ki×∫e + Kd×ė Yes Yes (well damped) High Most industrial processes
Fuzzy Logic Rule-based IF-THEN Possible Yes (flexible) Medium-High Appliances, non-linear
Neural
Learned from data Possible Yes (adaptive) Very High Complex/unknown systems
Network
REVIEW QUESTIONS — CHAPTER 5
1. What is meant by 'dead time' and 'capacitance' in a control system? How do they affect controller design?
2. Why does on-off control cause oscillation? How does a dead band reduce this problem?
3. A proportional controller has Kp=5 and needs to maintain 60% output. What is the % steady-state error?
4. Explain why proportional control always has a steady-state error. Which mode eliminates it?
5. A PD controller has Kp=4, Td=0.4s. Error increases at 2%/s. Find output at t=0 and t=2s.
6. Calculate PID settings using Z-N ultimate cycle method if Kpu=3.3, Tu=500s.
7. Describe the three stages of a fuzzy logic controller: fuzzification, rules, defuzzification.
Process Controllers
Instrumentation and Control Systems
Next: See accompanying exercise workbook for practice problems with full solutions