07-16-2019 12:55 PM - edited 07-16-2019 12:57 PM
What we are trying to say is you need to RTFM and learn how the data is stored and scaled in your meter.
Once you know how the data is stored and how to convert it to a "real value" we can probably help you with the code.
We don't know anything about your device so there is really nothing we can do besides give you very general advice like:
Most times obtaining accurate measurements through MODBUS you have to combine several registers and maybe multiply by a scaling factor to get the actual value.
But what registers, how many, and what scaling varies from device to device so there is no one right answer.