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- BOOLRising 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- ETrigTo - Input - itfConnection- pData- __XWORD- udiSize- UDINT- Output - udiCount- UDINT