【发布时间】:2021-12-17 05:46:20
【问题描述】:
我正在使用 Eclipse Milo 0.6.3 和 KepServerEx 6。找到与服务器的连接。
Here the server with all groups and tags
我的目标是在 Java 客户端中获取标签值并处理它们;
如果我这样做:
client.getAddressSpace().getObjectNode(new NodeId(2,"Codesys.CA1.Application.GVL_OPC_Vars.MDD_a_bArrB1000[x]")).browse()
我得到List<ReferenceDescription> referenceDescriptions 的列表(2000 个变量)
但是当我尝试获取单个标签时出现错误:
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();
异常跟踪:
status=Bad_NodeIdUnknown, description=The node id refers to a node that does not exist in the server address space.
在 PLC 中MDD_a_bArrB0000, MDD_a_bArrB1000, MDD_a_bArrB3000, MDD_a_bArrB4000 是数组。
如果有人可以在这方面帮助我。
【问题讨论】:
标签: java eclipse opc-ua milo kepserverex