
The function block ANTCAS_TCP_CLIENT provides a TCP server for Antcas Control.
The input activates the socket and allows, if true, the connection.
The input sets the port of the TCP server. This should be defined directly.
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.
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.