Basic instructions
8.6 Move operations
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
269
You can use the "Deserialize" instruction to convert the sequential representation of a PLC
data type (UDT) back to a PLC data type and to fill its entire contents. If the comparison is
TRUE, then the box output is TRUE.
The memory area which holds the sequential representation of a PLC data type must have
the Array of Byte data type and you must declare the data block to have standard (not
optimized) access. Make sure that there is enough memory space prior to the conversion.
The instruction enables you to convert multiple sequential representations of converted PLC
data types back to their original data types.
Note
If you only want to convert back a single sequential representation of a PLC data type (UDT),
you can also use the instruction "TRCV: Receive data via communication connect
ion".
Table 8- 74 DESERIALIZE instruction
SRC_ARRAY:=_variant_in_,
DEST_VARIABLE=>_variant_out
_,
Converts the sequential represen-
tation of a PLC data type (UDT)
back to a PLC data type and fills
its entire contents
Table 8- 75 Parameters for the DESERIALIZE instruction
SRC_ARRAY IN Variant Global data block that con-
DEST_VARIABLE INOUT Variant Tag in which to store the
converted PLC data type
POS INOUT DInt Number of bytes that the
converted PLC data type