CMB27 / ModbusRTUSlave

This is an Arduino library that implements the slave/server logic of the Modbus RTU protocol.
MIT License
58 stars 14 forks source link

Answer delay config parameter #6

Closed pr4rt0r closed 1 year ago

pr4rt0r commented 2 years ago

Could you add a configuration parameter - response delay? The first byte of the response is lost periodicallly.

CMB27 commented 2 years ago

Okay, feature implemented. Documentation can be found in the [wiki](https://github.com/CMB27/ModbusRTUSlave/wiki/ModbusRTUSlave()). I have also added an example program with RS-485, which does include the response delay feature.
I have not actually tested the feature yet. Please let me know how it works out. I will leave the issue open until you let me know that the feature works, or I have tested it myself.
Out of curiosity, what hardware are you having an Arduino talk to? It seems to be a little cantankerous.

pr4rt0r commented 2 years ago

Thank you very much!!! I can't test right now, unfortunately. It was an arduino nano clone on built-in serial (pin1, 2), 232-485 "arduino" module, moxa 1150 and PC.

pr4rt0r commented 1 year ago

Tested successfully