IMD SolutionComputing LibraryShop main store

Explainer

Connecting Node-RED and FUXA on one edge server

Edge computing and IIoT Published 9 min read

Short answer

Running Node-RED and FUXA on one edge server does not share tags between them; the documented paths are OPC UA and MQTT. Use OPC UA when a side must browse the other's tags and carry typed PLC data both ways, MQTT JSON for event publishing and command topics, and set the publishing intervals from a measured staleness budget rather than switching protocol for speed.

On this page
  1. What one server changes, and what it does not
  2. The two documented paths
  3. What neither path fixes
  4. Worked example: staleness budget for one tag at 500 ms intervals
  5. Turning the co-hosting request into testable interface requirements
  6. Hardening and operating the shared host
  7. The decision for each case
  8. Questions asked

Running Node-RED and FUXA on one edge server consolidates two services onto one box, but it does not connect them: each application keeps its own tag store, and sharing a host creates no shared variable space between them. The documented data paths between the two are OPC UA and MQTT. Take OPC UA when one side must browse the other's tags, subscribe with a granted publishing interval (the worked example below: 200 ms source period + 500 ms publishing interval + 25 ms transport = 725 ms worst case against a 1,000 ms budget) or carry IEC 61131-3 typed PLC data in both directions via an OPC UA Write; take MQTT JSON when the traffic is event publishing outward on a topic and command topics inward. Neither path removes delay caused by the source update rate or the forwarding intervals in the chain, so the integration decision is direction and write access, and the update time comes from a measured budget, not from the protocol you pick.

What one server changes, and what it does not #

Co-hosting changes operations, not data. One host means one operating system to patch, one backup schedule and one set of service accounts. If you install Node-RED natively beside FUXA, identify the Linux base and package manager before you start — the check in identify the Linux base before installing Node-RED natively takes a minute and prevents a broken install. Many edge hosts run both applications as containers instead; even then, each container reaches the other only over a published network port, so the connection is a network path either way.

What co-hosting never creates is a shared tag space. FUXA tags live in the FUXA project; Node-RED values live in message payloads and the Node-RED context store. A deployment report that Node-RED 4.1.11 runs inside FUXA 1.3.4-2881 shows the two products co-exist on one host at those versions; it names no transport, so read it as a hosting result, not an integration result. Embedding ideas — FUXA as a Node-RED plugin, or its screens served through UIBuilder — change packaging and the user interface, not the tag path.

If the motive is retiring a second box, one fanless mini PC sized for two Node.js runtimes, a broker if you take the MQTT path, and disk for both projects carries the combined load.

The two documented paths #

FUXA connects to plant data as a client, and OPC UA and MQTT are among its documented source types; Node-RED reaches the same world through palette nodes for both. An OPC UA connection between the two is the topology users have already run and reported working, and it is the baseline worth benchmarking before anything replaces it.

OPC UA with FUXA serving #

FUXA exposes its tags through an OPC UA server on its service port. Node-RED's OPC UA client node browses that address space, subscribes to the nodes a flow needs, and writes back with an OPC UA Write where a tag is writable. Process values move through the Data Access services, and the subscription's publishing interval — a subscription property the client requests and the server grants — decides how often changes arrive. Run the link with a security policy both ends support, not the unsecured one.

OPC UA with Node-RED serving #

Node-RED can host an OPC UA server node of its own, so FUXA browses and reads values the flows produce. Choose the server node for the hardware you have, following node selection for OPC UA server nodes on edge gateways, and harden the server before it faces the plant network, because it publishes exactly what the flows expose.

MQTT through a broker #

Node-RED publishes each value as JSON on a topic, and FUXA's MQTT client maps topics on the same broker to tags. An example topic and payload for a pump-station level:

{"tag":"wet_well_level","value":2.35,"eng_unit":"m","ts":"2025-06-12T08:14:02.250Z"}

Commands run the other way on their own topic so data and control never share one subject — the pattern is set out in keeping MQTT publish and control topics separate, and the write side, mapping an MQTT JSON message onto a plant tag, is covered in writing plant tags from an MQTT JSON payload. The broker is a new component to run, secure and back up.

Requirement OPC UA path MQTT JSON path
Browse the other side's tags Yes: the client browses the server's address space No: topics are strings you agree on
Typed PLC data IEC 61131-3 elementary types map to OPC UA built-in types You define the JSON fields yourself
Writes or commands OPC UA Write on the node A command message on its own topic
Extra component None beyond the two endpoints A broker both sides reach
Best fit Browsed, bidirectional, structured tag exchange Event publishing and simple command topics

Dedicated node pairs are the exception: node-red-contrib-jsonscada, for example, moves process data in and out of JSON-SCADA through msg.payload with no broker. No equivalent FUXA node pair is documented, so between Node-RED and FUXA the paths stay OPC UA and MQTT.

What neither path fixes #

Update delay is decided in three places: how often the source changes the value (the PLC task or driver poll), how often each hop forwards it (a driver cycle, the OPC UA publishing interval, the broker's forwarding), and the transport time across the network and both protocol stacks. Swapping OPC UA for MQTT, or building a custom WebSocket-and-JSON link, changes only the last term — the source rate and the forwarding intervals travel with the application into the new topology. That is why a protocol change rarely rescues a slow link. Benchmark the existing one first: change one value at the source, timestamp when it appears at the consumer, and repeat under normal load.

Worked example: staleness budget for one tag at 500 ms intervals #

Case: a pumping-station wet-well level must appear in Node-RED within 1 s of a change at the PLC, over the existing OPC UA subscription. The inputs below are example values, not documented figures — read the real ones off the task configuration, the client node's subscription settings and a bench measurement before you trust the sum.

  • Source update period: 200 ms — the PLC task rewrites the tag once per 200 ms cycle.
  • Publishing interval granted on the subscription from FUXA's server to the Node-RED client: 500 ms.
  • Transport and processing between server and client: 25 ms, measured by timestamping the same change at both ends.
  • Requirement: worst-case staleness no more than 1,000 ms.

Rule, in words: a change that lands just after a publish waits one full source period before the server's cached value moves, one full publishing interval before the next notification goes out, then crosses the wire. Worst-case staleness equals source update period plus publishing interval plus transport, assuming no queuing and no lost notifications.

Arithmetic: 200 ms + 500 ms + 25 ms = 725 ms.

Result: 725 ms worst case, 275 ms inside the budget. Sensitivity: every 100 ms added to either interval adds 100 ms to the worst case, and doubling the publishing interval alone takes the sum to 1,225 ms, over budget. The floor is the source: no transport beats the 200 ms source period plus the 25 ms transport, about 225 ms, however fast the link.

Decision: keep the OPC UA path — at these inputs it already meets the budget, and a slower measured link is fixed by tightening the publishing interval, not by changing protocol. Move to MQTT only when you need broker fan-out or the event pattern; it adds the broker's forwarding time to the same sum and buys no staleness.

Turning the co-hosting request into testable interface requirements #

A request like "share all the tags and make it fast" fails at commissioning because it names no test. Convert the common asks into interface requirements with pass marks:

  • Browsing direction. Name which side exposes an address space and which browses it. FUXA serving means Node-RED discovers FUXA tags by browsing; the reverse needs the Node-RED server node. Pass mark: the browsing client lists the expected nodes from a bench host.
  • Data types. List the IEC 61131-3 types the plant's PLCs actually use. The OPC UA companion specification OPC 30000 maps the IEC 61131-3 elementary types to OPC UA built-in types in its Table 27, so BOOL, the integer types and REAL arrive typed on the wire; structured types need their own agreement. Pass mark: one representative value of each type reads correctly at both endpoints.
  • Read-only or writable. Mark every mapping, because a write from a flow reaches a live process — keep it on a command path separated from the data topics and protected like any control write. Pass mark: the write lands on a bench PLC at the right address with the expected scaled value.
  • Bulk setup. If tags move by CSV, define the columns that rebuild a mapping — source address or topic, destination tag, direction, type, scaling — and run an export-import round trip on five tags before trusting it in bulk.
  • Node-RED context. Flow and global context are memory inside the Node-RED process, not a browsable namespace; a value FUXA must see is published deliberately, over MQTT or the OPC UA server node.
  • Platform gaps. A Node-RED link does not give FUXA an ODBC database driver or a scheduler; those stay feature requests on the FUXA side and out of the interface test.

Hardening and operating the shared host #

One host means a compromise of either service reaches the other, so the shared box needs the hardening either would need alone: it sits on the OT side of the network boundary, and each service runs under its own account. On OPC UA, run a security policy both ends support with the client holding its own identity, and when Node-RED is the server side, work through hardening a Node-RED OPC UA server that exposes PLC tags before deployment. On MQTT, terminate the broker listener in TLS rather than plain text and issue per-client credentials, so one compromised client is not every client. Operationally, patch one OS but retest both applications after each patch, keep CPU and disk headroom for two runtimes, and back up the FUXA project and the Node-RED flows directory together, because the integration lives half in each.

The decision for each case #

  • Two tools, one box, no tag exchange needed: co-host and stop — nothing else is required.
  • FUXA tags into Node-RED flows, with browsing and writes: OPC UA with FUXA serving, and the publishing interval set from a measured staleness budget like the worked example.
  • Flow results onto FUXA screens: OPC UA with Node-RED serving for browsed values, or MQTT JSON for events, with commands on their own topic.
  • A link judged too slow: measure before replacing anything; if the budget breaks, tighten the interval first, because the source period sets the floor no protocol beats.

Questions asked

Which Node-RED and FUXA versions are reported to run on one server?

A deployment report pairs Node-RED 4.1.11 with FUXA 1.3.4-2881 and states only that they run together. Treat it as evidence of co-existence at those versions, not of a tag transport, since the report names no connection method. When you upgrade either side, step one version at a time and repeat the browse-and-read test on a bench host before the plant host changes.

Do I need an MQTT broker if I only use OPC UA?

No. The OPC UA path runs directly between the Node-RED client node and the FUXA server, with no broker in the chain. A broker enters only when you take the MQTT path, and then every publisher and subscriber needs a connection to it. Running both paths side by side on one host is a common pattern: OPC UA for browsed, writable tags and MQTT for event publishing.

Does co-hosting make tag updates faster than two separate servers?

Not by itself. Update time is set by the source update period, each forwarding interval in the chain and the transport time, none of which a shared host removes. Two runtimes on one box also share one CPU, so contention can add delay under load. Measure the existing link first; co-hosting buys simpler operations, not lower latency.

Can Node-RED write a value into a FUXA tag?

Yes, on the OPC UA path: the client node issues an OPC UA Write and FUXA passes the value to its source driver. On the MQTT path the same action is a command message on a topic FUXA's client watches, and the mapping is yours to build. Prove either direction against a bench PLC before it touches a live process.

Keep reading

  • How-to

    MQTT to Modbus TCP with Node-RED on an edge gateway

    Yes: Node-RED with the node-red-contrib-modbus package can serve MQTT data to a SCADA client as Modbus TCP. Read the RTU device in Node-RED first, give the Modbus server node a port nothing else owns, and scale each MQTT payload to one integer per holding register before the first end-to-end test.

    Edge computing and IIoT

  • Selection guide

    Node-RED OPC UA server node selection for edge gateways

    Install node-red-contrib-opcua as the pilot OPC UA server package on the first edge gateway, through the Node-RED editor's Manage palette, and keep node-red-contrib-opcua-server as the evaluated fallback. A fleet rollout past a thousand gateways is justified only when the pilot passes the qualification table: server function, real-client interoperability, NodeId stability across restarts, quality behavior, security policy and install reproducibility, all on a recorded software stack.

    Edge computing and IIoT

  • Selection guide

    OPC UA and MQTT dashboard comparison for plant data

    Choose Node-RED when the dashboard only displays MQTT or OPC UA values; both protocols have maintained connector packages for it. Choose a tag-based SCADA platform when operators must write values, acknowledge alarms or open trends under accounts, and Grafana on InfluxDB when stored trends are the whole job. The decision hinges on interaction, not rendering.

    Edge computing and IIoT