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.

232 Compare <strong>Instructions</strong> (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)Limit (LIM)The LIM instruction tests whether the Test value is within the range ofthe Low Limit to the High Limit.Operands:Relay LadderOperand Type Format DescriptionLow limit SINT immediate value of lower limitINTtagDINTTestREALA SINT or INT tag converts to a DINT value by sign-extension.SINT immediate value to testINTtagDINTHigh limitREALA SINT or INT tag converts to a DINT value by sign-extension.SINT immediate value of upper limitINTtagStructured TextStructured text does not have a LIM instruction, but you can achievethe same results using structured text.IF (LowLimit = LowLimit AND Test = HighLimit AND(Test = HighLimit)) THENEND_IF;DINTREALA SINT or INT tag converts to a DINT value by sign-extension.;Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!