This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: reactive power estimation

Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

Tool/software: Code Composer Studio

Dear TI,

I am running TI C2000 solar micro inverter using F28035. The source code has a function of calculating RMS power P_rms. Would you please help me understand the power calculation algorithm and the exact equation that has been used? Also, Is it possible to calculate and express the reactive power "Q", if possible what would be the proper coding to do that?

Thank you so much for your time and support.

Regards,

Hadi

  • DPLib.pdf

    This is explained in DPLib documentation. You need to install controlSUITE and then find this flie in DP lib. The module name in the library is Sine Analyzer. I am attaching a copy of this here. Pls review the documentation of Sine Analyzer module. That is all we have now at this time.

    Shamim

  • Dear Sir,

    Thank you so much for your response. I carefully read the document you attached and found it very helpful to understand the algorithm behind the sine wave analyzing. This explained how RMS, Avg, and frequency of a sine wave are calculated but unfortunately, no power calculation is mentioned. 

    Allow me to explain more about my query, according to the main.c file, I found that the angle value is calculated for the Phase-Locked Loop operation. For example, the open-loop check has a function of "rgen1.Angle" to check the angle. Is this the angle that is used to calculate the rms power which is in general {Vrms*Irms*cos(angle)}?

    In the main.c file, I found the equation used to calculate Prms is Gui_Prms=(sine_mains.prms*k_prms) >>15;   k_prms=187624; \\ k_prms=(7*418/511)*32767.

    what function "sine_mains.prms" contain? and how is the gain value "k_prms" calculated here?

    Thank you again for your time and support. Please let me know if you have any questions for me.

    Regards,

    Hadi

  •  Is this the angle that is used to calculate the rms power which is in general {Vrms*Irms*cos(angle)}?

    YES.

    In the main.c file, I found the equation used to calculate Prms is Gui_Prms=(sine_mains.prms*k_prms) >>15;   k_prms=187624; \\ k_prms=(7*418/511)*32767.

    what function "sine_mains.prms" contain? and how is the gain value "k_prms" calculated here?

    THIS IS THE PER UNIT POWER TO ABSOLUTE POWER CONVERSION FACTOR. This will depend on the sensing gain of the voltage and current sensing circuit. 

    Shamim

  • Dear Sir,

    Thank you so much for the response. Is it possible to apply {Vrms*Irms*sin(angle)} equation in order to calculate the reactive power? If yes, how to implement this equation in the main.c file. 

    Thank you.

    Regards,

    Hadi

  • Please see the example in C2000Ware. You have to install it first.

    C:\TI\c2000\C2000Ware_2_00_00_03\libraries\math\CLAmath\c28\examples\sin\ccs

    Shamim