0% found this document useful (0 votes)
298 views

Exercise:: Solution: Code: Part A

The document describes investigating different PID controller configurations for a process with transfer function Gp(s)=400/s(s+48.5) using MATLAB simulations. It evaluates PI controllers with Kp=2, 10, 100 and Ki=Kp/10, finding that larger Kp values reduce rise time but increase overshoot. It then adds derivative control with Kd=0.1, 0.9, 2 to a PI controller with Kp=100, Ki=10, finding that larger Kd reduces overshoot but increases settling time. Based on these results, a PID controller with Kp=100, Ki=10, Kd=0.9 is concluded to provide the best response for this
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
298 views

Exercise:: Solution: Code: Part A

The document describes investigating different PID controller configurations for a process with transfer function Gp(s)=400/s(s+48.5) using MATLAB simulations. It evaluates PI controllers with Kp=2, 10, 100 and Ki=Kp/10, finding that larger Kp values reduce rise time but increase overshoot. It then adds derivative control with Kd=0.1, 0.9, 2 to a PI controller with Kp=100, Ki=10, finding that larger Kd reduces overshoot but increases settling time. Based on these results, a PID controller with Kp=100, Ki=10, Kd=0.9 is concluded to provide the best response for this
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Exercise:

Consider a process given below to be controlled by a PID controller,


a) Obtain the unit step response of Gp(s)=400/s(s+48.5).
b) Try PI controllers with (Kp=2, 10, 100), and Ki=Kp/10. Investigate the unit step response in each
case, compare the results and comment.
c) Let Kp=100, Ki=10, and add a derivative term with (Kd=0.1, 0.9, 2). Investigate the unit step
response in each case, compare the results and comment.
Based on your results in parts b) and c) above what do you conclude as a suitable PID controller for
this process and give your justification.

Solution:
Code:
Part a:
numg=[400];
deng=[1 48.5 0];
G=tf(numg,deng)
step(G)

Result:

Part b:
When kp=2
Code:
Kp=2;
Ki=Kp/10;
step(Ki,Kp)
Result:

When kp=10
Code:
Kp=10;
Ki=Kp/10;
step(Ki,Kp)

Result:
When kp=100;
Code:
Kp=100;
Ki=Kp/10;
step(Ki,Kp)

Result:

You might also like