Table of Contents

LT

Function name

LT

ST call

PROGRAM LT_DEMO
     VAR
           R1,R2:REAL;
     BOOL1: BOOL;
  END_VAR
    BOOL1:= LT(IN1 := R1, IN2 := R2);
END_PROGRAM

Description

Function compares two or more inputs. Output is TRUE if every previous input is less than every next input.

Example for 4 inputs:
5, 7, 9, 10 - True
4, 6, 9, 9 - False
4, 6, 5, 9 - False

Inputs

InputType Description
IN1..ANY_ELEMENTARYInput value

Outputs

OutputTypeDescription
BOOLOutput value

Application example