blob: 663248075adc9226cd3423a09a3da870aa6505b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//Example
clc
syms K taud s tau t
G=K*exp(-taud*s)/(tau*s+1)
//we can use an approximation that
printf("exp(-taud*s)=(2-taud*s/2)/(2+taud*s)\n")
Gm=K*(2-taud*s/2)/((2+taud*s)*(tau*s+1));//here Gm=G
//For this model
Gma=(2-taud*s/2)/(2+taud*s);
Gmm=K/(tau*s+1);
Gm=Gma*Gmm;
GI=1/Gmm
f=1/(l*s+1);
//In order to be able to implement this transfer function let f(s)=1/(l*s+1)
//Thus IMC becomes
GI=f/Gmm
Gc=GI/(1-GI*Gm)
//This may be reduced algebraically to the form given by Eq.(18.21) with
printf("Kc=(2*tau+taud)/(2*l+taud)\n")
printf("tauI=tau+taud/2\n")
printf("tau*taud)/(2*tau+taud)\n")
printf("tau1=l*taud/2*(l+taud)\n")
|