15:13, EEST
April 22, 2016
I’m using OPC UA PubSub 4.5.8.
This version is the latest version provided by you. I also found the following in the release notes:
“Fixed: JSON encoding of Network and DataSet Messages is now following the defined JsonNetworkMessageContentMask and DataSetFieldContentMask.”
but i think it’s not fixed.
It is intended to display the StatusCode using a DataSetFieldContentMask.
——————————————————————————————————
// DataSetFieldContentMask defines if we want to include meta information like StatusCode or
// SourceTimestamp for the published variables.
DataSetFieldContentMask fieldContentMask = DataSetFieldContentMask.of(
DataSetFieldContentMask.StatusCode,
DataSetFieldContentMask.SourceTimestamp,
DataSetFieldContentMask.ServerTimestamp);
variableDataSetWriterConf.setFieldContentMask(fieldContentMask);
———————————————————————————————————-
but StatusCode is still not displayed.
———————————————————————————————————-
{
“MessageId”: “bf009c78-61fe-4a33-8d0d-65d183ad5a68”,
“MessageType”: “ua-data”,
“PublisherId”: “default-publisher”,
“Messages”: [
{
“DataSetWriterId”: “0”,
“Payload”: {}
},
{
“DataSetWriterId”: “0”,
“Timestamp”: “2021-09-05T21:00:57+0900”,
“Payload”: {
“LIPS_03_TRIO_trio_event_and_rollover_clear”: {
“Value”: false,
“SourceTimestamp”: “2021-09-05T21:00:55+0900”
},
“LIPS_03_TRIO_trio_do1_on_select”: {
“Value”: false,
“SourceTimestamp”: “2021-09-05T21:00:55+0900”
},
“LIPS_03_TRIO_trio_do1_on_op”: {
“Value”: false,
“SourceTimestamp”: “2021-09-05T21:00:55+0900”
},
“LIPS_03_TRIO_trio_do1_off_select”: {
“Value”: false,
“SourceTimestamp”: “2021-09-05T21:00:55+0900”
},
“LIPS_03_TRIO_trio_do1_off_op”: {
“Value”: false,
“SourceTimestamp”: “2021-09-05T21:00:55+0900”
},
“LIPS_03_TRIO_trio_do2_on_select”: {
“Value”: true,
“SourceTimestamp”: “2021-09-05T21:00:55+0900”
},
…
———————————————————————————————————-
If I’m using it wrong, I’d like to know when to use DataSetFieldContentMask.
11:43, EEST
April 3, 2012
Hi,
The current implementation should be as specified in the UA spec. Unless I’m mistaken, it is only visible if it is not exactly the ‘Good’ (base StatusCode) value.
https://reference.opcfoundation.org/v104/Core/docs/Part6/5.4.2/#5.4.2.12
“The Code is omitted if the numeric code is 0 (Good).” + “The Symbol is omitted if the numeric code is 0 (Good).”.
And https://reference.opcfoundation.org/v104/Core/docs/Part6/5.4.2/#5.4.2.18
“If a field has a null or default value it is omitted.”
Most Users Ever Online: 1919
Currently Online:
29 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: 735
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1523
Posts: 6449
Newest Members:
rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1