TCP_ReadBuffer (FB)ΒΆ
FUNCTION_BLOCK TCP_ReadBuffer EXTENDS CBM.LTrig
Like TCP_Read this function block serves to read data from the previously established
connection given in hConnection. As long as xEnable is TRUE the handle of the connection is valid.
The function block returns the handle of the buffer containing the data. If xReady is TRUE, data has
been read successfully and the handle of the buffer is valid. The buffer is passed on and not copied
like at TCP_Read.
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xEnableBOOLTRUE: Action startsFALSE: Action stops, outputsxDone,xBusy,xErrorare resettedLTrig
Output
xDoneBOOLTRUE: Action successfully completedLTrig
xBusyBOOLTRUE: Function block activeLTrig
xErrorBOOLTRUE: Error occurred, function block aborts actionFALSE: No errorLTrig
Input
hConnectionCAA.HANDLEOutput
eErrorxReadyBOOLhBufferCAA.HANDLE