Comparison operators, Comparison operators 9, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 1061

L-force | PLC Designer
Programming Reference
DMS 4.1 EN 03/2011 TD29
1059
16.3.6
Comparison Operators
The following operators, matching the IEC1131-3 standard are available:
GT, LT, LE, GE, EQ, NE
These are boolean operators, each comparing two inputs (first and second operand).
GT
EC Comparison Operator: Greater than
A Boolean operator which returns the value TRUE when the value of the first operand
is greater than that of the second. The operands can be of any basic data type.
Example in AWL: ( Result is FALSE )
Example in ST:
VAR1 := 20 > 30 > 40 > 50 > 60 > 70;
Example in FBD:
LT
EC Comparison Operator: Less than
A Boolean operator that returns the value TRUE when the value of the first operand is
less than that of the second. The operands can be of any basic data type.
Example in IL: ( Result is TRUE )
Example in ST:
VAR1 := 20 < 30;
Example in FBD: