# Latching relay/node?

**URL:** <https://forum.xod.io/t/latching-relay-node/5023>\
**Category:** XOD Programming Questions\
**Created:** [March 25, 2021, 10:38am UTC](https://forum.xod.io/t/latching-relay-node/5023 "2021-03-25T10:38:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jevhowe](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jevhowe](https://forum.xod.io/u/jevhowe)\
**Post date:** [March 25, 2021, 10:38am UTC](https://forum.xod.io/t/latching-relay-node/5023/1 "2021-03-25T10:38:25Z")

</div>

Hello,

Is there a way to create a latching relay? pulse ON input. pulse OFF input to a boolean output.  
ive been trying flip flops and if-else with defer feedback loops but cant make it work.

i come from a PLC world so still getting use to slightly different way of doing things and searching library’s.  
Google keeps suggesting COD (call of duty) 😉  
cheers

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [March 25, 2021, 2:34pm UTC](https://forum.xod.io/t/latching-relay-node/5023/2 "2021-03-25T14:34:09Z")

</div>

flip-flop is a latching relay. Pulse the SET pin, and it will output true until TGL or RST pin is pulsed. Pulse the RST pin, and it will output FALSE until TGL or SET pin is pulsed. No feedback loops are needed. TGL will toggle the output value (which you don’t need for latching relay).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [March 27, 2021, 2:34pm UTC](https://forum.xod.io/t/latching-relay-node/5023/3 "2021-03-27T14:34:22Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
