Data types for TCP blocks
The following data types are used in the network blocks, in particular in the ones for transferring data via a network protocol via →TCP .
TCP_ClientHandle data type
This data type is a directly →derived data type. Its base type is DWORD.
TCP_ErrorCode data type
This data type is a data type with →named elements. The named elements of the base type UDINT are:
Named element |
Value |
succeeded |
16#00000000 |
invalidFlags |
16#81000011 |
invalidHandle |
16#81000012 |
cannotCreateSocket |
16#81000013 |
cannotBindSocket |
16#81000014 |
cannotSendData |
16#81000015 |
cannotReceiveData |
16#81000016 |
invalidDataSize |
16#81000017 |
cannotListenOnSocket |
16#81000018 |
cannotAcceptClientConnections |
16#81000019 |
cannotConnectToServer |
16#8100001A |
noInComingConnection |
16#8100001B |
TCP_ServerHandle data type
This data type is a directly →derived data type. Its base type is DWORD.