Want to set Server ServiceLevel, RedundancySupport, and Serv

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

Moderator: uasdknet

Post Reply
miyamae
Jr. Member
Jr. Member
Posts: 2
Joined: 12 Feb 2020, 11:29

Want to set Server ServiceLevel, RedundancySupport, and Serv

Post by miyamae »

Hi there,

I want to create a redundant .NET based OPC UA server in non-transparent mode.
I want to allow OPC UA clients to get information about server redundancy.

How do I set values ​​for Server.ServiceLevel, Server.ServerRedundancy.RedundanSupport, and ServerUriArray?

Is there an API? Can it be set with the configuration XML?

Thanks in advance.

Colifari
Jr. Member
Jr. Member
Posts: 1
Joined: 13 Mar 2021, 14:04

Re: Want to set Server ServiceLevel, RedundancySupport, and Serv

Post by Colifari »

Hello, did you get any answers for this question?
I able to set ServerUriArray in that way, but not RedundancySupport nor ServiceLevel

Code: Select all

var redServersUri = CoreNodeManager.FindInMemoryNode(new NodeId(11314, 0)) as VariableNode;
redServersUri.Value = new string[] { "opc.tcp://srv1:51210", "opc.tcp://srv2:51210" };

cditrani
Jr. Member
Jr. Member
Posts: 1
Joined: 23 Apr 2021, 15:55

Re: Want to set Server ServiceLevel, RedundancySupport, and Serv

Post by cditrani »

From UA support (this works for me):

the sdk doesn´t provide a method to set the service level. Simply use the internal client and write the value to the node.

NodeId serviceLevelNodeId = UnifiedAutomation.UaBase.VariableIds.Server_ServiceLevel;

Variant value = new Variant((byte)5);

var status = Server.InternalClient.WriteAttribute(Server.DefaultRequestContext, serviceLevelNodeId, Attributes.Value, value);

Post Reply