Table of Contents

GE

Function name

GE

ST call

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

Description

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

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

Inputs

InputType Description
IN1..ANY_ELEMENTARYInput value

Outputs

OutputTypeDescription
BOOLOutput value

Application example