Key concepts
This page explains the ideas that the configuration file uses. Read it when a word on another page is not clear.
The gateway has one address space
The gateway runs one OPC UA server, with one address space. The address space is a tree of nodes. An OPC UA client browses this tree. Every section of the configuration file adds to the same tree.
The browse path of Pump1 is /ua:Objects/di:DeviceSet/own:Pump1: the browse names from Objects to the node.
Types come from information models
A type, such as di:DeviceType, comes from an information model (a NodeSet2.xml file).
namespaces: loads a well-known model by its alias, for example di for OPC UA Device Integration.
imports: loads your own NodeSet2.xml file.
See Information models.
Instances are the nodes that you add
An instance is an Object or a Variable that the gateway adds to the address space at start.
instances: gives the list. Each entry has a browse name, a parent and a type.
An instance is not a second server and not a second configuration.
See Instances.
The gateway puts your instances in its own namespace. Its alias is own.
For example, the browse path of the instance Pump1 under the DeviceSet folder is /ua:Objects/di:DeviceSet/own:Pump1.
Templates make many similar instances
A template describes an instance one time. An - expand: entry uses the template many times: for each door, each tank, each motor.
The gateway expands the templates before it loads the configuration.
See Templates.
Connections read the devices
A connection is one entry of a device list in brownfieldDevices:, for example one S7 PLC in s7:.
A connection has a name:. Mapping entries use this name to find the device.
See Devices.
Mapping entries connect one source to one variable
A mapping entry gives the target variable (node:) and one source:
| Source key | The value comes from |
|---|---|
s7:, modbus:, ethernetIp: | One address or one point of a connection. |
value: | A JSONata expression. The expression can combine values from many inputs:. |
file:, folder: | A file or a folder on the disk of the gateway. |
OPC UA connections are different: their mapping entries are in the connection, in opcuaConnections[].mapping.
See Mappings.
Browse paths find the nodes
A browse path is a list of browse names, each with a namespace alias: /ua:Objects/di:DeviceSet/own:Pump1.
The configuration file uses browse paths, not numeric NodeIds. A browse path does not change when the gateway restarts.
See Aliased browse paths.