Skip to content

Modbus RTU Tester (Online Modbus Debugger & Frame Parser)

Test Modbus RTU devices in Chrome or Edge, no install: read and write registers over USB-RS485, poll, scan for slave IDs. Paste frames or a serial log to check the CRC, exception codes and floats in all four byte orders.

Runs in Browser Free
Your browser talks to the serial port directly — frames and register values are not sent to our servers.
Serial port
Not connected
Request

RTU frame (CRC appended, low byte first)
01 03 00 00 00 0A C5 CD

Expected reply: 25 bytes

Same request as Modbus TCP and Modbus ASCII
Modbus TCP
Modbus ASCII

Reply

The decoded reply appears here.

Traffic log

  1. Send a request — every exchange is listed here.
Frame building, splitting and decoding are covered by byte-level unit tests: CRC values come from an independent implementation (01 03 00 00 00 0A → C5 CD, 11 03 00 6B 00 03 → 76 87), coil bit order is checked against the specification's example (read coils 20–38 → CD 6B 05), and all four byte orders round-trip 3.14 and 123456789. Framing, echo removal and timeouts in the master are exercised end to end against a simulated serial port. — Go Tools Engineering Team · Nov 21, 2026

Built and verified by the Go Tools engineering team.

Modbus debugging quick answers

The manual says register 40001. Do I send 0000 or 0001?

Send 00 00 (40001 → protocol address 0) 40001 is the PLC notation used in device manuals: the leading 4 means holding register and the rest counts from 1. The protocol address in the frame counts from 0, so 40001 → 0x0000 and 40108 → 107 (0x006B). Sent as-is (9C 41), most devices answer exception 02 and a PLC with a large register map silently reads a different register. Switch the address format to PLC address and type the number from the manual.

Why is the float I read from Modbus garbage?

Try another byte order (ABCD / CDAB / BADC / DCBA) 3.14 stored as ABCD is 40 48 F5 C3; stored as CDAB (word-swapped, the default on many meters and PLCs) it is F5 C3 40 48, which reads as -4.95e+32 if you decode it as ABCD. The decoded reply shows every pair of registers in ABCD, CDAB, BADC and DCBA and ticks each reading in a plausible range; if more than one is ticked, pick the one that matches the range in the manual.

My Modbus device does not respond. What do I check first?

Slave ID, baud rate and parity, A/B wires In this order: slave ID → baud rate and parity (plenty of meters ship at 9600 8N1; the specification default is 19200 8E1) → swap the A and B wires → make sure no PLC or HMI is still polling the bus. Any reply at all, even an exception, proves the wiring and serial settings are right; what remains is the address or the function code.

What does Modbus exception 02 mean?

Illegal Data Address The start address, or start address plus quantity, falls outside the device's register map. The usual cause is an off-by-one address; the next most common is reading too many registers at once and running into an undefined range. Read one register first, then add more.

How do I read a Modbus RTU frame?

Slave ID · function code · data · CRC (low byte first) Take the request 01 03 00 00 00 02 C4 0B: 01 is the slave ID, 03 the function code (Read Holding Registers), 00 00 the start address 0, 00 02 the quantity (two registers) and C4 0B the CRC. In the reply 01 03 04 40 48 F5 C3 68 E4, 04 is the number of data bytes that follow, 40 48 F5 C3 are the two register values and the last two bytes are again the CRC. Paste any frame into the Frame parser above to see every byte labelled.

What is a Modbus RTU tester?

A Modbus tester (also called a Modbus debugging tool or Modbus test tool) plays the master: it builds a request from the slave ID, function code, start address and quantity you enter, appends the CRC, sends it out of a serial port and takes the slave's reply apart so you can see what each register holds. When you bring up a PLC, a temperature transmitter, an energy meter or a drive, the first step is nearly always to prove you can read it at all. The classic way is a Windows desktop program such as Modbus Poll; this page opens your serial port through the browser's built-in Web Serial API instead, in Chrome and Edge on Windows, macOS and Linux. It also has a frame parser: paste hex bytes, or a whole log from a serial terminal, to see every field explained and whether the CRC is right.

# Modbus RTU: read 2 holding registers from slave 1, starting at address 0 (PLC 40001)
TX  01 03 00 00 00 02 C4 0B
    01           slave ID
    03           function: Read Holding Registers
    00 00        start address 0
    00 02        quantity 2
    C4 0B        CRC-16/MODBUS 0x0BC4, low byte first
RX  01 03 04 40 48 F5 C3 68 E4
    04           byte count (2 registers)
    40 48 F5 C3  registers 0-1 as float32, byte order ABCD = 3.14
    68 E4        CRC 0xE468

Features of the online Modbus testing tool

A Modbus RTU master with nothing to install

Desktop Chrome, Edge and Opera connect straight to USB-RS485 and USB-RS232 adapters built on CH340, CP2102 or FT232 chips. Reads with 01, 02, 03 and 04, writes with 05, 06, 0F and 10; send once or poll at an interval, with baud rate, data bits, parity and stop bits selectable and a one-click switch to the specification default, 19200 8E1.

Length-based framing that tells timeouts, CRC errors and exceptions apart

A browser cannot time the 3.5-character silence that separates RTU frames, so the tool works out how many bytes the reply should have and decides as soon as they arrive, or calls a timeout; read replies are also checked against their own byte count, so a slave that returns a different number of registers is named as such. Every exchange in the log carries its round-trip time and verdict, with running counts of sent, OK, timeout and error. When a 2-wire RS-485 adapter hands back the bytes it just sent, the echo is removed and remembered, so later 05 and 06 writes always wait for the slave’s real reply.

Lost the slave ID? Scan for it

Find slave ID sends a one-register read to each address from 1 to 247 and records an address only when a CRC-valid reply from that address comes back, exceptions included — adapter echo and bus noise do not count, and a slow device whose reply lands in the next address’s window is recorded under the address in its reply. The first ID found is filled into the request. Handy when the manual is gone or someone changed the address.

Paste a whole log and get every frame decoded

The frame parser accepts spaces, commas, 0x prefixes and run-together hex, and reads SSCOM logs (发→◇ / 收←◆) and Modbus Poll logs (Tx: / Rx:). Requests and replies stuck together are split by CRC and paired, so the registers in a reply line up with their addresses. Modbus RTU, Modbus TCP (MBAP header) and Modbus ASCII (LRC) are all recognised.

40001 address conversion and floats in four byte orders

Enter the start address as a protocol address (from 0, decimal or 0x hex) or straight from the manual as a PLC address (40001, 30001, 400001); the matching form is shown as you type. Registers are decoded as float32, int32, uint32 and float64 in ABCD, CDAB, BADC and DCBA side by side, with the plausible reading ticked. Writes can encode floats in the byte order you choose.

It says what went wrong, not just “failed”

A CRC with its two bytes swapped, a reply missing its first byte (slow transmit/receive switching), a quantity over the specification limit, a 05 coil write with a value other than FF 00 or 00 00, two identical frames in a row (an echo or a retry): each is named. Exception replies show what the code means and timeouts list what to check. With no device at hand, the built-in demo slave lets you practise reads, writes and these errors.

Modbus frame parsing examples: reads, writes, exceptions and log splitting

Read holding registers 40001–40002 and decode a float

Slave 1 · function 03 · PLC address 40001 · quantity 2
TX 01 03 00 00 00 02 C4 0B
RX 01 03 04 40 48 F5 C3 68 E4
registers 0-1 as float32 ABCD = 3.14

40001 becomes protocol address 0, and the CRC 0x0BC4 goes out low byte first as C4 0B. In the reply, 04 is the byte count (two registers) and 40 48 F5 C3 decodes as 3.14 in ABCD. A device that uses CDAB would send F5 C3 40 48, and the tool would tick the CDAB column instead.

Write a single register (06): the reply is an exact echo

Slave 1 · function 06 · protocol address 1 · value 3
TX 01 06 00 01 00 03 98 0B
RX 01 06 00 01 00 03 98 0B

The normal reply to 05 and 06 is byte-for-byte the request — and so is the echo from a 2-wire RS-485 adapter. Once a read has shown that the adapter echoes, writes always wait for the second copy; until then the tool waits a little after the first copy (about 64 ms at 9600 bps, longer at lower baud rates): if more bytes arrive, the first copy was the echo and is dropped; if not, the exchange counts as a success.

Read past the end of the map and get exception 02

TX 01 03 00 64 00 01 C5 D5 (read address 100)
RX 01 83 02 C0 F1
exception reply · function 03 · code 02 Illegal Data Address

83 is 03 plus 0x80, marking an exception reply to function 03; the 02 that follows is the exception code. Exception replies are always 5 bytes, so the tool switches to a 5-byte frame the moment it sees 83 instead of waiting for the timeout. The demo slave only has addresses 0–99, which makes it a handy way to try this.

Split an SSCOM log and decode 12.75 as CDAB

[10:21:07.315]发→◇01 03 00 06 00 02 24 0A □
[10:21:07.352]收←◆01 03 04 00 00 41 4C CB 96 □
frame 1 request · 03 Read Holding Registers · start 6 · quantity 2
frame 2 reply · registers 6-7: CDAB = 12.75 (ABCD reads 2.342411e-41)

Timestamps and the 发→◇ / 收←◆ prefixes are skipped, and the send/receive marks tell request from reply. Read as ABCD, 00 00 41 4C is a vanishingly small number; as CDAB it is 12.75 — the most common reason a float “reads wrong”.

How to use the Modbus RTU tester

  1. 1

    Wire up RS-485

    Plug the USB-RS485 adapter into your computer and connect A and B to the device's A and B (or D+ and D-). Vendors do not agree on which wire is A, so when nothing answers, swapping the two is the first thing to try.

  2. 2

    Set the serial parameters and connect

    Match the baud rate, parity and stop bits to the device manual (9600 8N1 is common), click Select port & connect and pick the USB serial port in the browser's list. No device? Click Demo slave.

  3. 3

    Fill in the request

    Enter the slave ID (usually 1 out of the box), the function code, the start address and the quantity. If the manual lists addresses like 40001, switch the address format to PLC address. The RTU frame with its CRC updates as you type and can be copied into any other serial tool.

  4. 4

    Send or poll

    Click Send for a single exchange, or set an interval and click Poll to keep reading. The default timeout is 1000 ms; at low baud rates with many registers the tool tells you the minimum to use.

  5. 5

    Read the reply and the log

    The Reply panel decodes the latest answer field by field: each register with its address, hex, unsigned and signed value, plus 32-bit readings in all four byte orders. The traffic log below records every exchange and can be saved as text.

Common Modbus mistakes: off-by-one addresses, byte order, swapped CRC, echo

Sending 40001 as the address

40001 is PLC notation; the leading 4 only says holding register and never appears in the frame. Sent as-is it asks for protocol address 40001 (9C 41): most devices answer exception 02, and a PLC with a large register map silently reads a different register.

✗ Wrong
start address 40001
TX 01 03 9C 41 00 01 FA 4E
RX 01 83 02 C0 F1
✓ Correct
PLC address 40001 → protocol address 0
TX 01 03 00 00 00 01 84 0A

Wrong byte order for a float

The Modbus specification only fixes the byte order inside one register (high byte first); how a 32-bit value spans two registers is up to the vendor. The wrong order usually gives an absurd value — huge, tiny or NaN. You can check a single register’s hex value in the IEEE 754 converter.

✗ Wrong
registers F5C3 4048 read as ABCD
= -4.95e+32
✓ Correct
the same registers read as CDAB
= 3.14

CRC bytes swapped

When CRC-16/MODBUS comes out as 0xCDC5, the low byte C5 goes on the wire first and the high byte CD second. A slave sees a swapped CRC as a corrupt frame and silently drops it, so the master just times out. To check the CRC of a block of bytes on its own, use the CRC calculator.

✗ Wrong
01 03 00 00 00 0A CD C5
✓ Correct
01 03 00 00 00 0A C5 CD

Taking the RS-485 echo for the reply

Some 2-wire RS-485 adapters receive the bytes they transmit, so the receive buffer starts with your own request and the real reply follows. Cut at the expected length and you read back your own request. The tool strips the leading echo before decoding.

✗ Wrong
RX 01 03 00 00 00 02 C4 0B 01 03 04 40 48 F5 C3 68 E4
✓ Correct
after removing the echo
RX 01 03 04 40 48 F5 C3 68 E4

When to use a Modbus tester

Check a device before wiring it to a PLC
Confirm the address, baud rate and register map on a laptop first, so that commissioning only has the PLC program left to debug.
Read transmitters, energy meters and drives
Enter the register address and count from the manual and multiply by the scale factor it gives (×0.1, for example); for 32-bit energy or frequency values, pick the byte-order column that reads sensibly.
Develop Modbus slave firmware
While writing slave code for a microcontroller, send standard requests and check that the reply's byte count, CRC and exception codes follow the specification — no PLC required.
Field troubleshooting from a captured log
Paste a log from a serial terminal or a capture tool into the frame parser. Requests and replies are paired, so a frame with a bad CRC or a reply that does not match its request stands out.
Learn the Modbus protocol
Every frame is broken down byte by byte into slave ID, function code, start address, quantity, byte count and CRC. Together with the demo slave, sending and watching is quicker than reading the specification.

Modbus RTU frame layout and how replies are received

Modbus RTU frame layout
An RTU frame is: slave address (1 byte), function code (1 byte), data (0–252 bytes) and CRC (2 bytes), 256 bytes at most. Address 0 is broadcast (slaves execute the write but do not reply), 1–247 are slave addresses and 248–255 are reserved. CRC-16/MODBUS uses polynomial 0x8005 (0xA001 reflected) with initial value 0xFFFF, and its low byte is sent first.
Function codes and per-request limits
01 Read Coils and 02 Read Discrete Inputs take up to 2000 at a time; 03 Read Holding Registers and 04 Read Input Registers up to 125; 0F Write Multiple Coils up to 1968 and 10 Write Multiple Registers up to 123. These limits keep the whole frame inside the 253-byte PDU. A register read reply is 5 + 2N bytes, a coil read reply 5 + ⌈N/8⌉, replies to 05, 06, 0F and 10 are 8 bytes and an exception reply is always 5.
How a browser master receives a frame
Modbus RTU separates frames with 3.5 character times of silence (about 4 ms at 9600 bps), but a USB serial chip batches bytes into packets before the computer sees them, so the browser has no per-byte timing. Instead of gaps, the tool uses the length the reply must have: once that many bytes arrive it checks the CRC, slave ID and function code; otherwise it waits for the timeout. The timeout has to cover the request and the reply on the wire — 11 bits per character, so reading 125 registers at 1200 bps takes about 2.4 s for transmission alone.
Telling a request from a reply
Length is usually enough: a 03 request is always 8 bytes and its reply is 5 + 2N, so the two never collide. Replies to 05 and 06 are byte-for-byte the request, so only context or a log's send/receive marks can tell them apart. Reading 17 to 24 coils with 01 or 02 produces an 8-byte reply just like a read request; the tool first prefers the reading that breaks fewer rules of the specification, then looks at whether the previous frame is the matching request.
Modbus TCP and ASCII versus RTU
Modbus TCP puts a 7-byte MBAP header (transaction ID, protocol ID 0, length, unit ID) in front of the PDU, has no CRC and uses port 502 by default. Modbus ASCII starts with a colon, ends with CR LF, writes every byte as two hex characters and checks it with an LRC. RTU over TCP, the “transparent” mode of serial device servers, is not Modbus TCP: the TCP stream still carries RTU frames with their CRC.
Modbus exception codes
An exception reply carries the original function code plus 0x80 (03 → 83) followed by a one-byte exception code: 01 Illegal Function (the device does not support that function code), 02 Illegal Data Address, 03 Illegal Data Value (quantity out of range, or a 05 value other than FF 00 / 00 00), 04 Server Device Failure, 05 Acknowledge (accepted, still working), 06 Server Device Busy, 08 Memory Parity Error, 0A Gateway Path Unavailable and 0B Gateway Target Device Failed to Respond. A CRC error never produces an exception reply: the slave drops the corrupt frame and the master simply times out.

Modbus debugging tips

Prove the link with one register
On a first connection read a single register. Once that answers, add more registers or change the function code; asking for 100 at once leaves you unable to tell a wrong address from an out-of-range block.
Take the serial settings from the manual
Plenty of meters ship at 9600 8N1, while the Modbus specification defaults to 19200 8E1. Mixing 8N1 and 8E1 never works; mixing 8N1 and 8N2 often still does, because the extra stop bit is just idle line.
Keep one master on the bus
Modbus RTU allows one master at a time. If a PLC or HMI keeps polling while you add a laptop, the requests collide and show up as random CRC errors and replies that were not meant for you. Disconnect other masters before you test.
Size the timeout for the baud rate and the data
Too short a timeout lets a late reply be matched to the next request, so readings seem to jump between registers. The tool warns when the timeout is below the time on the wire; about twice the measured round trip is a safe setting.
Read before you write
Before changing a parameter register, read and note its current value. Some devices only apply a write after a save or restart, and some parameters are read-only while running, in which case the device may answer exception 04.

Modbus tester FAQ

Do I need to install anything?
No. The page uses the Web Serial API built into the browser, so desktop Chrome, Edge and Opera open the serial port directly — no client to install, no extension. In Firefox 151 and later you first install the site permission add-on it offers. Either way you need the driver for the adapter’s USB chip: if a COM port shows up in Device Manager, the driver is working.
Which browsers and RS-485 adapters work?
Desktop Chrome, Edge and Opera connect directly. Desktop Firefox 151 and later also works once you install the site permission add-on it offers; Safari and iOS do not support Web Serial, and Chrome for Android 138+ exposes only Bluetooth serial ports (wired USB serial needs Chrome 148+ on Android 17). Where the page cannot open a port, the frame builder, the parser and the demo slave still work. Any USB-RS485 or USB-RS232 adapter that shows up as a serial port — CH340, CP2102, FT232, PL2303 and so on — will do.
How can I try it without a device?
Click Demo slave. It acts as slave 1: holding registers 0–1 hold a temperature of 251 and a humidity of 603 (×0.1 gives 25.1 °C and 60.3 %), 4–5 hold 230.5 stored as ABCD, 6–7 hold 12.75 stored as CDAB and 8–9 hold the int32 123456789. Addresses 0–99 are valid; anything beyond gets exception 02 and an unsupported function code gets exception 01. Like a real device, it ignores frames for another address or with a bad CRC.
How does it compare with desktop tools like Modbus Poll?
Modbus Poll and Modbus Slave are Windows desktop programs. This page needs no install, runs in Chrome on macOS and Linux too, and decodes serial logs directly — but it polls one request at a time and cannot reach Modbus TCP devices. For polling many slaves at once or long-term logging, a desktop tool is the better fit.
Can it connect to a Modbus TCP device?
Not live. Browsers do not let a page open a raw TCP connection to port 502. The tool builds and decodes Modbus TCP frames (open Same request as Modbus TCP and Modbus ASCII to copy them), but live traffic is Modbus RTU over a serial port only.
How do I find a device's slave ID?
Connect and click Find slave ID. The tool sends a one-register read to each address from 1 to 247, waits at least 100 ms for each and records any address that sends back a CRC-valid reply, exceptions included; adapter echo and bus noise do not count. A full pass takes about half a minute at 9600 bps. If nothing answers, change the baud rate and parity and scan again.
Why is the reply to 05 or 06 identical to the request?
The specification says so: after writing a single coil or a single register, the slave echoes the request unchanged. A lone frame of this kind cannot be classed as request or reply, so the parser labels it as either; put the request on the line above to settle it.
Why do I have to multiply the value by 0.1?
A register holds a 16-bit integer, so devices scale decimals up before storing them: 25.1 °C is stored as 251, 230.5 V as 2305. The scale factor is in the device's register table; the tool shows the raw register value.
How many registers can I read at once?
The specification allows up to 125 registers per read with 03 or 04 and up to 2000 coils with 01 or 02; writes take up to 123 registers or 1968 coils. Many devices accept fewer and answer exception 02 or 03 beyond their own limit.
Why is there no reply to a broadcast (ID 0)?
On a broadcast every slave executes the write, and the specification forbids them all from replying so that they do not collide on the bus. After a broadcast the tool waits 200 ms for the slaves to finish and logs Broadcast sent rather than a timeout. Reads cannot be broadcast.
Which input formats does the frame parser accept?
Hex bytes with or without spaces, commas or 0x prefixes; Modbus ASCII frames starting with a colon; and serial logs with timestamps and direction marks, such as SSCOM (发→◇ / 收←◆) and Modbus Poll (Tx: / Rx:). One frame per line or several run together both work, and Modbus TCP is recognised by its MBAP header.
Is any of my data sent to your servers?
No. The browser reads and writes the serial port directly, and building and decoding frames happens in this page's script; frames and register values are not sent to our servers.
Can it act as a Modbus slave?
No. This tool is a master only: it sends requests and reads replies. The demo slave is simulated inside the page and never appears on the serial port; to let a PLC or HMI poll your computer you need slave-simulation software such as Modbus Slave.

Related Tools

View all tools →