Vector - Set

This function block will set the elements from input VX2 to the in-/output vector VX1 beginning from position Ind.

A single value or a complete vector is allowed for VX2. The original values will be either overwritten or shifted.


The parameter dialog can be used to select the set mode: Either overwrite the old values or insert new ones and shift the old ones.


Name I/O Type(s) Function
VX1 I/ Data type independent In-/output vector
VX2 I Data type independent Input Vector
Ind I WORD Index of starting point


An indication of the set mode will be shown in the symbol.


The first element of the vector has the index of 0.

A negative index is allowed. In this case the first elements of the vector VX2 are not set until the first element of the destination vector is reached.

Only elements up to the maximum index of the output vector will be set. Elements not fit into the output vector will be ignored.

The data type will be assigned by connecting an input signal.