Move Operations; Move (Move Value), Move_Blk (Move Block), And Umove_Blk (Move Block Uninterrruptible) Instructions - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents
Basic instructions

7.6 Move operations

7.6
Move operations
7.6.1
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
LAD / FBD
SCL
out1 := in;
MOVE_BLK(
UMOVE_BLK(
MOVE instruction: To add another output in LAD or FBD, click the "Create" icon by the output parameter. For SCL, use
1
multiple assignment statements. You might also use one of the loop constructions.
Table 7- 63
Data types for the MOVE instruction
Parameter
Data type
IN
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word,
DWord, Char, Array, Struct, DTL, Time
OUT
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word,
DWord, Char, Array, Struct, DTL, Time
238
in:=_variant_in,
count:=_uint_in,
out=>_variant_out);
in:=_variant_in,
count:=_uint_in,
out=>_variant_out);
Description
Copies a data element stored at a specified address to a new
address or multiple addresses.
Interruptible move that copies a block of data elements to a new
address.
Uninterruptible move that copies a block of data elements to a
new address.
1
Description
Source address
Destination address
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Table of Contents
loading

Table of Contents