Professional Documents
Culture Documents
R E P O R T E
T E C N I C O
P
R
E
S
E
N
T
A
N :
HERNANDEZ CASTILLO MICHEL EDUARDO
PALACIOS LOZANO JORGE DAVID
TEJEDA MANDUJANO ANDRES TRINIDAD
Noviembre 2012
Prof. Ing. Lucia Sarai Vargas Ruiz
Objetivo:
Los alumnos sern capaces de visualizar las respuestas de los controladores P, PI
y PID a una entrada escaln utilizando los 2 mtodos de Ziegler Nichols
analizando las respuestas de cada controlador y as mismo observaran los
efectos que realizan los controladores aplicados a los diferentes sistemas, con la
finalidad de tener presente sus caractersticas.
Sern capaces de analizar bajo que situaciones se utiliza el mtodo de la
ganancia mxima y la curva de reaccin (Ambos mtodos de Ziegler Nichols).
QUE
QUEDA
DEFINIDO
DONDE:
J=0.1 kg
b=0.01 N m s
k=0.016 N m
bo=8.6066
La=0.01 H
Ra=0.05
Kt=0.0232379 V s
POR
LA
SIGUIENTE
FUNCION
DE
[Practica 2]
ENCONTRANDO LIMITES DE KC
[Practica 2]
SUSTITUYENDO S POR JW
[Practica 2]
ti =
1.5115
GANANCIA DEL CONTROLADOR INTEGRAL
Ki=Kp/ti
Ki =
38.1078
GANANCIA DEL CONTROLADOR PI
num/den =
87.0626 s + 57.6
---------------1.5115 s
FUNCION DE TRANSFERENCIA CON GANACIA DEL CONTROLADOR PI
num/den =
174.1251 s + 115.2
-----------------------------------------------------1.5115 s^4 + 9.069 s^3 + 18.138 s^2 + 55.6233 s + 28.8
ENCONTRNDO SINTONIZACION DEL CONTROLADOR PID
GANANCIA DEL CONTROLADOR P
Kp=0.6*Kv
Kp =
76.8000
TIEMPO DE INTEGRACION
ti=Pv/2
ti =
0.9069
GANANCIA DEL CONTROLADOR INTEGRAL
Ki=Kp/ti
Ki =
84.6839
TIEMPO DE DERIVACION
td=Pv/8
td =
0.2267
GANANCIA DEL CONTROLADOR DERIVATIV0
Kd=Kp*td
Kd =
17.4125
GANANCIA DEL CONTROLADOR PID
num/den =
15.7914 s^2 + 69.6501 s + 76.8
-----------------------------0.9069 s
FUNCION DE TRANSFERENCIA CON GANANCIA DEL CONTROLADOR PID
num/den =
31.5829 s^2 + 139.3001 s + 153.6
-------------------------------------------------------0.9069 s^4 + 5.4414 s^3 + 18.7785 s^2 + 42.0802 s + 38.4
[Practica 2]
CDIGO FUENTE (.M)
clc;
%PRIMER METODO DE ZIEGLER NICHOLS GANACIA MAXIMA
J=0.01;
b=0.01;
k=0.016;
bo=8.6066*(10^-3);
La=0.01;
Ra=0.05;
Kt=0.0232379;
disp('ENCONTRANDO EL VALOR DE LA FUNCION DE
TRANSFERENCIA');
num=[0 0 0 (Kt/(J*La))*bo];
den=[1 ((b/J)+(Ra/La)) ((k/J)+((Ra*b)/(J*La))+((Kt^2)/(J*La)))
(k*Ra)/(J*La)];
printsys(num,den);
Contina Cdigo
[nums,dens]=series(num,den,num1,den1);
disp('ENCONTRANDO EL VALOR DE LOS BLOQUES EN SERIE');
printsys(nums,dens);
[numr,denr]=feedback(nums,dens,num2,den2);
disp('ENCONTRANDO EL VALOR DE LA RETROALIMENTACION');
printsys(numr,denr);
figure (1)
step(numr,denr);
grid;
title('Respuesta del sistema con una Kv=128 ante un escalon unitario');
ylabel('c(t)');
Contina Cdigo
grid;
title('RESPUESTA DEL SISTEMA CON UN CONTROLADOR P ANTE UN ESCALON
UNITARIO');
[Practica 2]
ylabel('c(t)');
Contina Cdigo
Contina Cdigo
[Practica 2]
step(numr3,denr3);
grid;
title('RESPUESTA DEL SISTEMA CON UN CONTROLADOR PID ANTE
UN ESCALON UNITARIO');
ylabel('c(t)');
figure(5)
hold on;
step(numr1,denr1);
step(numr2,denr2);
step(numr3,denr3);
grid;
title('COMPARACION ENTRE LAS ACCIONES DE CONTROL P, PI, PID');
ylabel('c(t)');
legend('ACCION DE CONTROL P','ACCION DE CONTROL PI','ACCION
DE CONTROL PID');
CASO 1 MATLAB
"RESPUESTA CON KV=128"
c(t)
0
0
10
15
20
25
Time (sec)
c(t)
3
2.5
2
1.5
1
0.5
0
8
Time (sec)
10
12
14
[Practica 2]
c(t)
0
0
10
15
20
25
Time (sec)
c(t)
4
Time (sec)
c(t)
0
0
10
15
Time (sec)
CASO 1 SIMULINK
"RESPUESTA CON KV=128"
20
25
[Practica 2]
[Practica 2]
[Practica 2]
B) OBTENENGA
CAPACITOR
R
1k
L
200H
C
1000F
Donde:
MODELANDO EL SISTEMA
NORMALIZANDO
VC
EN EL
L=
0.1800
bmax =
5
m=
4
Para controlador tipo Proporcional (P)
Kp
Ti
Ki
Td
Kd
6.94
Inf
0.0
0.0
0.0
[Practica 2]
Ti
Ki
6.25
0.60
10.42
Td
Kd
0.0
0.0
Ti
Ki
8.33
0.36
23.15
Td
Kd
0.09
0.75
clc
R=1000;
C=1000*10^(-6);
L=200;
a=[0.18 1.43];
b=[0 1];
num=[1/(L*C)];
den=[1 R/L 1/(L*C)];
fprintf('\n F. de T. del Sistema RLC \n');
printsys(num,den)
hold on
step(num,den)
plot(a,b,'r')
plot(0.8131,0.5065,'ro')
grid
title('Respuesta Original del Sistema RLC')
ylabel('Vc(Volts)')
text(1.05,0.525,'Pto. de Inflexion')
hold off
fprintf('\n Datos para la sintonizacion de controladores\n')
T=1.25
L=0.18
bmax=5
m=bmax/T
fprintf('\n Para controlador tipo Proporcional (P)\n')
Contina Cdigo
[Practica 2]
kp=T/L;
Ti=inf;
Td=0;
ki=0;
kd=0;
figure(2)
step(num3,den3)
grid
title('Respuesta de sintonizacion con controlador P')
ylabel('Vc(Volts)')
kp2=(0.9*T)/L;
Ti2=L/0.3;
ki2=kp2/Ti2;
Td2=0;
kd2=0;
Contina Cdigo
num4=[kp2*Ti2 kp2];
den4=[Ti2 0];
[num5,den5]=series(num,den,num4,den4);
[num6,den6]=cloop(num5,den5);
printsys(num6,den6)
figure(3)
step(num6,den6)
grid
title('Respuesta de sintonizacion con controlador PI')
ylabel('Vc(Volts)')
kp3=(1.2*T)/L;
Ti3=2*L;
ki3=kp3/Ti3;
Td3=0.5*L;
kd3=kp3*Td3;
Contina Cdigo
fprintf('\n\t\t Kp \t\t Ti \t\t Ki \t\t Td \t\t Kd \n')
fprintf('\n\t\t %.2f \t\t %.2f \t\t %.2f \t\t %.2f \t\t %.2f \n',kp3,Ti3,ki3,Td3,kd3)
[Practica 2]
s=tf('s');
t=0:0.05:3.5;
Gsla=5/((s^2)+(5*s)+5);
Gc=kp3*(1+(1/(Ti3*s))+(Td3*s));
Gslc=Gc*Gsla/(1+Gc*Gsla)
figure(4)
step(Gslc,t)
grid
title('Respuesta de sintonizacion con controlador PID')
ylabel('Vc(Volts)')
figure(5)
hold on
step(num3,den3)
step(num6,den6)
step(Gslc,t)
grid
title('Comparacion entre las respuestas sintonizadas de los controladores P, PI y
PID')
ylabel('Vc(Volts)')
legend('P','PI','PID')
hold off
figure(6)
subplot(2,2,1)
step(num3,den3)
Contina Cdigo
grid
title('Respuesta de sintonizacion con controlador P')
ylabel('Vc(Volts)')
subplot(2,2,2)
step(num6,den6)
grid
title('Respuesta de sintonizacion con controlador PI')
ylabel('Vc(Volts)')
subplot(2,2,3)
step(Gslc,t)
grid
title('Respuesta de sintonizacion con controlador PID')
ylabel('Vc(Volts)')
subplot(2,2,4)
hold on
step(num3,den3)
step(num6,den6)
step(Gslc,t)
grid
title('Comparacion entre las respuestas sintonizadas de los controladores P, PI y
PID')
ylabel('Vc(Volts)')
legend('P','PI','PID')
hold off
pause
clc
[Practica 2]
CASO 2 MATLAB
"RESPUESTA EN LAZO ABIERTO DEL SISTEMA RLC"
Vc(Volts)
0.6
Pto. de Inflexion
0.5
0.4
0.3
0.2
0.1
0
Time (seconds)
1.2
Vc(Volts)
0.8
0.6
0.4
0.2
0.5
1.5
Time (seconds)
2.5
1.2
Vc(Volts)
0.8
0.6
0.4
0.2
0.5
1.5
2.5
3.5
Time (seconds)
1.2
Vc(Volts)
0.8
0.6
0.4
0.2
0.5
1.5
Time (seconds)
2.5
3.5
[Practica 2]
PID
Vc(Volts)
0.8
0.6
0.4
0.2
0.5
1.5
2.5
3.5
Time (seconds)
0.5
Vc(Volts)
Vc(Volts)
0.5
1.5
0.5
2.5
Time (seconds)
Time (seconds)
Vc(Volts)
Vc(Volts)
0.5
Time (seconds)
PI
PID
0.5
Time (seconds)
CASO 2 SIMULINK
"RESPUESTA EN LAZO ABIERTO DEL SISTEMA RLC"
[Practica 2]
[Practica 2]
CASO 2 PROTEUS
CONTROLADOR P CON AMPLIFICADORES OPERACIONALES MAS CIRCUITO RLC
[Practica 2]
CONTROLADOR PI
[Practica 2]
Por ltimo el controlador proporcional integral derivativo (PID) nos entrega una
grafica con las menores oscilaciones de los tres controladores y un tiempo transitorio
mucho ms rpido que los otros dos y esto se puede observar claramente al
comparar las tres graficas, este controlador tiene las ganancias de los controladores
P,I y D por lo tanto, primero entra el control P para llevar la respuesta al set point,
despus entra el control D ya que este responde a la rapidez del cambio del error por
lo que se anticipa al error y realiza una correccin importante gracias a esto el
sistema presenta menos oscilaciones y por ultimo entra el controlador I el cual se
encarga de agregar los polos al sistema para que el error en estado estable sea cero.
[Practica 2]
accin de control PID solo lo hace oscilar poco reduciendo su estado transitorio y
aumentando su estado estable.
Para terminar con el desarrollo de la practica se realizaron las simulaciones de los
circuitos en un simulador, y se llego a resultados muy cercanos a los valores dados
por matlab, sin embargo no son parecidos porque los valores de las resistencias
variables no pueden darse exactamente como las necesitamos para obtener las
ganancias requeridas, pero si podemos concluir que se obtuvieron graficas casi
idnticas a las de matlab.
[Practica 2]