EasyManua.ls Logo

Siemens SIMATIC S7-1200 - 11.13 Updating Firmware

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Basic instructions
8.6 Move operations
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
269
8.6.2
Deserialize
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
LAD / FBD
SCL
Description
ret_val := Deserialize(
SRC_ARRAY:=_variant_in_,
DEST_VARIABLE=>_variant_out
_,
POS:=_dint_inout_);
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
Parameter
Type
Data type
Description
SRC_ARRAY IN Variant Global data block that con-
tains the data stream
DEST_VARIABLE INOUT Variant Tag in which to store the
converted PLC data type
(UDT)
POS INOUT DInt Number of bytes that the
converted PLC data type
uses
RET_VAL
OUT
Int
Error information

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals