We are trying to use plc4x
(plc4j-driver-s7
, version 0.7.0) to query data from a Siemens S7 PLC.
Here is a very simple example. When I run this it indefinitely hangs when executing the query.
String field = "%DB500.DBX4.0:BOOL";
connection
.readRequestBuilder()
.addItem("value-1", field)
.build()
.execute()
.get();
I'm not 100% sure if the address is correct. Can I assume it would throw an error in case of unknown address? Or would it also just hang? Any tips how to trace this are highly appreciated.
Thanks a lot!
Thanks for reporting this issue, indeed we managed to implement a fix for your problem. Please update to version 0.8.0-SNAPSHOT (or use the 0.8.0 version as soon as that's released ... which is going to be soon)