-

Possible status of the copy process for *_TO_BUF function blocks

The following status of the copy process are possible:

Status number Description
0The copy process has been finished correctly.
1The VAR_IN_OUT descriptors used for the parameter SRC and BUFFER are invalid. This is an internal error.
2The 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.
3The 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.
4This data type is not supported.
5The 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.
6The conversion Little-/Big-Endian has failed.
7The 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".
8The 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.
9The offset value is not correct. In some cases the offset is checked. This is described in the special chapter for each data type.
10The 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.
11The addresses of the source and the destination are the same.