Skip to content

2 Examples of Modbus TCP

2 Examples of Modbus TCP

WIZnet

Published April 26, 2023

Original author: fleaplc · ItalyOriginal source (new tab)

2 Examples of Modbus TCP

Components

Hardware components

Project description

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

2 Examples of Modbus TCP

Software used:

  1. Arduino IDE 1.5.5 (free download  from Arduino main website)
  2. Arduino Modbus (free download  from here)

 

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

CoDeSys+ Raspberry+ArduinoLogo+Banner-Modbus= (PLC + remote I/O)

and source code is available at there.

you can get source code

Download this file (Mega2560.7z)Merga2560_src 0.8 kB

Download this file (Raspberry.7z)Raspberry_src 54 kB

Download this file (Uno.7z)Uno_Src 0.5 kB

Comments

Similar projects you might like

Comments