⚡ 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
Pythonpymodbus
RTU
Pythonminimalmodbus
TCPRTUSRV
Clibmodbus
RTUSRV
C (Embedded)FreeModbus
TCPRTUSRV
C#NModbus
TCPSRV
C#FluentModbus
TCPRTUSRV
Javadigitalpetri/modbus
TCPSRV
JavaEasyModbus
TCPSRV
Javajamod
TCPRTUSRV
Node.jsmodbus-serial
TCPRTU
Gogoburrow/modbus
TCPRTUSRV
Rustrmodbus
🔧 Code generator
Real-time generation
pymodbus
⬆ Change any parameter, and the code will update automatically
Python
📊 12 Library Function Comparison
| characteristic | pymodbus | minimal | libmodbus | FreeModbus | NModbus | FluentM | dig.petri | EasyM | jamod | modbus-ser | goburrow | rmodbus |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TCP Client | ✔ | ✘ | ✔ | ✘ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
| TCP Server | ✔ | ✘ | ✔ | TCP | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✘ | ✔ |
| RTU Client | ✔ | ✔ | ✔ | ✘ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
| RTU Server | ✔ | ✘ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✘ | ✘ | ✔ |
| ASCII | ✔ | ✘ | ✔ | ✔ | ✔ | ✘ | ✘ | ✔ | ✔ | ✔ | ✔ | ✘ |
| asynchronous | ✔ | ✘ | ✘ | ✘ | ✔ | ✔ | ✔ | ✘ | ✘ | event | ✘ | ✘ |
| embedded | ✘ | ✘ | ✔ | ✔ | ✘ | ✘ | ✘ | ✘ | ✘ | Pi | ARM | ✔ |
| Installation method | pip | pip | apt/pkg | source code | NuGet | NuGet | Maven | NuGet/Maven | JAR | npm | go get | cargo |
| License | BSD-3 | Apache2 | LGPL2.1 | BSD | MIT | MIT | Apache2 | MIT | Apache2 | ISC | BSD-3 | MIT/Ap2 |
🚀 Quick installation & minimal example for each library
✅ Code has been copied to clipboard