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, EEST
Avatar
dipankar.invi@gmail.com
Member
Members
Forum Posts: 10
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, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 336
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, EEST
Avatar
dipankar.invi@gmail.com
Member
Members
Forum Posts: 10
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: 78

Currently Online:
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 89

pramanj: 86

ibrahim: 68

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 36

Rainer Versteeg: 32

vonGohren: 25

Member Stats:

Guest Posters: 0

Members: 815

Moderators: 11

Admins: 1

Forum Stats:

Groups: 3

Forums: 14

Topics: 841

Posts: 3556

Newest Members:

waldlatscher, keithwalmar, shanjaved, opcua-user, DmitryPervukhin, DPer, YeaTeshy, marttin, bouncycastlerentals, Sayan B

Moderators: Jouni Aro: 824, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 336, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 14

Administrators: admin: 0