Other Parts Discussed in Thread: CONTROLSUITE
Tool/software: Code Composer Studio
i designed a three phase pll
like this
valpha= ((0.6667*va1)-0.3333*(vb1-vc1));
vbeta= (1.154*(vb1-vc1));
vd= (valpha*cos(theta))+(vbeta*sin(theta));
vq= -(valpha*sin(theta))+(vbeta*cos(theta));
error1= vqref-vq;
w=(Kp*error1)+((Ki)*(error1-pre_error));
pre_error = error1;
error2=wff+w;
f=error2/(6.28);
theta = theta0+((Kp1+Ki1)*error2)-((Ki1)*(pre_error2));
pre_error2 = error2;
if(theta<=0)
{
theta=0;
}
if(theta>=6.28)
{
theta=0;
}
theta0=theta;
is there any wrong in it?
because it's not getting synchronized..