OPC UA Aggregates-Treat Uncertain As Bad|OPC UA Standard|Forum|OPC Foundation

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 Aggregates-Treat Uncertain As Bad
Avatar
SambsivaReddy Appireddygari
Member
Members
Forum Posts: 24
Member Since:
02/12/2016
sp_UserOfflineSmall Offline
1
02/17/2016 - 00:40
sp_Permalink sp_Print

Hello,

With reference to Part 13: Aggregates OPC UA Specifications I have the following questions
1.Section A.1.1 Example Aggregate data – Historian 1 has the following raw input sample with the configuration has  TreatUncertainAsBad = False

12:01:10 70 Raw, Uncertain

However the aggregates like Average ,Minimum, Maximum and Count have ignored the above sample while computing within the corresponding aggregate interval.

 

Could you please justify why this raw data sample is ignored?

Avatar
Paul Hunkar
Cleveland, Ohio, USA
Moderator
Members

Moderators-Specifications

Moderators-Companion

Moderators-Implementation

Moderators-Certification

Moderators-COM
Forum Posts: 109
Member Since:
02/24/2014
sp_UserOfflineSmall Offline
2
02/17/2016 - 23:45
sp_Permalink sp_Print

The definition of Average, Minimum, Maximum explicitly defines that only Good status values are used.  Count explicitly defines that non-Good values are not included in the count.  The value is not bad since the TreatUncertainAsBad = False, but it does not meanthat they are Good - they are uncertain.  Some aggregates only skip Bad values, TimeAverage for example.

Paul Hunkar - DSInteroperability

Avatar
SambsivaReddy Appireddygari
Member
Members
Forum Posts: 24
Member Since:
02/12/2016
sp_UserOfflineSmall Offline
3
02/18/2016 - 07:41
sp_Permalink sp_Print

Hello Paul,

Thank you for your response.

If we receive a raw data sample with quality as Uncertain and 

If TreatUncertainAsBad = False Then the sample is considered as not bad ,not good but uncertain

If TreatUncertainAsBad = True then the sample is considered as bad , not good.

To summarize - An uncertain data sample can never become good sample because of the TreatUncertainAsBad parameter value .  Either it remains as uncertain or bad

Could you please correct me if  I am wrong here?

Avatar
Paul Hunkar
Cleveland, Ohio, USA
Moderator
Members

Moderators-Specifications

Moderators-Companion

Moderators-Implementation

Moderators-Certification

Moderators-COM
Forum Posts: 109
Member Since:
02/24/2014
sp_UserOfflineSmall Offline
4
02/18/2016 - 11:52
sp_Permalink sp_Print

Yes you are correct, it is still Uncertain for TreatUncertainAsBad = False, but for some aggregates this mean that it will be used in the computation of the aggregate.  This depends on the definition of the Aggregate.  Some only exclude Bad.  The definition of each aggregate has to be looked at.

Paul Hunkar - DSInteroperability

Avatar
SambsivaReddy Appireddygari
Member
Members
Forum Posts: 24
Member Since:
02/12/2016
sp_UserOfflineSmall Offline
5
03/02/2016 - 05:25
sp_Permalink sp_Print

Hello,

I have encountered an ambiguous scenario with TreatUncertainAsBad usage in the Count Aggregate with respect to Historian1 input data.

Count aggregate definition says "Consider only good samples"

Historian 1 settings says "TreatUncertainAsBad=False"

For an interval from 12:01:04 to 12:01:20 we have only one sample(uncertain quality) specified below  .

12:01:10 70 Raw, Uncertain ANNOTATION: Technician_1

Jan-02-2012 8:00:00 Value flagged as questionable

The computed aggregate result for this interval is 0 .

 

12:01:04.000

0 UncertainDataSubNormal, Calculated

 My question here is 

How to interpret the count =0 ?

Why can't it be bad no data instead of 0? like how it is computed for the interval from 12:00:32.000 to 12:00:48.000  having only one bad sample?

Regards

Samba

Avatar
Rod Stein
Canada
Member
Members
Forum Posts: 27
Member Since:
04/01/2014
sp_UserOfflineSmall Offline
6
11/14/2016 - 16:14
sp_Permalink sp_Print

The interval at 12:01:04.000 should have a value of 0 and a status of UncertainDataSubNormal, Calculated. 

The value is 0 because there is no Good data in the interval which is directly stated in the definition of the Count aggregate.

The status is UncertainDataSubNormal, Calculated and not Bad because the interval has an Uncertain entry which is not Bad.  The interval at 12:00:32.000 is Bad because it has only bad entries.  If you look at 5.4.3.2.1 there is an explanation of how an interval with Percent Bad %100 creates the Bad status code and that the interval that is not %100 bad has the Uncertain status.

 

Regards,

Rod

Rod Stein               Manager of Technology Matrikon OPC               http://www.matrikonopc.com

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 27
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1360
Posts: 4609