# Start a timer when a bit goes high?

**URL:** <https://forum.inductiveautomation.com/t/start-a-timer-when-a-bit-goes-high/8166>\
**Category:** Ignition\
**Created:** [March 18, 2014, 2:27pm UTC](https://forum.inductiveautomation.com/t/start-a-timer-when-a-bit-goes-high/8166 "2014-03-18T14:27:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SonicClang](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@SonicClang](https://forum.inductiveautomation.com/u/SonicClang)\
**Post date:** [March 18, 2014, 2:27pm UTC](https://forum.inductiveautomation.com/t/start-a-timer-when-a-bit-goes-high/8166/1 "2014-03-18T14:27:13Z")

</div>

I’m wondering if Ignition can do this, and if so, what the best route would be. I want to start a timer when a bit goes high. The bit would be an OPC tag, but the timer would be in Ignition. Ideas?

EDIT: Oh, and when the timer hits a preset time, set a memory bit high.

---

<div class="post-metadata">

**Author:** ![drumdubb](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@drumdubb](https://forum.inductiveautomation.com/u/drumdubb)\
**Post date:** [March 18, 2014, 3:56pm UTC](https://forum.inductiveautomation.com/t/start-a-timer-when-a-bit-goes-high/8166/2 "2014-03-18T15:56:14Z")

</div>

The ‘running?’ property of the timer should be bindable to a tag. Have you tried tying the ‘Running?’ property to the boolean OPC tag? Once you have that you can write a script in python to have the memory tag change when the desired timer value occurs.

---

<div class="post-metadata">

**Author:** ![SonicClang](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@SonicClang](https://forum.inductiveautomation.com/u/SonicClang)\
**Post date:** [March 18, 2014, 4:53pm UTC](https://forum.inductiveautomation.com/t/start-a-timer-when-a-bit-goes-high/8166/3 "2014-03-18T16:53:42Z")

</div>

I have a lot to learn, because I don’t understand most of what you said, but I figured out a different way to do what I needed to do. I just realized there’s a “LastChange” property that I can use for what I need.
