Masked Move (Mvm); Relay Ladder; Structured Text - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)

Masked Move (MVM)

dest := (Dest AND NOT (Mask))
OR (Source AND Mask);
Description:
The MVM instruction copies the Source to a Destination and allows portions of the data
to be masked.
This instruction is available in structured text and function block as MVMT, see
page
300.
Operands:

Relay Ladder

Operand
Source
Mask
Destination

Structured Text

This instruction is available in structured text as MVMT. Or you can combine bitwise
logic within an expression and assign the result to the destination. This expression
performs a masked move on Source.
See
Structured Text Programming
assignments within structured text.
The MVM instruction uses a Mask to either pass or block Source data bits. A '1' in the
mask means the data bit is passed. A '0' in the mask means the data bit is blocked.
If you mix integer data types, the instruction fills the upper bits of the smaller integer data
types with 0s so that they are the same size as the largest data type.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
SINT
Immediate
INT
Tag
DINT
A SINT or INT tag converts to a DINT value by zero-fill.
SINT
Immediate
INT
Tag
DINT
A SINT or INT tag converts to a DINT value by zero-fill.
SINT
Tag
INT
DINT
for information on the syntax of expressions and
Description
Value to move
Which bits to block or pass
Tag to store the result
Chapter 7
297

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents