Join us today!
ADS client comms - noob questions
Hi guys,
Couple of noob questions on ADS client.
Should intention be to maintain an open connection for the life of the application (reconnecting as necessary) and then just read / write whenever desired? Or open, read, close each time?
I assume the former...
Does this scale happily? I have 24 PLCs to connect to on my finished line.
Also, my software guy has had a crack at this, and is telling me the connection is timing out after around 6 secs. Is this expected behaviour? Does it require a heartbeat to hold it open?
Any advice, or pointers to info gratefully received!
Cheers
Duncan
I've always kept the connection open, although I connected to a single PLC. I can't recall that I had a lot of issues with connections timing out. Maybe 24 PLCs is an issue or the connection there is spotty?
My blog: https://cookncode.com/twincat
My code: https://github.com/roald87
Thanks Roald!
Will stick with that approach then.
On further investigation, it seems like having TwinCAT running on the same PC is causing the problem, so will check for port or address conflicts and see if I can find anything there...
Cheers
Duncan
- 17 Forums
- 265 Topics
- 932 Posts
- 0 Online
- 688 Members