details
There are “Modbus TCP” examples.
First, it’s very simple example to control industrial devices.
original source is http://www.fleaplc.it/en/tutorials/29-arduino-mega-2560-modbus-tcp-server-2-en
Software used:
Second, it’s more complex example for Modbus TCP with Multiple I/O used Arduino Uno, Mega & RaspberryPI.
The original source is http://www.fleaplc.it/en/tutorials/33-arduino-as-raspberry-pi-s-remote-io-codesys.
So I though to realize a cheap fully working distributed architecture where:
- Raspberry PI= PLC Controller (Codesys 3.5 SP
- Arduino Mega 2560= 1st remote I/O
- Arduino Uno= 2nd remote I/O
- Modbus TCP/IP: communication protocol
+ ++= (PLC + remote I/O)
and source code is available at there.
you can get source code
Merga2560_src 0.8 kB
Raspberry_src 54 kB
Uno_Src 0.5 kB
This is a project that I’m interested in. What’s with the crazy long ASCII-hex file names in rhe RPi directory?