2-95
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Comparison Instructions
2
LTascii, LEascii, GTascii, and GEascii
LTascii, LEascii, GTascii, and
GEascii
These instructions compare the sizes of two or more text strings.
* If you omit the input parameter that connects to InN, the default value is not applied, and a building error will occur. For
example, if N is 3 and the input parameters that connect to In1 and In2 are omitted, the default values are applied, but if the
input parameter that connects to In3 is omitted, a building error will occur.
LTascii: Performs a less than comparison.
LEascii: Performs a less than or equal comparison.
GTascii: Performs a greater than comparison.
GEascii: Performs a greater than or equal comparison.
Instruction Name FB/FUN Graphic expression ST expression
LTascii Text String Com-
parison Less
Than
FUN Out:=LTascii(In1, ···, InN);
LEascii Text String Com-
parison Less
Than or Equal
FUN Out:=LEascii(In1, ···, InN);
GTascii Text String Com-
parison Greater
Than
FUN Out:=GTascii(In1, ···, InN);
GEascii Text String Com-
parison Greater
Than or Equal
FUN Out:=GEascii(In1, ···, InN);
Variables
Name Meaning I/O Description Valid range Unit Default
In1 to InN Comparison
text strings
Input Text strings to compare, N =
2 to 5
Depends on data type.
--- ''*
Out Comparison
result
Output Comparison result Depends on data type.
--- ---
(@)LTascii
EN Out
In1
:
InN
:
(@)LEascii
EN Out
In1
:
InN
:
(@)GTascii
EN Out
In1
:
InN
:
(@)GEascii
EN Out
In1
:
InN
: