st-one-io / node-red-contrib-s7

A Node-RED node to interact with Siemens S7 PLCs
GNU General Public License v3.0
111 stars 58 forks source link

Control node: trigger read doesn't work #37

Closed AlbeToff closed 5 years ago

AlbeToff commented 5 years ago

Hi, why if the input node is on "Emit only when change" mode, and if I want read the input "manually" with the control node the trigger doesn't work?

Thank you

gfcittolin commented 5 years ago

I don't know if I understood your issue correctly. The expected behavior is that, when "Emit only on change" is checked, the "s7 in" node will emit only if the observed value has changed, regardless of the trigger method, be that automatically or manually triggered with the control node. If you want to receive a message everytime you manually trigger a read process, then you need to uncheck that checkbox. Are you experiencing a different behavior?

AlbeToff commented 5 years ago

So isn't possible keep checked "Emit only on change" mode, but at the same time manually trigger the the input with a control node for resend the msg.payload from the input node to a function even if the entrance has not changed?

gfcittolin commented 5 years ago

That functionality is currently not supported. Despite of that, there are many ways you could have such a logic in the flow itself, by using change, switch and rbe nodes

AlbeToff commented 5 years ago

Ok Thanks!