What Is Modbus
What Is Modbus
WHAT IS MODBUS?
Modbus is an open protocol, meaning that it's free for manufacturers to build
into their equipment without having to pay royalties. It has become a very
common protocol used widely by many manufacturers throughout many
industries. Modbus is typically used to transmit signals from instrumentation
and control devices back to a main controller or data gathering system.
HOW DOES IT WORK?
Modbus is transmitted over serial lines between devices. The simplest setup
would be a single serial cable connecting the serial ports on two devices, a
Master and a Slave.
The data is sent as series of ones and zeroes called bits. Each bit is sent as a
voltage. Zeroes are sent as positive voltages and a ones as negative. The bits
are sent very quickly. A typical transmission speed is 9600 baud (bits per
second).
WHAT IS THE SLAVE ID?
Each slave in a network is assigned a unique unit address from 1 to 247. When
the master requests data, the first byte it sends is the Slave address. This way
each slave knows after the first byte whether or not to ignore the message.
WHAT IS A CRC?
CRC stands for Cyclic Redundancy check. It is two bytes added to the end of
every modbus message for error detection. Every byte in the message is used
to calculate the CRC. The receiving device also calculates the CRC and
compares it to the CRC from the sending device. If even one bit in the
message is received incorrectly, the CRCs will be different and an error will
result.
Reference
http://www.modbus.org/.
https://automationforum.in/t/interview-question-explain-modbus-protocol-
concept/1234