PROTOCOL
PROTOCOL
PROTOCOL
It is a set of rules and regulations which determines the data transfer in communication between the
devices.
TYPES OF PROTOCOLS:
1.ETHERNET
The cable which connects devices together with in a local area network like PCs and routers. The cable
possess 8 wires and a larger plug(RJ 45).
1. Speed-100gb/s.
2. Reduced crosstalk
3. Reduced noise
4. Length up to 700ft.
HART:
There are two main operational modes of HART instruments: point to point (analog/digital)
mode, and multi-drop mode.
Point to point
In point-to-point mode the digital signals are overlaid on the 4–20 mA loop current. Both the
4–20 mA current and the digital signal are valid signaling protocols between the controller and
measuring instrument or final control element.
The polling address of the instrument is set to "0". Only one instrument can be put on each
instrument cable signal pair. One signal, generally specified by the user, is specified to be the 4–
20 mA signal. Other signals are sent digitally on top of the 4–20 mA signal. For example,
pressure can be sent as 4–20 mA, representing a range of pressures, and temperature can be sent
digitally over the same wires. In point-to-point mode, the digital part of the HART protocol can
be seen as a kind of digital current loop interface.
Multi-drop
In Multi-drop mode the analOg loop current is fixed at 4 mA and it is possible to have more than
one instrument on a signal loop.
HART revisions 3 through 5 allowed polling addresses of the instruments to be in the range 1–
15. HART revision 6 and later allowed address up to 63. Each instrument needs to have a unique
address.
Advantages:
HART can help reduce set-up time by facilitating the easy transfer of configuration settings and
calibration information. It can also reduce maintenance costs by providing the ability to capture
performance data and to diagnose errors remotely, eliminating the need for field checks. Regulatory
compliance is simplified by automated record keeping and the ability to take advantage of intelligent
multivariable devices for more thorough, accurate reporting.
2.PROFIBUS
Profibus is a standard for fieldbus communication in automation. It is also known as process field bus.
2.Profibus DP
DP stands for Decentralized Peripheral. It is a protocol used to communicate between profibus
masters and remote I/O slaves. Profibus DP is used to operate sensors and actuators via a
centralised controller in production (factory) automation applications. Profibus-DP is recognized as a
high-performance bus network capable of transmitting thousands of I/O points information in less
than a few milliseconds. For that reason, it has been used extensively for fast response control
applications such as turbine servos and variable speed drives.
Data transfer speed is about 9.6kbps to 12mbps. RS485 balanced transmission used in profibus
DP. It allows 126 devices to connect at once.
3.Profibus PA
Profibus-PA – Designed especially for process automation. It permits sensors and actuators
to be connected on one common bus line even in intrinsically safe areas. Permits data
communication and power over the bus using 2-wire technology according to the
international standard IEC 1158-2. Will not be implemented in this spec because only I/O will
be controlled.
PA stands for Process Automation. Profibus PA is slower than profibus DP and runs at a speed of
31.2kbps. PROFIBUS PA uses a special transmission technology known as MBP (Manchester bus
powered) that also allows field devices to be supplied via the bus. Profibus-PA was designed as a
substitute for HART and 4 to 20mA signal transmission in the process industries. Profibus-PA
links to the control architecture via Profibus-DP with a segment coupler or link as shown. Segment
couplers are signal converters that adapt the RS-485 signals to the 61158-2 signal level. They are
transparent from the bus protocol point of view. If segment couplers are used, the baud rate on the
DP (RS-485) segment must be restricted to 45 Kbits/sec. The segment coupler also injects power
into the PA network for the segment instrumentation. Links are independent slaves on the DP
network which represent all devices connected to the 61158-2 segment. When PA segments are
connected using links there is no limit to the baud rate on the DP segment which enables faster
overall bus network performance.
ADVANTAGES
1. It can be easily used with greater flexibility
2. Large number of connection possibilities for a single controller
3. HART technology integration is easy
• More than 100 devices can be commissioned per day
• One person can complete commissioning; no need for a second person in the field to find
and “activate” an instrument for the loop check
• Communication faults can be located from the control room
• No 4-20mA calibration is required since the digital device measures the full range of
process values
• Instrument settings can be downloaded from the control room; no need to connect a
handheld to each transmitter individually
DISADVANTAGES
1. High cost compared to ethernet
2. Speed is limited to Mbps.
3. Distance extension is complicated
4. If master fails entire communication will fails.
3.PROFINET
It is also known as profibus on ethernet. Profinet cables are industrial ethernet cables. It is also
known as industrial cat5 or two pair cat5 with TCP/IP protocol. These cables are mostly used in
drive technology such as transport, conveyors and machine tool manufacturing
TD+ YELLOW
TD- ORANGE
RD+ WHITE
RD- BLUE
1. TCP/IP for non-time critical data and commissioning of plant with reaction time in the range of
100ms.
2. RT (Real Time) protocol for profinet IO applications up to 10ms range.
3. IRT (Isynchronous Real-Time) protocol for profinet IO applications in drive systems in the range
of 1ms.
Profinet I/O consists of 3 devices:
1. IO Controller, which controls the automation task.
2. The IO Device, which is a field device, monitored and controlled by an IO Controller.
3. The IO Supervisor, is a software typically based on a PC for setting parameters and
diagnosing individual IO Devices.
FEATURES:
MODBUS:
Modbus is a serial communications protocol. Modbus enables communication among many devices
connected to the same network. It read/write the memory addresses directly.
Each device which wants to communicate using Modbus is given a unique address. In serial
networks, only the node assigned as the Master may give a command. A Modbus command
contains the Modbus address of the device it is intended for (1 to 247). The device will only act on
that command even other devices might receive it.
Introduction to Modbus
Modbus is the “granddaddy” of industrial communication protocols. It was originally designed in the
mid-1970s by Modicon as a way to link intelligent devices with PLCs using a simple master/slave
concept. “Simple” is a key descriptor for Modbus – and also its biggest strength. It is easy to
implement and easy to use. When it was first introduced, it was a proprietary protocol that only
Modicon could use. However, it was later published royalty-free so that anyone could use it.
Finally, Modicon made it an open protocol. When it was published, a number of companies started
using it, creating different interpretations and modifications of the original specification. As a result,
there are now quite a few variations in the field.
The specification document is fewer than 100 pages in length, which is a good indication of the
protocol’s low level of complexity. In comparison, Profibus’ specification document is thousands of
pages long. The term “Modbus” typically refers to one of three related protocols: Modbus ASCII,
Modbus RTU, or Modbus TCP/IP
Modbus ASCII was the first Modbus and is a serial protocol, typically running on either the RS-232
or RS-485 physical layer. 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.
The message frame and function codes, shown in Figures 1 and 1.1, are very simple.
Modbus RTU is really just a small variation on the Modbus ASCII protocol. The only difference is in
the encoding of the data. ASCII encodes the message in ASCII characters, while RTU uses bytes,
thus increasing the protocol’s throughput. In general, RTU is more popular, particularly in new
installations.
Modbus TCP/IP was added much later. One simple way of thinking about Modbus TCP/IP is to
picture it as simply encapsulating a Modbus RTU packet within a TCP/IP packet. There is a bit more
to it than that, but this is essentially what Modbus did. As a result, Modbus TCP/IP is also very
simple to implement. The tradeoff is that, because it uses TCP/IP protocol for all messages, it is slow
compared to other Ethernet industrial protocols – but still fast enough for monitoring applications.
The method is used for transmitting information over serial lines between electronic devices. The
device requesting information is called “master” and “slaves” are the devices supplying information.
In a standard Modbus network, there is one master and up to 247 slaves, each with a unique slave
address from 1 to 247.
According to Intel, communication between a master and a slave occurs in a frame that indicates a
function code. The function code identifies the action to perform, such as read a discrete input; read
a first-in, first-out queue; or perform a diagnostic function. The slave then responds, based on the
function code received, with a response indicated by a set of bytes. Slaves can therefore be
intelligent devices or simple devices that represent a single sensor.
Because of this operation, systems based on the protocol are critical parts of the industrial “internet
of things” for automation and control, housing valuable information that can be unlocked and used by
analytics and enterprise systems.
The protocol is commonly used in IIoT as a local interface to manage devices. It is an open protocol
that is free for manufacturers to build their equipment into, and is now the most commonly available
means of connecting industrial electronic devices, according to Simply Modbus.
Fig8: MODBUS
ADVANTAGES
1. Simple, robust and easy to maintain.
2. moves raw bits or words without placing many restrictions on vendors
3. Contains checksum to determine the transmission of errors.
DISADVANTAGES
A modem cable has pin-to-pin connections, and is designed to connect a DTE device to a DCE
device. RS-232 is widely used for connections between data acquisition devices and computer
systems. RS-232 devices are defined as either DTE (usually a computer) or DCE (usually an
interface device).
The term RS232 stands for "Recommended Standard 232" and it is a type of serial
communication used for transmission of data normally in medium distances. It was introduced
back in the 1960s and has found its way into many applications like computer printers, factory
automation devices etc.
How RS232 Works?
RS232 works on the two-way communication that exchanges data to one another. There are
two devices connected to each other, (DTE) Data Transmission Equipment& (DCE) Data
Communication Equipment which has the pins like TXD, RXD, and RTS& CTS. Now,
from DTE source, the RTS generates the request to send the data. Then from the other
side DCE, the CTS, clears the path for receiving the data. After clearing a path, it will give
a signal to RTS of the DTE source to send the signal. Then the bits are transmitted
from DTE to DCE. Now again from DCE source, the request can be generated
by RTS and CTS of DTE sources clears the path for receiving the data and gives a signal to
send the data. This is the whole process through which data transmission takes place.
TXD TRANSMITTER
RXD RECEIVER
GND GROUND
Pin Description DB-9 Connector: