UNPKG

@opcua/for-node-red

Version:

The Node-RED node to communicate via OPC UA, powered NodeOPCUA and developed by Sterfive's team

400 lines (399 loc) 10.5 kB
[ { "id": "4d0662110a70dfcb", "type": "tab", "label": "Basic Coffee Machine Example", "disabled": false, "info": "", "env": [] }, { "id": "7bf406833c0a55cd", "type": "group", "z": "4d0662110a70dfcb", "name": "Actions - Method calls", "style": { "label": true }, "nodes": [ "da5dfe5add0d7eae", "a85a34ab27d500da", "f25106cd2f3aaeab", "6711bf218b4c99f7", "d0a02fbadf14facf", "d09a3c3bcbb6e277" ], "x": 194, "y": 379, "w": 712, "h": 162 }, { "id": "55bc07480aecf6e0", "type": "group", "z": "4d0662110a70dfcb", "style": { "stroke": "#999999", "stroke-opacity": "1", "fill": "none", "fill-opacity": "1", "label": true, "label-position": "nw", "color": "#a4a4a4" }, "nodes": [ "9848b2b87c07857a", "873689bcfaf4cd1c", "862669554266d21c", "eb8a9b1ff2e06695", "b25f2392751c9c28" ], "x": 194, "y": 19, "w": 852, "h": 162 }, { "id": "da5dfe5add0d7eae", "type": "OpcUa-Client2-Call", "z": "4d0662110a70dfcb", "g": "7bf406833c0a55cd", "inputs": 1, "output": 4, "name": "FillTank() ", "endpoint": "c22bb208bf9b2236", "methodId": "/di:DeviceSet/own:CoffeeMachineA.di:MethodSet.ns3:FillTank", "objectId": "/di:DeviceSet/own:CoffeeMachineA", "x": 480, "y": 420, "wires": [ [ "d09a3c3bcbb6e277" ], [] ] }, { "id": "a85a34ab27d500da", "type": "OpcUa-Client2-Call", "z": "4d0662110a70dfcb", "g": "7bf406833c0a55cd", "inputs": 1, "output": 4, "name": "MakeCoffee", "endpoint": "c22bb208bf9b2236", "methodId": "/2:DeviceSet/1:CoffeeMachineA.2:MethodSet.17:MakeCoffee", "objectId": "/di:DeviceSet/own:CoffeeMachineA", "x": 490, "y": 480, "wires": [ [ "d09a3c3bcbb6e277" ], [] ] }, { "id": "f25106cd2f3aaeab", "type": "inject", "z": "4d0662110a70dfcb", "g": "7bf406833c0a55cd", "name": "Americano", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"RecipeName\":\"Americano\"}", "payloadType": "json", "x": 300, "y": 460, "wires": [ [ "a85a34ab27d500da" ] ] }, { "id": "6711bf218b4c99f7", "type": "inject", "z": "4d0662110a70dfcb", "g": "7bf406833c0a55cd", "name": "Mocha", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"RecipeName\":\"Mocha\"}", "payloadType": "json", "x": 310, "y": 500, "wires": [ [ "a85a34ab27d500da" ] ] }, { "id": "d0a02fbadf14facf", "type": "inject", "z": "4d0662110a70dfcb", "g": "7bf406833c0a55cd", "name": "FillTank", "props": [], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 310, "y": 420, "wires": [ [ "da5dfe5add0d7eae" ] ] }, { "id": "9848b2b87c07857a", "type": "inject", "z": "4d0662110a70dfcb", "g": "55bc07480aecf6e0", "name": "", "props": [], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 290, "y": 60, "wires": [ [ "862669554266d21c", "eb8a9b1ff2e06695" ] ] }, { "id": "873689bcfaf4cd1c", "type": "debug", "z": "4d0662110a70dfcb", "g": "55bc07480aecf6e0", "name": "debug 1", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 940, "y": 60, "wires": [] }, { "id": "862669554266d21c", "type": "OpcUa-Client2-Monitor", "z": "4d0662110a70dfcb", "g": "55bc07480aecf6e0", "inputs": 1, "output": 4, "name": "ServerStatus.State", "endpoint": "c22bb208bf9b2236", "subscription": "s0", "startImmediately": false, "nodeId": "/Server.ServerStatus.State", "samplingInterval": "1001", "discardOldest": true, "queueSize": 10, "x": 510, "y": 60, "wires": [ [ "873689bcfaf4cd1c" ] ] }, { "id": "eb8a9b1ff2e06695", "type": "OpcUa-Client2-Explore", "z": "4d0662110a70dfcb", "g": "55bc07480aecf6e0", "inputs": 1, "output": 4, "name": "explore parameters", "endpoint": "c22bb208bf9b2236", "nodeId": "/di:DeviceSet/own:CoffeeMachineA.cke:Parameters", "outputType": "NodeId", "excludeEmpty": false, "followOrganizes": false, "x": 510, "y": 140, "wires": [ [ "b25f2392751c9c28" ] ] }, { "id": "b25f2392751c9c28", "type": "OpcUa-Client2-Monitor", "z": "4d0662110a70dfcb", "g": "55bc07480aecf6e0", "inputs": 1, "output": 2, "name": "Monitor", "endpoint": "c22bb208bf9b2236", "subscription": "s0", "startImmediately": false, "nodeId": "", "samplingInterval": 1000, "discardOldest": true, "queueSize": 10, "x": 710, "y": 140, "wires": [ [ "873689bcfaf4cd1c" ] ] }, { "id": "d09a3c3bcbb6e277", "type": "debug", "z": "4d0662110a70dfcb", "g": "7bf406833c0a55cd", "name": "debug 2", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 800, "y": 460, "wires": [] }, { "id": "c22bb208bf9b2236", "type": "OpcUa-Endpoint2", "name": "", "endpoint": "opc.tcp://opcuademo.sterfive.com:26541", "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": "100", "requestedMaxKeepAliveCount": "10", "requestedPublishingInterval": "1000", "maxNotificationsPerPublish": "0", "priority": "100" } } ], "namespaceAliases": [ { "namespaceUri": "http://opcfoundation.org/UA/", "alias": "ua" }, { "namespaceUri": "~urn:.*", "alias": "own" }, { "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": "cke" }, { "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" } ] }, { "id": "63bd3be08ff9f46e", "type": "global-config", "env": [], "modules": { "@opcua/for-node-red": "3.38.1" } } ]