Ladder Logic Less than or Equal Instruction

KronoTech

PLC

Basic

Counters

Timer

Arithmetic

Comparison

EQU

NEQ

LES

LEQ

GRT

GEQ

LIM

MEQ

Functions

Trig Functions

RSLogix 5000

Structured Text

HMI

Instruments

LEQ - Less than or Equal

Test whether one value is less than or equal to a second value.

Example

Let say we have a HPU system that we want to monitor the temperature of the oil. When we start the HPU system, we want to check If the temperature of the oil is less than or equal to 50C(Celsius) then we will run Heater 1 on. If the temperature is less than 70C then we want to run Heater 2. We should also disallow the HPU to run if the temperature is less or equal to 50C.

Ladder Logic Solution

  • Temperature element I:1.0/0
  • Heater 01 O:2.0/0
  • Heater 02 O:2.0/1
  • HPU no permission B3:0/0
  • HPU start O:2.0/2

The start button is pushed then we check to see if the temp <= 50c is true. If it is true then we energize Hearter1 and we disallow to run the HPU.

LEQ 1 SLC 500 Beginners Training Guide

While the start is still on we check if the temperature is below 70c if it is then we run the second heater to accelerate the heating process.

LEQ 2 SLC 500 Beginners Training Guide

As long the as the temperature is below 50 then we will not allow the HPU to start.

LEQ 3 SLC 500 Beginners Training Guide

Note

  • For simplicity reasons, we are assuming that the push buttons are maintained signals.
  • Notice that the temperature value is passed via an analog input (16 bit word).

Quick Links

PLC Languages

Ladder Logic
Function Block
Structure Text
SFC
Mnemonic

Ladder Logic

Basic
Counters
Timer
Arithmetic
Comparison
Functions
Trig Functions

Instruments

Switches

HMI

Advantages
Alarms
Trends

Other

Bottle Application