Modbus Poll-style device polling, live tables, alarms, diagrams and imports of existing Modbus Poll projects.
Modbus Poll のオープンソース代替
Modbus Poll-style device polling, live tables, alarms, diagrams and imports of existing Modbus Poll projects. Polls Modbus TCP, RTU (serial), RTU-over-TCP and Modbus ASCII devices into live value tables with scan rates, display formats, alarms, per-row styling rules and a SCADA mimic-diagram mode; imports Modbus Poll .mbp/.mbw project files and reconstructs their polls and connections.
READMEGitHub の kostyk348/mbscada-rs
A clean-room Modbus Poll reimplementation with a SCADA mode on top.
Poll Modbus/TCP & RTU devices into live value tables, import real Modbus Poll .mbp/.mbw files byte-exactly,
style any row from a 32-branch rule tree and build mimic diagrams —
all in a ~6 MB single executable. No Modbus Poll sources were read, ever.
English · Русский 🌐 Project site: kostyk348.github.io/mbscada-rs
.mbp / .mbw files import by folder — and a byte-exact round-trip layer (write(parse(bytes)) == bytes, proven on real 10.5 files) keeps them intact.{T2 jacket} - {T1 reactor}, min(...), pow(...) — evaluated by the engine every scan and shown in their own table (v1.1).mb-engine) drives all connections concurrently; no telemetry, no cloud, nothing leaves the machine.| Live tables + alarm panel | |
| SCADA mimic + widgets | |
| Parameter watch window |
Prebuilt installers for every platform — no Rust toolchain needed. Grab them from Releases:
| Platform | Files |
|---|---|
| Windows 10/11 x64 | NSIS installer .exe · .msi · portable zip (no install) |
| Linux x86_64 & aarch64 | .AppImage (runs anywhere — already no-install) · .deb |
| macOS Apple Silicon & Intel | .dmg · portable zip with the .app bundle |
OPC UA bridge mb-opc | mb-opc-linux-x64 / -arm64 · mb-opc-windows-x64.exe · mb-opc-macos-arm64 (same release page) |
Windows: WebView2 is preinstalled on Win10/11. Linux AppImage bundles its own WebKit. Every release is built automatically by GitHub Actions from a
v*tag — five runners, one commit, all platforms.
×mult ÷div +offset, own 0/1 address base.u16 / i16 / hex16 / bin16 / ascii16 / u16(swapped) · u32 / i32 / hex32 · float32 in word orders ABCD / CDAB / BADC / DCBA · 64-bit u64 / i64 / f64.> ≥ < ≤ = ≠, in-range / out-of-range, bit test.📖 Full app tutorial (RU):
docs/guide-app-ru.md— connections, polls, rules (incl. named word bits), tags, mimic, archive, OPC bridge.📖 Full simulator guide (RU):
docs/guide-slave-ru.md— quick start, connecting masters, data types, dec/hex/bin display, recipes and troubleshooting. An English version is planned.
localhost:10502, wire it to an RS-485 bus, or poll it with mbSCADA itself..mbp import). Typed write modals encode the value into registers for you: float → two words with the right word order, i16 → two’s complement, hex/bin inputs accepted as 0x…/0b….| Editor with lamps, gauges, bars, live values and toggle-write buttons bound to registers — every widget configurable by double-click… plus the alarm panel and traffic log on the right |
Modbus Poll has no SCADA mode. That is the point of mbSCADA.
{tag} references, p<poll>:<addr> aliases, + - * / % ^, functions min / max / avg / abs / sqrt / round / floor / ceil / pow. Results appear in their own table above the polls (with units and error messages in place), and are archived to CSV together with the live tags.mb-opc, v1.6.0)The same project file, served to any OPC UA client — SCADA masters, historians, MES. The bridge polls Modbus with the same engine as the app and exposes every tag over opc.tcp:
mb-opc --project my-plant.json --listen 0.0.0.0:4840
mbSCADA/<poll>/<row label>, Computed/<tag>, Status/<connection>/online|tx|errors.Boolean, everything else → Double in engineering units (×mult ÷div +offset applied).Good, not read yet → Uncertain (last usable), error → Bad (comm failure); source timestamps come from the engine.write is unscaled (×mult ÷div +offset reversed), split into words in the tag's byte order and sent to the device as FC 05 (coil) / FC 06 (register) / FC 16 (32/64-bit multi-register). Input areas (FC2/FC4) are read-only by design.ns=1;s=p<poll_id>:<addr> (the bridge namespace; its index is what register_namespace assigns — typically 1)), so clients subscribe by id. Security policy is None/anonymous — keep the bridge on a trusted network.mb-opc-* in every release) — next to the app or headless on a gateway.Every table card has a .mbp ↓ button — the table goes back to Modbus Poll:
.mbp and the file is still on disk? The export is byte-exact: the document is re-parsed losslessly, current aliases are edited into their own row markers, and everything else — header, colours, settings blob, v5 IP string — stays byte-for-byte as Modbus Poll wrote it..mbp has no fields for them): scaling (mult/div/offset), units, alarms, computed tags — those live in the app's project JSON.The app checks for a new release on start (silently — a banner appears only when one exists) and updates with one click:
latest.json in GitHub Releases, every artifact is minisign-signed (public key in tauri.conf.json, private key in CI secrets). A tampered artifact is rejected, not installed.Version {v} is available — install now?, you decide..deb/.rpm users update through the package manager)..mbp (single window) and .mbw (workspace with the window list) — one by one or by folder.mbp_doc): the file is segmented (head / row records / closing marker) and reassembled bit-for-bit; editing an alias touches nothing else. Verified byte-exactly against a private real-file corpus produced by Modbus Poll 10.5 (7 files, RU aliases, UTF‑16 markers); CI runs the same test on a public synthetic corpus.[head] magic v4=7000 (v5=10010), IP marker (v5), [144][func][addr][qty]
[row record] × qty marker FF FE FF + len + UTF-16LE alias → PAD 55555555
+ 6× colour u32 (FF000000 AVG) + zeros
[last row + settings] the last row's gap holds the settings blob & tail
[period][slave][1][0][0][…]
[closing marker] final empty marker FF FE FF 00 + trailer bytes
Download an installer for your OS from Releases (see the table above), install — and run mbSCADA.
Requirements: Rust 1.85+, Windows (WebView2 is preinstalled on Win10/11), or Linux with libudev-dev pkg-config libwebkit2gtk-4.1-dev for GUI work.
git clone https://github.com/kostyk348/mbscada-rs.git
cd mbscada-rs
cargo test # 68 engine/proto/format tests
# demo slave (no hardware needed): serves registers on 127.0.0.1:502
cargo run -p mb-sim --example demo_server -- 502
# the app (Tauri 2), raw binary
cargo build --release -p mbscada
# → target/release/mbscada
# or full installers for your current OS
cargo install tauri-cli --version '^2'
cargo tauri build
Launch mbSCADA, «Импорт папки…» your .mbp folder and hit Старт — real Modbus Poll windows appear as polls and start flowing.
┌────────────────────────────────────────────────────────────────────┐
│ Tauri 2 desktop shell (Rust) │
│ src-tauri: dialogs, project JSON, CSV append, engine restarts │
├────────────────────────────────────────────────────────────────────┤
│ UI (vanilla JS) │
│ tables · rules (32) · SCADA editor · watch window · traffic log │
├────────────────────────────────────────────────────────────────────┤
│ crates/ │
│ mb-proto PDU encode/decode · MBAP · RTU+CRC · ASCII ':'+LRC │
│ mb-format .mbp/.mbw parser → lossless MbpDoc → semantic Table │
│ mb-engine multithreaded poller: TCP · RTU-serial · RtuOverTcp │
│ · Ascii-serial · AsciiOverTcp, rules, alarms, trends │
│ mb-sim slave simulator (+ demo_server example) │
│ mb-opc OPC UA bridge: project JSON → opc.tcp tag server │
│ mb-opc OPC UA bridge: project JSON → opc.tcp tag server │
└────────────────────────────────────────────────────────────────────┘
.mbp/.mbw by file and by folder (v0.1).mbp round-trip on a real corpus (v0.4)mb-opc: serves an mbSCADA project over opc.tcp — every poll row and computed tag as a variable with quality and source timestamps, connection status (online/tx/errors) (v1.6.0).mbp ↓ on every table card — byte-exact for imported tables (only alias markers rebuilt), canonical v4 generation otherwise (v1.6.0)timeout-minutes: 30 — a hanging e2e can no longer burn the six-hour job limit (v1.6.0)A shortlist of what would move the project most (roughly in order):
mbscada --service project.json: the desktop engine and mb-opc converge into one daemon with metrics.spike/egui branch to compare memory, latency and packaging; no migration decision until the spike numbers exist.crates/mb-opc/tests/bridge_it.rs is #[ignore]d in CI: without an application certificate the client sometimes retries CreateSession forever, and with certificates on both sides it deadlocks on the first tag read. The bridge itself works with real clients; the in-process e2e needs a deterministic handshake. Run it on demand with cargo test -p mb-opc --test bridge_it -- --ignored --nocapture.Is this a Modbus Poll rip-off?
No. This is a clean-room implementation: the wire protocol is public spec, and the .mbp layout was learned from byte-level analysis of files produced by Modbus Poll 10.5 — no proprietary source code was touched.
What "byte-exact round-trip" means for me? Your Modbus Poll files go in, everything else comes back identical. mbSCADA can edit aliases without regenerating the whole file, so unedited bytes stay exactly as Modbus Poll wrote them.
Does it talk to my devices today? TCP / RTU / RTU-over-TCP are production paths with integration tests. ASCII framing and its serial / over-TCP transports are implemented and unit-tested; wire-side integration testing on real devices is on the roadmap.
Why Rust?
One executable, no runtime, memory-safe poller — and the whole engine is testable headlessly (see cargo test).
Issues and PRs welcome. The engine is test-first: crates/mb-engine, crates/mb-format / crates/mb-proto all have unit suites covering Tauri-free paths — start there.
mbSCADA — Modbus Poll for people who also want SCADA.
Download · Build it · Roadmap · License (MIT)
Pull requests are reviewed against one rule: the description must say what problem it solves and how it was verified — a CI link or a pasted command output.
GitHub からの最終更新:4 時間前
GitHub の数値は1日に数回更新されます。
ログイン または アカウントを作成 するとコメントできます。
まだコメントはありません。最初のコメントを書いてみませんか。
アピールしましょう。順位と評価が載ったライブカードで、自動的に更新されます。
小さいほうがよければ、次を追加: ?style=flat