Question:
How can I record in a Historic when the minute is a multiple of 15?
Solution:
To do so, you must use the Minute function and a Demo tag (set as CurrentTime) to create a user event to be executed only when the minute is a multiple of 15:
Minute(TagCurrentTime) = 0 OR Minute(TagCurrentTime) = 15 OR Minute(TagCurrentTime) = 30 OR Minute(TagCurrentTime) = 45
Then, in this event’s script, use WriteRecord() method to record in the database the tag values set in the Historic. The ScanTime property, in the Historic settings, must be set to 0 to disable the automatic recording.