Fbd_Mask_Equal Structure; Entering 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

Input Parameter
Data Type
EnableIn
BOOL
Source
DINT
Mask
DINT
Compare
DINT
Output Parameter
Data Type
EnableOut
BOOL
Dest
BOOL
Description:
Compare Instructions (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)

FBD_MASK_EQUAL Structure

Description
If cleared, the instruction does not execute and outputs are not updated.
If set, the instruction executes as described under Execution.
Default is set.
Value to test against Compare.
Valid = any integer
Defines which bits to block (mask).
Valid = any integer
Compare value.
Valid = any integer
Description
The instruction produced a valid result.
Result of the instruction. This is equivalent to rung-condition-out for the relay ladder
MEQ instruction.
A '1' in the mask means the data bit is passed. A '0' in the mask means the data bit
is blocked. Typically, the Source, Mask, and Compare values are all the same data
type.
If you mix integer data types, the instruction fills the upper bits of the smaller
integer data types with 0s so that they are the same size as the largest data type.

Entering 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#
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
Chapter 5
253

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents