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.
Want to set Server ServiceLevel, RedundancySupport, and Serv
Moderator: uasdknet
-
- Jr. Member
- Posts: 4
- Joined: 12 Feb 2020, 11:29
-
- Jr. Member
- Posts: 1
- Joined: 13 Mar 2021, 14:04
Re: Want to set Server ServiceLevel, RedundancySupport, and Serv
Hello, did you get any answers for this question?
I able to set ServerUriArray in that way, but not RedundancySupport nor ServiceLevel
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" };
-
- Jr. Member
- Posts: 1
- Joined: 23 Apr 2021, 15:55
Re: Want to set Server ServiceLevel, RedundancySupport, and Serv
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);
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);