Hi Paul,
Thanks for your reply. I implemented your suggestion, but now the code is unable to write into holding register.
code I used:
#include <SPI.h>
#include <Ethernet.h>
#include <ArduinoRS485.h>
#include <ArduinoModbus.h>
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
IPAddress...