I'm connecting to a third party OPC server. When the server is stopped and restarted, Ignition's OPC client will not automatically connect to the server.
Manually establishing a connection will connect to the server immediately, just click "Edit" and then "Save".
So how can I make the OPC client automatically connect to the server?
It should reconnect automatically. The best thing you can do for troubleshooting is to capture with Wireshark while you demonstrate the issue. Make sure the connection is made without security so the capture use useful.
When I connect manually, Ignition switch to a new port. Could you explain what this means?
disconnect.pcapng (9.4 KB)
connect.pcapng (182.7 KB)
It doesn't really mean anything. When a TCP connection is opened the client side of it uses an ephemeral port, and this port usually changes every time.
These captures don't really show anything useful and seem to only have one side of the conversation (only requests, no responses).
Sorry. I'm new to Wireshark. During that time I shut down and restarted the OPC server. It looks like Ignition tried to connect several times but the OPC server didn't respond properly?
diconnect.pcapng (14.7 KB)
connect.pcapng (380.8 KB)
Does the second "connect" capture show the connection happening because you edit/saved the connection?
It looks like the server shuts down and starts returning Bad_ServerHalted in ServiceFaults responses but it never actually shuts down or restarts...
If you're not on Ignition 8.1.38 or later you might try upgrading, there was a small change in the reconnection logic added to work around buggy behavior observed in another server, but it might help here too.
Yes.
I update to 8.1.39, it works. Now Ignition reconnect to the OPC server in seconds automatically.
Thank you.