HasProperty node with TypeDefinition which has Mandatory components|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
HasProperty node with TypeDefinition which has Mandatory components
Avatar
Svetoslav Ivanov
Member
Members
Forum Posts: 4
Member Since:
08/31/2020
sp_UserOfflineSmall Offline
1
09/04/2020 - 00:27
sp_Permalink sp_Print sp_EditHistory

For what I understand from the specification of OPC UA, the HasPropety nodes cannot have hasComponents nodes, they are like the leaves of the tree.

But what if you have the following case:
You create ObjectType -> hasComponent - Obj1(Mandatory modelling rule)
Create different node ObjectTest -> hasProperty - NodeProperty
Now if we set the type definition of NodeProperty to ObjectType.

The property node will have now reference Obj1 which came from the type but we cannot have nodes \'under\' hasProperty.

So what is the right thing to do here? If you cannot understand the case I can try to draw you a graph of the case.

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
09/04/2020 - 09:29
sp_Permalink sp_Print

TypeDefinitions are pretty fundamental and most servers would never allow them to be changed.

If a server does support this feature it has to prevent changes from occurring that would break the information model.

The HasProperty/PropertyType rule is simply one of many rules that could be broken by messing with the type definitions of nodes.

So it is not clear why you are asking such a question.

Avatar
Svetoslav Ivanov
Member
Members
Forum Posts: 4
Member Since:
08/31/2020
sp_UserOfflineSmall Offline
3
09/07/2020 - 22:35
sp_Permalink sp_Print

Okay, maybe the right question wasn't to set the type definition but I mean to create hasProperty Node from type definition with nodes. So this need to be forbidden as I understand?

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
09/08/2020 - 13:27
sp_Permalink sp_Print

It is not clear what you want to do.

Any node can have an HasProperty reference to Variable Node with the TypeDefinition of PropertyType except for a Property.

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