Table of Contents

LE

Function name

LE

ST call

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

Description

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

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

Inputs

InputType Description
IN1..ANY_ELEMENTARYInput value

Outputs

OutputTypeDescription
BOOLOutput value

Application example