Siemens Logo8 - Example Node-RED - Q1..Q10 read, M1 write

Shows how you can use Node-RED together with the Siemens Logo8 1FB08 with ethernet. Reads the outputs Q1-Q10, writes a memory location M1 with the S7 protocol.

find more: https://flows.nodered.org/node/node-red-contrib-s7 http://www.frickelzeugs.de/logocontrol/konfiguration/ - config Logo8 https://www.promotic.eu/en/pmdoc/Subsystems/Comm/PLC/LOGO.htm - parameter values

[{"id":"e6da3c5d.10b1f","type":"s7 in","z":"aae27114.78e2d","endpoint":"7eef4941.c4ada8","mode":"all-split","variable":"Q4","diff":true,"name":"Logo8 - Qx","x":120,"y":100,"wires":[["971f77f4.da9778"]]},{"id":"971f77f4.da9778","type":"debug","z":"aae27114.78e2d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","x":390,"y":100,"wires":[]},{"id":"87e5c7d8.ab3008","type":"s7 out","z":"aae27114.78e2d","endpoint":"7eef4941.c4ada8","variable":"M1","name":"Logo - M1","x":340,"y":300,"wires":[]},{"id":"88dbbbbd.d4c948","type":"inject","z":"aae27114.78e2d","name":"","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":300,"wires":[["87e5c7d8.ab3008"]]},{"id":"1013f6c7.ed13d9","type":"inject","z":"aae27114.78e2d","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":340,"wires":[["87e5c7d8.ab3008"]]},{"id":"238d17f6.9bcf48","type":"comment","z":"aae27114.78e2d","name":"Zeigt Ă„nderungen der Parameter Q1 bis Q11 von Logo 8","info":"","x":270,"y":60,"wires":[]},{"id":"a4edf056.9a3a2","type":"comment","z":"aae27114.78e2d","name":"Schreibt Wert in Variable M1 von Logo 8","info":"","x":210,"y":260,"wires":[]},{"id":"8dda8b75.c2e898","type":"debug","z":"aae27114.78e2d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","x":370,"y":180,"wires":[]},{"id":"aab4de00.5a771","type":"s7 in","z":"aae27114.78e2d","endpoint":"7eef4941.c4ada8","mode":"single","variable":"Q10","diff":true,"name":"Logo8 - Q10","x":130,"y":180,"wires":[["8dda8b75.c2e898"]]},{"id":"7eef4941.c4ada8","type":"s7 endpoint","z":"","address":"192.168.178.231","port":"102","rack":"0","slot":"2","localtsaphi":"01","localtsaplo":"00","remotetsaphi":"02","remotetsaplo":"00","connmode":"tsap","cycletime":"1000","timeout":"3000","verbose":"default","name":"","vartable":[{"addr":"DB1,X1064.0","name":"Q1"},{"addr":"DB1,X1064.1","name":"Q2"},{"addr":"DB1,X1064.2","name":"Q3"},{"addr":"DB1,X1064.3","name":"Q4"},{"addr":"DB1,X1064.4","name":"Q5"},{"addr":"DB1,X1064.5","name":"Q6"},{"addr":"DB1,X1064.6","name":"Q7"},{"addr":"DB1,X1064.7","name":"Q8"},{"addr":"DB1,X1065.0","name":"Q9"},{"addr":"DB1,X1065.1","name":"Q10"},{"addr":"DB1,X1065.2","name":"Q11"},{"addr":"DB1,X1104.0","name":"M1"}]}]

Flow Info

Created 5 years, 8 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • comment (x2)
  • debug (x2)
  • inject (x2)
Other
  • s7 endpoint (x1)
  • s7 in (x2)
  • s7 out (x1)

Tags

  • Siemens
  • Logo8
  • Openhab2
  • Logo!8
  • SiemensS7
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option