EasyManua.ls Logo

Allen-Bradley Logix5000

Allen-Bradley Logix5000
708 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
252 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 5 Compare Instructions (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)
Mask Equal To (MEQ)
The MEQ instruction passes the Source and Compare values through a Mask and
compares the results.
Operands:
Relay Ladder
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 Type Format Description
Source SINT
INT
DINT
Immediate Tag Value to test against Compare
A SINT or INT tag converts to a DINT value by zero-fill.
Mask SINT
INT
DINT
Immediate Tag Defines which bits to block or pass
A SINT or INT tag converts to a DINT value by zero-fill.
Compare SINT
INT
DINT
Immediate Tag Value to test against Source
A SINT or INT tag converts to a DINT value by zero-fill.
Operand Type Format Description
MEQ tag FBD_MASK_EQUAL Structure MEQ structure

Table of Contents

Other manuals for Allen-Bradley Logix5000

Related product manuals