Techniqueintro
Cascade control
Also called cascade loop, master-slave control.
An inner loop controls a fast secondary variable and an outer loop sets its reference, so inner disturbances are rejected early.
Cascade control uses two feedback loops, one inside the other, with one actuator. The inner (secondary) loop measures a variable that the actuator moves quickly, such as a flow, a current or a speed, and holds it at a set point . The outer (primary) loop measures the variable that really matters and computes . A disturbance that acts on is then corrected by the fast inner loop before it reaches . The inner loop also makes the outer loop see a simpler and more linear plant. The cost is a second sensor and a second controller to tune.
In plain words
Think of a room heated by hot water. The room temperature changes slowly, and the water flow changes fast. If the pressure of the water supply drops, a single temperature controller sees nothing until the room has already cooled. With cascade control, a fast flow controller keeps the flow at its target and fixes the pressure drop in seconds. The temperature controller does not move the valve itself; it only says which flow it wants. Each controller then has a simpler job. The inner loop must be clearly faster than the outer loop, and it is tuned first. A second sensor is needed, and it must see the disturbance that you want to remove early.
When it applies
- A second measurement exists between the actuator and the main output , so that the plant is a series , .
- responds clearly faster than .
- Important disturbances enter at the inner part, or the actuator is nonlinear (a valve, a motor), and the inner loop can hide this from the outer loop.
- Classic cases: a temperature controller that sets the set point of a steam or coolant flow controller; a level controller that sets a flow; the position, speed and current loops of a motor drive.
The template
- Choose the inner variable. It should react to the actuator fast and should see the disturbances to reject.
- Tune the inner loop first, with the outer loop open. Often a P or PI controller with a high gain is enough, since a small offset in is corrected by the outer loop.
- Model the inner loop as closed. With the inner loop closed, the outer loop sees , where . Often .
- Tune the outer loop on , for example with the SIMC rules or internal model control. A common rule of thumb asks for an inner loop 3 to 5 times faster than the outer loop.
- Handle the limits and the modes. If the inner loop saturates or is in manual mode, the outer controller must track the measured instead of its own output, or it winds up; see anti-windup. Close the inner loop first and open the outer loop first.
Why it works (theorem). Write and . From , and :
Without the inner loop the factor is absent. So at the frequencies where the inner loop has high gain, and the inner disturbance reaches the outer loop much reduced. A disturbance at the input of is not seen by , and only the outer loop acts on it; there the gain from the cascade comes only from the faster outer loop that the simpler plant allows.
Classic examples
Two lags in series. Let (inner) and (outer), with a load at the input of and a load at the input of . All controllers are PI with the SIMC rules and (Skogestad 2003).
- Single loop on . The half rule gives and , so and .
- Inner loop on with : , , and exactly.
- Outer loop on : , , so and .
Measured with a simulation step of 0.01 s, for unit steps:
| structure | set point: overshoot, settling time (2 percent) | inner load : peak of , IAE | outer load : peak of , IAE |
|---|---|---|---|
| single loop | 0.088, 27.19 s | 0.4485, 7.0 | 0.454, 7.0 |
| cascade | 0.092, 23.11 s | 0.0146, 0.19 | 0.383, 5.5 |
The inner load is reduced by a factor of about 30 in peak, because the inner loop removes it early (the inner variable peaks at 0.157). The outer load is not seen by the inner loop, but the outer controller can be faster, and the IAE drops from 7.0 to 5.5. Both values equal of the controller that has to absorb the load (7.5/1.0714 and 7.5/1.3636), which is the theorem on the integral of the error for a PI loop with a unit load and no change of sign of the error.
Variations
- More than two levels. Motor drives often use three: current, speed and position.
- P control in the inner loop. A P controller with a high gain is common in the inner loop; the outer integral removes the offset.
- Feedforward into the inner loop. A measured disturbance can enter or directly; see feedforward control.
- Parallel cascade. The disturbance or the actuator also acts on by a second path that does not pass through . The design is similar, but the outer loop sees a different plant.
- Ratio control. The inner set point is a measured flow times a ratio that the outer loop adjusts, a common structure in process control.
Pitfalls
- An inner loop that is not faster. If the two loops have similar speeds, they interact, and the model of the inner loop as a simple lag no longer holds. Retune the outer loop slower or make the inner loop faster.
- Wrong tuning order. Tuning the outer loop before the inner loop is closed, or tuning both loops with rules made for single loops without the inner loop model, can give an outer loop that does not converge. Tune the outer loop on .
- Windup of the outer loop. When the inner loop saturates, or is in manual, the outer integral keeps growing. Feed the measured back as the tracking signal of the outer controller, and limit to values that the inner loop can reach.
- The wrong inner variable. If the main disturbance does not act on , the cascade does little for it, as the outer load in the example shows.
- Noise. A fast inner loop with a high gain amplifies the noise of onto the actuator.
Exercises
- Show that the PI controller , on gives . (Answer: , so .)
- Use the half rule on . (Answer: keep one time constant 5, add half of the second, ; the delay is the other half plus 0.25, .)
- Derive the map from to in the cascade. (Answer: .)
- In the example, why is the IAE for the outer load 5.5 in the cascade? (Answer: the error has one sign, and its integral is .)
- A temperature loop sets the set point of a steam flow loop. Which disturbance does the cascade remove early, a change of the supply pressure of the steam or a change of the inlet temperature of the product? (Answer: the supply pressure, because it changes the flow, which the inner loop measures.)
References
- Karl Johan Åström and Tore Hägglund, Advanced PID Control, ISA, 2006, Section 12.4, Cascade control
- Sigurd Skogestad, Simple analytic rules for model reduction and PID controller tuning, Journal of Process Control 13(4) (2003) 291-309, the whole paper (the half rule and the SIMC settings used in the example)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W3 standard |
|
Tag CG1NCJ Edit this page History Report an error Markdown