Documentation

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

Input Type Description
IN1.. ANY_ELEMENTARY Input value

Outputs

Output Type Description
=> BOOL Output value

Application example