User Manual
Chapter 23
GFK-1645M
Dec 2019
Instruction Set Reference
450
23.3.1
Data Move Functions
Move Data
The MOVE function copies data as individual bits from one location to another. Because the
data is copied in bit format, the new location does not need to be the same data type as the
original.
When the Move function receives power flow, it copies data from input parameter IN to
output parameter Q as bits. If data is moved from one location in discrete memory to
another, (for example, from %I memory to %T memory), the transition information
associated with the discrete memory elements is updated to indicate whether or not the
Move operation caused any discrete memory elements to change state. Data at the input
parameter does not change unless there is an overlap in the source and destination.
Figure 276
Note that if an array of Bit-type data specified in the Q parameter does not include all the
bits in a byte, the transition bits associated with that byte (which are not in the array) are
cleared when the Move function receives power flow.
The input IN can be either a reference for the data to be moved or a constant. If a constant
is specified, then the constant value is placed in the location specified by the output
reference. For example, if a constant value of 4 is specified for IN, then 4 is placed in the
memory location specified by Q. If the length is greater than 1 and a constant is specified,
then the constant is placed in the memory location specified by Q and the locations
following, up to the length specified. Do not allow overlapping of IN and Q parameters.
The result of the Move depends on the data type selected for the function, as shown below.
For example, if the constant value 9 is specified for IN and the length is 4, then 9 is placed in
the bit memory location specified by Q and the three locations following:
Figure 277
The function passes power to the right whenever power is received.