日本語 English

ModbusTcpMes2026 icon 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.

Free and Pro edition features
FeatureFreePro
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

  1. Open [Help] - [License...] from the menu
  2. Paste the license key you received by email and click [Activate] (you can also load the attached .lic file with [Load File...])
  3. 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

ModbusTcpMes2026 screen
ModbusTcpMes Modbus TCP communication test tool screen

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

Select a function and set its operands
Not every Modbus device supports all functions. Check the supported functions in the device manual
Function list
FC(HEX)NameDescriptionOperands
01Read Coil StatusRead coilsAddress, quantity
02Read Input StatusRead input statusAddress, quantity
03Read Holding RegisterRead holding registersAddress, quantity
04Read Input RegisterRead input registersAddress, quantity
05Force Single CoilWrite a coilAddress, data
06Preset Single RegisterWrite a holding registerAddress, data
08DiagnosticsCommunication diagnosticsDiagnostic sub-function code, data
0BFetch Communication Event CounterRead the communication event counterNone
0CFetch Communication Event LogRead the communication event logNone
0FForce Multiple CoilsWrite multiple consecutive coilsAddress, quantity, data
10Preset Multiple RegistersWrite multiple consecutive registersAddress, quantity, data
11Report Slave IDRead slave informationNone
Write data format
CommandHow to write the dataExample
(05) Force Single Coil0000 = OFF, FF00 = ONFF00
(06) Preset Single RegisterOne word in hexadecimal12AB
(08) DiagnosticsOne word in hexadecimal0000
(0F) Force Multiple CoilsHexadecimal 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 RegistersMultiple words in hexadecimal, written one after anotherTo 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

  1. Select a function
  2. Enter the operands
  3. Click [Create Command] to create the Modbus command in the send command box
    The command is shown in bytes joined with '-'
  4. 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

The function code is returned followed by the data
Normal response example
FunctionByte countData
0x030x020x00 0x01

Error response

In an error response, the function code is returned with its most significant bit set
Error response example
FunctionException code
0x830x02
Modbus exception codes
CodeNameDescription
01Illegal FunctionThe function is not supported by the device
02Illegal Data AddressThe address, or the address plus quantity, is out of range
03Illegal Data ValueThe quantity or data value is not valid
04Server Device FailureAn error occurred in the slave device
05AcknowledgeThe request was accepted (processing takes time)
06Server Device BusyThe slave device is busy
08Memory Parity ErrorMemory parity error
0AGateway Path UnavailableThe gateway path cannot be used
0BGateway Target Device Failed to RespondThe 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.

Command list screen (Pro)
ModbusTcpMes2026 command list screen
ButtonShortcutDescription
Run ListF5Run from the first row
Run from Selected RowCtrl+F5Run from the selected row
StopShift+F5Stop 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.

Modbus TCP server screen (Pro)
ModbusTcpMes2026 Modbus TCP server virtual memory screen
Virtual memory (0 to 65535 each)
AreaFunctions 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.

Fixed response examples
Received (FC + data)ActionResponseDelayDescription
03-00-64-??-??Respond83-020Return exception 02 for reads from holding register 400101
06-*Respond(empty)50006 writes are written to memory and answered 500 ms late
01-*No response0Do not respond to 01 (to check the client's timeout)
10-00-C8-*Disconnect0Disconnect 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

Analyze and test TCP and UDP communication

ComCom

An application that sends messages you create using Ethernet socket communication

Analyze and test EtherNet/IP and CIP communication

CipMes

An application that sends CIP messages using Ethernet socket communication

Analyze and test FINS communication

FinsMes

An application that sends FINS messages using Ethernet socket communication

Analyze and test Mitsubishi MC protocol communication

McpMes

An application that sends MC protocol messages using Ethernet socket communication

OSD Tools logo
OSD ToolsPLC communication test tools

Tools to check PLC communication at the frame level. Also useful for checking the connection before using EquipStat

TCP/UDPEtherNet/IP・CIPMC protocolFINSModbus TCP
Learn more
EquipStat icon
EquipStatEquipment Status LoggerNEW

Record equipment status and errors from PLCs and view them in a browser. Up to 50 PLCs

FINSKV Host LinkMC protocolEtherNet/IP · CIP30-day free trial
Learn more

Viewing data on the network

Wireshark
Wireshark is free, open-source packet analysis software that captures and analyzes packets (communication data) on the network in real time

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
  1. Right-click the downloaded Zip file, open [Properties], check "Unblock" on the [General] tab and click [OK] (see "If a warning appears" below)
  2. Extract the Zip file and run ModbusTcpMes2026_Setup_*.exe inside it
  3. 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).

Pro

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.

Comments