Basic instructions
8.6 Move operations
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
265
MOVE (Move value), MOVE_BLK (Move block), UMOVE_BLK (Move block
uninterruptible), and MOVE_BLK_VARIANT (Move block)
Use the Move instructions to copy data elements to a new memory address and convert
from one data type to another. The source data is not changed by the move process.
● The MOVE instruction copies a single data element from the source address specified by
the IN parameter to the destination addresses specified by the OUT parameter.
● The MOVE_BLK and UMOVE_BLK instructions have an additional COUNT parameter.
The COUNT specifies how many data elements are copied. The number of bytes per
element copied depends on the data type assigned to the IN and OUT parameter tag
names in the PLC tag table.
Table 8- 68 MOVE, MOVE_BLK, UMOVE_BLK, and MOVE_BLK_VARIANT instructions
Copies a data element stored at a specified
address to a new address or multiple address-
es.
1
in:=_variant_in,
count:=_uint_in,
out=>_variant_out);
Interruptible move that copies a block of data
elements to a new address.
in:=_variant_in,
count:=_uint_in,
out=>_variant_out);
Uninterruptible move that copies a block of data
elements to a new address.
SRC:=_variant_in,
COUNT:=_udint_in,
SRC_INDEX:=_dint_in,
DEST_INDEX:=_dint_in,
DEST=>_variant_out);
Moves the contents of a source memory area to
a destination memory area.
You can copy a complete array or elements of
an array to another array of the same data type.
The size (number of elements) of source and
destination array may be different. You can
copy mult
iple or single elements within an array.
You use Variant data types to point to both the
source and destination arrays.
MOVE instruction: To add another output in LAD or FBD, click the "Create" icon by the output parameter. For SCL, use
multiple assignment statements. You might also use one of the loop constructions.