# Button send permanent 1

**URL:** https://discourse.nodered.org/t/button-send-permanent-1/16064
**Category:** General
**Created:** [29 September 2019 17:08 UTC](https://discourse.nodered.org/t/button-send-permanent-1/16064 "2019-09-29T17:08:56Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Mario](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@Mario](https://discourse.nodered.org/u/Mario)
#### Post date: [29 September 2019 17:08 UTC](https://discourse.nodered.org/t/button-send-permanent-1/16064/1 "2019-09-29T17:08:56Z")

</div>

Hello I would like to send my button as soon as I let him number 0 again. at the moment it is so that he sends a 1 via modbus when clicking and then it stays that way. but I need to release again a 0.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 October 2019 08:29 UTC](https://discourse.nodered.org/t/button-send-permanent-1/16064/2 "2019-10-03T08:29:04Z")

</div>

Do you mean that you want a button that sends a message when you press it then another when you release it?

---

<div class="post-metadata">

### Author: ![Mario](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@Mario](https://discourse.nodered.org/u/Mario)
#### Post date: [6 October 2019 16:10 UTC](https://discourse.nodered.org/t/button-send-permanent-1/16064/3 "2019-10-06T16:10:21Z")

</div>

One button who send a massage when i press him and the same button send a massage when i relase him. Importend, not a switch. It must be a button.

And there are another question:

Is there a possibility that I attach up to 16 buttons to 1 function and then transfer this as 1 word? The reason for this is that I read about Modbus word by word and thus would save a lot of space.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [7 October 2019 09:18 UTC](https://discourse.nodered.org/t/button-send-permanent-1/16064/4 "2019-10-07T09:18:41Z")

</div>

Mario,

As a possibility, you could use the `trigger` node.

So you have your `button` and that feeds into the `trigger` node.

The `trigger` node is set up to send a message then a time after that send a different message.

But I don't know if that is exactly what you want as it implies the button is never held down for varying ammounts of time.

---

<div class="post-metadata">

### Author: ![Mario](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@Mario](https://discourse.nodered.org/u/Mario)
#### Post date: [7 October 2019 16:28 UTC](https://discourse.nodered.org/t/button-send-permanent-1/16064/5 "2019-10-07T16:28:02Z")

</div>

Thank u so much.

Sometimes the solution is so close and you can not see it.  
It is excactly what i need.

Have u also a answer for my second question?  
"Is there a possibility that I attach up to 16 buttons to 1 function and then transfer this as 1 word? The reason for this is that I read about Modbus word by word and thus would save a lot of space."

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [7 October 2019 20:51 UTC](https://discourse.nodered.org/t/button-send-permanent-1/16064/6 "2019-10-07T20:51:50Z")

</div>

I am not sure I understand the second question. Sorry.

Though you are using _Modbus_ shouldn't be a problem, I am not getting what you want to do.

Reading it as I see it, you can connect 16 `buttons` to 1 _function_ but what I think that means and what you are asking may be very different.

If you are meaning you have a _function_ (input to a node) and want to have 16 different `buttons` connected to it: The answer is yes.

You simply make the 16 `buttons` and connect them to the node's input. (aka _function_)

If the `buttons` are on other flows, you can still connect them.

Use a `link - in` node where the `button` input is and on the other flows you the `link out` and connect that to the `button` on that flow.

You then connect the two `link` nodes together.

An _easier_ way of doing that is:

Establish the `link in` node and connect it to the `button`.  
Drag a `link out` node onto the flow and connect it to the `link in` node.  
This will be a dotted line.  
**copy** the `link out` node.  
Go to the other flows and **paste** near the `button`.  
Then connect the `button` to the `link out` node.  
Go to the next flow and **paste** again. (Repeat until done)

Does that help?

If you are still stuck, take a screen shot of the flow and include it in the thread.  
Do some basic editing (like adding arrows, etc) to show items of interest.
