This function block of the ⇘ CAA_NetBaseServices.library serves to write data to the previously established connection given in hConnection. The content of the memory area indicated by pointer pData contains the data to be written. szSize defines the number of bytes to be written. When xDone is set to TRUE the data was written successfully.
Input:
xExecute |
BOOL |
see: ⇘ “CAA 指南” |
udiTimeOut |
UDINT |
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 |
szSize |
CAA.SIZE |
Number of bytes to be written; can be retrieved via operator SIZEOF |
pData |
CAA.PVOID |
The address from where the data can be fetched; can be retrieved with the help of operator ADR |
Output:
xDone |
BOOL |
see: ⇘ “CAA 指南” |
xBusy |
BOOL |
see: ⇘ “CAA 指南” |
xError |
BOOL |
see: ⇘ “CAA 指南” |
eError |
NBS.ERROR |
Error id |