Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
OPC UA Browser not able to show enumerations
June 5, 2024
13:24, EEST
Avatar
Miikka Mikkonen
Member
Members
Forum Posts: 3
Member Since:
June 5, 2024
sp_UserOfflineSmall Offline

Hi,

Does OPC UA Browser have support for “custom enumerations”? I am developing an OPC UA server where enumerations are needed and can’t get them to work in OPC UA Browser. I have tried with UaExpert and there they work fine. The nodes also pass OPC UA Compliance Test Tool so I am quite confident there is nothing wrong with the implementation.

I tried enumerations with EnumValueType (EnumValue) and LocalizedText (EnumString) and could not get either one to work. Read returns an integer and write does not work at all, this is probably the worst issue as it makes the nodes not usable as I cannot select integer values either to write.

I was able to get “AxisScaleEnumeration” standard Enumeration to work (Write only but Read also just returns an integer), which is defined in the OPC UA standard: https://reference.opcfoundation.org/Core/Part8/v105/docs/5.6.7

I posted some screenshots here https://postimg.cc/gallery/d088gy9 regarding the issue.

Best regards,
Miikka

June 5, 2024
14:08, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

Reading enumeration values returns just the numeric identifier of the enumeration value in the current version of Browser, which is 5.0.0-173. This will be improved in a future release to include both the numeric and the text value.

However, writing should work the same way for both standard and custom enumerations, so the Write Value dialog should have a droplist for selecting a value for both AxisScaleEnumeration and UserRating.

Would it be possible for you to send the NodeSet containing the UserRating Enumeration DataType to uabrowser-support@prosysopc.com so that we could check if there is anything odd about it? If sending the NodeSet is not possible, could you show us the value of DataTypeDefinition Attribute for UserRating? If this Attribute doesn’t have a value, can you show use how the UserRating enumeration has been defined in DataTypeDictionary? For Browser to work correctly with custom enumeration, it must be defined in either the DataTypeDefinition Attribute of UserRating Node or in the DataTypeDictionary for the Namespace containing UserRating.

June 5, 2024
14:32, EEST
Avatar
Miikka Mikkonen
Member
Members
Forum Posts: 3
Member Since:
June 5, 2024
sp_UserOfflineSmall Offline

Hi,

Thank you for the quick response!

I have sent the requested information. Thank you.

Best regards,
Miikka

June 12, 2024
16:00, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Turned out that the server was not providing a proper DataTypeDefinition for these enumeration types, and therefore the Browser was not able to use the enumerated values properly.

June 13, 2024
9:01, EEST
Avatar
Miikka Mikkonen
Member
Members
Forum Posts: 3
Member Since:
June 5, 2024
sp_UserOfflineSmall Offline

Hi,

Yes, sorry forgot to reply, that was an issue on my end, trying to fix that now that I understand the problem. Thank you for the help!

Best regards,
Miikka

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
33 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 734

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16, edgardo3518

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1