View Issue Details

IDProjectCategoryView StatusLast Update
0002826NodeSets, XSDs and Generated CodeApi Changepublic2022-12-08 15:55
ReporterJim Luth Assigned ToArchie Miller  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version1.02 
Summary0002826: Delta Aggregate example for Historian1 has UncertainDataSubnormal value instead of BadNoData
Description

Part 13 of the Standard contains some sample Aggregate results in Annex A. The raw input values for the Historian 1 sample are:

Code:
Timestamp Value StatusCode
12:00:00 - Bad_NoData
12:00:10 10 Raw, Good
12:00:20 20 Raw, Good
12:00:30 30 Raw, Good
12:00:40 40 Raw, Bad
12:00:50 50 Raw, Good
12:01:00 60 Raw, Good
12:01:10 70 Raw, Uncertain
12:01:20 80 Raw, Good
12:01:30 90 Raw, Good
null No Data

The example from Annex A / Historian 1 for the Range Aggregate has the result:

Code:
Historian1
Timestamp Value StatusCode Notes
12:00:00.000 0 Good, Calculated, Partial
12:00:16.000 10 Good, Calculated
12:00:32.000 BadNoData
12:00:48.000 10 Good, Calculated
12:01:04.000 BadNoData
12:01:20.000 10 Good, Calculated, Partial
12:01:36.000 BadNoData

Notice the 3rd interval from 12:00:32 to 12:00:48 has quality BadNoData, because there is no Good value in that interval. Everything is fine here.

Now, consider the Delta Aggregate description:

Quote:
The Delta Aggregate retrieves the difference between the earliest and latest good raw values in the interval. The aggregate is negative if the latest value is less than the earliest value. The status is Uncertain_DataSubNormal if non-good values are skipped while looking for the first or last values. The status is Good otherwise. The status is Bad_NoData if no good raw values exist.

Notice that " The status is Bad_NoData if no good raw values exist", much like the Range Aggregate.

But the sample result from Annex A shows:

Code:
Historian1
Timestamp Value StatusCode Notes
12:00:00.000 0 Good, Calculated, Partial
12:00:16.000 10 Good, Calculated
12:00:32.000 0 UncertainDataSubNormal, Calculated
12:00:48.000 10 Good, Calculated
12:01:04.000 0 UncertainDataSubNormal, Calculated
12:01:20.000 10 Good, Calculated, Partial
12:01:36.000 BadNoData

Why is the third interval UncertainDataSubNormal, if the only raw value from that interval has Bad quality (Value 40)?

Additional Information

Originally asked at http://opcfoundation.org/forum/viewtopic.php?t=5035

TagsNo tags attached.
Commit Version
Fix Due Date

Relationships

related to 0002302 closedRod Stein 10000-013: Aggregates Delta Aggregate example for Historian1 has UncertainDataSubnormal value instead of BadNoData 

Activities

Jim Luth

2014-08-19 17:28

administrator   ~0005445

Fixed by hand in IEC 62541-13 1.02.01. This clone is to fix it right in the aggregates generator tool.

Randy Armstrong

2018-12-14 18:35

administrator   ~0009718

Will fix the tool eventually.

Archie Miller

2021-03-02 21:05

administrator   ~0013920

Part13 V1.04 Annex A Historian 1 shows corrected interval 12:00:32 - 12:00:32 as BadNoData, and interval 12:01:04 - 12:01:20 as BadNoData. CTT Test Tool confirms this test data.

Original Aggregate tester does show incorrect values.

Side Note:
Part13 V1.04 Annex A Historian 1 shows values of 0 for these intervals, there should be no value. Mantis Issue 5090 addresses this.
OPC 10000-13 - UA Specification Part 13 - Aggregates Draft 1.05.3 addresses this.

Issue History

Date Modified Username Field Change
2014-08-19 17:25 Jim Luth New Issue
2014-08-19 17:25 Jim Luth Status new => assigned
2014-08-19 17:25 Jim Luth Assigned To => Randy Armstrong
2014-08-19 17:25 Jim Luth Issue generated from: 0002302
2014-08-19 17:25 Jim Luth Relationship added related to 0002302
2014-08-19 17:26 Jim Luth Project 10000-013: Aggregates => NodeSets, XSDs and Generated Code
2014-08-19 17:26 Jim Luth Category Spec => Api Change
2014-08-19 17:28 Jim Luth Note Added: 0005445
2018-12-14 18:35 Randy Armstrong Note Added: 0009718
2018-12-14 18:35 Randy Armstrong Status assigned => acknowledged
2021-03-02 19:34 Randy Armstrong Assigned To Randy Armstrong => Archie Miller
2021-03-02 21:05 Archie Miller Note Added: 0013920
2021-03-02 21:05 Archie Miller File Added: image.png
2021-03-02 21:06 Archie Miller File Deleted: image.png
2022-12-08 15:55 Jim Luth Status acknowledged => assigned