Getting started
This chapter installs Roach Modbus Tool, walks through the main window, and gets you to a first Modbus exchange without any real hardware.
Every screen and step here was checked on the v1.3.4 (Windows) Release build.
1. What the tool does
Roach Modbus Tool tests Modbus TCP and RTU. The mode bar on the left has three modes:
| Mode | Role | Use it to |
|---|---|---|
| Poll | Master | Connect to a device, read and write registers on a schedule, and watch the values live |
| Slave | Slave | Make the PC act as a Modbus device that serves a register table to other masters |
| Script | Master or Slave | Run reads, writes and checks automatically from a JSON script and get a PASS/FAIL report |
Supported links:
- Modbus TCP: connect by IP address and port (502 by default)
- Modbus RTU: connect over a serial port (COM port,
/dev/ttyUSB0and so on) with your choice of baud rate, data bits, parity and stop bits
2. Install
Windows
- Download
RoachModbusTool-windows-x64.zip. - Unzip it into any folder, for example
D:\Tools\RoachModbusTool. - Run
RoachModbusTool.exein that folder. There is nothing else to install.
The unzipped folder has a scripts folder of sample scripts, used in the Script tutorial.
Linux (x86_64)
Download
RoachModbusTool-x86_64.AppImage.Make it executable and run it:
bashchmod +x RoachModbusTool-x86_64.AppImage ./RoachModbusTool-x86_64.AppImageTo use an RTU serial port, your account must be in the
dialoutgroup. Log out and back in after adding it:bashsudo usermod -aG dialout $USERThe serial port list shows
/dev/ttyUSB*,/dev/ttyACM*,/dev/ttyAMA*, the/dev/ttyS*ports that actually exist, and/dev/rfcomm*. You can also type a device path.
3. License
Trial and license status
The first launch starts a 30-day offline trial with every feature available. When the trial ends, every feature locks until you enter a license key.
The license label at the bottom left shows the current status. Click it for details:
| Label | Meaning |
|---|---|
Trial N day(s) | Trial, N days left |
Licensed | This PC has an active license |
Check license | The license needs to be verified online again |
Expired | The trial has ended, or the license is no longer valid |
When the mode bar is collapsed (View → Expanded Mode List unchecked), the label shortens to Pro (licensed), Nd (N trial days left) or ! (needs attention).
Buy, enter and remove a license
License actions are under Help → License:
| Menu | Use |
|---|---|
| Buy License... | Open the purchase page |
| Enter License... | Enter a key to activate this PC |
| Remove License... | Deactivate this PC so the seat can move to another PC (only when licensed) |
License rules:
- One key works on up to 3 PCs at a time and never expires.
- The app verifies the license at startup and about every 24 hours while running.
- After a successful check, the app works offline for 14 days. If 14 days pass without a successful check, the app locks until it can verify online again.
- A dropped network or a temporary server outage does not invalidate an active license.
- To move to a new PC, use Remove License... on the old PC first, then enter the key on the new one.
4. The main window
The app opens in Poll mode:

| Area | What it is |
|---|---|
| Mode bar (left) | Switches between Poll, Slave and Script. The license label is at the bottom |
| Toolbar (top) | Connect, Auto Poll with its interval (every 1000 ms), Read F5, Write F6, Revert |
| Status bar | Connection state (Offline/Polling), device count, requests sent (Sent) and Errors |
| DEVICES | The device list. It starts with Device 1 (TCP 127.0.0.1:502, Slave ID 1) |
| Register table | The top tabs pick the function area (03 Holding Registers by default) and the bottom tabs pick the Slave ID. The table lists address, format, Raw value, Eng. Value and Quality |
| Log | The communication log, with every raw frame sent (TX) and received (RX) |
The View menu adjusts the window:
- Expanded Mode List: expand or collapse the mode bar
- Communication Log: show or hide the communication log
- Script Log: show or hide the Log tab in Script mode
- Hexadecimal address: show addresses as hex
0x0000(default) or decimal
5. First connection: simulate a device with Slave
You can practise without a Modbus device: open two Roach Modbus Tool windows, one as the device (Slave) and one as the master (Poll). Both use the default 127.0.0.1:502, so there is nothing to configure.
Step 1: start a Slave in the first window
- Run
RoachModbusTool.exe. - Click Slave on the left.
- Click Listen at the top left.
The status turns green and reads Listening, and the device shows Answering. The simulated device is now waiting for a master on 127.0.0.1:502. It serves 10 Holding Registers (0x0000–0x0009), all starting at 0.

While listening, the button turns into a red Stop. Click it to stop listening.
Step 2: connect with Poll in a second window
- Run
RoachModbusTool.exeagain to open a second window. It starts in Poll mode. - Click Connect at the top left.
Once connected:
- The status turns green and reads Polling, and the app reads once a second
- The device card shows Online
- Every register's Quality shows Good
- The Log shows raw TX frames (read requests) and RX frames (device replies)

Click Disconnect to drop the connection, or Stop to only pause automatic reads.
Connect to a real device
Connection settings are in the Edit device window. Click the gear ⚙ next to the DEVICES heading, double-click the device card, or use Device → Edit Device....
Poll mode:

| Field | What it sets |
|---|---|
| Name | The device name shown in the DEVICES list |
| Mode | Modbus TCP or Modbus RTU |
| TCP IP / TCP Port | The device's IP and port (TCP) |
| COM Port / Baud / Data bits / Parity / Stop bits | Serial settings (RTU). They must match the device |
| Timeout | How long to wait for a reply |
| Retries | How many times to retry when there is no reply |
The Slave ID is not in this window. It is in the Slave ID tabs above the register table: click + next to ID 1 to add one. A device can show several Slave IDs at once.
Click OK, then Connect.
Slave mode: the same window has Name, Mode, Listen IP and TCP Port (TCP), or the serial settings (RTU).

Listen IP decides which masters can reach the simulated device:
| Option | Who can connect |
|---|---|
127.0.0.1 — this PC only (default) | Only programs on this PC, such as another Roach Modbus Tool window |
0.0.0.0 — all interfaces | Devices on every network this PC is connected to |
192.168.x.x — adapter name | Only devices on that adapter's network |
The list shows this PC's current adapter addresses, and you can also type an IPv4 address. After you pick or type one, the box shows only the IP, and a line below says who can connect. If this PC has no such address, or the format is wrong, that line turns orange. To let a PLC or HMI on the LAN connect, pick that adapter's address or 0.0.0.0. Windows Firewall may ask for permission the first time you listen.
While listening, the status at the top shows the scope, for example TCP 127.0.0.1:502 (this PC only).
Only one Slave per address and port: if another window or program is already listening on the same IP and port, Listen shows an error and does not start. 0.0.0.0 takes every address, so it cannot share a port with any specific IP. Different IPs can use the same port, for example one window on 127.0.0.1:502 and another on a second adapter's :502.
Connection settings are locked while connected: if you open this window while Poll is connected (or Slave is listening), the connection fields are greyed out and a note says to disconnect first. Only the name can change. Click Disconnect (or Stop for Slave) first, then edit.

Several devices at once
Several devices can be connected and polled at the same time. Each device still connects, polls and disconnects on its own. Connect/Disconnect (Listen/Stop in Slave) affect the device selected on the left. To connect or disconnect every device on the selected device's connection, use Connection → Connect All on This Connection / Disconnect All on This Connection. You can also right-click that connection's header in the device list.

- The status bar shows how many are connected, for example
2 connected of 2 device(s), and each device card shows Online or Offline. - The Log's Source column shows which device each frame belongs to.
- Each window handles up to 32 connections at once. In Poll, devices on the same address count as one connection; Slave allows 32 listeners.
- Poll and Slave do not run at the same time: switching modes disconnects everything in the mode you leave.
Connection rules
| Mode | Rule |
|---|---|
| Poll | Several devices may share one connection: the same IP and port, or the same COM port. Each still connects, polls and disconnects on its own. Devices on one connection must use the same timeout, retries and serial settings, and the device list is grouped by connection. Different ports on the same IP are separate connections. When one IP and port has several Slave IDs behind it (a gateway, for example), you can still add the IDs in that device's Slave ID tabs. Details are in Poll guide 9 |
| Slave | Devices with the same Listen IP and port (or the same COM port and serial settings) share one listener, simulating several devices behind a gateway, but their Slave IDs must differ. 0.0.0.0 cannot coexist with another IP on the same port, and one COM port must use one set of serial settings |
Adding, editing or importing a Slave device that breaks these rules shows the reason, and the device is not added.

6. Updates
- A few seconds after launch, the app checks for a new version. If that check fails, no error is shown.
- You can also check by hand: Help → Check for Updates...
- When there is a new version, the dialog offers Update now: the app downloads it, verifies the files, replaces itself and restarts.
- If the app's folder is not writable, the dialog only offers Open download page, so download the new version from there.
- On Linux, Update now only works when running the AppImage.
7. Next steps
- Script tutorial: build your first automated test script
- Script concepts: cases, rounds, results and variables
