How to handle OptionSetType with DataType not numerical|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
How to handle OptionSetType with DataType not numerical
Avatar
Martin Lang
Germany
Member
Members
Forum Posts: 72
Member Since:
06/25/2014
sp_UserOfflineSmall Offline
1
12/03/2020 - 08:41
sp_Permalink sp_Print

The OPC UA Spec. Part 5 defines the VariableType OptionSetType with DataType BaseDataType.
Is this intentionally? Imho only Numeric and its subtype would make sense.
How should Variables with for instance DataType LocalizedText and TypeDefintion OptionSetType work?

tia + br
Martin

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
12/03/2020 - 20:31
sp_Permalink sp_Print sp_EditHistory

The DataType of this VariableType shall be capable of representing a bit mask. It shall be either a numeric DataType representing a signed or unsigned integer, or a ByteString. For example, it can be the BitFieldMaskDataType.

https://reference.opcfoundatio.....art5/7.17/

Avatar
Martin Lang
Germany
Member
Members
Forum Posts: 72
Member Since:
06/25/2014
sp_UserOfflineSmall Offline
3
12/04/2020 - 02:52
sp_Permalink sp_Print

Ok, but why is in Table 76 -> DataType the BaseDataType specified and NOT numeric?

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
12/04/2020 - 08:56
sp_Permalink sp_Print

The only common super-type of ByteString and Number is BaseDataType.

Only one DataType can be specified in the model so it has to be BaseDataType.

Avatar
Martin Lang
Germany
Member
Members
Forum Posts: 72
Member Since:
06/25/2014
sp_UserOfflineSmall Offline
5
12/07/2020 - 01:06
sp_Permalink sp_Print

Thank you for clarification! I overlooked the ByteStrings.

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