Publication 1766-RM001A-EN-P - October 2008
264
Move Instructions
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
Execution Time for the MVM Instruction
Controller
Data Size
When Rung Is:
True
False
MicroLogix 1400
word
0.2210 µs
0.1750 µs
long word
1.9050 µs
0.2180 µs
Mask Function for MVM Instruction
Source Bit
Mask Bit
Destination Bit
1
0
last state
0
0
last state
1
1
1
0
1
0
TIP
Bits in the destination that correspond to zeros in the mask are not
altered as shown in the shaded areas in the following table.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive