NBS.TCP_WriteBuffer (FB)

( CAA_NetBaseServices.library)

Like NBS.TCP_Write this function block serves to write data to the previously established connection given in hConnection. 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 NBS.TCP_Write.

Input:

xExecute

BOOL

see: “CAA 指南”

udiTimeOut

UDINT

The time after which an FB (e.g. requiring an external acknowledgement) aborts operation due to a timeout with error message

hConnection

CAA.HANDLE

Handle of the connection

hBuffer

CAA.HANDLE

Handle of the buffer

Output:

xDone

BOOL

see: “CAA 指南”

xBusy

BOOL

see: “CAA 指南”

xError

BOOL

see: “CAA 指南”

eError

NBS.ERROR

Error id