I have “node-red-contrib-s7” installed in my pallet but still it is appearing as unknown node. need help!
below is the code.
"
[{“id”:“af432f72.2f9988”,“type”:“s7comm-read”,“z”:“64b0d45a.f0da9”,“server”:“b39be4a3.b76f78”,“name”:“Read Bit 1”,“dataItem”:“I1.1”,“areaId”:“inputs”,“areaType”:“input”,“dataType”:“Boolean”,“quantity”:1,“addressOffset”:0,“quantityType”:“BIT”,“timeout”:1000,“rbe”:false,“x”:210,“y”:160,“wires”:[[“5250e516.2f77e4”]]},{“id”:“4579aaf5.2e09c”,“type”:“s7comm-read”,“z”:“64b0d45a.f0da9”,“server”:“b39be4a3.b76f78”,“name”:“Read Bit 2”,“dataItem”:“I1.2”,“areaId”:“inputs”,“areaType”:“input”,“dataType”:“Boolean”,“quantity”:1,“addressOffset”:0,“quantityType”:“BIT”,“timeout”:1000,“rbe”:false,“x”:210,“y”:220,“wires”:[[“5250e516.2f77e4”]]},{“id”:“5250e516.2f77e4”,“type”:“function”,“z”:“64b0d45a.f0da9”,“name”:“Count Positive Edge”,“func”:“var counter1 = flow.get(‘counter1’) || 0;\nvar counter2 = flow.get(‘counter2’) || 0;\n\nif (msg.topic === ‘bit1’) {\n if (msg.payload === true) {\n counter1++;\n }\n flow.set(‘counter1’, counter1);\n}\n\nif (msg.topic === ‘bit2’) {\n if (msg.payload === true) {\n counter2++;\n }\n flow.set(‘counter2’, counter2);\n}\n\nreturn msg;”,“outputs”:1,“noerr”:0,“initialize”:“”,“finalize”:“”,“x”:450,“y”:190,“wires”:[[“6d42f53a.9795f4”,“d4d53f6e.5d55e8”]]},{“id”:“6d42f53a.9795f4”,“type”:“change”,“z”:“64b0d45a.f0da9”,“name”:“Combine Counters”,“rules”:[{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“{\t "counter1": flow.get(‘counter1’),\t "counter2": flow.get(‘counter2’)\t}”,“tot”:“jsonata”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:650,“y”:190,“wires”:[[“d9a5c474.f34b3”]]},{“id”:“d9a5c474.f34b3”,“type”:“csv”,“z”:“64b0d45a.f0da9”,“name”:“Format as CSV”,“sep”:“,”,“hdrin”:true,“hdrout”:true,“multi”:“one”,“ret”:“\n”,“temp”:“”,“skip”:“0”,“strings”:true,“x”:840,“y”:190,“wires”:[[“35f19a6c.7e9c66”]]},{“id”:“35f19a6c.7e9c66”,“type”:“file”,“z”:“64b0d45a.f0da9”,“name”:“Save to CSV”,“filename”:“/path/to/your/file.csv”,“appendNewline”:true,“createDir”:false,“overwriteFile”:“false”,“encoding”:“none”,“x”:1030,“y”:190,“wires”:[]},{“id”:“d4d53f6e.5d55e8”,“type”:“ui_text”,“z”:“64b0d45a.f0da9”,“group”:“72428733.d7f27c”,“order”:1,“width”:0,“height”:0,“name”:“”,“label”:“Counter Value”,“format”:“Counter 1: {{msg.payload.counter1}} | Counter 2: {{msg.payload.counter2}}”,“layout”:“row-spread”,“x”:820,“y”:250,“wires”:},{“id”:“b39be4a3.b76f78”,“type”:“s7comm-server”,“z”:“”,“port”:“102”,“rack”:0,“slot”:2,“localTSAP”:“02:01”,“remoteTSAP”:“01:00”,“localCpuSlot”:2,“sendTimestamps”:false,“cycleTime”:1000,“timeout”:1000,“showErrors”:false,“x”:120,“y”:80,“wires”:},{“id”:“72428733.d7f27c”,“type”:“ui_group”,“name”:“Counter”,“tab”:“5e2e7a6e.1eb1f8”,“order”:1,“disp”:true,“width”:“6”,“collapse”:false},{“id”:“5e2e7a6e.1eb1f8”,“type”:“ui_tab”,“name”:“Dashboard”,“icon”:“dashboard”,“order”:1,“disabled”:false,“hidden”:false}]
"
type or paste code here
[{“id”:“af432f72.2f9988”,“type”:“s7comm-read”,“z”:“64b0d45a.f0da9”,“server”:“b39be4a3.b76f78”,“name”:“Read Bit 1”,“dataItem”:“I1.1”,“areaId”:“inputs”,“areaType”:“input”,“dataType”:“Boolean”,“quantity”:1,“addressOffset”:0,“quantityType”:“BIT”,“timeout”:1000,“rbe”:false,“x”:210,“y”:160,“wires”:[[“5250e516.2f77e4”]]},{“id”:“4579aaf5.2e09c”,“type”:“s7comm-read”,“z”:“64b0d45a.f0da9”,“server”:“b39be4a3.b76f78”,“name”:“Read Bit 2”,“dataItem”:“I1.2”,“areaId”:“inputs”,“areaType”:“input”,“dataType”:“Boolean”,“quantity”:1,“addressOffset”:0,“quantityType”:“BIT”,“timeout”:1000,“rbe”:false,“x”:210,“y”:220,“wires”:[[“5250e516.2f77e4”]]},{“id”:“5250e516.2f77e4”,“type”:“function”,“z”:“64b0d45a.f0da9”,“name”:“Count Positive Edge”,“func”:“var counter1 = flow.get(‘counter1’) || 0;\nvar counter2 = flow.get(‘counter2’) || 0;\n\nif (msg.topic === ‘bit1’) {\n if (msg.payload === true) {\n counter1++;\n }\n flow.set(‘counter1’, counter1);\n}\n\nif (msg.topic === ‘bit2’) {\n if (msg.payload === true) {\n counter2++;\n }\n flow.set(‘counter2’, counter2);\n}\n\nreturn msg;”,“outputs”:1,“noerr”:0,“initialize”:“”,“finalize”:“”,“x”:450,“y”:190,“wires”:[[“6d42f53a.9795f4”,“d4d53f6e.5d55e8”]]},{“id”:“6d42f53a.9795f4”,“type”:“change”,“z”:“64b0d45a.f0da9”,“name”:“Combine Counters”,“rules”:[{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“{\t "counter1": flow.get(‘counter1’),\t "counter2": flow.get(‘counter2’)\t}”,“tot”:“jsonata”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:650,“y”:190,“wires”:[[“d9a5c474.f34b3”]]},{“id”:“d9a5c474.f34b3”,“type”:“csv”,“z”:“64b0d45a.f0da9”,“name”:“Format as CSV”,“sep”:“,”,“hdrin”:true,“hdrout”:true,“multi”:“one”,“ret”:“\n”,“temp”:“”,“skip”:“0”,“strings”:true,“x”:840,“y”:190,“wires”:[[“35f19a6c.7e9c66”]]},{“id”:“35f19a6c.7e9c66”,“type”:“file”,“z”:“64b0d45a.f0da9”,“name”:“Save to CSV”,“filename”:“/path/to/your/file.csv”,“appendNewline”:true,“createDir”:false,“overwriteFile”:“false”,“encoding”:“none”,“x”:1030,“y”:190,“wires”:[]},{“id”:“d4d53f6e.5d55e8”,“type”:“ui_text”,“z”:“64b0d45a.f0da9”,“group”:“72428733.d7f27c”,“order”:1,“width”:0,“height”:0,“name”:“”,“label”:“Counter Value”,“format”:“Counter 1: {{msg.payload.counter1}} | Counter 2: {{msg.payload.counter2}}”,“layout”:“row-spread”,“x”:820,“y”:250,“wires”:},{“id”:“b39be4a3.b76f78”,“type”:“s7comm-server”,“z”:“”,“port”:“102”,“rack”:0,“slot”:2,“localTSAP”:“02:01”,“remoteTSAP”:“01:00”,“localCpuSlot”:2,“sendTimestamps”:false,“cycleTime”:1000,“timeout”:1000,“showErrors”:false,“x”:120,“y”:80,“wires”:},{“id”:“72428733.d7f27c”,“type”:“ui_group”,“name”:“Counter”,“tab”:“5e2e7a6e.1eb1f8”,“order”:1,“disp”:true,“width”:“6”,“collapse”:false},{“id”:“5e2e7a6e.1eb1f8”,“type”:“ui_tab”,“name”:“Dashboard”,“icon”:“dashboard”,“order”:1,“disabled”:false,“hidden”:false}]