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

Page 200

Advertising
background image

Chapter 11
Using Data Handling Instructions

11–17

Operation

When the rung containing this instruction is true, data at the source address
passes through the mask to the destination address. See the following HHP
displays and figure.

P 0 0 0

M V M

S R C

B 0

5 5 5 5 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

F F F F H

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

B2 before move

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

source B0

1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0

Mask F0F0

0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 1

B2 after move

Mask data by setting bits in the mask to zero; pass data by setting bits in the
mask to one. The mask can be a constant value or you can vary the mask by
assigning a direct address. Bits in the destination that correspond to zeros in
the mask are not altered.

Advertising