Unable to create Instance of Object Type from DI Companion Spec (Opc.Ua.Di.NodeSet2.xml)|OPC UA Companion Standards|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
Unable to create Instance of Object Type from DI Companion Spec (Opc.Ua.Di.NodeSet2.xml)
Avatar
Shubhi Gogna Shubhi Gogna
Member
Members
Forum Posts: 27
Member Since:
04/01/2014
sp_UserOfflineSmall Offline
1
11/23/2021 - 03:52
sp_Permalink sp_Print

Hi Team,

I have imported DI Companion Spec (Opc.Ua.Di.NodeSet2.xml) in my server. After Import, there is new Object Type Created in AddressSpace(ns=1;i=1005 "FunctionalGroupType"). 

I am trying to create a Object of this Type now but failed to create because it contains a Variable (UIElement ns=1;i=6243) whose TypeDefinition is UIElementType (ns=1;i=6246) and IsAbstract is set to TRUE.

I wanted to understand if it a bug in DI nodesetFile as we should not be allowed to create instances for Abstract Types. Can you please review and let me know.

Regards,

Shubhi Gogna

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
11/23/2021 - 11:23
sp_Permalink sp_Print

Whatever code you are using to create an instance of FunctionalGroupType is wrong. It should not automatically create optional components.

Your tooling should provide an API where you can passing a concrete subtype of UIElementType to use when instantiating the optional component. If a concrete subtype is not provided the optional component is not added to the new instance of FunctionalGroupType.

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