node-red-contrib-s7
node-red-contrib-s7 copied to clipboard
s7-Out, send a Boolean "false"
Hello, I am trying to control a booean variable via node S7. The variable lies in a DB and configured correctly.
When I send the message "msg.payload = true", the variable in the PLC is also set to true.
My problem is the other direction, when I send "msg.payload = false", the variable is unfortunately NOT set back :-(
Am I doing something wrong, or can someone tell me what it is?
You seem to send a string "false" instead of a Boolean FALSE. Any string will be seen as TRUE when sent to a Boolean input