mikakaraila / node-red-contrib-opcua

A Node-RED node to communicate OPC UA. Uses node-opcua library.
Other
208 stars 191 forks source link

Question: Support of OPC UA server events, conditions and alarms? #402

Closed svkers closed 1 year ago

svkers commented 2 years ago

How to implement and fire OPC UA server events, conditions and alarms? Are there any example flows available?

Any hints and links are welcome! Thanks!

mikakaraila commented 2 years ago

Look examples OPCUA-TEST-NODES.json

mikakaraila commented 2 years ago

Use this: image

Then you will get: image

svkers commented 2 years ago

Hmm, as far as I understand the above the flow, it subscribes to a UA server object for subscribing to events generated by the given OPC UA server endpoint, right?

I am looking for a flow to "generate and fire" UA events for a UA server running in NodeRed.

mikakaraila commented 2 years ago

Same way... event notifies normally server object.

svkers commented 2 years ago

Sorry, I am still struggling to get your example event flow successfully run. Maybe I miss something or have a wrong notion of OPC UA events from the view point of the server. How does the server generate the event? Is this done automatically by the server (probably right for some event type, e.g. LevelLimit, after successful installation of the event (?)), do I have to implement a OPC UA server method that triggers a event? How to do that? Again, I am sorry, I am lost with OPC UA events and kindly ask your for a more complete example. I am very grateful for your time and support!

mikakaraila commented 2 years ago

For the server node: 1) AddVariable 2) DiscreteAlarm 3) LimitAlarm

image

image

mikakaraila commented 2 years ago

Modify these values to generate new events: image

image

mikakaraila commented 1 year ago

Closed as solved long time ago.