[
    {
        "id": "6cf070a4.9ab8e8",
        "type": "tab",
        "label": "OPC-UA Server/Client",
        "disabled": false,
        "info": ""
    },
    {
        "id": "f52784.8dc1408",
        "type": "OPCUA-IIoT-Server-ASO",
        "z": "6cf070a4.9ab8e8",
        "nodeId": "ns=1;s=Turbine",
        "browsename": "Turbine",
        "displayname": "Turbine",
        "objecttype": "FolderType",
        "datatype": "",
        "value": "",
        "referenceNodeId": "ns=0;i=85",
        "referencetype": "Organizes",
        "name": "Folder Turbine",
        "x": 380,
        "y": 60,
        "wires": [
            [
                "fcc756b4.b803b8"
            ]
        ]
    },
    {
        "id": "421d3885.725f1",
        "type": "OPCUA-IIoT-Inject",
        "z": "6cf070a4.9ab8e8",
        "injectType": "inject",
        "payload": "",
        "payloadType": "date",
        "topic": "",
        "repeat": "",
        "crontab": "",
        "once": true,
        "startDelay": "60",
        "name": "Set Folder",
        "addressSpaceItems": [],
        "x": 150,
        "y": 60,
        "wires": [
            [
                "f52784.8dc1408"
            ]
        ]
    },
    {
        "id": "6f5cedb4.39b1f4",
        "type": "OPCUA-IIoT-Server-ASO",
        "z": "6cf070a4.9ab8e8",
        "nodeId": "ns=1;s=Speed",
        "browsename": "Speed",
        "displayname": "Speed u/min",
        "objecttype": "BaseDataVariableType",
        "datatype": "Int16",
        "value": "",
        "referenceNodeId": "ns=1;s=Turbine",
        "referencetype": "Organizes",
        "name": "Speed",
        "x": 350,
        "y": 100,
        "wires": [
            [
                "fcc756b4.b803b8"
            ]
        ]
    },
    {
        "id": "c5dc0847.ca763",
        "type": "OPCUA-IIoT-Inject",
        "z": "6cf070a4.9ab8e8",
        "injectType": "inject",
        "payload": "1",
        "payloadType": "num",
        "topic": "",
        "repeat": "",
        "crontab": "",
        "once": true,
        "startDelay": "65",
        "name": "Init Speed",
        "addressSpaceItems": [],
        "x": 150,
        "y": 100,
        "wires": [
            [
                "6f5cedb4.39b1f4"
            ]
        ]
    },
    {
        "id": "812df22e.19a148",
        "type": "OPCUA-IIoT-Server-ASO",
        "z": "6cf070a4.9ab8e8",
        "nodeId": "ns=1;s=Temperature",
        "browsename": "Temperature",
        "displayname": "Temperature °C",
        "objecttype": "BaseDataVariableType",
        "datatype": "Int32",
        "value": "",
        "referenceNodeId": "ns=1;s=Turbine",
        "referencetype": "Organizes",
        "name": "Temperature",
        "x": 370,
        "y": 140,
        "wires": [
            [
                "fcc756b4.b803b8"
            ]
        ]
    },
    {
        "id": "9d93c628.896e88",
        "type": "OPCUA-IIoT-Inject",
        "z": "6cf070a4.9ab8e8",
        "injectType": "inject",
        "payload": "-1",
        "payloadType": "num",
        "topic": "",
        "repeat": "",
        "crontab": "",
        "once": true,
        "startDelay": "65",
        "name": "Init Temperature",
        "addressSpaceItems": [],
        "x": 170,
        "y": 140,
        "wires": [
            [
                "812df22e.19a148"
            ]
        ]
    },
    {
        "id": "a7865e2a.3f7cb8",
        "type": "comment",
        "z": "6cf070a4.9ab8e8",
        "name": "Setup and running the OPC-UA Server",
        "info": "",
        "x": 230,
        "y": 20,
        "wires": []
    },
    {
        "id": "fcc756b4.b803b8",
        "type": "function",
        "z": "6cf070a4.9ab8e8",
        "name": "thru",
        "func": "\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 570,
        "y": 100,
        "wires": [
            [
                "694725e9.2c1384"
            ]
        ]
    },
    {
        "id": "694725e9.2c1384",
        "type": "OPCUA-IIoT-Server",
        "z": "6cf070a4.9ab8e8",
        "port": "53880",
        "endpoint": "",
        "acceptExternalCommands": true,
        "maxAllowedSessionNumber": "",
        "maxConnectionsPerEndpoint": "",
        "maxAllowedSubscriptionNumber": "",
        "alternateHostname": "",
        "name": "",
        "showStatusActivities": false,
        "showErrors": false,
        "asoDemo": false,
        "allowAnonymous": true,
        "isAuditing": false,
        "serverDiscovery": true,
        "users": [],
        "xmlsets": [],
        "publicCertificateFile": "",
        "privateCertificateFile": "",
        "maxNodesPerRead": "",
        "maxNodesPerBrowse": "",
        "x": 730,
        "y": 100,
        "wires": [
            [
                "d0966437.ab1468"
            ]
        ]
    },
    {
        "id": "d0966437.ab1468",
        "type": "debug",
        "z": "6cf070a4.9ab8e8",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 900,
        "y": 100,
        "wires": []
    },
    {
        "id": "94dee2fd.77b6c8",
        "type": "s7 in",
        "z": "6cf070a4.9ab8e8",
        "endpoint": "84d95fd4.23782",
        "mode": "all",
        "variable": "",
        "diff": true,
        "name": "",
        "x": 160,
        "y": 320,
        "wires": [
            [
                "2d6846cf.bcf0ca"
            ]
        ]
    },
    {
        "id": "2d6846cf.bcf0ca",
        "type": "function",
        "z": "6cf070a4.9ab8e8",
        "name": "Speed",
        "func": "msg.topic = \"\"\nmsg.nodetype =\"inject\"\nmsg.injectType = \"write\"\nmsg.addressSpaceItems = [\n    {\"name\":\"\",\"nodeId\":\"ns=1;s=Speed\",\"datatypeName\":\"Int16\"}\n]\n\nmsg.valuesToWrite = [\n    msg.payload.Speed\n]\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 370,
        "y": 320,
        "wires": [
            [
                "c0f2a21a.7b5848"
            ]
        ]
    },
    {
        "id": "1810e789.45931",
        "type": "ui_gauge",
        "z": "6cf070a4.9ab8e8",
        "name": "",
        "group": "37fdb1b6.d2e54e",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Speed",
        "label": "1/min",
        "format": "{{value}}",
        "min": 0,
        "max": "1100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1070,
        "y": 420,
        "wires": []
    },
    {
        "id": "462da9fc.a55358",
        "type": "ui_slider",
        "z": "6cf070a4.9ab8e8",
        "name": "Set Cooling Temp",
        "label": "Cooling Temperature",
        "group": "37fdb1b6.d2e54e",
        "order": 0,
        "width": 0,
        "height": 0,
        "passthru": true,
        "topic": "",
        "min": 0,
        "max": "500",
        "step": 1,
        "x": 150,
        "y": 260,
        "wires": [
            [
                "487ba0eb.c80398"
            ]
        ]
    },
    {
        "id": "487ba0eb.c80398",
        "type": "function",
        "z": "6cf070a4.9ab8e8",
        "name": "Temperature",
        "func": "function getBool(input){\nif (input == \"1\") {\n    return true\n} else {\n    return false;\n}    \n}\n\nmsg.topic = \"\"\nmsg.nodetype =\"inject\"\nmsg.injectType = \"write\"\nmsg.addressSpaceItems = [\n    {\"name\":\"\",\"nodeId\":\"ns=1;s=Temperature\",\"datatypeName\":\"Int32\"}\n]\n\nmsg.valuesToWrite = [\n    msg.payload\n]\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 390,
        "y": 260,
        "wires": [
            [
                "c0f2a21a.7b5848"
            ]
        ]
    },
    {
        "id": "c0f2a21a.7b5848",
        "type": "OPCUA-IIoT-Write",
        "z": "6cf070a4.9ab8e8",
        "connector": "6be12b9c.132814",
        "name": "Write to OPC-UA Server",
        "justValue": false,
        "showStatusActivities": false,
        "showErrors": true,
        "x": 650,
        "y": 260,
        "wires": [
            [
                "8b4d4dba.a879f"
            ]
        ]
    },
    {
        "id": "8b4d4dba.a879f",
        "type": "OPCUA-IIoT-Response",
        "z": "6cf070a4.9ab8e8",
        "name": "",
        "showStatusActivities": false,
        "showErrors": false,
        "x": 870,
        "y": 260,
        "wires": [
            [
                "b3f36f49.4e5658"
            ]
        ]
    },
    {
        "id": "b3f36f49.4e5658",
        "type": "debug",
        "z": "6cf070a4.9ab8e8",
        "name": "",
        "active": true,
        "console": "false",
        "complete": "false",
        "x": 1050,
        "y": 260,
        "wires": []
    },
    {
        "id": "ce584940.03c9f",
        "type": "OPCUA-IIoT-Listener",
        "z": "6cf070a4.9ab8e8",
        "connector": "6be12b9c.132814",
        "action": "subscribe",
        "queueSize": 10,
        "name": "",
        "justValue": true,
        "showStatusActivities": false,
        "showErrors": false,
        "x": 380,
        "y": 420,
        "wires": [
            [
                "aeb52f3.90e93d",
                "7c903b70.e42d5c"
            ]
        ]
    },
    {
        "id": "aeb52f3.90e93d",
        "type": "OPCUA-IIoT-Result-Filter",
        "z": "6cf070a4.9ab8e8",
        "nodeId": "ns=1;s=Speed",
        "datatype": "Int16",
        "fixedValue": false,
        "fixPoint": 2,
        "withPrecision": false,
        "precision": 2,
        "entry": 1,
        "justValue": false,
        "withValueCheck": false,
        "minvalue": "",
        "maxvalue": "",
        "defaultvalue": "",
        "topic": "",
        "name": "",
        "showErrors": false,
        "x": 680,
        "y": 420,
        "wires": [
            [
                "1810e789.45931"
            ]
        ]
    },
    {
        "id": "dcd9e7f9.64c2b8",
        "type": "OPCUA-IIoT-Inject",
        "z": "6cf070a4.9ab8e8",
        "injectType": "listen",
        "payload": "1",
        "payloadType": "num",
        "topic": "",
        "repeat": "",
        "crontab": "",
        "once": true,
        "startDelay": "70",
        "name": "Start Listener",
        "addressSpaceItems": [
            {
                "name": "",
                "nodeId": "ns=1;s=Speed",
                "datatypeName": "Int16"
            },
            {
                "name": "",
                "nodeId": "ns=1;s=Temperature",
                "datatypeName": "Int32"
            }
        ],
        "x": 160,
        "y": 420,
        "wires": [
            [
                "ce584940.03c9f"
            ]
        ]
    },
    {
        "id": "c65e062.4b85af8",
        "type": "ui_gauge",
        "z": "6cf070a4.9ab8e8",
        "name": "",
        "group": "37fdb1b6.d2e54e",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Cooling Temperature",
        "label": "°C",
        "format": "{{value}}",
        "min": 0,
        "max": "1100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1020,
        "y": 500,
        "wires": []
    },
    {
        "id": "7c903b70.e42d5c",
        "type": "OPCUA-IIoT-Result-Filter",
        "z": "6cf070a4.9ab8e8",
        "nodeId": "ns=1;s=Temperature",
        "datatype": "Int16",
        "fixedValue": false,
        "fixPoint": 2,
        "withPrecision": false,
        "precision": 2,
        "entry": 1,
        "justValue": false,
        "withValueCheck": false,
        "minvalue": "",
        "maxvalue": "",
        "defaultvalue": "",
        "topic": "",
        "name": "",
        "showErrors": false,
        "x": 700,
        "y": 500,
        "wires": [
            [
                "c65e062.4b85af8"
            ]
        ]
    },
    {
        "id": "72f0a3e7.b16034",
        "type": "comment",
        "z": "6cf070a4.9ab8e8",
        "name": "write the variables to the OPC-UA Server",
        "info": "",
        "x": 240,
        "y": 220,
        "wires": []
    },
    {
        "id": "f83a938f.213f58",
        "type": "comment",
        "z": "6cf070a4.9ab8e8",
        "name": "read the variables from the OPC-UA Server and display on dashboard",
        "info": "",
        "x": 330,
        "y": 380,
        "wires": []
    },
    {
        "id": "84d95fd4.23782",
        "type": "s7 endpoint",
        "z": "",
        "address": "192.168.0.110",
        "port": "102",
        "rack": "0",
        "slot": "1",
        "localtsaphi": "01",
        "localtsaplo": "00",
        "remotetsaphi": "01",
        "remotetsaplo": "00",
        "connmode": "rack-slot",
        "cycletime": "500",
        "timeout": "1500",
        "verbose": "default",
        "name": "",
        "vartable": [
            {
                "addr": "MW20",
                "name": "Speed"
            },
            {
                "addr": "MR22",
                "name": "Power"
            },
            {
                "addr": "MR30",
                "name": "Temperature"
            },
            {
                "addr": "M200.0",
                "name": "TriggerMessage"
            }
        ]
    },
    {
        "id": "37fdb1b6.d2e54e",
        "type": "ui_group",
        "z": "",
        "name": "Turbine",
        "tab": "5b36d5ef.c6d554",
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "6be12b9c.132814",
        "type": "OPCUA-IIoT-Connector",
        "z": "",
        "discoveryUrl": "",
        "endpoint": "opc.tcp://localhost:53880",
        "keepSessionAlive": true,
        "loginEnabled": false,
        "securityPolicy": "None",
        "securityMode": "NONE",
        "name": "local OPC-UA Server",
        "showErrors": true,
        "publicCertificateFile": "",
        "privateKeyFile": "",
        "defaultSecureTokenLifetime": "",
        "endpointMustExist": false,
        "autoSelectRightEndpoint": false,
        "strategyMaxRetry": "",
        "strategyInitialDelay": "",
        "strategyMaxDelay": "",
        "strategyRandomisationFactor": "",
        "requestedSessionTimeout": ""
    },
    {
        "id": "5b36d5ef.c6d554",
        "type": "ui_tab",
        "z": "",
        "name": "OPC UA S/C",
        "icon": "dashboard"
    }
]