Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reconnection with PLC #31

Open
vijaymaddi opened this issue Nov 20, 2019 · 0 comments
Open

reconnection with PLC #31

vijaymaddi opened this issue Nov 20, 2019 · 0 comments

Comments

@vijaymaddi
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant