Less Than or Equal

For integer, REAL, TIME, DATE, and STRING variables, compares input variables to determine whether the first is less than or equal to the second.
For TON, TP, TOF, BLINK, and StepName.t in SFC chart, equality testing of TIME variables is not recommended.
lrso_le1_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 "Less or Equal to" Operators *)
lrso_le2_cam5
(* ST Equivalence: *)
aresult := (10 <= 25); (* aresult is TRUE *) mresult := ('ab' <= 'ab'); (* mresult is TRUE *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal