The pattern of bits in the mask determines which bits will be passed from the source address to the destination address, and which bits will be masked. Only bits in the mask that are set (1) will activate the mask operation. In this article, MVM (Masked Move) is discussed.
There are three parameters in MVM,
It is the address of the data you wants to move.
Address of the mask through which the instruction moves data. The mask acts like a filter for the destination.
It is the address where the instruction moves the data.
Note : RSLogix will make any necessary conversion and display the hexadecimal value.
Activation of mask bit pattern will move the data in Source address to destination address. Move function will not happen until mask bit is activated.
When the rung condition goes true,
Output When Mask Bit is not activated,
Output When Mask Bit is activated,
When the rung condition goes true,
Output When Mask Bit is not activated,
Output When Mask Bit is activated,
In this program, When N7:2 equals to the value 9, turn ON O:0/0,
When input condition goes true (I:0/0 turns “ON”),MVM instruction will move the data in N7:0 to N7:2.
Equal block is used from comparator function to turn on O: 0/0 when N7:2 equal 9.
The above explained concept for Masked Move is for example only. We can use this example program to understand the working of MVM instruction in AB PLC.
If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.
You can also follow us on Facebook and Twitter to receive daily updates.
Read Next:
PLC ladder logic design to control 3 motors with toggle switch and explain the program…
VFD simulator download: Master the online tool from the Yaskawa V1000 & programming software for…
The conveyor sorting machine is widely used in the packing industries using the PLC program…
Learn the example of flip-flop PLC program for lamps application using the ladder logic to…
In this article, you will learn the STAR DELTA programming using PLC controller to start…
Lube oil consoles of rotary equipment packages in industrial process plants are usually equipped with…