TC 4026 introduced VAR_GENERIC CONSTANT which allows for array size to be determined by the context of the caller (still at compile time) instead of within the FB itself: https://infosys.beckhoff.com/content/1033/tc3_plc_intro/13723588619.html?id=879784069343962346