Less Than or Equal
Tests if one value is LESS THAN or EQUAL TO another one (on integer, real, bool, and message variables).

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 *)

(* ST Equivalence: *)
aresult := (10 <= 25); (* aresult is TRUE *)
mresult := ('ab' <= 'ab'); (* mresult is TRUE *)
Provide Feedback