Question 2 Complete the following unfinished MATLAB code. % DC motor transfer function G1 = tf([0.8 1.6],[1 4 7.2]); % Cable reel transfer function G2 = tf([25],[1 1]); % System transfer fuction G=G1*G2 %% PID - Reaction curve method % Compute the step response of G and save it in [Y2,T2] [Y2,T2] = step(Tcl); % Compute the derivative of the step response % Finds the inflection point [M,I] % Time that the inflection point was observed % Magnitude of the step reponse at the inflection point % Gradient of the step reponse at the time of the inflection point % Find the X and Y intercepts % Compute the parameters for ZN PID tuning, i.e. "R" and "tau" % Obtain the PID gains Kp, Ti, Td and N using the ZN tuning rules for the Reaction Curve method. % Fine tune the gains Kp, Ti and Td to satisfy the control requirements (Peak time, overshoot, steady-state error) % Obtain the transfer function of the PID controller. Use the command "pidstd". % Obtain the closed-loop transfer function Tcl. Use the command "feedback" and save the result in the variable "Tcl" % In the following line we use the command "step" to save the the step response in the variables "y" and "t" [y,t] = step(Tcl); % Use the command "stepinfo" to obtain the characteristics of the step response and save the result in the variable "assessStep" % In the following line we compute the steady-state error and save it in the variable "ess" ess = abs(1 - y(end))
Question 2 Complete the following unfinished MATLAB code. % DC motor transfer function G1 = tf([0.8 1.6],[1 4 7.2]); % Cable reel transfer function G2 = tf([25],[1 1]); % System transfer fuction G=G1*G2 %% PID - Reaction curve method % Compute the step response of G and save it in [Y2,T2] [Y2,T2] = step(Tcl); % Compute the derivative of the step response % Finds the inflection point [M,I] % Time that the inflection point was observed % Magnitude of the step reponse at the inflection point % Gradient of the step reponse at the time of the inflection point % Find the X and Y intercepts % Compute the parameters for ZN PID tuning, i.e. "R" and "tau" % Obtain the PID gains Kp, Ti, Td and N using the ZN tuning rules for the Reaction Curve method. % Fine tune the gains Kp, Ti and Td to satisfy the control requirements (Peak time, overshoot, steady-state error) % Obtain the transfer function of the PID controller. Use the command "pidstd". % Obtain the closed-loop transfer function Tcl. Use the command "feedback" and save the result in the variable "Tcl" % In the following line we use the command "step" to save the the step response in the variables "y" and "t" [y,t] = step(Tcl); % Use the command "stepinfo" to obtain the characteristics of the step response and save the result in the variable "assessStep" % In the following line we compute the steady-state error and save it in the variable "ess" ess = abs(1 - y(end))
Introductory Circuit Analysis (13th Edition)
13th Edition
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:Robert L. Boylestad
Chapter1: Introduction
Section: Chapter Questions
Problem 1P: Visit your local library (at school or home) and describe the extent to which it provides literature...
Related questions
Question
100%
Question 2
Complete the following unfinished MATLAB code.
% DC motor transfer function
G1 = tf([0.8 1.6],[1 4 7.2]);
% Cable reel transfer function
G2 = tf([25],[1 1]);
% System transfer fuction
G=G1*G2
%% PID - Reaction curve method
% Compute the step response of G and save it in [Y2,T2]
[Y2,T2] = step(Tcl);
% Compute the derivative of the step response
% Finds the inflection point [M,I]
% Time that the inflection point was observed
% Magnitude of the step reponse at the inflection point
% Gradient of the step reponse at the time of the inflection point
% Find the X and Y intercepts
% Compute the parameters for ZN PID tuning, i.e. "R" and "tau"
% Obtain the PID gains Kp, Ti, Td and N using the ZN tuning rules for the Reaction Curve method.
% Fine tune the gains Kp, Ti and Td to satisfy the control requirements (Peak time, overshoot, steady-state error)
% Obtain the transfer function of the PID controller. Use the command "pidstd".
% Obtain the closed-loop transfer function Tcl. Use the command "feedback" and save the result in the variable "Tcl"
% In the following line we use the command "step" to save the the step response in the variables "y" and "t"
[y,t] = step(Tcl);
% Use the command "stepinfo" to obtain the characteristics of the step response and save the result in the variable "assessStep"
% In the following line we compute the steady-state error and save it in the variable "ess"
ess = abs(1 - y(end))
![0.8s + 1.6
Consider a DC motor with a dynamic model G₁(s) =
s² + 4s +7.2
controller using the Zielger Nichols Reaction Curve method. The closed loop system is shonw in the figure.
R(s) +
Σ
CPID(S)
▪ Peak Time: Tp ≤ 0.5 second
■ Overshoot: P.O. < 30%
▪ Zero steady-state error
, and is used to drive a cable reel with a dynamic model, G₂(s) =
The PID controller should have the following parallel form,
1
TD
CPID(S)= Kp(1+ +
Tis
TDS +1
The closed-loop step response should achieve the following objectives:
G₁ (s)
G₂ (s)
Y(s)
25
s+1
You are required to design a PID](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F12c40d46-28e6-4ab9-9d95-c05fcb354413%2Fbedec377-084b-48e0-8569-7c8294ddbdf0%2Fiogqv5_processed.jpeg&w=3840&q=75)
Transcribed Image Text:0.8s + 1.6
Consider a DC motor with a dynamic model G₁(s) =
s² + 4s +7.2
controller using the Zielger Nichols Reaction Curve method. The closed loop system is shonw in the figure.
R(s) +
Σ
CPID(S)
▪ Peak Time: Tp ≤ 0.5 second
■ Overshoot: P.O. < 30%
▪ Zero steady-state error
, and is used to drive a cable reel with a dynamic model, G₂(s) =
The PID controller should have the following parallel form,
1
TD
CPID(S)= Kp(1+ +
Tis
TDS +1
The closed-loop step response should achieve the following objectives:
G₁ (s)
G₂ (s)
Y(s)
25
s+1
You are required to design a PID
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Introductory Circuit Analysis (13th Edition)](https://www.bartleby.com/isbn_cover_images/9780133923605/9780133923605_smallCoverImage.gif)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
![Delmar's Standard Textbook Of Electricity](https://www.bartleby.com/isbn_cover_images/9781337900348/9781337900348_smallCoverImage.jpg)
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
![Introductory Circuit Analysis (13th Edition)](https://www.bartleby.com/isbn_cover_images/9780133923605/9780133923605_smallCoverImage.gif)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
![Delmar's Standard Textbook Of Electricity](https://www.bartleby.com/isbn_cover_images/9781337900348/9781337900348_smallCoverImage.jpg)
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
![Fundamentals of Electric Circuits](https://www.bartleby.com/isbn_cover_images/9780078028229/9780078028229_smallCoverImage.gif)
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
![Electric Circuits. (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780134746968/9780134746968_smallCoverImage.gif)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
![Engineering Electromagnetics](https://www.bartleby.com/isbn_cover_images/9780078028151/9780078028151_smallCoverImage.gif)
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,