LiamWhales
Standard Member
Hi everyone, I put together the original list of PID's for the MG5 and yeah there was an issue with the SoC. The difference was down to the buffers at each and of the battery so the reported SoC was the actual SoC of the battery rather than what is reported, hence it only going up to 97% when the car said 100% (3% buffeR) but I've managed to now correct for this.
!MG_12V_V,12V_V,220112,A*0.1,0,50,V,7E3
!MG_Batt_BusV,BattBV,22B041,INT16(A:B)*0.25,0,1000,V,7E5
!MG_Batt_Cell_Delta,CellD,,(val{!MG_Batt_CellV_Max}-val{!MG_Batt_CellV_Min})*1000,0,1000,mV,
!MG_Batt_CellV_Max,CellV_Max,22B058,INT16(A:B)*0.001,0,65,V,7E5
!MG_Batt_CellV_Min,CellV_Min,22B059,INT16(A:B)*0.001,0,65,V,7E5
!MG_Batt_Cool_Temp,BattCT,22B05C,(A/2)-40,-40,88,C,7E5
!MG_Batt_Resistance,BattR,22B045,INT16(A:B)*0.0001,0,100,Ω,7E5
!MG_Batt_Temp,BattT,,(val{!MG_Batt_Temp_High}+val{!MG_Batt_Temp_Low})/2,-40,88,°C,
!MG_Batt_Temp_High,BattTH,22B056,((A/2)-40),-40,88,°C,7E5
!MG_Batt_Temp_Low,BattTL,22B057,((A/2)-40),-40,88,°C,7E5
!MG_BattAmp,BattA,22B043,((INT16(A:B)*0.025)-1000),-1000,638.4,A,7E5
!MG_BattPower,BattP,,val{!MG_BattAmp}*val{!MG_BattVolt}/1000,-200,200,kw,
!MG_BattVolt,BattV,22B042,INT16(A:B)*0.25,0,16384,V,7E5
!MG_Charger,Charger,22B71B,A,0,10,,7E3
!MG_Charging,CHG,22B048,BIT(A:1)+BIT(A:2),0,1,,7E5
!MG_DCDC_InAmp,DCDC_InA,22B581,(INT16(A:B)-32767)*0.1,-1000,1000,A,7E3
!MG_DCDC_InVolt,DCDC_InV,22B582,INT16(A:B)*0.1,-1000,1000,V,7E3
!MG_DCDC_OutAmp,DCDC_OutA,22B583,INT16(A:B)*0.1,-1000,1000,A,7E3
!MG_DCDC_OutVolt,DCDC_OutV,22B584,INT16(A:B)*0.1,-1000,1000,V,7E3
!MG_HV_On,HVOn,22B703,A,0,10,,7E3
!MG_Ignition,Ignit,22B18C,A,0,10,,7E3
!MG_Inverter_Temp,InverterTemp,22B026,(A-40),-40,88,°C,7E5
!MG_MaxCharge,MaxCharge,22B712,INT16(A:B)*0.1,0,200,kw,7E3
!MG_Motor_Coolant,Motor_Cool,22B309,(A-40),-40,88,°C,7E3
!MG_Motor_Speed,Motor_Speed,22B402,(INT16(A:B)-32767),-32767,32767,Rpm,7E3
!MG_Motor_Temp,Motor_Temp,22B405,(A-40),-40,88,°C,7E3
!MG_Motor_Torque,Motor_Torque,22B401,(INT16(A:B)-32767),-32767,32767,Nm,7E3
!MG_SoC,SoC,22B046,(INT16(A:B)-40)/9.3,0,100,%,7E5
!MG_SoH,SoH,22B061,INT16(A:B)*0.01,0,100,%,7E5
!MG_Speed,Speed,22BA00,INT16(A:B)*0.01-199.99,-200,200,kmph,7E3
!MG_12V_V,12V_V,220112,A*0.1,0,50,V,7E3
!MG_Batt_BusV,BattBV,22B041,INT16(A:B)*0.25,0,1000,V,7E5
!MG_Batt_Cell_Delta,CellD,,(val{!MG_Batt_CellV_Max}-val{!MG_Batt_CellV_Min})*1000,0,1000,mV,
!MG_Batt_CellV_Max,CellV_Max,22B058,INT16(A:B)*0.001,0,65,V,7E5
!MG_Batt_CellV_Min,CellV_Min,22B059,INT16(A:B)*0.001,0,65,V,7E5
!MG_Batt_Cool_Temp,BattCT,22B05C,(A/2)-40,-40,88,C,7E5
!MG_Batt_Resistance,BattR,22B045,INT16(A:B)*0.0001,0,100,Ω,7E5
!MG_Batt_Temp,BattT,,(val{!MG_Batt_Temp_High}+val{!MG_Batt_Temp_Low})/2,-40,88,°C,
!MG_Batt_Temp_High,BattTH,22B056,((A/2)-40),-40,88,°C,7E5
!MG_Batt_Temp_Low,BattTL,22B057,((A/2)-40),-40,88,°C,7E5
!MG_BattAmp,BattA,22B043,((INT16(A:B)*0.025)-1000),-1000,638.4,A,7E5
!MG_BattPower,BattP,,val{!MG_BattAmp}*val{!MG_BattVolt}/1000,-200,200,kw,
!MG_BattVolt,BattV,22B042,INT16(A:B)*0.25,0,16384,V,7E5
!MG_Charger,Charger,22B71B,A,0,10,,7E3
!MG_Charging,CHG,22B048,BIT(A:1)+BIT(A:2),0,1,,7E5
!MG_DCDC_InAmp,DCDC_InA,22B581,(INT16(A:B)-32767)*0.1,-1000,1000,A,7E3
!MG_DCDC_InVolt,DCDC_InV,22B582,INT16(A:B)*0.1,-1000,1000,V,7E3
!MG_DCDC_OutAmp,DCDC_OutA,22B583,INT16(A:B)*0.1,-1000,1000,A,7E3
!MG_DCDC_OutVolt,DCDC_OutV,22B584,INT16(A:B)*0.1,-1000,1000,V,7E3
!MG_HV_On,HVOn,22B703,A,0,10,,7E3
!MG_Ignition,Ignit,22B18C,A,0,10,,7E3
!MG_Inverter_Temp,InverterTemp,22B026,(A-40),-40,88,°C,7E5
!MG_MaxCharge,MaxCharge,22B712,INT16(A:B)*0.1,0,200,kw,7E3
!MG_Motor_Coolant,Motor_Cool,22B309,(A-40),-40,88,°C,7E3
!MG_Motor_Speed,Motor_Speed,22B402,(INT16(A:B)-32767),-32767,32767,Rpm,7E3
!MG_Motor_Temp,Motor_Temp,22B405,(A-40),-40,88,°C,7E3
!MG_Motor_Torque,Motor_Torque,22B401,(INT16(A:B)-32767),-32767,32767,Nm,7E3
!MG_SoC,SoC,22B046,(INT16(A:B)-40)/9.3,0,100,%,7E5
!MG_SoH,SoH,22B061,INT16(A:B)*0.01,0,100,%,7E5
!MG_Speed,Speed,22BA00,INT16(A:B)*0.01-199.99,-200,200,kmph,7E3
Last edited: