Arduino Modbus PLC / RTU

PLC/RTU

A Programmable Logic Controller, PLC or Programmable Controller is a digital computer used for automation of electromechanical processes, such as control of machinery on factory assembly lines, amusement rides, or light fixtures. PLCs are used in many industries and machines.  http://en.wikipedia.org/wiki/Programmable_logic_controller

A remote terminal unit (RTU) is a microprocessor-controlled electronic device that interfaces objects in the physical world to a distributed control system or SCADA (supervisory control and data acquisition) system by transmitting telemetry data to a master system, and by using messages from the master supervisory system to control connected objects.[1] Another term that may be used for RTU is remote telemetry unit. http://en.wikipedia.org/wiki/Remote_Terminal_Unit

Arduino Modbus

This setup can turn your Arduino into a PLC or RTU like device that can communicate via the Modbus protocol.There are a lot of arduino modbus libraries out there however this is the one that I love, it just works. It can also be easily extended to include more internal bits or holding registers to return internal data, counters, scaled values, or WHATEVER YOU WANT!

Demonstration

How to build it!

 

Resources

Forum post on the Arduino website http://forum.arduino.cc/index.php?topic=150181.0

Where to get the library http://code.google.com/p/arduino-modbus-slave/downloads/detail?name=MODBUS.zip&can=2&q=

My blog post on building the accompanying Mango M2M HMI https://electronhacks.com/2014/04/afordable-arduino-modbus-plc-or-rtu/?utm_medium=facebook&utm_source=twitterfeed

Code

Leave a Reply