Basic instructions
7.6 Move operations
S7-1200 Programmable controller
238 System Manual, 03/2014, A5E02486680-AG
MOVE (Move value), MOVE_BLK (Move block), and UMOVE_BLK (Move block
uninterrruptible) instructions
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 7- 62 MOVE, MOVE_BLK and UMOVE_BLK instructions
Copies a data element stored at a specified address to a new
address or multiple addresses.
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.
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.
Table 7- 63 Data types for the MOVE instruction
IN SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word,
DWord, Char, Array, Struct, DTL, Time
Source address
OUT SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word,
DWord, Char, Array, Struct, DTL, Time
Destination address