Question

Design a control system gain to yield 1.52% overshoot and evaluate the step response. 1. download the project m file from rooQuestion 3 10 pts The settling time associated with your design would be _seconds. You can verify by reviewing your step resp

% We can couple the design of gain on the root locus with a

% step-response simulation for the gain selected. We introduce the command

% rlocus(G,K), which allows us to specify the range of gain, K, for plotting the root

% locus. This command will help us smooth the usual root locus plot by equivalently

% specifying more points via the argument, K. Notice that the first root locus

% plotted without the argument K is not smooth. We also introduce the command

% x = input('prompt'), which allows keyboard entry of a value for x in response to a

% prompt. We apply this command to enter the desired percent overshoot. We also add

% a variable's value to the title of the root locus and step-response plots by

% inserting another field in the title command and use num2str(value) to convert

% value from a number to a character string for display. Let us apply the concepts

% to Example 8.8 in the text.

clear % Clear variables from workspace.

clf % clear graph.

numg=[1 1.5]; % Define numerator of G(s).

deng=poly([0 -1 -10]); % Define denominator of G(s).

'G(s)' % Display label.

G=tf(numg,deng) % Create and display G(s).

rlocus(G) % Draw root locus (H(s)=1).

title('Original Root Locus') % Add title.

'Hit Enter to plot smoothed root locus'

pause

K=0:0.005:50; % Specify range of gain to smooth

% root locus.

rlocus(G,K) % Draw smoothed root locus (H(s)=1).

title('Smoothed Root Locus') % Add title.

pos=input('Type %OS '); % Input desired percent overshoot

% from keyboard.

z=-log(pos/100)/sqrt(pi^2+[log(pos/100)]^2)

% Calculate damping ratio.

sgrid(z,0) % Overlay desired damping ratio line

% on root locus.

title(['Root Locus with ',num2str(pos),'% overshoot line'])

% Define title for root locus

% showing percent overshoot used.

for k=1:10

[K,p]=rlocfind(G) % Generate gain, K, and closed-loop

end; % poles, p, for point selected

% interactively on the root locus.

'Hit Enter to plot step response'

pause

'T(s)' % Display label.

T=feedback(K*G,1) % Find closed-loop transfer function

% with selected K and display.

step(T) % Generate closed-loop step response

% for point selected on root locus.

title(['Step Response for K=',num2str(K)])

% Give step response a title which

% includes the value of K.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

clc;clear all; close all;
num=[1 1.5];%(s+1.5)
den= poly([0 -1 -10]);%(s)*(s+1)*(s+10)
fprintf('open loop tranfer function\n')
G=tf(num,den)
i=1;
K(i)=7;
T=feedback(K(i)*G,1); % Find closed-loop transfer function
t=0:0.005:6;
[y,t] = step(T,t);
ymax= max(y);
while round((ymax-y(end))*100/y(end),3)~=1.52
i=i+1;
K(i)=K(i-1)-0.001;
T=feedback(K(i)*G,1);
t=0:0.005:9;
[y,t] = step(T,t);
ymax= max(y);
end
fprintf('The value of gain K is:%1.3f\n',K(i-1))
fprintf('close loop tranfer function\n')
T=feedback(K(i-1)*G,1); % Find closed-loop transfer function
t=0:0.005:9;
[y,t] = step(T,t);
ymax= max(y);
figure
step(T);
ylabel('Response x(t)')
[ymax,tp] = max(y);
fprintf('Peak time=%1.3fsec\n',t(tp))
fprintf('Peak Response magnitude=%1.3f\n',ymax)
fprintf('percent of overshoot=%1.3fpercent\n',(ymax-y(end))/y(end)*100)
hold on
plot(t(tp),ymax,'*')
s = 601;
while y(s) > 0.998 & y(s) < 0.102;
s = s - 1;
end;
fprintf('Settling time=%1.3fsec\n',t(s))
plot(t(s),y(s),'*')
legend('Response','Peak point','Settling point')
title(['Root Locus with ',num2str(1.52),'% overshoot line'])
fprintf('Steady state error is:e=%1.3f\n',1-y(end))

Root Locus with 1.52% overshoot line 1.2 0.8 Response * Peak point * Settling point Response x(t) 0. 0.4 0.2 3 6 7 8 9 N 5 Ti

open loop tranfer function

G =

s + 1.5
-------------------
s^3 + 11 s^2 + 10 s

Continuous-time transfer function.

The value of gain K is:5.652
close loop tranfer function
Peak time=4.780sec
Peak Response magnitude=1.015
percent of overshoot=1.521percent
Settling time=3.000sec
Steady state error is:e=-0.000
>>

Add a comment
Know the answer?
Add Answer to:
% We can couple the design of gain on the root locus with a % step-response...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Lag Compensator Design Using Root-Locus 2. Consider the unity feedback system in Figure 1 for G(s...

    Lag Compensator Design Using Root-Locus 2. Consider the unity feedback system in Figure 1 for G(s)- s(s+3(s6) Design a lag compensation to meet the following specifications The step response settling time is to be less than 5 sec. . The step response overshoot is to be less than 17% . The steady-state error to a unit ramp input must not exceed 10%. Dynamic specifications (overshoot and settling time) can be met using proportional feedback, but a lag compensator is needed...

  • % MATLAB allows root loci to be plotted with the % rlocus(GH) command, where G(s)H(s) =...

    % MATLAB allows root loci to be plotted with the % rlocus(GH) command, where G(s)H(s) = numgh/dengh and GH is an LTI transfer- % function object. Points on the root locus can be selected interactively % using [K,p] = rlocfind(GH) command. MATLAB yields gain(K) at % that point as well as all other poles(p) that have that gain. We can zoom % in and out of root locus by changing range of axis values using % command axis([xmin,xmax,ymin,ymax]). root locus...

  • root locus

    4. Consider the system described by the following block diagram. In this block diagram \(G(s)=\frac{1}{s+1}, C(z)=\frac{K}{1-z^{-}}\) are the system model and the digital controller. (a) Sketch the root locus diagram of the system, \(C(z) G(z)\). (b) Determine the range of gain \(K\) for the stability using the root locus. (c) Determine the value of gain \(\mathrm{K}\) to get around \(10 \%\) maximum overshoot when a step input is applied using the root locus. Verify your results with plotting the closed...

  • 3. Consider the tilt control block diagram shown below R(s) DesiredG(s) 12 s(s+10)(s+70) Y(s) Til...

    3. Consider the tilt control block diagram shown below R(s) DesiredG(s) 12 s(s+10)(s+70) Y(s) Tilt tilt Design specifications require an overshoot of less than 5% and a settling time of less than 0.6 seconds. (a) Use MATLAB to sketch the root locus (rlocus command) with a proportional controller and use the root locus to determine a value for K (if any) that will satisfy the design requirements (b) Design a lead compensator Ge(s) to satisfy the design specifications. You can...

  • b) Design a PID controller via root-locus to satisfy the following requirements for the controlled system...

    b) Design a PID controller via root-locus to satisfy the following requirements for the controlled system 2.9 T,-0.18 The following notation has been used for the system parameters: Percent Overshoot(%)-pos Settling time (s) Peak time (s)- Tp Start by manual calculations for the locations of the poles and zeros of the PID controller to satisfy the requirements. Find the required location of the zero for PD control and introduce PI control. Afterwards, use the Sisotool in MATLAB to simulate the...

  • A plant with the transfer function Gp(s)-- with unity feedback has the root locus shown in the figure below: (s+2)(s+4) Root Locus 1.5 C(s) 0.5 0.5 1.5 .3 Real Axis (seconds) (a) Determine K of G...

    A plant with the transfer function Gp(s)-- with unity feedback has the root locus shown in the figure below: (s+2)(s+4) Root Locus 1.5 C(s) 0.5 0.5 1.5 .3 Real Axis (seconds) (a) Determine K of Gp(s) if it is desired that the uncompensated system has a 10% OS (overshoot) to a step input. (4 points) a 5% overshoot and a peak time Tp 3.1 meets the requirements described in part (b) and achieves zero steady state (b) Compute the desired...

  • [7] Sketch the root locus for the unity feedback system whose open loop transfer function is K G(s) Draw the root lo...

    [7] Sketch the root locus for the unity feedback system whose open loop transfer function is K G(s) Draw the root locus of the system with the gain Kas a variable. s(s+4) (s2+4s+20) Determine asymptotes, centroid, breakaway point, angle of departure, and the gain at which root locus crosses ja-axis. A control system with type-0 process and a PID controller is shown below. Design the [8 parameters of the PID controller so that the following specifications are satisfied. =100 a)...

  • Q1. Show analytically that the Root Locus for the unity feedback system with open loop transfer f...

    Q1. Show analytically that the Root Locus for the unity feedback system with open loop transfer function: (a) [10 marks] K(s 4) (s + 2) is a circle, and find the centre and the radius. Determine the minimum value of the damping ratio and the corresponding value of K (b) The root locus of the open loop transfer function: [10 marks] s(s26s +15) is depicted in Figure Q1(b). Find the minimum value of gain K that will render the system...

  • Q4 For the following Proportional controller use the step response and root locus rules obtain the...

    Q4 For the following Proportional controller use the step response and root locus rules obtain the root locus schematics for positive gain. (30 pts) Rs) ー10 a. Find the gain and frequency for marginal stability b. Find the gain for critical damping c. Find the real part and the gain ofthe CL pole for a =4 d. Find K that provides the system with 8 dB gain margin and find the complex poles for that gain e. Find the phase...

  • Design a phase lead controller using the Root Locus Method for the system described by G(s)....

    Design a phase lead controller using the Root Locus Method for the system described by G(s). Ensure that there is a reduction of MORE than 40% of the original settling time, additionally, enure that an overshoot of 12% is not exceeded. G(s)=1/(s3+13s2+32s+20)

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT