OpenGXT homePlan a pilot line
Menu

ISA-95 style MQTT topic namespace builder

Type your enterprise, site, area, line, machine and metric names. The builder returns a plain MQTT topic, two wildcard subscriptions and the Sparkplug B topic for the same signal, and warns about characters MQTT reserves.

For: Controls engineers and IT/OT leads naming signals for MQTT or a unified namespace

A miniature tree twisted from copper wire on a basswood base, its trunk splitting into branches and twigs that each end in a tiny model machine instead of a leaf.

Builder

A fictional example plant is filled in. Type your own names; the topics update as you type. Nothing you enter leaves your browser.

Results

Plain MQTT topic (ISA-95 style)
example-co/casper/packaging/line-2/filler/state
Subscribe to everything on this line
example-co/casper/packaging/line-2/#
Subscribe to this metric on every line in the area
example-co/casper/packaging/+/filler/state
Sparkplug B device data topic
spBv1.0/casper-packaging/DDATA/line-2/filler
Sparkplug B metric name in the payload
state

In Sparkplug B the group, edge node and device form the topic and the metric name travels inside the payload. Here the group is site plus area, the edge node is the line and the device is the cell.

A topic is an address. When the naming pattern is settled before the first tag is mapped, every machine added later lands somewhere predictable, and a report can subscribe to every filler in packaging without a list of exceptions. When it is not, each line gets its own pattern and someone renames topics later while dashboards break.

An ISA-95 style hierarchy

ISA-95, also known as ANSI/ISA-95 or IEC 62264, is an international set of standards for integrating enterprise systems with manufacturing control systems. Part 1, Models and Terminology (updated as ANSI/ISA-95.00.01-2025), describes an equipment hierarchy that runs from enterprise to site to area, then to work centers such as production lines and work units such as work cells. The builder uses five of those levels and adds the name of the value at the end.

ISA-95 does not say how to spell MQTT topics. “ISA-95 style” means borrowing its hierarchy so that every site, area and line is named the same way, which is what makes comparisons across plants possible later (see multi-site operations).

MQTT topic levels and wildcards

MQTT is an OASIS standard publish/subscribe protocol. A topic is a text string split into levels by a forward slash, and a subscriber can use two wildcards:

  • + matches exactly one level.
  • # matches the level where it sits and everything below it, and must come last.

The MQTT specification allows wildcards in subscriptions but not in the topic a device publishes to. That is why no level name may contain +, # or /: a slash quietly adds a level, and a wildcard character makes a name that cannot be published. The builder replaces those characters with hyphens and warns you. It also lowercases names, turns spaces into hyphens and flags non-ASCII characters. Two more rules from the specification: topics are case-sensitive (Line-2 and line-2 are different topics), and topics starting with $ are reserved for the broker’s own use.

Example (fictional). The defaults describe the Line 2 filler of a fictional beverage bottler: enterprise example-co, site casper, area packaging, line line-2, cell filler, metric state. The builder returns:

Output Value
Plain MQTT topic (ISA-95 style) example-co/casper/packaging/line-2/filler/state
Subscribe to everything on this line example-co/casper/packaging/line-2/#
Subscribe to this metric on every line in the area example-co/casper/packaging/+/filler/state
Sparkplug B device data topic spBv1.0/casper-packaging/DDATA/line-2/filler
Sparkplug B metric name in the payload state

The third subscription only finds lines whose machine is also called filler. If Line 3 calls its filler filler-a, it drops out without any error. Consistent cell names are worth more than clever ones.

Sparkplug B topic structure

Sparkplug, from the Eclipse Sparkplug Working Group, defines how industrial data travels over MQTT: a fixed topic structure, a payload format and rules for tracking state. Version 3.0 is also published as ISO/IEC 20237:2023. A Sparkplug B topic has this shape:

spBv1.0/group_id/message_type/edge_node_id/device_id

Birth certificates (NBIRTH for an edge node, DBIRTH for a device) announce every metric with its name, data type and current value when the node or device comes online. Death certificates (NDEATH, DDEATH) mark it offline; the edge node registers its death certificate with the broker when it connects, so the broker publishes it if the connection drops. Data messages (NDATA, DDATA) carry changes, and command messages (NCMD, DCMD) carry writes, which a read-only setup does not use. In the Sparkplug project’s words, “Birth and death certificates provide subscribing clients confidence in data validity”, and Sparkplug “requires no open port for edge of network devices”, which suits a gateway that only connects outbound.

The topic has only three naming positions: group, edge node and device. The builder maps site plus area to the group, the line to the edge node and the cell to the device, and the metric name travels inside the payload. That assumes one edge node, usually one gateway, per line. If one gateway serves a whole area, put the line into the device ID instead (for example line-2-filler). Group, edge node and device IDs follow the same rule as MQTT levels: no +, # or /.

A unified namespace is a pattern, not a standard

A unified namespace (UNS) usually means one broker and one naming tree where every system publishes its current state, so other systems subscribe instead of building point-to-point links. No standards body defines it. It is an architecture pattern assembled from standards (MQTT, often Sparkplug, an ISA-95 style hierarchy), and its value depends on naming rules that are written down and kept.

How to use the builder

The controls engineer and the IT or OT lead fill it in together, before the first tag is mapped. Start with one real machine, then check that both subscriptions return what your reports need. Write the rules down: lowercase, hyphens, the allowed names at each level, and who approves a new one. Record each signal’s topic in the “Source address or node” column of the signal inventory worksheet.

Common mistakes:

  • Putting things that change (product codes, work orders, shift numbers) in the topic instead of the payload.
  • Using asset numbers nobody on the floor recognizes.
  • Starting a topic with a slash, which creates an empty first level.

Where OpenGXT fits

In machine connectivity work, OpenGXT agrees this pattern with your team during the equipment and data survey and delivers it as a topic namespace document, alongside the signal inventory and the connection plan. The machine connectivity checklist lists it as an item to settle early.

Start with one line.

Tell us which line you want to understand and the question you ask after every shift. We reply with questions or a time to walk it with you.