Modbus RTU Knowledge

Modbus is a communications protocol based on master/slave or client/server architecture, designed by Modicon for use with its PLCs. It has become a standard wherever Industrial Automation Systems (IAS) or Building Management Systems (BMS) are needed. The main reason for the extensive use of Modbus over other communications protocols is the fact that it is openly published, it's relatively easy to implement and reliable.

Modbus comes in a variety of flavors, RTU and ASCII. Both of these protocols are serial (RS232 or RS485) based.

  • Modbus RTU is a compact, binary representation of the data.
  • Modbus ASCII is human-readable and more verbose.

Protocol Specifications

Frequently Asked Questions (FAQ)

How are real (floating point) and 32-bit data encoded in Modbus RTU messages?

  • The Modbus RTU protocol itself was designed based on devices with a 16-bit register length. Consequently, special considerations were required when implementing 32-bit data elements. This implementation settled on using two consecutive 16-bit registers to represent 32 bits of data or essentially 4 bytes of data. It is within these 4 bytes of data that single-precision floating-point data can be encoded into a Modbus RTU message.Read More about how data is encoded in Modbus RTU messages

Why are 7 data bits bad for Modbus RTU?

Can I create a Modbus Client using C#?

  • You should be able to write a Modbus client in any language that has access to the serial ports or a TCP connection. C# has access to both the serial port and a RAW TCP connection, therefore it should not be too hard to create a simple Modbus Client with C#.Read More about creating Modbus Clients in C#

What is the minimum subset of functions that a Modbus slave device should implement?

What is a ModHopper wireless transceiver?

  • The ModHopper wireless transceiver is a premier, low-cost product for building automation applications developed by the Obvius Corporation that supports Modbus and pulse equipment (i.e. sensors, meters, etc.) along with related networks. The ModHopper transceiver is best suited for energy monitoring in either industrial or commercial structures.Read More about High Power Wireles Modbus Tranceivers

Where can I find more Modbus developer resources?

How can I convert 16-bit numbers to 32-bit numbers in Modbus?

  • FieldServer provides 4 functions to convert Modbus 16 bit numbers to 32-bit numbers. These functions take two 16 bits numbers to form one 32 bit number, and each function processes the bytes in a different order.Read More converting modbus bit

How can I connect multiple clients to a Modbus slave?

  • The solution is to use a multi-port FieldServer. Connect each client to its own port and the slave(s) to its own ports. Each client will see a single virtual slave(s) on its network. This not only solves the problem but is extremely efficient. Of course, the FieldServer needs to be correctly configured.Read More about multiple clients of a modbus slave

How do I test for a connection between my Modbus device and my personal computer?

  • There are a few free utilities to check communications between your PC and your Modbus device. A quick search on Google for "Free Modbus Slave utilities" should give you a list of utilities to choose from. You can also try using our own CAS Modbus Scanner. It's free and very easy to use.Read More about testing modbus communication

MK10 and 32 Bits Numbers

Reading Vendor Modbus Maps

Other Related Articles:

External Links

Contact Us

Contact us via phone (+1 866-383-1657) or leave a detailed message below for sales, support, or any other needs

*Required Field
*Required Field
I'd like to receive the newsletter. *Check email for confirmation.
*Required Field
8:00am - 12:00pm 12:00pm - 5:00pm
Message Sent Successfully