ALGORITHM LOOKUP IN Java :
try {VALUE.value =
VALUES.value.split(",")[N.value];}
catch
(ArrayIndexOutOfBoundsException ex) {VALUE.value = "";}
END_ALGORITHM
The operation of an instance of this function block type is defined
by the Execution Control Chart (ECC) and algorithm above. It selects
the (zero-based)
Nth
element from a comma-separated list of
n
input strings. If the inequality
N<n
is not satisfied, the output is an empty string.
See the CHOICE_TBL
FB type for an example of the use of an instance of the
N_TBL
FB type.