UDP_Send (FB)¶
FUNCTION_BLOCK PUBLIC FINAL UDP_Send EXTENDS ETrigTo
This function block serves to sent data from the local
itfPeer
to the other side, specified by itfIPAddress
and uiPort
.The content of the memory area indicated by the pointer
pData
contains the data to be written. udiSize
defines the number
of bytes to be written. When xDone
is set to TRUE
, udiCount
bytes of the data was written successfully.The time out value has no effect at this function block.
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xExecute
BOOL
Rising edge: Starts defined operationFALSE
: Resets the defined operation after ready condition was reachedETrigTo
udiTimeOut
UDINT
Max. operating time for executing [µs], 0: No operating time limit
ETrigTo
Output
xDone
BOOL
Ready condition reached
ETrigTo
xBusy
BOOL
TRUE
: Operation is runningETrigTo
xError
BOOL
TRUE
: Error condition reachedETrigTo
eErrorID
ETrigTo
Input Const
itfTSNContext
Input
itfPeer
itfIPAddress
uiPort
UINT
pData
__XWORD
udiSize
UDINT
Output
udiCount
UDINT