fs=100000; //16Khz
fz1=2000;
fz2=(fs/3.14);
fp2=(fs/3.14);
fp1=0;
Kdc=6000;
pi=3.14;
// Coefficient update — using poles and zeroes
wz1 = 2*pi*fz1;
wz2 = 2*pi*fz2;
wp1 = 0; //Integrator pole at f=0
wp2 = 2*pi*fp2;
wr = sqrt(wz1*wz2);
Q = wz1*wz2/((wz1+wz2)*wr);
c2 = Kdc/(wr*wr);
c1 = Kdc/(Q*wr);
c0 = Kdc;
d2 = 1/wp2;
d1 = 1;
d0 = 0;
den = 4*d2*fs*fs + 2*d1*fs + d0;
B0_I = (4*c2*fs*fs + 2*c1*fs + c0)/den;
B1_I = (-8*c2*fs*fs + 2*c0)/den;
B2_I = (4*c2*fs*fs – 2*c1*fs + c0)/den;
A1_I = ((-8*d2*fs*fs + 2*d0)/den)*-1.0;
A2_I = ((4*d2*fs*fs – 2*d1*fs + d0)/den)*-1.0;
CNTL_2P2Z_CLACoefStruct2.b2 =B2_I; // B2
CNTL_2P2Z_CLACoefStruct2.b1 =B1_I; // B1
CNTL_2P2Z_CLACoefStruct2.b0 =B0_I; // B0
CNTL_2P2Z_CLACoefStruct2.a2 =A2_I; // A2
CNTL_2P2Z_CLACoefStruct2.a1 =A1_I; // A1 CNTL_2P2Z_CLACoefStruct2.max =Dmax_I;//Clamp Hi CNTL_2P2Z_CLACoefStruct2.min =0.0; //Clamp Min
请教一下,二阶系统的系数是怎么确定的??
11 12:
LZ知道如何确定了吗
fs=100000; //16Khz
fz1=2000;
fz2=(fs/3.14);
fp2=(fs/3.14);
fp1=0;
Kdc=6000;
pi=3.14;
// Coefficient update — using poles and zeroes
wz1 = 2*pi*fz1;
wz2 = 2*pi*fz2;
wp1 = 0; //Integrator pole at f=0
wp2 = 2*pi*fp2;
wr = sqrt(wz1*wz2);
Q = wz1*wz2/((wz1+wz2)*wr);
c2 = Kdc/(wr*wr);
c1 = Kdc/(Q*wr);
c0 = Kdc;
d2 = 1/wp2;
d1 = 1;
d0 = 0;
den = 4*d2*fs*fs + 2*d1*fs + d0;
B0_I = (4*c2*fs*fs + 2*c1*fs + c0)/den;
B1_I = (-8*c2*fs*fs + 2*c0)/den;
B2_I = (4*c2*fs*fs – 2*c1*fs + c0)/den;
A1_I = ((-8*d2*fs*fs + 2*d0)/den)*-1.0;
A2_I = ((4*d2*fs*fs – 2*d1*fs + d0)/den)*-1.0;
CNTL_2P2Z_CLACoefStruct2.b2 =B2_I; // B2
CNTL_2P2Z_CLACoefStruct2.b1 =B1_I; // B1
CNTL_2P2Z_CLACoefStruct2.b0 =B0_I; // B0
CNTL_2P2Z_CLACoefStruct2.a2 =A2_I; // A2
CNTL_2P2Z_CLACoefStruct2.a1 =A1_I; // A1 CNTL_2P2Z_CLACoefStruct2.max =Dmax_I;//Clamp Hi CNTL_2P2Z_CLACoefStruct2.min =0.0; //Clamp Min
请教一下,二阶系统的系数是怎么确定的??
ge xijie:
回复 11 12:
求教,
TI 的PFC+ACI套件,实测发现在交流220输入,直流390V输出时,PF值只有80%,有没有好的解决办法?
如果调整PID系数的话,是只调整电流环还是要电流环电压环一起调整?有没有参考的把参数?
谢谢