Greater Than
Tests if one value is GREATER THAN another one (on integer, real, bool, time, and message variables).

Arguments | ||
---|---|---|
IN1 | DINT - BOOL - MESSAGE - REAL - TIME | Both inputs must have the same type |
IN2 | DINT - BOOL - MESSAGE - REAL - TIME | |
Q | BOOL | TRUE if IN1 > IN2 |
Example
(* FBD example with "Greater than" Operators *)

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