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 starts Falling edge: Resets outputs If 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 completed ETrigTo xBusy BOOL TRUE : Function block active ETrigTo xError BOOL TRUE : Error occurred, function block aborts action FALSE : No error ETrigTo Input hPeer CAA.HANDLE ipAddr IP_ADDR uiPort UINT hBuffer CAA.HANDLE Output eError ERROR
Functions ¶ Async DummyJob (Function) UDP IPSTRING_TO_UDINT (Function) IS_MULTICAST_GROUP (Function) UDINT_TO_IPSTRING (Function) UDP_GetDataSize (Function)
Async ¶ DummyJob (Function)
DummyJob (FUN) ¶ FUNCTION DummyJob : RTS_IEC_RESULT InOut: Scope Name Type Return DummyJob RTS_IEC_RESULT Input pParam __XWORD
UDP ¶ IPSTRING_TO_UDINT (Function) IS_MULTICAST_GROUP (Function) UDINT_TO_IPSTRING (Function) UDP_GetDataSize (Function)
IPSTRING_TO_UDINT (FUN) ¶ FUNCTION IPSTRING_TO_UDINT : UDINT function converts a readable ip address string to an udint value InOut: Scope Name Type Return IPSTRING_TO_UDINT UDINT Input sIPAddress STRING
IS_MULTICAST_GROUP (FUN) ¶ FUNCTION IS_MULTICAST_GROUP : BOOL InOut: Scope Name Type Return IS_MULTICAST_GROUP BOOL Input udiIPAddress UDINT
UDINT_TO_IPSTRING (FUN) ¶ FUNCTION UDINT_TO_IPSTRING : STRING function converts a udint value to a readable ip address string InOut: Scope Name Type Return UDINT_TO_IPSTRING STRING Input udiIPAddress UDINT
UDP_GetDataSize (FUN) ¶ FUNCTION UDP_GetDataSize : CAA.SIZE InOut: Scope Name Type Return UDP_GetDataSize CAA.SIZE Input hPeer CAA.HANDLE peError POINTER TO ERROR
GlobalConstants ¶ Constants (GVL)