KB-31922: Displaying a timer in hour/minute/second format.

Question:

How can I display on screen the total amount of time the machine has been on, in hour/minute/second format?

Solution:

At E3Studio, follow these procedures:

  1. Insert a counter tag into a data folder, and set its Enable property as False.
  2. Set Preset property as 31536000, which corresponds to the total amount of seconds in a year.
  3. Link the counter tag’s Enable property to the tag that will fire the count (it can be an I/O tag, an internal tag, etc.).
  4. Insert a display onto screen and link it to the counter tag, dividing it by 86400 (amount of seconds in a day).
  5. Set the display’s format as HH:mm:ss.
  6. Run the application and change the value of the tag enabling the counter tag’s count.
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 *