I am using Eclipse Milo 0.6.3 and KepServerEx 6. The connection to the server is find.
Here the server with all groups and tags
My goal is to get tags value in the Java client and process them;
If I do:
client.getAddressSpace().getObjectNode(new NodeId(2,"Codesys.CA1.Application.GVL_OPC_Vars.MDD_a_bArrB1000[x]")).browse()
I get the list of List<ReferenceDescription> referenceDescriptions (2000 variables)
But when I try to get the single tag I got an error:
UaVariableNode node = client.getAddressSpace().getVariableNode(new NodeId(0, "Codesys.CA1.Application.GVL_OPC_Vars.MDD_a_bArrB1000[x].MDD_a_bArrB1000[1]")); DataValue value = node.readValue();
the Exception trace:
status=Bad_NodeIdUnknown, description=The node id refers to a node that does not exist in the server address space.
In the PLC MDD_a_bArrB0000, MDD_a_bArrB1000, MDD_a_bArrB3000, MDD_a_bArrB4000 are Arrays.
If someone can help me please in this.
The
NodeIdyou are constructing is certainly wrong. Namespace index 0 is reserved for use by the OPC Foundation.