Documente Academic
Documente Profesional
Documente Cultură
SEARCH
Home
Products
Gateway Solutions
Software Solutions
Place an Order
Where to Buy
435NBX/490NBX Support
460 Gateway Support
Technologies
AS-INTERFACE
BACnet
CANopen
CC-link IE Field
Control IEC 61131-3
DeviceNet
EtherCAT
EtherNet/IP
IEEE 1588
IO-Link
LONWORKS
MODBUS RTU
MODBUS TCP/IP
OPC UA
PROFIBUS
PROFINET CBA
PROFINET IO
USB
XML
Industrial Library
Industrial Automation Acronyms
Industrial Networking University
Real Time Automations Digital Library
Serial Device Isolation & Grounding
What is Industrial Ethernet
Guide to Ethernet Troubleshooting
INDUSTRIAL ETHERNET 2nd Edition
OPC UA: The Basics
Modbus: The Everymans Guide to Modbus
OPC UA: The Everymans Guide to OPC Unified Archi
Company
About Us
RTAs Blog
Live Survey Results
Case Studies
About our Founder
Engineering
Links
Newsletter
Company Photo Album
Proud to be Wisconsin Made
Rec Room
Return Merchandise Authorization Form
Press
MODBUS RTU
You are here: Home / Technologies / MODBUS RTU
Modbus RTU Unplugged An introduction to Modbus RTU Addressing, Function
Codes and Modbus RTU Networking
OVERVIEW
Modbus RTU is an open, serial (RS-232 or RS-485) protocol derived from the
Master/Slave architecture. It is a widely accepted protocol due to its ease of use and
reliability. Modbus RTU is widely used within Building Management Systems (BMS)
and Industrial Automation Systems (IAS). This wide acceptance is due in large part
to MODBUS RTUs ease of use.
MODBUS RTU messages are a simple 16-bit CRC (Cyclic-Redundant Checksum). The
simplicity of these messages is to ensure reliability. Due to this simplicity, the basic
16-bit MODBUS RTU register structure can be used to pack in floating point, tables,
ASCII text, queues, and other unrelated data.
modbusrtu_diagram
In order to build the MODBUS application data unit, the client must initiate a
MODBUS transaction. It is the function which informs the server as to which type of
action to perform. The format of a request initiated by a Master is established by the
MODBUS application protocol. The function code field is then coded into one byte.
Only codes within the range of 1 through 255 are considered valid, with 128-255
being reserved for exception responses. When the Master sends a message to the
Slave, it is the function code field which informs the server of what type of action to
perform.
To define multiple actions, some functions will have sub-function codes added to
them. For instance, the Master is able to read the ON/OFF states of a group of
discreet outputs or inputs. It could also read/write the data contents of a group of
MODBUS registers. When the Master receives the Slave response, the function code
field is used by the Slave to indicate either an error-free response or an exception
response. The Slave echoes to the request of the initial function code in the case of
a normal response.
Standard MODBUS RTU node addresses are 1-254, with 0 being reserved for
broadcast messages and write only. However the 0 address is rarely used due to the
fact that there is no confirmation that the message was properly received at the
slave node. This doesnt have much affect if your physical layer is RS-232 as only
one node can be implemented anyway. RS-485 limits the number of nodes to 32,
though some drivers will allow you to extend the amount.
A transmitted Byte is coded as: 8 Bit binary value, hexadecimal 0 - 9 and A - F. The
least significant Bit is sent and received first
A transmitted Byte is coded as: 8 Bit binary value, hexadecimal 0 9 and A F. The
least significant Bit is sent and received first
MODBUS RTU Memory Map
Modbus RTU
Data Type
Common
Digital Inputs
Binary inputs
10001
Analog Inputs
Binary inputs
30001
The MODBUS messages on a serial connection are not broadcast in plain format.
They are constructed in a way that allows receivers an easy way to detect the
beginning and end of a message. The characters start and end a frame when in
ASCII mode. To flag the start of a message, a colon : is used, and each message is
ended with a CR/LF combination. MODBUS RTU uses a different method. In RTU,
framing is constructed by measuring gaps of silence on the communication line.
Before each message, there must be a minimum gap of 3.5 characters. To prepare
for new messages, the receiver clears the buffer when a gap of 1.5 characters is
detected. One of the main differences between MODBUS/ASCII and MODBUS RTU is
that ASCII allows gaps between the bytes of a message with a maximum length of 1
second. With MODBUS RTU, continuous streams of messages must be sent.
Modbus/ASCII
Characters
Modbus/RTU
Frame end
characters CR/LF
Gaps in message
Start bit
Data bits
Parity even/odd
none even/odd
Stop bits
none
4
Shares31
Product Selector
CONNECT YOUR:
TO A:
If you can't seem to find the product that you need don't hesitate to give us a call.
1-800-249-1612
Testimonial
Within a few hours and some tech support from RTA, the 490NBA was succesfully
translating our logix5555 PLC to a 3D vision camera. Their dedication and work
ethic is amazing! I even got tech support while their guru was home with the flu.
This product was well worth the money!
Robb of Industrial Automation Solutions
Newsletter Signup
Sign up for our FREE recurring newsletter to stay up to date on topics such as:
Industrial Automation
Networking Technology
Latest Industry News
Name *
Email *
SUBMIT
Need help? Call our Expert Service Team: 1-800-249-1612
Products
Gateway Solutions
Place an Order
435NBX Support Page
460 Gateway Support
Technologies
EtherNet/IP
DeviceNet
AS-INTERFACE
MODBUS TCP/IP
PROFINET IO
PROFINET CBA
Control IEC 61131-3
IEEE 1588
BACnet
PROFIBUS
EtherCAT
LONWORKS
USB
CC-link IE Field
CANopen
XML
Industrial Library
Acronym Library
Industrial Networking University
Digital Reference Materials
Serial Device Isolation & Grounding
What is Industrial Ethernet
INDUSTRIAL ETHERNET 2nd Edition
Guide to Ethernet Troubleshooting
Company
About Us
Why Outsource?
RTAs Blog
Engineering
Links
About our Founder
Rec Room
Return Merchandise Authorization Form
Newsletter
Copyright 2016 Real Time Automation Site Map
Translate