Skip to main content

Aliased browse paths

An aliased browse path names a node by the browse names of the nodes on the way to it. Each browse name has a namespace alias before it: /ua:Objects/di:DeviceSet/own:Pump1. The configuration file uses aliased browse paths to point to the parents of instances, to the nodes of mapping entries and to the source and destination of OPC UA mappings.

Words on this page​

WordMeaning
browse nameThe name of a node in its parent: DeviceSet.
namespace aliasThe short prefix of a namespace: ua, di, own.
browse pathThe browse names from a start node to a node, separated by /.
anchorA name that starts with $. It points to an instance that the configuration makes: $SA.

Why use an aliased browse path​

A node id such as ns=2;i=1234 depends on the order of the namespaces in the server. This order can be different in two servers. An aliased browse path does not depend on this order.

  • The path shows the structure of the address space.
  • The same path works in the gateway and in a remote OPC UA server.
  • The gateway translates the alias to the namespace index.

The form of a path​

A path has these parts:

  1. A start. A path that begins with / starts at the Root node, so the first name is ua:Objects: /ua:Objects/di:DeviceSet. A path that begins with $Name starts at the instance with this anchor.
  2. One or more browse names, separated by /.
  3. Before each browse name, the namespace alias and :.
AliasNamespace
uaThe standard namespace of OPC UA.
ownNamespace 1. The nodes that instances: makes are in this namespace.
di, machinery...A companion specification that namespaces: lists.
An alias from imports:The model of the imported NodeSet2.xml file.

The alias of a browse name in the model under construction is optional. For a browse name from another namespace, the alias is required. A browse name of the namespace ua must have the alias ua:.

A node id, for example ns=1;s=MyVariable, is also accepted where the configuration expects a node.

How to point to a node​

  1. Find the parent of the node, from /ua:Objects.
  2. Write the browse name of each node on the way, with its alias.
  3. Separate the names with /.
namespaces:
- di
instances:
- browseName: TemperatureSensor
typeDefinition: ua:BaseObjectType
organizedBy: /ua:Objects/di:DeviceSet
- browseName: Temperature
componentOf: /ua:Objects/di:DeviceSet/own:TemperatureSensor
dataType: ua:Double

In this example:

  • /ua:Objects/di:DeviceSet is the folder DeviceSet of the DI specification.
  • /ua:Objects/di:DeviceSet/own:TemperatureSensor is the Object that the first entry makes.
  • The second entry puts the Variable Temperature under this Object.

How to point to an instance with an anchor​

An anchor is a short name for an instance that the configuration makes.

  1. Optional: set $anchor: on the instance. Without it, the anchor is the browse name of the instance.
  2. Write $ and the anchor at the start of the path: $MainRobot/di:ParameterSet.

If two instances have the same browse name, the gateway adds a number to the anchor of the second one. When you use templates, a $Name anchor must point to one instance. See templates.

Where the configuration uses a browse path​

WhereKey
The parent of an instanceorganizedBy, componentOf, propertyOf
The node of a mapping entrynode
The source and the destination of an OPC UA mappingsource, destination

For the keys, see instances, OPC UA mapping and namespaces and imports.