UDP_Receive (FB)ΒΆ
FUNCTION_BLOCK PUBLIC FINAL UDP_Receive EXTENDS LConC
This function block serves to receive data.
The pointer
pData
specifies the memory area
to write the read data to. udiSize
defines the max number of bytes to read. When data was read
successfully, xReady
is set to TRUE
and udiCount
indicates the actually read number of bytes.
itfIPAddressFrom
and uiPortFrom
indicate the ip and port the data was received from.- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xEnable
BOOL
TRUE
: Activates the defined operationFALSE
: Aborts/resets the defined operationLConC
Output
xBusy
BOOL
TRUE
: Operation is runningLConC
xError
BOOL
TRUE
: Error condition reachedLConC
eErrorID
LConC
Input
itfPeer
pData
__XWORD
udiSize
UDINT
Output
xReady
BOOL
itfIPAddressFrom
uiPortFrom
UINT
udiCount
UDINT