Use Arduino as slave for modbus protocol

Hi
I'm trying to simulate a plc using Arduino. In particular I want to communicate with Arduino with my pc using modbus tpc and my pc would be the master and Arduino a slave. It is possible this approach. If yes can someone suggest me a tutorial or examples. In particular I want run the functions read and write registers or coils from my pc using node red and I would like Arduino (slave) return the answer. Thank you in advance

I thought that there was an example sketch provided as part of the Arduino Modbus library that showed how to be a slave device.

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