Академический Документы
Профессиональный Документы
Культура Документы
Cdigo: 20156458
2015
1
Sistemas Lineales Control sistemas con retardo / Espacio estados
2
Amplitude
-1
-2
-3
0 100 200 300 400 500 600 700 800 900
Time (sec)
Se hace inestable, por ello se eligen otras constantes, haciendo uso del PIDTOOL
= 0.1 , = 0.9
Step Response
0.7
0.6
0.5
0.4
Amplitude
0.3
0.2
0.1
0
0 50 100 150 200 250 300 350 400
Time (sec)
FT = G*K/(1+G*K);
La respuesta al escaln con retardo:
step(FT/2)
2
Sistemas Lineales Control sistemas con retardo / Espacio estados
0.2 -35
0.1 -40
0 -45
0 5 10 15 20 25 30 -0.45 -0.4 -0.35 -0.3 -0.25 -0.2 -0.15 -0.1 -0.05 0 0.05
Para tau = 1:
0.8 0
0.7 -5
0.6 -10
0.5 -15
0.4 -20
0.3 -25
-30
0.2
-35
0.1
-40
0 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3
0 5 10 15 20 25 30
Para tau = 3:
Salida con retardo. Control PI
Diagrama de Nyquist PI con retardo
0.9
5
0.8 0
0.7 -5
0.6 -10
0.5 -15
0.4 -20
0.3 -25
0.2 -30
0.1 -35
0 -40
0 5 10 15 20 25 30 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4
3
Sistemas Lineales Control sistemas con retardo / Espacio estados
Para tau = 5:
Diagrama de Nyquist PI con retardo
5
Salida con retardo. Control PI
0.9 0
0.8 -5
0.7 -10
0.6
-15
0.5
-20
0.4
-25
0.3
-30
0.2
-35
0.1
0 -40
0 5 10 15 20 25 30 -1 -0.5 0 0.5
b0 = 2; b1 = 1;
a0 = 9; a1 = 5; a2 = 3; a3 = 1;
numG = [ b1 b0 ];
denG = [ a3 a2 a1 a0 ];
Kp = 0.1;
Ki = 0.9;
tt = ti:dt:tf; tt = tt';
nt = length(tt);
r = 0.5*ones(nt,1);
interr = 0;
k = 1;
for t = ti:dt:tf
yy(k,1)= y;
err = r(k,1) - y;
interr = interr + err*dt;
u = Kp*err + Ki*interr;
y3p = (-a2*y2p - a1*yp - a0*y + b0*u+b1*up)/a3;
y = y + yp*dt; %y(k)
yp = yp + y2p*dt; %yp(k)
y2p = y2p + y3p*dt; %y2p(k)
k = k + 1;
end
figure(1);
plot(tt,yy); grid;
title('Salida sin retardo. Control PI');
4
Sistemas Lineales Control sistemas con retardo / Espacio estados
0.45
0.4
0.35
0.3
0.25
0.2
0.15
0.1
0.05
0
0 5 10 15 20 25 30 35 40 45 50
5
Sistemas Lineales Control sistemas con retardo / Espacio estados
0.6
0.5
0.4
0.3
0.2
0.1
0
0 5 10 15 20 25 30 35 40 45 50
ntau = round(tau/dt);
if(ntau == 0) % Se da un punto adicional para el caso en
que tau = 0.
ntau = 1;
end
yy = zeros(ntau+20,1); % Retardo en la salida
y = 0; yp = 0; y2p=0; up=0; y3p=0; ua=0;
yc = 0; ypc = 0; y2pc=0; y3pc=0; % Estado inicial modelo
yyc = zeros(ntau,1); % Retardo a considerar en el control
ti = 0; dt = 0.001; tf = 50;
tt = ti:dt:tf; tt = tt';
nt = length(tt);
r = 0.5*ones(nt,1);
interr = 0;
k = 1;
for t = ti:dt:tf
% yout(k,1) = y;
ytau = yy(k,1);
ytaut(k,1)= ytau;
yest = yc - ytau + yyc(k,1);
yestim(k,1) = yest;
err = (r(k,1) - yest);
interr = interr + err*dt;
u = Kp*err + Ki*interr;
y3p = (-a2*y2p - a1*yp - a0*y + b0*u+b1*up)/a3;
y = y + yp*dt; %y(k)
yp = yp + y2p*dt; %yp(k)
y2p = y2p + y3p*dt; %y2p(k)
yy(ntau+k,1) = y;
%%%%
yyc(ntau+k,1) = yc;
k = k + 1;
end
yout = yy(ntau:nt+ntau-1,1);
figure(3);
plot(tt,yout,'-b',tt,yestim,'--r'); grid;
title('Salida con retardo, Control PI y predictor de Smith');
6
Sistemas Lineales Control sistemas con retardo / Espacio estados
0.45
0.4
0.35
0.3
0.25
0.2
0.15
0.1
0.05
0
0 5 10 15 20 25 30 35 40 45 50
-5
-10
-15
-20
-25
-30
-35
-40
-0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4
7
Sistemas Lineales Control sistemas con retardo / Espacio estados
Ecuaciones:
= + +
= = +
= +
Se derivan:
1
= ( + )
1
= ( + ) + ( ( + )) +
+ +
= ( ) + ( ) + ( )
Resulta:
+ +
=
Vector estados:
= [ ]
[ ] 0 1 0 0
0 0 1 0
=[
+ + ] [ ] +
0
= [1 0 0] [ ]
8
Sistemas Lineales Control sistemas con retardo / Espacio estados
2
=( + ) + ( )
tan tan
Sea:
2
1 = +
tan
2 =
tan
= 1 + 2
Se obtiene:
1 1
=
2 2
0 1 0
[ ] 1 1 0
= 0
2 2 [ ] + 0
2 1/
0
[ ]
= [1 0 0] [ ]
9
Sistemas Lineales Control sistemas con retardo / Espacio estados
3. Circuito RLC
Ecuaciones:
= + +
=
1
=
Como nos piden tomar la corriente I como salida, entonces analizaremos como un
sistema SISO primero para ver si la funcin de transferencia es propia, ya que debido a las
integrales y derivadas observadas en las ecuaciones dan sospecha de algn inconveniente al
pasarlo a espacio de estados.
1
= + +
1 1
() = ()( + + )
() 2 + +
=
()
10
Sistemas Lineales Control sistemas con retardo / Espacio estados
4. Sistema de amortiguamiento
Ecuaciones:
2 (2 1 ) 2 (2 1 ) + = 2 2
2 (2 1 ) + 2 (2 1 ) 1 (1 0 ) 1 (1 0 ) = 1 1
2 1
=| |
2
A continuacin se ordenarn las ecuaciones de tal manera que cumplan con el vector de
estados propuesto.
1 0
2
=| |
1
2
0 0 1 0 0 0
1 0 0 0 0 1 1 0 1 0 0
2 | 2 1 2 2 1 2 | 2 0 | 2 | | 1|
| |
= || | = (
|
)
1 1 1
( )
1 1 1 | 1 | + | 1 | 0 + 1 0 + 1
1 | | |
2 2 2 | 2
1 | 1 |
2 2
0
2
2 2 2 2 2 2
1 0
1 1 0 0 2 1 0
2 1 2 2 2 2 | | 2 | 0 + | 1 |
=| | = | | + |
2 1
2 2 2 2 2 2
2
11
Sistemas Lineales Control sistemas con retardo / Espacio estados
1 0
2
=|
1 0 |
2
0 0 1 0 0 0
1 0 0 0 0 1 1 0 0 0 0
| 2 1 2 2 1 2 | 2 | 2 | | 2 |
2 | 0
= || | = ( ) ( ) | |
1 1 1 1 0 + |1| 0 + 1 0 + 1 0
1 0 |
1 1 1
| | | | |
2 2 2 2 2 0 2 2
2
2 2 2 2 2 2
0
0
| 1|
+
1
| 1 |
2
1 0
1 1 0 0 2 0 1 0
2 1 2 2 2 2 | | 2 | 0 + | 2 | 0 + | 1 |
=| | = | | + |
2 0
2 2 2 2 1 2 2 2
2
12