grunig-nodes (relevant nodes)

Example-Flow for the relevant grunig-nodes.

Nodes:

  • Modbus-Read
  • OpcUa-Read
  • MQTT-Influx-DB-Wirte
  • MQTT-Influx-DB-Alarm
  • AlarmOutput
[{"id":"2028f8501ae8d324","type":"tab","label":"Example","disabled":false,"info":"","env":[]},{"id":"d17043c5a2bd96b5","type":"group","z":"2028f8501ae8d324","g":"9669971edf216190","name":"Simulation","style":{"label":true},"nodes":["bf1dc516eb672c3f","7d64cde5b6fa12de","cfb7f4b42db3f7f4","ad5415927d2be48c","c6f72a5cdd838e8f"],"x":114,"y":2079,"w":722,"h":122},{"id":"b9fa176521d2a9b2","type":"group","z":"2028f8501ae8d324","name":"Init","style":{"label":true},"nodes":["40b91462882b427d","f6830eea7e34399b","506c264e4923d649"],"x":74,"y":39,"w":432,"h":122},{"id":"14fb90486119ea3b","type":"group","z":"2028f8501ae8d324","name":"Ping","style":{"label":true},"nodes":["5308f52893abaf49","afad5042fee878a7","97275e23a6da3e7d"],"x":694,"y":39,"w":432,"h":122},{"id":"5aa450c3a36c52e7","type":"group","z":"2028f8501ae8d324","name":"Modbus-Read","style":{"label":true,"fill":"#e3f3d3","fill-opacity":"0.35"},"nodes":["f192c24b07f980a6","052bb5f79ba9d28d"],"x":68,"y":193,"w":1064,"h":414},{"id":"9ccb49b6389b9c79","type":"group","z":"2028f8501ae8d324","name":"OpcUa-Read","style":{"label":true,"fill":"#bfdbef","fill-opacity":"0.34"},"nodes":["610e877cc9570456","c227da2d9542e15e","bea23f5c4ee93944","49b05821932ebd43","7e44534ebec9e15f","4fd45a4eaa90f9cf","8e69ae700bef236c","c124c515577a6458"],"x":74,"y":639,"w":1062,"h":142},{"id":"f192c24b07f980a6","type":"group","z":"2028f8501ae8d324","g":"5aa450c3a36c52e7","name":"usage with Modbus-Flex-Getter","style":{"label":true},"nodes":["4fcaa3c3fd7bd667","e726c250d6b3222f","ebb19e6c17d17695","82d6cd6601d75b3f","c5e7bef9b66c6e71","487d29eb1d55dcd7","7fcaf68cd1ba914c","98d144351cb916a0","c44c6d0a17a981a4","2d7ceb9da62cc9fe","1fb03f72fff7ef59","e7ea5764945df980"],"x":94,"y":219,"w":1012,"h":182},{"id":"7341b7ee8a912b72","type":"group","z":"2028f8501ae8d324","g":"1450561d1067038e","name":"Write InfluxDB Simulation","style":{"label":true},"nodes":["5a4139d90b78d742","0435fd7edbf4c0e5","4a677724fdc4abd4","7cf1e8ec0323d70c","2b1f9428e4da695e"],"x":134,"y":999,"w":682,"h":122},{"id":"bc1a9e59812324a8","type":"group","z":"2028f8501ae8d324","g":"890d9274d7692e90","name":"Write MQTT Simulation","style":{"label":true},"nodes":["1022e92372c96a67","684f57b723dbb3b8","5e08ca11df4b2549","11e78cc8111a6bf9","48a2794e8e067099"],"x":134,"y":1199,"w":792,"h":122},{"id":"052bb5f79ba9d28d","type":"group","z":"2028f8501ae8d324","g":"5aa450c3a36c52e7","name":"simulation (without Modbus-Flex-Getter)","style":{"label":true},"nodes":["b9ea0b58b1eb20e5","6604435bbb643849","332c92a1487427ce","be32b61e39d67f00","156ebb140aca4b5e","377062716f794cd6","c6c564b2259d7c8d","ef50897fb6b77ad8","7a33f4ad86531fdc"],"x":94,"y":419,"w":1012,"h":162},{"id":"0096ccccee6c9e5e","type":"group","z":"2028f8501ae8d324","g":"1450561d1067038e","name":"usage with MQTT and InfluxDB node","style":{"label":true},"nodes":["61a45386ac2acd2e","b5b404a38f2811fb","5739cd47448d784b","07b4bbb92abdf5a1","23c5deae55b611c3","b7a0e0ce7141f048","a076695eb8c52342","b681e8f42b3d9c43","30f2b493818dfa76","e2d3ebdcb08ad9f7","c735ff20ab5d92e0","80e34f6843eb7347","26a3bae742c39120"],"x":134,"y":859,"w":1172,"h":122},{"id":"1450561d1067038e","type":"group","z":"2028f8501ae8d324","g":"6a382c2a566644c4","name":"MQTT to InfluxDB","style":{"label":true},"nodes":["7341b7ee8a912b72","0096ccccee6c9e5e"],"x":108,"y":833,"w":1224,"h":314},{"id":"edd2241128b20ccb","type":"group","z":"2028f8501ae8d324","g":"890d9274d7692e90","name":"usage with OpcUa and MQTT node","style":{"label":true},"nodes":["a4b6ee97b44d00ff","e23f22db902223cb","a95e0e580a60d0e9","438010d72fd10c76","92fc4a497df1c10d","fb54c676f5bb1951"],"x":134,"y":1359,"w":792,"h":122},{"id":"890d9274d7692e90","type":"group","z":"2028f8501ae8d324","g":"6a382c2a566644c4","name":"OpcUa to MQTT","style":{"label":true},"nodes":["edd2241128b20ccb","bc1a9e59812324a8"],"x":108,"y":1173,"w":844,"h":334},{"id":"6a382c2a566644c4","type":"group","z":"2028f8501ae8d324","name":"MQTT-InfluxDB-Write","style":{"label":true,"fill":"#ffefbf","fill-opacity":"0.35"},"nodes":["1450561d1067038e","890d9274d7692e90"],"x":82,"y":807,"w":1276,"h":726},{"id":"3c7f449fbc204322","type":"group","z":"2028f8501ae8d324","name":"MQTT-InfluxDB-Alarm","style":{"label":true,"fill":"#ffbfbf","fill-opacity":"0.34"},"nodes":["2ff070921ed05c1e","572971ac0935f4b7"],"x":88,"y":1573,"w":1284,"h":314},{"id":"2ff070921ed05c1e","type":"group","z":"2028f8501ae8d324","g":"3c7f449fbc204322","name":"Write InfluxDB Simulation","style":{"label":true},"nodes":["0a36461124626c44","3e0377f8d0b6e75a","50ff2ae0348b40f8","4e958ab48d0d0c33","59ac67bc23c9bc2e"],"x":114,"y":1739,"w":712,"h":122},{"id":"572971ac0935f4b7","type":"group","z":"2028f8501ae8d324","g":"3c7f449fbc204322","name":"usage with MQTT and InfluxDB node","style":{"label":true},"nodes":["478c85c4691f84b9","b5dcea961f9e4043","f1f996630fad2be6","0ab7f487ec3f4391","3dd01d6329dc444b","56ee8c565011c261","a7bfa50212aa3631","7e7bca1cba8dc5f8","42bf4f86075b22ca","0053874af50610ea","a8dc34066e9469c0","69e0d9b2cf4ace25","0768daf99c3407c1"],"x":114,"y":1599,"w":1232,"h":122},{"id":"d476d91b8fc42be1","type":"group","z":"2028f8501ae8d324","g":"9669971edf216190","name":"usage with MQTT and InfluxDB node","style":{"label":true},"nodes":["a80d30f6dd7f3fd7","a6466ca9d2ce3574","da99e591390af0d1","c17fed866c84e098","ee90e4e144806dde","a480658994cd3004","6081fdccf2cc947f","4d829b21f72bf384","e8deef8b515426d8","a4b2f0bfe034afaf","54bf21bec5e86603"],"x":114,"y":1939,"w":1072,"h":122},{"id":"9669971edf216190","type":"group","z":"2028f8501ae8d324","name":"AlarmOutput","style":{"label":true,"stroke":"#777777","fill":"#bfc7d7","fill-opacity":"0.35"},"nodes":["d476d91b8fc42be1","d17043c5a2bd96b5"],"x":88,"y":1913,"w":1124,"h":314},{"id":"1022e92372c96a67","type":"inject","z":"2028f8501ae8d324","g":"bc1a9e59812324a8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":1280,"wires":[["5e08ca11df4b2549"]]},{"id":"684f57b723dbb3b8","type":"MQTT-InfluxDB-Write","z":"2028f8501ae8d324","g":"bc1a9e59812324a8","name":"/Error/System/Information","topicPath":"/Error/System/Information","function":"Write_MQTT","comEnabled":"false","format":"format_alarm","data1":"RcpMachine","data2":"RcpSystem","data3":"RcpRuntimes","data4":"UserData","data5":"DataBackup","data6":"RcpCoating","data7":"RcpScreenData","data8":"RcpOperation","data9":"","data10":"","data11":"","data12":"","data13":"","data14":"","data15":"","x":670,"y":1280,"wires":[["48a2794e8e067099"]]},{"id":"5e08ca11df4b2549","type":"function","z":"2028f8501ae8d324","g":"bc1a9e59812324a8","name":"get Data","func":"msg.payload = {};\nmsg.payload.MachineID = \"G414\";\nmsg.payload.Value = 1;\nmsg.payload.Communication = 0.2222;\nmsg.topic = \".Error.System.Information.UserData\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":1280,"wires":[["684f57b723dbb3b8","11e78cc8111a6bf9"]]},{"id":"5a4139d90b78d742","type":"inject","z":"2028f8501ae8d324","g":"7341b7ee8a912b72","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":1080,"wires":[["0435fd7edbf4c0e5"]]},{"id":"0435fd7edbf4c0e5","type":"function","z":"2028f8501ae8d324","g":"7341b7ee8a912b72","name":"Get Data","func":"msg.payload = {};\nmsg.payload.MachineID = \"G414\";\nmsg.payload.Value = 10;\nmsg.topic = \"Runtimes/ServiceCounter\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":1080,"wires":[["4a677724fdc4abd4","7cf1e8ec0323d70c"]]},{"id":"bf1dc516eb672c3f","type":"AlarmOutput","z":"2028f8501ae8d324","g":"d17043c5a2bd96b5","name":"Main_Warning","mqttPath":"Error/Main_Warning","language":"0","alarmList":"[\n    {\n        \"Enable\": true,\n        \"Alarm\": \"Main W00\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A01\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": true,\n        \"Alarm\": \"Main W02\",\n        \"Message\": [\n            \"Unload station full\",\n            \"Entladestation voll\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A03\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A04\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": true,\n        \"Alarm\": \"Main W05\",\n        \"Message\": [\n            \"Code reader\",\n            \"Code-Leser\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A06\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A07\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A08\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A09\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A10\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A11\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A12\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A13\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": true,\n        \"Alarm\": \"Main W14\",\n        \"Message\": [\n            \"CPU (IN)\",\n            \"CPU (IN)\"\n        ]\n    },\n    {\n        \"Enable\": true,\n        \"Alarm\": \"Main W15\",\n        \"Message\": [\n            \"CPU (OUT)\",\n            \"CPU (OUT)\"\n        ]\n    }\n]","x":600,"y":2160,"wires":[["c6f72a5cdd838e8f"]]},{"id":"7d64cde5b6fa12de","type":"inject","z":"2028f8501ae8d324","g":"d17043c5a2bd96b5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":2160,"wires":[["cfb7f4b42db3f7f4"]]},{"id":"cfb7f4b42db3f7f4","type":"function","z":"2028f8501ae8d324","g":"d17043c5a2bd96b5","name":"get Data","func":"msg.payload = 32768;\nmsg.topic = \"Error/Main_Warning\";\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":360,"y":2160,"wires":[["bf1dc516eb672c3f","ad5415927d2be48c"]]},{"id":"4fcaa3c3fd7bd667","type":"inject","z":"2028f8501ae8d324","g":"f192c24b07f980a6","name":"Timer 1s","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":320,"wires":[["e726c250d6b3222f"]]},{"id":"e726c250d6b3222f","type":"function","z":"2028f8501ae8d324","g":"f192c24b07f980a6","name":"GET DATA (R)","func":"msg.payload ={\n    'fc':3,\n    'unitid':1,\n    'address':32100,\n    'quantity':100\n}\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":360,"y":320,"wires":[["ebb19e6c17d17695","c44c6d0a17a981a4"]]},{"id":"ebb19e6c17d17695","type":"modbus-flex-getter","z":"2028f8501ae8d324","d":true,"g":"f192c24b07f980a6","name":"ModbusRead","showStatusActivities":true,"showErrors":true,"showWarnings":true,"logIOActivities":false,"server":"8c58d16a9b4d0d11","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":true,"keepMsgProperties":true,"delayOnStart":false,"startDelayTime":"1","x":530,"y":320,"wires":[["82d6cd6601d75b3f","2d7ceb9da62cc9fe"],[]]},{"id":"82d6cd6601d75b3f","type":"function","z":"2028f8501ae8d324","g":"f192c24b07f980a6","name":"Get Payload","func":"let value = msg.payload;\nmsg.payload = {};\nmsg.payload.Value = value;\nmsg.payload.MachineID = flow.get(\"fMachineID\");\nmsg.payload.Communication = flow.get(\"fCommunication\");\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":320,"wires":[["c5e7bef9b66c6e71","487d29eb1d55dcd7","1fb03f72fff7ef59"]]},{"id":"40b91462882b427d","type":"inject","z":"2028f8501ae8d324","g":"b9fa176521d2a9b2","name":"INIT","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":120,"wires":[["f6830eea7e34399b"]]},{"id":"f6830eea7e34399b","type":"function","z":"2028f8501ae8d324","g":"b9fa176521d2a9b2","name":"INIT","func":"// Machine ID\nflow.set('fMachineID', \"170E350\"); ","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":350,"y":120,"wires":[[]]},{"id":"506c264e4923d649","type":"comment","z":"2028f8501ae8d324","g":"b9fa176521d2a9b2","name":"Set INIT parameter","info":"","x":390,"y":80,"wires":[]},{"id":"5308f52893abaf49","type":"comment","z":"2028f8501ae8d324","g":"14fb90486119ea3b","name":"Machine connected","info":"","x":810,"y":80,"wires":[]},{"id":"afad5042fee878a7","type":"function","z":"2028f8501ae8d324","g":"14fb90486119ea3b","name":"Store Ping","func":"// Machine online\nif (msg.payload === false){\n    flow.set('fCommunication', 0);\n}\nelse { \n    flow.set('fCommunication', 1);\n}","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":1030,"y":120,"wires":[[]]},{"id":"97275e23a6da3e7d","type":"ping","z":"2028f8501ae8d324","g":"14fb90486119ea3b","protocol":"IPv4","mode":"timed","name":"Ping 192.168.1.1","host":"192.168.1.1","timer":"2","inputs":0,"x":800,"y":120,"wires":[["afad5042fee878a7"]]},{"id":"c5e7bef9b66c6e71","type":"Modbus-Read","z":"2028f8501ae8d324","g":"f192c24b07f980a6","name":"Runtimes","mqttPath":"Runtimes","comEnabled":"false","format":"format_unit","data1":"ServiceCounter [90] [%]","data2":"DayCounter [91] [#]","data3":"","data4":"","data5":"","data6":"","data7":"","data8":"","data9":"","data10":"","data11":"","data12":"","data13":"","data14":"","data15":"","x":860,"y":300,"wires":[["7fcaf68cd1ba914c","e7ea5764945df980"]]},{"id":"487d29eb1d55dcd7","type":"Modbus-Read","z":"2028f8501ae8d324","g":"f192c24b07f980a6","name":"Error","mqttPath":"Error","comEnabled":"false","format":"format_payload","data1":"Main_Warning [10]","data2":"Main_Alarm [11]","data3":"","data4":"","data5":"","data6":"","data7":"","data8":"","data9":"","data10":"","data11":"","data12":"","data13":"","data14":"","data15":"","x":850,"y":340,"wires":[["98d144351cb916a0","e7ea5764945df980"]]},{"id":"7fcaf68cd1ba914c","type":"debug","z":"2028f8501ae8d324","g":"f192c24b07f980a6","name":"debug 146","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":955,"y":280,"wires":[],"l":false},{"id":"98d144351cb916a0","type":"debug","z":"2028f8501ae8d324","g":"f192c24b07f980a6","name":"debug 147","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":955,"y":360,"wires":[],"l":false},{"id":"b9ea0b58b1eb20e5","type":"inject","z":"2028f8501ae8d324","g":"052bb5f79ba9d28d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":520,"wires":[["be32b61e39d67f00"]]},{"id":"6604435bbb643849","type":"Modbus-Read","z":"2028f8501ae8d324","g":"052bb5f79ba9d28d","name":"Runtimes","mqttPath":"Runtimes","comEnabled":"false","format":"format_unit","data1":"ServiceCounter [90] [%]","data2":"DayCounter [91] [#]","data3":"","data4":"","data5":"","data6":"","data7":"","data8":"","data9":"","data10":"","data11":"","data12":"","data13":"","data14":"","data15":"","x":860,"y":500,"wires":[["ef50897fb6b77ad8"]]},{"id":"332c92a1487427ce","type":"function","z":"2028f8501ae8d324","g":"052bb5f79ba9d28d","name":"Get Payload","func":"var value = msg.payload;\nmsg.payload = {};\nmsg.payload.Value = value;\nmsg.payload.MachineID = \"G414\";\nmsg.payload.Communication = 0.16;\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":590,"y":520,"wires":[["6604435bbb643849","377062716f794cd6","c6c564b2259d7c8d"]]},{"id":"be32b61e39d67f00","type":"function","z":"2028f8501ae8d324","g":"052bb5f79ba9d28d","name":"Modbus output","func":"var value = \nmsg.payload = {};\nmsg.payload = {\n    10: 1,\n    11: 2,\n    90: 5,\n    91: 12\n}\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":360,"y":520,"wires":[["332c92a1487427ce","156ebb140aca4b5e"]]},{"id":"156ebb140aca4b5e","type":"debug","z":"2028f8501ae8d324","g":"052bb5f79ba9d28d","name":"debug 152","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":535,"y":480,"wires":[],"l":false},{"id":"377062716f794cd6","type":"debug","z":"2028f8501ae8d324","g":"052bb5f79ba9d28d","name":"debug 153","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":775,"y":460,"wires":[],"l":false},{"id":"c6c564b2259d7c8d","type":"Modbus-Read","z":"2028f8501ae8d324","g":"052bb5f79ba9d28d","name":"Error","mqttPath":"Error","comEnabled":"false","format":"format_payload","data1":"Main_Warning [10]","data2":"Main_Alarm [11]","data3":"","data4":"","data5":"","data6":"","data7":"","data8":"","data9":"","data10":"","data11":"","data12":"","data13":"","data14":"","data15":"","x":850,"y":540,"wires":[["7a33f4ad86531fdc"]]},{"id":"ef50897fb6b77ad8","type":"debug","z":"2028f8501ae8d324","g":"052bb5f79ba9d28d","name":"debug 154","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":1045,"y":500,"wires":[],"l":false},{"id":"7a33f4ad86531fdc","type":"debug","z":"2028f8501ae8d324","g":"052bb5f79ba9d28d","name":"debug 155","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":1045,"y":540,"wires":[],"l":false},{"id":"c44c6d0a17a981a4","type":"debug","z":"2028f8501ae8d324","g":"f192c24b07f980a6","name":"debug 156","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":475,"y":280,"wires":[],"l":false},{"id":"2d7ceb9da62cc9fe","type":"debug","z":"2028f8501ae8d324","g":"f192c24b07f980a6","name":"debug 157","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":635,"y":280,"wires":[],"l":false},{"id":"1fb03f72fff7ef59","type":"debug","z":"2028f8501ae8d324","g":"f192c24b07f980a6","name":"debug 158","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":815,"y":260,"wires":[],"l":false},{"id":"610e877cc9570456","type":"OpcUa-Read","z":"2028f8501ae8d324","g":"9ccb49b6389b9c79","name":"States","path":"ns=6;s=::Industry40:Interface.Info.Runtimes.","value":"","data1":"bCommunication [Boolean]","data2":"MachineState [Int32]","data3":"OperationState [Int16]","data4":"AlarmState [Int16]","data5":"","data6":"","data7":"","data8":"","data9":"","data10":"","data11":"","data12":"","data13":"","data14":"","data15":"","x":390,"y":700,"wires":[["bea23f5c4ee93944","4fd45a4eaa90f9cf"]]},{"id":"c227da2d9542e15e","type":"inject","z":"2028f8501ae8d324","g":"9ccb49b6389b9c79","name":"Timer 1s","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":true,"onceDelay":"0.1","topic":"","payload":"","payloadType":"date","x":180,"y":720,"wires":[["610e877cc9570456","49b05821932ebd43"]]},{"id":"bea23f5c4ee93944","type":"OpcUa-Client","z":"2028f8501ae8d324","d":true,"g":"9ccb49b6389b9c79","endpoint":"37fbf021cca08335","action":"subscribe","deadbandtype":"a","deadbandvalue":"0","time":"3","timeUnit":"s","certificate":"n","localfile":"","localkeyfile":"","securitymode":"None","securitypolicy":"None","useTransport":false,"maxChunkCount":"","maxMessageSize":"","receiveBufferSize":"","sendBufferSize":"","name":"OpcUa-Client Read","x":890,"y":720,"wires":[["7e44534ebec9e15f","c124c515577a6458"],[]]},{"id":"49b05821932ebd43","type":"OpcUa-Read","z":"2028f8501ae8d324","g":"9ccb49b6389b9c79","name":"Counter","path":"ns=6;s=::Industry40:Interface.Info.Runtimes.","value":"","data1":"usServiceCounter [Byte]","data2":"udDayCounter [UInt32]","data3":"udTotalCounter [UInt32]","data4":"","data5":"","data6":"","data7":"","data8":"","data9":"","data10":"","data11":"","data12":"","data13":"","data14":"","data15":"","x":400,"y":740,"wires":[["bea23f5c4ee93944","8e69ae700bef236c"]]},{"id":"e7ea5764945df980","type":"mqtt out","z":"2028f8501ae8d324","d":true,"g":"f192c24b07f980a6","name":"Set MQTT","topic":"","qos":"0","retain":"true","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"283b92b776d3f544","x":1010,"y":320,"wires":[]},{"id":"7e44534ebec9e15f","type":"debug","z":"2028f8501ae8d324","g":"9ccb49b6389b9c79","name":"debug 159","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":1075,"y":680,"wires":[],"l":false},{"id":"4fd45a4eaa90f9cf","type":"debug","z":"2028f8501ae8d324","g":"9ccb49b6389b9c79","name":"debug 160","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":505,"y":700,"wires":[],"l":false},{"id":"8e69ae700bef236c","type":"debug","z":"2028f8501ae8d324","g":"9ccb49b6389b9c79","name":"debug 161","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":505,"y":740,"wires":[],"l":false},{"id":"23c5deae55b611c3","type":"mqtt in","z":"2028f8501ae8d324","d":true,"g":"0096ccccee6c9e5e","name":"Get MQTT","topic":"GRUNIG/#","qos":"0","datatype":"auto-detect","broker":"283b92b776d3f544","nl":false,"rap":true,"rh":0,"inputs":0,"x":220,"y":940,"wires":[["b7a0e0ce7141f048","26a3bae742c39120"]]},{"id":"b7a0e0ce7141f048","type":"function","z":"2028f8501ae8d324","g":"0096ccccee6c9e5e","name":"Filter MachineID","func":"if (msg.topic.includes(\"GRUNIG/\" + flow.get('fMachineID') + \"/\")){\n    return msg;\n}\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":380,"y":940,"wires":[["07b4bbb92abdf5a1","30f2b493818dfa76"]]},{"id":"07b4bbb92abdf5a1","type":"rbe","z":"2028f8501ae8d324","g":"0096ccccee6c9e5e","name":"Changes","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":540,"y":940,"wires":[["61a45386ac2acd2e","b681e8f42b3d9c43"]]},{"id":"61a45386ac2acd2e","type":"function","z":"2028f8501ae8d324","g":"0096ccccee6c9e5e","name":"Get Data","func":"let value = msg.payload;\nmsg.payload = {};\nmsg.payload.MachineID = flow.get(\"fMachineID\");\nmsg.payload.Value = value.value;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":680,"y":940,"wires":[["a076695eb8c52342","e2d3ebdcb08ad9f7"]]},{"id":"b5b404a38f2811fb","type":"function","z":"2028f8501ae8d324","g":"0096ccccee6c9e5e","name":"set measurement","func":"msg.measurement = flow.get(\"fMachineID\")\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":990,"y":940,"wires":[["5739cd47448d784b","80e34f6843eb7347"]]},{"id":"5739cd47448d784b","type":"influxdb out","z":"2028f8501ae8d324","d":true,"g":"0096ccccee6c9e5e","influxdb":"2889eb7141972ea4","name":"InfluxDB2 - LOCAL","measurement":"","precision":"","retentionPolicy":"","database":"influx","precisionV18FluxV20":"ms","retentionPolicyV18Flux":"","org":"customer","bucket":"local","x":1190,"y":940,"wires":[]},{"id":"a076695eb8c52342","type":"MQTT-InfluxDB-Write","z":"2028f8501ae8d324","g":"0096ccccee6c9e5e","name":"Runtimes","topicPath":"Runtimes","function":"Write_DB","comEnabled":"false","format":"format_unit","typeDB":"Runtime","data1":"ServiceCounter","data2":"DayCounter","data3":"TotalCounter","data4":"","data5":"","data6":"","data7":"","data8":"","data9":"","data10":"","data11":"","data12":"","data13":"","data14":"","data15":"","x":820,"y":940,"wires":[["b5b404a38f2811fb","c735ff20ab5d92e0"]]},{"id":"4a677724fdc4abd4","type":"MQTT-InfluxDB-Write","z":"2028f8501ae8d324","g":"7341b7ee8a912b72","name":"Runtimes","topicPath":"Runtimes","function":"Write_DB","comEnabled":"false","format":"format_unit","typeDB":"Runtime","data1":"ServiceCounter","data2":"DayCounter","data3":"TotalCounter","data4":"","data5":"","data6":"","data7":"","data8":"","data9":"","data10":"","data11":"","data12":"","data13":"","data14":"","data15":"","x":660,"y":1080,"wires":[["2b1f9428e4da695e"]]},{"id":"b681e8f42b3d9c43","type":"debug","z":"2028f8501ae8d324","g":"0096ccccee6c9e5e","name":"debug 162","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":635,"y":900,"wires":[],"l":false},{"id":"30f2b493818dfa76","type":"debug","z":"2028f8501ae8d324","g":"0096ccccee6c9e5e","name":"debug 163","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":495,"y":900,"wires":[],"l":false},{"id":"e2d3ebdcb08ad9f7","type":"debug","z":"2028f8501ae8d324","g":"0096ccccee6c9e5e","name":"debug 164","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":775,"y":900,"wires":[],"l":false},{"id":"c735ff20ab5d92e0","type":"debug","z":"2028f8501ae8d324","g":"0096ccccee6c9e5e","name":"debug 165","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":915,"y":900,"wires":[],"l":false},{"id":"80e34f6843eb7347","type":"debug","z":"2028f8501ae8d324","g":"0096ccccee6c9e5e","name":"debug 166","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":1115,"y":900,"wires":[],"l":false},{"id":"26a3bae742c39120","type":"debug","z":"2028f8501ae8d324","g":"0096ccccee6c9e5e","name":"debug 167","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":315,"y":900,"wires":[],"l":false},{"id":"7cf1e8ec0323d70c","type":"debug","z":"2028f8501ae8d324","g":"7341b7ee8a912b72","name":"debug 168","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":615,"y":1040,"wires":[],"l":false},{"id":"2b1f9428e4da695e","type":"debug","z":"2028f8501ae8d324","g":"7341b7ee8a912b72","name":"debug 169","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":755,"y":1080,"wires":[],"l":false},{"id":"a4b6ee97b44d00ff","type":"function","z":"2028f8501ae8d324","g":"edd2241128b20ccb","name":"Get Data","func":"let value = msg.payload;\nmsg.payload = {};\nmsg.payload.MachineID = flow.get(\"fMachineID\");\nmsg.payload.Value = value;\nmsg.payload.Communication = flow.get(\"fCommunication\");\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":280,"y":1420,"wires":[["92fc4a497df1c10d","fb54c676f5bb1951"]]},{"id":"c124c515577a6458","type":"link out","z":"2028f8501ae8d324","g":"9ccb49b6389b9c79","name":"OPC_UA-Out","mode":"link","links":["e23f22db902223cb"],"x":1075,"y":720,"wires":[]},{"id":"e23f22db902223cb","type":"link in","z":"2028f8501ae8d324","g":"edd2241128b20ccb","name":"OpcUa_toMQTTIn","links":["c124c515577a6458"],"x":175,"y":1420,"wires":[["a4b6ee97b44d00ff"]]},{"id":"a95e0e580a60d0e9","type":"rbe","z":"2028f8501ae8d324","g":"edd2241128b20ccb","name":"Changes","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":680,"y":1420,"wires":[["438010d72fd10c76"]]},{"id":"438010d72fd10c76","type":"mqtt out","z":"2028f8501ae8d324","g":"edd2241128b20ccb","name":"Set MQTT","topic":"","qos":"0","retain":"true","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"283b92b776d3f544","x":830,"y":1420,"wires":[]},{"id":"92fc4a497df1c10d","type":"MQTT-InfluxDB-Write","z":"2028f8501ae8d324","g":"edd2241128b20ccb","name":"/Error/System/Warning","topicPath":"/Error/System/Warning","function":"Write_MQTT","comEnabled":"false","format":"format_alarm","data1":"ServiceRecommended","data2":"","data3":"","data4":"","data5":"","data6":"","data7":"","data8":"","data9":"","data10":"","data11":"","data12":"","data13":"","data14":"","data15":"","x":480,"y":1400,"wires":[["a95e0e580a60d0e9"]]},{"id":"fb54c676f5bb1951","type":"MQTT-InfluxDB-Write","z":"2028f8501ae8d324","g":"edd2241128b20ccb","name":"/Info/Runtimes","topicPath":"/Info/Runtimes","function":"Write_MQTT","comEnabled":"false","format":"format_unit","data1":"ServiceCounter [%]","data2":"DayCounter [#]","data3":"TotalCounter [#]","data4":"","data5":"","data6":"","data7":"","data8":"","data9":"","data10":"","data11":"","data12":"","data13":"","data14":"","data15":"","x":460,"y":1440,"wires":[["a95e0e580a60d0e9"]]},{"id":"11e78cc8111a6bf9","type":"debug","z":"2028f8501ae8d324","g":"bc1a9e59812324a8","name":"debug 170","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":575,"y":1240,"wires":[],"l":false},{"id":"48a2794e8e067099","type":"debug","z":"2028f8501ae8d324","g":"bc1a9e59812324a8","name":"debug 171","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":865,"y":1280,"wires":[],"l":false},{"id":"0768daf99c3407c1","type":"MQTT-InfluxDB-Alarm","z":"2028f8501ae8d324","g":"572971ac0935f4b7","name":"Main Alarm","topicPath":"Error/Main/Alarm","typeDB":"Main Alarm","data1":"EmergencyStop","data2":"SupplyFC","data3":"AirSupply","data4":"FCCarriageTraverseAxis","data5":"","data6":"","data7":"","data8":"","data9":"","data10":"","data11":"","data12":"","data13":"","data14":"","data15":"","x":830,"y":1680,"wires":[["b5dcea961f9e4043","0053874af50610ea"]]},{"id":"0a36461124626c44","type":"inject","z":"2028f8501ae8d324","g":"2ff070921ed05c1e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":1820,"wires":[["3e0377f8d0b6e75a"]]},{"id":"3e0377f8d0b6e75a","type":"function","z":"2028f8501ae8d324","g":"2ff070921ed05c1e","name":"Get Data","func":"msg.payload = {};\nmsg.payload.MachineID = \"G414\";\nmsg.payload.Value = 10;\nmsg.topic = \"Runtimes/ServiceCounter\";\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":380,"y":1820,"wires":[["50ff2ae0348b40f8","59ac67bc23c9bc2e"]]},{"id":"50ff2ae0348b40f8","type":"debug","z":"2028f8501ae8d324","g":"2ff070921ed05c1e","name":"debug 172","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":595,"y":1780,"wires":[],"l":false},{"id":"4e958ab48d0d0c33","type":"debug","z":"2028f8501ae8d324","g":"2ff070921ed05c1e","name":"debug 173","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":765,"y":1820,"wires":[],"l":false},{"id":"478c85c4691f84b9","type":"function","z":"2028f8501ae8d324","g":"572971ac0935f4b7","name":"Get Data","func":"let value = msg.payload;\nmsg.payload = {};\nmsg.payload.MachineID = flow.get(\"fMachineID\");\nmsg.payload.Value = value.value;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":660,"y":1680,"wires":[["42bf4f86075b22ca","0768daf99c3407c1"]]},{"id":"b5dcea961f9e4043","type":"function","z":"2028f8501ae8d324","g":"572971ac0935f4b7","name":"set measurement","func":"msg.measurement = flow.get(\"fMachineID\")\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":1010,"y":1680,"wires":[["f1f996630fad2be6","a8dc34066e9469c0"]]},{"id":"f1f996630fad2be6","type":"influxdb out","z":"2028f8501ae8d324","d":true,"g":"572971ac0935f4b7","influxdb":"2889eb7141972ea4","name":"InfluxDB2 - LOCAL","measurement":"","precision":"","retentionPolicy":"","database":"influx","precisionV18FluxV20":"ms","retentionPolicyV18Flux":"","org":"customer","bucket":"local","x":1230,"y":1680,"wires":[]},{"id":"0ab7f487ec3f4391","type":"rbe","z":"2028f8501ae8d324","g":"572971ac0935f4b7","name":"Changes","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":520,"y":1680,"wires":[["478c85c4691f84b9","a7bfa50212aa3631"]]},{"id":"3dd01d6329dc444b","type":"mqtt in","z":"2028f8501ae8d324","d":true,"g":"572971ac0935f4b7","name":"Get MQTT","topic":"GRUNIG/#","qos":"0","datatype":"auto-detect","broker":"283b92b776d3f544","nl":false,"rap":true,"rh":0,"inputs":0,"x":200,"y":1680,"wires":[["56ee8c565011c261","69e0d9b2cf4ace25"]]},{"id":"56ee8c565011c261","type":"function","z":"2028f8501ae8d324","g":"572971ac0935f4b7","name":"Filter MachineID","func":"if (msg.topic.includes(\"GRUNIG/\" + flow.get('fMachineID') + \"/\")){\n    return msg;\n}\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":360,"y":1680,"wires":[["0ab7f487ec3f4391","7e7bca1cba8dc5f8"]]},{"id":"a7bfa50212aa3631","type":"debug","z":"2028f8501ae8d324","g":"572971ac0935f4b7","name":"debug 174","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":615,"y":1640,"wires":[],"l":false},{"id":"7e7bca1cba8dc5f8","type":"debug","z":"2028f8501ae8d324","g":"572971ac0935f4b7","name":"debug 175","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":475,"y":1640,"wires":[],"l":false},{"id":"42bf4f86075b22ca","type":"debug","z":"2028f8501ae8d324","g":"572971ac0935f4b7","name":"debug 176","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":755,"y":1640,"wires":[],"l":false},{"id":"0053874af50610ea","type":"debug","z":"2028f8501ae8d324","g":"572971ac0935f4b7","name":"debug 177","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":935,"y":1640,"wires":[],"l":false},{"id":"a8dc34066e9469c0","type":"debug","z":"2028f8501ae8d324","g":"572971ac0935f4b7","name":"debug 178","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":1155,"y":1640,"wires":[],"l":false},{"id":"69e0d9b2cf4ace25","type":"debug","z":"2028f8501ae8d324","g":"572971ac0935f4b7","name":"debug 179","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":295,"y":1640,"wires":[],"l":false},{"id":"59ac67bc23c9bc2e","type":"MQTT-InfluxDB-Alarm","z":"2028f8501ae8d324","g":"2ff070921ed05c1e","name":"Main Alarm","topicPath":"Error/Main/Alarm","typeDB":"Main Alarm","data1":"EmergencyStop","data2":"SupplyFC","data3":"AirSupply","data4":"FCCarriageTraverseAxis","data5":"","data6":"","data7":"","data8":"","data9":"","data10":"","data11":"","data12":"","data13":"","data14":"","data15":"","x":650,"y":1820,"wires":[["4e958ab48d0d0c33"]]},{"id":"a80d30f6dd7f3fd7","type":"rbe","z":"2028f8501ae8d324","g":"d476d91b8fc42be1","name":"Changes","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":520,"y":2020,"wires":[["4d829b21f72bf384","54bf21bec5e86603"]]},{"id":"a6466ca9d2ce3574","type":"mqtt in","z":"2028f8501ae8d324","d":true,"g":"d476d91b8fc42be1","name":"Get MQTT","topic":"GRUNIG/#","qos":"0","datatype":"auto-detect","broker":"283b92b776d3f544","nl":false,"rap":true,"rh":0,"inputs":0,"x":200,"y":2020,"wires":[["da99e591390af0d1","a480658994cd3004"]]},{"id":"da99e591390af0d1","type":"function","z":"2028f8501ae8d324","g":"d476d91b8fc42be1","name":"Filter MachineID","func":"if (msg.topic.includes(\"GRUNIG/\" + flow.get('fMachineID') + \"/\")){\n    return msg;\n}\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":360,"y":2020,"wires":[["a80d30f6dd7f3fd7","6081fdccf2cc947f"]]},{"id":"c17fed866c84e098","type":"function","z":"2028f8501ae8d324","g":"d476d91b8fc42be1","name":"set measurement","func":"msg.measurement = flow.get(\"fMachineID\")\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":870,"y":2020,"wires":[["ee90e4e144806dde","a4b2f0bfe034afaf"]]},{"id":"ee90e4e144806dde","type":"influxdb out","z":"2028f8501ae8d324","d":true,"g":"d476d91b8fc42be1","influxdb":"2889eb7141972ea4","name":"InfluxDB2 - LOCAL","measurement":"","precision":"","retentionPolicy":"","database":"influx","precisionV18FluxV20":"ms","retentionPolicyV18Flux":"","org":"customer","bucket":"local","x":1070,"y":2020,"wires":[]},{"id":"a480658994cd3004","type":"debug","z":"2028f8501ae8d324","g":"d476d91b8fc42be1","name":"debug 180","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":295,"y":1980,"wires":[],"l":false},{"id":"6081fdccf2cc947f","type":"debug","z":"2028f8501ae8d324","g":"d476d91b8fc42be1","name":"debug 181","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":475,"y":1980,"wires":[],"l":false},{"id":"4d829b21f72bf384","type":"debug","z":"2028f8501ae8d324","g":"d476d91b8fc42be1","name":"debug 182","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":615,"y":1980,"wires":[],"l":false},{"id":"e8deef8b515426d8","type":"debug","z":"2028f8501ae8d324","g":"d476d91b8fc42be1","name":"debug 183","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":795,"y":1980,"wires":[],"l":false},{"id":"a4b2f0bfe034afaf","type":"debug","z":"2028f8501ae8d324","g":"d476d91b8fc42be1","name":"debug 184","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":1005,"y":1980,"wires":[],"l":false},{"id":"ad5415927d2be48c","type":"debug","z":"2028f8501ae8d324","g":"d17043c5a2bd96b5","name":"debug 185","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":535,"y":2120,"wires":[],"l":false},{"id":"c6f72a5cdd838e8f","type":"debug","z":"2028f8501ae8d324","g":"d17043c5a2bd96b5","name":"debug 186","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":775,"y":2160,"wires":[],"l":false},{"id":"54bf21bec5e86603","type":"AlarmOutput","z":"2028f8501ae8d324","g":"d476d91b8fc42be1","name":"Main_Warning","mqttPath":"Error/Main_Warning","language":"0","alarmList":"[\n    {\n        \"Enable\": true,\n        \"Alarm\": \"Main W00\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A01\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": true,\n        \"Alarm\": \"Main W02\",\n        \"Message\": [\n            \"Unload station full\",\n            \"Entladestation voll\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A03\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A04\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": true,\n        \"Alarm\": \"Main W05\",\n        \"Message\": [\n            \"Code reader\",\n            \"Code-Leser\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A06\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A07\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A08\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A09\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A10\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A11\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A12\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": false,\n        \"Alarm\": \"A13\",\n        \"Message\": [\n            \"\",\n            \"\"\n        ]\n    },\n    {\n        \"Enable\": true,\n        \"Alarm\": \"Main W14\",\n        \"Message\": [\n            \"CPU (IN)\",\n            \"CPU (IN)\"\n        ]\n    },\n    {\n        \"Enable\": true,\n        \"Alarm\": \"Main W15\",\n        \"Message\": [\n            \"CPU (OUT)\",\n            \"CPU (OUT)\"\n        ]\n    }\n]","x":680,"y":2020,"wires":[["c17fed866c84e098","e8deef8b515426d8"]]},{"id":"8c58d16a9b4d0d11","type":"modbus-client","name":"Modbus-IP10","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"failureLogEnabled":true,"tcpHost":"192.168.1.1","tcpPort":"50","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","serialAsciiResponseStartDelimiter":"0x3A","unit_id":"1","commandDelay":"1","clientTimeout":"3000","reconnectOnTimeout":true,"reconnectTimeout":"2000","parallelUnitIdsAllowed":true,"showErrors":false,"showWarnings":true,"showLogs":true},{"id":"37fbf021cca08335","type":"OpcUa-Endpoint","endpoint":"opc.tcp://192.168.1.1:4840","secpol":"None","secmode":"None","none":true,"login":false,"usercert":false,"usercertificate":"","userprivatekey":""},{"id":"283b92b776d3f544","type":"mqtt-broker","name":"Mosquitto","broker":"mosquitto","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""},{"id":"2889eb7141972ea4","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"database","name":"InfluxDB_LOCAL","usetls":false,"tls":"","influxdbVersion":"2.0","url":"http://influxdb:8086","timeout":"","rejectUnauthorized":true}]

Flow Info

Created 2 weeks, 2 days ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • comment (x2)
  • debug (x37)
  • function (x19)
  • inject (x8)
  • link in (x1)
  • link out (x1)
  • mqtt in (x3)
  • mqtt out (x2)
  • mqtt-broker (x1)
  • rbe (x4)
Other

Tags

  • grunig-nodes
  • modbus
  • OpcUa
  • MQTT
  • InfluxDB
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option