Read energy-export data via Modbus TCP

Hi guys,
has anybody experience with Modbus TCP coding?
We have Fronius Inverter connected with Fronius Smart-Meter via Modbus RTU and I want to read export-energy data from Smart-meter device using Modbus TCP interface which is available in Fronius inverter.

Is this possible? how should I distinguish between registers of Smart-Meter and registers of Inverter?

Thank you a lot for your advice.

I found solution… Unit-ID needs to be set to 240-242 when reading data from Smart-Meter.