Array transfer with variable lengths

Create functions (FUN) or function blocks (FB) according to IEC 61131-3 3rd Edition, to which you transfer arrays with variable lengths. Declare a VAR_IN_OUT with the star operator "*" in FUN/FB and read out the transferred array boundaries with the global functions "LOWER_BOUND" and "UPPER_BOUND". FUN/FB created in this way can be called and used with arrays of different lengths.

Jobs @ CODESYS