A Node-RED nodes to communicate or serve via OPC UA.
based on node-opcua
Run command on Node-RED installation directory.
npm install node-red-contrib-opcua
or run command for global installation.
npm install -g node-red-contrib-opcua
Use OpcUa-Item to define variables. Use OpcUa-Client to read / write / subscribe / browse OPC UA server.
See some flows under Examples. Updated server sub-flow example OPCUA-TEST-NODES.json look commands: addFolder, AddVariable, setFolder.
Here you got some ready to use examples. You can use the Import in Node-RED in the right upper corner menu.
Examples are available for Schneider IGSS and Prosys Simulation Server as Node-RED flow. Search for OPC UA on: http://flows.nodered.org/
Property | Function/Value | Notes |
---|---|---|
payload | set interval for subscription or monitorItem | |
interval | Subscription interval | |
queueSize | Subscription queue size | |
deadbandType | "a" abs. or "p" percent | Action monitor |
deadbandValue | integer for deadband | Action monitor |
topic | NodeId and DataType in format ns=3;s=Counter;datatype=Int32 | |
action | subscribe | nodeId / variable |
unsubscribe | nodeId / variable | |
deletesubscription | subscription | |
browse | nodeId / folder | |
info | nodeId | |
read | nodeId | |
write | nodeId & value | |
monitor | deadbandtype abs/pro | |
events | nodeId | |
readmultiple | [nodeId + datatype] | |
writemultiple | [nodeId + datatype + value] |
readmultiple to readmultiple items writemultiple to write multiple items clearitems to empty multiple items (readmultiple / writemultiple)
Property | Function/Value | Notes |
---|---|---|
payload | dataValue.value.value | |
statusCode | OPC UA StatusCode | |
sourceTimestamp | Source timestamp | |
serverTimestamp | ServerΒ΄s timestamp |
- needed from users (add links to examples folder)
- since 2015 Mika Karaila
- since 2016 Klaus Landsdorf
karma start opcua.conf.js --log-level debug --single-run
Nodes | Function | Done |
---|---|---|
All | ||
Project structure | β | |
Async calls | π | |
UnitTesting | π | |
Documentation | π | |
Item | β | |
Browser | ||
Browse | β | |
Simple UI interface | π | |
Client | ||
Read | β | |
Read Multiple | β | |
Write | β | |
Write Multiple | β | |
Subscribe | β | |
Unsubscribe | β | |
DeleteSubscription | β | |
Info | β | |
Browse | β | |
AE | π | |
reconnect on error | π | |
Server | ||
Commands | ||
Restart | β | |
Add Folder | β | |
Set Folder | β | |
Add Variable | β | |
Add Object | π | |
Add Method | π | |
Add Equipment | π | |
Add PhysicalAssets | π | |
Delete by NodeId | β | |
Examples | ||
Methods | ||
Structures | ||
Variables | ||
Objects | ||
AE | ||
Alarm and Events | ||
Subscribe | β | |