⚡ Modbus open-source library "Visual Lab"

Select library → Configure parameters → Automatically generate code, all with Chinese comments. Covers 12 mainstream libraries in Python, C, C#, Java, Node.js, Go, and Rust, with 8 types of function codes, three transmission modes (TCP/RTU/ASCII), and dual modes of client + server.

12 open-source librariesFull coverage of 8 types of function codesChinese annotationOne-click copyReady-to-use
📦 Choose an open-source library

Click the card to select the library, and the code generator below will automatically switch. The small icon in the top right corner is:TCP RTU Server

TCPRTUSRV
Python

pymodbus

⭐ 2.3k · TCP/UDP/RTU/ASCII · Full-duplex · asyncio
RTU
Python

minimalmodbus

⭐ 800 · Minimalist RTU · One-line read register · Lightweight
TCPRTUSRV
C

libmodbus

⭐ 1.4k · C language standard implementation · Embedded compatible · Linux/Win
RTUSRV
C (Embedded)

FreeModbus

STM32/ESP32/AVR · Slave-specific · no_os · Callback architecture
TCPRTUSRV
C#

NModbus

NuGet Preferred · TCP/RTU/ASCII · Standard Configuration for Windows Host Computers
TCPSRV
C#

FluentModbus

High performance · Zero allocation · Native async · .NET 6+
TCPRTUSRV
Java

digitalpetri/modbus

Java 17+ · CompletableFuture full asynchrony
TCPSRV
Java

EasyModbus

The simplest synchronous API · Enterprise-level · Java+NET dual versions
TCPSRV
Java

jamod

Pioneer-level Java Modbus · Preferred for Teaching · Clearly Layered
TCPRTUSRV
Node.js

modbus-serial

⭐ 700 · TCP/RTU/ASCII · Edge Gateway · Raspberry Pi
TCPRTU
Go

goburrow/modbus

High concurrency · Native coroutines · TCP+RTU client
TCPRTUSRV
Rust

rmodbus

Zero overhead · no_std · Can be embedded into servers

🔧 Code generator

Real-time generation pymodbus

⬆ Change any parameter, and the code will update automatically

Python
📊 12 Library Function Comparison
characteristicpymodbusminimallibmodbusFreeModbusNModbusFluentMdig.petriEasyMjamodmodbus-sergoburrowrmodbus
TCP Client
TCP ServerTCP
RTU Client
RTU Server
ASCII
asynchronousevent
embeddedPiARM
Installation methodpippipapt/pkgsource codeNuGetNuGetMavenNuGet/MavenJARnpmgo getcargo
LicenseBSD-3Apache2LGPL2.1BSDMITMITApache2MITApache2ISCBSD-3MIT/Ap2
🚀 Quick installation & minimal example for each library
✅ Code has been copied to clipboard