Hello my friends, I'm trying to understand the software for TIDA-01606 bidirectional inverter/PFC but i have something that i didn't understand.
Why in the current loop they use Grid current instead of inverter current?
// In function TINV_readCurrentAndVoltageSignals() Line: 404 (in tinv.h)
TINV_iInv_A_sensed_pu = TINV_iGrid_A_sensed_pu;
TINV_iInv_B_sensed_pu = TINV_iGrid_B_sensed_pu;
TINV_iInv_C_sensed_pu = TINV_iGrid_C_sensed_pu;
.
.
.
//Then, the abc2dq0 in function TINV_runTransformOnSensedSignals()
//Line: 578 (in tinv.h)
ABC_DQ0_POS_run(&TINV_iInv_dq0_pos,
TINV_iInv_A_sensed_pu,
TINV_iInv_B_sensed_pu,
TINV_iInv_C_sensed_pu,
TINV_sine, TINV_cosine);
.
.
.
//Current loop in function TINV_runCurrentLoop() Line: 631 (in tinv.h)
TINV_gi_id_out =
TINV_GI_RUN(&TINV_gi_id, TINV_idRef_pu, TINV_iInv_dq0_pos.d);
TINV_gi_iq_out =
TINV_GI_RUN(&TINV_gi_iq, TINV_iqRef_pu, TINV_iInv_dq0_pos.q);
All the researches that I read and MATLAB simulation models deal with inverter current not grid current. Can anyone explain this to me?
Thank you in advance