Vector - Create

This function block creates a new vector VY with a defined number of elements The vector can be initialized with the value on input X.

This initialization will only performed when the Trigger input is set to HIGH. If the Trigger is LOW, the current content of the vector will not be changed.


With the parameter dialog the data type can be selected and the number of vector elements can be assigned (minimum 1, maximum 9999).


Name I/O Type(s) Function
X I Data type independent Initial value
Trigger I BIT Initialize vector
VY O Data type independent Output vector


The number of elements is shown in the down right corner of the symbol.


Because large vectors result in time consuming operations, a suitable number of elements have to be considered.

At the start of a program all vector elements are set to 0. With the first processing of the function block the appointed init value will be set. If the Trigger input is set to LOW from the beginning, the vector is filled with 0.

If no connection exists at the output another data type can be assigned by creating a new connection on input X.

If the data type is changed by the parameter dialog all invalid connections will be deleted.