Function Block Client

The function block AntcasTCP.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: AntcasTCP.typHandle

This input/output variable defines the communication between the client function block and the individual rw-function blocks. Note the global variable AntcasTCP_uiMAX_RW_FB: UINT. This defines the maximum number of function blocks. The default value is 1024.

xConnected: BOOL

The output xConnected provides information about the communication status. This is true if a connection has been successfully established and all data have been synchronized.

xError: BOOL

The output provides information about the communication status. This is true if an error has occurred. This can be the case when the connection timeout is reached or when the handshake fails.