GT

Greater than

A Boolean operator which returns the value TRUE when the value of the first operand is greater than that of the second. The operands can be BOOL, BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT, REAL, LREAL, TIME, DATE, TIME_OF_DAY, DATE_AND_TIME and STRING.

Example in IL:

LD 20

GT 30

ST Var1 (* Result is FALSE *)

Example in ST:

VAR1 := 20 > 30 > 40 > 50 > 60
> 70;

Example in FBD:

GT 1: