How to create a timer tag?

I am new to Python scripting as well as Ignition.
I am trying to create tag that is an integer value timer with an expression that starts the timer when another tag equals “1” and reset it each time a separate tag equals “1” and then a tag event script to write a “4” to the original tag that started the timer. I understand the tag event script for doing this but I do not understand how to write the expression script to turn this integer timer on/off.

I took some of these suggestions for doing timer stuff in Ignition. Main idea is get system time and then use the secondsbetween expression.

It took me a while to get up to speed on python, you will have to rely on Python docs and outside tutorials as well.

Also ignition Manual and Inductive U videos are super helpful.

1 Like