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