LE (<=)
The LE instruction compares Integer, Real, Time, Date, and String input values to determine whether the first is less than or equal to the second.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
LE

Parameter | Parameter Type | Data Type | Description | |
---|---|---|---|---|
EN | Input | BOOL | Instruction enable.
Applies only to ladder diagram programs. | |
i1 | Input | SINT USINT BYTE INT UINT WORD DINT UDINT DWORD | LINT ULINT LWORD REAL LREAL TIME DATE STRING | All inputs must be the same data type. The Time input applies to the structured text, ladder diagram, and function block diagram languages. |
i2 | Input | SINT USINT BYTE INT UINT WORD DINT UDINT DWORD | LINT ULINT LWORD REAL LREAL TIME DATE STRING | |
o1 | Output | BOOL | TRUE if i1 <= i2. |
LE examples
LE function block diagram example

LE ladder diagram program example

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