← All articles

PID Tuning With Transport Delay: Margins, Settling and Windup

A technical illustration shows a feedback loop with a controller, transport delay, response plots and an actuator constraint.

Short answer: Before trusting PID Tuner margins on a loop with a transport delay, check how the delay was linearized. Simulink Control Design uses a Pade approximation of delays by default, the Transport Delay block's own Pade order defaults to 0, which linearizes the delay as a unity gain, and MathWorks recommends exact delay linearization for PID tuning. [2][3][4] If the delay is dropped, the phase margin on screen is optimistic. For windup, log the requested and the applied actuator signal separately: a requested value pinned beyond the limit while the error keeps growing is the signature. [5]

The three questions from the workshop follow-up

On 6 November 2026, a simulation validation engineer posted a follow-up to MathWorks' "Misconceptions in Control Design" workshop after working through its M3 to M5 models. [1]

  1. Transport delay in PID Tuner. In M5 the tuned design showed 60 degrees of phase margin at 5.27 rad/s, while the gain margin sat at 25 rad/s for both the original and tuned gains. The poster read this as the delay setting the phase crossover and asked whether PID Tuner linearizes the delay exactly, uses a Pade approximation, or tunes on the delay free plant. [1]

  2. A missed settling spec. The tuned design settled in 1.02 s against a 0.8 s requirement, while rise time and overshoot passed. Which to trade first: a little more overshoot, derivative action, or less delay? [1]

  3. Windup in field logs. The M4 hand-built PI asked for about 26 V against a 12 V driver limit and overshot by 187.7% after the disturbance cleared. Is a request pinned at the limit while error grows the signature to look for, and should requested and applied voltage be logged separately? [1]

The workshop presenter replied on 9 November that a full answer would follow. [1] The sections below answer what MathWorks documentation already covers.

Does PID Tuner see the transport delay?

PID Tuner treats every block between the controller output and input as the plant, linearizes it, and designs the controller for that linear model, which can include time delays. [2] How the delay appears depends on the linearization settings:

  • By default, Simulink Control Design represents continuous delays such as the Transport Delay block with a Pade approximation. [3]

  • The Transport Delay block's "Pade order (for linearization)" parameter defaults to 0, which gives a unity gain with no dynamic states. A positive order n adds n states and a more accurate delay model. [4]

  • MathWorks lists PID tuning and loop shaping among the cases where you should linearize with exact delays, to avoid approximation error. [3]

In practice, inspect the linearized plant PID Tuner used. If the delay is missing or approximated at too low an order, compare its Bode plot with an exact delay linearization before you trust the margins. A first order Pade approximation in the MathWorks example starts to diverge in phase around 50 rad/s. [3]

What to trade when settling time misses the spec

The follow-up's question is open in the thread. [1] A practical order is to first confirm the margins with the delay modeled exactly, since an optimistic phase margin changes the starting point. Then test each option against the same benchmark: a small overshoot allowance, added derivative action, or a shorter delay where the hardware allows it. For a structured way to compare tuning changes across loops, see PID gain scheduling and multi-loop verification.

How windup shows up in logs

When the PID Controller block output is limited, the integrator can keep growing, so internal signals can be unbounded even when the output looks bounded. If the error then changes sign, the integrator can take a long time to unwind. [5] That is why a request pinned beyond the actuator limit while the error keeps growing is a useful log signature, and why the requested and applied signals should be logged as separate channels.

The block offers two built-in fixes: [5][6]

  • Back-calculation feeds the difference between the saturated and unsaturated signal back to the integrator. A usual starting gain is Kb = I, or Kb = sqrt(I*D) with derivative action. MathWorks notes it can be effective for plants with relatively large dead time.

  • Clamping (conditional integration) stops integration while the output exceeds its limits and the integrator input has the same sign as the saturation. It suits relatively small dead times and can give a poor transient for large ones.

Both rely on the saturation limits being known and the controller being the only signal feeding the actuator. Otherwise use tracking mode or the external anti-windup port. [6] For more on windup and derivative kick in robot loops, see PID tuning for robot motion control, and troubleshoot oscillations before retuning.

Key takeaways

  • A PID Tuner margin is only as good as the delay model in the linearized plant. [2][3]

  • The Transport Delay block's default Pade order of 0 linearizes the delay as a unity gain. [4]

  • MathWorks recommends exact delay linearization for PID tuning. [3]

  • Log requested and applied actuator signals separately to see windup. [5]

  • Back-calculation suits larger dead times; clamping suits smaller ones. [5]

Frequently asked questions

Does PID Tuner account for transport delay?

PID Tuner designs for a linearized plant that can include time delays. [2] Simulink Control Design uses a Pade approximation by default, and the Transport Delay block's Pade order defaults to 0, which linearizes the delay as a unity gain. MathWorks recommends exact delay linearization for PID tuning. [3][4]

Why can stability margins look optimistic with a delay?

A delay adds phase lag that grows with frequency. If the linearized plant leaves the delay out or approximates it at low order, the phase margin computed from it is higher than the real loop's. [1][3]

How do you spot integrator windup in field logs?

Log the controller's requested output and the actuator's applied value as separate signals. Windup shows as the request staying beyond the limit while the error keeps growing, followed by large overshoot once the error reverses. In the workshop's M4 model, a PI requested about 26 V against a 12 V limit and overshot by 187.7%. [1][5]

Should I use back-calculation or clamping anti-windup?

MathWorks notes that back-calculation can be effective for plants with relatively large dead time, while clamping suits relatively small dead times and can give a poor transient for large ones. Both need known saturation limits. [5][6]

Sources

  1. Gavin. "Follow-up on Misconceptions in Control Design: transport delay, PID Tuner margins, and windup in logs." MATLAB Central Discussions, 6 Nov 2026 (reply by Siddharth Jawahar, 9 Nov 2026). https://www.mathworks.com/matlabcentral/discussions/matlabexpo/891421-follow-up-on-misconceptions-in-control-design-transport-delay-pid-tuner-margins-and-windup-in-log

  2. MathWorks. "Introduction to Model-Based PID Tuning in Simulink." Simulink Control Design documentation. https://www.mathworks.com/help/slcontrol/ug/introduction-to-automatic-pid-tuning.html

  3. MathWorks. "Models with Time Delays" and "Linearize Models with Delays." Simulink Control Design documentation. https://www.mathworks.com/help/slcontrol/ug/models-with-time-delays.html and https://www.mathworks.com/help/slcontrol/ug/linearization-of-models-with-delays.html

  4. MathWorks. "Transport Delay." Simulink block reference. https://www.mathworks.com/help/simulink/slref/transportdelay.html

  5. MathWorks. "PID Controller." Simulink block reference, Anti-windup method parameter. https://www.mathworks.com/help/simulink/slref/pidcontroller.html

  6. MathWorks. "Anti-Windup Control Using PID Controller Block." Simulink example. https://www.mathworks.com/help/simulink/slref/anti-windup-control-using-a-pid-controller.html

If you have a model or IO data for one of your own loops, LabCD's guided workflow lets you tune and test a controller on your first model for free, with a qualified engineer approving every controller.

Want to try this on your own plant model?

Try LabCD free with your first model