Consumption and solar production calculation from the modbus data

I have question how to calculate correctly consumption and solar production from the modbus data. I have problem, that my results are different from the VRM results.
It’s 1phase system with MPPT and Fronius on the ACIN side of Multiplus.
So what I have (hope that’s all) :
AC IN1 to ACOUT (vebus 74)
AC IN1 to BAT (vebus 76)
BAT to AC IN1 (vebus 86)
BAT to AC OUT (vebus 90)
PV yield today (solarcharger 784)
PV inverter energy (pvinverter 1046)
Grid sum in (grid 2634)
Grid sum out (grid 2636)

So export to the grid is clear, it’s value 2636. But in the VRM is also Battery to grid - how to calculate ?
direct use from the grid is value 2634 - it’s ok

But solar calculation is much unclear for me.
Complete solar produxtion is ok, it’s 784 + 1046
But how to calculate value To Battery (i tried 76+784, but value is different from the VRM) and Direct use which is in the VRM ?
And also not clear how to calculate consumption from the battery - i tried use 86+90, but value is different from the value in the VRM.

Do you know how calculation works ?
Thanks