Greater Than

For integer, REAL, TIME, DATE, and STRING variables, compares input variables to determine whether the first is greater than the second.
lrso_gt1_cam5
Arguments
i1
SINT - USINT - BYTE - INT - UINT - WORD - DINT - UDINT - DWORD - LINT - ULINT - LWORD - REAL - LREAL - TIME - DATE - STRING
Both inputs must have the same type
i2
SINT - USINT - BYTE - INT - UINT - WORD - DINT - UDINT - DWORD - LINT - ULINT - LWORD - REAL - LREAL - TIME - DATE - STRING
o1
BOOL
TRUE if i1 > i2
Example
(* FBD example with "Greater than" Operators *)
lrso_gt2_cam5
(* 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