#### Vince31

##### Active Member

If you want to calculate the cell imbalance for the whole battery pack then you have to do it a different way (according to the way MG do it).Thanks for the work you have done on this as well much appreciated. I have posted in another thread (Torque Pro) and have found that if you want to display the same temp as the car does then you need to select "22bb05" row 25 in your PID list. if I use Ambient Temperature (22e01b) row 29 it displays no value. I have also created a "Cell Variance" virtual PID as @Vince31 did. For anyone who is interested here is the Equation I used. Note my "Long Names" are slightly different to yours.

View attachment 3305

Torque Dashboard

View attachment 3306

First you need to calculate the delta voltage for each CMU pack 1 to 9, this can be done as follows for CMU1, then just do the same for the rest up to CMU9:

CMU1 Delta, 22b001, equation INT16(C)/2000 - INT16(A:B)/2000, header 781

CMU2 is 22b009, CMU3 is 011, CMU4 is 019,CMU5 is 021, CMU6 is 029, CMU7 is 0a3, CMU8 is 0ab, CMU9 is 0b3.

Then you need to create a new virtual PID to add up all of these and then divide by 9 to give the average delta for the pack. MG say this is the value used to determine the pack imbalance, if its over 0.100 v then the light will come on the dash telling you to slow charge. Mine is 0.020 v.

As you will see its a different value to the simple Cell Delta calculation, which means nothing really.

The battery Charge/Discharge rate is also a simple calculation using Battery Volts x Amps as follows:

(VAL{MG_HV_Battery_Volts}

*VAL{MG_HV_Current}/1000)*-1

Substitute your own PIDs into the equation above. the minus 1 at the end converts the display so that it correctly shows minus values when discharging and positive values when charging. Works great when sat on a Rapid charger.