ControlLoopLab
Home PID tuningWorked example

Tank pH Cohen–Coon starting point

A mixing tank pH loop has a local process gain at one operating point and a visible delay after reagent changes.

Model inputs

Process model
s
s
Controller

Process reaction & setpoint response

Settled in model
Kc
3.1876
Ti
13.6s
Td
3.3873s
Overshoot
68.873%
Open- and closed-loop FOPDT responseClosed-loop responseoutput044.588.9133178−0.1350.5181.171.82Time (s)Open-loop reactionoutput044.588.9133178−0.0720.2760.6240.972Time (s)SetpointClosed-loop outputOpen-loop output
G(s) = Kp exp(−θs) / (1 + τp s)

Calculated results

Series Kc
3.1876
Series Ti
13.6s
Series Td
3.3873s
ISA Kc
3.9815
ISA Ti
16.988s
ISA Td
2.7119s
Parallel Kp
3.9815
Parallel Ki
0.234371/s
Parallel Kd
10.797s
Dead-time ratio θ/τ
0.4
Overshoot
68.873%
2% settling time
93.299s
Peak |control effort|
5.8511
Setpoint IAE
21.958s
Steady state (model)
1
Simulation step
0.068178s
Simulated window
177.88s
  • Reaction-curve rules are aggressive starting points. Compare effort and overshoot before commissioning.

Model and interpretation

Full methodology

Fit the process first

Subtract the pre-step baseline. Divide the eventual output change by the input step for Kp. Estimate the delay and the time to 63.2% of the final change after the delay. Negative process gain gives negative controller gains under the stated feedback convention.

Match the controller form

SIMC PI uses Kc = τp/[Kp(τc+θ)] and Ti = min(τp, 4(τc+θ)). Extended SIMC PID adds θ/3 in the series form. Lambda PI keeps Ti = τp. The Lambda PID setting uses the first-order Padé IMC rule. Ziegler–Nichols and Cohen–Coon use open-loop reaction-curve coefficients.

Read the simulation window

The setpoint changes by one output unit. A zero-order-held plant update splits the discrete step at the fractional dead time. The controller integrates error and uses a filtered derivative on measurement (Td/10). Overshoot and 2% settling reference the predicted steady state. IAE integrates setpoint error over the finite run. Actuator limits, noise and windup are outside this model.