Grundfos Digital Sensors

From Heatweb Wiki
Jump to: navigation, search

File:MFS 3in1 Sensor, Application Note.pdf

File:QPT Sensor, Application Note.pdf

Flow

[{"id":"6ebd695a.f93418","type":"tab","label":"Flow 4"},{"id":"32251ccb.e95264","type":"serial in","z":"6ebd695a.f93418","name":"","serial":"8465fda4.e2d76","x":110,"y":420,"wires":[[]]},{"id":"85066fdd.244dd","type":"inject","z":"6ebd695a.f93418","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"x":170,"y":140,"wires":[["309e9fd9.6ae24"]]},{"id":"309e9fd9.6ae24","type":"function","z":"6ebd695a.f93418","name":"store HIU","func":"//72 08 EE 80 01 FF FC E4 72 08 EE 80 04 0A 0E 04\n\n// 72 07 EE 00 00 00 67 \n// 72 05 EE 03 68               r.î...gr.î.h\n\n // 72 06 EE 02 02 6A  \n // 72 06 EE 02 03 6B \n // 72 06 EE 02 04 6C \n // 72 06 EE 02 08 70 \n // 72 06 EE 02 06 6E \n // 72 06 EE 02 07 6F \n // 72 06 EE 02 01 69 \n // 72 07 EE 00 05 07 73                                                s\n\n\n// close 72 07 EE 00 00 00 67                               r.î...g\n\n\n\n//var tosend = \"\" + 0x72 + 0x08 + 0xEE + 0x80 + 0x01 + 0xFF + 0xFC + 0xE4;  // 0x72\nvar tosend = String.fromCharCode(0x72); \ntosend += String.fromCharCode(0x07);  // 0xEE\ntosend += String.fromCharCode(0xEE);  // 0xEE\ntosend += String.fromCharCode(0x00);  // 0x80\ntosend += String.fromCharCode(0x00);  // 0x80\ntosend += String.fromCharCode(0x00);  // 0x80\ntosend += String.fromCharCode(0x67);  // 0x80\n\ntosend += String.fromCharCode(0x72);  // 0xEE\ntosend += String.fromCharCode(0x05);  // 0x80\ntosend += String.fromCharCode(0xEE);  // 0x80\ntosend += String.fromCharCode(0x03);  // 0x80\ntosend += String.fromCharCode(0x68);  // 0x80\n\n\n \n//tosend += String.fromCharCode(0xE5);  // 0x80\n\n//tosend += String.fromCharCode(4);  // 0x00\n//tosend += String.fromCharCode(1);  // 0x00\n\n\n//var checksum = (114 + 5 + 238 + 0 + 4 + 1) %255;\n\n//tosend += String.fromCharCode(checksum);  \n\n//tosend += \"\\n\";\n//tosend += String.fromCharCode(78) + String.fromCharCode(67) + String.fromCharCode(13) + String.fromCharCode(0) + String.fromCharCode(0) + String.fromCharCode(0) + String.fromCharCode(0) + String.fromCharCode(59);\n\n\nmsg.usb=\"usb1\";\n\nmsg.payload = tosend;\n\nreturn msg;\n","outputs":1,"noerr":0,"x":320,"y":140,"wires":[["9619a863.e8b698","7598fe8d.602c9"]]},{"id":"9619a863.e8b698","type":"function","z":"6ebd695a.f93418","name":"pass","func":"\n\nmsg.payload  = Buffer.from(msg.payload, 'ascii');\n\n\n\n\nreturn msg;","outputs":1,"noerr":0,"x":350,"y":320,"wires":[["1c51891f.909557","8b56ee8d.2744a"]]},{"id":"8b56ee8d.2744a","type":"debug","z":"6ebd695a.f93418","name":"","active":false,"console":"false","complete":"false","x":530,"y":380,"wires":[]},{"id":"4242de6d.dc872","type":"serial in","z":"6ebd695a.f93418","name":"","serial":"acbf5b3a.fc8008","x":110,"y":480,"wires":[["c8bce37d.eba59","5e7ca3dd.02226c"]]},{"id":"f1797a47.d4a488","type":"inject","z":"6ebd695a.f93418","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":180,"y":60,"wires":[["5ea65eb4.d273"]]},{"id":"5ea65eb4.d273","type":"exec","z":"6ebd695a.f93418","command":"ls /dev/tty*","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":320,"y":60,"wires":[["719dfc8e.0fe7f4"],[],[]]},{"id":"719dfc8e.0fe7f4","type":"debug","z":"6ebd695a.f93418","name":"","active":true,"console":"false","complete":"false","x":490,"y":60,"wires":[]},{"id":"c1535fa4.e0137","type":"debug","z":"6ebd695a.f93418","name":"","active":false,"console":"false","complete":"false","x":590,"y":540,"wires":[]},{"id":"1c51891f.909557","type":"serial out","z":"6ebd695a.f93418","name":"","serial":"acbf5b3a.fc8008","x":530,"y":320,"wires":[]},{"id":"bfef5d09.98dcf","type":"inject","z":"6ebd695a.f93418","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":160,"y":220,"wires":[["aaa919ed.493f98"]]},{"id":"aaa919ed.493f98","type":"function","z":"6ebd695a.f93418","name":"store HIU","func":"\n\n// 72 06 EE 02 02 6A  \nvar tosend = String.fromCharCode(0x72); \ntosend += String.fromCharCode(0x06);  // 0xEE\ntosend += String.fromCharCode(0xEE);  // 0xEE\ntosend += String.fromCharCode(0x02);  // 0x80\ntosend += String.fromCharCode(0x02);  // 0x80\ntosend += String.fromCharCode(0x6A);  // 0x80\n\n// 72 06 EE 02 03 6B\ntosend += String.fromCharCode(0x72); \ntosend += String.fromCharCode(0x06);  // 0xEE\ntosend += String.fromCharCode(0xEE);  // 0xEE\ntosend += String.fromCharCode(0x02);  // 0x80\ntosend += String.fromCharCode(0x03);  // 0x80\ntosend += String.fromCharCode(0x6B);  // 0x80\n\n \n  \n // 72 06 EE 02 04 6C \ntosend += String.fromCharCode(0x72); \ntosend += String.fromCharCode(0x06);  // 0xEE\ntosend += String.fromCharCode(0xEE);  // 0xEE\ntosend += String.fromCharCode(0x02);  // 0x80\ntosend += String.fromCharCode(0x04);  // 0x80\ntosend += String.fromCharCode(0x6C);  // 0x80\n\n \n // 72 06 EE 02 08 70 \ntosend += String.fromCharCode(0x72); \ntosend += String.fromCharCode(0x06);  // 0xEE\ntosend += String.fromCharCode(0xEE);  // 0xEE\ntosend += String.fromCharCode(0x02);  // 0x80\ntosend += String.fromCharCode(0x08);  // 0x80\ntosend += String.fromCharCode(0x70);  // 0x80\n\n \n // 72 06 EE 02 06 6E \ntosend += String.fromCharCode(0x72); \ntosend += String.fromCharCode(0x06);  // 0xEE\ntosend += String.fromCharCode(0xEE);  // 0xEE\ntosend += String.fromCharCode(0x02);  // 0x80\ntosend += String.fromCharCode(0x06);  // 0x80\ntosend += String.fromCharCode(0x6E);  // 0x80\n\n \n // 72 06 EE 02 07 6F \ntosend += String.fromCharCode(0x72); \ntosend += String.fromCharCode(0x06);  // 0xEE\ntosend += String.fromCharCode(0xEE);  // 0xEE\ntosend += String.fromCharCode(0x02);  // 0x80\ntosend += String.fromCharCode(0x07);  // 0x80\ntosend += String.fromCharCode(0x6F);  // 0x80\n\n \n // 72 06 EE 02 01 69 \ntosend += String.fromCharCode(0x72); \ntosend += String.fromCharCode(0x06);  // 0xEE\ntosend += String.fromCharCode(0xEE);  // 0xEE\ntosend += String.fromCharCode(0x02);  // 0x80\ntosend += String.fromCharCode(0x01);  // 0x80\ntosend += String.fromCharCode(0x69);  // 0x80\n\n \n // 72 07 EE 00 05 07 73      \ntosend += String.fromCharCode(0x72); \ntosend += String.fromCharCode(0x07);  // 0xEE\ntosend += String.fromCharCode(0xEE);  // 0xEE\ntosend += String.fromCharCode(0x00);  // 0x80\ntosend += String.fromCharCode(0x05);  // 0x80\ntosend += String.fromCharCode(0x07);  // 0x80\ntosend += String.fromCharCode(0x73);  // 0x80\n\n\n\nmsg.usb=\"usb1\";\n\nmsg.payload = tosend;\n\nreturn msg;\n","outputs":1,"noerr":0,"x":320,"y":220,"wires":[["9619a863.e8b698"]]},{"id":"d046d94a.d2cc68","type":"inject","z":"6ebd695a.f93418","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":160,"y":260,"wires":[["a658a1a0.d713f"]]},{"id":"a658a1a0.d713f","type":"function","z":"6ebd695a.f93418","name":"store HIU","func":"\n\n// 72 07 EE 00 00 00 67  \nvar tosend = String.fromCharCode(0x72); \ntosend += String.fromCharCode(0x07);  // 0xEE\ntosend += String.fromCharCode(0xEE);  // 0xEE\ntosend += String.fromCharCode(0x00);  // 0xEE\ntosend += String.fromCharCode(0x00);  // 0x80\ntosend += String.fromCharCode(0x00);  // 0x80\ntosend += String.fromCharCode(0x67);  // 0x80\n\n\nmsg.usb=\"usb1\";\n\nmsg.payload = tosend;\n\nreturn msg;\n","outputs":1,"noerr":0,"x":320,"y":260,"wires":[["9619a863.e8b698"]]},{"id":"c8bce37d.eba59","type":"function","z":"6ebd695a.f93418","name":"","func":"if (msg.payload[1]!= 0x08) { return null; }\n\n\n\nreturn msg;","outputs":1,"noerr":0,"x":290,"y":480,"wires":[["7681bedb.ccbc9"]]},{"id":"7681bedb.ccbc9","type":"split","z":"6ebd695a.f93418","name":"","splt":"8","spltType":"len","arraySplt":"6","arraySpltType":"len","stream":false,"addname":"","x":410,"y":480,"wires":[["fe7a1de.3d7b1e","b47d6915.03e6b8"]]},{"id":"fe7a1de.3d7b1e","type":"function","z":"6ebd695a.f93418","name":"","func":"if (msg.payload[4]== 0x01) { msg.topic = \"dpressure\"; }\nelse if (msg.payload[4]== 0x04) { msg.topic = \"temperature\"; }\nelse  { msg.topic = \"Other\"; }\n\n//msg.payload = (msg.payload[5] * 256) + msg.payload[6];\n\n\n\n//msg.payload = (msg.payload[0] * 256) + msg.payload[1];\n//msg.payload = \"0xD8F0\";\n\n//var a = \"0x\" + msg.payload[0].toString(16) ;\nvar a = \"0x\" + msg.payload[5].toString(16) + msg.payload[6].toString(16);\n\nmsg.payload = a;\n//return msg;\n\na = parseInt(msg.payload, 16);\nif ((a & 0x8000) > 0) {\n   a = a - 0x10000;\n}\n\nmsg.payload = a;\n\nreturn msg;\n\n//return msg;","outputs":1,"noerr":0,"x":130,"y":580,"wires":[["1303901e.62c66"]]},{"id":"1303901e.62c66","type":"switch","z":"6ebd695a.f93418","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"temperature","vt":"str"},{"t":"eq","v":"dpressure","vt":"str"}],"checkall":"true","outputs":2,"x":270,"y":580,"wires":[["198b95a3.89182a"],["3b43c631.51b34a"]]},{"id":"198b95a3.89182a","type":"range","z":"6ebd695a.f93418","minin":"-16384","maxin":"16384","minout":"-130","maxout":"130","action":"scale","round":false,"name":"","x":410,"y":580,"wires":[["c1535fa4.e0137"]]},{"id":"3b43c631.51b34a","type":"range","z":"6ebd695a.f93418","minin":"-16384","maxin":"16384","minout":"-2","maxout":"2","action":"scale","round":false,"name":"","x":410,"y":620,"wires":[["c1535fa4.e0137"]]},{"id":"ae05a0cc.4ac69","type":"serial out","z":"6ebd695a.f93418","name":"","serial":"8465fda4.e2d76","x":530,"y":260,"wires":[]},{"id":"b47d6915.03e6b8","type":"debug","z":"6ebd695a.f93418","name":"","active":false,"console":"false","complete":"false","x":590,"y":480,"wires":[]},{"id":"5e7ca3dd.02226c","type":"debug","z":"6ebd695a.f93418","name":"","active":false,"console":"false","complete":"false","x":310,"y":420,"wires":[]},{"id":"7598fe8d.602c9","type":"trigger","z":"6ebd695a.f93418","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"3","extend":false,"units":"s","reset":"","name":"","x":490,"y":140,"wires":[["aaa919ed.493f98"]]},{"id":"8465fda4.e2d76","type":"serial-port","z":"","serialport":"/dev/ttyAMA0","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","newline":"50","bin":"bin","out":"time","addchar":false},{"id":"acbf5b3a.fc8008","type":"serial-port","z":"","serialport":"/dev/ttyUSB0","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","newline":"50","bin":"bin","out":"time","addchar":false}]