mabi-modbus

Crates.iomabi-modbus
lib.rsmabi-modbus
version1.0.2
created_at2026-01-25 07:24:44.996604+00
updated_at2026-01-25 09:50:01.851211+00
descriptionMabinogion - Modbus TCP/RTU simulator
homepagehttps://github.com/seadonggyun4/mabinogion
repositoryhttps://github.com/seadonggyun4/mabinogion
max_upload_size
id2068324
size921,913
DongGyun Seo (seadonggyun4)

documentation

https://docs.rs/mabi-modbus

README

mabi-modbus

Modbus TCP/RTU simulator for the Mabinogion industrial protocol simulator.

Overview

High-performance Modbus protocol simulator supporting both TCP and RTU modes with scalable device simulation.

Features

  • Modbus TCP server simulation
  • Modbus RTU (serial) simulation
  • Multiple unit ID support
  • Coils, discrete inputs, holding registers, input registers
  • Scalable to 10,000+ devices
  • Configurable response delays and error injection

Usage

use mabi_modbus::prelude::*;

// Create a Modbus TCP server
let config = ModbusTcpConfig::builder()
    .bind_addr("0.0.0.0:502".parse()?)
    .unit_ids(vec![1, 2, 3])
    .build()?;

let server = ModbusTcpServer::new(config);
server.start().await?;

License

Licensed under the Apache License, Version 2.0.

Commit count: 32

cargo fmt