Skip to content

Instantly share code, notes, and snippets.

@biancode
Last active October 6, 2017 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biancode/528fe1576611bdc57f343d9ae0597b92 to your computer and use it in GitHub Desktop.
Save biancode/528fe1576611bdc57f343d9ae0597b92 to your computer and use it in GitHub Desktop.
node-red-contrib-iiot-opcua - Read OPC UA address space structures

v1.0.x Example:

  • Server
  • Client (read structure)
  • Response
[
{
"id": "5ee15620.af3f58",
"type": "tab",
"label": "IIoT Read Structure",
"disabled": false,
"info": ""
},
{
"id": "ca7fc2b0.8451c",
"type": "OPCUA-IIoT-Inject",
"z": "5ee15620.af3f58",
"injectType": "read",
"payload": "",
"payloadType": "date",
"topic": "",
"repeat": "",
"crontab": "",
"once": false,
"startDelay": 15,
"name": "Server Info",
"addressSpaceItems": [
{
"name": "ServerStatus",
"nodeId": "ns=0;i=2256",
"datatypeName": ""
}
],
"x": 120,
"y": 150,
"wires": [
[
"766029e2.549a68"
]
]
},
{
"id": "766029e2.549a68",
"type": "OPCUA-IIoT-Read",
"z": "5ee15620.af3f58",
"attributeId": "0",
"maxAge": 1,
"depth": 1,
"connector": "e51de948.21cf48",
"name": "",
"justValue": true,
"multipleRequest": true,
"showStatusActivities": false,
"showErrors": false,
"x": 280,
"y": 150,
"wires": [
[
"287e54ae.c069fc",
"56578f97.87f1e"
]
]
},
{
"id": "287e54ae.c069fc",
"type": "debug",
"z": "5ee15620.af3f58",
"name": "",
"active": true,
"console": "false",
"complete": "true",
"x": 480,
"y": 210,
"wires": []
},
{
"id": "56578f97.87f1e",
"type": "OPCUA-IIoT-Response",
"z": "5ee15620.af3f58",
"name": "",
"x": 490,
"y": 150,
"wires": [
[
"fc0507d3.212f08"
]
]
},
{
"id": "fc0507d3.212f08",
"type": "debug",
"z": "5ee15620.af3f58",
"name": "",
"active": false,
"console": "false",
"complete": "true",
"x": 670,
"y": 150,
"wires": []
},
{
"id": "e51de948.21cf48",
"type": "OPCUA-IIoT-Connector",
"z": "",
"endpoint": "opc.tcp://localhost:55388/",
"keepSessionAlive": false,
"loginEnabled": false,
"securityPolicy": "None",
"securityMode": "NONE",
"name": "Local Server",
"showStatusActivities": false,
"showErrors": false
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment