Vector Split

Vector Split

 

This function block can be used to split a vector into its sub elements.

The maximum number of elements that can be accessed in this way is 16.

Parameters

The parameter dialog can used to select the data type and the number of elements.

Signals

NameI/OType(s)Function
XIData type independentInput vector
Y0OData type independentOutput value
...   
Y15OData type independentOutput value

Visualization

The function block changes its size according to the number of elements.

Comments

If no connection exists another data type can be assigned by creating a new connection at an input.

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

Example

The following example shows how to create a BIT vector out of a number of single values. This vector will be converted into a single WORD value and back into a BIT vector.