Beckhoff TwinCAT OPC UA to MQTT & Timeseries Edge Gateway

Harvest machine data from Beckhoff TwinCAT 2 and TwinCAT 3 (TF6100) Industrial PCs and publish to MQTT or Sparkplug B with microsecond timestamp fidelity and zero Windows DLL dependencies.

Industrial Friction Solved

Running Node.js or Python scripts alongside TwinCAT PLC tasks introduces unpredictable V8 garbage-collection jitter. opcua2mqtt runs in pure Rust with <50MB RAM and deterministic 10ms+ polling.

TwinCAT TF6100 Configuration

[opcua]
url = "opc.tcp://192.168.1.100:4840"
security_policy = "Basic256Sha256"

[[opcua.nodes]]
id = "ns=4;s=MAIN.fAxisPosition"
alias = "cnc/axis_pos"

[mqtt]
broker = "tcp://mosquitto:1883"
topic_prefix = "beckhoff/cx5140"

Frequently Asked Questions

Do I need TwinCAT ADS DLLs installed? No. opcua2mqtt communicates standard IEC 62541 OPC UA directly with TwinCAT TF6100, running natively on Linux, TwinCAT/BSD, or Docker.

Beckhoff TwinCAT Docs | Pro License (€490)