A DataSet is a publisher-defined, logical grouping of Variable Node values from the OPC UA Address Space that are sampled and transmitted together. It serves as the fundamental unit of payload in the PubSub model, decoupling the structure of industrial data from the transport protocol. The DataSetMetaData describes the exact names, types, and order of fields, enabling any subscriber to decode the binary or JSON payload without prior knowledge of the publisher's internal schema.
Glossary
DataSet

What is a DataSet?
A DataSet is a configured collection of field-level data values within an OPC UA Publisher, encoded and transmitted as a single, atomic payload in a PubSub Network Message.
Within the DataSetWriter, the publisher configures how the DataSet is serialized—using UA Binary or JSON Encoding—and assigns it to a specific WriterGroup for network delivery. This mechanism allows a single publisher to aggregate disparate data points, such as temperature readings and actuator states, into a cohesive message for efficient, deterministic distribution over transports like MQTT or TSN.
Key Characteristics of a DataSet
A DataSet defines the logical structure and content of a payload in OPC UA PubSub, abstracting the data from its physical transport. Understanding its core characteristics is essential for designing efficient, deterministic industrial communication.
Field-Level Data Aggregation
A DataSet is a collection of Variable Node values, aggregated from an OPC UA Server's Address Space. Instead of publishing individual value changes, the Publisher groups related data points—such as temperature, pressure, and speed from a single machine module—into one cohesive payload. This reduces message overhead and ensures data consistency by delivering a snapshot of correlated process variables simultaneously.
DataSetMetaData: The Semantic Contract
Every DataSet is described by DataSetMetaData, which provides the schema and semantic context required for a Subscriber to decode the payload. The metadata includes:
- Name and Description: Human-readable identifiers.
- Field Definitions: The name, data type, and engineering units for each value.
- Configuration Version: A version stamp that signals structural changes, ensuring Subscribers can detect and handle schema mismatches gracefully.
Encoding Agnosticism
The logical DataSet is decoupled from its wire format. The same DataSet can be serialized into a Network Message using different encodings based on the transport profile:
- UA Binary: A compact, high-performance format for deterministic field-level communication (e.g., OPC UA FX over TSN).
- JSON: A human-readable format ideal for cloud integration and web-friendly transports (e.g., PubSub over MQTT). This allows a single data definition to serve both real-time control and enterprise analytics.
DataSetWriter: The Publishing Agent
A DataSetWriter is the Publisher's internal component responsible for assembling and sending a specific DataSet. It manages the timing of data collection from the local Address Space and constructs the Network Message. Multiple DataSetWriters can exist within a single Publisher, each handling a distinct DataSet, allowing a single device to publish different data streams at independent rates.
Key Frame and Delta Frame Dynamics
To optimize bandwidth, DataSet messages can be sent as Key Frames or Delta Frames:
- Key Frame: Contains the complete, current value of every field in the DataSet. Essential for initial synchronization and recovery.
- Delta Frame: Contains only the fields whose values have changed since the last message. This drastically reduces payload size for high-frequency, sparsely changing data. Subscribers reconstruct the full DataSet by applying Delta Frames to the last received Key Frame.
Deterministic Cyclic Publishing
For real-time control, a DataSet can be configured for cyclic publishing at a strict, deterministic interval. The DataSetWriter samples the configured Variables at a precise Sampling Offset and publishes the Network Message at a guaranteed Publishing Offset within the communication cycle. This time-aware behavior, fundamental to OPC UA FX over TSN, ensures bounded latency and jitter for controller-to-controller communication.
Frequently Asked Questions
Clear answers to common questions about the structure, configuration, and role of DataSets in OPC UA PubSub communication.
An OPC UA DataSet is a defined, ordered collection of field-level data values, configured within a Publisher, that is encoded and delivered as a single atomic payload in a PubSub Network Message. It works by grouping related Variable values from the Address Space into a structured DataSetMetaData definition. At runtime, the Publisher samples the current values of these fields, encodes them according to a specified DataSetField layout, and hands the resulting binary or JSON blob to the Message Mapping layer for transport. This decouples the semantic grouping of data from the network framing, allowing a single DataSet to be sent over MQTT, AMQP, or OPC UA UDP without altering its internal structure. The subscriber then decodes the DataSet payload back into individual field values, preserving their original data types and timestamps.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Understanding the DataSet requires familiarity with the broader OPC UA PubSub ecosystem and the data structures it connects.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us