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!