TCP_Read (FB)ΒΆ
FUNCTION_BLOCK TCP_Read EXTENDS CBM.LTrig
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 pointer pData
specifies the memory area to write the read data to. szSize defines the max number of bytes to read.
When the data was read successfully, xReady is set to TRUE and szCount indicates the actually read
number of bytes.
- 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.HANDLEszSizeCAA.SIZEpDataCAA.PVOIDOutput
eErrorxReadyBOOLszCountCAA.SIZE