GE (>=)

The GE instruction compares Integer, Real, Time, Date, and String input values to determine whether the first is greater than or equal to the second.
Equality testing of Time values for TON, TP, or TOF is not recommended.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
GE
GE
GE parameters
Parameter
Parameter Type
Data Type
Description
EN
Input
BOOL
Instruction enable.
  • TRUE: Execute the input comparison.
  • FALSE: There is no comparison.
Applies only to ladder diagram programs.
i1
Input
SINT
USINT
BYTE
INT
UINT
WORD
DINT
UDINT
DWORD
LINT
ULINT
LWORD
REAL
LREAL
TIME
DATE
STRING
All inputs must be the same data type. The Time input applies to the structured text, ladder diagram, and function block diagram languages.
i2
Input
SINT
USINT
BYTE
INT
UINT
WORD
DINT
UDINT
DWORD
LINT
ULINT
LWORD
REAL
LREAL
TIME
DATE
STRING
o1
Output
BOOL
TRUE if i1 >= i2.

GE examples

GE function block diagram example
GE function block diagram example
GE function block diagram example
GE function block diagram example
(* ST Equivalence: *) aresult := (10 >= 25); (* aresult is FALSE *) mresult := ('ab' >= 'ab'); (* mresult is TRUE *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal