LE

LE

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

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

InputType Description
IN1..ANY_ELEMENTARYInput value
OutputTypeDescription
BOOLOutput value

  • © Energocentrum Plus, s.r.o. 2017 - 2024