Modbus Slave Simulator Alternative: ModRSsim2 vs diagslave vs pyModSlave
When a real PLC or RTU isn't on the bench yet, engineers reach for a Modbus slave simulator to stand in for it. Three free tools come up most often — ModRSsim2, diagslave, and pyModSlave — each with a very different design and a different set of trade-offs. Here's how they compare, and when a commercial simulator like ModbusSimulator earns its keep instead.
The Three Free Options at a Glance
ModRSsim2 — GUI, but Unmaintained
ModRSsim2 gives you a visual register grid and configurable slave setup, which makes it approachable for engineers who want to see values change without a command line. The catch: it was built in the Windows XP era and hasn't kept pace with modern Windows 10/11 high-DPI displays or newer USB-to-serial chipsets (CH340, CP2102). See our full ModRSsim2 alternative comparison for the detailed breakdown.
diagslave — Maintained, Scriptable, No GUI
diagslave is a lightweight command-line Modbus slave that supports both TCP and RTU/ASCII. It's actively maintained and easy to script into automated test pipelines, but every register value and exception behavior is set via command-line flags at launch — there's no live GUI for editing values on the fly. Read the full diagslave guide for setup details and command syntax.
pyModSlave — Python GUI for Developers
pyModSlave wraps the popular pymodbus library in a simple Qt-based GUI, letting you set up a slave without writing Python yourself. It's a natural fit if your test environment already runs Python, but it trails the other two on protocol breadth — RTU support depends on your local pyserial setup, and there's no built-in exception injection or response-delay simulation.
Side-by-Side Comparison
| Feature | ModRSsim2 | diagslave | pyModSlave | ModbusSimulator |
|---|---|---|---|---|
| Price | Free | Free | Free | $99 one-time |
| GUI | Yes (dated) | No (CLI only) | Yes (basic) | Yes (modern) |
| Modbus TCP | Basic | Yes | Yes | Yes |
| Modbus RTU/ASCII | Yes | Yes | Depends on setup | Yes |
| Master mode | No | No | No | Yes (built-in) |
| Exception injection | No | Limited | No | Yes (0x01–0x0B) |
| Response delay simulation | No | No | No | Yes |
| Data logging (CSV/XLSX) | No | No | No | Yes |
| Windows 10/11 native | Limited | Yes | Yes | Yes |
| Actively maintained | No | Yes | Yes | Yes |
How to Choose
- Quick one-off test, comfortable with a GUI: ModRSsim2 still works on many machines, but expect display quirks on modern Windows.
- Scripted / CI test pipeline: diagslave's command-line design is the easiest of the three to automate.
- Already writing Python for the test rig: pyModSlave integrates naturally, though protocol coverage is thinner.
- Need master AND slave, exception testing, delay simulation, or logging in one tool: that's the gap none of the three free options close — it's where ModbusSimulator's free 30-day trial is worth trying.
Practical takeaway: free tools are fine for a single-purpose slave stand-in. Once you need to also poll devices, inject exceptions, simulate slow responses, or log results, switching to a free-to-try commercial simulator usually saves more engineering time than it costs.
Related Guides
For a deeper look at replacing a specific tool, see our ModRSsim2 alternative page, the diagslave guide, or the broader Modbus Poll alternative comparison if you also need master-side polling. You can also browse the full best free Modbus testing tools 2026 roundup.
Frequently Asked Questions
What is the best free Modbus slave simulator alternative?
ModRSsim2, diagslave, and pyModSlave are the three most common free options. ModRSsim2 offers a GUI but is unmaintained since its Windows XP-era release. diagslave is a maintained, scriptable command-line tool. pyModSlave is a lightweight Python GUI wrapper around pymodbus, useful for developers already in a Python environment.
Is ModRSsim2 still a good Modbus slave simulator in 2026?
It still runs, but it was built for Windows XP-era DPI and has not been meaningfully updated in years, so it can misbehave on high-DPI Windows 10/11 displays and with newer USB-to-serial adapters.
Does diagslave support Modbus TCP and RTU?
Yes. diagslave supports both Modbus TCP and RTU/ASCII over serial, and is scriptable from the command line, which makes it popular for automated test setups. It has no GUI, so live register editing is done by relaunching with different flags.
When should I use pyModSlave instead of ModRSsim2 or diagslave?
pyModSlave is a good fit if you're already working in Python and want a simple GUI without installing a separate compiled application. It has fewer protocol variants and display options than a dedicated commercial simulator.
When is it worth switching from a free Modbus slave simulator to a paid one?
When you need both master and slave modes in one tool, Modbus TCP/RTU/ASCII/UDP and hybrid framing variants, exception injection, response delay simulation, or CSV/XLSX logging with live charts — features free tools generally don't bundle together.
Need More Than a Free Slave Simulator?
ModbusSimulator: Master + Slave included, TCP/RTU/ASCII/UDP, exception injection, response delay simulation, CSV/XLSX logging with live charts — $99 one-time, free 30-day trial.
Try ModbusSimulator Free