Possible status of the copy process for *_TO_BUF function blocks
The following status of the copy process are possible:
| Status number | Description | 
|---|---|
| 0 | The copy process has been finished correctly. | 
| 1 | The VAR_IN_OUT descriptors used for the parameter SRC and BUFFER are invalid. This is an internal error. | 
| 2 | The length of the source buffer does not fit. The size of bytes to be copied assigned in BUF_CNT is larger than the available size of the SRC. | 
| 3 | The length of the destination buffer does not fit. The sum of the bytes to be copied assigned in BUF_CNT and the offset in the connected byte stream assigned in BUF_OFFS is larger than the size of the connected byte stream. | 
| 4 | This data type is not supported. | 
| 5 | The alignment does not fit to this data type. The size to be copied assigned in BUF_CNT must be divisible without remainder by the size of the data type. | 
| 6 | The conversion Little-/Big-Endian has failed. | 
| 7 | The string length does not fit. Additional checks are necessary for the data type string. This is described in the topic "Special behavior of STRING_TO_BUF". | 
| 8 | The destination buffer has a wrong data type. In some cases the data type is checked. This is described in the special chapter for each data type. | 
| 9 | The offset value is not correct. In some cases the offset is checked. This is described in the special chapter for each data type. | 
| 10 | The BUF_CNT does not fit. In some cases the size to be copied is checked. This is described in the special chapter for each data type. | 
| 11 | The addresses of the source and the destination are the same. |