Lec 14 Tuning PID Controllers
Lec 14 Tuning PID Controllers
If the output does not exhibit sustained oscillations for whatever value Kp
may take, then this method does not apply.
Zeigler-Nichol’s Second Method (Cont.)
(Frequency Response Method)
Table-2
Tuning map for PID controllers
• For this system, the first method of Ziegler-Nichols does not apply but we
can apply the second method.
• Because the plant has an integrator, i.e. one of the poles lie at 𝑠 = 0, which
means that the plant dynamics will have oscillatory behavior.
Design Procedure for the second method of Ziegler-Nichols:
2. From simulation
Finding 𝐾𝑐𝑟 and 𝑃𝑐𝑟 using Routh criterion
When PID controller is reduced to P-
controller, we obtain the closed-loop
transfer function as follows:
The value of 𝐾𝑝 that makes the system marginally stable so that sustained
oscillation occurs can be obtained by use of Routh’s stability criterion.
2. From simulation
Finding 𝐾𝑐𝑟 and 𝑃𝑐𝑟 from simulation
Alternatively, The value of 𝐾𝑝 that makes the system marginally stable so that
sustained oscillation occurs can be obtained from simulation.
s = tf('s');
Gp = 1/(s*(s+1)*(s+5)); % plant model
Gc = 30; % P-controller to find Kcr and Pcr from simulation
H = 1; % unity feedback system
TF = feedback(Gp*Gc, H);
step(TF)
title('Unit-Step Response')
Finding 𝐾𝑐𝑟 and 𝑃𝑐𝑟 from simulation (Cont.)
Design Procedure for the second method of Ziegler-Nichols:
From the table of Ziegler-Nichols for the second method, we obtain the gains of
the PID cotroller as follows
Step 2: Compute the parameters of PID controller (Cont.)
The PID controller has a pole at the origin and double zero at 𝑠 =– 1.4235.
% ---------- Unit-step response ----------
s = tf('s');
Gp = 1/(s*(s+1)*(s+5)); % plant model
Gc = 18*(1 + 1/(1.405*s) + 0.35124*s); % PID controller
H = 1; % unity feedback system
TF = feedback(Gp*Gc, H);
step(TF)
title('Unit-Step Response')
Step 2: Compute the parameters of PID controller (Cont.)
End of Lecture 14