node-red-contrib-s7 icon indicating copy to clipboard operation
node-red-contrib-s7 copied to clipboard

s7-Out, send a Boolean "false"

Open BurgerMirco opened this issue 1 year ago • 1 comments

Hello, I am trying to control a booean variable via node S7. The variable lies in a DB and configured correctly.

grafik

When I send the message "msg.payload = true", the variable in the PLC is also set to true.

grafik grafik

My problem is the other direction, when I send "msg.payload = false", the variable is unfortunately NOT set back :-(

grafik grafik

Am I doing something wrong, or can someone tell me what it is?

BurgerMirco avatar Oct 27 '22 08:10 BurgerMirco

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

nrbrt avatar Mar 31 '24 05:03 nrbrt