© Pradeeka Seneviratne 2017

Pradeeka Seneviratne, Building Arduino PLCs, 10.1007/978-1-4842-2632-2_7

7. Modbus

Pradeeka Seneviratne

(1)Udumulla, Mulleriyawa, Sri Lanka

Modbusis a communication protocol that can be used to send and receive data via a serial bus line, like RS232and RS485bus lines. In this chapter, you'll learn how to use Modbus communication protocol via an RS485 bus line to connect industrial devices to your Arduino-based PLC. Modbus uses a master-slave architecture, where one node is configured as the master (i.e., Arduino PLC) and other devices are configured as slaves (temperature sensors, humidity sensors, light sensors, etc.). The advantage of using the RS485 is that it only uses two shared wires to connect all devices (slaves) ...

Get Building Arduino PLCs: The essential techniques you need to develop Arduino-based PLCs now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.