Enter An Immediate Mask Value - 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)
Arithmetic Status Flags
Fault Conditions
Condition
Prescan
Rung-condition-in is false
Rung-condition-in is true
Postscan
298

Enter an Immediate Mask Value

When you enter a mask, the programming software defaults to decimal values. If you
want to enter a mask by using another format, precede the value with the correct prefix.
Prefix
16#
8#
2#
Arithmetic status flags are affected.
None
Execution:
Relay Ladder Action
The rung-condition-out is set to false.
The rung-condition-out is set to false.
The instruction passes the Source through the Mask and copies the result into the Destination.
Unmasked bits in the Destination remain unchanged.
The rung-condition-out is set to true.
The rung-condition-out is set to false.
Example:
Copy data from value_a to value_b, while allowing data to be masked (a 0 masks the data
in value_a).
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 1
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Description
Hexadecimal
For example; 16#0F0F
Octal
For example; 8#16
Binary
For example; 2#00110011
The shaded boxes show the bits that changed in value_b.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents