TRACE Create account
EN
Protocol analysis · Modbus/TCP

Read Modbus/TCP – with register names.

Trace captures Modbus/TCP straight from the network, through a mirror port or TAP. Every telegram becomes one line: who talks to whom, unit, function, start address and values. With your plant's register list, instead of start 0 you read the name, such as Supply setpoint.

The account is currently free – you only confirm your email address.

  • Requests and responses kept apart
  • Register names from your list
  • Exceptions in plain text
  • Connections, gaps and losses visible

From the wire to the telegram.

A client reads three holding registers, the server answers, then the client writes one register. The plant's register list knows the names.

TCP payload (MBAP + PDU)
00 03 00 00 00 06 01 03 00 00 00 03 ↳ server response 00 03 00 00 00 09 01 03 06 00 00 00 0A 00 14 ↳ next request 00 06 00 00 00 06 01 06 00 01 04 D2
// In Trace · decoded telegrams
10.0.0.5:49152 → 10.0.0.10:502 · unit 1 · Read Holding Registers · start Supply setpoint · count 3
MBAPtx 3 · length 6
Unit ID1
Function0x03 (Read Holding Registers)
Start address0
Register name0 (Supply setpoint)
Quantity3
10.0.0.10:502 → 10.0.0.5:49152 · unit 1 · Read Holding Registers · 0 10 20
MBAPtx 3 · length 9
Unit ID1
Function0x03 (Read Holding Registers)
Byte count6
Registers0 10 20
10.0.0.5:49152 → 10.0.0.10:502 · unit 1 · Write Single Register · Return setpoint = 1234
MBAPtx 6 · length 6
Unit ID1
Function0x06 (Write Single Register)
Register address1
Register name1 (Return setpoint)
Register value1234

According to the list, start address 0 is “Supply setpoint” and register 1 is “Return setpoint”. The read response carries no address and therefore shows only the values. Telegrams from real pymodbus traffic (addresses adapted), split by the Ethernet (pcap) plugin.

Guide: capturing from the network →

Modbus/TCP as it is on the wire.

One telegram, one line

Trace reassembles the TCP stream and cuts it at the MBAP header: telegrams spread over several segments, or packed together in one, each become one line. The direction comes from the connection, not from the port.

Names instead of addresses

Upload the plant's register list as CSV – Modicon numbers such as 40001, or kind, address and name. Requests and write confirmations then show the name, the details show the address as well.

What otherwise stays invisible

Connection setup and teardown, resets, gaps in the capture and lost packets appear as lines of their own. Exceptions show the function and the reason, such as “Illegal Data Address”.

  • SearchFull-text search across all telegrams, even in the live stream.
  • RecordingRaw bytes and the finished interpretation in one .msf file.
  • Multiple portsSeveral interfaces in one session, on a shared timeline.
  • RemoteProbe at the machine, analysis in the browser – no inbound port.
Honest about the state

What is still missing.

So you don't have to find the limits by trying:

  • The traffic has to reach the probe. A switch forwards telegrams only to the recipient; you need a mirror port (SPAN), a TAP or a hub. The guide explains the options.
  • Read responses without names. A response carries no address. Matching it to its request (via the transaction id) is not possible yet; the values are still in the line.
  • Some functions by name only. 08 Diagnostics, 14/15 File Record and 2B (MEI) appear with their name, but their data stays raw.
  • A rate limit for heavy traffic. By default the probe passes on at most 180 kB/s; anything above is dropped and shown as a loss. That is far more than Modbus/TCP needs.

Register names are an option of the definition.

Modbus/TCP is an open TrIML definition too. The register list is a port option; the definition looks up the name per register kind and shows it only when the list knows it.

Open the TrIML reference →

<option name="registers" type="table" format="modbus-registers"
        label="Registerliste" />

<!-- one part of the list per register kind -->
<valuedescriptor type="word" name="mb-names-h"
                 fromOption="registers" fromOptionPart="h" />

<switch ref="Start address">
  <case in="mb-names-h">
    <field ref="Start address" name="Register name"
           valuedescriptor="mb-names-h" />
    <match add-format="· start {0}"><param ref="Register name" /></match>
  </case>
  <!-- otherwise: "· start 0" -->
</switch>

Frequently asked questions

How does the Modbus traffic reach the probe?

Through a mirror port (SPAN) on the switch, a TAP or a hub. On that network card you add a port with the Ethernet (pcap) plugin in Trace; with the Modbus/TCP interpreter, the port dialog sets the filter (TCP 502) and the format by itself. If Modbus runs on another port, choose Custom filter with Modbus/TCP telegram framing.

What does the register list look like?

A CSV file with one line each: number;name with a Modicon number (40001 = first holding register) or kind;address;name, such as holding;200;Weekly program. If your list counts from 1 instead of 0, you switch that at the port.

Does Trace interfere with the plant?

No. Trace only listens, sends no requests and opens no connection to the server.

Do I need hardware to try it?

For a live capture you need a Trace probe on a mirror port or TAP, on Linux (also as a container) or Windows with Npcap. To try it, an existing capture is enough.

Try Modbus/TCP with Trace.

Create a free account and start capturing. Tell us briefly what you find missing – it goes straight into development.

A question about your setup first? Write to support@trace-analyzer.net