Explainer
Ignition Gateway modules needed to display MQTT data
Short answer
To display MQTT data from your PLC in Ignition clients, install the MQTT Engine module on the Ignition Gateway and point it at your existing Mosquitto broker. Sparkplug B payloads become tags with no extra mapping; raw or JSON payloads need Custom Namespace definitions. No web-service module is required, and nothing extra goes on the client computers.

On this page
- What the broker does, and what it cannot do
- The module set: install MQTT Engine, skip the rest
- Pointing MQTT Engine at the existing broker
- Sparkplug B payloads map themselves
- Raw and JSON payloads go through Custom Namespaces
- When the Engine connects but no tags appear
- The minimal setup, decided
- Questions asked
Your Mosquitto broker is already doing its job: it routes the PLC's published messages to any authorized subscriber. What the Ignition side is missing is that subscriber — the component that turns incoming MQTT messages into Gateway tags clients can bind to. That is one module: MQTT Engine. Install it on the Ignition Gateway, point its connection at the broker host and listener the PLC already publishes to, and choose the namespace handling that matches the payload. Sparkplug B payloads become tags with no extra mapping; raw or JSON payloads need Custom Namespace definitions that name the topics and map each field to a tag. No web-service module belongs on this path, and the Designer and clients need nothing extra, because they read the tags MQTT Engine creates. The sections below cover both payload routes, the connection settings and the checks when tags do not appear.
What the broker does, and what it cannot do #
An MQTT broker is a message router. It accepts publishes from the PLC and delivers each message, unchanged, to every subscriber whose topic filter matches. It stores nothing about industrial meaning: an MQTT message is a topic string and a body of bytes, and nothing in the protocol turns that body into a tag.
Ignition tags live on the Gateway, and clients display tag values through the Gateway. The missing function therefore sits between the broker and the tag provider: a Gateway-side subscriber that parses the payloads and maintains tags from them. Without it, no amount of broker tuning, extra broker instances or client configuration will make the data visible.
That fixes the minimal component list: the Gateway you already run, the MQTT Engine module, and a decision about the payload format. The broker stays exactly where it is.
The module set: install MQTT Engine, skip the rest #
| Component | Role in this data path | Decision |
|---|---|---|
| Existing Mosquitto broker | Routes PLC publishes to subscribers | Keep it; authorize the Gateway session to subscribe |
| Ignition Gateway | Hosts the tags and serves the Designer and clients | Required — you already run it |
| MQTT Engine module | Subscribes to the broker and creates tags from payloads | Required — the one addition |
| Web-service module | Serves or consumes web-service endpoints; does not subscribe to MQTT | Not needed to display MQTT data |
| In-Gateway broker module from the same vendor | Runs an MQTT broker inside the Gateway | Not needed while an external broker runs |
MQTT Engine is a third-party module versioned against specific Gateway releases. Install the build that matches your Gateway's release line: the module vendor groups downloads by Gateway release and publishes release notes and a compatibility matrix for each — for example, the download page for Gateway release 8.1.27 collects the current signed module builds for that line, and Ignition verifies the module's code signature at installation.
Confirm the module's licensing status on that Gateway before you commission the display path. A clean installation proves the module loaded; it does not prove the broker connection, the subscriptions or the tag mapping work.
Pointing MQTT Engine at the existing broker #
In the Engine's connection settings, enter the broker host, listener port and transport security the PLC publisher already uses. Mosquitto's standard listener is TCP port 1883, or TCP port 8883 when the listener runs TLS; read the actual values from the broker's listener configuration instead of assuming either default. Test reachability from the machine that runs the Gateway, because the Gateway is the subscriber here and connectivity from an operator's workstation proves nothing about it. The broker's access rules must let that session subscribe to the PLC's topic tree, not merely connect.
Keep this link inside the OT network segment: the MQTT listener is a control-network service, so do not forward it across the IT boundary, and terminate TLS at the broker with a certificate the Gateway host trusts.
Sparkplug B payloads map themselves #
If the PLC — or an edge device sitting in front of it — publishes Sparkplug B, MQTT Engine handles the payload natively and no namespace definitions are needed. Sparkplug B defines a lifecycle over MQTT: the publisher announces its complete metric set in a birth certificate when it comes online, then sends data messages that carry only the metrics whose values changed, with aliases that resolve to the full metric names. The Engine turns the birth into tag structure, applies each data message as tag updates, and marks the node's tags stale on a death certificate.
Use this path whenever the publisher already supports it, because it removes the mapping work entirely. The encoding is documented page for page in a guide to decoding Sparkplug payloads and resolving aliases. If a publisher or broker is ever moved, the reconnection is only complete once the node re-births; when that step fails, work through why Sparkplug rebirth fails after switching brokers.
Raw and JSON payloads go through Custom Namespaces #
A JSON payload is a serialization format, not a tag model: a readable object full of process values still defines no tags until you say which topics carry it and how each field maps. That is the Custom Namespaces function inside MQTT Engine. You define the topic filter, the payload parsing and the field-to-tag mapping, choose tag types deliberately, and decide what happens to a malformed message. Keep numeric values as numeric tags rather than display-only strings.
Topic filters are case-sensitive, and a filter that matches one level of the topic hierarchy will not match another. When definitions are in place and still produce no tags, the causes are almost always filter, field-name or type mismatches; work through why MQTT Engine custom namespaces create no tags.
Worked example, with illustrative numbers — the cadence and field counts are this line's settings, not module limits. A line runs six stations, each publishing once per second to its own topic, for example line1/station3/sensors, a JSON object with eight numeric fields. Mapping every field creates 6 × 8 = 48 tag updates per second, which is 48 × 3,600 = 172,800 updates per hour at the Gateway. If the screens and the historian use three of the eight fields, map those three only: 6 × 3 = 18 updates per second, or 64,800 per hour — (48 − 18) / 48 = 62.5% less update load, which is arithmetic, not a published figure.
When the Engine connects but no tags appear #
Read three separate states, in order: the Engine's session is connected, the target messages are arriving, and tags are being created. A connected session answers only the first.
To check the second, subscribe independently — the command-line client that ships with Mosquitto works — trigger a known process-value change at the PLC, and confirm the expected topic and payload arrive. If nothing arrives, the fault is upstream of Ignition: publisher status, topic spelling, broker authorization or the network path, the same sequence used when troubleshooting an S7-1500 MQTT connection to a Mosquitto broker. Compare topic spellings against the subscription definitions character for character, including case; MQTT offers no topic inventory, so discovery depends entirely on publications and subscriptions. If the PLC's messages are malformed, the broker may reject the packets and drop that client's session; when the broker log shows that, work through why a Mosquitto broker logs malformed packet on a PLC MQTT client.
If messages reach the Engine but tags are missing or wrong, the fault is in decoding and mapping: compare field names, nesting and value types against the namespace definitions, or the birth sequence against the publisher's configuration.
The minimal setup, decided #
- Payload is Sparkplug B: Gateway plus MQTT Engine, pointed at the existing broker host and listener. Tags appear per the publisher's birth data; nothing else to install.
- Payload is raw or JSON: Gateway plus MQTT Engine, plus Custom Namespace definitions for the topic tree. Map the fields the displays and the historian actually use.
- Payload format unknown: capture one message with an independent subscriber before configuring anything, and let the payload — not a module list — decide between the two routes above.
- Web-service module: add it only when a web-service integration path is needed; it plays no role in displaying MQTT data.
Questions asked
Do I need to replace Mosquitto with a broker inside the Ignition Gateway?
No. MQTT Engine subscribes to any MQTT broker the Gateway can reach, so your existing Mosquitto keeps its role. The module vendor also sells a module that runs an MQTT broker inside the Gateway, which suits sites that want no separate broker process. Adopting it means repointing the PLC publisher and the Engine connection to a new listener, so most sites keep the broker they have.
Does anything need to be installed on the client computers?
No. Ignition clients and the Designer read tag values from the Gateway over its own client connection, and none of them speaks MQTT. Whether your clients run as Vision or Perspective sessions makes no difference. Once MQTT Engine creates the tags, you bind display components to them exactly as you would to tags from any other driver.
Can more than one Ignition Gateway display the same broker's data?
Yes. MQTT is publish and subscribe, so the broker delivers each published message to every authorized subscriber session. A second Gateway needs its own MQTT Engine installation, its own connection to the same listener and its own module entitlement, and it builds tags independently according to its Sparkplug or namespace handling.
Will tags hold their values if the broker connection drops?
Tags hold their last received value while the connection state reports the loss; no new values arrive until the link returns. With Sparkplug, the publisher must send its birth certificate again after reconnecting before data messages flow. With Custom Namespaces, values resume as soon as publishes resume on the mapped topics.
Does MQTT Engine read data from the PLC directly?
No. On this path it has no PLC driver role: it subscribes to the broker and parses what the PLC publishes. The PLC needs its own MQTT publisher capability, or an edge device between PLC and broker that publishes on its behalf. If the PLC cannot publish MQTT, no Gateway module will make the data appear.


