In this post I will explain how to operate the ArrayDB by using the System Function “ReadFromArrayDB” and “WriteToArrayDB”.
ArrayDB is a DataBlock that only has one element of “Array”. The data type of this array can be anything, but Index should be started from 0 and only allow optimized access.
Choose the “Array DB” in the type selection.
In the ARRAY data type, you can define the type of Array.
In the Array limit, you can define the length of your Array.
After OK is pressed, you can see only one element inside your block.
Actually I do not know why we need to use this function..because we can just use a[i]:=x to directly access the variables that you want.
- Index the index of that Element that you want to read
- The value of that element
The value of myArrayDB index is 44.
- Indexの変数Index the index of that Element that you want to write
- The values that you want to write
You write 44 into index 5 of myArrayDB.