12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

238 Compare <strong>Instructions</strong> (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)Mask Equal to (MEQ)The MEQ instruction passes the Source and Compare values through aMask and compares the results.Operands:Relay LadderOperand Type Format DescriptionSource SINT immediate value to test against CompareINTtagMaskDINTA SINT or INT tag converts to a DINT value by zero-fill.SINT immediate defines which bits to block or passINTtagCompareDINTA SINT or INT tag converts to a DINT value by zero-fill.SINT immediate value to test against SourceINTtagStructured TextStructured text does not have an MEQ instruction, but you canachieve the same results using structured text.IF (Source AND Mask) = (Compare AND Mask) THENEND_IF;DINT;Function BlockA SINT or INT tag converts to a DINT value by zero-fill.Operand Type Format DescriptionMEQ tag FBD_MASK_EQUAL structure MEQ structurePublication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!