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) 225Function BlockOperand Type Format DescriptionLEQ tag FBD_COMPARE structure LEQ structureFBD_COMPARE StructureInput Parameter Data Type DescriptionEnableIn BOOL Enable input. If cleared, the instruction does not execute and outputs are not updated.Default is set.SourceA REAL Value to test against SourceB.Valid = any floatSourceB REAL Value to test against SourceA.Valid = any floatOutput 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 ladderLEQ instruction.Description:The LEQ instruction tests whether Source A is less than or equal toSource B.When you compare strings:• The hexadecimal values of the characters determine if one stringis less than or greater than another string. For the hex code of acharacter, see the back cover of this manual.• When the two strings are sorted as in a telephone directory, theorder of the strings determines which one is greater.ASCII CharactersHex Codes1ab $31$61$62lessergreater1b $31$62A $41AB $41$42B $42a $61AB < Ba > Bab $61$62Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!