node-red-contrib-iiot-opcua - Read OPC UA address space structures

Example:

  • Server
  • Client (read structure)
  • Response
[
    {
        "id": "11eedb1e.d0a385",
        "type": "tab",
        "label": "IoT/IIoT OPC UA",
        "disabled": false,
        "info": ""
    },
    {
        "id": "1092c3e1.503acc",
        "type": "OPCUA-IIoT-Server",
        "z": "11eedb1e.d0a385",
        "port": "55388",
        "endpoint": "",
        "acceptExternalCommands": true,
        "maxAllowedSessionNumber": "",
        "maxConnectionsPerEndpoint": "",
        "maxAllowedSubscriptionNumber": "",
        "alternateHostname": "",
        "name": "",
        "showStatusActivities": false,
        "showErrors": false,
        "allowAnonymous": true,
        "isAuditing": false,
        "users": [],
        "x": 220,
        "y": 140,
        "wires": [
            [],
            []
        ]
    },
    {
        "id": "36e686fd.08796a",
        "type": "OPCUA-IIoT-Read",
        "z": "11eedb1e.d0a385",
        "attributeId": "99",
        "maxAge": 1,
        "depth": "2",
        "connector": "5f367074.3d967",
        "name": "",
        "justValue": true,
        "multipleRequest": false,
        "metaDataInject": true,
        "showStatusActivities": false,
        "showErrors": false,
        "x": 290,
        "y": 240,
        "wires": [
            [
                "e13ad624.af9fc8",
                "e675d065.2d5b4",
                "adaa935d.b9baa",
                "c01d4e03.2cdf5",
                "45e382f7.e5e44c"
            ]
        ]
    },
    {
        "id": "d015abc.3a95158",
        "type": "OPCUA-IIoT-Inject",
        "z": "11eedb1e.d0a385",
        "injectTypeListener": false,
        "payload": "",
        "payloadType": "date",
        "topic": "ns=0;i=2256",
        "datatype": "NodeId",
        "repeat": "",
        "crontab": "",
        "once": false,
        "startDelay": 15,
        "name": "Server Info",
        "x": 120,
        "y": 240,
        "wires": [
            [
                "36e686fd.08796a"
            ]
        ]
    },
    {
        "id": "e13ad624.af9fc8",
        "type": "debug",
        "z": "11eedb1e.d0a385",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "diagnostics",
        "x": 480,
        "y": 340,
        "wires": []
    },
    {
        "id": "e675d065.2d5b4",
        "type": "debug",
        "z": "11eedb1e.d0a385",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "payload",
        "x": 470,
        "y": 380,
        "wires": []
    },
    {
        "id": "adaa935d.b9baa",
        "type": "debug",
        "z": "11eedb1e.d0a385",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "true",
        "x": 450,
        "y": 420,
        "wires": []
    },
    {
        "id": "c01d4e03.2cdf5",
        "type": "OPCUA-IIoT-Read",
        "z": "11eedb1e.d0a385",
        "attributeId": "13",
        "maxAge": 1,
        "depth": 1,
        "connector": "5f367074.3d967",
        "name": "",
        "justValue": true,
        "multipleRequest": true,
        "metaDataInject": false,
        "showStatusActivities": false,
        "showErrors": false,
        "x": 510,
        "y": 240,
        "wires": [
            [
                "94c2f304.e0b21",
                "2ce4327a.d31d6e",
                "b21ba048.5b8b3",
                "7887ede7.81faf4"
            ]
        ]
    },
    {
        "id": "94c2f304.e0b21",
        "type": "debug",
        "z": "11eedb1e.d0a385",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "diagnostics",
        "x": 720,
        "y": 340,
        "wires": []
    },
    {
        "id": "2ce4327a.d31d6e",
        "type": "debug",
        "z": "11eedb1e.d0a385",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "payload",
        "x": 710,
        "y": 380,
        "wires": []
    },
    {
        "id": "b21ba048.5b8b3",
        "type": "debug",
        "z": "11eedb1e.d0a385",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "true",
        "x": 690,
        "y": 420,
        "wires": []
    },
    {
        "id": "7887ede7.81faf4",
        "type": "OPCUA-IIoT-Response",
        "z": "11eedb1e.d0a385",
        "name": "",
        "x": 720,
        "y": 240,
        "wires": [
            [
                "427a2efe.52c23",
                "66b5e0b6.66877"
            ]
        ]
    },
    {
        "id": "427a2efe.52c23",
        "type": "debug",
        "z": "11eedb1e.d0a385",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 950,
        "y": 240,
        "wires": []
    },
    {
        "id": "45e382f7.e5e44c",
        "type": "OPCUA-IIoT-Response",
        "z": "11eedb1e.d0a385",
        "name": "",
        "x": 440,
        "y": 180,
        "wires": [
            [
                "4f788487.68672c",
                "83d22514.c58998"
            ]
        ]
    },
    {
        "id": "4f788487.68672c",
        "type": "debug",
        "z": "11eedb1e.d0a385",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 630,
        "y": 180,
        "wires": []
    },
    {
        "id": "66b5e0b6.66877",
        "type": "debug",
        "z": "11eedb1e.d0a385",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "true",
        "x": 930,
        "y": 280,
        "wires": []
    },
    {
        "id": "83d22514.c58998",
        "type": "debug",
        "z": "11eedb1e.d0a385",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "true",
        "x": 610,
        "y": 140,
        "wires": []
    },
    {
        "id": "5f367074.3d967",
        "type": "OPCUA-IIoT-Connector",
        "z": "",
        "endpoint": "opc.tcp://localhost:55388/",
        "keepSessionAlive": false,
        "loginEnabled": true,
        "securityPolicy": "None",
        "securityMode": "NONE",
        "name": "SERVER ONE",
        "showStatusActivities": false,
        "showErrors": false
    }
]
biancode

Flow Info

created 1 month ago

Node Types

Core
  • debug (x10)
Other
  • OPCUA-IIoT-Connector (x1)
  • OPCUA-IIoT-Inject (x1)
  • OPCUA-IIoT-Read (x2)
  • OPCUA-IIoT-Response (x2)
  • OPCUA-IIoT-Server (x1)
  • tab (x1)

Tags

  • opcua
  • opc
  • ua
  • iot
  • iiot
  • information
  • model
  • rami4.0
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option