Graphical Countdown Timer
I am in need of a method of displaying a dynamic "countdown timer" that will allow users to easily track how long a particular operation has left to execute. A beginning Time Stamp would be entered and the Countdown Timer would begin counting down to the entered Time Stamp. Once the current time reaches the entered Time Stamp (timer reaches zero), the countdown timer will stop. I was thinking the format for the timer would display like this 00:00:00:00 (i.e. Hour:Minute:Second:Millisecond). I had hoped to find an already existing element in 800xA Process Graphics Editor...but no luck.
Does anyone have any ideas for how this can be done?
Does anyone have any ideas for how this can be done?
Answers
Everything you need is in the "InputField" graphic primitive.
(The timer runs in your PLC. You should not run timers or other "logic" in a graphic)

(The timer runs in your PLC. You should not run timers or other "logic" in a graphic)

Agree with Rob
The now() function in PG2 returns the time (in hi-res integer format). Theoretically, you can use it to ”count” time and drive a countdown in PG2.
The now() function in PG2 returns the time (in hi-res integer format). Theoretically, you can use it to ”count” time and drive a countdown in PG2.
Add new comment