HELP! Arduino Modbus Slave

Hello everyone, I need help from the experts.

I am currently working on creating a temperature and humidity sensor using the HDC1080 module, and the Arduino Nano.

I want the values read by the temperature and humidity sensor to be transmitted via Modbus using a UART TTL to RS485 module (UART TTL to RS485 Module Two Way Converter - Digiware Store) so that they can be read with the Modbus Poll application.

I am confused because in this library (ModbusRTUSlave/examples/ModbusRTUSlaveExample/ModbusRTUSlaveExample.ino at main · CMB27/ModbusRTUSlave · GitHub), there is no command for "write single holding register".

Perhaps there are experts here who can help explain to me how to send data that can be read by the Modbus Poll application?

Could you please explain to me how to achieve this?

Thank you.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.