Basic instructions
8.6 Move operations
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
273
Table 8- 79 RET_VAL parameter
80B0 The memory areas for the SRC_VARIABLE and DEST_ARRAY parameters overlap.
The Variant data type at the SRC_VARIABLE parameter contains no value.
Code generation error at the SRC_VARIABLE parameter.
The data block at the DEST_ARRAY parameter is not a block with standard access.
The Variant data type at the DEST_ARRAY parameter contains no value.
Code generation error at the DEST_ARRAY parameter.
There is not enough free memory available at the DEST_ARRAY parameter.
Invalid data type at the DEST_VARIABLE parameter.
The value at parameter POS is outside the limits of the array.
*
You can view the error codes as either integer or hexadecimal in the program editor.
Example: Serialize instruction
The following example shows how the instruction works:
The "MOVE" instruction moves the value "0" to the "#BufferPos" parameter. The "Serialize"
instruction serializes the customer data from the "Source" data block and writes it in
sequential representation to the "Buffer" data block. The instruction stores the number of
bytes used by the sequential representation in the "#BufferPos" parameter.
The logic now inserts some separator text to make it easier to deserialize the sequential
representation later. The "S_MOVE" instruction moves the text string "arti" to the "#Label"
parameter. The "Serialize" instruction writes these characters after the source client data to
the "Buffer" data block. The instruction adds the number of bytes in the text string "arti" to the
number already stored in the "#BufferPos" parameter.
The "Serialize" instruction serializes the data of a specific article, which is calculated in
runtime, from the "Source" data block and writes it in sequential representation to the
"Buffer" data block after the "arti" characters