Arrays library

<< Click to Display Table of Contents >>

Navigation:  Project > Scripts > FBD language > Script objects of FBD language  >

Arrays library

Previous pageReturn to chapter overviewNext page

arraylib

Index read - this script object used to select array’s element. Input1 is an array. Input2 is index of element (Output = Input1[Input2]).

Index write - this script object used to change array’s element. Input1 is an element. Input2 is index of element (Output[Input2] = Input1).

 

Example:

arrayex

This operation get value from the array in Tag's value and index in Tag1's value and place result in Tag2's value.

Tag

Tag1

Tag2

[34, 23, 4, 7, 12]

0

34