@redplc/node-red-gpio
Version:
Node-RED nodes for Raspberry Pi gpio using with redPlc nodes
1 lines • 7.72 kB
JSON
[{"id":"fee2d1a9e660b62b","type":"tab","label":"redPlc Demo","disabled":false,"info":"","env":[]},{"id":"8ba577f990f5dbbe","type":"redplc-sys-inject","z":"fee2d1a9e660b62b","sdelay":200,"tupdate":10,"outputs":5,"x":120,"y":420,"wires":[["2aecdbc2311ff8c2"],["3ddaea6e6682debe"],["453170cf8f32a7ec"],["8a2a11078f1d96e0"],["68ed7e0378f16343"]]},{"id":"1e4210484afbbdfb","type":"redplc-contact","z":"fee2d1a9e660b62b","operation":"NO","vartype":"I","address":0,"index":"21","counter":"QU","timer":"Q","fflop":"Q","name":"","x":460,"y":260,"wires":[["2d5d0062c3268871"]]},{"id":"2d5d0062c3268871","type":"redplc-contact","z":"fee2d1a9e660b62b","operation":"NO","vartype":"I","address":0,"index":"20","counter":"QU","timer":"Q","fflop":"Q","name":"","x":620,"y":260,"wires":[["f3c7dfe36eb917c6"]]},{"id":"f3c7dfe36eb917c6","type":"redplc-contact","z":"fee2d1a9e660b62b","operation":"NO","vartype":"I","address":0,"index":"16","counter":"QU","timer":"Q","fflop":"Q","name":"","x":780,"y":260,"wires":[["70da82f1d4807214"]]},{"id":"3ddaea6e6682debe","type":"redplc-sys-rail","z":"fee2d1a9e660b62b","rtype":"1","outputs":1,"name":"","x":335,"y":260,"wires":[["1e4210484afbbdfb"]],"l":false},{"id":"4dbcd104e1a01f85","type":"redplc-sys-rail","z":"fee2d1a9e660b62b","rtype":"0","outputs":0,"name":"","x":1035,"y":260,"wires":[],"l":false},{"id":"70da82f1d4807214","type":"redplc-coil","z":"fee2d1a9e660b62b","operation":"ST","vartype":"Q","address":0,"index":"12","counter":"R","timer":"R","fflop":"R","name":"","x":930,"y":260,"wires":[["4dbcd104e1a01f85"]]},{"id":"4426130766b8f7a6","type":"comment","z":"fee2d1a9e660b62b","name":"AND Logic","info":"Output GPIO16 is on \nif GPIO21 **AND** GPIO20 **AND** GPIO16\nis connected to ground (true).\nAll inputs are pullup. ","x":460,"y":220,"wires":[]},{"id":"a127f588a889f724","type":"comment","z":"fee2d1a9e660b62b","name":"redPlc Modules","info":"The redPlc modules reads GPIO to array variable I0\nand writes to GPIO, if array elements of variable Q0 changes.","x":460,"y":100,"wires":[]},{"id":"104fe2e7ecf10fd3","type":"redplc-contact","z":"fee2d1a9e660b62b","operation":"NO","vartype":"I","address":0,"index":"21","counter":"QU","timer":"Q","fflop":"Q","name":"","x":460,"y":380,"wires":[["bced7bedbeed1669"]]},{"id":"579b6d2338ea30c2","type":"redplc-contact","z":"fee2d1a9e660b62b","operation":"NO","vartype":"I","address":0,"index":"20","counter":"QU","timer":"Q","fflop":"Q","name":"","x":460,"y":440,"wires":[["bced7bedbeed1669"]]},{"id":"742931b569689a9a","type":"redplc-contact","z":"fee2d1a9e660b62b","operation":"NO","vartype":"I","address":0,"index":"16","counter":"QU","timer":"Q","fflop":"Q","name":"","x":460,"y":500,"wires":[["bced7bedbeed1669"]]},{"id":"453170cf8f32a7ec","type":"redplc-sys-rail","z":"fee2d1a9e660b62b","rtype":"1","outputs":1,"name":"","x":325,"y":440,"wires":[["104fe2e7ecf10fd3","579b6d2338ea30c2","742931b569689a9a"]],"l":false},{"id":"f6bb78a342429971","type":"redplc-sys-rail","z":"fee2d1a9e660b62b","rtype":"0","outputs":0,"name":"","x":735,"y":440,"wires":[],"l":false},{"id":"bced7bedbeed1669","type":"redplc-coil","z":"fee2d1a9e660b62b","operation":"ST","vartype":"Q","address":0,"index":"26","counter":"R","timer":"R","fflop":"R","name":"","x":630,"y":440,"wires":[["f6bb78a342429971"]]},{"id":"223a20cf3be68335","type":"comment","z":"fee2d1a9e660b62b","name":"OR Logic","info":"Output GPIO26 is on \nif GPIO21 **OR** GPIO20 **OR** GPIO16\nis connected to ground (true).\nAll inputs are pullup. ","x":460,"y":340,"wires":[]},{"id":"e6e0e3d269bf2490","type":"comment","z":"fee2d1a9e660b62b","name":"redPlc Engine","info":"This is a special inject node.\nIt cyclically sends a True to the outputs.\nThe number of outputs can be set.","x":130,"y":360,"wires":[]},{"id":"021b5a69e544b13d","type":"redplc-function","z":"fee2d1a9e660b62b","operation":"XOR","x":630,"y":680,"wires":[["8728628398666f2d"]]},{"id":"f91cb50742d86240","type":"comment","z":"fee2d1a9e660b62b","name":"XOR Logic","info":"Output GPIO16 is on \nif GPIO21 **XOR** GPIO20 **XOR** GPIO16\nis connected to ground (true).\nAll inputs are pullup. ","x":460,"y":580,"wires":[]},{"id":"9236713ddcf9dbcd","type":"redplc-contact","z":"fee2d1a9e660b62b","operation":"NO","vartype":"I","address":0,"index":"21","counter":"QU","timer":"Q","fflop":"Q","name":"","x":460,"y":620,"wires":[["021b5a69e544b13d"]]},{"id":"c135ac9b5454192e","type":"redplc-contact","z":"fee2d1a9e660b62b","operation":"NO","vartype":"I","address":0,"index":"20","counter":"QU","timer":"Q","fflop":"Q","name":"","x":460,"y":680,"wires":[["021b5a69e544b13d"]]},{"id":"0e0a520d8f8d182c","type":"redplc-contact","z":"fee2d1a9e660b62b","operation":"NO","vartype":"I","address":0,"index":"16","counter":"QU","timer":"Q","fflop":"Q","name":"","x":460,"y":740,"wires":[["021b5a69e544b13d"]]},{"id":"e132eb860c8ebe32","type":"redplc-sys-rail","z":"fee2d1a9e660b62b","rtype":"0","outputs":0,"name":"","x":875,"y":680,"wires":[],"l":false},{"id":"8a2a11078f1d96e0","type":"redplc-sys-rail","z":"fee2d1a9e660b62b","rtype":"1","outputs":1,"name":"","x":345,"y":680,"wires":[["9236713ddcf9dbcd","c135ac9b5454192e","0e0a520d8f8d182c"]],"l":false},{"id":"8728628398666f2d","type":"redplc-coil","z":"fee2d1a9e660b62b","operation":"ST","vartype":"Q","address":0,"index":"19","counter":"R","timer":"R","fflop":"R","name":"","x":770,"y":680,"wires":[["e132eb860c8ebe32"]]},{"id":"c06122e8c3ae4bd5","type":"comment","z":"fee2d1a9e660b62b","name":"How redPlc works","info":"","x":710,"y":60,"wires":[]},{"id":"2d9ff51622b9595e","type":"redplc-contact","z":"fee2d1a9e660b62b","operation":"NO","vartype":"I","address":0,"index":"21","counter":"QU","timer":"Q","fflop":"Q","name":"","x":460,"y":860,"wires":[["c36cef5ef60b9b85"]]},{"id":"c36cef5ef60b9b85","type":"redplc-contact","z":"fee2d1a9e660b62b","operation":"NC","vartype":"I","address":0,"index":"20","counter":"QU","timer":"Q","fflop":"Q","name":"","x":620,"y":860,"wires":[["605498bd865ee138"]]},{"id":"9125288421e6eba2","type":"redplc-contact","z":"fee2d1a9e660b62b","operation":"NO","vartype":"Q","address":0,"index":"13","counter":"QU","timer":"Q","fflop":"Q","name":"","x":460,"y":920,"wires":[["c36cef5ef60b9b85"]]},{"id":"68ed7e0378f16343","type":"redplc-sys-rail","z":"fee2d1a9e660b62b","rtype":"1","outputs":1,"name":"","x":325,"y":880,"wires":[["2d9ff51622b9595e","9125288421e6eba2"]],"l":false},{"id":"b96fce92894c684b","type":"redplc-sys-rail","z":"fee2d1a9e660b62b","rtype":"0","outputs":0,"name":"","x":885,"y":860,"wires":[],"l":false},{"id":"605498bd865ee138","type":"redplc-coil","z":"fee2d1a9e660b62b","operation":"ST","vartype":"Q","address":0,"index":"13","counter":"R","timer":"R","fflop":"R","name":"","x":770,"y":860,"wires":[["b96fce92894c684b"]]},{"id":"f34c0131180d35ab","type":"comment","z":"fee2d1a9e660b62b","name":"Combined Logic","info":"Self holding logic.\nGPIO21 turns GPIO13 on and holds over Q0.13 contact.\nGPIO20 turns GPIO13 off.\nAll inputs are pullup and true if connected to gound. ","x":480,"y":820,"wires":[]},{"id":"2aecdbc2311ff8c2","type":"redplc-gpio-in","z":"fee2d1a9e660b62b","address":0,"tupdate":20,"gpioinit":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","3","0","0","0","3","3","0","0","0","0","0","0"],"gpiodeb":[25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25],"x":390,"y":160,"wires":[["ccefde27fed3256b"]]},{"id":"ccefde27fed3256b","type":"redplc-gpio-out","z":"fee2d1a9e660b62b","address":0,"tupdate":20,"gpioinit":["0","0","0","0","0","0","0","0","0","0","1","1","0","0","0","0","0","1","0","0","0","0","0","0","1","0"],"gpioactv":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"x":540,"y":160,"wires":[[]]}]