ModbusTcpMes2026
Modbus TCP Communication Test Tool and Server Simulator
Overview
ModbusTcpMes2026 is a Windows tool for testing Modbus TCP communication.
It helps you create Modbus commands, sends them to the target device, and lets you check the sent and received data.
In the Pro edition, in addition to decoded responses and sequential command execution, the PC can act as a Modbus TCP server with virtual memory, so you can test client programs on PLCs and other devices without the actual device.
Main features
- Create and send Modbus commands (01 to 06, 08, 0B, 0C, 0F, 10, 11)
- Dump display of sent and received data
- UI language: Auto / English / Japanese
- Decoded responses and exception code descriptions (Pro)
- Save and run command lists with OK/NG judgment (Pro)
- Modbus TCP server (virtual memory + fixed responses) (Pro)
Free and Pro editions
The Free and Pro editions are the same program. Registering a license key turns it into the Pro edition.
The Free edition features remain free of charge as before.
| Feature | Free | Pro |
|---|---|---|
| Create, edit and send Modbus commands | ○ | ○ |
| Dump display of sent and received data | ○ | ○ |
| UI language (Auto / English / Japanese) | ○ | ○ |
| Decoded responses (exception code meaning, register values, bit ON/OFF) | - | ○ |
| Command list (save, sequential execution, OK/NG judgment) | - | ○ |
| Modbus TCP server (virtual memory + fixed responses) | - | ○ |
How to register a license and license period
Registering a license
- Open [Help] - [License...] from the menu
- Paste the license key you received by email and click [Activate] (you can also load the attached .lic file with [Load File...])
- Registration is complete when the title bar shows "ModbusTcpMes2026 Pro - Licensed to (name)"
- One registration enables the Pro features of all OSD tools on the same PC (such as ComCom2026 and CipMes2026)
- It can be registered and used on PCs that are not connected to the internet
License period
The license has no expiration date. Once purchased, that version can be used as the Pro edition indefinitely.
The period during which new versions can be used as the Pro edition (the update period) is 1 year from purchase. (Version upgrades are available for 1 year after purchase.)
- Versions released before the end of the update period can be used as the Pro edition even after it ends
- The update period can be checked with [Help] - [About...] from the menu (shown as "Updates until: year-month-day")
ModbusTcpMes2026 screen
Tested on: Windows 11
Framework: .NET 10.0
How to use
Target and port
For the target, specify the IP address of the Modbus device
The port is fixed at 502 for Modbus
Unit ID (HEX)
Specify the unit ID set on the Modbus device in hexadecimal
Functions
Not every Modbus device supports all functions. Check the supported functions in the device manual
| FC(HEX) | Name | Description | Operands |
|---|---|---|---|
| 01 | Read Coil Status | Read coils | Address, quantity |
| 02 | Read Input Status | Read input status | Address, quantity |
| 03 | Read Holding Register | Read holding registers | Address, quantity |
| 04 | Read Input Register | Read input registers | Address, quantity |
| 05 | Force Single Coil | Write a coil | Address, data |
| 06 | Preset Single Register | Write a holding register | Address, data |
| 08 | Diagnostics | Communication diagnostics | Diagnostic sub-function code, data |
| 0B | Fetch Communication Event Counter | Read the communication event counter | None |
| 0C | Fetch Communication Event Log | Read the communication event log | None |
| 0F | Force Multiple Coils | Write multiple consecutive coils | Address, quantity, data |
| 10 | Preset Multiple Registers | Write multiple consecutive registers | Address, quantity, data |
| 11 | Report Slave ID | Read slave information | None |
| Command | How to write the data | Example |
|---|---|---|
| (05) Force Single Coil | 0000 = OFF, FF00 = ON | FF00 |
| (06) Preset Single Register | One word in hexadecimal | 12AB |
| (08) Diagnostics | One word in hexadecimal | 0000 |
| (0F) Force Multiple Coils | Hexadecimal bytes. Bit 0 of the first byte is the first coil To write 1100 0000 01 to 10 coils: First 8 coils 1100 0000 → reverse the bit order: 0000 0011 = 03 Remaining 2 coils 01 → 0000 0010 = 02 | Quantity 10 Data 0302 |
| (10) Preset Multiple Registers | Multiple words in hexadecimal, written one after another | To write 2 words: Quantity 2 Data 1234ABCD |
You may put spaces or '-' between the data (example: 12 34 AB CD)
About addresses
Specify the address as a decimal number starting from 0 (the address in the protocol)
To specify coil address 20, subtract 1 from 20 and specify 19
In the same way, specify input status, holding register and input register addresses as the number minus 1 (example: holding register 400101 → address 100)
Creating a command
- Select a function
- Enter the operands
-
Click [Create Command] to create the Modbus command in the send command box
The command is shown in bytes joined with '-' -
The created command can be sent as is, or it can be edited
When editing, separate bytes with '-' (you may also write the hex digits without '-')
Sending a command
Click [Send] to send the data in the send command box
Each time you click [Send], it connects, and it disconnects after receiving the response
The sent and received data are shown in the DUMP box
Menu bar
In the Japanese UI, the names in parentheses are shown
File - Exit (ファイル - 終了)
Exits the application
Tools - Decode Response / Register Format (ツール - 応答の解析表示 / レジスタの表示形式) (Pro)
Decoded responses. See "Pro features"
Tools - Command List... (ツール - コマンドリスト...) Ctrl+L (Pro)
Opens the command list screen
Tools - Server... (ツール - サーバー...) Ctrl+R (Pro)
Opens the Modbus TCP server screen
Tools - Language (ツール - 言語)
Selects the UI language from Auto (Windows setting) / English / 日本語. The default is Auto
Help - License... (ヘルプ - ライセンス...)
Registers or removes the license key
Help - About... (ヘルプ - バージョン情報...)
Shows the version and license information
Responses
Normal response
| Function | Byte count | Data |
|---|---|---|
| 0x03 | 0x02 | 0x00 0x01 |
Error response
| Function | Exception code |
|---|---|
| 0x83 | 0x02 |
| Code | Name | Description |
|---|---|---|
| 01 | Illegal Function | The function is not supported by the device |
| 02 | Illegal Data Address | The address, or the address plus quantity, is out of range |
| 03 | Illegal Data Value | The quantity or data value is not valid |
| 04 | Server Device Failure | An error occurred in the slave device |
| 05 | Acknowledge | The request was accepted (processing takes time) |
| 06 | Server Device Busy | The slave device is busy |
| 08 | Memory Parity Error | Memory parity error |
| 0A | Gateway Path Unavailable | The gateway path cannot be used |
| 0B | Gateway Target Device Failed to Respond | The device behind the gateway does not respond |
Modbus command example
Reading holding registers
Send:
00 01 00 00 00 06 01 03 00 00 00 02
Response:
00 01 00 00 00 07 01 03 04 00 64 00 C8
For details of the command, see Modbus
Pro features
Decoded responses
Turn this on or off with [Tools] - [Decode Response] from the menu.
Below the dump of a response received with [Send], the meaning of the exception code and the read values are shown.
<<-- Decode Function : 03 Read Holding Registers MBAP : Transaction ID 0000, Protocol ID 0000, Length 7, Unit ID 01 Result : Normal response Byte count : 4 Address Ref Hex UINT 100 400101 0012 18 101 400102 FFFF 65535
- "Ref" is the reference number (6 digits: the address + 1 with a type digit in front; holding registers are 4xxxxx)
- Register formats: Hex / UINT / INT / BCD / Binary / UDINT / DINT / REAL / LREAL / ASCII
- For values of 2 or more registers, you can choose the word order (Low Word First / High Word First)
- Exception responses (example: 83 02) are shown with their meaning, such as "Exception code : 02 Illegal Data Address"
Command list
Open it with [Tools] - [Command List...] (Ctrl+L) from the menu.
Save frequently used commands as a list, send them automatically from top to bottom, and judge the results as OK/NG.
| Button | Shortcut | Description |
|---|---|---|
| Run List | F5 | Run from the first row |
| Run from Selected Row | Ctrl+F5 | Run from the selected row |
| Stop | Shift+F5 | Stop running |
- [Add Current Command] adds the command created on the main screen
- You can set the interval between rows, the number of repetitions, and whether to stop on NG
- Right-clicking the list shows a menu with the same items as the toolbar
- Judgment: OK (normal response) / NG (exception response, etc.) / Timeout (no response) / Error (cannot connect, etc.)
Modbus TCP server
Open it with [Tools] - [Server...] (Ctrl+R) from the menu.
It creates virtual memory of a PLC or device on the PC and responds to requests from Modbus TCP clients (PLC Modbus communication instructions, SCADA, other tools, etc.).
Even without the device at hand, you can check reads and writes from the client program and its handling of errors.
| Area | Functions the server responds to |
|---|---|
| Coils (0x) | 01 read, 05 / 0F write |
| Input status (1x) | 02 read (values are set on screen) |
| Input registers (3x) | 04 read (values are set on screen) |
| Holding registers (4x) | 03 read, 06 / 10 write, 16 mask write, 17 read/write |
- Values written by clients are shown on screen immediately. Values can also be edited directly on screen
- Out-of-range addresses return exception 02, invalid quantities or data return exception 03, and unsupported functions return exception 01
- The memory contents can be saved to and loaded from a file (CSV)
- You can set the port (default 502) and the unit ID to respond to. Multiple clients can connect at the same time
Fixed responses
A table of responses that take priority over memory. Rows are matched from the top, and the first matching row is used for the response.
Use it to test exception responses, delayed responses, no response and disconnects.
| Received (FC + data) | Action | Response | Delay | Description |
|---|---|---|---|---|
| 03-00-64-??-?? | Respond | 83-02 | 0 | Return exception 02 for reads from holding register 400101 |
| 06-* | Respond | (empty) | 500 | 06 writes are written to memory and answered 500 ms late |
| 01-* | No response | 0 | Do not respond to 01 (to check the client's timeout) | |
| 10-00-C8-* | Disconnect | 0 | Disconnect on writes to holding register 400201 |
- ?? matches any one byte, and a trailing * matches any following bytes
- If the response is empty, the response comes from memory (useful when you only want to add a delay)
- The MBAP header of the reply (transaction ID, unit ID) is created automatically from the received request
- The table can be edited without stopping the server and can be saved to a file
The first time you start the server, Windows Firewall may ask for permission. Allow it if other devices such as PLCs will connect.
FAQ
Is ModbusTcpMes2026 free?
The Free edition is free of charge. Creating and sending Modbus commands and the Japanese UI are available in the Free edition. Decoded responses, the command list and the Modbus TCP server are Pro (paid) features.
Can the PC act as a Modbus TCP server (slave)?
Yes. The server feature of the Pro edition creates virtual coil, input status, input register and holding register memory on the PC and responds to requests from Modbus TCP clients such as PLCs. Exception responses, delayed responses, no response and disconnects can also be tested with the fixed response table.
Does it support Modbus RTU?
No. This tool is for Modbus TCP only.
Can the port number be changed?
Commands are sent using the standard port 502. With the server feature (Pro), the listening port can be changed.
Can it be used with devices other than PLCs?
Yes, it can be used with any Modbus TCP device.
Is an internet connection required to use the Pro edition?
No. The license key is verified offline, so it can be registered and used on PCs that are not connected to the internet.
Does the license expire?
The license has no expiration date. The update period, during which new versions can be used as the Pro edition, is 1 year from purchase and can be checked with [Help] - [About...]. Versions released before the end of the update period can be used as the Pro edition even after it ends.
Related pages
Related tools

ComCom
An application that sends messages you create using Ethernet socket communication

CipMes
An application that sends CIP messages using Ethernet socket communication

FinsMes
An application that sends FINS messages using Ethernet socket communication

McpMes
An application that sends MC protocol messages using Ethernet socket communication
Tools to check PLC communication at the frame level. Also useful for checking the connection before using EquipStat
Record equipment status and errors from PLCs and view them in a browser. Up to 50 PLCs
Viewing data on the network
Download
By downloading, you are deemed to have agreed to the Terms of Use
There are two installers (setups). Each is in a Zip file.
Use the recommended "Standard" setup in most cases. Use the "Full" setup on PCs that cannot connect to the internet.
ModbusTcpMes2026_Setup_2026.1.0.0.zip (1.6 MB)
Standard (recommended)
Requires .NET 10 Desktop Runtime. If it is not installed, the setup can download it from Microsoft and install it (requires an internet connection and administrator rights).
ModbusTcpMes2026_Setup_2026.1.0.0_Full.zip (35.1 MB)
Full
Includes .NET. No .NET installation is needed, and it can be installed on PCs without an internet connection.
To use it without installing, extract ModbusTcpMes2026.zip and run ModbusTcpMes.exe (requires .NET 10 Desktop Runtime).
The old ModbusTcpMes.zip (.NET 6) is here
How to install
- Right-click the downloaded Zip file, open [Properties], check "Unblock" on the [General] tab and click [OK] (see "If a warning appears" below)
- Extract the Zip file and run ModbusTcpMes2026_Setup_*.exe inside it
- Follow the instructions on the screen. You can change the installation folder. Administrator rights are not required
- The default installation folder is %LOCALAPPDATA%\Programs\ModbusTcpMes2026 (per-user installation)
- ModbusTcpMes2026 is added to the Start menu. You can choose to create a desktop icon during installation
- To update, simply install the new version over the current one. Your license and settings are kept
- To uninstall, use Windows [Settings] - [Apps] - [Installed apps]. Your license and settings are kept
If a warning appears
The setup is not code-signed, so when you run the downloaded file, Windows SmartScreen may show "Windows protected your PC".
In that case, click [More info], check that the app name is ModbusTcpMes2026_Setup_*.exe, and then click [Run anyway].
If you check "Unblock" in the properties of the Zip file before extracting it, this warning does not appear.
("Unblock" is next to "Security: This file came from another computer and might be blocked to help protect this computer." at the bottom of the [General] tab in the Zip file's [Properties])
The first time you start the server feature (Pro), Windows Firewall may ask for permission. Allow it if other devices will connect.
Verifying the files (SHA-256)
You can check that the downloaded file has not been tampered with by its SHA-256 hash.
ModbusTcpMes2026_Setup_2026.1.0.0.zip SHA-256: 6A322DD2BFF0F0284F7260167A5CEB81A28C5C45E57C291D88B29A18EA2961F0 ModbusTcpMes2026_Setup_2026.1.0.0_Full.zip SHA-256: C2D52A8F7813AA26C2201FBFD0F62EEB325F3907CBEA202F61D218BFE31267B0
Run the following command in PowerShell and check that the displayed value (Hash) matches the value above.
Get-FileHash .\ModbusTcpMes2026_Setup_2026.1.0.0.zip -Algorithm SHA256
About the Pro edition
The Pro edition is the same program as the Free edition with a license key registered. You do not need to download it again.
For details on using the Pro edition, see the included ModbusTcpMes2026_Pro_en.md (Japanese: ModbusTcpMes2026_Pro.md).
OSD Tools Pro License
Enables the Pro features of OSD tools such as ModbusTcpMes, ComCom and CipMes.
- One license can be registered on one computer
- Includes 1 year of updates from the date of purchase (versions released before then keep working after that)
- Your license key is shown on screen and sent by email right after purchase
¥5,500 (JPY, tax included)
Please check that the tool works with the free edition before purchasing. Payment by credit card, Apple Pay or Google Pay.
