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.
How to archive value over time?
Search
-
- Posts: 3
- Joined: Thu Dec 08, 2022 7:24 am
- hpuchegger
- Posts: 86
- Joined: Fri Oct 08, 2021 10:38 am
Re: How to archive value over time?
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
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
Re: How to archive value over time?
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
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
Re: How to archive value over time?
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.
BR
Alex
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)
Alex