2-113
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Comparison Instructions
2
AryCmpLTV, AryCmpLEV, AryCmpGTV, and AryCmpGEV
* If you omit an input parameter, the default value is not applied. A building error will occur.
Variables
Name Meaning I/O Description Valid range Unit Default
In1[] (array) Comparison
array
Input
Array containing the ele-
ments to compare
Depends on data type.
---
*
In2 Comparison
value
Value to compare
Size Number of
comparison
elements
Number of elements to com-
pare
Depends on data type. 1
AryOut[]
(array)
Comparison
results array
In-out Comparison results array Depends on data type.
--- ---
Out Return value Output Always TRUE TRUE only --- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In1[] (array) OK OK OK OK OK OK OK OK OK
In2 Must be same data type as the elements of In1[].
Size OK
AryOut[]
(array)
OK
Out OK