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
xExecuteBOOLRising edge: Starts defined operationFALSE: Resets the defined operation after ready condition was reachedETrigTo
udiTimeOutUDINTMax. operating time for executing [µs], 0: No operating time limit
ETrigTo
Output
xDoneBOOLReady condition reached
ETrigTo
xBusyBOOLTRUE: Operation is runningETrigTo
xErrorBOOLTRUE: Error condition reachedETrigTo
eErrorIDETrigTo
Input Const
itfTSNContextInput
itfPeeritfIPAddressuiPortUINTpData__XWORDudiSizeUDINTOutput
udiCountUDINT