2 Instruction Descriptions
2-102
NJ-series Instructions Reference Manual (W502)
TableCmp
The TableCmp instruction compares the comparison data with multiple defined ranges in a comparison
table.
* If you omit an input parameter, the default value is not applied. A building error will occur.
Instruction Name FB/FUN Graphic expression ST expression
TableCmp Table Comparison FUN Out:=TableCmp(In, Table,
Size, AryOut);
Variables
Name Meaning I/O Description Valid range Unit Default
In Comparison
data
Input
Value to compare
Depends on data type.
---
*
Tabl e[ ]
(two-
dimen-
sional
array)
Comparison
table
Two-dimensional array that
contains the elements for
the defined ranges
Size Comparison
size
Number of elements in
Tabl e[ ] to which to compare
In
1
AryOut[]
(array)
Individual com-
parison results
array
In-out Comparison results for
Tabl e[ ] elements
TRUE: Condition met.
FALSE: Condition not met.
Depends on data type.
--- ---
Out Comparison
result
Output TRUE: In meets all compari-
son conditions for elements
of Ta bl e[ ].
FALSE: The comparison
condition is not met for one
or more sets of elements.
Depends on data type. --- ---
(@)TableCmp
EN
In
Tabl e
Size
AryOut
Out