SolarEdge Modbus Registers and Current Power

Hey all,

I’m wondering how SolarEdge calculate the self consumption, consumption, import and export of power value based on the I_AC_Power, M_AC_Power, M_AC_Power_A, B and C modbus registers.

Production is obvously easy enough, but nailing the other values escapes me for the moment.

Cheers,
Paul