Please consider registering

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
Enum discovery and resolution on client
March 28, 2023
12:19, EEST
Forum Posts: 5
Member Since:
March 28, 2023
sp_UserOfflineSmall Offline


We use the PROSYS client server java SDK 4.10.4. We’ve encountered cases where servers send EnumValueType directly as the enum values. We haven’t been able to parse them as Enums because we couldn’t get all the states/facets of the sent enum. Is there a way to get EnumValueType as an enum? I’m not sure if that’s even the right think to do because EnumValueType are structures.

March 28, 2023
15:42, EEST
Matti Siponen

Forum Posts: 321
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline


EnumValueType is a DataType used to define the values of an Enumeration in the EnumValues Property. You can check /Root/Types/DataTypes/BaseDataType/Enumeration/Duplex/EnumValues for an example of using EnumValueType.

The OPC UA Specification states that “Enumerations are encoded as Int32 values” (https://reference.opcfoundation.org/Core/Part6/v105/docs/5.2.4). This means that if the DataType of a Variable Node is Enumeration or any of its Subtypes, reading the Value Attribute of that Node would return the value in Int32 form.

Therefore, using EnumValueType or any other other DataType except for Int32 to encode Enumerations is not allowed. You should contact the manufacturer of the Server and let them know that they’re encoding Enumerations wrong.

March 28, 2023
16:03, EEST
Forum Posts: 5
Member Since:
March 28, 2023
sp_UserOfflineSmall Offline

Thanks Matti. I was of the same opinion while trying to find a solution.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 680

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6260

Newest Members:

sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1