@vitormnm/node-red-simple-opcua 1.6.3 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -136
- package/client/lib/opcua-client-browser.js +254 -11
- package/client/lib/opcua-client-method-service.js +1 -1
- package/client/lib/opcua-client-subscription-service.js +0 -2
- package/client/lib/opcua-client-write-service.js +14 -4
- package/client/opcua-client-config.html +118 -1
- package/client/opcua-client-config.js +112 -9
- package/client/opcua-client-help.html +6 -0
- package/client/opcua-client-utils.js +158 -10
- package/client/opcua-client.html +8 -0
- package/client/opcua-client.js +97 -1
- package/client/view/opcua-client.js +106 -14
- package/examples/flows_simple_opc.json +1 -1
- package/package.json +2 -2
- package/server/lib/opcua-address-space-alarm.js +95 -32
- package/server/lib/opcua-address-space-builder.js +717 -59
- package/server/lib/opcua-config.js +110 -35
- package/server/lib/opcua-server-events-child.js +31 -5
- package/server/lib/opcua-server-runtime-child.js +424 -27
- package/server/lib/opcua-server-runtime.js +52 -5
- package/server/lib/opcua-server-status-child.js +46 -15
- package/server/nodered/simple_opcua/server/certificates/mutex +0 -0
- package/server/nodered/simple_opcua/server/certificates/own/certs/server_selfsigned_cert_2048.pem +25 -0
- package/server/nodered/simple_opcua/server/certificates/own/certs/server_selfsigned_cert_2048.pem.mutex +0 -0
- package/server/nodered/simple_opcua/server/certificates/own/openssl.cnf +72 -0
- package/server/nodered/simple_opcua/server/certificates/own/private/private_key.pem +28 -0
- package/server/nodered/simple_opcua/server/certificates/trusted/certs/NodeOPCUA-Client@tuf[c5a9e20a8b680cdff76aaf0165bb3c9318da37a5].pem +25 -0
- package/server/nodered/simple_opcua/server/myServer1/mutex +0 -0
- package/server/nodered/simple_opcua/server/myServer1/own/certs/server_selfsigned_cert_2048.pem +25 -0
- package/server/nodered/simple_opcua/server/myServer1/own/certs/server_selfsigned_cert_2048.pem.mutex +0 -0
- package/server/nodered/simple_opcua/server/myServer1/own/openssl.cnf +72 -0
- package/server/nodered/simple_opcua/server/myServer1/own/private/private_key.pem +28 -0
- package/server/nodered/simple_opcua/server/myServer1/trusted/certs/NodeOPCUA-Client@tuf[91e520c64ff891c67168f08a46dd194071e15dae].pem +25 -0
- package/server/nodered/simple_opcua/server/myServer1/trusted/certs/NodeOPCUA-Client@tuf[98ae95da627cea4c500753c319161a3554ee38d7].pem +25 -0
- package/server/nodered/simple_opcua/server/myServer1/trusted/certs/NodeOPCUA-Client@tuf[aef8d7a1cfba13d84189a0bcf1694208fc51a7f9].pem +25 -0
- package/server/nodered/simple_opcua/server/myServer1/trusted/certs/NodeOPCUA-Client@tuf[c5a9e20a8b680cdff76aaf0165bb3c9318da37a5].pem +25 -0
- package/server/nodered/simple_opcua/server/myServer1/trusted/certs/NodeOPCUA-Client@tuf[ebdf9acf1d02e347917a14108d3144799c638ea3].pem +25 -0
- package/server/opcua-server-io.html +93 -1
- package/server/opcua-server-io.js +153 -29
- package/server/opcua-server-registry.js +8 -2
- package/server/opcua-server.css +64 -0
- package/server/opcua-server.html +168 -44
- package/server/opcua-server.js +115 -5
- package/server/view/opcua-server.css +100 -6
- package/server/view/opcua-server.js +746 -48
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"d2b3eae6a1ecc622","type":"tab","label":"opcua server","disabled":false,"info":"","env":[]},{"id":"79a6f5fe6f4d465a","type":"tab","label":"opcua client","disabled":false,"info":"","env":[]},{"id":"14fe15a9e9d468af","type":"tab","label":"opcua client browse all tags","disabled":false,"info":"","env":[]},{"id":"c84194e1716f46ab","type":"group","z":"d2b3eae6a1ecc622","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["e4edcc77427188f6","932e2635730c7a44","bfc08132027e72b7","6c87b85f99be3616","9c09946d8577b52d","2676f36ebaab5969","1dc6b8aa2257eca3","329a2a1a632fd233","27e7e959761bf77f","fa224a9d8ab1f2c7","d19b915e7393b9a7","984522736a0656a7","a944210da4387a6a"],"x":74,"y":1319,"w":872,"h":362},{"id":"d8fd16c88ec103e5","type":"group","z":"d2b3eae6a1ecc622","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["668921cc357bd516","f47bc3635ec2a31d","9cfc3721152e8357","266e174a9f4e200c","6ec5659b15d00940","0368379e84561696","2da39bcbcc3d1109","36c054113a954792","c03eaa1b388c50f3","eed2029c30d5bb5b","a5083cedc1237564","e91a6b84ebe3556d","8e6e2008f8f79caf","7f610dc5a13b1356"],"x":74,"y":839,"w":902,"h":442},{"id":"b1201c21c2d259b8","type":"group","z":"d2b3eae6a1ecc622","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["65603f52a369839a","1d023a68af5918c7","55df4c29fedf13c8","d28240a9d9ffdd43","673ba93006e6550a"],"x":74,"y":479,"w":912,"h":142},{"id":"23832db12bfa7d80","type":"group","z":"d2b3eae6a1ecc622","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["3bd3915cb891e8f1","397bd99ac2297103","7e3dbdbd25da7510","b0b8022d4920fc55","7d0b6982f5786807","08991f3c9d3b47a0","d1187abb8f01729a"],"x":64,"y":219,"w":812,"h":222},{"id":"b2ce35ceb2bdafd8","type":"group","z":"d2b3eae6a1ecc622","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["662e19d35ced7eaa","b174ca5ba476a397","2defd51ae95a1d97"],"x":74,"y":659,"w":482,"h":142},{"id":"36d46609aecf1392","type":"group","z":"d2b3eae6a1ecc622","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["8b311452217de452","34f2a0d0ba7fd911","f56f61693a49cdcb","06a5925b29d016e7"],"x":74,"y":39,"w":752,"h":142},{"id":"285c23c3bad0ef27","type":"group","z":"79a6f5fe6f4d465a","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["ef63988ca2403b46","6cad9ec490596a99","19bc7a26f39f3ecc","1f5deaf79db824cf","25d9d97555803451","0ff0aaf552ae087e","fc2cde946ce08e4e","2d6737a48c9bf131","e751595f75537eae","4ef2369fd3613329","a08020e9f79e7270","bb13fb80d451245a","ebf0bf0b98640c41","1deb5211a2ddd488","a21aeea307028ae4"],"x":54,"y":19,"w":1052,"h":482},{"id":"8e096ccb69a8c8f5","type":"group","z":"79a6f5fe6f4d465a","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["7b40230aee3f3c0f","aa5537a918d6776b","a894da66d77e8418","3b03a088eee38b35","df6a3b9bbd0f6243","ec71d8a75c78c0ba","a9ce0dba53d46bb7","2484ca47fc4d911a","84232cde9f2231b5","48ba7d74504f220a"],"x":54,"y":559,"w":792,"h":382},{"id":"6680a3f5b18b36a5","type":"group","z":"79a6f5fe6f4d465a","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["fdddad6dc624d803","c26f86f9b102ce3d","83a962e6f3eb3652","1b8a5cc3d4afab4b","609a5416d116f06b","b04161e07c2b5f94","c2d6012f3fa2bfe1","b4a4967137db05e3","86c4207a31f2ad3b","0fc6a57284b0fdcb","dbd0479a43af64a7","526eb25bb9a30b5d","341cccffb89cf4aa","190b600344448c5f","bb4bfc533f49d250","e056796f7cbc9628","c8a39a53b1074acc","268d6e811e44af99","f8926e74b84652f9","dc4ea6ac1f3195e1","c88593f3e0725b05"],"x":34,"y":959,"w":1092,"h":522},{"id":"1ec58c5dcc676cd8","type":"group","z":"79a6f5fe6f4d465a","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["a0e9eefc0d33a27b","ed284715a31f9fb0","493b430fb6628573","cf180f43c9fef5fc"],"x":54,"y":1579,"w":832,"h":142},{"id":"b77a84882ecb667f","type":"group","z":"14fe15a9e9d468af","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["8c73fb548e807740","df008f3855a3f9a4","1444c096a73f4ca6","2b21c4370fd02197","efe6dcebe2d7f08d","f9c6be02a37d97c0","49aac6ef852864de","f573a31db4ae7c54","7f6825ac425c4762","d17d2adbbd01cbf6","11407ea89fd47c06","77168078146d3b2b","596e4966920d35cc","7f20c7d7a421295e","01d2238a6571f70e","46b04c28e0c85cc6","9d5dd36f42e74286"],"x":34,"y":99,"w":1572,"h":482},{"id":"67244e1b04fa0130","type":"group","z":"79a6f5fe6f4d465a","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["793f8368f0a1c1a3","8c223050ecd416ef","825b3d7170cf5598","37278c8895890143","6944643a2ea15889","4a49bda87a91dd36","f458df76db488866","05f34bc116cd8ee2"],"x":54,"y":1779,"w":912,"h":242},{"id":"b09a1570957d3c44","type":"opcua-client-config","name":"","endpoint":"opc.tcp://localhost:5840/","securityPolicy":"None","securityMode":"None","authType":"anonymous"},{"id":"8b311452217de452","type":"opc-ua-server","z":"d2b3eae6a1ecc622","g":"36d46609aecf1392","name":"","resourcePath":"/","serverName":"myServer1","allowAnonymous":true,"port":"5840","maxConnections":10,"securityPolicy":"None","securityMode":"None","namespaceUri":"urn:node-red:opc-ua-server","tree":"{\n \"objects\": [],\n \"folders\": [\n {\n \"name\": \"myServer1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [\n {\n \"name\": \"folderMethod\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [\n {\n \"name\": \"methodSum\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n },\n {\n \"name\": \"methodMultiplication\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n }\n ],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderAlarms\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [\n {\n \"name\": \"levelAlarm1\",\n \"variableNodeId\": \"myServer1.variableLevelAlarm\",\n \"type\": \"levelAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 90,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 10,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n },\n {\n \"name\": \"digitalAlarm1\",\n \"variableNodeId\": \"myServer1.variableDigitalAlarm\",\n \"type\": \"digitalAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 100,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 0,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n }\n ],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderCustomObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType1\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"customObjectType2\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType2\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ]\n }\n ],\n \"objects\": [\n {\n \"name\": \"newObject\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"newVariable\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"newVariable2\",\n \"type\": \"Float\",\n \"value\": \"123.3\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"variables\": [\n {\n \"name\": \"variableLevelAlarm\",\n \"type\": \"Int32\",\n \"value\": \"50\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"value\": \"0\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableArray\",\n \"type\": \"Int32\",\n \"value\": \"[10,20,30,40]\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"var1\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var1\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"var2\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var2\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"nameSpaces\": [\n {\n \"id\": 2,\n \"name\": \"urn:node-red:opc-ua-server\"\n },\n {\n \"id\": 3,\n \"name\": \"urn:plant2:3\"\n }\n ]\n}","x":730,"y":140,"wires":[[]]},{"id":"3bd3915cb891e8f1","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"","serverRef":"myServer1","mode":"method-input","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"methodSum","intervalMs":500,"inputs":0,"outputs":1,"x":170,"y":300,"wires":[["7e3dbdbd25da7510"]]},{"id":"397bd99ac2297103","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"","serverRef":"myServer1","mode":"method-output","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"methodSum","intervalMs":500,"inputs":1,"outputs":0,"x":730,"y":300,"wires":[]},{"id":"7e3dbdbd25da7510","type":"function","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"function 2","func":"var input1 = msg.payload[0].value\nvar input2 = msg.payload[1].value\n\nmsg.payload = [\n {\n dataType: \"Float\",\n value: input1 + input2\n }\n];\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":520,"y":300,"wires":[["397bd99ac2297103"]]},{"id":"65603f52a369839a","type":"inject","z":"d2b3eae6a1ecc622","g":"b1201c21c2d259b8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":580,"wires":[["1d023a68af5918c7"]]},{"id":"1d023a68af5918c7","type":"function","z":"d2b3eae6a1ecc622","g":"b1201c21c2d259b8","name":"function 47","func":"const min = 30;\nconst max = 40;\nconst randomInt1 = Math.floor(Math.random() * (max - min + 1)) + min;\nconst randomInt2 = Math.floor(Math.random() * (max - min + 1)) + min;\nconst randomInt3 = Math.floor(Math.random() * (max - min + 1)) + min;\n\n\nmsg.payload = [\n {\n \"nodePath\": \"myServer1.newObject\",\n \"severity\": 0,\n \"message\": \"newObject message\"\n },\n {\n \"nodePath\": \"myServer1.newObject\",\n \"severity\": 500,\n \"message\": \"newObject message 2\"\n },\n {\n \"nodePath\": \"myServer1.newObject\",\n \"severity\": 1000,\n \"message\": \"newObject message 3\"\n }\n]\n\n\n\n\n\n\n\n\nreturn msg","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":450,"y":580,"wires":[["d28240a9d9ffdd43"]]},{"id":"55df4c29fedf13c8","type":"debug","z":"d2b3eae6a1ecc622","g":"b1201c21c2d259b8","name":"debug 38","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":580,"wires":[]},{"id":"d28240a9d9ffdd43","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"b1201c21c2d259b8","name":"","serverRef":"myServer1","mode":"event","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":660,"y":580,"wires":[["55df4c29fedf13c8"]]},{"id":"673ba93006e6550a","type":"comment","z":"d2b3eae6a1ecc622","g":"b1201c21c2d259b8","name":"event","info":"","x":170,"y":520,"wires":[]},{"id":"34f2a0d0ba7fd911","type":"inject","z":"d2b3eae6a1ecc622","g":"36d46609aecf1392","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":140,"wires":[["f56f61693a49cdcb"]]},{"id":"f56f61693a49cdcb","type":"template","z":"d2b3eae6a1ecc622","g":"36d46609aecf1392","name":"original modal","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{\n \"objects\": [],\n \"folders\": [\n {\n \"name\": \"myServer1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [\n {\n \"name\": \"folderMethod\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [\n {\n \"name\": \"methodSum\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n },\n {\n \"name\": \"methodMultiplication\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n }\n ],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderAlarms\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [\n {\n \"name\": \"levelAlarm1\",\n \"variableNodeId\": \"myServer1.variableLevelAlarm\",\n \"type\": \"levelAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 90,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 10,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n },\n {\n \"name\": \"digitalAlarm1\",\n \"variableNodeId\": \"myServer1.variableDigitalAlarm\",\n \"type\": \"digitalAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 100,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 0,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n }\n ],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderCustomObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType1\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"customObjectType2\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType2\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ]\n }\n ],\n \"objects\": [\n {\n \"name\": \"newObject\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"newVariable\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"newVariable2\",\n \"type\": \"Float\",\n \"value\": \"123.3\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"variables\": [\n {\n \"name\": \"variableLevelAlarm\",\n \"type\": \"Int32\",\n \"value\": \"50\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"value\": \"0\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableArray\",\n \"type\": \"Int32\",\n \"value\": \"[10,20,30,40]\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"var1\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var1\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"var2\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var2\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"nameSpaces\": [\n {\n \"id\": 2,\n \"name\": \"urn:node-red:opc-ua-server\"\n },\n {\n \"id\": 3,\n \"name\": \"urn:plant2:3\"\n }\n ]\n}","output":"json","x":500,"y":140,"wires":[["8b311452217de452"]]},{"id":"662e19d35ced7eaa","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"b2ce35ceb2bdafd8","name":"","serverRef":"myServer1","mode":"events","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"","intervalMs":"1000","inputs":0,"outputs":1,"x":180,"y":760,"wires":[["b174ca5ba476a397"]]},{"id":"b174ca5ba476a397","type":"debug","z":"d2b3eae6a1ecc622","g":"b2ce35ceb2bdafd8","name":"debug 1","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":450,"y":760,"wires":[]},{"id":"2defd51ae95a1d97","type":"comment","z":"d2b3eae6a1ecc622","g":"b2ce35ceb2bdafd8","name":"events server read and write(clients)","info":"","x":240,"y":700,"wires":[]},{"id":"668921cc357bd516","type":"inject","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"alarm on","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"92","vt":"num"},{"p":"payload2","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":980,"wires":[["9cfc3721152e8357"]]},{"id":"f47bc3635ec2a31d","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"","serverRef":"myServer1","mode":"write","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":640,"y":940,"wires":[["266e174a9f4e200c"]]},{"id":"9cfc3721152e8357","type":"function","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"function 1","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"path\": \"myServer1.variableLevelAlarm\",\n \"value\" : msg.payload1\n },\n {\n \"name\": \"variablDigitalAlarm\",\n \"path\": \"myServer1.variableDigitalAlarm\",\n \"value\" : msg.payload2\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":940,"wires":[["f47bc3635ec2a31d"]]},{"id":"266e174a9f4e200c","type":"debug","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":870,"y":920,"wires":[]},{"id":"6ec5659b15d00940","type":"comment","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"write","info":"","x":150,"y":880,"wires":[]},{"id":"e4edcc77427188f6","type":"inject","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":1500,"wires":[["932e2635730c7a44"]]},{"id":"932e2635730c7a44","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"read direct","serverRef":"myServer1","mode":"read","identifierType":"path","tagPath":"myServer1.variableLevelAlarm","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":540,"y":1500,"wires":[["bfc08132027e72b7"]]},{"id":"bfc08132027e72b7","type":"debug","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":1500,"wires":[]},{"id":"0368379e84561696","type":"inject","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"alarm off","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"50","vt":"num"},{"p":"payload2","v":"false","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":940,"wires":[["9cfc3721152e8357"]]},{"id":"2da39bcbcc3d1109","type":"comment","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"write single","info":"","x":200,"y":1040,"wires":[]},{"id":"36c054113a954792","type":"inject","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"51","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"51","payloadType":"num","x":170,"y":1100,"wires":[["c03eaa1b388c50f3"]]},{"id":"c03eaa1b388c50f3","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"write direct","serverRef":"myServer1","mode":"write","identifierType":"path","tagPath":"myServer1.variableLevelAlarm","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":400,"y":1100,"wires":[["eed2029c30d5bb5b"]]},{"id":"eed2029c30d5bb5b","type":"debug","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":640,"y":1100,"wires":[]},{"id":"6c87b85f99be3616","type":"inject","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":1420,"wires":[["9c09946d8577b52d"]]},{"id":"9c09946d8577b52d","type":"function","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"function 3","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"path\": \"myServer1.variableLevelAlarm\",\n \"value\" : msg.payload1\n },\n {\n \"name\": \"variablDigitalAlarm\",\n \"path\": \"myServer1.variableDigitalAlarm\",\n \"value\" : msg.payload2\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":440,"y":1420,"wires":[["2676f36ebaab5969"]]},{"id":"2676f36ebaab5969","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"","serverRef":"myServer1","mode":"read","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":640,"y":1420,"wires":[["1dc6b8aa2257eca3"]]},{"id":"1dc6b8aa2257eca3","type":"debug","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"debug 5","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":840,"y":1420,"wires":[]},{"id":"329a2a1a632fd233","type":"comment","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"read","info":"","x":150,"y":1360,"wires":[]},{"id":"27e7e959761bf77f","type":"comment","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"read single","info":"","x":200,"y":1460,"wires":[]},{"id":"b0b8022d4920fc55","type":"comment","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"methods","info":"","x":160,"y":260,"wires":[]},{"id":"7d0b6982f5786807","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"","serverRef":"myServer1","mode":"method-input","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"methodMultiplication","intervalMs":500,"inputs":0,"outputs":1,"x":190,"y":400,"wires":[["d1187abb8f01729a"]]},{"id":"08991f3c9d3b47a0","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"","serverRef":"myServer1","mode":"method-output","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"methodMultiplication","intervalMs":500,"inputs":1,"outputs":0,"x":750,"y":400,"wires":[]},{"id":"d1187abb8f01729a","type":"function","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"function 4","func":"var input1 = msg.payload[0].value\nvar input2 = msg.payload[1].value\n\nmsg.payload = [\n {\n dataType: \"Float\",\n value: input1 * input2\n }\n];\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":520,"y":400,"wires":[["08991f3c9d3b47a0"]]},{"id":"06a5925b29d016e7","type":"comment","z":"d2b3eae6a1ecc622","g":"36d46609aecf1392","name":"server","info":"","x":190,"y":80,"wires":[]},{"id":"fa224a9d8ab1f2c7","type":"inject","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":1640,"wires":[["d19b915e7393b9a7"]]},{"id":"d19b915e7393b9a7","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"read direct","serverRef":"myServer1","mode":"read","identifierType":"path","tagPath":"myServer1.variableArray","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":510,"y":1640,"wires":[["984522736a0656a7"]]},{"id":"984522736a0656a7","type":"debug","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"debug 17","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":680,"y":1640,"wires":[]},{"id":"a944210da4387a6a","type":"comment","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"read array","info":"","x":200,"y":1580,"wires":[]},{"id":"a5083cedc1237564","type":"comment","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"write array","info":"","x":160,"y":1180,"wires":[]},{"id":"e91a6b84ebe3556d","type":"inject","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"51","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[11,21,31,41]","payloadType":"str","x":170,"y":1240,"wires":[["8e6e2008f8f79caf"]]},{"id":"8e6e2008f8f79caf","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"write direct","serverRef":"myServer1","mode":"write","identifierType":"path","tagPath":"myServer1.variableArray","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":350,"y":1240,"wires":[["7f610dc5a13b1356"]]},{"id":"7f610dc5a13b1356","type":"debug","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"debug 18","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":580,"y":1240,"wires":[]},{"id":"ef63988ca2403b46","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"client read direct","connection":"b09a1570957d3c44","mode":"read","selectedItems":"[\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":440,"y":120,"wires":[["19bc7a26f39f3ecc"]]},{"id":"6cad9ec490596a99","type":"inject","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":120,"wires":[["ef63988ca2403b46"]]},{"id":"19bc7a26f39f3ecc","type":"debug","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"debug 6","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":640,"y":120,"wires":[]},{"id":"1f5deaf79db824cf","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"client read ","connection":"b09a1570957d3c44","mode":"read","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":630,"y":240,"wires":[["0ff0aaf552ae087e"]]},{"id":"25d9d97555803451","type":"inject","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":240,"wires":[["fc2cde946ce08e4e"]]},{"id":"0ff0aaf552ae087e","type":"debug","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"debug 7","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":240,"wires":[]},{"id":"fc2cde946ce08e4e","type":"function","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"function 5","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\"\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":240,"wires":[["1f5deaf79db824cf"]]},{"id":"2d6737a48c9bf131","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"client read Subscripition","connection":"b09a1570957d3c44","mode":"subscription","selectedItems":"[]","samplingInterval":"500","publishingInterval":"500","x":670,"y":380,"wires":[["4ef2369fd3613329"]]},{"id":"e751595f75537eae","type":"inject","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":380,"wires":[["a08020e9f79e7270"]]},{"id":"4ef2369fd3613329","type":"debug","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"debug 8","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1000,"y":380,"wires":[]},{"id":"a08020e9f79e7270","type":"function","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"function 6","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\"\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":380,"wires":[["2d6737a48c9bf131"]]},{"id":"bb13fb80d451245a","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"client read Subscripition direct","connection":"b09a1570957d3c44","mode":"subscription","selectedItems":"[\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":"500","publishingInterval":"500","x":690,"y":460,"wires":[["1deb5211a2ddd488"]]},{"id":"ebf0bf0b98640c41","type":"inject","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":460,"wires":[["bb13fb80d451245a"]]},{"id":"1deb5211a2ddd488","type":"debug","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"debug 9","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1000,"y":460,"wires":[]},{"id":"a21aeea307028ae4","type":"comment","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"read","info":"","x":130,"y":60,"wires":[]},{"id":"7b40230aee3f3c0f","type":"comment","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"write","info":"","x":130,"y":600,"wires":[]},{"id":"aa5537a918d6776b","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"client write direct","connection":"b09a1570957d3c44","mode":"write","selectedItems":"[\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload1\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload2\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":430,"y":680,"wires":[["a894da66d77e8418"]]},{"id":"a894da66d77e8418","type":"debug","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"debug 10","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":620,"y":680,"wires":[]},{"id":"3b03a088eee38b35","type":"inject","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"alarm on","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"92","vt":"num"},{"p":"payload2","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":740,"wires":[["aa5537a918d6776b"]]},{"id":"df6a3b9bbd0f6243","type":"inject","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"alarm off","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"50","vt":"num"},{"p":"payload2","v":"false","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":680,"wires":[["aa5537a918d6776b"]]},{"id":"ec71d8a75c78c0ba","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"client write ","connection":"b09a1570957d3c44","mode":"write","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":570,"y":820,"wires":[["a9ce0dba53d46bb7"]]},{"id":"a9ce0dba53d46bb7","type":"debug","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"debug 11","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":740,"y":820,"wires":[]},{"id":"2484ca47fc4d911a","type":"inject","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"alarm on","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"92","vt":"num"},{"p":"payload2","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":900,"wires":[["48ba7d74504f220a"]]},{"id":"84232cde9f2231b5","type":"inject","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"alarm off","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"50","vt":"num"},{"p":"payload2","v":"false","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":840,"wires":[["48ba7d74504f220a"]]},{"id":"48ba7d74504f220a","type":"function","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"function 7","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"value\" : msg.payload1\n \n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"value\" : msg.payload2\n\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":820,"wires":[["ec71d8a75c78c0ba"]]},{"id":"fdddad6dc624d803","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"client method","connection":"b09a1570957d3c44","mode":"method","selectedItems":"[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":830,"y":1100,"wires":[["83a962e6f3eb3652"]]},{"id":"c26f86f9b102ce3d","type":"inject","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1100,"wires":[["609a5416d116f06b"]]},{"id":"83a962e6f3eb3652","type":"debug","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"debug 52","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1020,"y":1100,"wires":[]},{"id":"1b8a5cc3d4afab4b","type":"function","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"method refresh","func":"msg.payload = [\n {\n \"name\": \"metodo1\",\n \"nodeID\": \"ns=0;i=3875\",\n \"inputs\": [\n {\n \"name\": \"i1\",\n \"type\": \"UInt32\",\n \"value\": msg.payload\n },\n ]\n },\n\n \n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":660,"y":1100,"wires":[["fdddad6dc624d803"]]},{"id":"609a5416d116f06b","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"client get id","connection":"b09a1570957d3c44","mode":"getSubscriptionId","selectedItems":"[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":450,"y":1100,"wires":[["1b8a5cc3d4afab4b"]]},{"id":"b04161e07c2b5f94","type":"comment","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"method refresh","info":"","x":160,"y":1000,"wires":[]},{"id":"a0e9eefc0d33a27b","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"1ec58c5dcc676cd8","name":"client Events","connection":"b09a1570957d3c44","mode":"events","selectedItems":"[\n {\n \"name\": \"Server\",\n \"nodeID\": \"ns=0;i=2253\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=2004\",\n \"browseName\": \"ServerType\",\n \"displayName\": \"ServerType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":450,"y":1680,"wires":[["493b430fb6628573"]]},{"id":"ed284715a31f9fb0","type":"inject","z":"79a6f5fe6f4d465a","g":"1ec58c5dcc676cd8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1680,"wires":[["a0e9eefc0d33a27b"]]},{"id":"493b430fb6628573","type":"debug","z":"79a6f5fe6f4d465a","g":"1ec58c5dcc676cd8","name":"debug 12","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":780,"y":1680,"wires":[]},{"id":"cf180f43c9fef5fc","type":"comment","z":"79a6f5fe6f4d465a","g":"1ec58c5dcc676cd8","name":"events","info":"","x":130,"y":1620,"wires":[]},{"id":"c2d6012f3fa2bfe1","type":"inject","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1220,"wires":[["86c4207a31f2ad3b"]]},{"id":"b4a4967137db05e3","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"client method","connection":"b09a1570957d3c44","mode":"method","selectedItems":"[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":670,"y":1220,"wires":[["0fc6a57284b0fdcb"]]},{"id":"86c4207a31f2ad3b","type":"function","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"method methodSum","func":"msg.payload = [\n {\n \"name\": \"methodSum\",\n \"nodeID\": \"ns=2;s=myServer1.folderMethod.methodSum\",\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"value\": 5\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"value\": 5\n }\n ]\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":1220,"wires":[["b4a4967137db05e3"]]},{"id":"0fc6a57284b0fdcb","type":"debug","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"debug 13","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":1220,"wires":[]},{"id":"dbd0479a43af64a7","type":"comment","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"refresh event","info":"","x":150,"y":1060,"wires":[]},{"id":"526eb25bb9a30b5d","type":"comment","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"methodSum","info":"","x":150,"y":1160,"wires":[]},{"id":"341cccffb89cf4aa","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"client method","connection":"b09a1570957d3c44","mode":"method","selectedItems":"[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":830,"y":1360,"wires":[["e056796f7cbc9628"]]},{"id":"190b600344448c5f","type":"inject","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1360,"wires":[["bb4bfc533f49d250"]]},{"id":"bb4bfc533f49d250","type":"function","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"levelAlarm1-Acknowledge","func":"\n\nmsg.payload = [\n {\n \"name\": \"metodo1\",\n \"nodeID\": \"ns=2;s=myServer1.folderAlarms.levelAlarm1-Acknowledge\",\n \"inputs\": [\n {\n \"name\": \"i1\",\n \"type\": \"ByteString\",\n \"value\": \"\"\n },\n {\n \"name\": \"i2\",\n \"type\": \"LocalizedText\",\n \"value\": \"\"\n },\n ]\n },\n\n\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":1360,"wires":[["341cccffb89cf4aa"]]},{"id":"e056796f7cbc9628","type":"debug","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"debug 14","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":990,"y":1360,"wires":[]},{"id":"c8a39a53b1074acc","type":"comment","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"method Acknowledge","info":"","x":180,"y":1300,"wires":[]},{"id":"793f8368f0a1c1a3","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"client browse direct","connection":"b09a1570957d3c44","mode":"browse","selectedItems":"[\n {\n \"name\": \"myServer1\",\n \"nodeID\": \"ns=2;s=myServer1\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=61\",\n \"browseName\": \"FolderType\",\n \"displayName\": \"FolderType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"folderAlarms\",\n \"nodeID\": \"ns=2;s=myServer1.folderAlarms\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=61\",\n \"browseName\": \"FolderType\",\n \"displayName\": \"FolderType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":450,"y":1880,"wires":[["37278c8895890143"]]},{"id":"8c223050ecd416ef","type":"comment","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"browse ","info":"","x":130,"y":1820,"wires":[]},{"id":"825b3d7170cf5598","type":"inject","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1880,"wires":[["793f8368f0a1c1a3"]]},{"id":"37278c8895890143","type":"debug","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"debug 15","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":660,"y":1880,"wires":[]},{"id":"6944643a2ea15889","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"client browse ","connection":"b09a1570957d3c44","mode":"browse","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":630,"y":1980,"wires":[["f458df76db488866"]]},{"id":"4a49bda87a91dd36","type":"inject","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1980,"wires":[["05f34bc116cd8ee2"]]},{"id":"f458df76db488866","type":"debug","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"debug 16","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":860,"y":1980,"wires":[]},{"id":"05f34bc116cd8ee2","type":"function","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"browse ","func":"msg.payload = [\n {\n \"name\": \"myServer1\",\n \"nodeID\": \"ns=2;s=myServer1\",\n \n },\n {\n \"name\": \"folderAlarms\",\n \"nodeID\": \"ns=2;s=myServer1.folderAlarms\",\n \n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":1980,"wires":[["6944643a2ea15889"]]},{"id":"268d6e811e44af99","type":"function","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"Acknowledge by objectId","func":"msg.payload = [\n {\n \"name\": \"method1\",\n \"objectId\": \"ns=2;s=myServer1.folderAlarms.digitalAlarm1\",\n \"methodID\": \"ns=0;i=9111\",\n \"inputs\": [\n {\n \"name\": \"input1\",\n \"type\": \"ByteString\",\n //Buffer eventID\n \"value\": Buffer.from([246, 112, 20, 156, 78, 102, 23, 227, 22, 239, 112, 224, 54, 197, 229, 157, 0, 0, 0, 5]) \n },\n {\n \"name\": \"input2\",\n \"type\": \"LocalizedText\",\n \"value\": \"Acknowledged by operator\"\n }\n ]\n },\n\n\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":1440,"wires":[["f8926e74b84652f9"]]},{"id":"f8926e74b84652f9","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"client Acknowledge","connection":"b09a1570957d3c44","mode":"method","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":710,"y":1440,"wires":[["c88593f3e0725b05"]]},{"id":"dc4ea6ac1f3195e1","type":"inject","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":1440,"wires":[["268d6e811e44af99"]]},{"id":"c88593f3e0725b05","type":"debug","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"debug 19","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":1440,"wires":[]},{"id":"8c73fb548e807740","type":"opcua-client","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","connection":"b09a1570957d3c44","mode":"browse","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":590,"y":340,"wires":[["2b21c4370fd02197","596e4966920d35cc"]]},{"id":"df008f3855a3f9a4","type":"inject","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":340,"wires":[["1444c096a73f4ca6","596e4966920d35cc"]]},{"id":"1444c096a73f4ca6","type":"function","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"ns=2;s=myServer1","func":"msg.payload = [{\n \"nodeId\" : \"ns=2;s=myServer1\"\n}]\n\nflow.set(\"variables\", [])\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":340,"wires":[["8c73fb548e807740"]]},{"id":"2b21c4370fd02197","type":"change","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[0].browse","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":340,"wires":[["efe6dcebe2d7f08d"]]},{"id":"efe6dcebe2d7f08d","type":"split","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1010,"y":340,"wires":[["f9c6be02a37d97c0"]]},{"id":"f9c6be02a37d97c0","type":"switch","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","property":"payload.nodeClass","propertyType":"msg","rules":[{"t":"eq","v":"Object","vt":"str"},{"t":"eq","v":"Variable","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1170,"y":340,"wires":[["49aac6ef852864de"],["f573a31db4ae7c54"]]},{"id":"49aac6ef852864de","type":"function","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"function 39","func":"msg.payload = [msg.payload]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":810,"y":140,"wires":[["8c73fb548e807740"]]},{"id":"f573a31db4ae7c54","type":"function","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"flow.set(\"variables\")","func":"var variables = flow.get(\"variables\")\n\nvariables.push( {\n \"name\": msg.payload.browseName ,\n \"nodeID\": msg.payload.nodeID\n })\n\nflow.set(\"variables\" , variables)\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1390,"y":380,"wires":[["01d2238a6571f70e"]]},{"id":"7f6825ac425c4762","type":"opcua-client","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"Subscription all variables in server","connection":"b09a1570957d3c44","mode":"subscription","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":640,"y":540,"wires":[["11407ea89fd47c06"]]},{"id":"d17d2adbbd01cbf6","type":"change","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"variables","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":540,"wires":[["7f6825ac425c4762"]]},{"id":"11407ea89fd47c06","type":"debug","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"debug 32","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":900,"y":540,"wires":[]},{"id":"77168078146d3b2b","type":"trigger","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"2","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":180,"y":540,"wires":[["d17d2adbbd01cbf6"]]},{"id":"596e4966920d35cc","type":"function","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"reset","func":"msg.reset = 1\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":350,"y":420,"wires":[["9d5dd36f42e74286"]]},{"id":"7f20c7d7a421295e","type":"comment","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"Subscription all variables in server and flow.set","info":"","x":270,"y":180,"wires":[]},{"id":"01d2238a6571f70e","type":"link out","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"link out 1","mode":"link","links":["46b04c28e0c85cc6"],"x":1565,"y":380,"wires":[]},{"id":"46b04c28e0c85cc6","type":"link in","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"link in trigger","links":["01d2238a6571f70e","9d5dd36f42e74286"],"x":85,"y":540,"wires":[["77168078146d3b2b"]]},{"id":"9d5dd36f42e74286","type":"link out","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"link out 2","mode":"link","links":["46b04c28e0c85cc6"],"x":505,"y":420,"wires":[]},{"id":"28c25955bc6958fb","type":"global-config","env":[],"modules":{"@vitormnm/node-red-simple-opcua":"1.6.1"}}]
|
|
1
|
+
[{"id":"e7cc0f612b0bceb7","type":"tab","label":"opcua server","disabled":false,"info":"","env":[]},{"id":"70fa2b9d6476bd46","type":"tab","label":"opcua client","disabled":false,"info":"","env":[]},{"id":"f17ab5f0981538bf","type":"group","z":"e7cc0f612b0bceb7","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["efa60e4ab7a517f2","328c71bd2d59e94e","48e6cba49f78725b","f4dacc5a92c731e7","6ef8f18f751a6759","b60c2817b85b8fb7","5702c83ce7a5140c","6aabe6138ce9420c","52e6107a2a1f1a57","2c055656f62d1fb8","bb139fc6f98a95da","5ac04d9d17f8fe52","b4d3ee406a16aff1"],"x":74,"y":1319,"w":872,"h":362},{"id":"8aa86fcd4f29e1a4","type":"group","z":"e7cc0f612b0bceb7","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["7efb5d7ca6614a65","5a62728127814334","5af891b5cda4d8b3","d399df94d1549bd0","7979e5f2edc85131","c5741543a4fce152","38414beb18ebfa3e","7cb967a286225f59","97549889c3b4bfe4","ddef094b243ed54a","cdb87f0b3835f843","3a5821df929f3c5e","35f1e2a08d02b7ae","29af39e3f86667b9"],"x":74,"y":839,"w":902,"h":442},{"id":"0d6244ce17e8f7ec","type":"group","z":"e7cc0f612b0bceb7","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["3fdf43c0582ceb97","ab134f20828e6813","91eedae9f127527f","ac6ccfaedf342146","7b1273539f192dd0"],"x":94,"y":479,"w":892,"h":142},{"id":"dae83022ed0f5107","type":"group","z":"e7cc0f612b0bceb7","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["acdcbef0df777dd4","6518e4cc9ccd76d5","21f2390bdc4baf92","afc4fcc7e094c29e","b42d91f6d1cfc05d","1cb9a7cf09978034","48460fc756b15b11"],"x":64,"y":219,"w":812,"h":222},{"id":"98ce19d58a71ab4e","type":"group","z":"e7cc0f612b0bceb7","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["2b1f625447c0db3b","c1fb27fa2c9ef4a0","a3d8d5c4e61b42b9"],"x":74,"y":659,"w":482,"h":142},{"id":"77efe416d3f1fc5b","type":"group","z":"e7cc0f612b0bceb7","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["83e683a52cbf1328","175ea7eeb70f05c9","71552872b0919888","546340335a70d530"],"x":114,"y":39,"w":712,"h":142},{"id":"29df843ad22e647e","type":"group","z":"70fa2b9d6476bd46","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["ec5f354415c37867","5ca9c46baa557076","055e620387cf7803","60ce66f1992da55a","7a22c77e6f1acf5c","b7a7a1bf79ca3b5c","f56ea9f10d88bfa8","0af78ecf4982c935","274d3dd6529713dd","7c561a8412c5bd3d","ccf9013ac3472f88","48e2da4514de31fd","61f8cbb4796f7f6d","e4abec0f82cf7cfc","18a4d38dc8bd6116"],"x":54,"y":19,"w":1052,"h":482},{"id":"21a271c62d5603ff","type":"group","z":"70fa2b9d6476bd46","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["9e5117f921c93795","677122a1baf3fbdb","c66be2125c820ba0","26ec5dfc8b108e43","3d68e87b1417c9cc","bac21da7b5cf7027","66275ad805915441","f5a4ccf925685cd3","3be94df95266a1e9","67550952aef245ca"],"x":54,"y":559,"w":792,"h":382},{"id":"505150e06f53db35","type":"group","z":"70fa2b9d6476bd46","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["170839e5dc3910ba","7754429d28a1d3af","2c0aa59a878dcadf","1f2534fafeaa2ed4","482dec9e8cf20be2","0cbd25ccc85b6c22","80dcb37039dd0e33","5524f381f0ea2a8c","a11a9df2d16a8f32","0974acab412c6b83","d4f7121890134de8","5d49d0bb3193d2ca","67caf22df77250fc","ffe0437394fd02b9","7543032adedf54ed","f6f0609394b3aa0f","46381822a621cf5a","f61820792b5d0f91","828f48e381891aad","07fd5ccbcf7f8355","17f926ea45ca343f"],"x":54,"y":959,"w":1072,"h":522},{"id":"bcd564ade7dcb862","type":"group","z":"70fa2b9d6476bd46","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["51e9372ebbb4456c","f0ea35ad05af22c1","3a04960b4288ab27","1f1d5078c5d17d9e"],"x":54,"y":1579,"w":832,"h":142},{"id":"6310bf83c3300ad1","type":"group","z":"70fa2b9d6476bd46","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["3049f81a29646e7f","801afc788f1a5dde","2f4c880ada1b7d81","1fd75b3f2aac6c48","1999ad96409ce9bb","8132a1c9aad5332e","1f162987d1d7b358","95bc2804968a1254","e834b8d4e261f949","6b8b5ac971dfacc1","0f99e2a99af9b73a"],"x":54,"y":1779,"w":832,"h":302},{"id":"b09a1570957d3c44","type":"opcua-client-config","name":"local opc.tcp://localhost:5840/","sessionName":"","endpoint":"opc.tcp://localhost:5840/","securityPolicy":"None","securityMode":"None","authType":"anonymous","initialDelay":"","maxDelay":"200","maxRetry":"1","requestedSessionTimeout":"","keepSessionAlive":true,"autoReconnect":true,"endpointMustExist":false},{"id":"83e683a52cbf1328","type":"opc-ua-server","z":"e7cc0f612b0bceb7","g":"77efe416d3f1fc5b","name":"","resourcePath":"/","serverName":"myServer1","allowAnonymous":true,"automaticallyAcceptUnknownCertificate":true,"port":"5840","maxConnections":10,"minSessionTimeout":"100","defaultSessionTimeout":"30000","maxSessionTimeout":"3000000","securityPolicy":"None","securityMode":"None","namespaceUri":"urn:node-red:opc-ua-server","tree":"{\n \"objects\": [],\n \"folders\": [\n {\n \"name\": \"myServer1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ],\n \"objectsType\": \"\",\n \"folders\": [\n {\n \"name\": \"folderMethod\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ],\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [\n {\n \"name\": \"methodSum\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ],\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n },\n {\n \"name\": \"methodMultiplication\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ],\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n }\n ],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderAlarms\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ],\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [\n {\n \"name\": \"levelAlarm1\",\n \"variableNodeId\": \"myServer1.variableLevelAlarm\",\n \"type\": \"levelAlarm\",\n \"enabled\": true,\n \"sendValue\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ],\n \"highHighLimit\": 90,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 10,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n },\n {\n \"name\": \"digitalAlarm1\",\n \"variableNodeId\": \"myServer1.variableDigitalAlarm\",\n \"type\": \"digitalAlarm\",\n \"enabled\": true,\n \"sendValue\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ],\n \"highHighLimit\": 100,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 0,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n }\n ],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderCustomObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ],\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType1\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ],\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"customObjectType2\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType2\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ],\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ]\n }\n ],\n \"objects\": [\n {\n \"name\": \"newObject\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ],\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"newVariable\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ]\n },\n {\n \"name\": \"newVariable2\",\n \"type\": \"Float\",\n \"value\": \"123.3\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ]\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"variables\": [\n {\n \"name\": \"variableLevelAlarm\",\n \"type\": \"Int32\",\n \"value\": \"50\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ]\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"value\": \"0\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ]\n },\n {\n \"name\": \"variableArray\",\n \"type\": \"Int32\",\n \"value\": \"[10,20,30,40]\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ]\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ],\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"var1\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var1\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ]\n },\n {\n \"name\": \"var2\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var2\",\n \"namespaceId\": 2,\n \"accessPermission\": [\n \"public\"\n ]\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"enumerations\": [],\n \"nameSpaces\": [\n {\n \"id\": 2,\n \"name\": \"urn:node-red:opc-ua-server\"\n },\n {\n \"id\": 3,\n \"name\": \"urn:plant2:3\"\n }\n ]\n}","x":730,"y":140,"wires":[[]]},{"id":"acdcbef0df777dd4","type":"opcua-server-io","z":"e7cc0f612b0bceb7","g":"dae83022ed0f5107","name":"","serverRef":"myServer1","mode":"method-input","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"methodSum","intervalMs":500,"inputs":0,"outputs":1,"x":170,"y":300,"wires":[["21f2390bdc4baf92"]]},{"id":"6518e4cc9ccd76d5","type":"opcua-server-io","z":"e7cc0f612b0bceb7","g":"dae83022ed0f5107","name":"","serverRef":"myServer1","mode":"method-output","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"methodSum","intervalMs":500,"inputs":1,"outputs":0,"x":730,"y":300,"wires":[]},{"id":"21f2390bdc4baf92","type":"function","z":"e7cc0f612b0bceb7","g":"dae83022ed0f5107","name":"function 2","func":"var input1 = msg.payload[0].value\nvar input2 = msg.payload[1].value\n\nmsg.payload = [\n {\n dataType: \"Float\",\n value: input1 + input2\n }\n];\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":520,"y":300,"wires":[["6518e4cc9ccd76d5"]]},{"id":"3fdf43c0582ceb97","type":"inject","z":"e7cc0f612b0bceb7","g":"0d6244ce17e8f7ec","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":580,"wires":[["ab134f20828e6813"]]},{"id":"ab134f20828e6813","type":"function","z":"e7cc0f612b0bceb7","g":"0d6244ce17e8f7ec","name":"function 47","func":"const min = 30;\nconst max = 40;\nconst randomInt1 = Math.floor(Math.random() * (max - min + 1)) + min;\nconst randomInt2 = Math.floor(Math.random() * (max - min + 1)) + min;\nconst randomInt3 = Math.floor(Math.random() * (max - min + 1)) + min;\n\n\nmsg.payload = [\n {\n \"nodePath\": \"myServer1.newObject\",\n \"severity\": 0,\n \"message\": \"newObject message\"\n },\n {\n \"nodePath\": \"myServer1.newObject\",\n \"severity\": 500,\n \"message\": \"newObject message 2\"\n },\n {\n \"nodePath\": \"myServer1.newObject\",\n \"severity\": 1000,\n \"message\": \"newObject message 3\"\n }\n]\n\n\n\n\n\n\n\n\nreturn msg","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":450,"y":580,"wires":[["ac6ccfaedf342146"]]},{"id":"91eedae9f127527f","type":"debug","z":"e7cc0f612b0bceb7","g":"0d6244ce17e8f7ec","name":"debug 38","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":580,"wires":[]},{"id":"ac6ccfaedf342146","type":"opcua-server-io","z":"e7cc0f612b0bceb7","g":"0d6244ce17e8f7ec","name":"","serverRef":"myServer1","mode":"event","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":660,"y":580,"wires":[["91eedae9f127527f"]]},{"id":"7b1273539f192dd0","type":"comment","z":"e7cc0f612b0bceb7","g":"0d6244ce17e8f7ec","name":"event","info":"","x":170,"y":520,"wires":[]},{"id":"175ea7eeb70f05c9","type":"inject","z":"e7cc0f612b0bceb7","g":"77efe416d3f1fc5b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":140,"wires":[["71552872b0919888"]]},{"id":"71552872b0919888","type":"template","z":"e7cc0f612b0bceb7","g":"77efe416d3f1fc5b","name":"original modal","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{\n \"objects\": [],\n \"folders\": [\n {\n \"name\": \"myServer1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [\n {\n \"name\": \"folderMethod\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [\n {\n \"name\": \"methodSum\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n },\n {\n \"name\": \"methodMultiplication\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n }\n ],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderAlarms\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [\n {\n \"name\": \"levelAlarm1\",\n \"variableNodeId\": \"myServer1.variableLevelAlarm\",\n \"type\": \"levelAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 90,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 10,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n },\n {\n \"name\": \"digitalAlarm1\",\n \"variableNodeId\": \"myServer1.variableDigitalAlarm\",\n \"type\": \"digitalAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 100,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 0,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n }\n ],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderCustomObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType1\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"customObjectType2\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType2\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ]\n }\n ],\n \"objects\": [\n {\n \"name\": \"newObject\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"newVariable\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"newVariable2\",\n \"type\": \"Float\",\n \"value\": \"123.3\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"variables\": [\n {\n \"name\": \"variableLevelAlarm\",\n \"type\": \"Int32\",\n \"value\": \"50\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"value\": \"0\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableArray\",\n \"type\": \"Int32\",\n \"value\": \"[10,20,30,40]\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"var1\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var1\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"var2\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var2\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"nameSpaces\": [\n {\n \"id\": 2,\n \"name\": \"urn:node-red:opc-ua-server\"\n },\n {\n \"id\": 3,\n \"name\": \"urn:plant2:3\"\n }\n ]\n}","output":"json","x":500,"y":140,"wires":[["83e683a52cbf1328"]]},{"id":"2b1f625447c0db3b","type":"opcua-server-io","z":"e7cc0f612b0bceb7","g":"98ce19d58a71ab4e","name":"","serverRef":"myServer1","mode":"events","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"","intervalMs":"1000","inputs":0,"outputs":1,"x":180,"y":760,"wires":[["c1fb27fa2c9ef4a0"]]},{"id":"c1fb27fa2c9ef4a0","type":"debug","z":"e7cc0f612b0bceb7","g":"98ce19d58a71ab4e","name":"debug 1","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":450,"y":760,"wires":[]},{"id":"a3d8d5c4e61b42b9","type":"comment","z":"e7cc0f612b0bceb7","g":"98ce19d58a71ab4e","name":"events server read and write(clients)","info":"","x":240,"y":700,"wires":[]},{"id":"7efb5d7ca6614a65","type":"inject","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"alarm on","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"92","vt":"num"},{"p":"payload2","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":980,"wires":[["5af891b5cda4d8b3"]]},{"id":"5a62728127814334","type":"opcua-server-io","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"","serverRef":"myServer1","mode":"write","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":640,"y":940,"wires":[["d399df94d1549bd0"]]},{"id":"5af891b5cda4d8b3","type":"function","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"function 1","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"path\": \"myServer1.variableLevelAlarm\",\n \"value\" : msg.payload1\n },\n {\n \"name\": \"variablDigitalAlarm\",\n \"path\": \"myServer1.variableDigitalAlarm\",\n \"value\" : msg.payload2\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":940,"wires":[["5a62728127814334"]]},{"id":"d399df94d1549bd0","type":"debug","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":870,"y":920,"wires":[]},{"id":"7979e5f2edc85131","type":"comment","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"write","info":"","x":150,"y":880,"wires":[]},{"id":"efa60e4ab7a517f2","type":"inject","z":"e7cc0f612b0bceb7","g":"f17ab5f0981538bf","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":1500,"wires":[["328c71bd2d59e94e"]]},{"id":"328c71bd2d59e94e","type":"opcua-server-io","z":"e7cc0f612b0bceb7","g":"f17ab5f0981538bf","name":"read direct","serverRef":"myServer1","mode":"read","identifierType":"path","tagPath":"myServer1.variableLevelAlarm","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":540,"y":1500,"wires":[["48e6cba49f78725b"]]},{"id":"48e6cba49f78725b","type":"debug","z":"e7cc0f612b0bceb7","g":"f17ab5f0981538bf","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":1500,"wires":[]},{"id":"c5741543a4fce152","type":"inject","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"alarm off","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"50","vt":"num"},{"p":"payload2","v":"false","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":940,"wires":[["5af891b5cda4d8b3"]]},{"id":"38414beb18ebfa3e","type":"comment","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"write single","info":"","x":200,"y":1040,"wires":[]},{"id":"7cb967a286225f59","type":"inject","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"51","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"51","payloadType":"num","x":170,"y":1100,"wires":[["97549889c3b4bfe4"]]},{"id":"97549889c3b4bfe4","type":"opcua-server-io","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"write direct","serverRef":"myServer1","mode":"write","identifierType":"path","tagPath":"myServer1.variableLevelAlarm","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":400,"y":1100,"wires":[["ddef094b243ed54a"]]},{"id":"ddef094b243ed54a","type":"debug","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":640,"y":1100,"wires":[]},{"id":"f4dacc5a92c731e7","type":"inject","z":"e7cc0f612b0bceb7","g":"f17ab5f0981538bf","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":1420,"wires":[["6ef8f18f751a6759"]]},{"id":"6ef8f18f751a6759","type":"function","z":"e7cc0f612b0bceb7","g":"f17ab5f0981538bf","name":"function 3","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"path\": \"myServer1.variableLevelAlarm\",\n \"value\" : msg.payload1\n },\n {\n \"name\": \"variablDigitalAlarm\",\n \"path\": \"myServer1.variableDigitalAlarm\",\n \"value\" : msg.payload2\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":440,"y":1420,"wires":[["b60c2817b85b8fb7"]]},{"id":"b60c2817b85b8fb7","type":"opcua-server-io","z":"e7cc0f612b0bceb7","g":"f17ab5f0981538bf","name":"","serverRef":"myServer1","mode":"read","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":640,"y":1420,"wires":[["5702c83ce7a5140c"]]},{"id":"5702c83ce7a5140c","type":"debug","z":"e7cc0f612b0bceb7","g":"f17ab5f0981538bf","name":"debug 5","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":840,"y":1420,"wires":[]},{"id":"6aabe6138ce9420c","type":"comment","z":"e7cc0f612b0bceb7","g":"f17ab5f0981538bf","name":"read","info":"","x":150,"y":1360,"wires":[]},{"id":"52e6107a2a1f1a57","type":"comment","z":"e7cc0f612b0bceb7","g":"f17ab5f0981538bf","name":"read single","info":"","x":200,"y":1460,"wires":[]},{"id":"afc4fcc7e094c29e","type":"comment","z":"e7cc0f612b0bceb7","g":"dae83022ed0f5107","name":"methods","info":"","x":160,"y":260,"wires":[]},{"id":"b42d91f6d1cfc05d","type":"opcua-server-io","z":"e7cc0f612b0bceb7","g":"dae83022ed0f5107","name":"","serverRef":"myServer1","mode":"method-input","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"methodMultiplication","intervalMs":500,"inputs":0,"outputs":1,"x":190,"y":400,"wires":[["48460fc756b15b11"]]},{"id":"1cb9a7cf09978034","type":"opcua-server-io","z":"e7cc0f612b0bceb7","g":"dae83022ed0f5107","name":"","serverRef":"myServer1","mode":"method-output","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"methodMultiplication","intervalMs":500,"inputs":1,"outputs":0,"x":750,"y":400,"wires":[]},{"id":"48460fc756b15b11","type":"function","z":"e7cc0f612b0bceb7","g":"dae83022ed0f5107","name":"function 4","func":"var input1 = msg.payload[0].value\nvar input2 = msg.payload[1].value\n\nmsg.payload = [\n {\n dataType: \"Float\",\n value: input1 * input2\n }\n];\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":520,"y":400,"wires":[["1cb9a7cf09978034"]]},{"id":"546340335a70d530","type":"comment","z":"e7cc0f612b0bceb7","g":"77efe416d3f1fc5b","name":"server","info":"","x":190,"y":80,"wires":[]},{"id":"2c055656f62d1fb8","type":"inject","z":"e7cc0f612b0bceb7","g":"f17ab5f0981538bf","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":1640,"wires":[["bb139fc6f98a95da"]]},{"id":"bb139fc6f98a95da","type":"opcua-server-io","z":"e7cc0f612b0bceb7","g":"f17ab5f0981538bf","name":"read direct","serverRef":"myServer1","mode":"read","identifierType":"path","tagPath":"myServer1.variableArray","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":510,"y":1640,"wires":[["5ac04d9d17f8fe52"]]},{"id":"5ac04d9d17f8fe52","type":"debug","z":"e7cc0f612b0bceb7","g":"f17ab5f0981538bf","name":"debug 17","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":680,"y":1640,"wires":[]},{"id":"b4d3ee406a16aff1","type":"comment","z":"e7cc0f612b0bceb7","g":"f17ab5f0981538bf","name":"read array","info":"","x":200,"y":1580,"wires":[]},{"id":"cdb87f0b3835f843","type":"comment","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"write array","info":"","x":160,"y":1180,"wires":[]},{"id":"3a5821df929f3c5e","type":"inject","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"51","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[11,21,31,41]","payloadType":"str","x":170,"y":1240,"wires":[["35f1e2a08d02b7ae"]]},{"id":"35f1e2a08d02b7ae","type":"opcua-server-io","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"write direct","serverRef":"myServer1","mode":"write","identifierType":"path","tagPath":"myServer1.variableArray","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":350,"y":1240,"wires":[["29af39e3f86667b9"]]},{"id":"29af39e3f86667b9","type":"debug","z":"e7cc0f612b0bceb7","g":"8aa86fcd4f29e1a4","name":"debug 18","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":580,"y":1240,"wires":[]},{"id":"ec5f354415c37867","type":"opcua-client","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"client read direct","connection":"b09a1570957d3c44","mode":"read","selectedItems":"[\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":440,"y":120,"wires":[["055e620387cf7803"]]},{"id":"5ca9c46baa557076","type":"inject","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":120,"wires":[["ec5f354415c37867"]]},{"id":"055e620387cf7803","type":"debug","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"debug 6","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":640,"y":120,"wires":[]},{"id":"60ce66f1992da55a","type":"opcua-client","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"client read ","connection":"b09a1570957d3c44","mode":"read","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":630,"y":240,"wires":[["b7a7a1bf79ca3b5c"]]},{"id":"7a22c77e6f1acf5c","type":"inject","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":240,"wires":[["f56ea9f10d88bfa8"]]},{"id":"b7a7a1bf79ca3b5c","type":"debug","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"debug 7","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":240,"wires":[]},{"id":"f56ea9f10d88bfa8","type":"function","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"function 5","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\"\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":240,"wires":[["60ce66f1992da55a"]]},{"id":"0af78ecf4982c935","type":"opcua-client","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"client read Subscripition","connection":"b09a1570957d3c44","mode":"subscription","selectedItems":"[]","samplingInterval":"500","publishingInterval":"500","x":670,"y":380,"wires":[["7c561a8412c5bd3d"]]},{"id":"274d3dd6529713dd","type":"inject","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":380,"wires":[["ccf9013ac3472f88"]]},{"id":"7c561a8412c5bd3d","type":"debug","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"debug 8","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1000,"y":380,"wires":[]},{"id":"ccf9013ac3472f88","type":"function","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"function 6","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\"\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":380,"wires":[["0af78ecf4982c935"]]},{"id":"48e2da4514de31fd","type":"opcua-client","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"client read Subscripition direct","connection":"b09a1570957d3c44","mode":"subscription","selectedItems":"[\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":"500","publishingInterval":"500","x":690,"y":460,"wires":[["e4abec0f82cf7cfc"]]},{"id":"61f8cbb4796f7f6d","type":"inject","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":460,"wires":[["48e2da4514de31fd"]]},{"id":"e4abec0f82cf7cfc","type":"debug","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"debug 9","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1000,"y":460,"wires":[]},{"id":"18a4d38dc8bd6116","type":"comment","z":"70fa2b9d6476bd46","g":"29df843ad22e647e","name":"read","info":"","x":130,"y":60,"wires":[]},{"id":"9e5117f921c93795","type":"comment","z":"70fa2b9d6476bd46","g":"21a271c62d5603ff","name":"write","info":"","x":130,"y":600,"wires":[]},{"id":"677122a1baf3fbdb","type":"opcua-client","z":"70fa2b9d6476bd46","g":"21a271c62d5603ff","name":"client write direct","connection":"b09a1570957d3c44","mode":"write","selectedItems":"[\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload1\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload2\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":430,"y":680,"wires":[["c66be2125c820ba0"]]},{"id":"c66be2125c820ba0","type":"debug","z":"70fa2b9d6476bd46","g":"21a271c62d5603ff","name":"debug 10","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":620,"y":680,"wires":[]},{"id":"26ec5dfc8b108e43","type":"inject","z":"70fa2b9d6476bd46","g":"21a271c62d5603ff","name":"alarm on","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"92","vt":"num"},{"p":"payload2","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":740,"wires":[["677122a1baf3fbdb"]]},{"id":"3d68e87b1417c9cc","type":"inject","z":"70fa2b9d6476bd46","g":"21a271c62d5603ff","name":"alarm off","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"50","vt":"num"},{"p":"payload2","v":"false","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":680,"wires":[["677122a1baf3fbdb"]]},{"id":"bac21da7b5cf7027","type":"opcua-client","z":"70fa2b9d6476bd46","g":"21a271c62d5603ff","name":"client write ","connection":"b09a1570957d3c44","mode":"write","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":570,"y":820,"wires":[["66275ad805915441"]]},{"id":"66275ad805915441","type":"debug","z":"70fa2b9d6476bd46","g":"21a271c62d5603ff","name":"debug 11","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":740,"y":820,"wires":[]},{"id":"f5a4ccf925685cd3","type":"inject","z":"70fa2b9d6476bd46","g":"21a271c62d5603ff","name":"alarm on","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"92","vt":"num"},{"p":"payload2","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":900,"wires":[["67550952aef245ca"]]},{"id":"3be94df95266a1e9","type":"inject","z":"70fa2b9d6476bd46","g":"21a271c62d5603ff","name":"alarm off","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"50","vt":"num"},{"p":"payload2","v":"false","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":840,"wires":[["67550952aef245ca"]]},{"id":"67550952aef245ca","type":"function","z":"70fa2b9d6476bd46","g":"21a271c62d5603ff","name":"function 7","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"value\" : msg.payload1\n \n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"value\" : msg.payload2\n\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":820,"wires":[["bac21da7b5cf7027"]]},{"id":"170839e5dc3910ba","type":"opcua-client","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"client method","connection":"b09a1570957d3c44","mode":"method","selectedItems":"[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":830,"y":1100,"wires":[["2c0aa59a878dcadf"]]},{"id":"7754429d28a1d3af","type":"inject","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1100,"wires":[["482dec9e8cf20be2"]]},{"id":"2c0aa59a878dcadf","type":"debug","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"debug 52","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1020,"y":1100,"wires":[]},{"id":"1f2534fafeaa2ed4","type":"function","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"method refresh","func":"msg.payload = [\n {\n \"name\": \"metodo1\",\n \"nodeID\": \"ns=0;i=3875\",\n \"inputs\": [\n {\n \"name\": \"i1\",\n \"type\": \"UInt32\",\n \"value\": msg.payload\n },\n ]\n },\n\n \n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":660,"y":1100,"wires":[["170839e5dc3910ba"]]},{"id":"482dec9e8cf20be2","type":"opcua-client","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"client get id","connection":"b09a1570957d3c44","mode":"getSubscriptionId","selectedItems":"[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":450,"y":1100,"wires":[["1f2534fafeaa2ed4"]]},{"id":"0cbd25ccc85b6c22","type":"comment","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"method refresh","info":"","x":160,"y":1000,"wires":[]},{"id":"51e9372ebbb4456c","type":"opcua-client","z":"70fa2b9d6476bd46","g":"bcd564ade7dcb862","name":"client Events","connection":"b09a1570957d3c44","mode":"events","selectedItems":"[\n {\n \"name\": \"Server\",\n \"nodeID\": \"ns=0;i=2253\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=2004\",\n \"browseName\": \"ServerType\",\n \"displayName\": \"ServerType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":450,"y":1680,"wires":[["3a04960b4288ab27"]]},{"id":"f0ea35ad05af22c1","type":"inject","z":"70fa2b9d6476bd46","g":"bcd564ade7dcb862","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1680,"wires":[["51e9372ebbb4456c"]]},{"id":"3a04960b4288ab27","type":"debug","z":"70fa2b9d6476bd46","g":"bcd564ade7dcb862","name":"debug 12","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":780,"y":1680,"wires":[]},{"id":"1f1d5078c5d17d9e","type":"comment","z":"70fa2b9d6476bd46","g":"bcd564ade7dcb862","name":"events","info":"","x":130,"y":1620,"wires":[]},{"id":"80dcb37039dd0e33","type":"inject","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1220,"wires":[["a11a9df2d16a8f32"]]},{"id":"5524f381f0ea2a8c","type":"opcua-client","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"client method","connection":"b09a1570957d3c44","mode":"method","selectedItems":"[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":670,"y":1220,"wires":[["0974acab412c6b83"]]},{"id":"a11a9df2d16a8f32","type":"function","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"method methodSum","func":"msg.payload = [\n {\n \"name\": \"methodSum\",\n \"nodeID\": \"ns=2;s=myServer1.folderMethod.methodSum\",\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"value\": 5\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"value\": 5\n }\n ]\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":1220,"wires":[["5524f381f0ea2a8c"]]},{"id":"0974acab412c6b83","type":"debug","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"debug 13","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":1220,"wires":[]},{"id":"d4f7121890134de8","type":"comment","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"refresh event","info":"","x":150,"y":1060,"wires":[]},{"id":"5d49d0bb3193d2ca","type":"comment","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"methodSum","info":"","x":150,"y":1160,"wires":[]},{"id":"67caf22df77250fc","type":"opcua-client","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"client method","connection":"b09a1570957d3c44","mode":"method","selectedItems":"[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":830,"y":1360,"wires":[["f6f0609394b3aa0f"]]},{"id":"ffe0437394fd02b9","type":"inject","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1360,"wires":[["7543032adedf54ed"]]},{"id":"7543032adedf54ed","type":"function","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"levelAlarm1-Acknowledge","func":"\n\nmsg.payload = [\n {\n \"name\": \"metodo1\",\n \"nodeID\": \"ns=2;s=myServer1.folderAlarms.levelAlarm1-Acknowledge\",\n \"inputs\": [\n {\n \"name\": \"i1\",\n \"type\": \"ByteString\",\n \"value\": \"\"\n },\n {\n \"name\": \"i2\",\n \"type\": \"LocalizedText\",\n \"value\": \"\"\n },\n ]\n },\n\n\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":1360,"wires":[["67caf22df77250fc"]]},{"id":"f6f0609394b3aa0f","type":"debug","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"debug 14","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":990,"y":1360,"wires":[]},{"id":"46381822a621cf5a","type":"comment","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"method Acknowledge","info":"","x":180,"y":1300,"wires":[]},{"id":"3049f81a29646e7f","type":"opcua-client","z":"70fa2b9d6476bd46","g":"6310bf83c3300ad1","name":"client browse direct","connection":"b09a1570957d3c44","mode":"browse","selectedItems":"[\n {\n \"name\": \"myServer1\",\n \"nodeID\": \"ns=2;s=myServer1\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=61\",\n \"browseName\": \"FolderType\",\n \"displayName\": \"FolderType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"folderAlarms\",\n \"nodeID\": \"ns=2;s=myServer1.folderAlarms\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=61\",\n \"browseName\": \"FolderType\",\n \"displayName\": \"FolderType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":450,"y":1880,"wires":[["1fd75b3f2aac6c48"]]},{"id":"801afc788f1a5dde","type":"comment","z":"70fa2b9d6476bd46","g":"6310bf83c3300ad1","name":"browse ","info":"","x":130,"y":1820,"wires":[]},{"id":"2f4c880ada1b7d81","type":"inject","z":"70fa2b9d6476bd46","g":"6310bf83c3300ad1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1880,"wires":[["3049f81a29646e7f"]]},{"id":"1fd75b3f2aac6c48","type":"debug","z":"70fa2b9d6476bd46","g":"6310bf83c3300ad1","name":"debug 15","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":660,"y":1880,"wires":[]},{"id":"1999ad96409ce9bb","type":"opcua-client","z":"70fa2b9d6476bd46","g":"6310bf83c3300ad1","name":"client browse ","connection":"b09a1570957d3c44","mode":"browse","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":610,"y":2040,"wires":[["1f162987d1d7b358"]]},{"id":"8132a1c9aad5332e","type":"inject","z":"70fa2b9d6476bd46","g":"6310bf83c3300ad1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":2040,"wires":[["95bc2804968a1254"]]},{"id":"1f162987d1d7b358","type":"debug","z":"70fa2b9d6476bd46","g":"6310bf83c3300ad1","name":"debug 16","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":780,"y":2040,"wires":[]},{"id":"95bc2804968a1254","type":"function","z":"70fa2b9d6476bd46","g":"6310bf83c3300ad1","name":"browse ","func":"msg.payload = [\n {\n \"name\": \"myServer1\",\n \"nodeID\": \"ns=2;s=myServer1\",\n \n },\n {\n \"name\": \"folderAlarms\",\n \"nodeID\": \"ns=2;s=myServer1.folderAlarms\",\n \n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":380,"y":2040,"wires":[["1999ad96409ce9bb"]]},{"id":"f61820792b5d0f91","type":"function","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"Acknowledge by objectId","func":"msg.payload = [\n {\n \"name\": \"method1\",\n \"objectId\": \"ns=2;s=myServer1.folderAlarms.digitalAlarm1\",\n \"methodID\": \"ns=0;i=9111\",\n \"inputs\": [\n {\n \"name\": \"input1\",\n \"type\": \"ByteString\",\n //Buffer eventID\n \"value\": Buffer.from([246, 112, 20, 156, 78, 102, 23, 227, 22, 239, 112, 224, 54, 197, 229, 157, 0, 0, 0, 5]) \n },\n {\n \"name\": \"input2\",\n \"type\": \"LocalizedText\",\n \"value\": \"Acknowledged by operator\"\n }\n ]\n },\n\n\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":1440,"wires":[["828f48e381891aad"]]},{"id":"828f48e381891aad","type":"opcua-client","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"client Acknowledge","connection":"b09a1570957d3c44","mode":"method","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":710,"y":1440,"wires":[["17f926ea45ca343f"]]},{"id":"07fd5ccbcf7f8355","type":"inject","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":1440,"wires":[["f61820792b5d0f91"]]},{"id":"17f926ea45ca343f","type":"debug","z":"70fa2b9d6476bd46","g":"505150e06f53db35","name":"debug 19","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":1440,"wires":[]},{"id":"e834b8d4e261f949","type":"opcua-client","z":"70fa2b9d6476bd46","g":"6310bf83c3300ad1","name":"client browse recursive direct","connection":"b09a1570957d3c44","mode":"browseRecursive","selectedItems":"[\n {\n \"name\": \"myServer1\",\n \"nodeID\": \"ns=2;s=myServer1\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=61\",\n \"browseName\": \"FolderType\",\n \"displayName\": \"FolderType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"folderAlarms\",\n \"nodeID\": \"ns=2;s=myServer1.folderAlarms\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=61\",\n \"browseName\": \"FolderType\",\n \"displayName\": \"FolderType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":480,"y":1940,"wires":[["0f99e2a99af9b73a"]]},{"id":"6b8b5ac971dfacc1","type":"inject","z":"70fa2b9d6476bd46","g":"6310bf83c3300ad1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1940,"wires":[["e834b8d4e261f949"]]},{"id":"0f99e2a99af9b73a","type":"debug","z":"70fa2b9d6476bd46","g":"6310bf83c3300ad1","name":"debug 20","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":700,"y":1940,"wires":[]},{"id":"d96f5a7685df3182","type":"global-config","env":[],"modules":{"@vitormnm/node-red-simple-opcua":"1.7.0"}}]
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitormnm/node-red-simple-opcua",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"description": "
|
|
7
|
+
"description": "OPC UA server and client nodes with a graphical interface, powered by node-opcua",
|
|
8
8
|
"main": "server/opcua-server.js",
|
|
9
9
|
"node-red": {
|
|
10
10
|
"version": ">=3.0.0",
|