Node-red x plc s7 1200

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?

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

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.

1 Like

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