MVM ...masked move

In plain English, it moves bits from one location to another, but instead of moving all of them, it moves only ones you want to move, depending on which ones you hide (mask).

Uses vary, but I've used them when I have an 16 input card that contains a binary coded decimal on four of the inputs, and the other inputs are unrelated sensors. I use the MVM to move the BCD information into a separate file to use later in the program.

Edit:
I think I might have just done someone's homework without thinking
 
Last edited:
Welcome to the Forum.
The MVM instruction is a digital "strainer"; depending of the state (1 or 0) of the individual bits of the Mask word, the MVM will either move the state of the Source's any bit within the Destination word corresponding bit(if the Mask's corresponding bit is 1-TRUE) or not pass it if the Mask's corresponding bit is 0-FALSE.
The user is able to "restrict" any bit state transfer between Source and Destionation by simply turning the corresponding bit of the Mask to 0-FALSE and then, turning the Mask bit ti 1-TRUE when the "restriction" is not needed anymore.
 

Similar Topics

I'm having major trouble here people. What I need to do is take a 5 digit number 12345 (in one address N7:1(decimal)) and store different parts of...
Replies
3
Views
4,827
I'm having to make an AOI to use with a generic ethernet device because the manufacturer does not provide an AOP. I just want to do a sanity check...
Replies
13
Views
1,260
Hi All, I know this is probably a strange question, but does anyone know what would be faster between a MVM and AND instruction? I...
Replies
5
Views
1,430
hi all, i have another problem with my unity conversion from rslogix500. i have a MVM (masked move) that i need to program into my unity program...
Replies
2
Views
1,261
Seeing some irregular behavior with my MVM instruction Either that or i dont get how it works? :) I am moving an INT Lets say for arguments sake...
Replies
12
Views
3,279
Back
Top Bottom