PortDock

PortDock Modbus Slave

Turns the PC into a Modbus slave (serial RTU, or a Modbus TCP or RTU over TCP server) so you can test a master (PLC, HMI, host software) without the real device — including deliberate delays and errors.

Free · Windows 10 and 11 · no ads in the program · open source (GPL-3.0)

DownloadDocs

PortDock Modbus Slave screen — Modbus slave simulator (RTU and TCP) with register tables and fault injection
Example screen with sample data. Click to enlarge.

Made for

  • Developers writing a Modbus master
  • Teams preparing HMI screens before the device arrives

Features

Three transports

Serial (RTU), TCP server (Modbus TCP) and TCP server (RTU over TCP — a device behind a serial device server).

Four tables

Coils, discrete inputs, holding and input registers. View a table as U16, S16, HEX or BIN, set per-cell U32, S32, F32, F64 or string types with byte order, and let values change by themselves (increment, random, sine …).

Several Slave IDs

Run several Slave IDs (1–247), each with its own values.

Fault injection

Delay, no response, broken CRC, wrong MBAP length or forced exceptions — targeted by Slave ID, function, address, every Nth request or probability — to test the master's timeouts and retries.

See every write

Cells written by the master flash, with a traffic log and statistics.

Device profiles, saved tables

Load register names and types of 86 built-in devices (inverters, temperature controllers, power meters …) with example values. Export and import tables as CSV register maps (same format as Modbus Master) or JSON.

Emulate with a device profile — live values (from 0.10.0)

Test SCADA, HMI or your own program without a real inverter or power meter. Writing the run command ramps the output frequency to the frequency setting (down when 0) with current, voltage and power following; power meters drift voltage and current slightly and accumulate energy. Editable «link rules» (follow, proportional, accumulate) connect cells. Read-only and write-only cells from the device map are enforced (exception 02 or 03, your choice), unmapped addresses give exception 02, and it works together with fault injection. Values come from the manual's tables, so real device behaviour (ramp times, etc.) may differ.

First-run bind address 127.0.0.1 (from 0.10.0)

The TCP server's «Bind address» starts as 127.0.0.1 (this PC only). For a master on another PC, pick 0.0.0.0 (all adapters) or an adapter's address there. Settings saved by earlier versions are kept.

Screens in 12 languages

Pick the screen language from Korean, English, Japanese, German, Spanish, Portuguese, Polish, French, Vietnamese, Turkish, Italian and Indonesian (header or Settings). The first start follows the Windows display language; any other language starts in English. On screens other than Korean and English, help and some result text stay in English.

In every app — the «AI» button in the title bar (0.8.0, copy for asking AI): builds text for an AI chat from the program, connection settings, errors in this session and recent traffic (or check results), shows a preview and puts it on the clipboard only. PortDock sends nothing; once pasted, it goes to that AI service. User folders, PC names, the last half of MAC addresses and public IPs are masked. Privacy policy →

Quick start

  1. Pick the transport (serial or TCP) and port and baud rate (or address and port); add Slave IDs if needed
  2. Choose a table, set start and count, enter values
  3. «Connect» («Start» for TCP) — master requests are answered from the table

Read the full guide →