Publication 1763-RM001C-EN-P - October 2009
Move Instructions
219
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 1100
word
12.9
μ
s
0.87
μ
s
long word
13.18
μ
s
0.87
μ
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