Uniqueness of browse names|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Uniqueness of browse names
Avatar
Svetoslav Ivanov
Member
Members
Forum Posts: 4
Member Since:
08/31/2020
sp_UserOfflineSmall Offline
1
08/31/2020 - 14:20
sp_Permalink sp_Print

Hello! We have a discussion in our company about the browse names uniquness and where the browse name should be unique, because maybe we missunderstand the specification.

Can someone expalin in simple lines when the browse name should be unique?

I have a example, if we have a Node (which is Object) and we add to it componendOf 2 another nodes, this two nodes should have unique names or not?

Thanks in advance!

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
09/01/2020 - 08:22
sp_Permalink sp_Print sp_EditHistory

1) The targets of HierarchicalReferences from ObjectTypes and VariableTypes to InstanceDeclarations shall have unique BrowseNames;

2) The targets of HierarchicalReferences from InstanceDeclarations shall have unique BrowseNames;

3) The targets of HasProperty references from all Nodes shall have unique BrowseNames;

4) The targets of NonHierarchicalReferences have no uniqueness requirement;

5) The targets HierarchicalReferences from Instances have no uniqueness requirement;

An InstanceDeclaration is an Instance which is a target of a HierarchicalReference from a ObjectType, VariableType or another InstanceDeclaration and has a HasModellingRule reference defined.

Avatar
Martin Lang
Germany
Member
Members
Forum Posts: 72
Member Since:
06/25/2014
sp_UserOfflineSmall Offline
3
09/02/2020 - 05:46
sp_Permalink sp_Print

So it is allowed to reference for example

DeviceSet

   –> HasComponent –> 4:IOLinkMaster

   –> HasComponent –> 4:IOLinkMaster

   –> HasComponent –> 4:IOLinkMaster

with same NamespaceIndex and (BrowseName-)Text?

If yes, the reason is that the DeviceSet is from the BaseObjectType?

TIA

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
09/02/2020 - 20:45
sp_Permalink sp_Print

Yes DeviceSet can have multiple targets with the same BrowseName.

So can any other instance and it is not prevented by the TypeDefinition.

The exceptions are HasProperty references which must be unique.

Note the special behavior of TranslateBrowsePathsToNodeIds which explains how to handle duplicate names that conflict with a name defined by a TypeDefinition: https://reference.opcfoundatio…..rt4/5.8.4/

If a Node has multiple targets with the same BrowseName, the Server shall return a list of NodeIds. However, since one of the main purposes of this Service is to support programming against type definitions, the NodeId of the Node based on the type definition of the starting Node is returned as the first NodeId in the list.

Avatar
Svetoslav Ivanov
Member
Members
Forum Posts: 4
Member Since:
08/31/2020
sp_UserOfflineSmall Offline
5
09/03/2020 - 22:40
sp_Permalink sp_Print

Thank you for the answers, help me a lot, I have a question about the HasProperty nodes but I will make another topic about it.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 16
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1445
Posts: 4889