Port.Send (METH)

METHOD Send : SysTypes.RTS_IEC_RESULT

Sends data to sIPAddressTo and uiPortTo

InOut:

Scope

Name

Type

Comment

Return

Send

SysTypes.RTS_IEC_RESULT

Input

udiIPTo

UDINT

Addr of the receiver

uiPortTo

UINT

OPTIONAL: Port to send the data to (Property SendPort is the default)

pbyData

POINTER TO BYTE

Pointer to user data

diDataSize

__XINT

Size of the user data

Output

diSent

__XINT

Number of Bytes that have been sent

eLogCode

ErrorCode