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 operation

FALSE: Resets the defined operation after ready condition was reached

ETrigTo

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 running

ETrigTo

xError

BOOL

TRUE: Error condition reached

ETrigTo

eErrorID

ERROR

ETrigTo

Input

itfTSNContext

ITSNContext

itfPeer

IPeer

itfIPAddress

IIPAddress

uiPort

UINT

pData

__XWORD

udiSize

UDINT

Output

udiCount

UDINT