Move functions – B&B Electronics I3A12X_20B05-SOHF - Manual User Manual
Page 18

Basic Operation
Move Functions
The first type of Move is the ‘Move Word’, or ‘MOV’. It is
used to copy a single byte, word or double-word from one
location to another. The count is locked at 1. In the case of the
example to the left, the value in %R1 is copied into %R101.
This only happens when the ladder rung receives power. The
value in %R101 is NOT taken back out when power is lost to
the rung. The IN can be either a register or a constant value.
The next type of Move is the ‘Move Data Block’, or ‘BMV’.
It is used to copy a group of bytes, words or double-words to
another location. The count (N) determines how many
registers are to be copied. In the example to the left, %R1-
%R5 are copied into %R101-%R105. Again, this only
happens when the ladder rung receives power. The IN must be
a register reference and constant values are not allowed.
The next type of Move is the “Fill WORD”, or “Fill”. It is
used to copy the contents of a single register or value into
multiple other registers, thus filling that one value into a group
of registers. The count (N) determines how many registers to
fill that single value into. In the example to the left, the value
in %R1 is copied into %R101-%R105 so that %R101-%R105
all will have the same value in them. This can be used to zero-
out a group of registers. The IN can be either a register or a
constant value.
The ‘Constant Move’, or ‘CST MOV’, it is used to move a group of
constant values into a group of consecutive registers. If, for
example, you want to move the values 1, 2, 3, 4 and 5 into %R101,
%R102, %R103, %R104 and %R105, respectively, then you can use
the Constant Move function. The count (N) is automatically
determined by how many constant values you enter into the
configuration for this function. The source data can ONLY be
constant data and cannot be register references.
The ‘Indirect Move’, or ‘IMV’, it is used to move data from variable
positions or to variable positions or both. It functions, for the most
part, like the Block Move function. If specified as Indirect, the IN
and/or the Q are used as pointers to where in the %R registers to get
data from or put data to. When looking at the ladder logic, the @
symbol will appear next to the IN or Q address if it is specified as
Indirect. This function is used in data logging applications.
© IMO Precision Controls ltd.
19