KB-29787: Recording in a Historic when the minute is a multiple of 15.

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.   

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *