Hey everyone, first post here so feel free to let me know if I do anything wrong.
Im fairly new to the arduino world, more of a PLC guy. but I wanted to play with a few sensors and bring them over modbus to a scada host. I have a Arduino Uno with the W5100 ethernet shield.
Im having an issue where, a couple of seconds after i upload the program, or unplug and replug the ethernet cable, i can ping the device for about 5 polls, then it drops out. I can see the TX and RX lights work briefly but then it only receives messages.
I used the addressing that came in the example (192.168.1.8) and have my PC set up as 192.168.1.12 subnet 255.255.255.0 and gateway of 192.168.1.1
is there something in this code that's preventing stable comms? or maybe seen something where a firewall blocks it after a few messages?
or if someone has a link to a better Modbus Ethernet RTU slave feel free to link it, I've tried a couple and have the same results. Thinking i may have an issue with my board? If this means anything, on the ethernet shield there's a small LED beside the AREF and GND inputs and it is lit up.
Any help is greatly appreciated! Thanks everyone!
Light.pde (2.29 KB)