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

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. |
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. |
LT examples
LT function block diagram program example

LT ladder diagram program example

(* ST Equivalence: *)aresult := (10 < 25); (* aresult is TRUE *)mresult := ('z' < 'B'); (* mresult is FALSE *)
(* IL equivalence: *)
LD | 10 |
LT | 25 |
ST | aresult |
LD | 'z' |
LT | 'B' |
ST | mresult |
Provide Feedback