Hello Community Members
I am calculating energy in my application. It is cumulative operation with Active Power and time. But after energy register reaches some big value, anymore cumulative operation does not occur that's why energy register remains always same.
For example in below line, all variables are float variable. I know adding big value float variable and small value variable gives same value with first value. But in my energy register I should be capable to do cumulative operation.
Energy.Active.Feeder1_Import += P.Feeder1_TOT * ENERGY_CONSTANT;
Lets make Energy.Active.Feeder1_Import = 100000.0kWh and instantenous energy value(P.Feeder1_TOT * ENERGY_CONSTANT) is 0.008kWh. When I add
100000.0kWh + 0.008kWh = 100000.0kWh
How can I overcome this problem in such applications ?
Regards
Serkan