r/controlengineering • • 21d ago

Same loop, three tuning rules: why Ziegler-Nichols and Cohen-Coon overshoot so much on setpoint changes

I fitted a first-order-plus-dead-time model to an open-loop step test (K = 2.0, τ = 30 s, θ = 8 s, so θ/τ ≈ 0.27) and simulated a closed-loop setpoint step with three classic tuning rules. Same plant, same step, ISA-form PID with derivative on measurement and a derivative filter (N = 10). Plot attached.

| Rule | Kp | Ti (s) | Td (s) | Overshoot | 2% settling | IAE |

|---|---|---|---|---|---|---|

| IMC/Lambda (λ = θ) | 1.42 | 33.9 | 3.51 | 4.5% | 73 s | 310 |

| Ziegler-Nichols (reaction curve) | 2.25 | 15.9 | 3.98 | 73.0% | 189 s | 641 |

| Cohen-Coon | 2.63 | 17.7 | 2.76 | 95.9% | not settled in 263 s | 1,023 |

Why the gap: Ziegler-Nichols and Cohen-Coon were designed around fast disturbance rejection, roughly a quarter-amplitude decay. On a setpoint step, that aggressiveness shows up as overshoot and ringing. IMC/Lambda trades some speed for robustness through λ; raise λ and the loop gets gentler still.

Two checks you can do on your own loops without any software:

  1. If a loop overshoots badly on setpoint changes, find out which rule it was tuned with. A disturbance-rejection tuning on a loop that mostly sees setpoint moves is a common mismatch.
  2. Compare dead time with the time constant. Once θ/τ goes above about 1, the loop is dead-time dominant, the classic rules get shaky, and a larger λ is usually the safer start.

Caveat, because it matters: this compares setpoint response only. I haven't simulated load disturbances here, which is exactly what ZN and Cohen-Coon were aimed at, so the comparison is one-sided by design. And it's a simulation of a fitted model, not plant data.

Disclosure: I work at CSI (an automation consultancy) and built the small desktop tool that produced these numbers. Happy to go into the method if anyone's interested.

For those of you tuning loops in plants: do you start from a rule, from the DCS or controller autotune, or from settings on similar loops you trust?

2 Upvotes

5 comments sorted by

1

u/pnachtwey 20d ago

When someone mentions Z-N or C-C, you know they don't know much. IMC/lambda tuning is much better but they require having an open loop transfer function. Z-N and C-C barely work for temperature system/non integrating. Up your game and learn how to do system identification.

1

u/Trevor521 20d ago

Fair point, and I agree on IMC/Lambda. That’s why the tool doesn’t stop at Z-N and C-C.

It does the system identification first. It fits four transfer functions with dead time to the step test (first order, overdamped and underdamped second order, and integrating), compares them by fit quality, and tunes from the one that fits best. The default rules are IMC/Lambda and SIMC, and the starting gains are the IMC ones.

Z-N and C-C are only there for comparison, because plenty of plants still run on them. Put them next to IMC on the same simulated step and their overshoot speaks for itself.

Where I’d value your view: it only identifies from a single open-loop step at the moment. Would you prioritise multiple steps, PRBS-type tests or closed-loop identification next?

1

u/pnachtwey 19d ago

Normally, you can get by with just a single step change in the control output because temperature systems are usually linear.

You should try identifying SOPDT systems. There really aren't any FOPDT systems. Can you program in python?

https://peter.deltamotion.com/py/SOPDT.zip

Here is a video. I can tune system if provided a .csv, .json or .xml file.

Peter Ponders PID - System Indentification of a SOPDT temperature system using real data.

If you mean cascaded loops then you should tune the inner loop first. That data should be enough to optimize the outer loop too.

1

u/Trevor521 19d ago

Thanks Peter, I ran your Hotrod data through it. I used only the data file; the fit is my own code (least squares on the closed-form SOPDT step response). Results next to yours:

  • Gain: 3.777 vs your 3.757
  • Time constants: 2.847 and 0.693 min vs your 2.849 and 0.685
  • Dead time: 0.331 vs your 0.354 min
  • RMS error: about 0.46 vs your 0.44. My figure is post-step only, so not quite like for like.

It chose SOPDT by itself. The first-order fit’s RMS error was nearly five times higher, which backs up your point about FOPDT.

We land on the same IMC-PID form too: Ti = τ1 + τ2 and Td = τ1τ2/(τ1 + τ2). The only difference is λ. You use max(0.1·τmax, 0.8θ), and I default to λ = θ. I may borrow your floor for loops with very short dead time.

Your data also exposed a bug in my data checks: a perfectly flat baseline from whole-degree readings was flagged as drifting. That’s fixed now, so thank you twice.

1

u/seekingsanity 19d ago

See this.

https://peter.deltamotion.com/Videos/SOPDT1.mp4

The closed loop time constant has limits. I show ALL the math. You can see that the closed loop time constant shouldn't be less than .707 of the dead time. Look at equation 20 and the equations leading up to that so 0.75 or 0.8 of the dead time is reasonable. Notice I use a second order approximation rather than just a first. The leads to having a low pass filter which is good.

Now for a challenge, I could send you some data from a hydraulic actuator.

Note, I don't consider control theory a theory. If one can get a system ID then everything else can be calculated.

Also, I am a motion control guy or was. I am retired now.