Try a PLC free — no signup
Comparison OperationsBeginnerIEC 61131-3

LE (Less Than or Equal)

Returns TRUE when first input is less than or equal to second input.

The LE (Less Than or Equal) comparison function returns TRUE when the first input is less than or equal to the second input. It is used for maximum limit checks, upper boundary validation, and ensuring values stay within acceptable ranges.

Parameters

Inputs

NameTypeDescription
IN1ANY_NUMFirst value
IN2ANY_NUMSecond value

Outputs

NameTypeDescription
OUTBOOLTRUE when IN1 <= IN2

Ladder Logic Example

// Ladder Logic - LE Comparison
//
// |----[LE]---( Within_Limit )----|
// | IN1: Motor_Speed               |
// | IN2: Max_Speed (1800)          |

Structured Text Example

Within_Limit := (Motor_Speed <= Max_Speed);

Free · no signup to try

Run this block in your browser

Try the instruction on a live rung before you copy it into a project — nothing to install.

Try it in your browser — no signup

Opens plcsimulationsoftware.com — same team

Prefer ready-made code? Ladder Logic Pack — $29 on Gumroad

Platform-Specific Implementation

S

Siemens (TIA Portal)

Use CMP <= instruction in TIA Portal.

AB

Allen-Bradley (Studio 5000)

Use LEQ (Less Than or Equal) instruction.

C

CODESYS

Use <= operator in ST or LE function block.

Common Applications

  • Maximum speed limiting
  • Upper boundary checks
  • Capacity limit verification
  • Dosage limit control

Frequently Asked Questions

What is LE (Less Than or Equal) in PLC programming?

Returns TRUE when first input is less than or equal to second input. The LE (Less Than or Equal) comparison function returns TRUE when the first input is less than or equal to the second input. It is used for maximum limit checks, upper boundary validation, and ensuring values stay within acceptable ranges.

What are common applications of LE (Less Than or Equal)?

LE (Less Than or Equal) is commonly used for: Maximum speed limiting, Upper boundary checks, Capacity limit verification, Dosage limit control.

How do I use LE (Less Than or Equal) in different PLC platforms?

Siemens: Use CMP <= instruction in TIA Portal. Allen-Bradley: Use LEQ (Less Than or Equal) instruction. CODESYS: Use <= operator in ST or LE function block.

Free · no signup to try

Wire this block up and run it

Drop the instruction into a rung, press Run and watch it execute in your browser — then adapt it to your vendor tool.

Try it in your browser — no signup

Opens plcsimulationsoftware.com — same team

Prefer ready-made code? Ladder Logic Pack — $29 on Gumroad