How to differentiat value of DataChange from Subscription

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

Moderator: uasdknet

Post Reply
xfeng5
Full Member
Full Member
Posts: 6
Joined: 27 May 2016, 10:18

How to differentiat value of DataChange from Subscription

Post by xfeng5 »

Hi Experts,

As I know OPC server will send the default value of modle to client, but I want to know is how I can thdifferentiat the value is default value from the Subscription.DataChanged event, like for int type the default value is 0, string is empty.

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

Re: How to differentiat value of DataChange from Subscriptio

Post by Support Team »

Hi,

a client cannot differentiate between a default value and a "real world" value. The server should make sure that correct values are sent.
Do you use LinkModelToNode at server side? If yes, you have to set correct values before calling LinkModelToNode.
Best regards
Unified Automation Support Team

xfeng5
Full Member
Full Member
Posts: 6
Joined: 27 May 2016, 10:18

Re: How to differentiat value of DataChange from Subscriptio

Post by xfeng5 »

Thank a lot, I'll have a try.

Post Reply