Array variables

Previous chapterNext chapter Show allShow all    Hide allHide all

Arrays are fields of data types or variables. data type arrays can only be realised in structures. Variable arrays can also be realised with simple data types.

Arrays can have up to three dimensions.

Example for a two-dimensional array variable: Engine Speed [2,3]: This variable consists of six variables (2x3): Engine Speed [1,1], Engine Speed [1,2], Engine Speed [1,3], Engine Speed [2,1], Engine Speed [2,2], Engine Speed [2,3].

Single variables of an array can be set inactive. Inactive variables are not available to zenon, are not counted for the licensed I/Os and are not registered in the driver. The main idea is, that so in an array reserve variables can be created, that can be activated lateron e.g. when expanding.

Internally arrays are handled like structures. That especially concerns addressing.