Skip to content
On this page

Services

i3X northbound interface

Factory+ adopts CESMII i3X 1.0 as its standard northbound interface, with a profile that fixes how Factory+ data appears through it.

13 min read Edit this page
Central services
ACS implementationACS i3X serviceSee how the AMRC Connectivity Stack implements this.View on GitHub

Factory+ adopts i3X 1.0, the Industrial Information Interoperability eXchange specification from CESMII, as its standard northbound interface.

Applications above the shop floor, such as manufacturing execution systems, analytics platforms and dashboards, need to browse a factory’s equipment, read current values and history, and subscribe to changes. If each of them had to learn Sparkplug, the Factory+ schemas and the Factory+ service APIs, every integration would be a custom project, and a tool written for one Factory+ installation would not work with another manufacturer’s system.

i3X is an HTTP and JSON API for browsing typed industrial objects, reading their values and history, and subscribing to changes. A client written for i3X works against Factory+ and against any other i3X server.

i3X defines the shape of the API but not how a particular platform’s data maps onto it. The Factory+ profile of i3X fixes that mapping. It says how the ISA-95 hierarchy, devices, schemas and metrics become i3X objects, types and relationships, how elementIds and engineering units are formed, and who may see what. A client can move between Factory+ installations without change, because two i3X servers that both follow the profile present the same data in the same way.

The i3X specification itself is not repeated here. Its normative documents are the Implementation Guide and Understanding Relationships on the 1.0 branch of github.com/cesmii/i3X. The i3X terms namespace, object type, object, relationship type, elementId, composition and VQT have the meanings the specification gives them.

Conformance

A Factory+ i3X server MUST implement i3X specification version 1.0 and MUST report "specVersion": "1.0" from GET /info. It MUST support every capability that i3X 1.0 makes required, which are the exploratory methods, current values, history and the base subscription methods with sync. A server SHOULD support subscription streaming over server-sent events.

Writing values back through i3X is OPTIONAL, and a server that does not support writes reports false for both capabilities.update flags.

A Factory+ i3X server registers under its own service function UUID, and a client finds it through the Directory in the same way as any other Factory+ service. As i3X requires, the i3X routes are under /v1 at the URL the Directory gives.

Servicei3X
018854a1-a312-46d3-b904-c274b59088c7
The service function UUID of the i3X northbound interface.

As i3X requires, GET /v1/info MUST NOT require authentication. Every other route MUST authenticate the caller in the way the authentication page defines for every Factory+ service. The accepted methods are Kerberos through HTTP Basic or Negotiate, a bearer token from the service’s POST /token, and an OpenID Connect token carrying fp_principal_uuid where the installation offers it. These methods are consistent with i3X, because i3X leaves the authentication scheme to the server.

What the server exposes

A Factory+ i3X server serves the Unified Namespace. A device is in the i3X address space when it has an ISA-95 placement, because only a placed device is published to the UNS. Its place in the i3X hierarchy comes from that placement, resolved through the ISA-95 vocabulary, and never from free text in the device’s own configuration. A device with no placement is not served, and a device that loses its placement leaves the address space with its values.

The structure of each device comes from the Configuration Store. The device’s origin map gives its branches and metrics and the schema of each branch. The origin map is the device’s Device Information config, described on the Edge Agent page. The device’s General Information name gives its display name. A server MAY also add objects for topics that appear on the UNS for a served device but are not defined in the device’s configuration.

Current values come from the UNS. History comes from the UNS history that the Historian keeps, and the history of a device therefore starts when the device first appeared on the UNS. A dataset of a device and its i3X history agree, because a UNS dataset in Data Access holds the same history.

The address space

Namespace

A server has one namespace that holds every object type and relationship type it serves. The installation chooses the namespace URI and display name, and they identify the installation. Each object’s typeNamespaceUri metadata is this URI.

Objects

Every object in the address space is one of four kinds.

KindWhat it istypeElementIdisCompositionelementIddisplayName
ISA-95 levelOne Enterprise, Site, Area, Work Center or Work Unit above the devicesisa95-levelfalseDerived from the level’s path (see elementIds)The vocabulary node’s name
DeviceA Factory+ deviceThe device’s top-level Schema_UUIDtrueThe device UUIDThe device’s General Information name
BranchAn object inside a device, such as an axis or a sensor, that holds metrics or further branchesThe branch’s Schema_UUID, or unknown if it has nonetrueThe branch’s Instance_UUID, or a derived UUID if it has noneIts key in the origin map
MetricOne metric, which is a leafmetric-number, metric-boolean, metric-string or metricfalseThe metric’s Instance_UUID if it has one, or otherwise a UUID derived from its parent and keyIts key in the origin map

A device’s parentId is the elementId of the deepest ISA-95 level it is placed under. A level’s parentId is the level above it. An Enterprise level is a root object, and its parentId is null. A branch or metric’s parentId is the device or branch that holds it. isExtended is false for every object.

Object types

The object types are the Factory+ schemas that the served devices use, plus six types that this profile defines.

  • A schema type has the schema UUID as its elementId and its sourceTypeId. Its displayName is the schema’s name, taken from its General Information name or else its title. A device or branch with that Schema_UUID has the schema as its type. A server lists the schemas referenced by the devices it serves.
  • isa95-level is the type of every ISA-95 level. Its display name is ISA-95 level and its schema is { "type": "object" }.
  • unknown is the type of a branch with no Schema_UUID. Its display name is Unknown type and its schema is { "type": "object" }. It is the profile’s name for the placeholder that i3X calls UnknownType.
  • metric-number, metric-boolean and metric-string have the scalar schemas { "type": "number" }, { "type": "boolean" } and { "type": "string" }. metric has the empty schema {}.

Because i3X requires the value of an object to conform to its type’s schema, the schema of a schema type MUST describe the values a client reads for objects of that type, not the Factory+ schema as it is stored. The server derives it from the Factory+ schema.

  • Each metric the schema defines becomes a property whose schema is the scalar schema of that metric’s i3X type, from the table below. The property is declared nullable because a metric can have no value.
  • Each branch becomes a property whose schema is the derived schema of the branch’s own type.
  • References to other schemas MUST be inlined. A client then receives the full shape of the value from one type.

Each object type SHOULD carry a version, as i3X recommends. A schema type takes it from the integer version in the schema’s Schema information entry (see Data schemas), written as "<version>.0.0". A Factory+ schema that changes in a breaking way gets a new schema UUID, so a client sees it as a new type and the version moves only for compatible changes. The six types this profile defines have the version "1.0.0".

A metric takes its type from its Sparkplug type, not from its Schema_UUID, because i3X requires a value to conform to its type’s schema and a metric’s Schema_UUID names the Factory+ Metric schema. That schema describes how the metric is configured rather than the shape of its value. Any LE or BE suffix on the Sparkplug type is ignored.

Sparkplug typei3X type
Float, Double, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64metric-number
Booleanmetric-boolean
String, Text, UUIDmetric-string
Any other typemetric

Relationship types

The server serves the four relationship types that i3X defines: HasParent, HasChildren, HasComponent and ComponentOf. They are in the server’s own namespace, with the reverses that i3X gives them.

  • An ISA-95 level HasChildren the levels and devices directly below it, and each of them HasParent that level. A level is an organising container and not a composition, because the devices under it are independent objects with their own values.
  • A device HasComponent each branch and metric directly inside it, and each of them is a ComponentOf the device. A branch is related to its own branches and metrics in the same way. A device and its branches are therefore compositions, and the value of a composition is made of the values of its components.

As i3X requires, every relationship is served in both directions, and a client can walk the whole graph from any object with POST /v1/objects/related.

flowchart TD
    E["Enterprise (isa95-level)"] -- HasChildren --> S["Site (isa95-level)"]
    S -- HasChildren --> W["Work Center (isa95-level)"]
    W -- HasChildren --> D["Press_1 (device, schema type)"]
    D -- HasComponent --> X["Axes (branch, schema type)"]
    X -- HasComponent --> P["Position (metric-number)"]
    D -- HasComponent --> C["Current_AC (metric-number)"]

ElementIds

i3X asks for elementIds that stay the same for the same element. This profile fixes them, so two servers that serve the same Configuration Store give the same elementId to the same object.

  • A device uses its device UUID, which is also its top-level Instance_UUID.
  • A branch with an Instance_UUID uses it.
  • A branch or metric without an Instance_UUID uses the version 5 UUID of the string <parent elementId>:<key> in the namespace 11ad7b32-1d32-4c4a-b0c9-fa049208939a, where <key> is its key in the origin map. The same rule applies to objects that a server adds from UNS topics.
  • An ISA-95 level uses the version 5 UUID of the string isa95:<parent>:<name> in the same namespace, where <name> is the level’s name and <parent> is the elementId of the level above, or / for an Enterprise. A level is shared by every device under it and stays while any device is placed under it.

For example, an Enterprise named Example Co has the elementId 103030a6-7c30-5bad-90dc-424c5ec29b12, the version 5 UUID of isa95:/:Example Co. Because a level’s elementId comes from its name and the names above it, renaming or moving a level in the ISA-95 vocabulary gives it a new elementId.

Values and quality

Values follow i3X’s rules for VQTs, which carry a value, a quality and a timestamp. A metric that has a value reports it with quality Good. An object that exists but has no value reports null with GoodNoData, and only an elementId that is not in the address space, or that the caller may not see, is a 404.

  • A composition, which is a device or a branch, has no value of its own. Its own value is null with GoodNoData, and its data is in components. maxDepth follows HasComponent only, with the meanings i3X gives it. At the default maxDepth of 1, a read returns no components. At a greater depth, components holds the direct components of the element, keyed by elementId, and a branch among them carries its own components while the depth allows.
  • An ISA-95 level is not a composition, so a read of a level gives null with GoodNoData and never follows HasChildren. A client reads the devices under a level by their own elementIds.
  • History is served for metrics. A composition has no history of its own, so a history read of a device or branch returns an empty list of values and a client reads the history of each metric by its own elementId.

Metadata and engineering units

If a client asks for includeMetadata, each object carries three metadata fields.

  • typeNamespaceUri is the server’s namespace URI.
  • sourceTypeId is the same as the object’s typeElementId.
  • relationships gives the elementIds at the other end of the object’s edges, by relationship type.

A metric with an engineering unit also carries two unit fields, because Factory+ and i3X describe units differently. In Factory+, a metric’s Eng_Unit is a free string that SHOULD resolve to a UNECE Recommendation 20 code through the engineering units vocabulary. The i3X specification asks for UNECE codes.

  • metadata.engUnit is the UNECE code of the unit that the metric’s Eng_Unit string means in the vocabulary. If the vocabulary does not know the string, there is no engUnit, because a server must not put anything but a UNECE code there.
  • metadata.system.Eng_Unit is the Eng_Unit string exactly as configured.

For example, the vocabulary may map the symbol °C to degrees Celsius. A metric configured with Eng_Unit °C then has "engUnit": "CEL" and "system": { "Eng_Unit": "°C" }.

Access control

A Factory+ i3X server MUST check every request against the caller’s grants of the Read i3X objects permission, and a caller sees only the devices they may read. Object types, relationship types and namespaces are not filtered, because they describe the shape of the data rather than the data.

PermissionRead i3X objects
d24495fd-72a3-41cd-8b9f-f4ebabdade44
See a device, and every branch and metric inside it, through i3X.
Permission groupi3X permission
6e00fd2b-1d57-4b78-96e1-9f789bbe1c52
The group that holds the i3X permissions.

A caller sees a device, and everything inside it, when they hold Read i3X objects on any of these targets.

  • The device itself.
  • A class the device is a member of, through a plural grant. The Auth service expands the grant to the class’s members.
  • An ISA-95 vocabulary node the device is placed at or under. The grant covers devices placed there later and follows a device that moves.
  • The wildcard target. It covers every device.

An ISA-95 level is visible when it is at or under a granted node, or when a visible device sits below it, and the path down to every visible device can therefore be browsed. A level’s other children stay hidden.

Every route MUST answer for a hidden object exactly as for one that does not exist, with 404 alone or 404 for that item in a bulk request, so a caller cannot find out what exists beyond their grants.

A subscription follows its owner’s grants as they change, and a revoked grant stops delivery at once, including updates already queued.

If the server cannot reach the Auth service to read a caller’s grants, it MUST answer 503 and MUST NOT treat the failure as a grant.

The Device data composite permission holds Read i3X objects and Data Access’s Build datasets from device, so a single grant of it on a device, or on an ISA-95 node, lets a person browse the devices in i3X and build datasets from them.

Subscriptions

i3X scopes a subscription to the client’s clientId. A Factory+ i3X server also scopes it to the authenticated principal that created it. One principal can never read or change another principal’s subscription, even with the same clientId, and a subscription delivers only objects its owner may see.

Registering a device or a branch delivers changes to the metrics inside it, following maxDepth as i3X defines it, and each change arrives under the metric’s own elementId. Registering an ISA-95 level delivers nothing from the devices under it, because a level is not a composition.

Extensions

This profile adds one field to i3X and changes nothing else. If a server limits how deep a composition value read can go, it reports the limit as capabilities.query.maxDepthCap in GET /v1/info. A read that asks for more than the limit, or for maxDepth 0, is answered to the limit with status 206 and a responseDetail that says so, as i3X requires for a partial result.

Esc