# Node-red x plc s7 1200

**URL:** <https://discourse.nodered.org/t/node-red-x-plc-s7-1200/90985>\
**Category:** General\
**Created:** [14 September 2024 18:42 UTC](https://discourse.nodered.org/t/node-red-x-plc-s7-1200/90985 "2024-09-14T18:42:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdrianoOPereira](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/adrianoopereira/32/93705_2.png) [@AdrianoOPereira](https://discourse.nodered.org/u/AdrianoOPereira)\
**Post date:** [14 September 2024 18:42 UTC](https://discourse.nodered.org/t/node-red-x-plc-s7-1200/90985/1 "2024-09-14T18:42:11Z")

</div>

Node-RED v4.0.2  
node.js v20.9.0  
nó s7 plc siemens

I'm using node-red as a client and s7 1200 as a server, when I press the physical button of the I0.0 input I call an endpoint to do a task but when I release my I0.0 button again it calls my endpoint again, could it help to solve the end point call only by pressing the button?

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [14 September 2024 18:46 UTC](https://discourse.nodered.org/t/node-red-x-plc-s7-1200/90985/2 "2024-09-14T18:46:52Z")

</div>

Hi @AdrianoOPereira

I know zero/nada/none/null about PLC

I don't truly understand the setup - but if the endpoint you're referring to is inside Node RED,  
you can use the `delay` Node in `rate limit` mode ?

Say only allow messages to pass after 2-5s of each other?

I apologies, if I have got this completely wrong

---

<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:** [14 September 2024 19:21 UTC](https://discourse.nodered.org/t/node-red-x-plc-s7-1200/90985/3 "2024-09-14T19:21:34Z")

</div>

Or maybe use a Switch node to only pass messages with payload of the press event.

If you can't work it out, feed what you are getting into a debug node and show us what you get for the two events.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 December 2024 19:22 UTC](https://discourse.nodered.org/t/node-red-x-plc-s7-1200/90985/4 "2024-12-13T19:22:09Z")

</div>

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