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
| Word | Meaning |
|---|---|
| browse name | The name of a node in its parent: DeviceSet. |
| namespace alias | The short prefix of a namespace: ua, di, own. |
| browse path | The browse names from a start node to a node, separated by /. |
| anchor | A 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:
- A start. A path that begins with
/starts at the Root node, so the first name isua:Objects:/ua:Objects/di:DeviceSet. A path that begins with$Namestarts at the instance with this anchor. - One or more browse names, separated by
/. - Before each browse name, the namespace alias and
:.
| Alias | Namespace |
|---|---|
ua | The standard namespace of OPC UA. |
own | Namespace 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
- Find the parent of the node, from
/ua:Objects. - Write the browse name of each node on the way, with its alias.
- 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:DeviceSetis the folderDeviceSetof the DI specification./ua:Objects/di:DeviceSet/own:TemperatureSensoris the Object that the first entry makes.- The second entry puts the Variable
Temperatureunder this Object.
How to point to an instance with an anchor
An anchor is a short name for an instance that the configuration makes.
- Optional: set
$anchor:on the instance. Without it, the anchor is the browse name of the instance. - 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
| Where | Key |
|---|---|
| The parent of an instance | organizedBy, componentOf, propertyOf |
| The node of a mapping entry | node |
| The source and the destination of an OPC UA mapping | source, destination |
For the keys, see instances, OPC UA mapping and namespaces and imports.