Level 4 — Numerical analysis

PID Controller Step Response (Closed-Loop Simulation)

Simulate a PID loop on a first-order-plus-dead-time or second-order plant: step response, overshoot, rise and settling time, steady-state error, actuator limits and SIMC tuning.

How it works — PID Controller Step Response (Closed-Loop Simulation)

Σ PID G(s) r y u

Inputs

r
Set-point step
G(s)
Plant gain K

Formula

  • u(t) = K_p·e(t) + K_i∫e(t)dt + K_d·de(t)/dt
  • G(s) = K·e^(−θs)/(τs + 1) or Kωₙ²/(s² + 2ζωₙs + ωₙ²)

Results

u
Controller output
y
Overshoot
Plant
Controller
Simulation
Reset

Results

Enter your values and press Calculate. The defaults are a worked example.

Formula

u(t) = K_p·e(t) + K_i∫e(t)dt + K_d·de(t)/dt · G(s) = K·e^(−θs)/(τs + 1) or Kωₙ²/(s² + 2ζωₙs + ωₙ²)

Show the math

Worked solution

Press Calculate to see every step with your values substituted.

Calculation level & design standard

Level 4 — Numerical analysis

A numerical solver: matrix analysis, iteration or time integration.

Preliminary engineering calculation — no jurisdiction-specific code compliance claimed. Verify the applicable requirements with a qualified professional.

Assumptions

  • Linear plant; unity feedback; filtered derivative on the error; integrator clamped at the actuator limits.
  • Fixed-step RK4 integration (3000 steps).

References

  • K. J. Åström, T. Hägglund, PID Controllers: Theory, Design and Tuning
  • S. Skogestad (2003), Simple analytic rules for model reduction and PID controller tuning, J. Process Control

Results are for preliminary design and education. Verify against the governing code and have critical work checked by a licensed professional engineer.

Sign in

or with email

Forgot password?