Ethernet Shields V2.0 and Modbus TCP Communication

by manu4371 in Circuits > Arduino

5777 Views, 1 Favorites, 0 Comments

Ethernet Shields V2.0 and Modbus TCP Communication

ETHERNET shields_Page-1.jpg

About using bidirectionnal Modbus TCP communication with the latest Etehernet Shields V2.

Comparisons and Settings

It's been many years I use the famous and unexpensive Ethernet shield for Arduino based on W5100. It works fine but the latest shields are faster and low energy consumers. I recently bought 2 type of Ethernet Shield V2:

-the SEEEDUINO (25 EUROS) based on the W5200 and runnig with Ethernet_Shield_W5200 library

-the official Arduino Ethernet Shield V2.0 (30 EUROS) based on the W5500 and running with Ethernet2-1.0.4 library

To establish a good Modbus TCP communication, you need to use the famous "mudbus" library and modify it easily as indicated in the tutorial.

Then the sketch are a little different between these 2 shields but it works fine.

AdvancedHMI can check the communication.

nota: I have got some definition problems with the pdf tutorial and I don't know why. Now it's solved. I give you an Office file.

Conclusion

Thanx to all website advised in my tutorial.

Happy instructables.