# Single Push Push Button Flip Flop

**URL:** <https://forum.universal-robots.com/t/single-push-push-button-flip-flop/21331>\
**Category:** General Application Help: How do I?\
**Created:** [May 15, 2022, 8:50pm UTC](https://forum.universal-robots.com/t/single-push-push-button-flip-flop/21331 "2022-05-15T20:50:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrispocock](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@chrispocock](https://forum.universal-robots.com/u/chrispocock)\
**Post date:** [May 15, 2022, 8:50pm UTC](https://forum.universal-robots.com/t/single-push-push-button-flip-flop/21331/1 "2022-05-15T20:50:34Z")

</div>

Hi, is it possible to make a flip flop circuit via just one push-button in the software?  
ie. press a button and an output comes on, press the same button again and the output goes off.

---

<div class="post-metadata">

**Author:** ![eric.feldmann](https://avatars.discourse-cdn.com/v4/letter/e/94ad74/32.png) [@eric.feldmann](https://forum.universal-robots.com/u/eric.feldmann)\
**Post date:** [May 16, 2022, 12:59pm UTC](https://forum.universal-robots.com/t/single-push-push-button-flip-flop/21331/2 "2022-05-16T12:59:14Z")

</div>

Sure, assuming the program is actively running. This would not work if the robot was just idle.

![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/e/e9258fc1ac51247e2de2b7b0a78c187009fba330.png)

All your really need is the stuff in the thread.

---

<div class="post-metadata">

**Author:** ![chrispocock](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@chrispocock](https://forum.universal-robots.com/u/chrispocock)\
**Post date:** [May 17, 2022, 12:07pm UTC](https://forum.universal-robots.com/t/single-push-push-button-flip-flop/21331/3 "2022-05-17T12:07:15Z")

</div>

Thank You.  
I’ve bought a latching relay, as it needs to work Independant of the robot state.  
Thanks.
