-

LOWER_BOUND

Type Function block
Description Returns the lower boundary of a user-defined array as defined in the data types worksheet. If an error occurs, a corresponding runtime error is output in the MESSAGES window.
Parameters Inputs

ARR

DIM

Output

OUT
Example Boundary detection using LOWER_BOUND together with UPPER_BOUND:

  • Definition of the user-defined array ('MyArray') in the data types worksheet
    TYPE

       MyArray : ARRAY [2..10000] OF INT;
    END_TYPE

  • LD code

    The variable 'MyArrayVar' is of the data type 'MyArray'.
Error behavior Error behavior
Additional information EN/ENO behavior