Hello. I am expert in PLC/SCADA/Industrial Network, C/C++, ....
I can do your job well.
We can create a class ModbusMaster with functions as Config, Init ReadBit, ReadRegister[INT/REAL/...], WriteBit, WriteRegister[INT/REAL/...], ...
You can add this class into your project and use it, as a library for Modbus Master.
Thank.