I have an UNO with the SunFounder Ethernet Shield W5100 and using the ArduinoModBus library. The problem I am having is the UNO locks up when the code runs modbusTCPServer.accept(client);.
Thanks for the Code, I will spend some time and dissect it at a later date. Currently I have the code working by downgrading the Arduino IDE to 1.6.13.