-

Semantic Error: The initialization value of the variable exceeds the size of the array data type '...'.

In a data types worksheet, an array shall be initialized with more values than the array contains elements.

Initialization examples: the number of initialization values must match the array dimension.

This also applies when initializing arrays with a large number of values using repetition numbers:

According to the standard IEC 61131-3, repetition factors can be used (in parentheses) in array initialization lists to simplify the initialization. For example, 2(1,2,3) is equivalent to the initialization sequence 1,2,3,1,2,3.

Further Info
For information on user-defined data types and how to declare them refer to the chapter "User-defined data types".