Less Than or Equal

Tests if one value is LESS THAN or EQUAL TO another one (on integer, real, bool, and message variables).
lrso_le1
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 "Less or equal to" Operators *)
lrso_le2
(* 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