Connection with modbus lost

Hello!

I’ve been having troubles with modbus connection. Ignition gets disconnected from the PLC. The connection is through modbus and the only way I have to restore the connection is restarting the Ignition service. This happens since I installed Ignition 7.3.

Here are the logs:

INFO   | jvm 3    | 2012/04/11 18:42:07 | WARN  [TCPClientChannel              ] [18:42:07,916]: Connection lost.
INFO   | jvm 3    | 2012/04/11 18:42:07 | java.net.SocketException: Connection reset
INFO   | jvm 3    | 2012/04/11 18:42:07 | 	at java.net.SocketInputStream.read(Unknown Source)
INFO   | jvm 3    | 2012/04/11 18:42:07 | 	at java.net.SocketInputStream.read(Unknown Source)
INFO   | jvm 3    | 2012/04/11 18:42:07 | 	at com.inductiveautomation.common.iosession.socket.AsyncSocketIOSession.run(AsyncSocketIOSession.java:92)
INFO   | jvm 3    | 2012/04/11 18:42:07 | 	at java.lang.Thread.run(Unknown Source)
INFO   | jvm 3    | 2012/04/11 18:42:07 | WARN  [TCPServerChannel              ] [18:42:07,916]: Connection lost due to IOException.
INFO   | jvm 3    | 2012/04/11 18:42:07 | java.net.SocketException: Connection reset
INFO   | jvm 3    | 2012/04/11 18:42:07 | 	at java.net.SocketInputStream.read(Unknown Source)
INFO   | jvm 3    | 2012/04/11 18:42:07 | 	at java.net.SocketInputStream.read(Unknown Source)
INFO   | jvm 3    | 2012/04/11 18:42:07 | 	at com.inductiveautomation.common.iosession.socket.AsyncSocketIOSession.run(AsyncSocketIOSession.java:92)
INFO   | jvm 3    | 2012/04/11 18:42:07 | 	at java.lang.Thread.run(Unknown Source)
INFO   | jvm 3    | 2012/04/11 18:42:08 | ERROR [WriteCall                     ] [18:42:08,604]: Call failed client-side with StatusCode: StatusCode[0x808A0000, Severity=Bad, Subcode=Bad_NotConnected]. Cannot send a message while channel is in state: CLOSED
INFO   | jvm 3    | 2012/04/11 18:42:08 | ERROR [Provider[default]             ] [18:42:08,604]: [[default]PLC2MW/R1MarchaRecirculacionInterna] Error writing to OPC address [[Ignition OPC-UA Server][PLC2]1.MW2_52]. Result code: Not Connected
INFO   | jvm 3    | 2012/04/11 18:42:08 | ERROR [WriteCall                     ] [18:42:08,604]: Call failed client-side with StatusCode: StatusCode[0x808A0000, Severity=Bad, Subcode=Bad_NotConnected]. Cannot send a message while channel is in state: CLOSED
INFO   | jvm 3    | 2012/04/11 18:42:08 | ERROR [Provider[default]             ] [18:42:08,604]: [[default]PLC2MW/R1Forzados] Error writing to OPC address [[Ignition OPC-UA Server][PLC2]1.MW2_58]. Result code: Not Connected
INFO   | jvm 3    | 2012/04/11 18:42:08 | ERROR [WriteCall                     ] [18:42:08,604]: Call failed client-side with StatusCode: StatusCode[0x808A0000, Severity=Bad, Subcode=Bad_NotConnected]. Cannot send a message while channel is in state: CLOSED
INFO   | jvm 3    | 2012/04/11 18:42:08 | ERROR [Provider[default]             ] [18:42:08,604]: [[default]PLC2MW/R1VariadorSoplanteFreq] Error writing to OPC address [[Ignition OPC-UA Server][PLC2]1.MW2_53]. Result code: Not Connected
INFO   | jvm 3    | 2012/04/11 18:42:08 | ERROR [WriteCall                     ] [18:42:08,604]: Call failed client-side with StatusCode: StatusCode[0x808A0000, Severity=Bad, Subcode=Bad_NotConnected]. Cannot send a message while channel is in state: CLOSED
INFO   | jvm 3    | 2012/04/11 18:42:08 | ERROR [Provider[default]             ] [18:42:08,604]: [[default]PLC2MW/R1Forzados] Error writing to OPC address [[Ignition OPC-UA Server][PLC2]1.MW2_58]. Result code: Not Connected
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [WriteCall                     ] [18:42:09,604]: Call failed client-side with StatusCode: StatusCode[0x808A0000, Severity=Bad, Subcode=Bad_NotConnected]. Cannot send a message while channel is in state: CLOSED
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [Provider[default]             ] [18:42:09,604]: [[default]PLC2MW/R1ValvulaAeracionA] Error writing to OPC address [[Ignition OPC-UA Server][PLC2]1.MW2_56]. Result code: Not Connected
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [WriteCall                     ] [18:42:09,604]: Call failed client-side with StatusCode: StatusCode[0x808A0000, Severity=Bad, Subcode=Bad_NotConnected]. Cannot send a message while channel is in state: CLOSED
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [Provider[default]             ] [18:42:09,604]: [[default]PLC2MW/R1ValvulaAeracionB] Error writing to OPC address [[Ignition OPC-UA Server][PLC2]1.MW2_57]. Result code: Not Connected
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [WriteCall                     ] [18:42:09,604]: Call failed client-side with StatusCode: StatusCode[0x808A0000, Severity=Bad, Subcode=Bad_NotConnected]. Cannot send a message while channel is in state: CLOSED
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [Provider[default]             ] [18:42:09,604]: [[default]PLC2MW/R1Forzados] Error writing to OPC address [[Ignition OPC-UA Server][PLC2]1.MW2_58]. Result code: Not Connected
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [WriteCall                     ] [18:42:09,604]: Call failed client-side with StatusCode: StatusCode[0x808A0000, Severity=Bad, Subcode=Bad_NotConnected]. Cannot send a message while channel is in state: CLOSED
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [Provider[default]             ] [18:42:09,604]: [[default]PLC2MW/R1VariadorSoplanteFreq] Error writing to OPC address [[Ignition OPC-UA Server][PLC2]1.MW2_53]. Result code: Not Connected
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [WriteCall                     ] [18:42:09,604]: Call failed client-side with StatusCode: StatusCode[0x808A0000, Severity=Bad, Subcode=Bad_NotConnected]. Cannot send a message while channel is in state: CLOSED
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [Provider[default]             ] [18:42:09,604]: [[default]PLC2MW/R1Forzados] Error writing to OPC address [[Ignition OPC-UA Server][PLC2]1.MW2_58]. Result code: Not Connected
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [WriteCall                     ] [18:42:09,604]: Call failed client-side with StatusCode: StatusCode[0x808A0000, Severity=Bad, Subcode=Bad_NotConnected]. Cannot send a message while channel is in state: CLOSED
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [Provider[default]             ] [18:42:09,604]: [[default]PLC2MW/R1MarchaRecirculacionInterna] Error writing to OPC address [[Ignition OPC-UA Server][PLC2]1.MW2_52]. Result code: Not Connected
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [WriteCall                     ] [18:42:09,604]: Call failed client-side with StatusCode: StatusCode[0x808A0000, Severity=Bad, Subcode=Bad_NotConnected]. Cannot send a message while channel is in state: CLOSED
INFO   | jvm 3    | 2012/04/11 18:42:09 | ERROR [Provider[default]             ] [18:42:09,604]: [[default]PLC2MW/R1Forzados] Error writing to OPC address [[Ignition OPC-UA Server][PLC2]1.MW2_58]. Result code: Not Connected
INFO   | jvm 3    | 2012/04/11 18:42:09 | INFO  [CaudalDiarioRecirculacionInternaA] [18:42:09,729]: Trigger did not evaluate - source item currently has bad quality [[55,Not Connected]].
INFO   | jvm 3    | 2012/04/11 18:42:09 | INFO  [CaudalDiarioRecirculacionInternaB] [18:42:09,729]: Trigger did not evaluate - source item currently has bad quality [[55,Not Connected]].
INFO   | jvm 3    | 2012/04/11 18:42:10 | ERROR [WriteCall                     ] [18:42:10,604]: Call failed client-side with StatusCode: StatusCode[0x808A0000, Severity=Bad, Subcode=Bad_NotConnected]. Cannot send a message while channel is in state: CLOSED

How can I fix this?

Thanks for your help!

The error you posted doesn’t have anything to do with Modbus, it’s your OPC-UA client connection going down…

Are you connected to the Ignition OPC-UA server or a third-part server? Can you export your logs from the log console (logs.bin.gz) and send it to support?

The problem was I had installed Modbus and Modbus v2 at the same time. I uninstalled the old modbus module and now all is working without modbus problems