Login  •  Register

Alarm for a Variable

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

Alarm for a Variable

Postby Frank83 » 22 Dec 2018, 12:06

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.
Posts: 1
Joined: 22 Dec 2018, 09:38

Re: Alarm for a Variable

Postby Support Team » 18 Jan 2019, 07:40


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
User avatar
Support Team
Hero Member
Hero Member
Posts: 2407
Joined: 18 Mar 2011, 15:09

Return to .NET based OPC UA SDK

Who is online

Users browsing this forum: No registered users and 0 guests