KB-38071: Setting a Display for longer than 24 hours.

Question:

On an application, the value of a Chrono Tag (which counts the working time of a device) being shown on a Display in the format hh:mm:ss is erased after 24 hours. Why does this occur?

Solution:

This happens because Elipse SCADA does not support this time format.

To fix the problem, we suggest that you split the hours, minutes and seconds into three parts by using three Expression Tags. For example:

TagHours = Int(ChronoTag/3600)
TagMinutes = Int((ChronoTag%3600)/60)
TagSeconds = Int((ChronoTag%3600)%60)

You can display the value of each tag on different Display objects (Numeric format), or display them together by using another Expression Tag concatenating the values. For example:

StrZero(TagHours,2,0)+”:”+StrZero(TagMinutes,2,0)+”:”+StrZero(TagSeconds,2,0)

In this case, you must set the Display to the String format.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

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

Leave a Reply

Your email address will not be published.Required fields are marked *