@Colin
running on windows 10 enterprise
1.node red installation on pc with:
npm install -g --unsafe-perm node-red
updated node with :
npm install -g --unsafe-perm node-red
Here is one flow
[{"id":"960a8614.c0d5a8","type":"tab","label":"Achspos Sinumerik","disabled":false,"info":""},{"id":"c06dcfba.330e","type":"comment","z":"960a8614.c0d5a8","name":"","info":"CPO$pwd$4$at","x":240,"y":200,"wires":[]},{"id":"9e3dc55c.256ff8","type":"switch","z":"960a8614.c0d5a8","name":"divide output","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"ns=2;s=/Nck/MachineAxis/measPos1[21]","vt":"str"},{"t":"eq","v":"ns=2;s=/Nck/MachineAxis/measPos1[22]","vt":"str"},{"t":"eq","v":"ns=2;s=/Nck/MachineAxis/measPos1[23]","vt":"str"},{"t":"eq","v":"ns=2;s=/Nck/MachineAxis/measPos1[24]","vt":"str"},{"t":"eq","v":"ns=2;s=/Nck/MachineAxis/measPos1[25]","vt":"str"},{"t":"eq","v":"ns=2;s=/Nck/MachineAxis/measPos1[26]","vt":"str"},{"t":"eq","v":"ns=2;s=/Nck/MachineAxis/measPos1[27]","vt":"str"},{"t":"eq","v":"ns=2;s=/Nck/MachineAxis/measPos1[28]","vt":"str"},{"t":"eq","v":"ns=2;s=/NC/_N_NC_GD3_ACX/_MAINLOOP","vt":"str"}],"checkall":"true","repair":false,"outputs":9,"x":590,"y":560,"wires":[["3c570517.0c0aba","efaf461.0b53bb8","c44b356.bc60ac8"],["642a63d3.3c8f0c","51477b24.f74ef4","c3f31124.67f02"],["81f26212.2cf2a","4223403b.fb9e2","cfdb0d23.46768"],["df61a9a6.b40558","b486d2a3.08bc8","371d5e49.bbbc82"],["7307bedf.b7088","1442ea43.583dd6"],["f299d8be.0c99f8","5c41b5f9.af793c","e207bb2e.9137d8"],["8aa92816.e373d8","f45c3b78.ca2568","7b9dff5d.93431"],["2c099aa9.46a2d6","da996ce5.2ed33","8f4bb02e.14256"],["f36e69bb.62e478","bb37dd37.3a91f"]]},{"id":"cfdb0d23.46768","type":"debug","z":"960a8614.c0d5a8","name":"p3","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1010,"y":520,"wires":[]},{"id":"c3f31124.67f02","type":"debug","z":"960a8614.c0d5a8","name":"p2","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1090,"y":460,"wires":[]},{"id":"df61a9a6.b40558","type":"debug","z":"960a8614.c0d5a8","name":"p4","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1070,"y":580,"wires":[]},{"id":"7307bedf.b7088","type":"debug","z":"960a8614.c0d5a8","name":"p5","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1110,"y":620,"wires":[]},{"id":"f299d8be.0c99f8","type":"debug","z":"960a8614.c0d5a8","name":"p6","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1050,"y":660,"wires":[]},{"id":"8aa92816.e373d8","type":"debug","z":"960a8614.c0d5a8","name":"p7","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1090,"y":700,"wires":[]},{"id":"2c099aa9.46a2d6","type":"debug","z":"960a8614.c0d5a8","name":"p8","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1090,"y":760,"wires":[]},{"id":"c44b356.bc60ac8","type":"debug","z":"960a8614.c0d5a8","name":"p1","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":930,"y":360,"wires":[]},{"id":"bb37dd37.3a91f","type":"debug","z":"960a8614.c0d5a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1110,"y":820,"wires":[]},{"id":"3c570517.0c0aba","type":"ui_text","z":"960a8614.c0d5a8","group":"6217eeca.2a231","order":18,"width":0,"height":0,"name":"Pos1[21]","label":"Pos1[21]","format":"{{msg.payload}}","layout":"row-spread","x":740,"y":740,"wires":[]},{"id":"642a63d3.3c8f0c","type":"ui_text","z":"960a8614.c0d5a8","group":"6217eeca.2a231","order":1,"width":0,"height":0,"name":"Pos1[22]","label":"Pos1[22]","format":"{{msg.payload}}","layout":"row-spread","x":730,"y":800,"wires":[]},{"id":"81f26212.2cf2a","type":"ui_text","z":"960a8614.c0d5a8","group":"6217eeca.2a231","order":2,"width":0,"height":0,"name":"Pos1[23]","label":"Pos1[23]","format":"{{msg.payload}}","layout":"row-spread","x":730,"y":840,"wires":[]},{"id":"b486d2a3.08bc8","type":"ui_text","z":"960a8614.c0d5a8","group":"6217eeca.2a231","order":3,"width":0,"height":0,"name":"Pos1[24]","label":"Pos1[24]","format":"{{msg.payload}}","layout":"row-spread","x":730,"y":880,"wires":[]},{"id":"1442ea43.583dd6","type":"ui_text","z":"960a8614.c0d5a8","group":"6217eeca.2a231","order":4,"width":0,"height":0,"name":"Pos1[25]","label":"Pos1[25]","format":"{{msg.payload}}","layout":"row-spread","x":730,"y":920,"wires":[]},{"id":"5c41b5f9.af793c","type":"ui_text","z":"960a8614.c0d5a8","group":"6217eeca.2a231","order":5,"width":0,"height":0,"name":"Pos1[26]","label":"Pos1[26]","format":"{{msg.payload}}","layout":"row-spread","x":730,"y":960,"wires":[]},{"id":"f45c3b78.ca2568","type":"ui_text","z":"960a8614.c0d5a8","group":"6217eeca.2a231","order":6,"width":0,"height":0,"name":"Pos1[27]","label":"Pos1[27]","format":"{{msg.payload}}","layout":"row-spread","x":730,"y":1000,"wires":[]},{"id":"da996ce5.2ed33","type":"ui_text","z":"960a8614.c0d5a8","group":"6217eeca.2a231","order":7,"width":0,"height":0,"name":"Pos1[28]","label":"Pos1[28]","format":"{{msg.payload}}","layout":"row-spread","x":730,"y":1040,"wires":[]},{"id":"f36e69bb.62e478","type":"ui_gauge","z":"960a8614.c0d5a8","name":"mainloop","group":"6217eeca.2a231","order":8,"width":0,"height":0,"gtype":"gage","title":"mainloop","label":"units","format":"{{value}}","min":0,"max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":870,"y":920,"wires":[],"inputLabels":["mainloop"]},{"id":"cd99a5c9.0fcef8","type":"OpcUa-Client","z":"960a8614.c0d5a8","endpoint":"95d2f56b.7b45f8","action":"read","deadbandtype":"a","deadbandvalue":1,"time":10,"timeUnit":"s","certificate":"n","localfile":"","securitymode":"None","securitypolicy":"None","name":"","x":380,"y":480,"wires":[["9e3dc55c.256ff8","e5e337cc.6ab2e8"]]},{"id":"efaf461.0b53bb8","type":"influxdb out","z":"960a8614.c0d5a8","influxdb":"1fdf23cd.bd843c","name":"Pos1","measurement":"Pos1","precision":"","retentionPolicy":"","x":610,"y":60,"wires":[]},{"id":"51477b24.f74ef4","type":"influxdb out","z":"960a8614.c0d5a8","influxdb":"1fdf23cd.bd843c","name":"Pos2","measurement":"Pos2","precision":"ms","retentionPolicy":"","x":630,"y":120,"wires":[]},{"id":"4223403b.fb9e2","type":"influxdb out","z":"960a8614.c0d5a8","influxdb":"1fdf23cd.bd843c","name":"Pos3","measurement":"Pos3","precision":"","retentionPolicy":"","x":630,"y":160,"wires":[]},{"id":"371d5e49.bbbc82","type":"influxdb out","z":"960a8614.c0d5a8","influxdb":"1fdf23cd.bd843c","name":"Pos4","measurement":"Pos4","precision":"","retentionPolicy":"","x":620,"y":200,"wires":[]},{"id":"e207bb2e.9137d8","type":"influxdb out","z":"960a8614.c0d5a8","influxdb":"1fdf23cd.bd843c","name":"Pos6","measurement":"Pos6","precision":"","retentionPolicy":"","x":620,"y":240,"wires":[]},{"id":"7b9dff5d.93431","type":"influxdb out","z":"960a8614.c0d5a8","influxdb":"1fdf23cd.bd843c","name":"Pos7","measurement":"Pos7","precision":"","retentionPolicy":"","x":630,"y":280,"wires":[]},{"id":"8f4bb02e.14256","type":"influxdb out","z":"960a8614.c0d5a8","influxdb":"1fdf23cd.bd843c","name":"Pos8","measurement":"Pos8","precision":"","retentionPolicy":"","x":730,"y":340,"wires":[]},{"id":"67388528.7627ac","type":"inject","z":"960a8614.c0d5a8","name":"Start Sinumerik ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"20","crontab":"","once":false,"onceDelay":0.1,"topic":"ns=2;s=/Nck/MachineAxis/measPos1[21],datatype=Double","payload":"","payloadType":"date","x":130,"y":360,"wires":[["a7eb046d.7da458"]]},{"id":"2450d399.22d48c","type":"function","z":"960a8614.c0d5a8","name":"","func":"return [\n [\n { topic: \"ns=2;s=/Nck/MachineAxis/measPos1[21],datatype=Double\", payload: \"timestamp\"},\n { topic: \"ns=2;s=/Nck/MachineAxis/measPos1[22],datatype=Double\", payload: \"timestamp\"},\n { topic: \"ns=2;s=/Nck/MachineAxis/measPos1[23],datatype=Double\", payload: \"timestamp\"},\n { topic: \"ns=2;s=/Nck/MachineAxis/measPos1[24],datatype=Double\", payload: \"timestamp\"},\n { topic: \"ns=2;s=/Nck/MachineAxis/measPos1[25],datatype=Double\", payload: \"timestamp\"},\n { topic: \"ns=2;s=/Nck/MachineAxis/measPos1[26],datatype=Double\", payload: \"timestamp\"},\n { topic: \"ns=2;s=/Nck/MachineAxis/measPos1[27],datatype=Double\", payload: \"timestamp\"},\n { topic: \"ns=2;s=/Nck/MachineAxis/measPos1[28],datatype=Double\", payload: \"timestamp\"},\n { topic: \"ns=2;s=/NC/_N_NC_GD3_ACX/_MAINLOOP,datatype=Int32\", payload: \"timestamp\"},\n ]\n]\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":360,"y":100,"wires":[["cd99a5c9.0fcef8"]]},{"id":"115998a8.3d1cc7","type":"influxdb batch","z":"960a8614.c0d5a8","influxdb":"1fdf23cd.bd843c","precision":"ms","retentionPolicy":"","name":"Pos1","x":730,"y":60,"wires":[]},{"id":"4f3bbd0e.e2e734","type":"inject","z":"960a8614.c0d5a8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"ns=2;s=/Nck/MachineAxis/measPos2,datatype=Double","payload":"","payloadType":"date","x":110,"y":720,"wires":[["90faebc.d8c9318"]]},{"id":"90faebc.d8c9318","type":"OpcUa-Client","z":"960a8614.c0d5a8","d":true,"endpoint":"95d2f56b.7b45f8","action":"read","deadbandtype":"a","deadbandvalue":1,"time":10,"timeUnit":"s","certificate":"n","localfile":"","securitymode":"None","securitypolicy":"None","name":"","x":320,"y":740,"wires":[["40fae6a5.222e98"]]},{"id":"40fae6a5.222e98","type":"debug","z":"960a8614.c0d5a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":530,"y":740,"wires":[]},{"id":"36e384a9.c77a2c","type":"inject","z":"960a8614.c0d5a8","name":"Start Sinumerik ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"20","crontab":"","once":false,"onceDelay":0.1,"topic":"ns=2;s=/Nck/MachineAxis/measPos1[22],datatype=Double","payload":"","payloadType":"date","x":130,"y":420,"wires":[["a7eb046d.7da458"]]},{"id":"79dd14f6.2de6bc","type":"inject","z":"960a8614.c0d5a8","name":"Start Sinumerik ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"20","crontab":"","once":false,"onceDelay":0.1,"topic":"ns=2;s=/Nck/MachineAxis/measPos1[23],datatype=Double","payload":"","payloadType":"date","x":130,"y":480,"wires":[["a7eb046d.7da458"]]},{"id":"a7eb046d.7da458","type":"join","z":"960a8614.c0d5a8","name":"","mode":"custom","build":"object","property":"","propertyType":"full","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"5","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":350,"y":300,"wires":[["cc81c53a.f24838"]]},{"id":"cc81c53a.f24838","type":"debug","z":"960a8614.c0d5a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":450,"y":420,"wires":[]},{"id":"ed228810.86f088","type":"function","z":"960a8614.c0d5a8","name":"","func":"var msg111 = {};\nvar msg211 = {};\nvar msg311 = {};\n\n\nmsg111.payload = msg.payload[0];\nmsg111.topic = \"Widerstand1\";\nmsg211.payload = msg.payload[1];\nmsg211.topic = \"Widerstand2\";\nmsg311.payload = msg.payload[2];\nmsg311.topic = \"Widerstand3\";\n\n\nreturn [msg111, msg211, msg311];","outputs":8,"noerr":0,"initialize":"","finalize":"","x":840,"y":160,"wires":[["6148233a.86162c"],["cd62817a.a4d0f"],["9bb10c9b.d8679"],["8ead8185.258dc"],["7be2e72f.feedb8"],[],[],[]]},{"id":"6148233a.86162c","type":"debug","z":"960a8614.c0d5a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1060,"y":60,"wires":[]},{"id":"cd62817a.a4d0f","type":"debug","z":"960a8614.c0d5a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1070,"y":120,"wires":[]},{"id":"9bb10c9b.d8679","type":"debug","z":"960a8614.c0d5a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1070,"y":180,"wires":[]},{"id":"5b59a0d6.cbdfc","type":"inject","z":"960a8614.c0d5a8","name":"Start Sinumerik ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":80,"wires":[["2450d399.22d48c"]]},{"id":"2534f8b1.845f88","type":"inject","z":"960a8614.c0d5a8","name":"Start Sinumerik ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"20","crontab":"","once":false,"onceDelay":0.1,"topic":"ns=2;s=/Nck/MachineAxis/measPos1[24],datatype=Double","payload":"","payloadType":"date","x":110,"y":540,"wires":[["a7eb046d.7da458"]]},{"id":"3d6189e8.048d66","type":"inject","z":"960a8614.c0d5a8","name":"Start Sinumerik ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"20","crontab":"","once":false,"onceDelay":0.1,"topic":"ns=2;s=/Nck/MachineAxis/measPos1[25],datatype=Double","payload":"","payloadType":"date","x":110,"y":600,"wires":[["a7eb046d.7da458"]]},{"id":"8ead8185.258dc","type":"debug","z":"960a8614.c0d5a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1090,"y":240,"wires":[]},{"id":"7be2e72f.feedb8","type":"debug","z":"960a8614.c0d5a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1090,"y":300,"wires":[]},{"id":"e5e337cc.6ab2e8","type":"debug","z":"960a8614.c0d5a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":410,"y":680,"wires":[]},{"id":"f4f9162.2c990e8","type":"mqtt out","z":"960a8614.c0d5a8","name":"","topic":"demo","qos":"","retain":"","broker":"5973a8a3.e12758","x":910,"y":300,"wires":[]},{"id":"6217eeca.2a231","type":"ui_group","name":"Group 1","tab":"39afc967.757636","order":1,"disp":true,"width":6},{"id":"95d2f56b.7b45f8","type":"OpcUa-Endpoint","z":"","endpoint":"opc.tcp://10.1.1.200:4840","secpol":"None","secmode":"None","login":true},{"id":"1fdf23cd.bd843c","type":"influxdb","z":"","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"TESTING","name":"Pos1","usetls":false,"tls":""},{"id":"5973a8a3.e12758","type":"mqtt-broker","z":"","name":"neww","broker":"a3felp1eneo5qp-ats.iot.eu-west-1.amazonaws.com","port":"8883","tls":"b47a43.b63ac5c","clientid":"","usetls":true,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"39afc967.757636","type":"ui_tab","z":"","name":"sinumerik","icon":"dashboard","order":3,"disabled":false,"hidden":false},{"id":"b47a43.b63ac5c","type":"tls-config","z":"","name":"xyz","cert":"Downloads\\dd7f3a627a-certificate.pem.crt","key":"Downloads\\dd7f3a627a-private.pem.key","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":true}]
sorry for posting picture of console , I again restarted the node red,
Now,I am deleting extra unnecessary charts.
Another flow I am using is
[{"id":"cd99a5c9.0fcef8","type":"OpcUa-Client","z":"960a8614.c0d5a8","endpoint":"95d2f56b.7b45f8","action":"read","deadbandtype":"a","deadbandvalue":1,"time":10,"timeUnit":"s","certificate":"n","localfile":"","securitymode":"None","securitypolicy":"None","name":"","x":380,"y":480,"wires":[["9e3dc55c.256ff8","e5e337cc.6ab2e8"]]},{"id":"95d2f56b.7b45f8","type":"OpcUa-Endpoint","z":"","endpoint":"","secpol":"None","secmode":"None","login":true}]