[ { "id": "76b923c1b7aff0a2", "type": "tab", "label": "OPC UA Demo", "disabled": false, "info": "", "env": [] }, { "id": "e27a992f32a37337", "type": "inject", "z": "76b923c1b7aff0a2", "name": "", "props": [ { "p": "topic", "vt": "str" } ], "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "ns=2;s=plc/app/Application/sym/GVL/plc_int", "x": 130, "y": 60, "wires": [ [ "548bf18c79d4da5e" ] ] }, { "id": "548bf18c79d4da5e", "type": "OpcUa-Client", "z": "76b923c1b7aff0a2", "endpoint": "da0ddd4323f97b07", "action": "read", "deadbandtype": "a", "deadbandvalue": 1, "time": 10, "timeUnit": "s", "certificate": "n", "localfile": "", "localkeyfile": "", "securitymode": "None", "securitypolicy": "None", "folderName4PKI": "", "name": "opc_ua_read_plc_int", "x": 400, "y": 60, "wires": [ [ "9708ce1a9711bf09" ] ] }, { "id": "9708ce1a9711bf09", "type": "ui_gauge", "z": "76b923c1b7aff0a2", "name": "dl_opc_ua_read_plc_int", "group": "6a3cda69.03d5b4", "order": 1, "width": 0, "height": 0, "gtype": "gage", "title": "gauge", "label": "units", "format": "{{value}}", "min": 0, "max": "1000", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "", "seg2": "", "className": "", "x": 690, "y": 60, "wires": [] }, { "id": "6b4ae1304a84c561", "type": "ui_button", "z": "76b923c1b7aff0a2", "name": "dash_opc_ua_button", "group": "6a3cda69.03d5b4", "order": 3, "width": 0, "height": 0, "passthru": false, "label": "button", "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "payload": "true", "payloadType": "bool", "topic": "topic", "topicType": "msg", "x": 160, "y": 220, "wires": [ [ "fbd04a1811f3d6aa" ] ] }, { "id": "23c8e99f589c0af9", "type": "OpcUa-Client", "z": "76b923c1b7aff0a2", "endpoint": "da0ddd4323f97b07", "action": "write", "deadbandtype": "a", "deadbandvalue": 1, "time": 10, "timeUnit": "s", "certificate": "n", "localfile": "", "localkeyfile": "", "securitymode": "None", "securitypolicy": "None", "folderName4PKI": "", "name": "opc_ua_write_plc_int", "x": 660, "y": 200, "wires": [ [] ] }, { "id": "97ea8405b11226c5", "type": "debug", "z": "76b923c1b7aff0a2", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 610, "y": 260, "wires": [] }, { "id": "5e75475dd3492190", "type": "function", "z": "76b923c1b7aff0a2", "name": "", "func": "msg.payload = true;\nmsg.topic = \"ns = 2;s = plc/app/Application/sym/GVL/plc_bool; datatype = bool8\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 400, "y": 180, "wires": [ [] ] }, { "id": "fbd04a1811f3d6aa", "type": "OpcUa-Item", "z": "76b923c1b7aff0a2", "item": "ns=2; s=plc/app/Application/sym/GVL/plc_int", "datatype": "Int16", "value": "20", "name": "test_write", "x": 400, "y": 220, "wires": [ [ "97ea8405b11226c5", "23c8e99f589c0af9" ] ] }, { "id": "8ec84b6354ced38c", "type": "OpcUa-Client", "z": "76b923c1b7aff0a2", "endpoint": "da0ddd4323f97b07", "action": "read", "deadbandtype": "a", "deadbandvalue": 1, "time": 10, "timeUnit": "s", "certificate": "n", "localfile": "", "localkeyfile": "", "securitymode": "None", "securitypolicy": "None", "folderName4PKI": "", "name": "opc_ua_read_plc_int", "x": 400, "y": 120, "wires": [ [ "a790c1d0b6e6e68b" ] ] }, { "id": "7d1bf6ca661b7600", "type": "inject", "z": "76b923c1b7aff0a2", "name": "", "props": [ { "p": "topic", "vt": "str" } ], "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "ns=2;s=plc/app/Application/sym/GVL/plc_bool", "x": 130, "y": 120, "wires": [ [ "8ec84b6354ced38c" ] ] }, { "id": "a790c1d0b6e6e68b", "type": "ui_text", "z": "76b923c1b7aff0a2", "group": "6a3cda69.03d5b4", "order": 3, "width": 0, "height": 0, "name": "bool_display", "label": "text", "format": "{{value}}", "layout": "row-spread", "className": "", "x": 650, "y": 120, "wires": [] }, { "id": "da0ddd4323f97b07", "type": "OpcUa-Endpoint", "endpoint": "opc.tcp://127.0.0.1:4840", "secpol": "Basic256Sha256", "secmode": "SignAndEncrypt", "none": false, "login": true, "usercert": false, "usercertificate": "", "userprivatekey": "" }, { "id": "6a3cda69.03d5b4", "type": "ui_group", "name": "OPC UA", "tab": "ccb78634.40d448", "order": 1, "disp": true, "width": 16, "collapse": false, "className": "" }, { "id": "ccb78634.40d448", "type": "ui_tab", "name": "OPC UA", "icon": "timeline", "order": 2, "disabled": false, "hidden": false } ]