Basic instructions
8.6 Move operations
S7-1200 Programmable controller
270 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 8- 76 RET_VAL parameter
80B0 The memory areas for the SRC_ARRAY and DEST_VARIABLE parameters overlap.
The data block at the DEST_VARIABLE parameter is not a block with standard access.
The Variant data type at the SRC_ARRAY parameter contains no value.
Code generation error at the SRC_ARRAY parameter.
There is not enough free memory available at the SRC_ARRAY parameter.
The Variant data type at the DEST_VARIABLE parameter contains no value.
Code generation error at the DEST_VARIABLE 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: Deserialize instruction
The following example shows how the instruction works:
The "MOVE" instruction moves the value "0" to the "#BufferPos" data block tag. The
Deserialize instruction then deserializes the sequential representation of the customer data
from the "Buffer" data block and writes it to the "Target" data block. The Deserialize
instruction calculates the number of bytes that the converted data uses and stores it in the
"#BufferPos" data block tag.
The "Deserialize" instruction deserializes the sequential representation of the data stream
pointed to by "Buffer" and writes the characters to the "#Label" operand. The logic compares
the characters using the comparison instructions "arti" and "Bill". If the comparison for "arti" =
TRUE, the data is article data that is to be deserialized and written to the "Article" data
structure of the "Target" data block. If the comparison for "Bill" = TRUE, the data is billing
data that is to be deserialized and written to the "Bill" data structure of the "Target" data
block.