Data transfer instructions
60
Part II IEC Instructions
MOVE
Move value to specified destination
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
PLC
types
Availability of MOVE (see page 1328)
When using the data type STRING with small PLCs like FP-e or FP0,
make sure that the length of the result string is equal to or greater than
the length of the source string.
For further information refer to the online help: Upgrade Problems with
Data Type STRING
Data type I/O Function
all data types input source
all data types output as input destination
In this example the input variable input_value has been declared. Instead, you may enter a
constant directly at the input contact of a function.
Description
MOVE assigns the unchanged value of the input variable to the output variable.
Data types
Example
In this example, the same POU header is used for all programming languages. For an example
using IL (instruction list), please refer to the online help.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
Input_value is assigned to output_value without being modified.
LD
ST
When programming with structured text, enter the following:
output_value:= input_value;