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
xEnable
BOOL
TRUE
: Action startsFALSE
: Action stops, outputsxDone
,xBusy
,xError
are resettedLTrig
Output
xDone
BOOL
TRUE
: Action successfully completedLTrig
xBusy
BOOL
TRUE
: Function block activeLTrig
xError
BOOL
TRUE
: Error occurred, function block aborts actionFALSE
: No errorLTrig
Input
hConnection
CAA.HANDLE
Output
eError
xReady
BOOL
hBuffer
CAA.HANDLE