UDP_Receive (FB)ΒΆ
FUNCTION_BLOCK UDP_Receive EXTENDS CBM.LTrig
This function block serves to receive data.
The pointer
pData specifies the memory area
to write the read data to. szSize defines the max number of bytes to read. When data was read
successfully, xReady is set to TRUE and szCount indicates the actually read number of bytes.
ipFrom and uiPortFrom indicate the ip and port the data was received from.- 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
hPeerCAA.HANDLEszSizeCAA.SIZEpDataCAA.PVOIDOutput
eErrorxReadyBOOLipFromuiPortFromUINTszCountCAA.SIZE