System Model > Variable Tags > Refer to Variable Tags > Refer to Array Elements
Refer to Array Elements

Each entry in an array is referred to by an index. You can extract individual variables (from the array) by specifying the tag name and index using the following format:

<Tag Name>[Index]

For example, to refer to the third variable of the array "Conveyor_Speed", use the following syntax:

Conveyor_Speed[2]

The index of the first entry in an array is always 0 (zero).

Note the following when using arrays:

See Also

Published June 2018