0% found this document useful (0 votes)
7 views2 pages

Digital

Control disgital
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Digital

Control disgital
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

z = tf('z',-1);

s = tf('s');
G = tf([1.429e8],[175.9 7738 1.361e2]) %Planta
R = tf([0.0001776 0.02969 1.2090],[1 0]) %PID
%A = tf([1 48.98 172 61.52 1.6],[1.237 53.92 172.5 56.19 1.299])
Fe = feedback(R*G,1) %Control de lazo cerrado
%Fe1 = feedback(R*G*A,1)

Ga =c2d(G*R,0.001,'zoh') %conversion a discreto


M = feedback(Ga,1) %Control lazo cerrado discreto
%Ga1 =c2d(G*R*A,0.001,'zoh')
M1 = feedback(Ga1,1)
t = [0:1:10];
step(Fe,M)
grid
title('Respuesta escalón unitario')
S = stepinfo(Fe1)

title('Respuesta escalón unitario')


S = stepinfo(Fe1)

s = tf('s');
R = tf([1],[1 6 5 0])
P = tf([0.001786],[1 0.5714 0.21939564])
F = feedback(R*P,1)
Ts = .2;
P1 = c2d(R,Ts,'tustin')
load('tfData.mat','P1');
[num,den] = tfdata(P1)
celldisp(num)
celldisp(den)

1
R = -----------------
s^3 + 6 s^2 + 5 s

0.001786
P= -----------------------
s^2 + 0.5714 s + 0.2194

0.001786
F = ------------------------------------------------------------
s^5 + 6.571 s^4 + 8.648 s^3 + 4.173 s^2 + 1.097 s + 0.001786

P1 =
0.0006061 z^3 + 0.001818 z^2 + 0.001818 z + 0.0006061
P1 = -----------------------------------------------------
z^3 - 2.152 z^2 + 1.424 z - 0.2727

_ ___________________________________________________________________________

https://www.youtube.com/watch?v=nyUfioWpwhU

__________________________________________

You might also like