Masked move (mvm) – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 199

Advertising
background image

Chapter 11
Using Data Handling Instructions

11–16

The MVM instruction is a word instruction that moves data from a source
location to a destination and allows portions of the destination data to be
masked by a separate word. As long as the rung remains true, the instruction
moves the data each scan.

Entering Parameters

Enter the following parameters when programming this instruction:

Source is the address of the data you want to move.

Mask is the address of the mask through which the instruction moves
data; the mask can be a hex value (constant).

Destination is the address where the instruction moves the data.

Updates to Arithmetic Status Bits

With this Bit:

The Controller:

S0/0

Carry (C)

always resets.

S0/1

Overflow (V)

always resets.

S0/2

Zero (Z)

sets if result is zero; otherwise resets.

S0/3

Sign (S)

sets if result is negative; otherwise resets.

Entering the Instruction

You enter the instruction from within the program monitor functional area.

P 0 0 0

M V M

S R C

B 0

0 0 0 1 H

P 0 0 0

M V M

M A S K

F 0 F 0 H

P 0 0 0

M V M

D E S T

B 2

0 0 0 0 H

Execution Times (

µ

sec) when:

True

False

33.28

6.78

Ladder representation:

MVM

MASKED MOVE
Source

B3:0

Mask

F0F0

Dest

B3:2

Masked Move (MVM)

7

ENT

ANB

0

1

FUN

To enter the function code, press:

Advertising