Topic RSS8:16, EET
March 27, 2014
Offlinehi,
i am testing to connect with java to a beckhoff plc over the beckhoff opc ua/da server.
i connected to the server and i created one node. now i want to read the value. but i got errors:
error1:
com.prosysopc.ua.StatusException: (0x80000000) “” StatusCode= (0x80000000) “”
at com.prosysopc.ua.client.UaClient.a(Unknown Source)
at com.prosysopc.ua.client.UAClient.readAttribute(Unknown Source)
at com.prosysopc.ua.client.UAClient.readValue(Unknown Source)
at ClassName.main(ClassName.java:88)
error2:
com.prosysopc.ua.StatusException: Bad_DeviceFailure (0x808B0000) “There has been a failure in the device/data source that generates the value that has affected the value.”
at com.prosysopc.ua.client.UaClient.a(Unknown Source)
at com.prosysopc.ua.client.UAClient.readAttribute(Unknown Source)
at ClassName.main(ClassName.java:88)
My Code:
…
UaClient client;
String serverUri = “opc.tcp://localhost:4840”;
try
{
NodeId node = new NodeId(4, “GVL_Write.testBool”);
client = new UaClient(serverUri);
client.setSecurityMode(SecurityMode.NONE);
client.connect();
DataValue valueBrowseName = client.readAttribute(node, Attributes.BrowseName); // works
DataValue valueDataType = client.readAttribute(node, Attributes.DataType); // works
DataValue value1 = client.readValue(node); // error2
DataValue value2 = client.readAttribute(node, Attributes.Value); // error1
…
can anyone help me?
thx!
9:20, EET
December 21, 2011
Offline9:51, EET
March 27, 2014
Offlinethx for your reply.
i checked to connect to the opc server. i can connect to it and can see the nodes.
but in an opc ua client i get an error: the values are not readable.
in an opc da client i can read and write the values.
i think, there is an configuration error at the beckhoff plc site…
i try to find the issue!
1 Guest(s)

Log In
Register