Mask Equal To (Meq); Relay Ladder; Structured Text; Function Block - 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 5
Compare Instructions (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)

Mask Equal To (MEQ)

252
The MEQ instruction passes the Source and Compare values through a Mask and
compares the results.
Operands:

Relay Ladder

Operand
Source
Mask
Compare

Structured Text

Structured text does not have an MEQ instruction, but you can achieve the same
results by using structured text.
IF (Source AND Mask) = (Compare AND Mask) THEN
<statement>;
END_IF;

Function Block

Operand
MEQ tag
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
SINT
Immediate Tag
INT
DINT
A SINT or INT tag converts to a DINT value by zero-fill.
SINT
Immediate Tag
INT
DINT
A SINT or INT tag converts to a DINT value by zero-fill.
SINT
Immediate Tag
INT
DINT
A SINT or INT tag converts to a DINT value by zero-fill.
Type
FBD_MASK_EQUAL
Description
Value to test against Compare
Defines which bits to block or pass
Value to test against Source
Format
Description
Structure
MEQ structure

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents