Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
88 views

Modbus Communication

Modbus communication uses a master-slave architecture over a serial line. It was developed in 1978 for data exchange between PLCs and devices on the production floor. Modbus RTU is a common open protocol that uses serial communication via RS-232 or RS-485. The master initiates communication by requesting or sending data to slave devices, which then respond with the requested data or perform operations. Registers are used to store data in digital form using flip-flops and can be general purpose or special purpose. Parameters like baud rate, parity, stop bits, and device IDs must match for communication.

Uploaded by

Monica
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views

Modbus Communication

Modbus communication uses a master-slave architecture over a serial line. It was developed in 1978 for data exchange between PLCs and devices on the production floor. Modbus RTU is a common open protocol that uses serial communication via RS-232 or RS-485. The master initiates communication by requesting or sending data to slave devices, which then respond with the requested data or perform operations. Registers are used to store data in digital form using flip-flops and can be general purpose or special purpose. Parameters like baud rate, parity, stop bits, and device IDs must match for communication.

Uploaded by

Monica
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 24

MODBUS COMMUNICATION

What is Modbus Communication

• Modbus is one of the oldest fieldbuses


• It was developed in 1978 by the engineers at Modicon… originators of the first PLC. It’s primary
purpose was, of course, to exchange data between PLCs and other devices on the production floor.
• It is typically based upon a master/slave system over a serial line.(RS-232/485).
• Modbus RTU is an open, serial (RS-232 or RS-485) protocol based on master/slave or client/server
architecture. It is popular, well established, relatively easy to implement and reliable.
• It is used in various Applications like Industrial Automation Systems (IAS) or Building Management
Systems (BMS) where there is need to communicate with other devices.
• Modbus controllers use a master/slave communication method. This means that only one device (ie.
the master) can initiate communication.
• The other devices (ie. slaves) respond to the masters communication messages. They either send back
the requested data or perform the requested operation.
What is a register?

• 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,

• General Purpose Register


• Special Purpose Register
The General purpose registers are mainly stored data. The general purpose registers are,
• Accumulator
• Data Register
• Counter Register
The Special purpose registers mainly to hold the instructions or lines or
states of a program before execution. The special purpose registers are,
• Instruction Register
• Program Counter

Register types and reference ranges recognized with Modicon notation


are as follows:

• 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

• Data transmitted via an RS485


interface usually employs the
MODBUS protocol. Alternatively,
an RS232 device uses text (ASCII)
protocols. The main difference is
that Modbus articulates the
protocol type, whereas RS485
defines the protocol's signal level.
RS485 signal line definitions

Carrier Detect (CD) this control signal is used when a modem informs a
computer that it has detected a carrier that the computer can use for data
transmission.
•Receive Data (RXD) this line is used for data transmission between two
sources. An example is data received from a modem transferred to a computer.
•Transmit Data (TXD) this is the line that actually carries the transmitted data.
•Data Terminal Ready (DTR) this is the signal that shows that a computer is
ready for transmission.
•System Ground (GND) refers to a physical connection with the ground, a
baseline used for measuring voltages in an electrical circuit, or a shared path for
returning electrical current.
•Data Set Ready (DSR) in contrast to the DTR signal, this signal notifies a
computer or terminal that the modem is operational and capable of receiving
data.
•Request to Send (RTS) positive voltage is necessary for this signal to allow the
request to send (RTS) to be performed. It indicates that interference-free
transmission is possible between the data set and the data terminal.
•Clear to Send (CTS) sending this signal after a connection between a data
terminal and a modem has been established confirms recognition by the data
terminal that communications can commence.
•Ring Indicator (RI) the purpose of this signal is to alert a modem operating a
data set that a low frequency has been detected. The signal simply alerts the
data terminal but does not impact the data transmission betw een the devices.
Thank you

You might also like