Modbus Device Register Mapping

66 views
Skip to first unread message

Moritz Vogt

unread,
Nov 8, 2022, 5:44:34 AM11/8/22
to pymodbus
Hello, 

I´m trying to build an FastAPI Python App where I can read data from different Modbus Slave Device´s (Mostly Inverters). I managed to read the data from the inverter. 

I have following Modbus Interface Definitions for the Inverter:

Is there a clean way to map the register data from the device to a internal variable.
After the Mapping there should be a Object which contains following data:
  • Name of the register.
  • Type of the register.
  • Address of the register.
  • Value  of the register.
  • Unit where the register comes from.
I there a clean way to do it by code or should it be done with an csv file where the definitions are mapped?



Reply all
Reply to author
Forward
0 new messages