I am trying to inject a true or false value into my Siemens S7-300 PLC. I can only manage to send numbers trough inject node JSON for example: {"Value":[5]}. I need to toggle inputs on my PLC with a boolean value. Here is my node red flow:
[{"id":"91d339ac.1bae68","type":"debug","z":"2a98a51b.fd07aa","name":"msg.payload","active":true,"console":"false","complete":"payload","x":684,"y":272,"wires":[]},{"id":"ef00622f.98f69","type":"inject","z":"2a98a51b.fd07aa","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"x":160,"y":275,"wires":[["1d9af56d.4c456b"]]},{"id":"1d9af56d.4c456b","type":"write","z":"2a98a51b.fd07aa","connection":"1b5001ca.703bae","topic":"write","globallist":{"items":[{"S7_Type":"DB","S7_DBnum":"1","S7_Datatype":"X","S7_Offset":"0","S7_BitOffset":"0","S7_Length":"1","S7_Name":"ON"}]},"payload":"{\"S7_Type\":\"DB\",\"S7_DBnum\":\"1\",\"S7_Datatype\":\"X\",\"S7_Offset\":\"0\",\"S7_BitOffset\":\"0\",\"S7_Length\":\"1\",\"S7_Name\":\"ON\"}","name":"write","x":405,"y":269,"wires":[["91d339ac.1bae68"]]},{"id":"1b5001ca.703bae","type":"connection","z":"2a98a51b.fd07aa","ip":"192.168.50.20","port":"102","rack":"0","slot":"0","payload":[{"S7_Type":"DB","S7_DBnum":"1","S7_Datatype":"X","S7_Offset":"0","S7_BitOffset":"0","S7_Length":"1","S7_Name":"ON"}],"globallist":null}]