# Using a Time variable to set Output low after taking too much time

**URL:** <https://forum.universal-robots.com/t/using-a-time-variable-to-set-output-low-after-taking-too-much-time/34639>\
**Category:** Technical Questions\
**Created:** [June 8, 2024, 5:18pm UTC](https://forum.universal-robots.com/t/using-a-time-variable-to-set-output-low-after-taking-too-much-time/34639 "2024-06-08T17:18:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Debus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/debus/32/6206_2.png) [@Debus](https://forum.universal-robots.com/u/Debus)\
**Post date:** [June 8, 2024, 5:18pm UTC](https://forum.universal-robots.com/t/using-a-time-variable-to-set-output-low-after-taking-too-much-time/34639/1 "2024-06-08T17:18:45Z")

</div>

Hello,

i need a little help please.

I want to set a Output LOW by a Time Viable.

IF=Timer\_1\>30 set Output 6 LOW

The viable needs to be watched the whole time in background.

It is used as a Timeout when the Milling machine has a failure.

The output Low is used to send me a message to my phone using kind of GSM Module.

I would be really happy if someone has an idea to get this to work.

Thank you!

Have a nice Weekend!

 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/a/a61abb5c9de314c790cb24334d32b844b6e52d23.png)

---

<div class="post-metadata">

**Author:** ![Debus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/debus/32/6206_2.png) [@Debus](https://forum.universal-robots.com/u/Debus)\
**Post date:** [June 8, 2024, 5:20pm UTC](https://forum.universal-robots.com/t/using-a-time-variable-to-set-output-low-after-taking-too-much-time/34639/2 "2024-06-08T17:20:19Z")

</div>

This are my outputs.  
Sorry, my polyscope is in German

![grafik](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/3/3ddbbaf300bf5abbc4bdca9c8c650cf34afb273a.png)

---

<div class="post-metadata">

**Author:** ![Debus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/debus/32/6206_2.png) [@Debus](https://forum.universal-robots.com/u/Debus)\
**Post date:** [June 8, 2024, 5:55pm UTC](https://forum.universal-robots.com/t/using-a-time-variable-to-set-output-low-after-taking-too-much-time/34639/3 "2024-06-08T17:55:04Z")

</div>

I Think i got it.  
Moved the “IF” to a Thread. Now it works.  
 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/5/57617ca99a1b3bde4bbd985fed41f5820c19ad16.png)
