TCP_Read (FB)
FUNCTION_BLOCK PUBLIC FINAL TCP_Read EXTENDS LConC
This function block serves to read data from the previously established connection given in
itfConnection. As long as xEnable is TRUE and the connection is valid. The pointer pData
specifies the memory area to write the read data to. udiSize defines the max number of bytes to read.
When the data was read successfully, xReady is set to TRUE and udiCount indicates the actually read
number of bytes.
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xEnableBOOLTRUE: Activates the defined operationFALSE: Aborts/resets the defined operationLConC
Output
xBusyBOOLTRUE: Operation is runningLConC
xErrorBOOLTRUE: Error condition reachedLConC
eErrorIDLConC
Input
itfConnectionpData__XWORDudiSizeUDINTOutput
xReadyBOOLudiCountUDINT