I have a series of PEs that record the production plan for next week. Is configured in a way so every day at 6am has a new value: (this is a short version):
if ('*' >= '04-sep-2023 06:00') then 1500.00 else if ('*' >= '03-sep-2023 06:00') then 1400.00 else if ('*' >= '02-sep-2023 06:00') then 1300.00 else Nooutput()
Location4 =1 -> is evaluated every minute.
and seems to work ok. I have a new value exactly every day at 6am.
However, if the production plan doesn't change (is 1290tn every day), like:
if ('*' >= '04-sep-2023 06:00') then 1290.00 else if ('*' >= '03-sep-2023 06:00') then 1290.00 else if ('*' >= '02-sep-2023 06:00') then 1290.00 else Nooutput()
Then the timestamp of new values are totally weird:
1290 31/08/2023 09:51:00
1290 01/09/2023 04:05:00
1290 01/09/2023 13:12:00
I set the compression settings as:
Compression=on
CompDev = 2 EngUnits, Max Time 1 day -> so expect to have only 1 value per day.
Does anyone have a good practice to this kind of PE, where I want a value to be recorded once a day, at an specific time ?
Thanks!
Josep