How to archive value over time?

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
4 posts • Page 1 of 1
phu.tran@biendongco.vn
Posts: 3
Joined: Thu Dec 08, 2022 7:24 am

How to archive value over time?

Post by phu.tran@biendongco.vn »

How to archive value periodically even if data is not responding continuously?
I have value of 6500 at 15:30 and i want to archive it with a 60s period for my desired result is 6500 at 15:31, 6500 at 15:32, ...
I cann't do that even i have set "time-dependent smoothing" of "_archive" and "_smoothing" to 60s.

User avatar
hpuchegger
Posts: 86
Joined: Fri Oct 08, 2021 10:38 am

Re: How to archive value over time?

Post by hpuchegger »

Hello,

why would you want to do that?
If you get a value at time A, then you will get the same value at time B when you request it at this is the last valid value for this DPE.
What is the use case behind?

Br, Herbert

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to archive value over time?

Post by leoknipp »

WinCC OA is an event driven system. For standard archiving there is no possibility to archive values based on a timely defined interval.
When using the smoothing options of the _archive config the smooting period starts when receiving a value.
The _smooth config is used by the driver to reduce the amount of data send to the Event Manager.

Best Regards
Leopold Knipp
Senior Support Specialist

User avatar
adaneau
Posts: 310
Joined: Tue Feb 21, 2012 9:49 am

Re: How to archive value over time?

Post by adaneau »

Hey,

If it is for reporting purpose, I would suggest to use influx query in order to get the data every 60s. Using flux you can have aggregate windows and filling values.

Code: Select all

 myserie = from(bucket: "winccoa/MEAS_WIND")
   |> range(start: '$startYear'-'$startMonth'-'$startDay:00:00Z, stop: '$endYear'-'$endMonth'-'$endDay'T00:00:00Z)
   |> filter(fn: (r) => r["_field"] == "original_value_float")
   |> filter(fn: (r) => r["name"] == "yourdatapointnamewithsystem")
   |> aggregateWindow(every: 60s, fn: last, createEmpty: true)
   |> fill(usePrevious: true)
BR
Alex

Post Reply
4 posts • Page 1 of 1