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

LT (Less Than)

Returns TRUE when first input is strictly less than second input.

The LT (Less Than) comparison function returns TRUE when the first input is strictly less than the second input. It is used for low-limit alarms, underflow detection, and minimum threshold monitoring in PLC programs.

Parameters

Inputs

NameTypeDescription
IN1ANY_NUMFirst value
IN2ANY_NUMSecond value

Outputs

NameTypeDescription
OUTBOOLTRUE when IN1 < IN2

Ladder Logic Example

// Ladder Logic - LT Comparison (Low Level Alarm)
//
// |----[LT]---( Low_Level_Alarm )----|
// | IN1: Tank_Level                   |
// | IN2: Low_Setpoint (10.0)          |

Structured Text Example

Low_Level_Alarm := (Tank_Level < Low_Setpoint);

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 LES (Less Than) instruction.

C

CODESYS

Use < operator in ST or LT function block.

Common Applications

  • Low-limit alarms
  • Underflow detection
  • Minimum pressure monitoring
  • Low temperature alerts
  • Empty tank detection

Frequently Asked Questions

What is LT (Less Than) in PLC programming?

Returns TRUE when first input is strictly less than second input. The LT (Less Than) comparison function returns TRUE when the first input is strictly less than the second input. It is used for low-limit alarms, underflow detection, and minimum threshold monitoring in PLC programs.

What are common applications of LT (Less Than)?

LT (Less Than) is commonly used for: Low-limit alarms, Underflow detection, Minimum pressure monitoring, Low temperature alerts, Empty tank detection.

How do I use LT (Less Than) in different PLC platforms?

Siemens: Use CMP < instruction in TIA Portal. Allen-Bradley: Use LES (Less Than) instruction. CODESYS: Use < operator in ST or LT 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