Control engineering: loop, controllers, step response
A closed-loop control (Regelung) continuously measures the controlled variable x, compares it with the setpoint w and, via the control error \(e=w-x\), adjusts the manipulated variable y so that disturbances z are compensated. A P controller on a self-regulating plant leaves the steady-state error \(e=\frac{w}{1+K_P K_S}\); only an I component (PI, PID) brings it to zero.
Your goal: You can distinguish open-loop and closed-loop control, describe a control loop with w, x, e, y and z as a block diagram, interpret and calculate step responses of P-T1 and dead-time plants and of P, I, PI and PID controllers, determine the steady-state error and explain an on-off controller.
Helpful first: PLC programming: logic, sequential control, timers
Open-loop or closed-loop control?
In open-loop control (Steuerung) an input acts on the output via the controlled system, but nobody checks the result. The path of action is open. Example: a fan heater runs for a fixed time. If the window is open, the room still does not get warm, and the open-loop control does not notice.
In closed-loop control (Regelung) the quantity that matters is measured continuously and compared with the setpoint. If it deviates, the controller intervenes. The path of action is a closed loop. Only closed-loop control can compensate unknown disturbances.
The quantities in the control loop:
| Symbol | Name | Example room heating |
|---|---|---|
| \(w\) | reference variable (setpoint, Führungsgröße) | set 21 °C |
| \(x\) | controlled variable (actual value, Regelgröße) | measured room temperature |
| \(e=w-x\) | control error (Regeldifferenz) | how much too cold |
| \(y\) | manipulated variable (Stellgröße) | valve opening in % |
| \(z\) | disturbance (Störgröße) | open window, sunshine |
In the block diagram the signal runs like this: \(w\) goes to a summing point (circle with plus), \(x\) is subtracted there (minus). The result \(e\) goes into the controller, which forms \(y\). \(y\) acts through the actuator on the plant (Regelstrecke), where \(z\) also acts. The plant delivers \(x\), which is fed back through the measuring device. The minus at the summing point is the negative feedback: if it is too warm, \(e\) becomes negative and the controller reduces \(y\).
Plants and their step response
To get to know a plant, you change the manipulated variable suddenly by \(\Delta y\) and record \(x(t)\). This is the step response (Sprungantwort).
P plant: \(x\) follows at once, \(\Delta x=K_S\cdot\Delta y\). \(K_S\) is called the gain of the plant.
P-T1 plant (first-order lag), for example a water bath being heated:
\[x(t)=K_S\cdot\Delta y\cdot\left(1-e^{-t/T}\right)\]
- The curve rises at once with its steepest slope and approaches the final value \(K_S\cdot\Delta y\).
- After the time constant \(T\) about 63 % of the final value is reached, after \(3T\) about 95 %, after \(5T\) more than 99 %.
- The tangent at the origin meets the final-value line exactly at \(t=T\). This is how you read \(T\) from a graph.
Dead-time plant: \(x\) does not react at all at first and only follows after the dead time \(T_t\). Example: bulk material on a conveyor belt that only reaches the scale after the travel time. Dead time makes control hard, because the controller only sees the effect of its action late.
Real plants often have several lags in series (P-Tn). Their step response is S-shaped. Using the tangent at the inflection point you read off the delay time \(T_u\) (Verzugszeit) and the settling time \(T_g\) (Ausgleichszeit). The larger \(T_g/T_u\), the easier the plant is to control.
Continuous controllers: P, I, PI, PID
A continuous controller can adjust \(y\) as finely as it likes. Its step response shows how it reacts to a sudden control error \(e_0\).
- P controller: \(y=K_P\cdot e\). It reacts at once, in proportion to the error. Step response: a jump to \(K_P e_0\).
- I controller: \(y=K_I\int e\,\text{d}t\). As long as \(e\neq0\), \(y\) keeps growing. Step response: a ramp. It is slow, but it only rests when \(e=0\).
- PI controller: \(y=K_P\left(e+\frac{1}{T_n}\int e\,\text{d}t\right)\). Step response: first a jump to \(K_P e_0\), then a ramp with slope \(\frac{K_P e_0}{T_n}\). The integral time \(T_n\) (Nachstellzeit) is the time after which the I component has contributed as much as the P component. If you extend the ramp to the left, it meets the time axis at \(-T_n\).
- PID controller: \(y=K_P\left(e+\frac{1}{T_n}\int e\,\text{d}t+T_v\frac{\text{d}e}{\text{d}t}\right)\). The D component reacts to the rate of change of \(e\). Step response: in addition to the PI curve, a short peak at the start, which decays in a real controller. \(T_v\) is called the derivative time (Vorhaltzeit).
A pure D controller is useless: with a constant error \(\frac{\text{d}e}{\text{d}t}=0\), and it does nothing. The D component only helps together with P and I, catching fast changes early.
For a constant control error \(e_0\), the PI controller gives \(y(t)=K_P e_0\left(1+\frac{t}{T_n}\right)\).
The steady-state error
A P controller on a self-regulating plant (P or P-T1) never quite reaches the setpoint. The steady state shows why:
\[y=K_P\cdot e,\qquad x=K_S\cdot y,\qquad e=w-x\]
Substituting: \(x=K_P K_S(w-x)\). With the loop gain \(K_0=K_P\cdot K_S\) it follows that
\[x=\frac{K_0}{1+K_0}\,w,\qquad e_{\text{bl}}=\frac{w}{1+K_0}\]
The P controller needs an error to deliver any manipulated variable at all. If \(e=0\), then \(y=0\) too, and the plant would cool down. A larger \(K_P\) makes \(e_{\text{bl}}\) (bleibende Regelabweichung, steady-state error) smaller, but never zero. Moreover, with a large \(K_P\) the loop tends to oscillate, especially with dead time, and the manipulated variable hits its limit (there is no valve opening above 100 %).
The I component solves the problem: it keeps growing as long as \(e\neq0\), and holds \(y\) at the required value even once \(e=0\) is reached. That is why the PI controller is the most common controller in industry.
For the closed loop of P controller and P-T1 plant the following also holds (erhöhtes Niveau, advanced level): the loop again behaves like a P-T1 element, but with the smaller time constant \(T_{\text{Kreis}}=\frac{T}{1+K_0}\). So control makes the system faster.
The on-off controller
Many simple devices only know on and off: iron, fridge, hot-water tank. This is a discontinuous controller, the on-off (two-point) controller (Zweipunktregler).
So that it does not switch all the time, it has a switching differential (hysteresis) \(x_d\). For a heater with setpoint \(w\) and symmetric hysteresis:
- switch on when \(x\) falls below \(w-\frac{x_d}{2}\),
- switch off when \(x\) rises above \(w+\frac{x_d}{2}\).
The controlled variable therefore oscillates constantly around the setpoint. A small switching differential means small fluctuation, but frequent switching and more wear. With a plant that has a lag or dead time, \(x\) swings even beyond the switching points, because heat keeps flowing after switching off.
Advantage: cheap and robust. Disadvantage: it can never hold \(x\) steadily at \(w\).
Worked example
Step 1: final value. \(\Delta x_\infty=K_S\cdot\Delta y=1{,}5\,\frac{\text{K}}{\%}\cdot20\,\%=30\,\text{K}\).
Step 2: formula. \(x(t)=30\,\text{K}\cdot\left(1-e^{-t/40\,\text{s}}\right)\).
Step 3: substitute values.
- \(t=40\,\text{s}=T\): \(30\,\text{K}\cdot(1-e^{-1})\approx30\,\text{K}\cdot0{,}632\approx18{,}96\,\text{K}\)
- \(t=120\,\text{s}=3T\): \(30\,\text{K}\cdot(1-e^{-3})\approx30\,\text{K}\cdot0{,}950\approx28{,}51\,\text{K}\)
- \(t=200\,\text{s}=5T\): \(30\,\text{K}\cdot(1-e^{-5})\approx30\,\text{K}\cdot0{,}993\approx29{,}80\,\text{K}\)
Step 4: interpret. After one time constant 63 % is reached; after \(5T=200\,\text{s}\) the bath has practically settled. The tangent at the origin has the slope \(\frac{30\,\text{K}}{40\,\text{s}}=0{,}75\,\frac{\text{K}}{\text{s}}\) and reaches 30 K exactly at 40 s.
Control means measure, compare, adjust in a closed loop: the P controller is fast, but on self-regulating plants it leaves the error \(\frac{w}{1+K_P K_S}\), and only an I component brings it to zero.
Typical exam mistakes
- The control error is formed as \(x-w\) instead of \(e=w-x\), so the controller acts in the wrong direction.
- An open-loop control with a fixed time is called a closed-loop control, although the controlled variable is not measured and fed back at all.
- Students claim that a large \(K_P\) brings the steady-state error to zero; it only becomes smaller, and the loop tends to oscillate.
- For the P-T1 plant it is assumed that the final value is reached after the time constant \(T\); it is only about 63 %.
Practice
Flashcards
Open-loop and closed-loop control
The quantities w, x, e, y, z
Step response P-T1
Steady-state error with a P controller
Step response PI controller
What is the D component for?
On-off controller
Exam-style task 20 marks
A drying oven made by the invented company Ofenbau Quirlitz is described as a P-T1 plant: \(K_S=2{,}5\,\frac{\text{K}}{\%}\), \(T=120\,\text{s}\). The manipulated variable is the heating power in %, the controlled variable the temperature rise above ambient in K. Disturbances are neglected.
- Draw the block diagram of the control loop with all quantities and name them. Justify why open-loop control of the heating power is not enough here if the oven door is opened now and then. (4 BE, Bewertungseinheiten: marks)
- Without a controller the heating power is switched from 0 to 20 %. Calculate the final value of the temperature rise, its value after 240 s and the time after which about 95 % of the final value is reached. (4 BE)
- A P controller with \(K_P=1{,}6\,\frac{\%}{\text{K}}\) is to set \(w=40\,\text{K}\). Calculate the steady-state error, the temperature rise reached and the manipulated variable in the steady state. Confirm the result with the plant equation. (4 BE)
- The steady-state error should be at most 2 K. Calculate the required \(K_P\). Assess this value by calculating the manipulated variable at the first instant after the setpoint step (\(x=0\)). (4 BE)
- Calculate the time constant of the closed loop for the controller from c) and interpret the result. (2 BE)
- Explain why a PI controller solves the problem from c) and d), and describe its step response in words. (2 BE)
Show solution
a) \(w\) goes to the summing point (+), \(x\) is fed back (−), \(e=w-x\) goes into the controller, and the controller sends \(y\) (heating power) to the actuator and the plant, the oven. \(z\) acts on the plant (open door, cold load). The plant delivers \(x\), measured by a temperature sensor. An open-loop control would set a fixed heating power. If the open door cools the oven, it does not notice, and the temperature stays too low. Only the feedback detects the disturbance and compensates it.
b) Final value: \(\Delta x_\infty=K_S\Delta y=2{,}5\,\frac{\text{K}}{\%}\cdot20\,\%=50\,\text{K}\). After \(t=240\,\text{s}=2T\): \(x=50\,\text{K}\cdot(1-e^{-2})\approx50\,\text{K}\cdot0{,}8647\approx43{,}23\,\text{K}\). 95 % after about \(3T=360\,\text{s}\), because \(1-e^{-3}\approx0{,}950\).
c) \(K_0=K_P K_S=1{,}6\cdot2{,}5=4\). \(e_{\text{bl}}=\frac{w}{1+K_0}=\frac{40\,\text{K}}{5}=8\,\text{K}\). Temperature rise \(x=w-e=32\,\text{K}\). Manipulated variable \(y=K_P e=1{,}6\,\frac{\%}{\text{K}}\cdot8\,\text{K}=12{,}8\,\%\). Check with the plant: \(x=K_S y=2{,}5\,\frac{\text{K}}{\%}\cdot12{,}8\,\%=32\,\text{K}\). Correct.
d) \(\frac{40\,\text{K}}{1+2{,}5K_P}\le2\,\text{K}\Rightarrow1+2{,}5K_P\ge20\Rightarrow K_P\ge7{,}6\,\frac{\%}{\text{K}}\). At the first instant \(e=40\,\text{K}\), so \(y=7{,}6\cdot40\,\%=304\,\%\). There is no heating power above 100 %; the controller saturates and the linear model no longer holds at the start. In a real oven with additional lags or dead time, such a large \(K_P\) would also lead to overshoot or oscillation. The error becomes smaller but still does not vanish. The value is therefore unfavourable.
e) \(T_{\text{Kreis}}=\frac{T}{1+K_0}=\frac{120\,\text{s}}{5}=24\,\text{s}\). The controlled oven reaches its (admittedly too low) final value five times faster than the uncontrolled plant, because the controller heats with a large manipulated variable at first.
f) The I component sums up the control error. As long as \(e\neq0\), \(y\) keeps rising. Only at \(e=0\) does \(y\) stop, namely at \(y=\frac{w}{K_S}=16\,\%\). So there is no steady-state error, even with a small \(K_P\). Step response of the PI controller: a jump to \(K_P e_0\), followed by a ramp with slope \(\frac{K_P e_0}{T_n}\).
Report a mistake
Reporting needs JavaScript. Or write to us via Contact.
Step 14 of 14
A topic counts as learned once you get 80% of the practice right first time.