TCP_Write (FB)¶
FUNCTION_BLOCK PUBLIC FINAL TCP_Write EXTENDS ETrigTo
This function block serves to write data to the previously established connection given in
itfConnection
. The content of the memory area indicated by 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.
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xExecute
BOOL
Rising edge: Starts defined operationFALSE
: Resets the defined operation after ready condition was reachedETrigTo
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 runningETrigTo
xError
BOOL
TRUE
: Error condition reachedETrigTo
eErrorID
ETrigTo
Input
itfConnection
pData
__XWORD
udiSize
UDINT
Output
udiCount
UDINT