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?