OPC UA Parsing DataSetFieldFlags Field | OPC UA Standard | Forum

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
OPC UA Parsing DataSetFieldFlags Field
Avatar
jothi.sankkarraj@eon.com
Member
Members
Forum Posts: 29
Member Since:
04/09/2019
sp_UserOfflineSmall Offline
1
08/12/2019 - 09:20
sp_Permalink sp_Print

Where do I find more information on how to parse DataSetFieldFlags? I'm referring to Part 6 and Part 14 and all I could find is the following:

This unfortunately is not enough for me to parse the incoming bytes!

6.2.2.1.4 DataSetFieldFlags

This DataType defines flags for DataSet fields.
The DataSetFieldFlags is formally defined in Table 6.

Table 6 – DataSetFieldFlags Values

Value
Bit No.
Description
PromotedField
0
The flag indicates if the field is promoted to the NetworkMessages or transport protocol header.
Setting this flag increases the size of the NetworkMessages since information from the DataSetMessage body is also promoted to the header.

Depending on the used security, the header including the field may be unencrypted. Promoted fields are always included in the header even if the DataSetMessage payload is a delta frame and the DataSet field is not included in the delta frame. In this case the last sent value is sent in the header.
The order of the fields in the DataSetMetaData promoted to the header shall match the order of the fields in the header unless the header includes field names.

Avatar
Randy Armstrong
Admin
Forum Posts: 308
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
08/12/2019 - 14:53
sp_Permalink sp_Print

Following that table you see:

The DataSetFieldFlags representation in the AddressSpace is defined in Table 7.

In Table 7 you see:

Subtype of UInt16 defined in Part 5.

and

HasProperty Variable OptionSetValues LocalizedText [ ]

This tells you the value is encoded as a UInt16 and the text values associated with the bits can be found by reading the OptionSetValues property.

Avatar
jothi.sankkarraj@eon.com
Member
Members
Forum Posts: 29
Member Since:
04/09/2019
sp_UserOfflineSmall Offline
3
08/12/2019 - 21:21
sp_Permalink sp_Print

It is still hard to understand the meaning. Can you please give me an example? Or here is an example that I have right now!

1 0 0 0 0 1 0 0 0 1

How do I read the DataSetFieldFlags from this example that I have?
Avatar
Randy Armstrong
Admin
Forum Posts: 308
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
08/13/2019 - 07:07
sp_Permalink sp_Print

What is that data? Hex or Binary? In anycase, a UInt16 the encoded as a little endian 2 byte integer value. That should be all you need.

Avatar
jothi.sankkarraj@eon.com
Member
Members
Forum Posts: 29
Member Since:
04/09/2019
sp_UserOfflineSmall Offline
5
08/13/2019 - 07:14
sp_Permalink sp_Print

That example that I gave was a binary data. So as per your statements, I just need to read 2 bytes? In my example above would be the first 2 bytes which is 1 and 0?

Forum Timezone: America/Phoenix
Most Users Ever Online: 143
Currently Online:
4
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Newest Members:
ruslan.iaroshevich1988@mail.ru
Forum Stats:
Groups: 2
Forums: 9
Topics: 593
Posts: 1703

 

Member Stats:
Guest Posters: 1
Members: 110636
Moderators: 10
Admins: 3
Administrators: michael.bryant@opcfoundation.org, thomas.burke@opcfoundation.org, Randy Armstrong
Moderators: matthias.damm@ascolab.com, s.hoppe@beckhoff.com, paul.hunkar@dsinteroperability.com, jouni.aro@prosys.fi, tim.fortin@honeywell.com, Jim.Luth@Schneider-Electric.com, Karl-Heinz Deiretsbacher, stefan.hoppe@opcfoundation.org, alexander.allmendinger@opcfoundation.org, Karl Deiretsbacher