More Related Content Similar to UJIAN KE 4 PENGENDALIAN PROSES Similar to UJIAN KE 4 PENGENDALIAN PROSES (20) UJIAN KE 4 PENGENDALIAN PROSES1. UJIAN KE 4 PENGENDALIAN PROSES TANGGAL 20 MEI 2017
Nama :Muhammad AriefNugraha
NRP : 142014066
Kelas: A
Kode : 4
No.1
Mencari nilai GH
CARA 1 MENGETIK LANGSUNG di command window
>> pembilangGc=[0.51]
pembilangGc=
0.5000 1.0000
>> penyebutGc=[0.50]
penyebutGc=
0.5000 0
>> sysGc=tf(pembilangGc,penyebutGc)
sysGc =
0.5 s + 1
4. sysG1 =
0.75 s + 1.5
------------------------------
0.0625 s^3 + 0.375 s^2 + 0.5 s
Continuous-timetransferfunction.
>> sysG2=series(sysG1,sysGp)
sysG2 =
0.225 s + 0.45
-------------------------------------------
0.09375 s^4 + 0.625 s^3 + 1.125 s^2 + 0.5 s
Continuous-timetransferfunction.
>> pembilangH=[1]
pembilangH=
1
5. >> penyebutH=[156]
penyebutH=
1 5 6
>> sysH=tf(pembilangH,penyebutH)
sysH =
1
-------------
s^2 + 5 s + 6
Continuous-timetransferfunction.
>> sysGH=series(sysG2,sysH)
sysGH =
0.225 s + 0.45
----------------------------------------------------------------
0.09375 s^6 + 1.094 s^5 + 4.813 s^4 + 9.875 s^3 + 9.25 s^2 + 3 s
Continuous-timetransferfunction.
6. CARA 2 DENGANMEMBUAT SCRIPT DENGANNAMA“mencariGH” LALU DI KETIK DI COMMAND
WINDOW
Scriptnya (Di editor)
a=[0.5 1]
b=[0.5 0]
sysG1=tf(a,b)
c=1.5
d=[0.125 0.75 1]
sysG2=tf(c,d)
e=0.3
f=[1.5 1]
sysG3=tf(e,f)
pemH=[1]
penyH=[1 5 6]
sysH=tf(pemH,penyH)
sysG=series(series(sysG1,sysG2),sysG3)
sysGH=series(sysG,sysH)
Di command Window
>>mencari GH
a =
0.5000 1.0000
b =
0.5000 0
sysG1 =
0.5 s + 1
---------
9. 1 5 6
sysH =
1
-------------
s^2 + 5 s + 6
Continuous-time transferfunction.
sysG =
0.225 s + 0.45
-------------------------------------------
0.09375 s^4 + 0.625 s^3 + 1.125 s^2 + 0.5 s
Continuous-time transferfunction.
sysGH =
0.225 s + 0.45
----------------------------------------------------------------
10. 0.09375 s^6 + 1.094 s^5 + 4.813 s^4 + 9.875 s^3 + 9.25 s^2 + 3 s
Continuous-time transferfunction.
>>
No 1.C
Di editor
t=0:0.3:60;
Kc=[0.01 0.015 0.02 0.03];
n=length(Kc);
% menghitung koefisien pembilang Gf
a=[0.5 1];
b=[0 0.45];
atas=conv(a,b);
% mencari koefisien penyebut Gf
c=[0 0.5 0]
d=[0.125 0.75 1];
e=[0 1.5 1];
bawah=conv(conv(c,d),e);
sysGf=tf(atas,bawah)
pembilangH=[0 1];
penyebutH=[1 5 6];
sysH=tf(pembilangH,penyebutH);
ii=1
while ii<=n;
sysG(ii)=Kc(ii)*sysGf;
sysGol(ii)=feedback(sysG(ii),sysH);
y(:,ii)=step(sysGol(ii),t);
ii=ii+1;
end
plot(t,y(:,1),'-',t,y(:,2),'o',t,y(:,3),'x',t,y(:,4),'.-')
legend('Kc=0.01','Kc=0.015','Kc=0.02','Kc=0.03',4)
xlabel('waktu(dtk)')
ylabel('output(y)')
grid
title ('Respon empat parameter kc terhadap sistem kontrol proses TK')
Di command window
>> ariefno1c
c =
11. 0 0.5000 0
sysGf=
0.225 s + 0.45
-------------------------------------------
0.09375 s^4 + 0.625 s^3 + 1.125 s^2 + 0.5 s
Continuous-time transferfunction.
ii =
1
13. e=[-9.5969 0];
atas1=conv(conv(a,b),c);
atas2=conv(d,e);
atas=conv(atas1,atas2);
a1=[1 0];
b1=[1 -1];
c1=[1 -0.7788];
c2=[1 -1.395];
d1=[1 -0.606];
bawah1=conv(c1,c2);
bawah2=conv(conv(a,b),bawah1);
bawah3=conv(d,e);
bawah=conv(bawah2,bawah3);
Ym=filter(atas,bawah,x);
ii=1;
while ii<=n
Yk(ii,:)=Kc(ii)*Ym;
ii=ii+1;
end
subplot(3,1,1),stem(k,Yk(1,:)),ylabel('output Kc=0.02');
subplot(3,1,2),stem(k,Yk(2,:)),ylabel('output Kc=0.05');
subplot(3,1,3),stem(k,Yk(3,:)),ylabel('output Kc=0.075');
Di command Window
>>ariefno2
Grafik
14. Nomor 3
Di editor
t=0:0.2:20
A=[1 1 0;0 -2 1;1 0.5 -2]
B=[1 0 0;0 -2 0;0 0 1]
C=[1 0 0;0 1 0;0 0 1]
D=[0 0 0;0 0 0;0 0 0]
[pembilang1 penyebut1]=ss2tf(A,B,C,D,1)
[pembilang2 penyebut2]=ss2tf(A,B,C,D,2)
[pembilang3 penyebut3]=ss2tf(A,B,C,D,3)
%
%pembuatan g11
pembilang11=[pembilang1(1,1) pembilang1(1,2) pembilang1(1,3)]
penyebut1=[penyebut1(1,1) penyebut1(1,2) penyebut1(1,3)]
15. sysg11=tf(pembilang11,penyebut1)
%
%pembuatan g21
pembilang21=[pembilang1(2,1) pembilang1(2,2) pembilang1(2,3)]
penyebut1=[penyebut1(1,1) penyebut1(1,2) penyebut1(1,3)]
sysg21=tf(pembilang21,penyebut1)
%
%pembuatan g31
pembilang31=[pembilang1(3,1) pembilang1(3,2) pembilang1(3,3)]
penyebut1=[penyebut1(1,1) penyebut1(1,2) penyebut1(1,3)]
sysg31=tf(pembilang31,penyebut1)
%
%pembuatan g12
pembilang12=[pembilang2(1,1) pembilang2(1,2) pembilang2(1,3)]
penyebut2=[penyebut2(1,1) penyebut2(1,2) penyebut2(1,3)]
sysg12=tf(pembilang12,penyebut1)
%
%pembuatan g22
pembilang22=[pembilang2(2,1) pembilang2(2,2) pembilang2(3,3)]
penyebut2=[penyebut2(1,1) penyebut2(1,2) penyebut2(1,3)]
sysg22=tf(pembilang22,penyebut2)
%
%pembuatan g32
pembilang32=[pembilang2(3,1) pembilang2(3,2) pembilang2(3,3)]
penyebut2=[penyebut2(1,1) penyebut2(1,2) penyebut2(1,3)]
sysg32=tf(pembilang32,penyebut2)
%
%pembuatan g13
pembilang13=[pembilang3(1,1) pembilang3(1,2) pembilang3(1,3)]
penyebut2=[penyebut2(1,1) penyebut2(1,2) penyebut2(1,3)]
sysg13=tf(pembilang13,penyebut2)
%
%pembuatan g23
pembilang23=[pembilang3(1,1) pembilang3(1,2) pembilang3(1,3)]
penyebut3=[penyebut2(1,1) penyebut3(1,2) penyebut3(1,3)]
sysg23=tf(pembilang23,penyebut3)
%
%pembuatan g33
pembilang33=[pembilang3(3,1) pembilang3(3,2) pembilang3(3,3)]
penyebut3=[penyebut3(1,1) penyebut3(1,2) penyebut3(1,3)]
sysg33=tf(pembilang33,penyebut3)
%MENCARI RESPON
x1=step(sysg11,t)
x2=step(sysg21,t)
x3=step(sysg31,t)
x4=step(sysg12,t)
x5=step(sysg22,t)
x6=step(sysg32,t)
x7=step(sysg13,t)
x8=step(sysg23,t)
x9=step(sysg33,t)
plot(t,x1,t,x2,t,x3,t,x4,t,x5,t,x6,t,x7,t,x8,t,x9)
legend('u1--x1','u1--x2','u1--x3','u2--x1','u2--x2','u2--x3','u3--x1','u3--
x2','u3--x3')
xlabel('waktu t')
ylabel('respons')
grid
16. Di command Window
>> ariefstatevariable
t =
Columns1 through 8
0 0.2000 0.4000 0.6000 0.8000 1.0000 1.2000 1.4000
Columns9 through 16
1.6000 1.8000 2.0000 2.2000 2.4000 2.6000 2.8000 3.0000
Columns17 through 24
3.2000 3.4000 3.6000 3.8000 4.0000 4.2000 4.4000 4.6000
Columns25 through 32
4.8000 5.0000 5.2000 5.4000 5.6000 5.8000 6.0000 6.2000
Columns33 through 40
6.4000 6.6000 6.8000 7.0000 7.2000 7.4000 7.6000 7.8000
17. Columns41 through 48
8.0000 8.2000 8.4000 8.6000 8.8000 9.0000 9.2000 9.4000
Columns49 through 56
9.6000 9.8000 10.0000 10.2000 10.4000 10.6000 10.8000 11.0000
Columns57 through 64
11.2000 11.4000 11.6000 11.8000 12.0000 12.2000 12.4000 12.6000
Columns65 through 72
12.8000 13.0000 13.2000 13.4000 13.6000 13.8000 14.0000 14.2000
Columns73 through 80
14.4000 14.6000 14.8000 15.0000 15.2000 15.4000 15.6000 15.8000
Columns81 through 88
16.0000 16.2000 16.4000 16.6000 16.8000 17.0000 17.2000 17.4000
18. Columns89 through 96
17.6000 17.8000 18.0000 18.2000 18.4000 18.6000 18.8000 19.0000
Columns97 through 101
19.2000 19.4000 19.6000 19.8000 20.0000
A =
1.0000 1.0000 0
0 -2.0000 1.0000
1.0000 0.5000 -2.0000
B =
1 0 0
0 -2 0
0 0 1
C =
19. 1 0 0
0 1 0
0 0 1
D =
0 0 0
0 0 0
0 0 0
pembilang1=
0 1.0000 4.0000 3.5000
0 0 0 1.0000
0 0 1.0000 2.0000
penyebut1=
1.0000 3.0000 -0.5000 -4.5000
pembilang2=
20. 0 0 -2.0000 -4.0000
0 -2.0000 -2.0000 4.0000
0 0 -1.0000 -1.0000
penyebut2=
1.0000 3.0000 -0.5000 -4.5000
pembilang3=
0 0 0 1
0 0 1 -1
0 1 1 -2
penyebut3=
1.0000 3.0000 -0.5000 -4.5000
pembilang11 =
21. 0 1 4
penyebut1=
1.0000 3.0000 -0.5000
sysg11 =
s + 4
---------------
s^2 + 3 s - 0.5
Continuous-time transferfunction.
pembilang21 =
0 0 0
penyebut1=
1.0000 3.0000 -0.5000
25. sysg32 =
-1
---------------
s^2 + 3 s - 0.5
Continuous-time transferfunction.
pembilang13 =
0 0 0
penyebut2=
1.0000 3.0000 -0.5000
sysg13 =
0
Continuous-time transferfunction.
26. pembilang23 =
0 0 0
penyebut3=
1.0000 3.0000 -0.5000
sysg23 =
0
Continuous-time transferfunction.
pembilang33 =
0 1 1
penyebut3=
27. 1.0000 3.0000 -0.5000
sysg33 =
s + 1
---------------
s^2 + 3 s - 0.5
Continuous-time transferfunction.
x1 =
0
0.2171
0.4601
0.7209
0.9954
1.2815
1.5784
1.8856
2.2032
2.5311