Greater Than

Tests if one value is GREATER THAN another one (on integer, real, bool, time, and message variables).
lrso_gt1.gif
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 *)
lrso_gt2
(* ST Equivalence: *)
aresult := (10 > 25); (* aresult is FALSE *)
mresult := ('ab' > 'a'); (* mresult is TRUE *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal