Less Than Or Equal To (Leq); Relay Ladder; Structured Text - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Chapter 5
Compare Instructions (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)

Less Than or Equal To (LEQ)

IF sourceA <= sourceB THEN
<statements>;
238
The LEQ instruction tests whether Source A is less than or equal to Source B.
Operands:

Relay Ladder

Operand
Source A
Source B
· If you enter a SINT or INT tag, the value converts to a DINT value by
sign-extension.
· String data types are:
– default STRING data type.
– any new string data type that you create.
· To test the characters of a string, enter a string tag for both Source A and
Source B.

Structured Text

Use adjacent less than and equal signs '<=' as an operator within an expression.
This expression evaluates whether sourceA is less than or
equal to sourceB.
See
Structured Text Programming
within structured text.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
SINT
Immediate Tag
INT
DINT
REAL
string
SINT
Immediate Tag
INT
DINT
REAL
string
for information on the syntax of expressions
Description
Value to test against Source B
Value to test against Source A

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents