@opcua/for-node-red
Version:
The Node-RED node to communicate via OPC UA, powered NodeOPCUA and developed by Sterfive's team
630 lines • 16.3 kB
JSON
[
{
"id": "36a805baecdc408b",
"type": "tab",
"label": "Example of OCPUA Monitored Items Usage",
"disabled": false,
"info": "",
"env": []
},
{
"id": "91c517c753b485df",
"type": "group",
"z": "36a805baecdc408b",
"style": {
"stroke": "#999999",
"stroke-opacity": "1",
"fill": "none",
"fill-opacity": "1",
"label": true,
"label-position": "nw",
"color": "#a4a4a4"
},
"nodes": [
"692a3e832f8d73f3",
"729c0770b8668a01",
"235817d0681cb1f0",
"c79603e9f6e52325"
],
"x": 394,
"y": 119,
"w": 272,
"h": 202
},
{
"id": "741b65d8481f5e74",
"type": "group",
"z": "36a805baecdc408b",
"style": {
"stroke": "#999999",
"stroke-opacity": "1",
"fill": "none",
"fill-opacity": "1",
"label": true,
"label-position": "nw",
"color": "#a4a4a4"
},
"nodes": [
"6c8d92ba6862e570",
"5c825ecdc5079375",
"a3fa3717bee04a27",
"e73bbc0b6af22697"
],
"x": 294,
"y": 339,
"w": 372,
"h": 202
},
{
"id": "9e506175332e9a72",
"type": "group",
"z": "36a805baecdc408b",
"style": {
"stroke": "#999999",
"stroke-opacity": "1",
"fill": "none",
"fill-opacity": "1",
"label": true,
"label-position": "nw",
"color": "#a4a4a4"
},
"nodes": [
"b9a121cbf8d6f9ac",
"195b0f8e6bfa7c49",
"486fc8da5ce6ca72"
],
"x": 14,
"y": 579,
"w": 672,
"h": 162
},
{
"id": "6e8ab51329336f7f",
"type": "group",
"z": "36a805baecdc408b",
"style": {
"stroke": "#999999",
"stroke-opacity": "1",
"fill": "none",
"fill-opacity": "1",
"label": true,
"label-position": "nw",
"color": "#a4a4a4"
},
"nodes": [
"01c9759d4d2bb186",
"0f45e89772bc5c97",
"7cf27feea7854733"
],
"x": 274,
"y": 759,
"w": 412,
"h": 142
},
{
"id": "6e160b1ecd74e600",
"type": "debug",
"z": "36a805baecdc408b",
"name": "debug msg",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1250,
"y": 380,
"wires": []
},
{
"id": "05c367842aa2cd90",
"type": "OpcUa-Client2-Monitor",
"z": "36a805baecdc408b",
"inputs": 1,
"output": 2,
"name": "",
"endpoint": "c80889511cc51fe9",
"subscription": "s0",
"startImmediately": false,
"nodeId": "ns=0;i=2258",
"samplingInterval": 1000,
"discardOldest": true,
"queueSize": 10,
"x": 1020,
"y": 440,
"wires": [
[
"6e160b1ecd74e600",
"1281dd7e87b80429"
]
]
},
{
"id": "692a3e832f8d73f3",
"type": "inject",
"z": "36a805baecdc408b",
"g": "91c517c753b485df",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "ns=1;s=Matrix",
"payloadType": "str",
"x": 570,
"y": 200,
"wires": [
[
"05c367842aa2cd90"
]
]
},
{
"id": "729c0770b8668a01",
"type": "inject",
"z": "36a805baecdc408b",
"g": "91c517c753b485df",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "ns=1;s=BadNode",
"payloadType": "str",
"x": 560,
"y": 240,
"wires": [
[
"05c367842aa2cd90"
]
]
},
{
"id": "235817d0681cb1f0",
"type": "inject",
"z": "36a805baecdc408b",
"g": "91c517c753b485df",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "ns=1;s=Temperature",
"payloadType": "str",
"x": 550,
"y": 280,
"wires": [
[
"05c367842aa2cd90"
]
]
},
{
"id": "c79603e9f6e52325",
"type": "comment",
"z": "36a805baecdc408b",
"g": "91c517c753b485df",
"name": "using payload: <nodeId>",
"info": "",
"x": 530,
"y": 160,
"wires": []
},
{
"id": "6c8d92ba6862e570",
"type": "inject",
"z": "36a805baecdc408b",
"g": "741b65d8481f5e74",
"name": "inject { nodeId: ns=1;s=Temperature } ",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"nodeId\":\"ns=1;s=Temperature\"}",
"payloadType": "json",
"x": 490,
"y": 420,
"wires": [
[
"05c367842aa2cd90"
]
]
},
{
"id": "e73bbc0b6af22697",
"type": "comment",
"z": "36a805baecdc408b",
"g": "741b65d8481f5e74",
"name": "using payload: { nodeId: <nodeId> }",
"info": "",
"x": 500,
"y": 380,
"wires": []
},
{
"id": "5c825ecdc5079375",
"type": "inject",
"z": "36a805baecdc408b",
"g": "741b65d8481f5e74",
"name": "inject { nodeId: ns=1;s=BadNode } ",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"nodeId\":\"ns=1;s=BadNode\"}",
"payloadType": "json",
"x": 500,
"y": 460,
"wires": [
[
"05c367842aa2cd90"
]
]
},
{
"id": "a3fa3717bee04a27",
"type": "inject",
"z": "36a805baecdc408b",
"g": "741b65d8481f5e74",
"name": "inject { nodeId: <empty> } ",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"nodeId\":\"\"}",
"payloadType": "json",
"x": 530,
"y": 500,
"wires": [
[
"05c367842aa2cd90"
]
]
},
{
"id": "41a6dd0f6196bb4b",
"type": "inject",
"z": "36a805baecdc408b",
"name": "msg.action: \"Stop\"",
"props": [
{
"p": "action",
"v": "stop",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 570,
"y": 80,
"wires": [
[
"05c367842aa2cd90"
]
]
},
{
"id": "1281dd7e87b80429",
"type": "debug",
"z": "36a805baecdc408b",
"name": "debug payload",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1260,
"y": 500,
"wires": []
},
{
"id": "195b0f8e6bfa7c49",
"type": "inject",
"z": "36a805baecdc408b",
"g": "9e506175332e9a72",
"name": "payload: { \"Temperature\": \"ns=1;s=Temperature\"}",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{ \"Temperature\": \"ns=1;s=Temperature\"}",
"payloadType": "json",
"x": 480,
"y": 660,
"wires": [
[
"05c367842aa2cd90"
]
]
},
{
"id": "486fc8da5ce6ca72",
"type": "inject",
"z": "36a805baecdc408b",
"g": "9e506175332e9a72",
"name": "payload:{ \"Temperature\": \"ns=1;s=Temperature\" , \"Status\": { \"CurrentTime\": \"i=2258\"} }",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{ \"Temperature\": \"ns=1;s=Temperature\" , \"Status\": { \"CurrentTime\": \"i=2258\"} }",
"payloadType": "json",
"x": 360,
"y": 700,
"wires": [
[
"05c367842aa2cd90"
]
]
},
{
"id": "b9a121cbf8d6f9ac",
"type": "comment",
"z": "36a805baecdc408b",
"g": "9e506175332e9a72",
"name": "using payload: { a: <nodeId> , { b: { c: <nodeId>} }}",
"info": "",
"x": 470,
"y": 620,
"wires": []
},
{
"id": "01c9759d4d2bb186",
"type": "OpcUa-Client2-Explore",
"z": "36a805baecdc408b",
"g": "6e8ab51329336f7f",
"inputs": 1,
"output": 4,
"name": "Explore RFID Object",
"endpoint": "c80889511cc51fe9",
"nodeId": "/di:DeviceSet/ns1:RFIDScanner",
"outputType": "BrowsePath",
"excludeEmpty": true,
"followOrganizes": true,
"x": 570,
"y": 860,
"wires": [
[
"05c367842aa2cd90",
"89c3794be219609f"
]
]
},
{
"id": "0f45e89772bc5c97",
"type": "inject",
"z": "36a805baecdc408b",
"g": "6e8ab51329336f7f",
"name": "Go",
"props": [],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 390,
"y": 860,
"wires": [
[
"01c9759d4d2bb186"
]
]
},
{
"id": "89c3794be219609f",
"type": "debug",
"z": "36a805baecdc408b",
"name": "debug 2",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1240,
"y": 860,
"wires": []
},
{
"id": "7cf27feea7854733",
"type": "comment",
"z": "36a805baecdc408b",
"g": "6e8ab51329336f7f",
"name": "using payload: <result of explore >",
"info": "",
"x": 440,
"y": 800,
"wires": []
},
{
"id": "c80889511cc51fe9",
"type": "OpcUa-Endpoint2",
"name": "",
"endpoint": "opc.tcp://opcuademo.sterfive.com:26543/UA/SampleServer",
"securityMode": "None",
"securityPolicy": "None",
"userIdentityType": "Anonymous",
"pkiName": "",
"useTransport": false,
"maxChunkCount": 1,
"maxMessageSize": 8192,
"receiveBufferSize": 8192,
"sendBufferSize": 8192,
"subscriptions": [
{
"id": "s0",
"name": "Default Subscription",
"isDefault": true,
"parameters": {
"publishingEnabled": true,
"requestedLifetimeCount": "1000",
"requestedMaxKeepAliveCount": "10",
"requestedPublishingInterval": "1000",
"maxNotificationsPerPublish": "0",
"priority": "100"
}
},
{
"id": "s1",
"name": "Slow Subscription",
"isDefault": true,
"parameters": {
"publishingEnabled": true,
"requestedLifetimeCount": "100",
"requestedMaxKeepAliveCount": "3",
"requestedPublishingInterval": "5000",
"maxNotificationsPerPublish": "100",
"priority": "10"
}
},
{
"id": "s2",
"name": "Fast Subscription",
"isDefault": true,
"parameters": {
"publishingEnabled": true,
"requestedLifetimeCount": "4000",
"requestedMaxKeepAliveCount": "50",
"requestedPublishingInterval": "250",
"maxNotificationsPerPublish": "100",
"priority": "200"
}
}
],
"namespaceAliases": [
{
"namespaceUri": "http://opcfoundation.org/UA/",
"alias": "ua"
},
{
"namespaceUri": "urn:opcuademo.sterfive.com:NodeOPCUA-Server-for-CTT",
"alias": "ns1"
},
{
"namespaceUri": "http://opcfoundation.org/UA/DI/",
"alias": "di"
},
{
"namespaceUri": "http://opcfoundation.org/UA/ADI/",
"alias": "adi"
},
{
"namespaceUri": "http://opcfoundation.org/UA/AutoID/",
"alias": "autoId"
},
{
"namespaceUri": "http://opcfoundation.org/UA/MachineVision",
"alias": "machineVision"
},
{
"namespaceUri": "http://opcfoundation.org/UA/Robotics/",
"alias": "robotics"
},
{
"namespaceUri": "http://opcfoundation.org/UA/CommercialKitchenEquipment/",
"alias": "commercialKitchenEquipment"
},
{
"namespaceUri": "http://opcfoundation.org/UA/ISA95-JOBCONTROL_V2/",
"alias": "isa95JobControl"
},
{
"namespaceUri": "http://opcfoundation.org/UA/Dictionary/IRDI",
"alias": "irdi"
},
{
"namespaceUri": "http://opcfoundation.org/UA/IA/",
"alias": "ia"
},
{
"namespaceUri": "http://opcfoundation.org/UA/Machinery/",
"alias": "machinery"
},
{
"namespaceUri": "http://opcfoundation.org/UA/Machinery/Jobs/",
"alias": "machineryJobs"
},
{
"namespaceUri": "http://opcfoundation.org/UA/MachineTool/",
"alias": "machineTool"
},
{
"namespaceUri": "http://opcfoundation.org/UA/PackML/",
"alias": "packML"
},
{
"namespaceUri": "urn://node-opcua-simulator",
"alias": "ns2"
},
{
"namespaceUri": "http://sterfive.com/UA/CoffeeMachine/",
"alias": "ns3"
}
]
}
]