Alarm for a Variable

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
Frank83
Jr. Member
Jr. Member
Posts: 1
Joined: 22 Dec 2018, 09:38

Alarm for a Variable

Post by Frank83 »

Hello Community,
I've been working with OPC UA for a few weeks.
By methods I get an alarm set. Now I want to have a variable monitored on the server.
That means if their value changes I would like to trigger an alarm.
In the MyCorpNsClasses.cs I find the public properties and about the setter I also notice if the value changes.
But how do I get the information as an alarm? Does anyone have a piece of code as an example for me please? I work with .Net SDK.

Greeting Frank

PS: Sorry for bad engish, I´m not an engish-nativespeaker.

User avatar
Support Team
Hero Member
Hero Member
Posts: 3070
Joined: 18 Mar 2011, 15:09

Re: Alarm for a Variable

Post by Support Team »

Hello,

if a value of a Variable changes, clients will receive a DataChangeNotification if a MonitoredItem is created for the Variable. It is not recommended to send an OPC UA alarm in addition.
If you are interested in OPC UA alarms, then have a look at server getting started, lesson6: http://documentation.unified-automation ... ess06.html
Best regards
Unified Automation Support Team

Post Reply