UDP_SendBuffer (FB)¶
FUNCTION_BLOCK UDP_SendBuffer EXTENDS CBM.ETrigTo
Like UDP_Send this function block serves to sent data.
Instead of a pointer to the data, this function block expects a handle
of the buffer containing the data to be written. The buffer is passed on and not copied like at UDP_Send.
The time out value has no effect at this function block.
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xExecute
BOOL
Rising edge: Action startsFalling edge: Resets outputsIf a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values (xDone
,xError
) are present at the outputs for exactly one cycle.ETrigTo
udiTimeOut
UDINT
Defines the time (µs) after which an FB (e.g. requiring an external acknowledgement) aborts operation due to a timeout with error message.
ETrigTo
Output
xDone
BOOL
TRUE
: Action successfully completedETrigTo
xBusy
BOOL
TRUE
: Function block activeETrigTo
xError
BOOL
TRUE
: Error occurred, function block aborts actionFALSE
: No errorETrigTo
Input
hPeer
CAA.HANDLE
ipAddr
uiPort
UINT
hBuffer
CAA.HANDLE
Output
eError