Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Colada Continua Realimentación

Table of Contents
........................................................................................................................................ 1
Modelo .............................................................................................................................. 1
Ganancia "Pequeña" ............................................................................................................ 1
Ganancia "Más Grande" ....................................................................................................... 4
Ganancia "Muy Grande" ...................................................................................................... 6

s=tf('s');

Modelo
G=1/s/(1*s+1)^2

G =

1
---------------
s^3 + 2 s^2 + s

Continuous-time transfer function.

t1=20;
t2=100;
prec=.01;
t=[0:prec:t2]';
r=ones(length(t),1);
r(1:round(t1/prec))=0;
var=.01;
e=var*randn(length(t),1);

Ganancia "Pequeña"
K=.1;
Glc=K*G/(1+K*G)
Glcu=K/(1+K*G)
Glce=1/(1+K*G)

Glc =

0.1 s^3 + 0.2 s^2 + 0.1 s

1
Colada Continua Realimentación

-----------------------------------------------
s^6 + 4 s^5 + 6 s^4 + 4.1 s^3 + 1.2 s^2 + 0.1 s

Continuous-time transfer function.

Glcu =

0.1 s^3 + 0.2 s^2 + 0.1 s


-------------------------
s^3 + 2 s^2 + s + 0.1

Continuous-time transfer function.

Glce =

s^3 + 2 s^2 + s
---------------------
s^3 + 2 s^2 + s + 0.1

Continuous-time transfer function.

Simulación

y=lsim(Glc,r,t)+lsim(Glce,e,t);
u=lsim(Glcu,r,t)+lsim(Glcu,e,t);

plot(t,y);
grid;
axis([0 t2 -.1 1.2]);
title(' Nivel')
legend('y');
h = findobj(gcf,'type','line');
set(h,'linewidth',2);

2
Colada Continua Realimentación

plot(t,u);
grid;
axis([0 t2 -.1 .4]);
title('Variable Manipulada')
legend('u');
h = findobj(gcf,'type','line');
set(h,'linewidth',2);

3
Colada Continua Realimentación

Ganancia "Más Grande"


K=.2;
Glc=K*G/(1+K*G)
Glcu=K/(1+K*G)
Glce=1/(1+K*G)

Glc =

0.2 s^3 + 0.4 s^2 + 0.2 s


-----------------------------------------------
s^6 + 4 s^5 + 6 s^4 + 4.2 s^3 + 1.4 s^2 + 0.2 s

Continuous-time transfer function.

Glcu =

0.2 s^3 + 0.4 s^2 + 0.2 s


-------------------------
s^3 + 2 s^2 + s + 0.2

Continuous-time transfer function.

4
Colada Continua Realimentación

Glce =

s^3 + 2 s^2 + s
---------------------
s^3 + 2 s^2 + s + 0.2

Continuous-time transfer function.

Simulación

y=lsim(Glc,r,t)+lsim(Glce,e,t);
u=lsim(Glcu,r,t)+lsim(Glcu,e,t);

plot(t,y);
grid;
axis([0 t2 -.1 1.2]);
title(' Nivel')
legend('y');
h = findobj(gcf,'type','line');
set(h,'linewidth',2);

plot(t,u);
grid;
axis([0 t2 -.1 .4]);
title('Variable Manipulada')
legend('u');

5
Colada Continua Realimentación

h = findobj(gcf,'type','line');
set(h,'linewidth',2);

Ganancia "Muy Grande"


K=2.1;
Glc=K*G/(1+K*G)
Glcu=K/(1+K*G)
Glce=1/(1+K*G)

Glc =

2.1 s^3 + 4.2 s^2 + 2.1 s


-----------------------------------------------
s^6 + 4 s^5 + 6 s^4 + 6.1 s^3 + 5.2 s^2 + 2.1 s

Continuous-time transfer function.

Glcu =

2.1 s^3 + 4.2 s^2 + 2.1 s


-------------------------
s^3 + 2 s^2 + s + 2.1

6
Colada Continua Realimentación

Continuous-time transfer function.

Glce =

s^3 + 2 s^2 + s
---------------------
s^3 + 2 s^2 + s + 2.1

Continuous-time transfer function.

Simulación

y=lsim(Glc,r,t)+lsim(Glce,e,t);
u=lsim(Glcu,r,t)+lsim(Glcu,e,t);

plot(t,y);
grid;
%axis([0 t2 -.1 1.2]);
title(' Nivel')
legend('y');
h = findobj(gcf,'type','line');
set(h,'linewidth',2);

plot(t,u);
grid;

7
Colada Continua Realimentación

%axis([0 t2 -.1 .4]);


title('Variable Manipulada')
legend('u');
h = findobj(gcf,'type','line');
set(h,'linewidth',2);

Published with MATLAB® R2020b

You might also like