Hi,
I am an embedded software developer. Now developing solar inverter using "TMS320F28069" microcontroller.
I installed ControlSUITE in my PC and studied example project of "High Voltage Solar DC/AC Inverter Kit".
This project folder name is "SolarHv_DCAC_PiccoloB_Rev_02".
I have one doubt when i am studying this project is that how can we calculate coefficients of 2-pole-2-zeo control system?
In the project coefficients are directly initialized with values, please let me know how can we calculate those values.
some part of the code is given below:
/********************************************************************************************************************/
/* File name : SolarHv_DCAC-main.c
/********************************************************************************************************************/
//Voltage loop
CNTL_2P2Z_CoefStruct1.b2 = _IQ26(-0.3682);
CNTL_2P2Z_CoefStruct1.b1 = _IQ26(0.01121);
CNTL_2P2Z_CoefStruct1.b0 = _IQ26(0.3794);
CNTL_2P2Z_CoefStruct1.a2= _IQ26(-0.869);
CNTL_2P2Z_CoefStruct1.a1= _IQ26(1.869);
CNTL_2P2Z_CoefStruct1.max = _IQ24(0.0); //4A
CNTL_2P2Z_CoefStruct1.min = _IQ24(-0.4);
//Current loop for 52e-6 sample time
CNTL_2P2Z_CoefStruct2.b2 = _IQ26(-0.3938);
CNTL_2P2Z_CoefStruct2.b1 = _IQ26(0.1314);
CNTL_2P2Z_CoefStruct2.b0 = _IQ26(0.5253);
CNTL_2P2Z_CoefStruct2.a2= _IQ26(-0.01);
CNTL_2P2Z_CoefStruct2.a1= _IQ26(1.01);
CNTL_2P2Z_CoefStruct2.max = _IQ24(0.4);
CNTL_2P2Z_CoefStruct2.min = _IQ24(-0.4); //400
//Notch filter for 60Hz system, sample rate 416e-6s
CNTL_2P2Z_CoefStruct3.b2 = _IQ26(0.9);
CNTL_2P2Z_CoefStruct3.b1 = _IQ26(-1.712);
CNTL_2P2Z_CoefStruct3.b0 = _IQ26(0.9);
CNTL_2P2Z_CoefStruct3.a2= _IQ26(-0.8);
CNTL_2P2Z_CoefStruct3.a1= _IQ26(1.712);
CNTL_2P2Z_CoefStruct3.max = _IQ24(0.99); // rad
CNTL_2P2Z_CoefStruct3.min = _IQ24(-0.99); // rad
//PLL controller , sample rate 416e-6
CNTL_2P2Z_CoefStruct4.b2 = _IQ26(-0.01723);
CNTL_2P2Z_CoefStruct4.b1 = _IQ26(0.0004355);
CNTL_2P2Z_CoefStruct4.b0 = _IQ26(0.01767);
CNTL_2P2Z_CoefStruct4.a2= _IQ26(-0.864);
CNTL_2P2Z_CoefStruct4.a1= _IQ26(1.864);
CNTL_2P2Z_CoefStruct4.max = _IQ24(0.5); // 50Hz
CNTL_2P2Z_CoefStruct4.min = _IQ24(-0.5); // -50Hz
/****************************************************************************************************************/