EasyManua.ls Logo

Elsteam MISTRAL - Modbus Rtu Functions and Resources; Introduction; Modbus Message Structure; Modbus Functions and Registers

Elsteam MISTRAL
64 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
06/2022
| 57 |
924EHUCE4.00 - Mistral Humidier
13. MODBUS RTU FUNCTIONS AND RESOURCES
13.1 INTRODUCTION
Modbus RTU (Remote Terminal Unit) protocol is a means of communication which allows data exchange between a computer
and programmable logic controllers.
This protocol is based on the exchange of messages between master-slave and client-server devices. Master devices can
receiveinformationfromslavesandwritetotheirregisters,whileslavedevicescannotinitiateanyinformationtransferuntil
they receive a request from the slave device.
Modbus communication is used in industrial automation systems (IAS) and in the construction of building management systems
(BMS).Modbusprotocoliswidelyutilisedduetothefactitiseasytouse,veryreliableandhasanopensourcecodethatcanbe
used royalty-free on any application or device.
Modbus RTU is the most common application and uses CRC error detection and binary encoding.
Request
Read/write
request
Modbus RTU
Master
Slave 1 Slave 2 Slave “n”
Response
Response
Fig. 48. Diagram showing message exchange in a Modbus communication
ModbusprotocolestablishesaProtocolDataUnit(PDU)independentfromthecommunicationlayerbelowit,introducingsome
additional fields specified on the Application Data Unit (ADU) ("FIG. 49. FRAMING OF A MESSAGE USING MODBUS PROTOCOL"
ON PAGE 57)tospecificbusesandnetworks.
DevicessuchasPLCs(ProgrammableLogicController),HMIs(HumanMachineInterface),controlpanels,drivers,motion
controllers,I/Odevices,etc.canuseModbustobeginaremoteprocedure,andtheprotocolisoftenusedtoconnecta
supervisingcomputerwithaRemoteTerminalUnitinasupervision,controlanddataacquisition (SCADA) system.
Address Function code Data Error check
ADU
PDU
Fig. 49. Framing of a message using Modbus protocol
ForfurtherinformationrelatingtoModbusprotocol,visittheofficialModbuswebsite:www.modbus.org.
13.2 MODBUS MESSAGE STRUCTURE
Modbus RTU protocol requires the message to start with a silent time interval of at least 3.5 character times. This feature
isoftenimplementedbyexecutingatimeintervalofmultipleofcharactertimesatthebaudrateusedinthenetwork.The
characters available for each field are in binary form.
A description of the structure of a Modbus RTU message is provided below.
Start Address Function Data CRC Stop
3.5 x character time 8 bit 8 bit (N x 8 bit) 16 bit 3.5 x character time
Time period in which
data must not be
exchanged over the
communicationbus,
to allow the connected
instruments to recognise
the end of one message
and the start of the next
Corresponds to the address
for the device with which
the master has established
dialogue; this is a value
between 1...247. The
address 0 is reserved for
the broadcast message sent
to all slave devices
Code for the
function to
execute or
which has been
executed
Contains the
data sent by the
master or sent
backbytheslave
as a response to a
question
Allows the master
and the slave to
checkwhether
any errors are
present during
communication,
andifthereare,to
ignore the message
received
Time period in which data
must not be exchanged
over the communication
bus,toallowthe
connected instruments to
recognise the end of one
message and the start of
the next
13.3 MODBUS FUNCTIONS AND REGISTERS
TheModbusregistersforthedeviceareorganisedaroundthefourtypesofbasicdatareferenceindicatedabove,andthistype
of data is further identified by the first number of the address.

Table of Contents

Related product manuals