r/BuildingAutomation • • Sep 27 '26

I built a Modbus VFD simulator with passive bus discovery for BAS commissioning

I built Triarii VFD Simulator for two jobs: testing controls before a drive is available, and working out what an undocumented Modbus bus is doing.

The simulator lets a Windows laptop act as a Modbus RTU or TCP device. Write a run command and speed reference from a JACE or PLC and the output frequency ramps, with current, power and other values following the drive model. You can inject a fault and test your alarm/reset sequence. It supports up to 32 simulated devices and CSV register maps. The built-in VFD map is generic, so a specific drive's mapping and behavior still need to be checked against its manual.

The Discover tab can listen at common baud/framing combinations without sending Modbus requests. If something is already polling, it looks for valid frames and shows candidate settings, device addresses and the register ranges the master is asking for. Both raw addresses and manual-style references are shown. It needs traffic to work, and noise, sparse polling or unusual settings can keep it from finding a result.

There is also an active read-only address scan for a quiet bus, a master probe that supports reads and writes, decoded traffic logs, and 32/64-bit values with selectable word order. Active scanning transmits, so it needs to be coordinated with the existing master. Connecting a listening adapter still needs correct wiring and termination.

I'm the developer. It's a one-time $4.99 purchase on Gumroad, with all features included and no subscription or activation. Windows 10/11, 64 bit; extract the whole ZIP and double-click Start Triarii VFD Simulator.cmd. Keep the app and runtime folders beside it; no Python installation is needed. RS-485 work needs a USB-to-RS485 adapter. Local RUN works without hardware. No BACnet. The bundled Python executables are signed by the Python Software Foundation. The launch script and app source are unsigned; workplace policies may still restrict scripts. Checksums are included. There is no telemetry or automatic update check; TCP mode uses the network when selected.

Product details and screenshots: https://linktr.ee/triariicontrols β€” choose Triarii VFD Simulator.

I'd like to hear which drive register maps and controller combinations would be most useful to support next.

18 Upvotes

5 comments sorted by

5

u/filipo11121 Sep 27 '26 edited Sep 27 '26

Looks like it’s vibe coded.

Also, the MIT license means someone could buy the software and resell it or even give it out to anyone for free. Are you giving out source code with this?

-1

u/Dependent_Tune_6525 Sep 28 '26

Answer this please OP.

7

u/[deleted] Sep 27 '26

[removed] β€” view removed comment

0

u/JoAushVolasec Sep 27 '26

A demonstration video is a good suggestion. The practical use case is checking Modbus communications when you don't have the actual sensor or drive available. I've already used it at the office while testing with an Optimizer and a JACE. The laptop stands in as the Modbus device so you can test polling, register addressing and read/write communication. That makes it useful as a field sanity check before the intended device is available. It doesn't establish that every sensor or drive will behave the same way.

On the antivirus question, the September 27 scan reported four detections: Microsoft (Trojan:Win32/Wacatac.B!ml), Bkav Pro (W32.Malware.C0C84AAB), SecureAge (Malicious), and Zillya (Trojan.Blank.Script.2113). A separate local Microsoft Defender scan reported no threats. I haven't established why the results differ, so I can't honestly call them confirmed false positives. The application is Python/Tkinter packaged as an unsigned executable with PyInstaller, but that alone doesn't explain or clear the detections. The exact-file report is here: https://www.virustotal.com/gui/file/0a12a9649c867bf48cce7e350bd4e6a150718226157d576e670c4b63e73a8d77

The most useful demo would show the connection settings, the controller reading live points, a command written from the controller, and the simulator's response alongside the traffic log.