Modbus Communication
Modbus Communication
• A Register is a circuit consisting of
Flip-Flops which can store more than
one-bit data. The register is nothing but
a sequential logic circuit in digital
electronics.
• o store the data in digital form, the
concepts of Flip-Flop came. We also
know that a Flip-Flop can only store
one-bit data. This problem is overcome
by making Register.
• In digital electronics Logic Gates, flip-flops, registers are very important and interesting topics because they
are the basic components of Microprocessor, CPU, Memory etc.
Here are mainly two types of the register,
• 0x = Coil = 00001-09999
1x = Discrete Input = 10001-19999
3x = Input Register = 30001-39999
4x = Holding Register = 40001-49999
There are many variants of Modbus protocols:
• Modbus RTU
• Modbus ASCII
• Modbus TCP/IP or Modbus TCP
• Modbus over TCP/IP or Modbus over TCP or Modbus RTU/IP
• Modbus over UDP
• Modbus Plus (Modbus+, MB+ or MBP)
• Pemex Modbus
• Enron Modbus
Points to be considered
• All slaves are polled on demand by the master, and there is only one
master. The message frame can be up to 252 bytes in length, and up to 247
addresses are possible.
• Modbus RTU requires that you know or define baud rate, character format
(8 bits no parity, etc), and slave ID (aka slave address, unit number, unit
ID). A mis-match in any of these will result in no communication.
• Modbus TCP requires that you know or define IP addresses on the
network. In some cases, you also need unit ID's. Control Solutions
Modbus TCP devices may use the unit ID, or may ignore it, depending on
the device and the application.
Baud Rate
Parity bit
• Parity bits are generally applied to the smallest units of a communication protocol, typically 8-bit octets
(bytes), although they can also be applied separately to an entire message string of bits.
Stop bit
Device ID
A modbus network relies on IDs of
individual devices. Messages could be sent
all over the network however the data is
tagged from 1 to 247 (Modbus Basics
restricts to addressing only 247 devices to a
master).
RS485