Modbus Parser
How to parse
Modbus messages

Olga Weis

Gone are the days when centralized industrial systems used huge cabinets with equipment connecting by kilometers of thick cables to sensors and actuators. Today, in the vast majority of cases, it is much more profitable to install several local controllers, united in a single network and sending data to the servers via efficient communication protocols like Modbus. This allows saving on installation, testing, and maintenance of industrial equipment compared to centralized systems.

In this article, we’ll tell you why Modbus communication protocol is the top choice for industrial networks and which advanced COM port parser software will help you parse Modbus messages in the simplest and most convenient way.

Contents:


  1. Modbus parser software
  2. How to parse a Modbus message [step-by-step]
  3. Key features of the serial port parser app
  4. How to provide communications on industrial networks
  5. Modbus solution
  6. Modbus ASCII and Modbus RTU modes

Modbus protocol parser software

SPM logo

Serial Port Monitor [Professional Edition]


Requirements: Windows (32-bit and 64-bit): XP/2003/2008/ Vista/7/8/10, Windows Server 2012. 9.16MB free space. Version 7.0.342. (16th Jan, 2018). 4.8 Rank based on 41+ users, Reviews(75)
Category: Serial Port Software
Modbus Analyzer is a professional parser of RTU and ASCII protocols. The software decodes Modbus protocols and allows recording and analyzing them at your convenience.
Serial Port Monitor

If you work with Modbus protocols and have an instrument or device which you can connect to your PC's COM port, chances are you may need to collect the serial data you receive for its further analysis. Modbus Analyzer (aka Serial Port Monitor) by Eltima is a universal professional utility that can easily help you accommodate almost any serial instrument with an RS232 port. This dedicated software is an optimal way to interpret or parse the messages received from or sent by your equipment.

When a device sends a message it usually contains all sorts of extra characters and codes.

What Modbus Parser does is helps to extract the relevant data from each message. The app is designed to decode Modbus ASCII and Modbus RTU data received and sent through the system’s serial ports.

The program allows displaying the incoming and outgoing serial messages in the most convenient and readable format. In addition, the software comes with an advanced built-in search option and unique stream filtering tools with presets.

How to parse a Modbus message


Here’s how you can start a monitoring session and parse a message using the simple Modbus RTU and ASCII parser software:

  1. Start Serial Port Monitor on your computer.
  2. Select “Session > New session” in the main menu. Serial Port Monitor

  3. Then you’ll see the “New monitoring session” window. In this window you can choose the visualizers that will display the serial data throughout your monitoring session. New monitoring session

  4. Select the Modbus view to see the received and sent Modbus data (RTU and ASCII) right on the screen. Modbus view

  5. Then, you go to the capture options: select which events to capture – Create/Close, Read/Write, Device Control.
  6. Finally, click “Start monitoring” to activate a new monitoring session. That’s it!. Start monitoring

Once you started the monitoring session with the Modbus view, you can set the required configuration in the view’s preferences.

To do this, you should go to Session > Preferences;

View’s preferences

Choose the color for date time, header, structure, details, checksum, and errors. Then, select whether to parse Modbus data as Modbus RTU or Modbus ASCII.

Key features of the serial port parser app


Modbus ASCII and RTU Parser has proved to be an efficient tool for tracking down the possible problems during the development of serial applications and drivers, testing and optimizing serial devices, etc.

This professional RS232 and RS485 parser offers a host of advanced features, including:

  • The ability to start reading a serial port that is already in use by another program. All data received by the sniffed interface is shown in real time so that a programmer can identify any possible issues.
  • The ability to monitor multiple RS232, RS422, and RS485 ports simultaneously. If you need to analyze the activity of several Modbus ports within one session, you can easily do this with the Modbus message parser app. Data flowing in and out of the port is conveniently recorded in a single log using the first-in-first-out method.
  • Support for several data viewing modes: table, terminal, line, dump and Modbus visualizers. You can use all or several of them at a time. More than that, various filters offered by this utility will also serve for precise monitoring.
  • Emulation of the data transfer to a serial device in order to see the exact reaction of the device to specific commands.

How to provide communications within industrial networks.


As a result of constant modernization of production, today more and more industrial automation systems are based on distribution networks working over flexible data transfer protocols.

There’s a wide variety of interfaces and data transfer protocols that provide communications within industrial networks. These include Modbus, Ethernet, CAN, HART, PROFIBUS, etc. They allow data transfer between sensors, controllers and actuators; calibration of sensors; power supply to sensor and actuators; communication between the lower and upper levels of the process control systems, and more.

The data transfer protocols are usually developed according to the requirements of particular production and technical systems and provide a reliable connection and high accuracy of data transfer between different devices. Along with the reliability of operation in harsh conditions, ACS TP systems often require high functional capabilities, flexibility in construction, ease of integration and maintenance and compliance with industry standards.

Modbus solution


Modbus protocol is widely used as a communication channel between automation elements in industrial data networks. There are three main implementations of Modbus protocol. Two of them are designed for serial data communication over both copper EIA/TIA-232-E (RS-232), EIA-422, EIA/TIA-485-A (RS-485), and optical (and radio) lines: Modbus RTU and Modbus ASCII. And one of them is for data transmission across Ethernet networks: Modbus TCP.

Modbus solution

Modbus ASCII and Modbus RTU


The difference between Modbus ASCII and Modbus RTU protocols lies in the way they encode characters. In the ASCII mode, the data is encoded using an ASCII table where two bytes of data correspond to each character. In the RTU mode, the data is transmitted in the form of 8-bit binary symbols, which provides a higher data rate. With ASCII there can be a delay of up to 1 second, unlike RTU, where messages must be continuous. Also, ASCII mode has a simplified system of data decoding and management.

Modbus ASCII and Modbus RTU

Modbus protocols (Modbus ASCII, Modbus RTU, and Modbus TCP) use one application protocol to ensure their compatibility. The maximum number of nodes in the Modbus network is 31. The length of communication lines and the data transfer rate depend on the physical implementation of the interface. All elements of the Modbus network interact using a client-server model based on transactions consisting of a request and a response.

Learn more about Modbus ASCII in our advanced tutorial.

Where Modbus is used


Areas of Modbus industrial application: communication of sensors and actuators with the controller, communication of controllers and control computers, communication with sensors, controllers and corporate networks, connections in SCADA systems, etc.

The simplicity of implementation of Modbus protocols has led to its wide application in industrial systems and not only. Today the equipment of almost all manufacturers come with support for Modbus protocols.

Serial Port Monitor

Requirements: Windows XP/2003/2008/Vista/7/8/10/Server 2012 , 9.16MB size
Version 7.0.342 (16th Jan, 2018) Release notes
Category: Serial Port Software