GT (>)
The GT instruction compares Integer, Real, Time, Date, and String input values to determine whether the first is greater than the second.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
GT

Parameter | Parameter Type | Data Type | Description | |
---|---|---|---|---|
EN | Input | BOOL | Instruction enable.
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. |
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. |
GT examples
GT function block diagram example

GT ladder diagram program example

(* ST Equivalence: *) aresult := (10 > 25); (* aresult is FALSE *) mresult := ('ab' > 'a'); (* mresult is TRUE *)
Provide Feedback