We have in our Ewons a generic script for sending alarm rep-mail (everyday @9), an automatically loop of all our tags set as alarms…
b% = Getsys Prg, "NBTAGS"
b% = b% - 1 REM index goes from 0 to NBTAGS-1
For i%=0 To b%
ONALARM -i%, "GOSUB SmsAlarm"
Next i%
this works well…
The only not generic about the script is about logging every (historical) tag every minute…
HistTriggerRap:
LOGIO "LOG_LIT_B01"
LOGIO "LOG_LIT_B05"
LOGIO "LOG_LIT_B06"
...
END
is there a way to find out if the tag is a historical one so I could work like in the alarm script part through all of the tags (with the for -loop again), and if so, “LOGIO Index%” at that time… instead, for every project list manually all of the historical data in the function…
br,
Peter