UDP_ReceiveBuffer (FB)ΒΆ
FUNCTION_BLOCK UDP_ReceiveBuffer EXTENDS CBM.LTrig
Like UDP_Receive this function block serves to receive data.
The function block
returns the handle of the buffer containing the data. As long as
xReady
is TRUE
a new handle for the
buffer can arrive. ipFrom
and uiPortFrom
indicate the ip and port the data was received from. The
buffer is passed on and not copied like at UDP_Receive.- 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
hPeer
CAA.HANDLE
Output
eError
xReady
BOOL
ipFrom
uiPortFrom
UINT
hBuffer
CAA.HANDLE