# Timer does not reset

**URL:** <https://forum.universal-robots.com/t/timer-does-not-reset/15999>\
**Category:** Technical Questions\
**Created:** [August 19, 2021, 8:31am UTC](https://forum.universal-robots.com/t/timer-does-not-reset/15999 "2021-08-19T08:31:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/tor/32/1876_2.png) [@tor](https://forum.universal-robots.com/u/tor)\
**Post date:** [August 19, 2021, 8:31am UTC](https://forum.universal-robots.com/t/timer-does-not-reset/15999/1 "2021-08-19T08:31:08Z")

</div>

Hello everyone,

I have an ordinary timer in my UR program that occationally does not reset, even tho I use “Timer1\_: Stop” and “Timer\_1: Reset” in the code. It only happens sometimes, and I can’t figure why it fails to reset. Any suggestions?

Best,  
Tor

---

<div class="post-metadata">

**Author:** ![anon507564](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@anon507564](https://forum.universal-robots.com/u/anon507564)\
**Post date:** [August 19, 2021, 2:14pm UTC](https://forum.universal-robots.com/t/timer-does-not-reset/15999/2 "2021-08-19T14:14:09Z")

</div>

I have one stupid suggestion… I am struggling to get [Set Nodes to update the payload](https://forum.universal-robots.com/t/using-set-payload-seems-inconsistant/16000). Adding a wait command of 0.21 seconds or more fixes the problem, which tells me the command is getting skipped, It needs a fraction of a second for the command to register. Might be worth a try.

---

<div class="post-metadata">

**Author:** ![tor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/tor/32/1876_2.png) [@tor](https://forum.universal-robots.com/u/tor)\
**Post date:** [August 20, 2021, 6:46am UTC](https://forum.universal-robots.com/t/timer-does-not-reset/15999/3 "2021-08-20T06:46:25Z")

</div>

I have added some 0.01 second waits, but I will try to make them a bit longer!

---

<div class="post-metadata">

**Author:** ![miwa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/miwa/32/2986_2.png) [@miwa](https://forum.universal-robots.com/u/miwa)\
**Post date:** [August 20, 2021, 5:29pm UTC](https://forum.universal-robots.com/t/timer-does-not-reset/15999/4 "2021-08-20T17:29:23Z")

</div>

Hello,

Do you happen to have your stop and reset commands inside of a continuously checked If statement?

The condition for the continuously checked If statement could be no longer met, so the code inside of it is aborted, and you may not be reaching the point where your stop and reset commands are located.

---

<div class="post-metadata">

**Author:** ![tor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/tor/32/1876_2.png) [@tor](https://forum.universal-robots.com/u/tor)\
**Post date:** [September 2, 2021, 8:32am UTC](https://forum.universal-robots.com/t/timer-does-not-reset/15999/5 "2021-09-02T08:32:24Z")

</div>

Hi,

This might have been the case. It seems to work now anyway, I added a few extra resets in the code just to be sure.

Thanks for the help!
