Skip to content
You Start with one site
Amounts in Start with one site
Control, Measurement & Energy · Course

Transfer Functions and Block Diagrams

Lesson 4 of 11 24 min read
Found this useful?

The setpoint says 4.5 bar, the gauge says 4.25 bar, and it has said so for a week. Nothing is broken: the pump runs, the transmitter is correct, the controller is in automatic. The missing 0.25 bar is an offset, and it can be predicted from the loop drawing before the pump is ever started. This lesson gives the tool for that prediction: the transfer function, the rules for joining blocks, and a careful statement of when the steady-state shortcut may be used. #TransferFunctions #BlockDiagrams #SteadyStateError

Learning Objectives

By the end of this lesson, you will be able to:

  1. Write the transfer function of a process from its differential equation, and name its poles, zeros and steady-state gain
  2. Reduce blocks in series, in parallel and in a feedback loop to one transfer function
  3. Apply the final value theorem, and state the condition under which it may not be used
  4. Calculate the offset that a proportional controller leaves after a setpoint step and after a disturbance
  5. Explain from the system type why an integrating process has no setpoint offset under proportional control but still has an offset under load

Real-World System Problem: A booster pump that never reaches its setpoint



A booster pump with a variable speed drive holds the pressure in a water line. A pressure transmitter on the discharge measures the pressure, and the drive’s own controller sets the pump speed. The installer enabled proportional action only, with a moderate gain, because the loop was steady and that seemed enough.

The loop is steady, but it is steady at the wrong pressure. After every setpoint change the pressure covers only part of the change. When a large tap opens, the pressure falls and recovers only part of the fall. The operators correct for it by setting the setpoint higher than the pressure they want, which works until the demand changes.

G(s)C(s)dGd(s)reuy(+)(+)−
Pressure loop of the booster pump

To predict this behaviour, each box in the drawing needs a mathematical description that can be joined to the next box by simple algebra. A differential equation does not join easily. A transfer function does.

Fundamental Theory: From differential equations to algebra



The Laplace transform as a tool

The Laplace transform changes a function of time into a function of a new variable :

You will almost never evaluate this integral. Its value is in three rules that turn the operations of calculus into algebra. In each rule, is the transform of and the signal starts from zero.

Operation in timeIn the domain
Differentiate: Multiply by :
Integrate: Divide by :
Delay by : Multiply by :

The variable has units of 1/time. It is a complex number in general, but for most of this lesson it is enough to treat it as a symbol that means “differentiate”.

Six transform pairs cover the signals met in this course:

Signal for Transform
Unit impulse
Unit step,
Unit ramp,
Decay,
First-order rise,
Sine,

A step of size has the transform . This single fact is used in every offset calculation below.

The transfer function

The transfer function of a process is the transform of its output divided by the transform of its input, with the process starting at rest:

To find it, replace each derivative in the differential equation by a power of and solve for the ratio. The booster pump near its operating point follows . The rules give , so

Two conditions are built into this definition.

  • The process is linear and does not change with time. A pump curve is not a straight line, so is correct only near the operating point where it was measured.
  • Signals are deviations. is the change in pressure from the operating point, not the pressure itself. A pump at 60 percent speed holding 4.0 bar has and in the model. Multiplying a gain by an absolute value such as 4.0 bar is a common mistake.

Poles and zeros

A transfer function is a ratio of two polynomials in , sometimes multiplied by a dead time term.

  • The poles are the values of that make the denominator zero. They set the shape of the response: each real pole at contributes a term , and each complex pair contributes a decaying or growing oscillation.
  • The zeros are the values of that make the numerator zero. They change the size of each term in the response, not its rate.

For there is one pole, at , and no zero. A pole with a negative real part gives a term that decays. A pole with a positive real part gives a term that grows. A process is stable when all its poles have negative real parts.

Steady-state gain and the final value theorem

The final value theorem gives the value at which a signal settles, directly from its transform:

For a step of size into a process , , the factor cancels, and the final change is . The number is the steady-state gain, also called the DC gain. For the pump, .

When the final value theorem may be used

The theorem is true only if does settle at a finite value. The test is:

Every pole of must have a negative real part.

Said another way, may have one pole at (the one that comes from the step input) and all its other poles must lie strictly in the left half of the s-plane. If the test fails, the formula still produces a number, and the number is wrong.

Poles of Formula givesWhat really happens
2Settles at 2. Theorem allowed.
Grows without limit. Not allowed.
0Swings for ever. Not allowed.
infiniteA ramp, no final value. Not allowed.

The last row is an integrating process, such as a tank level, fed by a constant extra inflow. It has no steady-state gain. For a feedback loop the practical rule is this: confirm that the closed loop is stable before you calculate any steady-state value. An offset calculated for an unstable loop means nothing.

Block diagram algebra

A block multiplies the transform of its input by its transfer function. Three rules reduce any diagram.

G2G1UY
Series: the transfer functions multiply, Y = G1 G2 U
G2G1U(+)Y
Parallel: the transfer functions add, Y = (G1 + G2) U
HGRE(+)Y−
Negative feedback: Y = G / (1 + G H) R

The feedback rule is the one that matters most, and it takes three lines to prove. From the diagram, and . Substitute the first into the second: . Collect :

In words: the forward path, divided by one plus the whole loop. The plus sign belongs to negative feedback. The series rule assumes the second block does not load the first, which is true for signals and for most process units, and false for two tanks joined by a short pipe.

The standard control loop

Use the feedback rule on the loop of the booster pump, with controller , process , unity feedback and loop transfer function . A disturbance reaches the output through its own transfer function . Because the system is linear, the two inputs act independently and their effects add:

Closed-loop transfer functions

The error from a setpoint change alone is

The same denominator appears in every one of these. Feedback divides the effect of a disturbance by , and it divides the error by . A large loop gain makes both small. The roots of are the closed-loop poles, and they decide whether the loop is stable.

Steady-state error and system type

Apply the final value theorem to the error after a setpoint step , for a stable closed loop:

Everything depends on , the steady-state gain of the loop. The system type is the number of pure integrators (factors of ) in .

System typeExample of Error after a stepError after a ramp of rate
0, finiteGrows without limit
1InfiniteZero, with

A self-regulating process under proportional control is type 0. The reason for the offset is physical: to hold a new pressure the pump needs a new speed, a proportional controller changes its output only when there is an error, so an error must remain. A process that integrates is type 1 without any help from the controller, and a setpoint step leaves no error.

Application 1: Booster pump under proportional control



Step 1: Build the closed-loop transfer function

Click to reveal the closed-loop transfer function
  1. Blocks. With dead time ignored, and . ✅

  2. Loop gain. . The units cancel (percent per bar times bar per percent), as they must for a loop gain. ✅

  3. Feedback rule: ✅

  4. Standard first-order form. Divide the numerator and the denominator by : ✅

Step 2: Closed-loop gain, final pressure and offset

Click to reveal the steady-state values
  1. Check that the theorem is allowed. The only closed-loop pole is at . It is negative, so the response to a step settles and the final value theorem may be used. ✅

  2. Closed-loop gain: ✅

  3. Final pressure. The pressure rises by , to 4.25 bar. ✅

  4. Offset: ✅

  5. Final speed. The controller output rises by percent, to 62.5 percent. ✅

Step 3: Closed-loop time constant

Click to reveal the time constant
  1. Read it from the standard form: ✅

  2. Meaning. The loop reaches 63.2 percent of its final change in 1.5 s, against 3 s for the pump at fixed speed. Feedback has made the response twice as fast, by the same factor that sets the offset. ✅

Step 4: The disturbance with the loop closed

Click to reveal the disturbance response
  1. Open-loop effect. The 0.6 bar fall at fixed speed is the steady-state value of : . ✅

  2. Closed-loop effect. The loop divides it by : ✅

  3. Result. With the tap open the pressure settles 0.30 bar below where it was, and the pump speed is percent higher. ✅

Step 5: Check by a steady-state balance and by simulation with dead time

Click to reveal the check
  1. Balance without any transform. At steady state the process gives and the controller gives . So , which gives . This agrees with Step 2. ✅

  2. Simulation with the dead time restored. The Python script simulates the loop with . The final rise is 0.250 bar, the same as without dead time. ✅

  3. What the dead time does change. The time to reach 63.2 percent of the final change is 1.76 s with dead time, against 1.50 s without. Ignoring the dead time was safe for the offset and optimistic for the speed. ✅

  4. A higher gain. At the offset falls to and the model without dead time predicts . The model without dead time says any gain is stable. That is the limit of the simplification: with the 0.5 s dead time this loop becomes unstable at about , and even there the offset formula gives . ✅

Application 2: Storage tank level under proportional control



The tank is one integrator. The inflow from the valve and the outflow to demand both pass through it, so the drawing gives the outflow its own block with the same .

kv/sKcd (rise in outflow)1/(A s)reu−h(+)(+)−
Level loop of the storage tank

Step 1: Closed-loop transfer function and time constant

Click to reveal the closed loop
  1. Loop transfer function. with . One integrator, so the loop is type 1. ✅

  2. Feedback rule: ✅

  3. Closed-loop time constant: . The single pole is at , so the closed loop is stable. ✅

Step 2: Offset after the setpoint step

Click to reveal the setpoint response
  1. The theorem is allowed, because the only closed-loop pole is negative. ✅

  2. Closed-loop gain. , so the level rises by the full 0.20 m to 1.70 m. ✅

  3. Offset: ✅

  4. Physical reason. The level is steady only when inflow equals outflow. The outflow has not changed, so the valve must return to 50 percent, and a proportional controller gives 50 percent only when the error is zero. ✅

  5. On the way there. The valve first opens by percent, to 70 percent, and the level covers 63.2 percent of the change (0.126 m) in 500 s. ✅

Step 3: Offset after the outflow rises

Click to reveal the disturbance response
  1. Disturbance transfer function. With the rise in outflow in , the tank gives . The disturbance is integrated by the tank in the same way as the inflow, which is what “enters before the integrator” means. ✅

  2. Closed loop from disturbance to level: ✅

  3. Final value. The pole is at , so the theorem is allowed. With : ✅

  4. Result. The level settles at . The offset is 0.125 m and it stays for as long as the higher demand continues. ✅

Step 4: Check by a flow balance and by simulation

Click to reveal the check
  1. Flow balance. For a steady level the inflow must rise by 0.5 L/s. The valve must open by percent, to 62.5 percent. ✅

  2. Error needed. A proportional controller opens 12.5 percent further only with an error of . This agrees with Step 3 and uses no transform. ✅

  3. Simulation. The Python script steps the setpoint at and the outflow at . Just before the disturbance the error is 0.0005 m and still falling. At the end the offset is 0.125 m and the valve is 12.5 percent above its starting opening. ✅

  4. Where the theorem is not allowed. With the valve fixed, a 0.5 L/s rise in outflow gives . Then has a pole at and the theorem may not be used. The level does not settle: it falls at , which is 15 mm per minute, until the tank is empty. ✅

Verify It in Python



The script reproduces both applications. It simulates the pump loop with and without the dead time, and the tank loop through both events.

loop_offset.py
import numpy as np
from scipy import signal
import matplotlib.pyplot as plt
# ---------- Application 1: booster pump, P control ----------
K, tau, theta = 0.10, 3.0, 0.5 # bar per percent, s, s
Kc = 10.0 # percent per bar
dr = 0.5 # bar, setpoint step
loop_gain = Kc * K
T0 = loop_gain / (1.0 + loop_gain) # closed-loop gain T(0)
tau_cl = tau / (1.0 + loop_gain)
# Closed loop without dead time: T(s) = Kc K / (tau s + 1 + Kc K)
closed = signal.TransferFunction([loop_gain], [tau, 1.0 + loop_gain])
t_a = np.linspace(0.0, 20.0, 20001)
t_a, y_a = signal.step(closed, T=t_a)
y_a = dr * y_a
def pump_with_dead_time(Kc, t_end=20.0, dt=0.001):
"""P control of K e^(-theta s)/(tau s + 1), simple Euler steps."""
n = int(t_end / dt)
nd = int(round(theta / dt))
y = np.zeros(n + 1)
u = np.zeros(n + 1)
for k in range(n):
u[k] = Kc * (dr - y[k])
u_delayed = u[k - nd] if k >= nd else 0.0
y[k + 1] = y[k] + dt * (K * u_delayed - y[k]) / tau
return np.arange(n + 1) * dt, y
t_b, y_b = pump_with_dead_time(Kc)
print("Application 1: booster pump with P control")
print(f" loop gain Kc*K = {loop_gain:.2f}")
print(f" closed-loop gain T(0) = {T0:.3f}")
print(f" pressure rise, formula = {dr * T0:.3f} bar")
print(f" offset, formula = {dr / (1.0 + loop_gain):.3f} bar")
print(f" closed-loop time constant = {tau_cl:.2f} s")
print(f" final rise, no dead time = {y_a[-1]:.3f} bar")
print(f" final rise, dead time = {y_b[-1]:.3f} bar")
print(f" time to 63.2 pct, no dead time = {t_a[np.argmax(y_a >= 0.632 * dr * T0)]:.2f} s")
print(f" time to 63.2 pct, dead time = {t_b[np.argmax(y_b >= 0.632 * dr * T0)]:.2f} s")
print(f" 0.6 bar droop at fixed speed becomes {0.6 / (1.0 + loop_gain):.2f} bar")
print(" Kc (percent/bar) offset (bar) time constant (s)")
for gain in (10.0, 20.0, 50.0):
print(f" {gain:5.0f} {dr / (1 + gain * K):.3f} {tau / (1 + gain * K):.2f}")
# ---------- Application 2: storage tank level, P control ----------
A = 2.0 # m2
kv = 2.0e-5 # m/s per percent
Kc_level = 100.0 # percent per metre
dr_level = 0.20 # m, setpoint step at t = 0
dq = 0.5e-3 # m3/s, rise in outflow at t = 3000 s
dt = 0.5
t_c = np.arange(0.0, 8000.0 + dt, dt)
h = np.zeros_like(t_c) # level change from the starting level
u = np.zeros_like(t_c) # valve change from the starting opening
for k in range(len(t_c) - 1):
u[k] = Kc_level * (dr_level - h[k])
d = dq if t_c[k] >= 3000.0 else 0.0
h[k + 1] = h[k] + dt * (kv * u[k] - d / A)
u[-1] = Kc_level * (dr_level - h[-1])
i_before = np.argmax(t_c >= 3000.0) - 1
print("Application 2: storage tank level with P control")
print(f" closed-loop time constant = {1.0 / (Kc_level * kv):.0f} s")
print(f" first valve move = {Kc_level * dr_level:.1f} percent")
print(f" level change at 500 s = {h[np.argmax(t_c >= 500.0)]:.3f} m")
print(f" offset before disturbance = {dr_level - h[i_before]:.4f} m")
print(f" extra valve opening needed = {dq / (A * kv):.1f} percent")
print(f" offset, formula = {dq / (A * Kc_level * kv):.3f} m")
print(f" offset, simulation = {dr_level - h[-1]:.3f} m")
print(f" valve change at the end = {u[-1]:.1f} percent")
# ---------- Plot ----------
fig, ax = plt.subplots(1, 2, figsize=(11, 4.2))
ax[0].plot(t_a, 4.0 + y_a, label="no dead time")
ax[0].plot(t_b, 4.0 + y_b, label="dead time 0.5 s")
ax[0].axhline(4.5, color="grey", lw=0.8, ls="--", label="setpoint")
ax[0].set_xlim(0, 12)
ax[0].set_xlabel("time (s)")
ax[0].set_ylabel("pressure (bar)")
ax[0].set_title("Booster pump, P control, Kc = 10 percent/bar")
ax[0].legend(loc="lower right")
ax[1].plot(t_c, 1.50 + h, label="level")
ax[1].axhline(1.70, color="grey", lw=0.8, ls="--", label="setpoint")
ax[1].axvline(3000.0, color="grey", lw=0.6)
ax[1].set_xlabel("time (s)")
ax[1].set_ylabel("level (m)")
ax[1].set_title("Tank level, P control, Kc = 100 percent/m")
ax[1].legend(loc="lower right")
fig.tight_layout()
fig.savefig("loop_offset.png", dpi=120)
print("Saved loop_offset.png")

Expected output

Application 1: booster pump with P control
loop gain Kc*K = 1.00
closed-loop gain T(0) = 0.500
pressure rise, formula = 0.250 bar
offset, formula = 0.250 bar
closed-loop time constant = 1.50 s
final rise, no dead time = 0.250 bar
final rise, dead time = 0.250 bar
time to 63.2 pct, no dead time = 1.50 s
time to 63.2 pct, dead time = 1.76 s
0.6 bar droop at fixed speed becomes 0.30 bar
Kc (percent/bar) offset (bar) time constant (s)
10 0.250 1.50
20 0.167 1.00
50 0.083 0.50
Application 2: storage tank level with P control
closed-loop time constant = 500 s
first valve move = 20.0 percent
level change at 500 s = 0.126 m
offset before disturbance = 0.0005 m
extra valve opening needed = 12.5 percent
offset, formula = 0.125 m
offset, simulation = 0.125 m
valve change at the end = 12.5 percent
Saved loop_offset.png

Common Mistakes



  • Using the final value theorem without checking the poles. If has a pole at zero, on the imaginary axis or with a positive real part, the limit is not the final value. Check that the closed loop is stable first.
  • Forgetting the transform of the input. The final value is the limit of , not of . For a step the two factors of cancel. For a ramp they do not.
  • Writing for a negative feedback loop. Negative feedback gives a plus sign in the denominator.
  • Putting absolute values into a transfer function. The model works on changes from the operating point: a 0.5 bar step, not 4.5 bar.
  • Believing that an integrating process never has an offset under proportional control. That is true for a setpoint step. A step disturbance that enters before the integrator still leaves an offset.
  • Multiplying a controller gain by a process gain in different units. Percent per bar times bar per percent gives a pure number. If the controller gain is given in percent of output per percent of transmitter span, convert it first.

Summary



  • A transfer function is the ratio of output transform to input transform for a linear process that starts at rest, written in deviations from the operating point.
  • Blocks in series multiply, blocks in parallel add, and a negative feedback loop gives the forward path divided by one plus the loop.
  • The final value theorem gives the steady-state value only when every pole of has a negative real part. Dead time does not change a steady-state value but can make the loop unstable.
  • After a setpoint step the error of a stable loop is . A type 0 loop has an offset. A type 1 loop has none.
  • The pump with has a closed-loop gain of 0.50, an offset of 0.25 bar on a 0.5 bar step and a time constant of 1.5 s.
  • The tank has no setpoint offset, but 0.5 L/s of extra demand leaves a 0.125 m offset, because the disturbance enters before the integrator.

Exercises



1. For , find the poles, the zero and the steady-state gain. Is the process stable?

Answer

Poles at and , zero at . Both poles are negative, so it is stable. .

2. Two blocks and are in series inside a unity negative feedback loop. Find the closed-loop transfer function, its poles, its steady-state gain and the offset after a unit step in setpoint.

Answer

, so . Poles at , stable. , so the offset is , which equals with .

3. For each transform, say whether the final value theorem may be used, and give the final value where it may: (a) , (b) , (c) , (d) .

Answer

(a) Allowed: has one pole at , final value . (b) Not allowed: pole at , the signal grows. (c) Not allowed: poles at , the signal swings for ever. (d) Not allowed: still has a pole at zero, the signal is a ramp.

4. A hot water tank has gain and time constant from heater power to outlet temperature. Ignore its dead time. With a proportional controller of , find the loop gain, the offset after a setpoint step and the closed-loop time constant.

Answer

. Offset , so the temperature rises by . .

5. For the booster pump of the first application, find the proportional gain needed for an offset of at most 5 percent of a setpoint step. Then use the stability limit quoted in that application to decide whether proportional control alone can reach it.

Answer

needs , so . With the 0.5 s dead time the loop is unstable above about 100 percent per bar, so the target cannot be reached with proportional control alone. Integral action is needed.

6. The storage tank of the second application is given a controller gain of . (a) Find the closed-loop time constant. (b) Find the offset when the outflow rises by 0.8 L/s. (c) The setpoint is now raised steadily at 6 mm per minute with constant outflow. Find the steady error between setpoint and level.

Answer

(a) , so . (b) The valve must open by percent, which needs an error of . (c) The ramp rate is and , so the error is . Check: raising the level at that rate needs of extra inflow, which is 5 percent of valve, and .

References



  • K. J. Åström and R. M. Murray, Feedback Systems: An Introduction for Scientists and Engineers, 2nd edition, Princeton University Press, 2021.
  • K. Ogata, Modern Control Engineering, 5th edition, Prentice Hall, 2010. Chapters on mathematical modelling and on steady-state errors.
  • D. E. Seborg, T. F. Edgar, D. A. Mellichamp and F. J. Doyle, Process Dynamics and Control, 4th edition, Wiley, 2016. Chapters on transfer functions and on closed-loop response.


© 2021-2026 SiliconWit®. All rights reserved.
Predict first

A booster pump holds 4.0 bar with a proportional controller only. The loop gain K Kc is 1. The operator raises the setpoint to 4.5 bar. Where does the pressure settle?

KcG− Kc G1 + Kc G the loop as builtone block, r to y
See it: the gain sets the offset and the speed

Closed-loop gain
Offset
Final pressure
Closed-loop time constant

The dashed line is the new setpoint, 4.5 bar. The dark line is the pressure, simulated in steps of 1 ms with K = 0.10 bar per percent and τ = 3 s. The dotted line is the final value the transfer function predicts. Raise the gain: the offset shrinks and the response gets faster. With the dead time switched on, a high gain makes it ring, and above about 101 percent per bar it never settles.

Check yourself

Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.

1. On the same booster pump (K = 0.10 bar per percent), the gain is raised to Kc = 40 percent per bar. The setpoint is again raised by 0.5 bar. What offset remains?

2. With Kc = 40 (loop gain 4), what is the time constant of the closed loop, if the dead time is ignored? The process time constant is 3 s.

3. A storage tank level is held by a proportional controller, Kc = 100 percent per metre. The inlet valve passes 0.04 L/s for each percent of opening. The outflow to demand rises by 1 L/s and stays there. What level error remains?

Watch it build: the pump loop folds into one block
r − Kc = 10 0.10 3s + 1 C G, the pump 1.0 3s + 1 CG = 10 × 0.10 = 1.0 r 1 3s + 2 y gain 0.5, τ = 1.5 s d Gd ÷ (1 + CG) 1 + CG = 2 error 0.25 0.6 → 0.3
  1. The pump loop as built: controller Kc = 10, pump G = 0.10 / (3s + 1), output fed back.
  2. Series rule: the two blocks multiply. CG = 10 × 0.10 / (3s + 1) = 1.0 / (3s + 1).
  3. Feedback rule: 1.0 / (3s + 1 + 1) = 1 / (3s + 2). Gain 0.5, time constant 1.5 s.
  4. A tap opening is a second input d. It reaches the output divided by the same 1 + CG.
  5. 1 + CG = 2: a 0.5 bar setpoint step leaves 0.25 bar of error, and a 0.6 bar fall becomes 0.3 bar.
C(s) G(s) r e u y − + + + Gd(s) d disturbance
Pressure loop of the booster pump
G1 G2 U Y is the same as G1 G2 U Y Y = G1 G2 U
Series: the transfer functions multiply, Y = G1 G2 U
U G1 G2 + + Y is the same as G1 + G2 U Y Y = (G1 + G2) U
Parallel: the transfer functions add, Y = (G1 + G2) U
G R E Y H − + is the same as G / (1 + G H) R Y Y = G / (1 + G H) R
Negative feedback: Y = G / (1 + G H) R
Kc kv/s r e u h − + + − 1/(A s) d (rise in outflow)
Level loop of the storage tank
Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.