EasyManuals Logo
Home>Allen-Bradley>Controller>Logix5000

Allen-Bradley Logix5000 Reference Manual

Allen-Bradley Logix5000
708 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #246 background imageLoading...
Page #246 background image
246 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 5 Compare Instructions (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)
Limit (LIM)
The LIM instruction tests whether the Test value is within the range of the Low
Limit to the High Limit.
Operands:
Relay Ladder
Structured Text
Structured text does not have a LIM instruction, but you can achieve the same
results by using structured text.
IF (LowLimit <= HighLimit AND
(Test >= LowLimit AND Test <= HighLimit)) OR
(LowLimit >= HighLimit AND
(Test <= LowLimit OR Test >= HighLimit)) THEN
<statement>;
END_IF;
Operand Type Format Description
Low limit SINT
INT
DINT
REAL
Immediate Tag Value of lower limit
A SINT or INT tag converts to a DINT value by sign-extension.
Test SINT
INT
DINT
REAL
Immediate Tag Value to test
A SINT or INT tag converts to a DINT value by sign-extension.
High limit SINT
INT
DINT
REAL
Immediate Tag Value of upper limit
A SINT or INT tag converts to a DINT value by sign-extension.

Table of Contents

Other manuals for Allen-Bradley Logix5000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley Logix5000 and is the answer not in the manual?

Allen-Bradley Logix5000 Specifications

General IconGeneral
BrandAllen-Bradley
ModelLogix5000
CategoryController
LanguageEnglish

Related product manuals