Publication 1762-RM001C-EN-P
Move Instructions 13-3
MVM - Masked Move
Instruction Type: output
The MVM instruction is used to move data from the source to the
destination, allowing portions of the destination to be masked. The mask
bit functions as follows:
Mask data by setting bits in the mask to zero; pass data by setting bits in
the mask to one. The mask can be a constant, or you can vary the mask
by assigning a direct address. Bits in the Destination that correspond to
zeros in the Mask are not altered.
Using the MVM Instruction
When using the MVM instruction, observe the following:
•
Source, Mask, and Destination must be of the same data size (i.e. all
words or all long words).
To mask data, set the mask bit to zero; to pass data, set the mask bit to
one. The mask can be a constant value, or you can vary the mask by
assigning a direct address.
MVM
Masked Move
Source N7:0
0<
Mask N7:1
0000h<
Dest N7:2
0<
MVM
Table 13.4 Execution Time for the MVM Instruction
Controller Data Size When Rung Is:
True False
MicroLogix 1200 word 7.8
µ
s0.0
µ
s
long word 11.8
µ
s0.0
µ
s
MicroLogix 1500 word 7.2
µ
s0.0
µ
s
long word 10.0
µ
s0.0
µ
s
Table 13.5 Mask Function for MVM Instruction
Source Bit Mask Bit Destination Bit
10last state
00last state
111
010
NOTE
Bits in the destination that correspond to zeros in the
mask are not altered as shown in the shaded areas in
the following table.