Time Flows backward characteristics in comparison to Forward Time Flow as per OPC UA specs.|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
Time Flows backward characteristics in comparison to Forward Time Flow as per OPC UA specs.
Avatar
Siddhartha Ray
Member
Members
Forum Posts: 8
Member Since:
05/09/2016
sp_UserOfflineSmall Offline
1
04/10/2017 - 00:34
sp_Permalink sp_Print

Hi Team.

The OPC UA aggregates specification describes the Interval start and end consideration in general for forward time calculation as, include start bound and exclude end bound. The same is also true in the reverse time order.

Consider the below scenario;

Processing interval 5. Minimum aggregate.

TimeStamp Value Quality

0              10      G(good)

5              15      G

10             20      G

for the interval 5 to 10.

In forward direction the value of Minimum aggregate will be: 15 (start included, but not end)

In Time backward direction, the value of Minimum aggregate will be : 20 (start included, but not end).

 

So for the same interval, the value is different due to different flow of time.

Doesn’t this breaks the beauty of symmetry? Doesn’t the backward direction follow the symmetrically opposite behavior to forward direction, so to say if 

start is included and end is excluded in forward direction, then

start is excluded and end in included in backward time direction.

What is your opinion? And why OPC UA chose not to follow the symmetry?

Avatar
Rod Stein
Canada
Member
Members
Forum Posts: 27
Member Since:
04/01/2014
sp_UserOfflineSmall Offline
2
04/10/2017 - 06:03
sp_Permalink sp_Print

You are correct. OPC does not follow the concept of symmetry of time when doing aggregates in a forward and reverse direction.  Your example is an excellent case of this.

The reason is exactly as you state, start time is included and end time is excluded. The reason for this is so that intervals that chain together do not include the start (or end) time twice.  This simple rule is always followed so that the data gathering logic is always consistent.

Consistency is also the reason the reverse interval follows the same logic and the start time, in this case the later time, is included and the end time is not. This creates the lack of symmetry.

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

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