AsTCP - Communication is terminated with error number 32609

I tried to use AsTCP Library to communicate B&R PLC with Siemens PLC and I get error number 32609 (The connection has been terminated by the other station). Can you guy tell me the reason why and how to fix it? Thank you very much.

Hi,

I can’t tell you, why the remote station terminates the connection.
But TCP is a connection oriented protocol and the channel has to be “consistent”, this is “supervised” by the TCP stack. And if one of the partners closes the connection for whatever reason, the other partner has to close too.
So, when getting the function block status 32609, you have to do on your side also a TcpClose and TcpOpen again to re-establish the TCP channel.

Best regards!

1 Like