I have an application where the facility is passing me jobs via Modbus/TCP (MC coil per job per recipe). But, their app sometimes has the habit of opening sockets, abandoning them, and opening more before communicating. I increased the max client setting and reduced the timeout on idle connections, which has mostly resolved the issue, but I think from time to time they may still use up all the connections. I say "I think" because they have some other issues as well so I can't say with certainty this issue is still in play.
I've added the client count to the HMI so the customer can see if that issue is occurring, but is there a way I can shed connections from ladder? I don't see anything relevant in DEVWRITE. If so, is there a way to distinguish which connections get the axe, so I don't kill the HMIs?