Justo to try:
- You could use mb2hal with debug settings to see the errors.
- here is an exambple of connection using Arduino Mega 2560 R3:
github.com/LinuxCNC/linuxcnc/tree/master...omps/mb2hal/examples
- Check this setting:
#MB_RESPONSE_TIMEOUT_MS is a high number, because Arduino fails to respond fast
#to the 1st request. If the first request is TIMED OUT, all next requests will
#be TIMED OUT again. I don't know if it is a Arduino or Modbusino problem.
#If the 1st request is succesful, tipical next responses are in the 10 to 30 ms order.
MB_RESPONSE_TIMEOUT_MS=1200
MB_BYTE_TIMEOUT_MS=100