Framework
Principles
Why Factory+ exists and the design principles that shape every part of the framework.
Factory+ is a shared infrastructure and a small set of principles for factory data.
Many manufacturers want to use their data for analytics, machine learning and better decisions. They find that every new project spends most of its time getting data out of machines and into the systems that need it. The cause is usually the architecture rather than the technology. Most factories have built up their digital systems one project at a time, with each new system connected directly to the machines and applications it needs. Factory+ replaces this with shared infrastructure and principles so that data is collected once, described consistently and made available to every authorised consumer.
This page explains the motivation for Factory+ and the principles that follow from it. The Architecture page then describes the functions that put these principles into practice.
Motivation
The modern factory promises lower operating costs, better sustainability, higher productivity and more agility. These come from processing real-time and historical data to understand processes and operations. Some organisations adopt data-driven technologies with little difficulty, while others struggle with every project. The difference is usually in the foundations. An organisation whose digital architecture has grown piece by piece ends up with a network of systems that is hard to use, manage and secure. As a result, each new project has to start by working out how to reach the data it needs.
Factory+ sets out a foundation of principles, methods and architecture on which digital tools can be built. A machine or application is connected to the shared infrastructure when it is commissioned, using a standard method. Its data is described with standard models. Later projects find the data already available and do not need to start again. Trying to digitise a factory without this foundation is comparable to trying to run an online business before the internet existed.
Foundations
A scalable and efficient industrial internet of things (IIoT) architecture rests on three foundations: edge-driven communication, infrastructure-centric design and report by exception.
Edge-driven
In an edge-driven architecture, the device or system at the edge of the network decides when to send data. It sends the data as soon as it is available. This has four benefits:
- Latency is lower, because data moves when it changes rather than when a consumer next asks for it.
- Devices use less energy, because they are not answering a constant stream of polls when nothing has changed.
- Central servers carry less load, because they receive changes instead of making repeated requests.
- The network is more secure. Edge devices open outbound connections and do not need inbound ports opened for polling. This reduces the attack surface.
Infrastructure-centric
Infrastructure-centric design connects every device and application to a central infrastructure instead of to each other. The number of connections stays in proportion to the number of participants, and the N² problem is avoided.
The N² problem is the growth in point-to-point connections as an architecture grows. If each of N devices and applications needs a direct connection to every other one, the architecture needs N(N-1)/2 connections. That number grows roughly with the square of N. Every connection has to be set up, secured, monitored and maintained. The effort of managing the architecture therefore grows much faster than the architecture itself.
The problem
The following diagram shows a representative architecture of seven edge devices connected to several systems, including a historian, overall equipment effectiveness (OEE) calculations and a manufacturing execution system (MES).
%%{init: {'flowchart' : {'curve' : 'linear'}}}%%
graph LR
A[MES] -->C[Historian]
A -->D[Dashboard]
A -->E[Digital Twin]
A -->c1[Edge Device 1]
B[OEE] -->C
B -->C
B -->D
B -->E
B -->c2[Edge Device 2]
C -->D
C -->E
C -->c3[Edge Device 3]
D -->E
D -->c4[Edge Device 4]
E -->c5[Edge Device 5]
F[Energy Monitoring] -->c6[Edge Device 6]
F -->c7[Edge Device 7]
c1 --> C
c2 --> C
c3 --> C
c4 --> C
c5 --> C
c6 --> C
c7 --> C
c1 --> A
c2 --> A
c3 --> A
c4 --> A
c5 --> A
c6 --> A
c7 --> A
In this architecture, each new edge device or consuming application adds several new connections. Each connection has its own protocol, credentials and failure modes. Architectures like this are common in organisations that have adopted technology as it became available. Each problem was solved with a new system bolted on to the others. Each system solves the problem at hand, but together they build up technical debt. Technical debt is the cost of choosing a quick solution over a better one that takes longer to build. These architectures also make it hard to upgrade or replace any one application. A delayed upgrade can leave a known security vulnerability in place.
With the 13 participants in the diagram, a design in which every participant talks to every other needs up to 78 connections. Connecting each participant once to a shared infrastructure needs 13.
The solution
In Factory+, each new edge device needs one connection to the infrastructure. The connection uses a standard protocol and a standard onboarding process. Consuming applications and the Factory+ services themselves use MQTT and HTTP interfaces. Through these they reach live data, history, configuration, files and anything else a service provides. Each of these is found through the same discovery mechanism.
graph TB
subgraph Legend
direction LR
start1[ ] -. "MQTT (report by exception)" .-> stop1[ ]
style start1 height:0px;
style stop1 height:0px;
start2[ ] -- "HTTP (request and response)" --> stop2[ ]
style start2 height:0px;
style stop2 height:0px;
end
subgraph fplus [Factory+]
direction LR
id[Identity]
auth[Auth]
dir[Directory]
cs[Configuration Store]
ce[Command Escalation]
mqtt[MQTT broker]
hist[Historian]
files[Files]
da[Data Access]
i3x[i3X northbound interface]
end
subgraph consumers [Data consumers]
direction LR
ds[Dashboard]
dt[Digital Twin]
mes[MES]
em[Energy Monitoring]
etc[Other applications]
end
subgraph edge [Edge devices]
direction LR
c1[Edge Device 1]
c2[Edge Device 2]
c3[Edge Device 3]
c4[Edge Device 4]
c5[Edge Device 5]
c6[Edge Device 6]
c7[Edge Device 7]
end
m{{"Sparkplug and UNS topics"}}<.->mqtt
c1<.->mqtt
c2<.->mqtt
c3<.->mqtt
c4<.->mqtt
c5<.->mqtt
c6<.->mqtt
c7<.->mqtt
m<.->dir
m<.->ce
m<.->hist
id --- auth
auth --> r{{"Service HTTP APIs"}}
dir --> r
cs --> r
ce --> r
files --> r
da --> r
i3x --> r
ds <.-> m
ds <--> r
dt <.-> m
dt <--> r
mes <.-> m
mes <--> r
em <.-> m
em <--> r
etc <.-> m
etc <--> r
Every service follows the same service specification. A client that can authenticate to one service and look up another in the Directory can use all of them. The number of connections stays in proportion to the number of participants as the architecture grows.
Report by exception
Factory+ uses report by exception at the point where data enters the framework. A device reports a value only when it changes. It is not asked for its state across the whole architecture when nothing has changed, sometimes hundreds of times a second. Report by exception reduces network traffic and bandwidth. It leaves the network carrying the changes that matter.
Many industrial devices can only be read by polling, for example over OPC UA or Modbus. Factory+ uses these protocols to collect the data. The aim is to keep polling as close to the device as possible, so that the poll and response traffic stays on a short local link. Only the changes then travel across the wider network. An Edge Agent MAY also apply a deadband to a metric so that changes smaller than a set amount are not reported.
graph LR
subgraph "Edge"
A[Device] -- "OPC UA (poll and response)" --> B[Cell Gateway]
end
B -. "MQTT (report by exception)" .-> C[MQTT broker]
The cell gateway
The cell gateway is the component that keeps polling at the edge. It is a computer at the edge of the network, beside one or more machines. Southbound, it talks to each device over a short point-to-point link, using whichever protocol the device supports. Northbound, it talks to Factory+ with Sparkplug messages over MQTT, sent by exception. The software on the cell gateway that does this is the Edge Agent. The Edge Agent reads devices through protocol drivers.
MQTT and Sparkplug
MQTT is a lightweight publish and subscribe messaging protocol. It is designed for networks with low bandwidth, high latency or poor reliability. Clients connect out to a broker and publish messages to topics. The broker passes each message to every client that has subscribed to the topic. Publishers and consumers therefore never need to know about each other. Because MQTT does not define what a message contains or how topics are named, vendors have historically used it in incompatible ways.
Sparkplug is an open specification from the Eclipse Foundation that fills this gap for industrial use. It defines a topic structure, a binary payload format, and birth and death messages. Birth and death messages tell consumers when a device comes online, what metrics it has and when it goes offline. Factory+ uses Sparkplug B over MQTT as its transport for live data. Factory+ adds its own conventions on top, such as schema and instance UUIDs in every birth message. The Sparkplug conventions page describes them.
One of these conventions departs from Sparkplug B on purpose. Factory+ timestamps carry nanoseconds since the Unix epoch, where Sparkplug B uses milliseconds. Timestamps therefore keep sub-millisecond precision. A consumer tells the two units apart as described in Sparkplug conventions.
Sparkplug payloads are compact but need decoding. For consumers that want readable data, Factory+ also republishes each device’s metrics as JSON in the Unified Namespace (UNS). The UNS topics are built from the device’s place in the ISA-95 hierarchy.
OPC UA as a complement
Many industrial devices already support OPC UA. That raises the question of why Factory+ does not use it throughout. Factory+, like other Sparkplug-based architectures, is designed to work alongside OPC UA. OPC UA polling remains a good way to read raw process variables from a device. An Edge Agent can use it on the short link between the cell gateway and the device. Factory+ differs in what happens next. Instead of carrying large poll and response messages over a web of point-to-point connections, the cell gateway publishes compact Sparkplug messages to every subscribed client only when a value changes.
Data normalisation through schemas
A value is useful only when its consumer knows what it means. Factory+ describes data with normalised schemas written in JSON Schema. Each schema is identified by a UUID. Every Sparkplug birth message declares the schema of the device and of each group of metrics within it. A consumer can then recognise, for example, a three-phase power monitor by its schema UUID, whatever make of meter produced the data. Schemas can include other schemas. Common structures such as device information are defined once and reused.
Engineering units are part of the same picture. A metric’s unit is a string. The unit SHOULD resolve to a UNECE code through the engineering units vocabulary. Two devices reporting the same quantity in the same unit can then be recognised as such.
Standard interfaces
Each Factory+ function is defined by its interface. Any software that implements the interface can provide the function. The service specification sets out what every service has in common. Each service is identified by a well-known service UUID and is found through the Directory. Every service authenticates its clients in the same way and exposes a versioned HTTP API. For applications outside the framework, Factory+ adopts the CESMII i3X interface as its standard northbound API so that consumers can use tools written for i3X without learning a Factory+-specific API.
The architecture is modular because the functions are defined by interface. An organisation can replace one implementation of a function with another, or add plugin services that build on the core functions. Neither change requires changes to the rest of the system or ties the organisation to a single vendor.
Security
Every participant in a Factory+ system is a principal with its own identity. A participant may be a person, a service, an Edge Agent or an application. Services MUST accept Kerberos authentication. Services MAY accept other methods that map back to the same principals, as described in authentication.
Access is controlled by grants held by the Auth service. A grant allows one principal or a group of principals one permission on one target or a class of targets. No grant denies, so anything not granted is refused. Each service checks the grants that apply to a request before it acts. The MQTT broker applies the same model to topics. As a result, the same rules govern who can read data, change configuration or send a command, whichever interface is used. The authorisation page describes the model in full.
Open source and community
The framework specification is public. The AMRC publishes an open-source reference implementation, the AMRC Connectivity Stack, under the MIT licence. Organisations can adopt the framework with that implementation, with their own implementation, or with a mix of the two. Contributions to both are welcome.