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
Question regrading DataChangeNotification.
February 8, 2019
15:12, EET
Avatar
dipankar.invi@gmail.com
Member
Members
Forum Posts: 16
Member Since:
December 6, 2018
sp_UserOfflineSmall Offline

As per the documentation if any change occurred in the Value attribute or in the structure of value attribute(to be more precise.
Here is the value structure >

Value
StatusCode
name
value
description
serverTimestamp
sourceTimestamp
serverPicoseconds
sourcePicoseconds
value >> **here I’m referring to this value

Now my question is , is only numeric values are allowed in place of Value.value in case of DataChangeNotification ? Or it can be again a complex Structure like the parent ? Or what kind of value I can expect in that field ?

February 8, 2019
17:38, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Assuming the DataChangeFilter.deadbandType is None, it can be any value that has a defined encoding (of UA Part 6 encoding rules). If the deadbandType is Absolute or Percent, then only subtypes of (UA type) Number.

Most of the types Variant accept are defined in the javadocs of the stack layer

org.opcfoundation.ua.builtintypes

OPC UA Part 6 defines 25 builtin types. Those 25 types are represented with the following java classes. Most builtin classes are immutable.

ID, Name, Java Class

1 Boolean java.lang.Boolean
2 SByte java.lang.Byte
3 Byte org.opcfoundation.ua.builtintypes.UnsignedByte
4 Int16 java.lang.Short
5 UInt16 org.opcfoundation.ua.builtintypes.UnsignedShort
6 Int32 java.lang.Integer
7 UInt32 org.opcfoundation.ua.builtintypes.UnsignedInteger
8 Int64 java.lang.Long
9 UInt64 org.opcfoundation.ua.builtintypes.UnsignedLong
10 Float java.lang.Float
11 Double java.lang.Double
12 String java.lang.String
13 DateTime org.opcfoundation.ua.builtintypes.DateTime
14 Guid java.util.UUID
15 ByteString org.opcfoundation.ua.builtintypes.ByteString
16 XmlElement org.opcfoundation.ua.builtintypes.XmlElement
17 NodeId org.opcfoundation.ua.builtintypes.NodeId
18 ExpandedNodeId org.opcfoundation.ua.builtintypes.ExpandedNodeId
19 StatusCode org.opcfoundation.ua.builtintypes.StatusCode
20 QualifiedName org.opcfoundation.ua.builtintypes.QualifiedName
21 LocalizedText org.opcfoundation.ua.builtintypes.LocalizedText
22 ExtensionObject org.opcfoundation.ua.builtintypes.ExtensionObject
23 DataValue org.opcfoundation.ua.builtintypes.DataValue
24 Variant org.opcfoundation.ua.builtintypes.Variant
25 DiagnosticInfo org.opcfoundation.ua.builtintypes.DiagnosticInfo

Additionally any Enumeration (will be converted to Integer) and Structure (are encoded as an ExtensionObject) works as well.

February 11, 2019
8:10, EET
Avatar
dipankar.invi@gmail.com
Member
Members
Forum Posts: 16
Member Since:
December 6, 2018
sp_UserOfflineSmall Offline

Hi Bjarne Boström,

Thanks for the info. It helped me a lot.

Regards,
Dipankar

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
17 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: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

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

Moderators: Jouni Aro: 1010, 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