Function Block ANTCAS_TCP_CLIENT

The function block ANTCAS_TCP_CLIENT provides a TCP server for Antcas Control.

xRUN: BOOL

The input activates the socket and allows, if true, the connection.

wPortNumber: WORD

The input sets the port of the TCP server. This should be defined directly.

typHandle: ANTCAS_HANDLE

This input/output variable defines the communication between the ANTCAS_TCP_CLIENT function block and the individual ANTCAS_RW function blocks. Note the global variable uiMAX_RW_FB: UINT. This defines the maximum number of function blocks. The default value is 1024.

diError: DINT

The output diError provides information about the communication status. This comes from the WAGO function block TCP_SERVER and can take the following values:

Hex-Number Description
16#8000 Connection Active
16#8001 Server Waiting For Connection.

Further states can be found in the WAGO documentation.