Greater Than or Equal

Tests if one value is GREATER THAN or EQUAL TO another one (on integer, real, bool, and message variables).
lrso_geq1.gif
Arguments
IN1
DINT - BOOL - MESSAGE - REAL
Both inputs must have the same type.
IN2
DINT - BOOL - MESSAGE - REAL
Q
BOOL
TRUE if IN1 >= IN2
Example
(* FBD example with "Greater or Equal to" Operators *)
lrso_geq2
(* 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