TCPClientConnect Connection Status
We're using Compact HMI for a sub-system of our plant.
We want to check the connection status with existing system Aspect Server, if it is down, we'll force an output channel and flash a alarm light.
For this aim, we've used TCPClientConnect function block. When we set the "En" input as "True". Status output is set to "1", after one or two minutes later, it returns to "-7202". What is wrong with this block? Could yu please help me?
Voted best answer
What are you connecting to in the aspect server?
You can't just "dial any number" and rely on someone picking up.
CBM Online Help can decode -7202 for you.
You should implement something on the server side answering the call. Why not an AC 800M there as well? The main system can have a calculation driving a triangular wave signal (watchdog) with the main system's AC 800M. If watchdog detect absent server, it could notify subsystem AC 800M via the TCP connection.