Cascade (s)
%
Cascade (s)
Single (s)
%
Single (s)
Inner loop $G_i(s) = \frac{K_i}{\tau_i s+1}$ nested inside an outer loop — see how dual-loop PID outperforms single-loop in rise time, overshoot, and settling time.
The system is modeled as two first-order processes in series. The inner plant represents a fast-acting process (like a valve or motor), and the outer plant represents the slower primary variable (like temperature or level). Their dynamics are described by simple transfer functions.
$$G_i(s) = \frac{K_i}{\tau_i s + 1}\quad \text{and}\quad G_o(s) = \frac{K_o}{\tau_o s + 1}$$Here, $K_i$ and $K_o$ are process gains, and $\tau_i$ and $\tau_o$ are time constants. A successful cascade requires $\tau_i \ll \tau_o$ (typically $\tau_o \gt 3\tau_i$).
Each loop uses a PID controller. The controller's job is to calculate an output signal based on the error (difference between setpoint and measurement). Its action is defined by the PID law.
$$C(s) = K_p + \frac{K_i}{s} + K_d s$$$K_p$ is the proportional gain (reacts to present error), $K_i$ is the integral gain (eliminates steady-state error), and $K_d$ is the derivative gain (predicts future error). In the simulator, you tune six PID gains: three for the inner controller and three for the outer.
Chemical Reactor Temperature Control: The outer loop controls reactor temperature, while the inner loop controls the coolant flow valve position. This setup quickly rejects disturbances in coolant supply pressure before they can affect the critical reactor temperature, ensuring product consistency and safety.
Automotive Cruise Control: The outer loop maintains the vehicle's set speed. The inner loop directly controls the throttle actuator. This allows the system to quickly compensate for changes in road gradient or wind resistance, providing a smoother ride than a single-loop system.
Distillation Column Control: The outer loop manages the composition of the top product. The inner loop regulates the reflux flow rate. This cascade structure minimizes the impact of upstream pump fluctuations on the delicate separation process, improving purity and yield.
Paper Machine Basis Weight Control: The outer loop controls the final paper weight (grams per square meter). The inner loop adjusts the thick stock flow valve. By having a fast inner loop on the flow, the system can quickly correct for pulp consistency variations, leading to more uniform paper quality.
When you first encounter cascade control, there are a few common pitfalls you can easily fall into. A major misconception is the idea that as long as the outer loop is tuned well, the inner loop can be tuned roughly. This is absolutely wrong. If the inner loop is sluggish, from the outer loop's perspective, it's like having a subordinate who doesn't respond promptly to commands and whose behavior is unpredictable. For example, an ideal combination would be an inner loop time constant $\tau_i$ of 1 second and an outer loop time constant $\tau_o$ of 10 seconds, which works well. However, if the inner loop response is slow, say $\tau_i$ is 5 seconds, the difference from the outer loop (10 seconds) becomes too small, and the benefits of cascade control are almost lost. If you try drastically lowering the inner loop gain and raising the outer loop gain in the simulator, you should quickly see it start to oscillate.
Next is misidentifying the disturbance injection point. Cascade control demonstrates its power when disturbances enter at a point where they can be detected and corrected by the inner loop. Conversely, if disturbances enter the process directly at the outer loop, the results can be similar to those of a single-loop control. In practice, it's crucial to carefully examine the process flow to determine what disturbances enter through which paths.
Finally, there's an implementation mistake: setting the sampling periods of the inner and outer loops to be the same. The inner loop requires fast response, so its control period should be short (e.g., 100ms). The outer loop controls a slower process, so a slightly longer period (e.g., 1 second) is often sufficient. Running both at the same fast rate only adds unnecessary computational load and can, in some cases, cause instability in the outer loop control, so be careful.
Consider a hydraulic pressure control loop with inner valve servo (tau=0.08 s) and outer pressure controller. Inner loop tuned: Kp=4.5, Ki=8.0, Kd=0.12. Outer loop: Kp=1.2, Ki=0.3, Kd=0.05. Step reference 100 bar to 120 bar. Cascade result: rise time 0.32 s, overshoot 6.8%, settling time 0.78 s. Single-loop PID with same outer gains yields rise time 0.28 s but 18% overshoot and 1.4 s settling—cascade decouples disturbances in valve response, reducing overshoot by 62%.