ModBus Analyzer

ModBus Analyzer

The ModBus Analyzer layer plugin can be attached to any Serial- or TCP-based stream session for analysis of ModBus RTU, Modbus ASCII and Modbus TCP frames being sent between a Modbus master and slave(s).

Normally, you want to start a relevant monitoring or transport session, such as:

... and then attach Modbus Analyzer on top of that.

Whenever ModBus frames are detected and parsed, human-readable desciptions will be printed in the log — side-by-side with the original data bytes. Nothing is lost — ModBus decoded messages complement the original raw data, not replace it.

Moreover, it's always possible to remove the ModBus Analyzer layer and get back to the raw, unprocessed data streams.

Monitoring ModBus RTU over Serial RS-232

To switch between RTU/ASCII/TCP modes, adjust the Protocol setting in the Modbus Analyzer setting group.

You can also assign and re-assign Modbus roles (Master/Slave) at any time using the Stream roles setting in the same group.

This plugin is quite useful in its own right, but it also serves as an example for how to implement protocol analyzers using IO Ninja scripting — you can use it as a starting point for your own protocol analyzer.