UNPKG

@opcua/for-node-red

Version:

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

394 lines 10.6 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" ], "x": 194, "y": 299, "w": 392, "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": [ "ed3618c3cbde4434", "0f3f55e5ade17a71", "873689bcfaf4cd1c", "862669554266d21c", "ae44316b28c1977b", "9848b2b87c07857a" ], "x": 194, "y": 19, "w": 692, "h": 262 }, { "id": "ed3618c3cbde4434", "type": "OpcUa-Client2-Monitor", "z": "4d0662110a70dfcb", "g": "55bc07480aecf6e0", "inputs": 0, "output": 4, "name": "Monitor TotalMix", "endpoint": "c22bb208bf9b2236", "subscription": "s0", "startImmediately": true, "nodeId": "/di:DeviceSet/own:CoffeeMachineA.cke:Parameters.cke:TotalMix", "samplingInterval": 1000, "discardOldest": true, "queueSize": 10, "x": 500, "y": 120, "wires": [ [ "873689bcfaf4cd1c" ] ] }, { "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": 340, "wires": [ [], [] ] }, { "id": "a85a34ab27d500da", "type": "OpcUa-Client2-Call", "z": "4d0662110a70dfcb", "g": "7bf406833c0a55cd", "inputs": 1, "output": 4, "name": "MakeCoffee", "endpoint": "c22bb208bf9b2236", "methodId": "/di:DeviceSet/own:CoffeeMachineA.di:MethodSet.ns3:Start", "objectId": "/di:DeviceSet/own:CoffeeMachineA", "x": 490, "y": 400, "wires": [ [], [] ] }, { "id": "f25106cd2f3aaeab", "type": "inject", "z": "4d0662110a70dfcb", "g": "7bf406833c0a55cd", "name": "Americano", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"CoffeeType\":\"Americano\"}", "payloadType": "json", "x": 300, "y": 380, "wires": [ [ "a85a34ab27d500da" ] ] }, { "id": "6711bf218b4c99f7", "type": "inject", "z": "4d0662110a70dfcb", "g": "7bf406833c0a55cd", "name": "Mocha", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"CoffeeType\": \"Mocha\"}", "payloadType": "json", "x": 310, "y": 420, "wires": [ [ "a85a34ab27d500da" ] ] }, { "id": "d0a02fbadf14facf", "type": "inject", "z": "4d0662110a70dfcb", "g": "7bf406833c0a55cd", "name": "FillTank", "props": [], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 310, "y": 340, "wires": [ [ "da5dfe5add0d7eae" ] ] }, { "id": "0f3f55e5ade17a71", "type": "OpcUa-Client2-Monitor", "z": "4d0662110a70dfcb", "g": "55bc07480aecf6e0", "inputs": 0, "output": 4, "name": "WaterTank Level", "endpoint": "c22bb208bf9b2236", "subscription": "s0", "startImmediately": true, "nodeId": "/di:DeviceSet/own:CoffeeMachineA.cke:Parameters.ns3:WaterTankLevel", "samplingInterval": 1000, "discardOldest": true, "queueSize": 10, "x": 500, "y": 180, "wires": [ [ "873689bcfaf4cd1c" ] ] }, { "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": 780, "y": 160, "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": "ae44316b28c1977b", "type": "OpcUa-Client2-Monitor", "z": "4d0662110a70dfcb", "g": "55bc07480aecf6e0", "inputs": 0, "output": 4, "name": "ServerCoffeeCount", "endpoint": "c22bb208bf9b2236", "subscription": "s0", "startImmediately": true, "nodeId": "/di:DeviceSet/own:CoffeeMachineA.cke:Parameters.ns3:ServedCoffeeCount", "samplingInterval": 1000, "discardOldest": true, "queueSize": 10, "x": 510, "y": 240, "wires": [ [ "873689bcfaf4cd1c" ] ] }, { "id": "9848b2b87c07857a", "type": "inject", "z": "4d0662110a70dfcb", "g": "55bc07480aecf6e0", "name": "", "props": [], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 290, "y": 60, "wires": [ [ "862669554266d21c" ] ] }, { "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" } ] } ]