Masked Move With Target (Mvmt); Structured Text; Function Block; Fbd_Masked_Move Structure - 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

Chapter 7
Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)
Masked Move with Target
(MVMT)
MVMT(MVMT_tag);
Input Parameter
Data Type
EnableIn
BOOL
Source
DINT
Mask
DINT
Target
DINT
Output Parameter
Data Type
EnableOut
BOOL
Dest
DINT
300
The MVMT instruction first copies the Target to the Destination. Then the instruction
compares the masked Source to the Destination and makes any required changes to the
Destination. The Target and the Source remain unchanged.
This instruction is available in relay ladder as MVM, see
Operands:

Structured Text

Variable
MVMT tag

Function Block

Operand
MVMT tag

FBD_MASKED_MOVE Structure

Description
Function Block
If cleared, the instruction does not execute and outputs are not updated.
If set, the instruction executes.
Default is set.
Structured Text
No effect. The instruction executes.
Input value to move to Destination based on value of Mask.
Valid = any integer
Mask of bits to move from Source to Dest. All bits set to one cause the corresponding bits to move from
Source to Dest. All bits that are set to zero cause the corresponding bits not to move from Source to
Dest.
Valid = any integer
Input value to move to Dest prior to moving Source bits through the Mask.
Valid = any integer
Description
The instruction produced a valid result.
Result of masked move instruction. Arithmetic status flags are set for this output.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
FBD_MASKED_MOVE
Type
FBD_MASKED_MOVE
page
297.
Format
Description:
Structure
MVMT structure
Format
Description
Structure
MVMT structure

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents