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.

Compare <strong>Instructions</strong> (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ) 239FBD_MASK_EQUAL StructureInput Parameter Data Type DescriptionEnableIn BOOL If cleared, the instruction does not execute and outputs are not updated.If set, the instruction executes as described under Execution.Default is set.Source DINT Value to test against Compare.Valid = any integerMask DINT Defines which bits to block (mask).Valid = any integerCompare DINT Compare value.Valid = any integerOutput Parameter Data Type DescriptionEnableOut BOOL The instruction produced a valid result.Dest BOOL Result of the instruction. This is equivalent to rung-condition-out for the relay ladderMEQ instruction.Description:A “1” in the mask means the data bit is passed. A “0” in the maskmeans the data bit is blocked. Typically, the Source, Mask, andCompare values are all the same data type.If you mix integer data types, the instruction fills the upper bits of thesmaller integer data types with 0s so that they are the same size as thelargest data type.Entering an Immediate Mask ValueWhen you enter a mask, the programming software defaults todecimal values. If you want to enter a mask using another format,precede the value with the correct prefix.PrefixDescription16# hexadecimalfor example; 16#0F0F8# octalfor example; 8#162# binaryfor example; 2#00110011Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!