-
Notifications
You must be signed in to change notification settings - Fork 72
Description
Hi,
I am using the tcp(etherneIp) connection with plc at the start of the initialization, but if the plc is stopped then we are getting the exception as
java.util.concurrent.ExecutionException: java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.PendingFuture.get(PendingFuture.java:202)[:1.8.0_151]
at etherip.protocol.TcpConnection.write(TcpConnection.java:70)[EthernetIp-0.0.1-SNAPSHOT.jar:]
at etherip.protocol.Connection.execute(Connection.java:120)[EthernetIp-0.0.1-SNAPSHOT.jar:]
at etherip.EtherNetIP.executeMultiMessages(EtherNetIP.java:509)[EthernetIp-0.0.1-SNAPSHOT.jar:]
at etherip.EtherNetIP.sendMultiMessages(EtherNetIP.java:491)[EthernetIp-0.0.1-SNAPSHOT.jar:]
at etherip.EtherNetIP.readTags(EtherNetIP.java:449)[EthernetIp-0.0.1-SNAPSHOT.jar:]
at etherip.EtherNetIP.readTags(EtherNetIP.java:411)[EthernetIp-0.0.1-SNAPSHOT.jar:]
So , I implemented the reconncetion with TCP, if i will get the above exception message, but after few times tried to connecting to PLC, still the PLC is not up then i got the exception related to the Exceutor threads.
Please help me for reconnection of PLC, if it is down.