Skip to content

Inowio Modbus Workbench v0.4.0

Choose a tag to compare

@github-actions github-actions released this 05 Jul 10:34
dc2471c

Added

  • TCP Simulator (Modbus TCP server). Turn the workbench into a Modbus TCP
    server so external masters (SCADA/PLCs/test tools) can poll and write the app
    as virtual devices. Serves all four banks — Coils (0x01), Discrete Inputs
    (0x02), Holding (0x03/0x06/0x10), and Input (0x04)
    — across multiple Unit
    IDs on one port. Start/Stop with an Expose toggle (LAN 0.0.0.0 / Local only
    127.0.0.1), a configurable port, and a status dashboard (Exposed / Accessible
    At / Connected Clients / Tick Interval) plus a footer strip.
  • Register value sources: Hold (fixed, live-editable), Device presets
    (temperature, humidity, pressure, flow, vibration, analog, discrete, counter),
    Generators (sine, ramp, decrement, step, random, toggle), and Route.
    Data types u16/i16/u32/i32/f32/u64/i64/f64 with byte order
    (ABCD/BADC/CDAB/DCBA) and per-register update intervals; live values stream to
    the UI.
  • Route from slave (Modbus gateway). Mirror a live value read from a
    connected real slave (serial RTU or TCP) with scale/offset transforms and
    an optional source byte order, and an ok/stale/missing source-status badge.
    The simulator now opens the source connection itself on Start (reusing an
    already-open shared connection), so routing no longer requires the Slaves page
    to be actively connected.
  • Automation rules — trigger (interval / register condition / on client
    write) → one or more actions (set/inc/dec/toggle/copy/randomize) with an
    optional per-action delay and multi-word/typed targets. Rules run once
    per tick in sort order after generators/routes update.
  • Activity tab — server uptime, a connected-clients list (address + duration),
    and a rolling event log (started/stopped, client connect/disconnect).
  • Profile export / import — snapshot a workspace's entire simulator setup
    (config + devices + registers + rules) to a file and restore it later
    (workspace-specific; import requires the server stopped).
  • Virtual Devices — a top-level tab (beside Workspaces) for reusable,
    app-global device blueprints shared across every workspace's simulator:
    • A built-in catalog plus fully editable custom devices; built-ins are
      immutable and can be Cloned & edited or exported only.
    • A device builder with name/key/category/description, a searchable
      icon picker
      , and a register map whose per-register parameters switch
      between a Form view and a raw JSON view.
    • Add Device wizard in the simulator instantiates a device at a chosen
      Unit ID + base address, with a register-map preview and collision check.
    • Save as virtual device — promote a configured live simulator device into
      the catalog (pre-filled in the builder, key clash-guarded).
    • Expose a real slave as a routed device — a "Workspace" category in Add
      Device turns any of the workspace's slaves into a one-click routed gateway.
    • Export / import a device as a self-contained .json for community
      sharing, via native file dialogs.

Changed

  • TCP Simulator: a tabbed workspace (Registers, Devices, Rules, Live Values,
    Activity) with a status dashboard, register search/filter/columns/pagination,
    the Add-Device wizard, and a right-hand register inspector (live sparkline,
    Duplicate, persisted Unit/Display Format). Header buttons for Profile
    export/import. Sidebar collapse state now persists across restarts.

Fixed

  • Expose a real slave as a device now works for slaves that have coil or
    discrete-input registers. Those bit-bank registers are mapped to the correct
    u16 (0/1) route type instead of bool, which the register validator
    rejected — previously the whole "add slave as device" action failed for any
    slave with a coil/discrete register.
  • Editing a running simulator register to a narrower data type (e.g. f64
    → u16) no longer leaves stale "ghost" words being served at the vacated
    addresses; the previous span is cleared before the new value is seeded.
  • Duplicating a register now searches for a free slot span-aware: it accounts
    for every existing register's full word span (not just its start) and places
    the copy's whole span in a free, in-range gap, so duplicating a multi-word
    register no longer lands inside another register's tail (and reports clearly if
    the map is full).
  • Manually adding or editing a multi-word register (and importing a Profile)
    now rejects configurations whose word span would overlap another register,
    closing a silent live-bank corruption path that the address-only uniqueness
    check missed.
  • A multi-word register can no longer be placed so its span runs past address
    65535 — an f64 near the top of the map used to wrap its tail words back to
    address 0. Such registers are now rejected on add, edit, and Profile import.
  • The Help button now opens the section for the page you're on — TCP
    Simulator, Virtual Devices, Slaves, Analyzer, etc. — instead of always the
    overview.
  • Deleting a simulator rule now asks for confirmation (parity with register
    and device deletes).
  • Custom dropdown menus (the Registers Columns chooser and the Analyzer tile
    menus) now close on Escape and on an outside click.
  • The register-map Add Device wizard trimmed to two steps (removed the Review
    step); Prev/Next pagination controls use icons.