AbiAxo
DE
← Mechanical Engineering · Step 14 of 14

Open-loop and closed-loop controlAdvanced course (eA)ca. 90 min

Control engineering: loop, controllers, step response

In short

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.

Practise now

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:

SymbolNameExample 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)\]

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\).

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:

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
A temperature bath made by the invented company Wärmlinger Labortechnik behaves like a P-T1 plant with \(K_S=1{,}5\,\frac{\text{K}}{\%}\) and \(T=40\,\text{s}\). The heating power jumps from 0 to \(\Delta y=20\,\%\). Calculate the temperature rise after 40 s, 120 s and 200 s and the final value.

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.

Remember

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

Practice

Flashcards

Open-loop and closed-loop control
Open-loop (Steuerung): open path of action, the result is not measured. Closed-loop (Regelung): closed loop, the controlled variable is measured and compared with the setpoint.
The quantities w, x, e, y, z
Reference variable (setpoint), controlled variable (actual value), control error e = w − x, manipulated variable, disturbance.
Step response P-T1
\(x(t)=K_S\Delta y(1-e^{-t/T})\); after T about 63 %, after 3T about 95 %, after 5T over 99 %.
Steady-state error with a P controller
\(e_{\text{bl}}=\frac{w}{1+K_P K_S}\); becomes smaller with larger \(K_P\), but never zero.
Step response PI controller
Jump to \(K_P e_0\), then a ramp with slope \(K_P e_0/T_n\); extended backwards it meets the time axis at \(-T_n\).
What is the D component for?
It reacts to the rate of change of e and intervenes early; on its own it is useless because it does nothing when e is constant.
On-off controller
Only on/off with a switching differential; the controlled variable oscillates around the setpoint. Small differential: less fluctuation, more switching.

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.

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. Calculate the time constant of the closed loop for the controller from c) and interpret the result. (2 BE)
  6. 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.

Practise now Back to the path